2013-11-29 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blobfdd9485adcb606b281735c539ff39f872af86080
1 2013-11-29  Richard Biener  <rguenther@suse.de>
3         PR tree-optimization/59334
4         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
5         in previous commit.
7 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
8             Richard Biener  <rguenther@suse.de>
10         PR lto/59326
11         * omp-low.c (simd_clone_create): Return NULL if for definition
12         !cgraph_function_with_gimple_body_p (old_node).  Call cgraph_get_body
13         before calling cgraph_function_versioning.
14         (expand_simd_clones): Look for "omp declare simd" attribute first.
15         Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
16         Punt if node->global.inlined_to.
17         (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
18         Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
19         * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
21 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
23         PR lto/59326
24         * tree-core.h (enum omp_clause_schedule_kind): Add
25         OMP_CLAUSE_SCHEDULE_LAST.
26         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
27         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
28         (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
29         (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
30         * lto-streamer-out.c (lto_is_streamable): Allow streaming
31         OMP_CLAUSE.
32         (DFS_write_tree_body): Handle OMP_CLAUSE.
33         * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New
34         function.
35         (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
36         (write_ts_omp_clause_tree_pointers): New function.
37         (streamer_write_tree_body): Call it for OMP_CLAUSE.
38         (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
39         * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New
40         function.
41         (unpack_value_fields): Call it for OMP_CLAUSE.
42         (streamer_alloc_tree): Handle OMP_CLAUSE.
43         (lto_input_ts_omp_clause_tree_pointers): New function.
44         (streamer_read_tree_body): Call it for OMP_CLAUSE.
46 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
48         * doc/implement-c.texi: Document C11 implementation-defined
49         behavior.  Refer to -ffp-contract=fast for contraction behavior.
50         * doc/invoke.texi (-std=c99, std=c11): Update description of
51         completeness.
52         (-std=gnu99): Don't mention as future default.
53         (-std=gnu11): Mention as intended future default.
54         * doc/standards.texi: Update descriptions of C99 and C11 support.
55         Limit statement about C99 facilities for freestanding
56         implementations to some platforms only.
58 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
60         PR middle-end/59327
61         * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit
62         HWI hosts.
64 2013-11-28  Vladimir Makarov  <vmakarov@redhat.com>
66         PR target/57293
67         * ira.h (ira_setup_eliminable_regset): Remove parameter.
68         * ira.c (ira_setup_eliminable_regset): Ditto.  Add
69         SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
70         Don't call lra_init_elimination.
71         (ira): Call ira_setup_eliminable_regset without arguments.
72         * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
73         from ira_setup_eliminable_regset call.
74         * gcse.c (calculate_bb_reg_pressure): Ditto.
75         * haifa-sched.c (sched_init): Ditto.
76         * lra.h (lra_init_elimination): Remove the prototype.
77         * lra-int.h (lra_insn_recog_data): New member sp_offset.  Move
78         used_insn_alternative upper.
79         (lra_eliminate_regs_1): Add one more parameter.
80         (lra-eliminate): Ditto.
81         * lra.c (lra_invalidate_insn_data): Set sp_offset.
82         (setup_sp_offset): New.
83         (lra_process_new_insns): Call setup_sp_offset.
84         (lra): Add argument to lra_eliminate calls.
85         * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
86         (get_equiv_with_elimination): New.
87         (process_addr_reg): Call get_equiv_with_elimination instead of
88         get_equiv_substitution.
89         (equiv_address_substitution): Ditto.
90         (loc_equivalence_change_p): Ditto.
91         (loc_equivalence_callback, lra_constraints): Ditto.
92         (curr_insn_transform): Ditto.  Print the sp offset
93         (process_alt_operands): Prevent stack pointer reloads.
94         (lra_constraints): Remove one argument from lra_eliminate call.
95         Move it up.  Mark used hard regs bfore it.  Use
96         get_equiv_with_elimination instead of get_equiv_substitution.
97         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
98         assert for param values combination.  Use sp offset.  Add argument
99         to lra_eliminate_regs_1 calls.
100         (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
101         (curr_sp_change): New static var.
102         (mark_not_eliminable): Add parameter.  Update curr_sp_change.
103         Don't prevent elimination to sp if we can calculate its change.
104         Pass the argument to mark_not_eliminable calls.
105         (eliminate_regs_in_insn): Add a parameter.  Use sp offset.  Add
106         argument to lra_eliminate_regs_1 call.
107         (update_reg_eliminate): Move calculation of hard regs for spill
108         lower.  Switch off lra_in_progress temporarily to generate regs
109         involved into elimination.
110         (lra_init_elimination): Rename to init_elimination.  Make it
111         static.  Set up insn sp offset, check the offsets at the end of
112         BBs.
113         (process_insn_for_elimination): Add parameter.  Pass its value to
114         eliminate_regs_in_insn.
115         (lra_eliminate): : Add parameter.  Pass its value to
116         process_insn_for_elimination.  Add assert for param values
117         combination.  Call init_elimination.  Don't update offsets in
118         equivalence substitutions.
119         * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
120         for created stack slot.
121         (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
122         onto stack slot.
124 2013-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
126         * config/arm/iterators.md (vrint_conds): New int attribute.
127         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
128         (smax<mode>3): Likewise.
129         (smin<mode>3): Likewise.
131 2013-11-28  Richard Sandiford  <rdsandiford@googlemail.com>
133         * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
134         * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
135         * tree-ssanames.h (set_range_info): Add range_type argument.
136         (duplicate_ssa_name_range_info): Likewise.
137         * tree-ssanames.c (set_range_info): Take the range type as argument
138         and store it in SSA_NAME_ANTI_RANGE_P.
139         (duplicate_ssa_name_range_info): Likewise.
140         (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
141         (set_nonzero_bits): Update call to set_range_info.
142         (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
143         * tree-ssa-copy.c (fini_copy_prop): Likewise.
144         * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
145         (vrp_finalize): Likewise, passing anti-ranges directly.
147 2013-11-28  Richard Biener  <rguenther@suse.de>
149         PR tree-optimization/59330
150         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
151         and fix delayed marking of free calls not necessary.
153 2013-11-28  Andrew MacLeod  <amacleod@redhat.com>
155         * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
156         is_gimple_reg_type.
157         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
159 2013-11-28  Terry Guo  <terry.guo@arm.com>
161         * config/arm/arm.c (v7m_extra_costs): New table.
162         (arm_v7m_tune): Use it.
164 2013-11-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
166         * config/sol2.h (TIME_LIBRARY): Define.
168 2013-11-28  Richard Biener  <rguenther@suse.de>
170         PR lto/59323
171         * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
172         CONST_DECLs in function context are not indexable.
174 2013-11-28  Chung-Ju Wu  <jasonwucj@gmail.com>
176         * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
177         not optimized for size.
179 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
181         * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
182         fields.
183         (expand_stack_vars): For -fsanitize=address, use (and set initially)
184         data->asan_base as base for vars and update asan_alignb.
185         (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
186         Pass them to asan_emit_stack_protection.
187         * asan.c (asan_detect_stack_use_after_return): New variable.
188         (asan_emit_stack_protection): Add pbase and alignb arguments.
189         Implement use after return sanitization.
190         * asan.h (asan_emit_stack_protection): Adjust prototype.
191         (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
193 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
195         * common.opt: Introduced a new option -fsimd-cost-model.
196         * doc/invoke.texi: Introduced a new openmp-simd warning and
197         a new -fsimd-cost-model option.
198         * tree-vectorizer.h (unlimited_cost_model): Interface updated
199         to rely on the particular loop info.
200         * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
201         (vect_peeling_hash_choose_best_peeling): Ditto.
202         (vect_enhance_data_refs_alignment): Ditto.
203         * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
204         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
205         plus added openmp-simd warining.
207 2013-11-27   H.J. Lu  <hongjiu.lu@intel.com>
209         PR rtl-optimization/59311
210         * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
211         * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
213 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
215         * var-tracking.c (track_expr_p): Do not track declarations for parts
216         of tracked parameters.
217         (add_stores): Do not track values for tracked parameters passed in
218         multiple locations.
219         (vt_get_decl_and_offset): Handle PARALLEL.
220         (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
222 2013-11-27  Jeff Law  <law@redhat.com>
224         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
225         clobber the loop structure thread_block was unsuccessful.  If
226         thread_block was unsuccessful, cleanup appropriately.
228 2013-11-27  Chen Liqin <liqin.gcc@gmail.com>
230         * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
231         (score_char_to_class): Likewise.
233 2013-11-27  Kenneth Zadeck  <zadeck@naturalbridge.com>
235         * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with the
236         overflow bit set.
238 2013-11-27  Richard Biener  <rguenther@suse.de>
240         PR middle-end/58723
241         * cgraphbuild.c (build_cgraph_edges): Do not build edges
242         for internal calls.
243         (rebuild_cgraph_edges): Likewise.
244         * ipa-inline-analysis.c (estimate_function_body_sizes):
245         Skip internal calls.
246         * tree-inline.c (estimate_num_insns): Estimate size of internal
247         calls as 0.
248         (gimple_expand_calls_inline): Do not try inline-expanding
249         internal calls.
250         * lto-streamer-in.c (input_cfg): Stream loop safelen,
251         force_vect and simduid.
252         (input_struct_function_base): Stream has_force_vect_loops
253         and has_simduid_loops.
254         (input_function): Adjust.
255         * lto-streamer-out.c (output_cfg): Stream loop safelen,
256         force_vect and simduid.
257         (output_struct_function_base): Stream has_force_vect_loops
258         and has_simduid_loops.
260 2013-11-27  Kai Tietz  <ktietz@redhat.com>
262         * config/i386/winnt.c (i386_pe_section_type_flags): Use const
263         pointer cast.
265 2013-11-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
267         * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
268         * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
270 2013-11-27  Marek Polacek  <polacek@redhat.com>
272         PR sanitizer/59306
273         * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
274         instead of walk_gimple_op.
275         (ubsan_pass): Adjust.  Call instrument_null only if SANITIZE_NULL.
277 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
278             Jakub Jelinek  <jakub@redhat.com>
280         * cgraph.h (enum cgraph_simd_clone_arg_type): New.
281         (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
282         (struct cgraph_node): Add simdclone and simd_clones fields.
283         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
284         ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
285         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
286         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
287         * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
288         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
289         * doc/tm.texi: Regenerated.
290         * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
291         * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
292         attribute is present.
293         * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
294         (simd_clone_vector_of_formal_parm_types): New function.
295         (simd_clone_struct_alloc, simd_clone_struct_copy,
296         simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
297         simd_clone_compute_base_data_type, simd_clone_mangle,
298         simd_clone_create, simd_clone_adjust_return_type,
299         create_tmp_simd_array, simd_clone_adjust_argument_types,
300         simd_clone_init_simd_arrays): New functions.
301         (struct modify_stmt_info): New type.
302         (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
303         simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
304         functions.
305         (pass_data_omp_simd_clone): New variable.
306         (pass_omp_simd_clone): New class.
307         (make_pass_omp_simd_clone): New function.
308         * passes.def (pass_omp_simd_clone): New.
309         * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
310         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target
311         hooks.
312         * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
313         * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
314         * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
315         * tree-pass.h (make_pass_omp_simd_clone): New prototype.
316         * tree-vect-data-refs.c: Include cgraph.h.
317         (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
318         and find_data_references_in_bb, if find_data_references_in_stmt
319         fails, still allow calls to #pragma omp declare simd functions
320         in #pragma omp simd loops unless they contain data references among
321         the call arguments or in lhs.
322         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
323         calls with no lhs.
324         (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls without
325         lhs.
326         * tree-vectorizer.h (enum stmt_vec_info_type): Add
327         call_simd_clone_vec_info_type.
328         (struct _stmt_vec_info): Add simd_clone_fndecl field.
329         (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
330         * tree-vect-stmts.c: Include tree-ssa-loop.h,
331         tree-scalar-evolution.h and cgraph.h.
332         (vectorizable_call): Handle calls without lhs.  Assert
333         !stmt_can_throw_internal instead of failing for it.  Don't update
334         EH stuff.
335         (struct simd_call_arg_info): New.
336         (vectorizable_simd_clone_call): New function.
337         (vect_transform_stmt): Call it.
338         (vect_analyze_stmt): Likewise.  Allow NULL STMT_VINFO_VECTYPE for
339         calls without lhs.
340         * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
341         if cgraph_function_with_gimple_body_p is true.
343 2013-11-27  Tom de Vries  <tom@codesourcery.com>
344             Marc Glisse  <marc.glisse@inria.fr>
346         PR middle-end/59037
347         * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
348         BIT_FIELD_REF.
349         * gimple-fold.c (gimple_fold_indirect_ref): Same.
350         * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
351         out-of-bounds.
353 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
355         PR middle-end/59138
356         * expr.c (emit_group_store): Don't write past the end of the structure.
357         (store_bit_field): Fix formatting.
359 2013-11-27  Richard Biener  <rguenther@suse.de>
361         PR tree-optimization/59288
362         * tree-vect-loop.c (get_initial_def_for_induction): Do not
363         re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
365 2013-11-27  Marek Polacek  <polacek@redhat.com>
367         * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
368         for a decl, recreate that decl.  Save into the hash table VAR_DECLs
369         rather than ADDR_EXPRs.
371 2013-11-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
373         * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
375 2013-11-26  David Malcolm  <dmalcolm@redhat.com>
377         * gengtype.c (struct seen_tag): New.
378         (already_seen_tag): New.
379         (mark_tag_as_seen): New.
380         (walk_subclasses): Support having multiple subclasses using the
381         same tag by tracking which tags have already been seen, and using
382         this to avoid adding duplicate cases to the "switch" statement.
383         The call to already_seen_tag introduces an O(N^2) when running
384         gengtype on N, the number of tags, due to the repeated linear
385         search, but currently max(N) is relatively small (the number of
386         GSS codes, which is 26).
387         (walk_type): Pass in a seen_tag for use by the walk_subclasses
388         recursion.
390         * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
391         underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
392         GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
393         GIMPLE_OMP_RETURN happens to share the data layout of
394         GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
395         (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
396         underlying GSS value from GSS_OMP_PARALLEL to
397         GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
398         not directly related; they merely share in-memory layout.
399         (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
400         for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
402         * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
403         Rename to...
404         (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
405         ...these.
406         (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
407         (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout):
408         ...these.
409         (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename
410         to...
411         (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
412         ...these.
414         * gimple.h (gimple_statement_resx): New subclass of
415         gimple_statement_eh_ctrl, with the invariant that
416         stmt->code == GIMPLE_RESX.
417         (gimple_statement_eh_dispatch): New subclass of
418         gimple_statement_eh_ctrl, with the invariant that
419         stmt->code == GIMPLE_EH_DISPATH.
421         (gimple_statement_omp_parallel): The existing class expressed
422         a layout (GSS_OMP_PARALLEL), but the codes with that layout
423         are not all related, so it makes more sense for this class to
424         express a *code* (GIMPLE_OMP_PARALLEL).  GSS_OMP_PARALLEL has
425         been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
426         rename the existing gimple_statement_omp_parallel class to...
427         (gimple_statement_omp_parallel_layout): ...this, expressing
428         a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
429         (gimple_statement_omp_taskreg): New subclass of
430         gimple_statement_omp_parallel_layout, expressing the invariant
431         that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
432         as used by the various gimple_omp_taskreg_ accessors.
433         (gimple_statement_omp_parallel): Reintroduce this class, this time
434         as a subclass of gimple_statement_omp_taskreg to express the
435         invariant stmt->code == GIMPLE_OMP_PARALLEL.
436         (gimple_statement_omp_target) New class, subclassing
437         gimple_statement_omp_parallel_layout, to express the invariant
438         stmt->code == GIMPLE_OMP_TARGET.
439         (gimple_statement_omp_task): Update to inherit from
440         gimple_statement_omp_taskreg rather than
441         gimple_statement_omp_parallel.
443         (gimple_statement_omp_single): Rename to...
444         (gimple_statement_omp_single_layout): ...this, expressing the
445         invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
446         (gimple_statement_omp_single): ...and reintroduce this name as
447         a subclass of gimple_statement_omp_single_layout, expressing
448         the invariant that code == GIMPLE_OMP_SINGLE.
449         (gimple_statement_omp_teams): New class, subclassing
450         gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
452         (gimple_statement_omp_atomic_store): Rename to...
453         (gimple_statement_omp_atomic_store_layout): ...this, expressing
454         the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
455         (gimple_statement_omp_atomic_store): ...and reintroduce this
456         name as a subclass of gimple_statement_omp_atomic_store_layout
457         with code == GIMPLE_OMP_ATOMIC_STORE.
458         (gimple_statement_omp_return): New class, subclassing
459         gimple_statement_omp_atomic_store_layout for the code
460         GIMPLE_OMP_RETURN.
462         (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
463         (is_a_helper <gimple_statement_resx>::test): New.
464         (is_a_helper <gimple_statement_eh_dispatch>::test): New.
465         (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
466         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
467         (is_a_helper <gimple_statement_omp_return>::test): New.
468         (is_a_helper <gimple_statement_omp_taskreg>::test): New.
469         (is_a_helper <gimple_statement_omp_parallel>::test): Only check
470         for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
471         GIMPLE_OMP_TARGET.
472         (is_a_helper <gimple_statement_omp_target>::test): New.
473         (is_a_helper <gimple_statement_omp_single>::test): Only check
474         for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
475         (is_a_helper <gimple_statement_omp_teams>::test): New.
477         (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
478         (is_a_helper <const gimple_statement_resx>::test): New.
479         (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
480         (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
481         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
482         (is_a_helper <const gimple_statement_omp_return>::test): New.
483         (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
484         (is_a_helper <const gimple_statement_omp_parallel>::test): Only
485         check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
486         GIMPLE_OMP_TARGET.
487         (is_a_helper <const gimple_statement_omp_target>::test): New.
488         (is_a_helper <const gimple_statement_omp_single>::test): Only
489         check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
490         (is_a_helper <const gimple_statement_omp_teams>::test): New.
492         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
493         gimple_omp_return_lhs_ptr): Replace bogus downcasts to
494         gimple_statement_omp_atomic_store with downcasts to
495         gimple_statement_omp_return, thus requiring that the code be
496         GIMPLE_OMP_RETURN.
497         (gimple_resx_region, gimple_resx_set_region): Replace bogus
498         downcasts to gimple_statement_eh_ctrl with downcasts to
499         gimple_statement_resx, thus requiring that the code be
500         GIMPLE_RESX.
501         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
502         Replace bogus downcasts to const gimple_statement_eh_ctrl with
503         downcasts to gimple_statement_eh_dispatch, thus requiring that
504         the code be GIMPLE_EH_DISPATCH.
505         (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
506         gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
507         gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
508         gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
509         gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
510         gimple_statement_omp_parallel with downcasts to
511         gimple_statement_omp_taskreg, thus requiring that the code be
512         either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
513         (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
514         gimple_omp_target_set_clauses, gimple_omp_target_child_fn
515         gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
516         gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
517         gimple_omp_target_set_data_arg): Replace bogus downcasts to
518         gimple_statement_omp_parallel with downcasts to
519         gimple_statement_omp_target, thus requiring that the code be
520         GIMPLE_OMP_TARGET.
521         (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
522         gimple_omp_teams_set_clauses): Replace bogus downcasts to
523         gimple_statement_omp_single with downcasts to
524         gimple_statement_omp_teams, thus requiring that the code be
525         GIMPLE_OMP_TEAMS.
527         * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
528         gimple_statement_resx.
529         (gimple_build_eh_dispatch): Fix bogus as_a<> to use
530         gimple_statement_eh_dispatch.
532 2013-11-26  Jakub Jelinek  <jakub@redhat.com>
534         PR tree-optimization/59014
535         * tree-vrp.c (register_edge_assert_for_1): Don't look
536         through conversions from non-integral types or through
537         narrowing conversions.
539         PR target/59229
540         * config/i386/i386.c (device_alg): Fix up formatting.
541         (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
542         similarly to count && count < epilogue_size_needed.  Fix up
543         comment typo.
544         * builtins.c (determine_block_size): Fix comment typo.
546         PR sanitizer/59258
547         * ubsan.c (ubsan_source_location): Don't add any location
548         to ADDR_EXPR in the ctor.  Revert 2013-11-22 change.
549         (ubsan_create_data): Strip block info from LOC.
551         PR middle-end/59273
552         * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
553         if there isn't optab handler for the corresponding vector PLUS_EXPR.
555         PR rtl-optimization/59166
556         * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
557         DF_REF_LOC in validate_change call.
558         (split_live_ranges_for_shrink_wrap): Likewise.
560         PR middle-end/59150
561         * omp-low.c (lower_rec_input_clause): For reduction with placeholder
562         of references to constant size types in simd loops, defer emitting
563         initializer for the new_var, emit it later on only if not using
564         SIMD arrays for it.
566         PR middle-end/59152
567         * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
568         for the inner loop if collapse_bb is non-NULL.
569         (expand_omp_simd): Use cont_bb rather than e->dest as latch.
571 2013-11-26  Yufeng Zhang  <yufeng.zhang@arm.com>
573         * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
574         a constant immediate before force_reg.
576 2013-11-26  Richard Biener  <rguenther@suse.de>
578         PR tree-optimization/59245
579         * tree-vrp.c (set_value_range): Assert that we don't have
580         overflowed constants (but our infinities).
581         (set_value_range_to_value): Drop all overflow flags.
582         (vrp_visit_phi_node): Likewise.
583         (vrp_visit_assignment_or_call): Use set_value_range_to_value
584         to set a constant range.
586 2013-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
588         PR target/59290
589         * config/arm/arm.md (*zextendsidi_negsi): New pattern.
590         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
591         for zero_extend case.
593 2013-11-26   H.J. Lu  <hongjiu.lu@intel.com>
595         PR bootstrap/55552
596         * configure.ac (install_gold_as_default): New.  Set to yes for
597         --disable-ld or --enable-gold=default.
598         (gcc_cv_ld_gold_srcdir): New.
599         (gcc_cv_ld): Also check in-tree gold if install_gold_as_default
600         is yes.
601         (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
602         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
603         * configure: Regenerated.
605         * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
606         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
607         (original) [collect-ld && -fuse-ld=bfd]: Set to
608         $ORIGINAL_LD_BFD_FOR_TARGET.
609         (original) [collect-ld && -fuse-ld=gold]: Set to
610         $ORIGINAL_LD_GOLD_FOR_TARGET.
611         (dir) [collect-ld && ../gold/ld-new]: Set to gold.
612         (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
614 2013-11-26  Terry Guo  <terry.guo@arm.com>
616         * config/arm/arm.c (require_pic_register): Handle high pic base
617         register for thumb-1.
618         (arm_load_pic_register): Also initialize high pic base register.
619         * doc/invoke.texi: Update documentation for option -mpic-register.
621 2013-11-26  Oleg Endo  <olegendo@gcc.gnu.org>
623         PR target/58314
624         PR target/50751
625         * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
626         Prefix function names with 'sh_'.  Make them non-static.
627         * config/sh/sh-protos.h (sh_disp_addr_displacement,
628         sh_max_mov_insn_displacement): Add declarations.
629         * config/sh/constraints.md (Q): Reject QImode.
630         (Sdd): Use match_code "mem".
631         (Snd): Fix erroneous matching of non-memory operands.
632         * config/sh/predicates.md (short_displacement_mem_operand): New
633         predicate.
634         (general_movsrc_operand): Disallow PC relative QImode loads.
635         * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
636         (*movqi, *movhi): Merge both insns into...
637         (*mov<mode>): ... this new insn.  Replace generic 'm' constraints with
638         'Snd' and 'Sdd' constraints.  Calculate insn length dynamically based
639         on the operand types.
641 2013-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
643         * config/epiphany/epiphany.c (epiphany_expand_prologue):
644         Remove unused variable save_config.
645         (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
646         assert.
648 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
650         * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
651         using other intrinsics.
652         (vtbx3_<psu>8): Likewise.
654 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
656         * config/aarch64/aarch64-builtins.c
657         (aarch64_types_bsl_p_qualifiers): New.
658         (aarch64_types_bsl_s_qualifiers): Likewise.
659         (aarch64_types_bsl_u_qualifiers): Likewise.
660         (TYPES_BSL_P): Likewise.
661         (TYPES_BSL_S): Likewise.
662         (TYPES_BSL_U): Likewise.
663         (BUILTIN_VALLDIF): Likewise.
664         (BUILTIN_VDQQH): Likewise.
665         * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
666         * config/aarch64/aarch64-simd.md
667         (aarch64_simd_bsl<mode>_internal): Handle more modes.
668         (aarch64_simd_bsl<mode>): Likewise.
669         * config/aarch64/arm_neon.h
670         (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
671         * config/aarch64/iterators.md (VALLDIF): New.
672         (Vbtype): Handle more modes.
674 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
676         * config/aarch64/aarch64-builtins.c
677         (aarch64_type_qualifiers): Add qualifier_poly.
678         (aarch64_build_scalar_type): Also build Poly types.
679         (aarch64_build_vector_type): Likewise.
680         (aarch64_build_type): Likewise.
681         (aarch64_build_signed_type): New.
682         (aarch64_build_unsigned_type): Likewise.
683         (aarch64_build_poly_type): Likewise.
684         (aarch64_init_simd_builtins): Also handle Poly types.
686 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
688         * config/aarch64/aarch64-builtins.c
689         (VAR1): Use new naming scheme for aarch64_builtins.
690         (aarch64_builtin_vectorized_function): Use new
691         aarch64_builtins names.
693 2013-11-26  Richard Biener  <rguenther@suse.de>
695         PR tree-optimization/59287
696         * tree-ssa-structalias.c (get_constraint_for_component_ref):
697         Remove no longer necessary special-casing of union accesses.
699 2013-11-26  Richard Biener  <rguenther@suse.de>
701         * pretty-print.c (output_buffer::~output_buffer): Really
702         free the obstacks.
704 2013-11-25  Jeff Law  <law@redhat.com>
706         * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
707         invalidate loop information.
709 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
711         * config/sh/sh.md (doloop_end_split): Add missing SI mode.
713 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
715         PR target/53976
716         PR target/59243
717         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
718         comments.
719         (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
720         previously visited basic blocks before recursing instead of only one
721         basic block.
723 2013-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
725         * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
726         * config/aarch64/aarch64-cores.def (cortex-a53):
727         Use cortexa53 tuning struct.
729 2013-11-25  Andrew Macleod  <amacleod@redhat.com>
731         PR bootstrap/59260
732         * fold-const.c: Include hash-table.h.
734 2013-11-25  Marek Polacek  <polacek@redhat.com>
736         PR sanitizer/59258
737         * ubsan.c (ubsan_create_data): Increase the size of the fields array.
739 2013-11-25  Richard Biener  <rguenther@suse.de>
741         * tree-dfa.c: Remove unused convert.h include.
743 2013-11-25  Terry Guo  <terry.guo@arm.com>
745         * doc/invoke.texi (-mslow-flash-data): Document new option.
746         * config/arm/arm.opt (mslow-flash-data): New option.
747         * config/arm/arm-protos.h (arm_max_const_double_inline_cost): Declare
748         it.
749         * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
750         are disabled.
751         (arm_disable_literal_pool): Declare it.
752         * config/arm/arm.c (arm_disable_literal_pool): New variable.
753         (arm_option_override): Handle new option.
754         (thumb2_legitimate_address_p): Don't allow symbol references when
755         literal pools are disabled.
756         (arm_max_const_double_inline_cost): New function.
757         * config/arm/arm.md (types.md): Include it before ...
758         (use_literal_pool): New attribute.
759         (enabled): Use new attribute.
760         (split pattern): Replace symbol+offset with MOVW/MOVT.
762 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
764         PR bootstrap/59279
765         Revert previous commit.
767 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
769         * jump.c (reset_insn_reg_label_operand_notes): New function,
770         split out from ...
771         (init_label_info): ... here.  Reset LABEL_NUSES in cfglayout mode.
772         * cfgcleanup.c (delete_dead_jump_tables_between): New function,
773         split out from ...
774         (delete_dead_jumptables): ... here.  Handle cfglayout mode.
775         (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
776         expensive CFG cleanup is called for.
777         * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
778         (cfg_layout_finalize): Delete dead jump tables before re-building
779         the insns chain.
780         * ira.c (ira): Rebuild jump labels *after* deleting unreachable
781         basic blocks, not before.
782         * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
784         * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
785         insns chain of a scheduling extended basic block, they cannot appear
786         there in cfglayout mode.
788 2013-11-24  Tobias Burnus  <burnus@net-b.de>
790         * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
792 2013-11-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
794         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
795         for little endian.
797 2013-11-24  H.J. Lu  <hongjiu.lu@intel.com>
799         * graphite-sese-to-poly.c: Don't include extra "expr.h".
801 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
803         * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
805 2013-11-23  David Edelson  <dje.gcc@gmail.com>
806             Andrew Dixie  <andrewd@gentrack.com>
808         PR target/33704
809         * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
810         (COLLECT_SHARED_FINI_FUNC): Define.
812         * collect2.c (aix_shared_initname): Declare.
813         (aix_shared_fininame): Declare.
814         (symkind): Add SYM_AIXI and SYM_AIXD.
815         (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
816         (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
817         (aixlazy_flag): Parse.
818         (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
819         (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
821 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
823         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
824         (rs6000_xcoff_select_section): Place decls with stricter alignment
825         into named sections.
826         (rs6000_xcoff_unique_section): Allow unique sections for
827         uninitialized data with strict alignment.
829 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
831         PR tree-optimization/59154
832         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
833         rhs1 of a cast and new_op is invariant, fold_convert it.
834         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
835         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
837 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
839         PR target/56788
840         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
841         Declare as MULTI_ARG_1_SF instruction.
842         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
843         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
844         from *xop_vmfrcz_<mode>.
845         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
846         to merge scalar result with __A.
847         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
848         result with __A.
850 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
852         * gimplify.h (recalculate_side_effects): Delete.
853         * gimplify.c (recalculate_side_effects): Make static and add comment.
855 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
857         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
858         for the destination of a define_peephole2.  Likewise register_operand
859         rather than arith_reg_operand.  Remove constraints from
860         define_peephole2s.
862 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
864         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
865         Delete.
866         (mn10300_store_multiple_operation_p): Declare.
867         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
868         Rename to...
869         (mn10300_store_multiple_operation_p): ...this and remove mode
870         argument.
871         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
872         Define.
874 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
876         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
877         (pop_multiple_operation): Delete.
878         (analyze_push_multiple_operation): Declare.
879         (analyze_pop_multiple_operation): Declare.
880         * config/bfin/bfin.c (push_multiple_operation): Rename to...
881         (analyze_push_multiple_operation): ...this and remove mode argument.
882         (pop_multiple_operation): Rename to...
883         (analyze_pop_multiple_operation): ...this and remove mode argument.
884         * config/bfin/predicates.md (push_multiple_operation): Define.
885         (pop_multiple_operation): Likewise.
887 2013-11-23  Alan Modra  <amodra@gmail.com>
889         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
891 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
893         PR sanitizer/59061
894         * common.opt (static-liblsan): Add.
895         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
896         Define.
897         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
898         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
899         SANITIZE_RETURN.
900         * opts.c (common_handle_option): Handle -fsanitize=leak.
901         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
902         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
903         (LIBUBSAN_EARLY_SPEC): Remove.
904         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
905         (SANITIZER_SPEC): Add -fsanitize=leak handling.
906         (sanitize_spec_function): Handle %sanitize(leak).
907         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
909 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
910             Jakub Jelinek  <jakub@redhat.com>
912         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
913         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
914         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
915         (ipa_modify_formal_parameters): Adjust caller.  Remove
916         synth_parm_prefix argument.  Use operator enum instead of bit fields.
917         Add assert for properly handling vector of references.  Handle
918         creating brand new parameters.
919         (ipa_modify_call_arguments): Use operator enum instead of bit
920         fields.
921         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
922         used.
923         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
924         New functions.
925         (ipa_dump_param_adjustments): Rename reduction to new_decl.
926         Use operator enum instead of bit fields.
927         * ipa-prop.h (enum ipa_parm_op): New.
928         (struct ipa_parm_adjustment): New field op.  Rename reduction
929         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
930         and copy_param.
931         (ipa_modify_formal_parameters): Remove last argument.
932         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
933         ipa_get_adjustment_candidate): New prototypes.
934         * tree-sra.c (turn_representatives_into_adjustments): Use operator
935         enum.  Set arg_prefix.
936         (get_adjustment_for_base): Use operator enum.
937         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
938         ipa-prop.c.
939         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
940         (ipa_sra_modify_function_body): Same.  No longer static.
941         (sra_ipa_reset_debug_stmts): Use operator enum.
942         (modify_function): Do not pass prefix argument.
944 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
946         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
947         (ubsan_pass): Ignore clobber stmts.
949         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
950         * opts.c (common_handle_option): Add -fsanitize=return.
951         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
952         or it into SANITIZE_UNDEFINED.
954         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
955         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
956         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
957         Don't instrument accesses to VAR_DECLs which are known to fit
958         into their bounds and the vars are known to have shadow bytes
959         indicating allowed access.
960         (asan_dynamic_init_call): New function.
961         (asan_add_global): If vnode->dynamically_initialized,
962         set __has_dynamic_init to 1 instead of 0.
963         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
964         * asan.h (asan_dynamic_init_call): New prototype.
965         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
967 2013-11-22  Martin Jambor  <mjambor@suse.cz>
969         PR rtl-optimization/10474
970         * ira.c (interesting_dest_for_shprep_1): New function.
971         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
972         also check parallels.
974 2013-11-22  Jeff Law  <law@redhat.com>
976         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
977         NULL for RHS, which we used to invalidate equivalences.
978         (record_temporary_equivalences_from_phis): New bitmap arguments
979         and a boolean indicating if we have passed a backedge.  If we
980         have passed a backedge, then set the appropriate bit in the
981         bitmaps for the SRC & DEST of PHIs creating equivalences.
982         (invalidate_equivalences, dummy_simplify): New functions.
983         (cond_arg_set_in_b): Remove.
984         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
985         arguments and a boolean indicating if we have passed a backedge.
986         If we have passed a backedge, then perform invalidations as needed.
987         (thread_around_empty_blocks): If we have seen a backedge, then
988         use the dummy simplify routine.
989         (thread_through_normal_block): Likewise.  Pass bitmaps and
990         backedge status to children.  Do not pessimize so much when
991         traversing backedges in the CFG.
992         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
993         If we have seen a backedge, then use the dummy simplify routine.
994         Do not pessimize so much when traversing backedges.
996 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
998         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
999         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1001 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
1003         * config/i386/i386.c(processor_alias_table): Enable PTA_AES,
1004         PTA_PCLMUL and PTA_RDRND for Silvermont.
1005         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1006         for Silvermont.
1008         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1010 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1012         * hooks.h (hook_uint_mode_0): Add Prototype.
1013         * hooks.c (hook_uint_mode_0): New default function.
1014         * target.def (atomic_align_for_mode): New target hook.
1015         * tree.c (build_atomic_base): Add alignment override parameter.
1016         (build_common_tree_nodes): Use atomic alignment override.
1017         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1018         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1020 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1022         * gimple.h: Remove all includes.
1023         (recalculate_side_effects): Move prototype to gimplify.h.
1024         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1025         * gengtype.c (open_base_files): Add gimple.h include list.
1026         * gimplify.h (recalculate_side_effects): Relocate prototype here.
1027         * gimple.c: Adjust include list.
1028         (recalculate_side_effects): Move to gimplify.c.
1029         * gimplify.c: Adjust include list.
1030         (recalculate_side_effects): Relocate from gimple.c.
1031         * alias.c: Add required include files removed from gimple.h.
1032         * asan.c: Likewise.
1033         * builtins.c: Likewise.
1034         * calls.c: Likewise.
1035         * cfgexpand.c: Likewise.
1036         * cfgloop.c: Likewise.
1037         * cfgloopmanip.c: Likewise.
1038         * cgraphbuild.c: Likewise.
1039         * cgraph.c: Likewise.
1040         * cgraphclones.c: Likewise.
1041         * cgraphunit.c: Likewise.
1042         * cilk-common.c: Likewise.
1043         * data-streamer.c: Likewise.
1044         * data-streamer-in.c: Likewise.
1045         * data-streamer-out.c: Likewise.
1046         * dse.c: Likewise.
1047         * dwarf2out.c: Likewise.
1048         * emit-rtl.c: Likewise.
1049         * except.c: Likewise.
1050         * expr.c: Likewise.
1051         * fold-const.c: Likewise.
1052         * function.c: Likewise.
1053         * gimple-builder.c: Likewise.
1054         * gimple-expr.c: Likewise.
1055         * gimple-fold.c: Likewise.
1056         * gimple-iterator.c: Likewise.
1057         * gimple-low.c: Likewise.
1058         * gimple-pretty-print.c: Likewise.
1059         * gimple-ssa-isolate-paths.c: Likewise.
1060         * gimple-ssa-strength-reduction.c: Likewise.
1061         * gimple-streamer-in.c: Likewise.
1062         * gimple-streamer-out.c: Likewise.
1063         * gimple-walk.c: Likewise.
1064         * gimplify-me.c: Likewise.
1065         * graphite-blocking.c: Likewise.
1066         * graphite.c: Likewise.
1067         * graphite-clast-to-gimple.c: Likewise.
1068         * graphite-dependences.c: Likewise.
1069         * graphite-interchange.c: Likewise.
1070         * graphite-optimize-isl.c: Likewise.
1071         * graphite-poly.c: Likewise.
1072         * graphite-scop-detection.c: Likewise.
1073         * graphite-sese-to-poly.c: Likewise.
1074         * internal-fn.c: Likewise.
1075         * ipa.c: Likewise.
1076         * ipa-cp.c: Likewise.
1077         * ipa-devirt.c: Likewise.
1078         * ipa-inline-analysis.c: Likewise.
1079         * ipa-inline.c: Likewise.
1080         * ipa-profile.c: Likewise.
1081         * ipa-prop.c: Likewise.
1082         * ipa-pure-const.c: Likewise.
1083         * ipa-reference.c: Likewise.
1084         * ipa-split.c: Likewise.
1085         * ipa-utils.c: Likewise.
1086         * langhooks.c: Likewise.
1087         * lto-cgraph.c: Likewise.
1088         * lto-compress.c: Likewise.
1089         * lto-opts.c: Likewise.
1090         * lto-section-in.c: Likewise.
1091         * lto-section-out.c: Likewise.
1092         * lto-streamer.c: Likewise.
1093         * lto-streamer-in.c: Likewise.
1094         * lto-streamer-out.c: Likewise.
1095         * omp-low.c: Likewise.
1096         * opts-global.c: Likewise.
1097         * passes.c: Likewise.
1098         * predict.c: Likewise.
1099         * profile.c: Likewise.
1100         * sese.c: Likewise.
1101         * stmt.c: Likewise.
1102         * stor-layout.c: Likewise.
1103         * symtab.c: Likewise.
1104         * targhooks.c: Likewise.
1105         * toplev.c: Likewise.
1106         * tracer.c: Likewise.
1107         * trans-mem.c: Likewise.
1108         * tree-affine.c: Likewise.
1109         * tree.c: Likewise.
1110         * tree-call-cdce.c: Likewise.
1111         * tree-cfg.c: Likewise.
1112         * tree-cfgcleanup.c: Likewise.
1113         * tree-chrec.c: Likewise.
1114         * tree-complex.c: Likewise.
1115         * tree-data-ref.c: Likewise.
1116         * tree-dfa.c: Likewise.
1117         * tree-eh.c: Likewise.
1118         * tree-emutls.c: Likewise.
1119         * tree-if-conv.c: Likewise.
1120         * tree-inline.c: Likewise.
1121         * tree-into-ssa.c: Likewise.
1122         * tree-loop-distribution.c: Likewise.
1123         * tree-nested.c: Likewise.
1124         * tree-nrv.c: Likewise.
1125         * tree-object-size.c: Likewise.
1126         * tree-outof-ssa.c: Likewise.
1127         * tree-parloops.c: Likewise.
1128         * tree-phinodes.c: Likewise.
1129         * tree-predcom.c: Likewise.
1130         * tree-pretty-print.c: Likewise.
1131         * tree-profile.c: Likewise.
1132         * tree-scalar-evolution.c: Likewise.
1133         * tree-sra.c: Likewise.
1134         * tree-ssa-address.c: Likewise.
1135         * tree-ssa-alias.c: Likewise.
1136         * tree-ssa.c: Likewise.
1137         * tree-ssa-ccp.c: Likewise.
1138         * tree-ssa-coalesce.c: Likewise.
1139         * tree-ssa-copy.c: Likewise.
1140         * tree-ssa-copyrename.c: Likewise.
1141         * tree-ssa-dce.c: Likewise.
1142         * tree-ssa-dom.c: Likewise.
1143         * tree-ssa-dse.c: Likewise.
1144         * tree-ssa-forwprop.c: Likewise.
1145         * tree-ssa-ifcombine.c: Likewise.
1146         * tree-ssa-live.c: Likewise.
1147         * tree-ssa-loop.c: Likewise.
1148         * tree-ssa-loop-ch.c: Likewise.
1149         * tree-ssa-loop-im.c: Likewise.
1150         * tree-ssa-loop-ivcanon.c: Likewise.
1151         * tree-ssa-loop-ivopts.c: Likewise.
1152         * tree-ssa-loop-manip.c: Likewise.
1153         * tree-ssa-loop-niter.c: Likewise.
1154         * tree-ssa-loop-prefetch.c: Likewise.
1155         * tree-ssa-loop-unswitch.c: Likewise.
1156         * tree-ssa-math-opts.c: Likewise.
1157         * tree-ssanames.c: Likewise.
1158         * tree-ssa-operands.c: Likewise.
1159         * tree-ssa-phiopt.c: Likewise.
1160         * tree-ssa-phiprop.c: Likewise.
1161         * tree-ssa-pre.c: Likewise.
1162         * tree-ssa-propagate.c: Likewise.
1163         * tree-ssa-reassoc.c: Likewise.
1164         * tree-ssa-sccvn.c: Likewise.
1165         * tree-ssa-sink.c: Likewise.
1166         * tree-ssa-strlen.c: Likewise.
1167         * tree-ssa-structalias.c: Likewise.
1168         * tree-ssa-tail-merge.c: Likewise.
1169         * tree-ssa-ter.c: Likewise.
1170         * tree-ssa-threadedge.c: Likewise.
1171         * tree-ssa-threadupdate.c: Likewise.
1172         * tree-ssa-uncprop.c: Likewise.
1173         * tree-ssa-uninit.c: Likewise.
1174         * tree-stdarg.c: Likewise.
1175         * tree-streamer.c: Likewise.
1176         * tree-streamer-in.c: Likewise.
1177         * tree-streamer-out.c: Likewise.
1178         * tree-switch-conversion.c: Likewise.
1179         * tree-tailcall.c: Likewise.
1180         * tree-vect-data-refs.c: Likewise.
1181         * tree-vect-generic.c: Likewise.
1182         * tree-vect-loop.c: Likewise.
1183         * tree-vect-loop-manip.c: Likewise.
1184         * tree-vectorizer.c: Likewise.
1185         * tree-vect-patterns.c: Likewise.
1186         * tree-vect-slp.c: Likewise.
1187         * tree-vect-stmts.c: Likewise.
1188         * tree-vrp.c: Likewise.
1189         * tsan.c: Likewise.
1190         * ubsan.c: Likewise.
1191         * value-prof.c: Likewise.
1192         * varpool.c: Likewise.
1193         * var-tracking.c: Likewise.
1194         * vtable-verify.c: Likewise.
1195         * config/darwin.c: Likewise.
1196         * config/aarch64/aarch64-builtins.c: Likewise.
1197         * config/aarch64/aarch64.c: Likewise.
1198         * config/alpha/alpha.c: Likewise.
1199         * config/i386/i386.c: Likewise.
1200         * config/i386/winnt.c: Likewise.
1201         * config/ia64/ia64.c: Likewise.
1202         * config/m32c/m32c.c: Likewise.
1203         * config/mep/mep.c: Likewise.
1204         * config/mips/mips.c: Likewise.
1205         * config/rs6000/rs6000.c: Likewise.
1206         * config/s390/s390.c: Likewise.
1207         * config/sh/sh.c: Likewise.
1208         * config/sparc/sparc.c: Likewise.
1209         * config/spu/spu.c: Likewise.
1210         * config/stormy16/stormy16.c: Likewise.
1211         * config/tilegx/tilegx.c: Likewise.
1212         * config/tilepro/tilepro.c: Likewise.
1213         * config/xtensa/xtensa.c: Likewise.
1215 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
1217         PR target/59216
1218         * arm.md (negdi_extendsidi): Fix invalid split.
1220 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
1222         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
1223         (vmov_n_f64): Likewise.
1224         (vmov_n_p8): Likewise.
1225         (vmov_n_p16): Likewise.
1226         (vmov_n_s8): Likewise.
1227         (vmov_n_s16): Likewise.
1228         (vmov_n_s32): Likewise.
1229         (vmov_n_s64): Likewise.
1230         (vmov_n_u8): Likewise.
1231         (vmov_n_u16): Likewise.
1232         (vmov_n_u32): Likewise.
1233         (vmov_n_u64): Likewise.
1234         (vmovq_n_f32): Likewise.
1235         (vmovq_n_f64): Likewise.
1236         (vmovq_n_p8): Likewise.
1237         (vmovq_n_p16): Likewise.
1238         (vmovq_n_s8): Likewise.
1239         (vmovq_n_s16): Likewise.
1240         (vmovq_n_s32): Likewise.
1241         (vmovq_n_s64): Likewise.
1242         (vmovq_n_u8): Likewise.
1243         (vmovq_n_u16): Likewise.
1244         (vmovq_n_u32): Likewise.
1245         (vmovq_n_u64): Likewise.
1247 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1249         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1250         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1251         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1252         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1253         and also change to float UNSPEC.
1254         (reduc_maxmin_uns>_<mode>): Remove V2DI.
1255         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1256         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1257         result access for big-endian.
1258         (__LANE0): New macro used to fix up lane access of 'across-lanes'
1259         intrinsics for big-endian.
1260         * config/aarch64/iterators.md (VDQV): Add V2DI.
1261         (VDQV_S): New.
1262         (vp): New mode attribute.
1264 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1266         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1267         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1268         big-endian.
1270 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1272         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1273         for big-endian element order.
1274         (aarch64_simd_vec_setv2di): Likewise.
1275         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1276         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
1277         (vec_extract): Expand using aarch64_get_lane.
1278         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
1280 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1282         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
1283         and stores to be ABI compliant.
1285 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1287         * input.h (input_line): Remove.
1288         (input_filename): Likewise.
1289         (in_system_header): Likewise.
1290         * tree.h (EXPR_LOC_OR_HERE): Remove.
1291         * config/bfin/bfin.c (output_file_start): Remove use of
1292         input_filename macro.
1293         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
1294         * gimplify.c (internal_get_tmp_var): Likewise.
1295         EXPR_LOC_OR_HERE macro.
1296         (shortcut_cond_expr): Likewise.
1297         * tree-diagnostic.c (diagnostic_report_current_function): Remove
1298         use of input_filename macro.
1299         * tree.c (get_file_function_name): Likewise.
1301 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
1303         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
1305 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1307         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
1308         (same sized) elements even if the type of the CONSTRUCTOR has
1309         vector mode and target is a REG.
1311 2013-11-22  Richard Biener  <rguenther@suse.de>
1313         Revert
1314         2013-11-21  Richard Biener  <rguenther@suse.de>
1316         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1317         nb_iterations_upper_bound by one.
1319 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1321         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
1322         for Silvermont.
1324         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
1325         core-avx-i, core-avx2 and slm.
1327 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
1329         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
1331 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
1333         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
1334         (stzx_24_<mode>): Likewise mra_operand.
1336 2013-11-22  Jeff Law  <law@redhat.com>
1338         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
1339         (thread_block_1): Do not cancel jump threads which go from
1340         inside a loop, through the header, then back inside the loop.
1341         (bb_ends_with_multiway_branch): New function.
1342         (thread_through_all_blocks): Handle threading cases which start
1343         in a loop through the loop header to a point in the loop.
1345         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
1346         jump thread path properly.
1348 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
1350         * vec.h (auto_vec): New class.
1351         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
1352         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
1353         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
1354         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
1355         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
1356         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1357         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1358         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
1359         appropriate instead of vec for local variables.
1361 2013-11-21  Teresa Johnson  <tejohnson@google.com>
1363         PR target/59233
1364         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
1365         not understood by old_insns_match_p.
1367 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
1369         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
1370         little endian change.
1371         (vec_pack_sfix_trunc_v2df): Likewise.
1372         (vec_pack_ufix_trunc_v2df): Likewise.
1373         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
1374         double checking of endianness.
1376 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1378         * tree-vect-generic.c (optimize_vector_constructor): New function.
1379         (expand_vector_operations_1): Call it.
1381 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
1383         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
1384         ix86_zero_extend_to_Pmode where appropriate.
1385         (ix86_expand_builtin): Ditto.
1387 2013-11-21  Cary Coutant  <ccoutant@google.com>
1389         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
1390         (add_linkage_name): Don't add linkage name for -g1.
1391         (decls_for_scope): Process subblocks for -g1.
1392         (dwarf2out_source_line): Output line tables for -g1.
1393         (dwarf2out_finish): Likewise.
1394         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1395         unused scopes for -g1.
1396         * opts.c (common_handle_option): Handle -g same as -g2.
1397         * doc/invoke.texi: Update description for -g1.
1399 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
1401         * doc/extend.texi: Document htm builtins.
1403 2013-11-21  Jeff Law  <law@redhat.com>
1405         PR tree-optimization/59221
1406         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
1407         temporary equivalences when threading through joiner blocks.
1409 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
1411         PR rtl-optimization/55950
1412         * real.c (real_sqrt): Remove function.
1413         * real.h (real_sqrt): Remove prototype.
1414         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
1415         SQRT using real_sqrt.
1417 2013-11-21  Richard Biener  <rguenther@suse.de>
1419         PR tree-optimization/59058
1420         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
1421         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
1422         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
1423         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
1424         (NITERS_KNOWN_P): Fold into ...
1425         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
1426         (LOOP_VINFO_PEELING_FOR_NITER): Add.
1427         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1428         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1429         (vect_do_peeling_for_alignment): Re-use precomputed niter
1430         instead of re-emitting it.
1431         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1432         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1433         * tree-vect-loop.c (vect_get_loop_niters): Use
1434         number_of_latch_executions.
1435         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
1436         (vect_analyze_loop_form): Simplify.
1437         (vect_analyze_loop_operations): Move epilogue peeling code ...
1438         (vect_analyze_loop_2): ... here and adjust it to compute
1439         LOOP_VINFO_PEELING_FOR_NITER.
1440         (vect_estimate_min_profitable_iters): Use
1441         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1442         (vect_build_loop_niters): Emit on the preheader.
1443         (vect_generate_tmps_on_preheader): Likewise.
1444         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
1445         of recomputing it.  Adjust.
1447 2013-11-21  Richard Biener  <rguenther@suse.de>
1449         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
1450         LOC_LINE): Remove wrappers and fix all users.
1451         (struct _loop_vec_info): Remove loop_line_number member.
1452         (LOOP_VINFO_LOC): Remove.
1453         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
1454         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
1455         and LOC_LINE.
1457 2013-11-21  Richard Biener  <rguenther@suse.de>
1459         * tree-ssa-forwprop.c (simplify_vce): New function.
1460         (ssa_forward_propagate_and_combine): Call it.
1462 2013-11-21  Richard Biener  <rguenther@suse.de>
1464         * tree-vect-loop-manip.c (vect_build_loop_niters,
1465         vect_generate_tmps_on_preheader): Move ...
1466         * tree-vect-loop.c (vect_build_loop_niters,
1467         vect_generate_tmps_on_preheader): ... here and simplify.
1468         (vect_transform_loop): Call them here and pass down results
1469         to consumers.
1470         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
1471         Get niter variables from caller.
1472         (vect_do_peeling_for_alignment): Likewise.
1473         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
1474         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1475         Adjust prototypes.
1477 2013-11-21  Richard Biener  <rguenther@suse.de>
1479         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1480         nb_iterations_upper_bound by one.
1482 2013-11-21  Richard Biener  <rguenther@suse.de>
1484         PR tree-optimization/59058
1485         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
1486         (build_size_arg_loc): Apply niter adjustment here.
1487         (generate_memset_builtin): Adjust.
1488         (generate_memcpy_builtin): Likewise.
1489         (classify_partition): Do not use number_of_exit_cond_executions
1490         but record whether niter needs to be adjusted.
1492 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
1494         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
1495         could throw.
1497 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
1499         PR target/53976
1500         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
1501         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
1502         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
1503         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
1504         sh_optimize_sett_clrt pass.o to extra_objs.
1506 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
1508         * cfg.c (dump_edge_info): Remove redundant comment.
1509         * cfgcleanup.c (outgoing_edges_match): Reword reference to
1510         EXIT_BLOCK_PTR in comment.
1511         (try_optimize_cfg): Likewise.
1512         * cfgrtl.c (last_bb_in_partition): Likewise.
1513         * cgraph.c (cgraph_node_cannot_return): Likewise.
1514         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1515         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
1516         * ipa-split.c (consider_split): Likewise.
1517         * profile.c (find_spanning_tree): Likewise.
1518         * sched-int.h (common_sched_info_def.add_block): Likewise.
1519         * dominance.c (calc_dfs_tree_nonrec): Reword references in
1520         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
1521         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
1522         in comments to now removed ENTRY_BLOCK_PTR macro.
1523         (tree_forwarder_block_p): Reword reference in comment to
1524         EXIT_BLOCK_PTR.
1525         * tree-inline.c (copy_cfg_body): Reword references in comments to
1526         now removed ENTRY_BLOCK_PTR macro.
1527         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1528         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
1529         a comma to the comment to clarify the meaning.
1531 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
1533         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
1534         Move to gimplify.c.
1535         (free_gimplify_stack): Add prototype.
1536         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
1537         (struct gimplify_ctx): Relocate here.
1538         (gimplify_ctxp): Make static.
1539         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
1540         list of struct gimplify_ctx.
1541         (push_gimplify_context): Add default parameters and allocate a struct
1542         from the pool.
1543         (pop_gimplify_context): Free a struct back to the pool.
1544         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1545         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
1546         use a local 'struct gimplify_ctx'.
1547         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
1548         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
1549         Likewise.
1550         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1551         lower_omp_ordered, lower_omp_critical, lower_omp_for,
1552         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
1553         lower_omp_teams, execute_lower_omp): Likewise.
1554         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
1555         * tree-inline.c (optimize_inline_calls): Likewise.
1557 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1559         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
1560         (vsx_extract_<mode>): Likewise.
1561         (*vsx_extract_<mode>_one_le): New LE variant on
1562         *vsx_extract_<mode>_zero.
1563         (vsx_extract_v4sf): Adjust for little endian.
1565 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
1567         PR rtl-optimization/59133
1568         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
1569         new pseudos.
1570         (lra_create_new_reg_with_unique_value): Pass new argument value.
1571         (lra_emit_add, lra_emit_move): Ditto.
1572         * lra-constraints.c (in_class_p): Add check for move for a new insn.
1573         (change_class): Rename to lra_change_class.  Move to lra-int.h.
1574         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
1575         change_class.
1576         (process_addr_reg, process_addr): Ditto.
1577         (curr_insn_transform): Ditto.  Add check on old pseudo for
1578         optional reload.
1579         * lra-int.h (lra_get_regno_hard_regno): Move below.
1580         (lra_change_class): Renamed change_class from lra.c.
1582 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
1584         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
1585         the children of a NULL pointer.
1587 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
1589         * lra.c (lra): Set lra_in_progress before check_rtl call.
1590         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
1591         adding clobber regs when LRA is running.
1593 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
1595         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
1596         restriction for ISA_MIPS32R2.
1597         (ISA_HAS_LXC1_SXC1): New macro.
1598         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
1599         (ISA_HAS_NMADD4_NMSUB4): Likewise.
1600         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
1601         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
1602         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
1603         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
1604         (*<ANYF:storex>_<P:mode>): Likewise.
1606 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
1608         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
1609         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
1610         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
1611         * config/mips/mips.md (recip_condition): Remove mode attribute.
1612         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
1613         <recip_condition>.
1614         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
1616 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1618         PR target/59207
1619         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
1620         Make sure neg2_ovf is set before being used.
1622 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
1624         * plugin.def: Add comment about register_callback and
1625         invoke_plugin_callbacks_full.
1627         * plugin.c (register_callback, invoke_plugin_callbacks_full):
1628         Handle PLUGIN_INCLUDE_FILE event.
1630 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1632         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
1633         allow subregs of TDmode in FPRs of smaller size in little-endian.
1634         (rs6000_split_multireg_move): When splitting an access to TDmode
1635         in FPRs, do not use simplify_gen_subreg.
1637 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
1639         PR middle-end/21718
1640         * real.c: Remove comment about decimal string conversion and
1641         rounding errors.
1642         (real_from_string): Use MPFR to convert nonzero decimal constant
1643         to REAL_VALUE_TYPE.
1645 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1647         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
1648         endianness of the D registers for the legacy encodings.
1650 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
1652         PR rtl-optimization/54300
1653         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
1654         outputs in a single-set are killed from the value chains.
1656 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
1658         * cgraph.h (varpool_node): Add need_bounds_init field.
1659         * lto-cgraph.c (lto_output_varpool_node): Output
1660         need_bounds_init value.
1661         (input_varpool_node): Read need_bounds_init value.
1662         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
1664 2013-11-20  Jan Hubicka  <jh@suse.cz>
1666         * opts.c (finish_options): Imply -ffat-lto-objects with
1667         -fno-use-linker-plugin.
1668         * common.opt (fuse-linker-plugin): Add var.
1670 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
1672         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
1673         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
1674         (gen_type_die_with_usage): Skip pointer bounds.
1675         (dwarf2out_global_decl): Likewise.
1677 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
1679         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
1680         from all insns.
1682 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
1684         PR target/57756
1685         * config/i386/i386.c (ix86_option_override_internal): Add missed
1686         argument prefix for 'ix86_fpmath'.
1687         * config/i386/ssemath.h: Add missed definition of
1688         TARGET_FPMATH_DEFAULT_P macros.
1690 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1691             Mike Stump  <mikestump@comcast.net>
1692             Richard Sandiford  <rdsandiford@googlemail.com>
1694         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
1695         instead of TREE_INT_CST_LOW, in cases where there is a protecting
1696         tree_fits_shwi_p or tree_fits_uhwi_p.
1697         * builtins.c (fold_builtin_powi): Likewise.
1698         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
1699         Likewise.
1700         * dbxout.c (dbxout_symbol): Likewise.
1701         * expr.c (expand_expr_real_1): Likewise.
1702         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
1703         (fold_binary_loc): Likewise.
1704         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
1705         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
1706         * omp-low.c (lower_omp_for_lastprivate): Likewise.
1707         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1708         * stor-layout.c (compute_record_mode): Likewise.
1709         * tree-cfg.c (verify_expr): Likewise.
1710         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1711         * tree-pretty-print.c (dump_array_domain): Likewise.
1712         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
1713         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
1714         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
1715         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
1716         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
1717         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
1718         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1719         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
1720         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
1721         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
1722         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
1723         (create_variable_info_for_1): Likewise.
1724         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1725         (vect_verify_datarefs_alignment): Likewise.
1726         (vect_analyze_data_ref_accesses): Likewise.
1727         (vect_prune_runtime_alias_test_list): Likewise.
1728         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
1730 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
1732         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
1733         overflow.  Use tree_to_shwi.
1735 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
1737         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
1738         HOST_WIDE_INTs when folding (x >> c) << c.
1740 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1741             Dominik Vogt  <vogt@linux.vnet.ibm.com>
1743         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
1744         int comparisons with an out of range condition code.
1745         (s390_optimize_nonescaping_tx): Skip empty BBs.
1746         Generate the new tbegin RTX when removing the FPR clobbers (with
1747         two SETs).
1748         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
1749         result before doing the retry calculations.
1750         (s390_init_builtins): Make tbegin "returns_twice" and tabort
1751         "noreturn".
1752         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
1753         the TDB setting part of an tbegin.
1754         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
1755         ("tx_assist"): Set unused argument to an immediate zero instead of
1756         loading zero into a GPR and pass it as argument.
1757         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
1758         Remove inline and related attributes.
1759         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
1760         (__TM_is_illegal, __TM_is_footprint_exceeded)
1761         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
1763 2013-11-20  Richard Biener  <rguenther@suse.de>
1765         PR lto/59035
1766         * lto-opts.c (lto_write_options): Write defaults only if
1767         they were not explicitely specified.  Also write
1768         -ffp-contract default.
1769         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
1770         conservatively.
1771         (run_gcc): Pass through -ffp-contract.
1773 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1775         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
1777 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
1779         * gcc/config/aarch64/aarch64-builtins.c
1780         (aarch64_simd_itype): Remove.
1781         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
1782         (VAR1): Use qualifiers.
1783         (aarch64_build_scalar_type): New.
1784         (aarch64_build_vector_type): Likewise.
1785         (aarch64_build_type): Likewise.
1786         (aarch64_init_simd_builtins): Refactor, remove special cases,
1787         consolidate main loop.
1788         (aarch64_simd_expand_args): Likewise.
1790 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
1792         PR c/53001
1793         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
1795 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
1797         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
1799 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1801         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
1802         to "vec<>" instances.
1803         (build_pretty_printer): Register the vec<>* prettyprinter.
1805 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1807         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
1808         (GdbSubprinter.handles_type): New.
1809         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
1810         (GdbSubprinterRegex): New subclass of GdbSubprinter.
1811         (GdbPrettyPrinters.add_printer): Remove in favor of...
1812         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
1813         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
1814         (GdbPrettyPrinters.__call__): Update search for subprinter
1815         to use handles_type method.
1816         (build_pretty_printer): Update registration of subprinters to
1817         use the new API above, supporting multiple spelling of each type,
1818         and allowing for future regex-based subprinters.
1820 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1822         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
1823         V16QI vector splat case for little endian.
1825 2013-11-19  Jeff Law  <law@redhat.com>
1827         * tree-ssa-threadedge.c (thread_across_edge): After threading
1828         through a joiner, allow threading a normal block requiring duplication.
1830         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
1831         jump threading requests that would muck up the loop structures.
1833         * tree-ssa-threadupdate.c: Fix trailing whitespace.
1834         * tree-ssa-threadupdate.h: Likewise.
1836 2013-11-19  Mike Stump  <mikestump@comcast.net>
1838         * gdbinit.in: Add pmz to print out mpz values.
1840 2013-11-20  Jan Hubicka  <jh@suse.cz>
1842         * common.opt (ffat-lto-objects): Disable by default.
1843         * doc/invoke.texi (fat-lto-objects): Update documentation.
1844         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
1846 2013-11-19  Martin Jambor  <mjambor@suse.cz>
1848         PR rtl-optimization/59099
1849         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
1850         here.
1851         (ira): Move init_reg_equiv and call to
1852         split_live_ranges_for_shrink_wrap up, remove analyses around call
1853         to find_moveable_pseudos.
1855 2013-11-20  Alan Modra  <amodra@gmail.com>
1857         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
1858         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
1859         to strict alignment on older processors when little-endian.
1860         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
1861         for ELFv2.
1863 2013-11-19  Teresa Johnson  <tejohnson@google.com>
1865         * common/config/i386/i386-common.c: Enable
1866         -freorder-blocks-and-partition at -O2 and up for x86.
1867         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
1868         * opts.c (finish_options): Only warn if
1869         -freorder-blocks-and-partition was set on command line.
1871 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
1873         * final.c (final_scan_insn): Emit a label for the split
1874         cold function part.  Label name is formed by suffixing
1875         the original function name with "cold".
1877 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1879         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
1880         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
1881         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
1882         (EXIT_BLOCK_PTR_FOR_FN): ...this.
1883         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
1884         cfun be explicit.
1885         (EXIT_BLOCK_PTR): Likewise.
1886         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
1887         (FOR_ALL_BB_FN): Update for renaming of
1888         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
1890         * cfg.c (init_flow): Likewise.
1891         (check_bb_profile): Likewise.
1892         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
1893         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
1894         * cfghooks.c (account_profile_record): Likewise.
1895         * cfgloop.c (init_loops_structure): Likewise.
1896         * cgraphbuild.c (record_eh_tables): Likewise.
1897         (compute_call_stmt_bb_frequency): Likewise.
1898         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
1899         * lto-streamer-in.c (input_cfg): Likewise.
1900         * predict.c (maybe_hot_frequency_p): Likewise.
1901         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1902         * tree-inline.c (initialize_cfun): Likewise.
1903         (copy_cfg_body): Likewise.
1904         (copy_body): Likewise.
1905         (tree_function_versioning): Likewise.
1907         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
1908         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1909         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
1910         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
1911         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1912         (connect_traces): Likewise.
1913         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
1914         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
1915         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
1916         macro.
1917         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
1918         EXIT_BLOCK_PTR.
1919         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
1920         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
1921         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
1922         (rotate_loop): Likewise.
1923         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
1924         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1925         EXIT_BLOCK_PTR.
1926         (alloc_aux_for_edges): Likewise.
1927         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
1928         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
1929         EXIT_BLOCK_PTR.
1930         (compact_blocks): Likewise.
1931         (clear_edges): Likewise.
1932         * cfganal.c (single_pred_before_succ_order): Remove usage of
1933         ENTRY_BLOCK_PTR macro.
1934         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
1935         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
1936         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
1937         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
1938         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
1939         EXIT_BLOCK_PTR.
1940         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
1941         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
1942         EXIT_BLOCK_PTR.
1943         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
1944         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
1945         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1946         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1947         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1948         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
1949         EXIT_BLOCK_PTR.
1950         (print_edge_list): Likewise.
1951         (create_edge_list): Likewise.
1952         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
1953         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1954         EXIT_BLOCK_PTR.
1955         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
1956         macro.
1957         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
1958         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1959         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
1960         (try_optimize_cfg): Likewise.
1961         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
1962         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
1963         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
1964         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
1965         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
1966         (try_forward_edges): Likewise.
1967         (try_simplify_condjump): Likewise.
1968         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
1969         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1970         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
1971         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
1972         EXIT_BLOCK_PTR.
1973         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
1974         (expand_gimple_tailcall): Likewise.
1975         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
1976         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1977         (tidy_fallthru_edges): Likewise.
1978         (verify_flow_info): Likewise.
1979         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
1980         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
1981         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
1982         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1983         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
1984         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
1985         (get_loop_body_in_dom_order): Likewise.
1986         (get_loop_body): Likewise.
1987         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
1988         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1989         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
1990         macro.
1991         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
1992         (fix_bb_placement): Likewise.
1993         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
1994         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1995         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
1996         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
1997         EXIT_BLOCK_PTR.
1998         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
1999         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2000         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2001         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2002         macro.
2003         (fixup_fallthru_exit_predecessor): Remove uses of macros:
2004         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2005         (fixup_reorder_chain): Likewise.
2006         (relink_block_chain): Likewise.
2007         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2008         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2009         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2010         (force_one_exit_fallthru): Likewise.
2011         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2012         EXIT_BLOCK_PTR.
2013         (rtl_verify_edges): Likewise.
2014         (commit_edge_insertions): Likewise.
2015         (commit_one_edge_insertion): Likewise.
2016         (rtl_split_edge): Likewise.
2017         (force_nonfallthru_and_redirect): Likewise.
2018         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2019         (skip_insns_after_block): Likewise.
2020         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2021         EXIT_BLOCK_PTR.
2022         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2023         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2024         EXIT_BLOCK_PTR.
2025         (contains_no_active_insn_p): Likewise.
2026         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2027         (entry_of_function): Likewise.
2028         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2029         (fixup_new_cold_bb): Likewise.
2030         (patch_jump_insn): Likewise.
2031         (try_redirect_by_replacing_jump): Likewise.
2032         (block_label): Likewise.
2033         (could_fall_through): Likewise.
2034         (can_fallthru): Likewise.
2035         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2036         ENTRY_BLOCK_PTR macro.
2037         (rebuild_cgraph_edges): Likewise.
2038         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2039         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2040         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2041         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2042         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2043         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2044         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2045         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2046         macro.
2047         (reg_nonzero_bits_for_combine): Likewise.
2048         (set_nonzero_bits_and_sign_copies): Likewise.
2049         (combine_instructions): Likewise.
2050         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2051         EXIT_BLOCK_PTR.
2052         (bypass_conditional_jumps): Likewise.
2053         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2054         (find_implicit_sets): Likewise.
2055         (cprop_jump): Likewise.
2056         * cse.c (cse_cc_succs): Likewise.
2057         (cse_find_path): Likewise.
2058         * df-problems.c (df_lr_confluence_0): Likewise.
2059         * df-scan.c (df_entry_block_defs_collect): Remove usage of
2060         ENTRY_BLOCK_PTR macro.
2061         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2062         * dominance.c (iterate_fix_dominators): Remove usage of
2063         ENTRY_BLOCK_PTR macro.
2064         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2065         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2066         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2067         EXIT_BLOCK_PTR.
2068         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2069         macro.
2070         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2071         EXIT_BLOCK_PTR.
2072         * domwalk.c (cmp_bb_postorder): Likewise.
2073         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2074         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2075         macro.
2076         (sjlj_emit_function_enter): Likewise.
2077         * final.c (compute_alignments): Likewise.
2078         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2079         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2080         (reposition_prologue_and_epilogue_notes): Remove usage of
2081         EXIT_BLOCK_PTR macro.
2082         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2083         EXIT_BLOCK_PTR.
2084         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2085         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2086         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2087         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2088         (compute_code_hoist_vbeinout): Likewise.
2089         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2090         (pre_expr_reaches_here_p_work): Likewise.
2091         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2092         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2093         EXIT_BLOCK_PTR.
2094         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2095         ENTRY_BLOCK_PTR macro.
2096         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2097         macro.
2098         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2099         ENTRY_BLOCK_PTR macro.
2100         * graphite-scop-detection.c (build_scops): Likewise.
2101         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2102         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2103         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2104         macro.
2105         (unlink_bb_notes): Likewise.
2106         (create_check_block_twin): Likewise.
2107         (init_before_recovery): Likewise.
2108         (sched_extend_bb): Likewise.
2109         (priority): Likewise.
2110         * hw-doloop.c (reorder_loops): Likewise.
2111         (discover_loop): Likewise.
2112         * ifcvt.c (dead_or_predicable): Remove uses of macros:
2113         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2114         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2115         (block_has_only_trap): Likewise.
2116         (cond_exec_find_if_block): Likewise.
2117         (merge_if_block): Likewise.
2118         * ipa-inline-analysis.c (param_change_prob): Remove usage of
2119         ENTRY_BLOCK_PTR macro.
2120         (record_modified): Likewise.
2121         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2122         EXIT_BLOCK_PTR macro.
2123         (local_pure_const): Likewise.
2124         * ipa-split.c (split_function): Remove uses of macros:
2125         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2126         (find_split_points): Likewise.
2127         (consider_split): Likewise.
2128         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2129         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2130         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2131         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2132         * ira-emit.c (entered_from_non_parent_p): Remove usage of
2133         ENTRY_BLOCK_PTR macro.
2134         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2135         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2136         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2137         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2138         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2139         macro.
2140         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2141         EXIT_BLOCK_PTR.
2142         (compute_farthest): Likewise.
2143         (compute_available): Likewise.
2144         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2145         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2146         EXIT_BLOCK_PTR.
2147         (compute_earliest): Likewise.
2148         (compute_antinout_edge): Likewise.
2149         * loop-iv.c (simplify_using_initial_values): Remove usage of
2150         ENTRY_BLOCK_PTR macro.
2151         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2152         macro.
2153         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2154         macro.
2155         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2156         macro.
2157         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2158         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2159         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2160         macro.
2161         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2162         macro.
2163         * lto-streamer-out.c (output_cfg): Likewise.
2164         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2165         EXIT_BLOCK_PTR.
2166         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2167         * mode-switching.c (optimize_mode_switching): Likewise.
2168         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2169         * modulo-sched.c (rest_of_handle_sms): Likewise.
2170         (canon_loop): Likewise.
2171         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2172         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2173         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2174         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2175         macro.
2176         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2177         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2178         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2179         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2180         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2181         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2182         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2183         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2184         (gimple_predict_edge): Likewise.
2185         (probably_never_executed): Likewise.
2186         * profile.c (find_spanning_tree): Remove uses of macros:
2187         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2188         (branch_prob): Likewise.
2189         (compute_branch_probabilities): Likewise.
2190         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2191         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2192         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2193         (set_bb_counts): Likewise.
2194         (correct_negative_edge_counts): Likewise.
2195         (get_exec_counts): Likewise.
2196         (instrument_values): Likewise.
2197         (instrument_edges): Likewise.
2198         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2199         EXIT_BLOCK_PTR.
2200         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2201         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2202         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2203         (reg_to_stack): Likewise.
2204         * regs.h (REG_N_SETS): Likewise.
2205         * reload.c (find_dummy_reload): Likewise.
2206         (combine_reloads): Likewise.
2207         (push_reload): Likewise.
2208         * reload1.c (has_nonexceptional_receiver): Remove usage of
2209         EXIT_BLOCK_PTR macro.
2210         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2211         macro.
2212         (find_basic_block): Likewise.
2213         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2214         (schedule_ebbs): Likewise.
2215         * sched-int.h (sel_sched_p): Likewise.
2216         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
2217         macro.
2218         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2219         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
2220         EXIT_BLOCK_PTR.
2221         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
2222         (extend_rgns): Likewise.
2223         (find_single_block_region): Likewise.
2224         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
2225         ENTRY_BLOCK_PTR macro.
2226         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
2227         (sel_create_recovery_block): Likewise.
2228         (bb_ends_ebb_p): Likewise.
2229         (sel_bb_end): Likewise.
2230         (sel_bb_head): Likewise.
2231         (free_lv_sets): Likewise.
2232         (init_lv_sets): Likewise.
2233         (tidy_control_flow): Likewise.
2234         (maybe_tidy_empty_bb): Likewise.
2235         * sel-sched-ir.h (_succ_iter_cond): Likewise.
2236         (_succ_iter_start): Likewise.
2237         (sel_bb_empty_or_nop_p): Likewise.
2238         (get_loop_exit_edges_unique_dests): Likewise.
2239         (inner_loop_header_p): Likewise.
2240         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2241         (find_block_for_bookkeeping): Likewise.
2242         * store-motion.c (remove_reachable_equiv_notes): Likewise.
2243         (insert_store): Likewise.
2244         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2245         ENTRY_BLOCK_PTR macro.
2246         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2247         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2248         (gate_tm_init): Likewise.
2249         (tm_region_init): Likewise.
2250         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2251         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2252         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2253         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2254         EXIT_BLOCK_PTR.
2255         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2256         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2257         EXIT_BLOCK_PTR.
2258         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2259         macro.
2260         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2261         EXIT_BLOCK_PTR.
2262         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2263         macro.
2264         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2265         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2266         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2267         (build_gimple_cfg): Likewise.
2268         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2269         (gimple_can_merge_blocks_p): Likewise.
2270         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2271         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2272         * tree-complex.c (update_parameter_components): Remove usage of
2273         ENTRY_BLOCK_PTR macro.
2274         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2275         EXIT_BLOCK_PTR macro.
2276         * tree-inline.c (tree_function_versioning): Remove uses of macros:
2277         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2278         (delete_unreachable_blocks_update_callgraph): Likewise.
2279         (initialize_cfun): Likewise.
2280         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
2281         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
2282         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
2283         * tree-into-ssa.c (update_ssa): Likewise.
2284         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
2285         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
2286         (rewrite_into_ssa): Likewise.
2287         (rewrite_debug_stmt_uses): Likewise.
2288         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
2289         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2290         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
2291         ENTRY_BLOCK_PTR macro.
2292         * tree-scalar-evolution.h (block_before_loop): Likewise.
2293         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2294         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
2295         EXIT_BLOCK_PTR.
2296         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
2297         macro.
2298         (propagate_dereference_distances): Remove uses of macros:
2299         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2300         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
2301         macro.
2302         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
2303         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
2304         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2305         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
2306         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2307         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
2308         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
2309         (mark_control_dependent_edges_necessary): Remove uses of macros:
2310         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2311         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
2312         ENTRY_BLOCK_PTR macro.
2313         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
2314         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
2315         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2316         (calculate_live_on_exit): Likewise.
2317         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2318         (loe_visit_block): Likewise.
2319         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
2320         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2321         (live_on_entry): Likewise.
2322         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
2323         EXIT_BLOCK_PTR macro.
2324         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
2325         ENTRY_BLOCK_PTR macro.
2326         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
2327         (bound_difference): Likewise.
2328         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
2329         of EXIT_BLOCK_PTR macro.
2330         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
2331         of ENTRY_BLOCK_PTR macro.
2332         * tree-ssa-math-opts.c (register_division_in): Likewise.
2333         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
2334         * tree-ssa-pre.c (compute_avail): Likewise.
2335         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
2336         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
2337         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2338         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
2339         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
2340         EXIT_BLOCK_PTR.
2341         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
2342         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
2343         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2344         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
2345         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2346         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
2347         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2348         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
2349         (find_pdom): Likewise.
2350         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2351         * tree-stdarg.c (reachable_at_most_once): Likewise.
2352         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
2353         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2354         (eliminate_tail_call): Likewise.
2355         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
2356         macro.
2357         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
2358         * var-tracking.c (vt_initialize): Remove uses of macros:
2359         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2360         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
2361         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
2362         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
2363         EXIT_BLOCK_PTR.
2364         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
2365         macro.
2366         * config/bfin/bfin.c (hwloop_optimize): Likewise.
2367         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
2368         of EXIT_BLOCK_PTR macro.
2369         * config/arm/arm.c (require_pic_register): Remove usage of
2370         ENTRY_BLOCK_PTR macro.
2371         (arm_r3_live_at_start_p): Likewise.
2372         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
2373         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2374         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
2375         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
2376         ENTRY_BLOCK_PTR macro.
2377         * config/i386/i386.c (ix86_count_insn): Likewise.
2378         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
2379         (ix86_pad_short_function): Likewise.
2380         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2381         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
2382         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
2383         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
2384         (ix86_expand_epilogue): Likewise.
2385         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
2386         (ia64_expand_prologue): Likewise.
2388 2013-11-19  Catherine Moore  <clm@codesourcery.com>
2390         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
2391         * config/mips/mips.opt (mfix-rm7000): New option.
2392         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
2393         * config/mips/mips.c (mips_reorg_process_insns): Disable
2394         noreorder for TARGET_FIX_RM7000.
2396 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
2398         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
2400 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2402         * config/arm/arm.c (arm_new_rtx_costs):
2403         Handle narrow mode add-shifts properly.
2404         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
2405         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
2406         Declare extern.
2408 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
2410         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
2412 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2414         * config/rs6000/vector.md ("mov<mode>"): Do not call
2415         rs6000_emit_le_vsx_move to move into or out of GPRs.
2416         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
2417         source and destination are not GPR hard regs.
2419 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2421         * basic-block.h (n_edges_for_function): Rename macro to...
2422         (n_edges_for_fn): ...this.
2423         (n_edges): Eliminate macro as work towards making uses of
2424         cfun be explicit.
2426         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
2427         to "n_edges_for_fn".
2429         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
2430         (clear_edges): Likewise.
2431         (free_edge): Likewise.
2432         * cfghooks.c (dump_flow_info): Likewise.
2433         * cprop.c (is_too_expensive): Likewise.
2434         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2435         * gcse.c (is_too_expensive): Likewise.
2436         (prune_insertions_deletions): Likewise.
2437         * mcf.c (create_fixup_graph): Likewise.
2438         * sched-rgn.c (haifa_find_rgns): Likewise.
2439         * tree-cfg.c (gimple_dump_cfg): Likewise.
2440         * var-tracking.c (variable_tracking_main_1): Likewise.
2442 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2444         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
2445         length lines.
2447 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2449         * config/aarch64/aarch64.md
2450         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
2452 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2454         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
2456 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
2458         * varasm.c (align_variable): Give error instead of warning for
2459         unsupported alignment.
2460         (assemble_noswitch_variable): Likewise.
2462 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
2464         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
2465         cb_file_change.
2467 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
2469         * loop-doloop.c (doloop_optimize_loops): Remove unused
2470         loop iterator argument from FOR_EACH_LOOP.
2472 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2474         Convert gimple types from a union to C++ inheritance.
2475         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
2476         * coretypes.h (union gimple_statement_d): Remove declaration.
2477         (gimple): Convert from being a "union gimple_statement_d *"
2478         to a "struct gimple_statement_base *".
2479         (const_gimple): Likewise (with "const").
2480         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
2481         (ggc_alloc_cleared_gimple_statement_stat): ...this.
2482         * gimple-pretty-print.c (debug): Change parameter from a
2483         "gimple_statement_d &" to a "gimple_statement_base &".
2484         (debug): Change parameter from a "gimple_statement_d *" to
2485         a "gimple_statement_base *".
2486         * gimple-pretty-print.h (debug): Update declarations as above.
2487         * gimple.c (gimple_alloc_stat): Update for renaming of
2488         ggc_alloc_cleared_gimple_statement_d_stat to
2489         ggc_alloc_cleared_gimple_statement_stat.
2490         * gimple.h: Include "is-a.h" for use by is_a_helper
2491         specializations in followup autogenerated patch.
2492         (struct gimple statement_base): Make this type usable as a base
2493         class by adding "desc", "tag" and "variable_size" to GTY, thus
2494         using opting-in to gengtype's support for simple inheritance.
2495         (gimple_statement_with_ops_base): Convert to a subclass of
2496         gimple_statement_base, dropping initial "gsbase" field.  Note that
2497         this type is abstract, with no GSS_ value, and thus no GTY tag value.
2498         (gimple_statement_with_ops): Convert to a subclass of
2499         gimple_statement_with_ops_base, dropping initial "opbase" field.
2500         Add tag value to GTY marking.  Update marking of op field to
2501         reflect how num_ops field is accessed via inheritance.
2502         (gimple_statement_with_memory_ops_base): Convert to a subclass of
2503         gimple_statement_with_ops_base, dropping initial "opbase" field.
2504         Add tag value to GTY marking.
2505         (gimple_statement_with_memory_ops): Convert to a subclass of
2506         public gimple_statement_with_memory_ops_base, dropping initial
2507         "membase" field.  Add tag value to GTY marking.  Update marking
2508         of op field to reflect how num_ops field is accessed via inheritance.
2509         (gimple_statement_call): Analogous changes that also update the
2510         marking of the "u" union.
2511         (gimple_statement_omp): Convert to a subclass of
2512         gimple_statement_base, dropping initial "gsbase" field, adding
2513         tag value to GTY marking.
2514         (gimple_statement_bind): Likewise.
2515         (gimple_statement_catch): Likewise.
2516         (gimple_statement_eh_filter): Likewise.
2517         (gimple_statement_eh_else): Likewise.
2518         (gimple_statement_eh_mnt): Likewise.
2519         (gimple_statement_phi): Likewise.
2520         (gimple_statement_eh_ctrl): Likewise.
2521         (gimple_statement_try): Likewise.
2522         (gimple_statement_wce): Likewise.
2523         (gimple_statement_asm): Convert to a subclass of
2524         gimple_statement_with_memory_ops_base, dropping initial
2525         "membase" field, adding tag value to GTY marking, and updating
2526         marking of op field.
2527         (gimple_statement_omp_critical): Convert to a subclass of
2528         gimple_statement_omp, dropping initial "omp" field, adding tag
2529         value to GTY marking.
2530         (gimple_statement_omp_for): Likewise.
2531         (gimple_statement_omp_parallel): Likewise.
2532         (gimple_statement_omp_task): Convert to a subclass of
2533         gimple_statement_omp_parallel, dropping initial "par" field,
2534         adding tag value to GTY marking.
2535         (gimple_statement_omp_sections): Convert to a subclass of
2536         gimple_statement_omp, dropping initial "omp" field, adding
2537         tag value to GTY marking.
2538         (gimple_statement_omp_continue): Convert to a subclass of
2539         gimple_statement_base, dropping initial "gsbase" field, adding
2540         tag value to GTY marking.
2541         (gimple_statement_omp_single): Convert to a subclass of
2542         gimple_statement_omp, dropping initial "omp" field, adding
2543         tag value to GTY marking.
2544         (gimple_statement_omp_atomic_load): Convert to a subclass of
2545         gimple_statement_base, dropping initial "gsbase" field, adding
2546         tag value to GTY marking.
2547         (gimple_statement_omp_atomic_store): Convert to a subclass of
2548         gimple_statement_base, dropping initial "gsbase" field, adding
2549         tag value to GTY marking.
2550         (gimple_statement_transaction): Convert to a subclass of
2551         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
2552         field, adding tag value to GTY marking.
2553         (union gimple_statement_d): Remove.
2554         * system.h (CONST_CAST_GIMPLE): Update to use
2555         "struct gimple_statement_base *" rather than
2556         "union gimple_statement_d *".
2557         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
2558         gimple_statement_d to gimple_statement_base.
2560         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
2561         (gimple_set_use_ops): Port from union to usage of as_a.
2562         (gimple_set_vuse): Likewise.
2563         (gimple_set_vdef): Likewise.
2564         (gimple_call_internal_fn): Port from union to a static_cast,
2565         given that the type has already been asserted.
2566         (gimple_omp_body_ptr): Port from unchecked union usage to
2567         a static_cast.
2568         (gimple_omp_set_body): Likewise.
2570         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
2571         gimple types to a true class hierarchy.
2572         (update_call_edge_frequencies): Likewise.
2573         (gsi_insert_seq_nodes_before): Likewise.
2574         (gsi_insert_seq_nodes_after): Likewise.
2575         (gsi_split_seq_after): Likewise.
2576         (gsi_set_stmt): Likewise.
2577         (gsi_split_seq_before): Likewise.
2578         (gsi_remove): Likewise.
2579         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
2580         (gsi_next): Likewise.
2581         (gsi_prev): Likewise.
2582         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
2583         * gimple-ssa.h (gimple_vuse_op): Likewise.
2584         (gimple_vdef_op): Likewise.
2585         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
2586         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
2587         * gimple.c (gimple_set_code): Likewise.
2588         (gimple_alloc_stat): Likewise.
2589         (gimple_set_subcode): Likewise.
2590         (gimple_build_call_internal_1): Likewise.
2591         (gimple_check_failed): Likewise.
2592         (gimple_call_flags): Likewise.
2593         (gimple_set_bb): Likewise.
2594         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
2595         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
2596         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
2597         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
2598         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
2599         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
2600         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
2601         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
2602         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
2603         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
2604         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
2605         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
2606         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
2607         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
2608         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
2609         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
2610         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
2611         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
2612         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
2613         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
2614         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
2615         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
2616         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
2617         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
2618         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
2619         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
2620         Likewise.
2621         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
2622         Likewise.
2623         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
2624         Likewise.
2625         (is_a_helper <const gimple_statement_omp_atomic_store>
2626         (const_gimple)): Likewise.
2627         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
2628         Likewise.
2629         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
2630         Likewise.
2631         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
2632         Likewise.
2633         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
2634         Likewise.
2635         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
2636         Likewise.
2637         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
2638         Likewise.
2639         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
2640         Likewise.
2641         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
2642         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
2643         Likewise.
2644         (gimple_seq_last): Update for conversion of gimple types to a true
2645         class hierarchy.
2646         (gimple_seq_set_last): Likewise.
2647         (gimple_code): Likewise.
2648         (gimple_bb): Likewise.
2649         (gimple_block): Likewise.
2650         (gimple_set_block): Likewise.
2651         (gimple_location): Likewise.
2652         (gimple_location_ptr): Likewise.
2653         (gimple_set_location): Likewise.
2654         (gimple_no_warning_p): Likewise.
2655         (gimple_set_no_warning): Likewise.
2656         (gimple_set_visited): Likewise.
2657         (gimple_visited_p): Likewise.
2658         (gimple_set_plf): Likewise.
2659         (gimple_plf): Likewise.
2660         (gimple_set_uid): Likewise.
2661         (gimple_uid): Likewise.
2662         (gimple_init_singleton): Likewise.
2663         (gimple_modified_p): Likewise.
2664         (gimple_set_modified): Likewise.
2665         (gimple_expr_code): Likewise.
2666         (gimple_has_volatile_ops): Likewise.
2667         (gimple_set_has_volatile_ops): Likewise.
2668         (gimple_omp_subcode): Likewise.
2669         (gimple_omp_set_subcode): Likewise.
2670         (gimple_omp_return_set_nowait): Likewise.
2671         (gimple_omp_section_set_last): Likewise.
2672         (gimple_omp_parallel_set_combined_p): Likewise.
2673         (gimple_omp_atomic_set_need_value): Likewise.
2674         (gimple_omp_atomic_set_seq_cst): Likewise.
2675         (gimple_num_ops): Likewise.
2676         (gimple_set_num_ops): Likewise.
2677         (gimple_assign_nontemporal_move_p): Likewise.
2678         (gimple_assign_set_nontemporal_move): Likewise.
2679         (gimple_assign_rhs_code): Likewise.
2680         (gimple_assign_set_rhs_code): Likewise.
2681         (gimple_call_internal_p): Likewise.
2682         (gimple_call_with_bounds_p): Likewise.
2683         (gimple_call_set_with_bounds): Likewise.
2684         (gimple_call_set_tail): Likewise.
2685         (gimple_call_tail_p): Likewise.
2686         (gimple_call_set_return_slot_opt): Likewise.
2687         (gimple_call_return_slot_opt_p): Likewise.
2688         (gimple_call_set_from_thunk): Likewise.
2689         (gimple_call_from_thunk_p): Likewise.
2690         (gimple_call_set_va_arg_pack): Likewise.
2691         (gimple_call_va_arg_pack_p): Likewise.
2692         (gimple_call_set_nothrow): Likewise.
2693         (gimple_call_set_alloca_for_var): Likewise.
2694         (gimple_call_alloca_for_var_p): Likewise.
2695         (gimple_call_copy_flags): Likewise.
2696         (gimple_cond_code): Likewise.
2697         (gimple_cond_set_code): Likewise.
2698         (gimple_cond_make_false): Likewise.
2699         (gimple_cond_make_true): Likewise.
2700         (gimple_asm_volatile_p): Likewise.
2701         (gimple_asm_set_volatile): Likewise.
2702         (gimple_asm_set_input): Likewise.
2703         (gimple_asm_input_p): Likewise.
2704         (gimple_try_kind): Likewise.
2705         (gimple_try_set_kind): Likewise.
2706         (gimple_try_catch_is_cleanup): Likewise.
2707         (gimple_try_set_catch_is_cleanup): Likewise.
2708         (gimple_wce_cleanup_eh_only): Likewise.
2709         (gimple_wce_set_cleanup_eh_only): Likewise.
2710         (gimple_debug_bind_p): Likewise.
2711         (gimple_debug_source_bind_p): Likewise.
2712         (gimple_omp_for_set_kind): Likewise.
2713         (gimple_omp_for_set_combined_p): Likewise.
2714         (gimple_omp_for_set_combined_into_p): Likewise.
2715         (gimple_omp_target_set_kind): Likewise.
2716         (gimple_transaction_subcode): Likewise.
2717         (gimple_transaction_set_subcode): Likewise.
2718         (gimple_predict_predictor): Likewise.
2719         (gimple_predict_set_predictor): Likewise.
2720         (gimple_predict_outcome): Likewise.
2721         (gimple_predict_set_outcome): Likewise.
2722         (gimple_transaction_set_label): Likewise.
2723         (gimple_transaction_set_body): Likewise.
2724         (gimple_transaction_label_ptr): Likewise.
2725         (gimple_transaction_label): Likewise.
2726         (gimple_transaction_body_ptr): Likewise.
2727         (gimple_omp_continue_set_control_use): Likewise.
2728         (gimple_omp_continue_control_use_ptr): Likewise.
2729         (gimple_omp_continue_control_use): Likewise.
2730         (gimple_omp_continue_set_control_def): Likewise.
2731         (gimple_omp_continue_control_def_ptr): Likewise.
2732         (gimple_omp_continue_control_def): Likewise.
2733         (gimple_omp_atomic_load_rhs_ptr): Likewise.
2734         (gimple_omp_atomic_load_rhs): Likewise.
2735         (gimple_omp_atomic_load_set_rhs): Likewise.
2736         (gimple_omp_atomic_load_lhs_ptr): Likewise.
2737         (gimple_omp_atomic_load_lhs): Likewise.
2738         (gimple_omp_atomic_load_set_lhs): Likewise.
2739         (gimple_omp_atomic_store_val_ptr): Likewise.
2740         (gimple_omp_atomic_store_val): Likewise.
2741         (gimple_omp_atomic_store_set_val): Likewise.
2742         (gimple_omp_for_cond): Likewise.
2743         (gimple_omp_for_set_cond): Likewise.
2744         (gimple_omp_sections_set_control): Likewise.
2745         (gimple_omp_sections_control_ptr): Likewise.
2746         (gimple_omp_sections_control): Likewise.
2747         (gimple_omp_sections_set_clauses): Likewise.
2748         (gimple_omp_sections_clauses_ptr): Likewise.
2749         (gimple_omp_sections_clauses): Likewise.
2750         (gimple_omp_teams_set_clauses): Likewise.
2751         (gimple_omp_teams_clauses_ptr): Likewise.
2752         (gimple_omp_teams_clauses): Likewise.
2753         (gimple_omp_target_set_data_arg): Likewise.
2754         (gimple_omp_target_data_arg_ptr): Likewise.
2755         (gimple_omp_target_data_arg): Likewise.
2756         (gimple_omp_target_set_child_fn): Likewise.
2757         (gimple_omp_target_child_fn_ptr): Likewise.
2758         (gimple_omp_target_child_fn): Likewise.
2759         (gimple_omp_target_set_clauses): Likewise.
2760         (gimple_omp_target_clauses_ptr): Likewise.
2761         (gimple_omp_target_clauses): Likewise.
2762         (gimple_omp_single_set_clauses): Likewise.
2763         (gimple_omp_single_clauses_ptr): Likewise.
2764         (gimple_omp_single_clauses): Likewise.
2765         (gimple_omp_task_set_arg_align): Likewise.
2766         (gimple_omp_task_arg_align_ptr): Likewise.
2767         (gimple_omp_task_arg_align): Likewise.
2768         (gimple_omp_task_set_arg_size): Likewise.
2769         (gimple_omp_task_arg_size_ptr): Likewise.
2770         (gimple_omp_task_arg_size): Likewise.
2771         (gimple_omp_task_set_copy_fn): Likewise.
2772         (gimple_omp_task_copy_fn_ptr): Likewise.
2773         (gimple_omp_task_copy_fn): Likewise.
2774         (gimple_omp_task_set_data_arg): Likewise.
2775         (gimple_omp_task_data_arg_ptr): Likewise.
2776         (gimple_omp_task_data_arg): Likewise.
2777         (gimple_omp_task_set_child_fn): Likewise.
2778         (gimple_omp_task_child_fn_ptr): Likewise.
2779         (gimple_omp_task_child_fn): Likewise.
2780         (gimple_omp_task_set_clauses): Likewise.
2781         (gimple_omp_task_clauses_ptr): Likewise.
2782         (gimple_omp_task_clauses): Likewise.
2783         (gimple_omp_parallel_set_data_arg): Likewise.
2784         (gimple_omp_parallel_data_arg_ptr): Likewise.
2785         (gimple_omp_parallel_data_arg): Likewise.
2786         (gimple_omp_parallel_set_child_fn): Likewise.
2787         (gimple_omp_parallel_child_fn_ptr): Likewise.
2788         (gimple_omp_parallel_child_fn): Likewise.
2789         (gimple_omp_parallel_set_clauses): Likewise.
2790         (gimple_omp_parallel_clauses_ptr): Likewise.
2791         (gimple_omp_parallel_clauses): Likewise.
2792         (gimple_omp_for_set_pre_body): Likewise.
2793         (gimple_omp_for_pre_body_ptr): Likewise.
2794         (gimple_omp_for_set_incr): Likewise.
2795         (gimple_omp_for_incr_ptr): Likewise.
2796         (gimple_omp_for_incr): Likewise.
2797         (gimple_omp_for_set_final): Likewise.
2798         (gimple_omp_for_final_ptr): Likewise.
2799         (gimple_omp_for_final): Likewise.
2800         (gimple_omp_for_set_initial): Likewise.
2801         (gimple_omp_for_initial_ptr): Likewise.
2802         (gimple_omp_for_initial): Likewise.
2803         (gimple_omp_for_set_index): Likewise.
2804         (gimple_omp_for_index_ptr): Likewise.
2805         (gimple_omp_for_index): Likewise.
2806         (gimple_omp_for_collapse): Likewise.
2807         (gimple_omp_for_set_clauses): Likewise.
2808         (gimple_omp_for_clauses_ptr): Likewise.
2809         (gimple_omp_for_clauses): Likewise.
2810         (gimple_omp_critical_set_name): Likewise.
2811         (gimple_omp_critical_name_ptr): Likewise.
2812         (gimple_omp_critical_name): Likewise.
2813         (gimple_eh_dispatch_set_region): Likewise.
2814         (gimple_eh_dispatch_region): Likewise.
2815         (gimple_resx_set_region): Likewise.
2816         (gimple_resx_region): Likewise.
2817         (gimple_phi_set_arg): Likewise.
2818         (gimple_phi_arg): Likewise.
2819         (gimple_phi_set_result): Likewise.
2820         (gimple_phi_result_ptr): Likewise.
2821         (gimple_phi_result): Likewise.
2822         (gimple_phi_num_args): Likewise.
2823         (gimple_phi_capacity): Likewise.
2824         (gimple_wce_set_cleanup): Likewise.
2825         (gimple_wce_cleanup_ptr): Likewise.
2826         (gimple_try_set_cleanup): Likewise.
2827         (gimple_try_set_eval): Likewise.
2828         (gimple_try_cleanup_ptr): Likewise.
2829         (gimple_try_eval_ptr): Likewise.
2830         (gimple_eh_else_set_e_body): Likewise.
2831         (gimple_eh_else_set_n_body): Likewise.
2832         (gimple_eh_else_e_body_ptr): Likewise.
2833         (gimple_eh_else_n_body_ptr): Likewise.
2834         (gimple_eh_must_not_throw_set_fndecl): Likewise.
2835         (gimple_eh_must_not_throw_fndecl): Likewise.
2836         (gimple_eh_filter_set_failure): Likewise.
2837         (gimple_eh_filter_set_types): Likewise.
2838         (gimple_eh_filter_failure_ptr): Likewise.
2839         (gimple_eh_filter_types_ptr): Likewise.
2840         (gimple_eh_filter_types): Likewise.
2841         (gimple_catch_set_handler): Likewise.
2842         (gimple_catch_set_types): Likewise.
2843         (gimple_catch_handler_ptr): Likewise.
2844         (gimple_catch_types_ptr): Likewise.
2845         (gimple_catch_types): Likewise.
2846         (gimple_asm_string): Likewise.
2847         (gimple_asm_set_label_op): Likewise.
2848         (gimple_asm_label_op): Likewise.
2849         (gimple_asm_set_clobber_op): Likewise.
2850         (gimple_asm_clobber_op): Likewise.
2851         (gimple_asm_set_output_op): Likewise.
2852         (gimple_asm_output_op_ptr): Likewise.
2853         (gimple_asm_output_op): Likewise.
2854         (gimple_asm_set_input_op): Likewise.
2855         (gimple_asm_input_op_ptr): Likewise.
2856         (gimple_asm_input_op): Likewise.
2857         (gimple_asm_nlabels): Likewise.
2858         (gimple_asm_nclobbers): Likewise.
2859         (gimple_asm_noutputs): Likewise.
2860         (gimple_asm_ninputs): Likewise.
2861         (gimple_bind_set_block): Likewise.
2862         (gimple_bind_block): Likewise.
2863         (gimple_bind_add_seq): Likewise.
2864         (gimple_bind_add_stmt): Likewise.
2865         (gimple_bind_set_body): Likewise.
2866         (gimple_bind_body_ptr): Likewise.
2867         (gimple_bind_append_vars): Likewise.
2868         (gimple_bind_set_vars): Likewise.
2869         (gimple_bind_vars): Likewise.
2870         (gimple_call_clobber_set): Likewise.
2871         (gimple_call_use_set): Likewise.
2872         (gimple_call_set_internal_fn): Likewise.
2873         (gimple_call_set_fntype): Likewise.
2874         (gimple_call_fntype): Likewise.
2875         (gimple_omp_return_lhs_ptr): Likewise.
2876         (gimple_omp_return_lhs): Likewise.
2877         (gimple_omp_return_set_lhs): Likewise.
2878         (gimple_omp_taskreg_set_data_arg): Likewise.
2879         (gimple_omp_taskreg_data_arg_ptr): Likewise.
2880         (gimple_omp_taskreg_data_arg): Likewise.
2881         (gimple_omp_taskreg_set_child_fn): Likewise.
2882         (gimple_omp_taskreg_child_fn_ptr): Likewise.
2883         (gimple_omp_taskreg_child_fn): Likewise.
2884         (gimple_omp_taskreg_set_clauses): Likewise.
2885         (gimple_omp_taskreg_clauses_ptr): Likewise.
2886         (gimple_omp_taskreg_clauses): Likewise.
2887         (gimple_vuse): Likewise.
2888         (gimple_vdef): Likewise.
2889         (gimple_vuse_ptr): Likewise.
2890         (gimple_vdef_ptr): Likewise.
2891         * tree-inline.c (copy_debug_stmt): Likewise.
2892         * tree-phinodes.c (make_phi_node): Likewise.
2894         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
2895         (is_a_helper <gimple_statement_with_ops>::test): New.
2896         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
2897         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
2899         * gimple-streamer-in.c (input_gimple_stmt): Port from union
2900         access to use of as_a.
2901         * gimple.c (gimple_build_asm_1): Likewise.
2902         (gimple_build_try): Likewise.  Also, return a specific subclass
2903         rather than just gimple.
2904         (gimple_build_resx): Port from union access to use of as_a.
2905         (gimple_build_eh_dispatch): Likewise.
2906         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
2907         now that gengtype no longer provides a typed allocator function.
2908         (gimple_copy): Likewise.
2909         * gimple.h (gimple_build_try): Return a specific subclass rather
2910         than just gimple.
2911         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
2912         with subclass access by making use of new return type of
2913         gimple_build_try.
2914         * tree-phinodes.c: (allocate_phi_node): Return a
2915         "gimple_statement_phi *" rather than just a gimple.
2916         (resize_phi_node): Likewise.
2917         (make_phi_node): Replace union access with subclass access by
2918         making use of new return type of allocate_phi_node.
2919         (reserve_phi_args_for_new_edge): Replace union access with as_a.
2920         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
2921         than just a gimple.
2922         (remove_phi_args): Update for change to remove_phi_arg_num.
2924         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
2925         code field to reflect inheritance, rather than embedding of
2926         the base gimple type.
2928 2013-11-19  Richard Biener  <rguenther@suse.de>
2930         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
2931         and destructor and make fel_next a member function.
2932         (fel_next): Transform into ...
2933         (loop_iterator::next): ... this.
2934         (fel_init): Transform into ...
2935         (loop_iterator::loop_iterator): ... this.
2936         (loop_iterator::~loop_iterator): New.
2937         (FOR_EACH_LOOP): Remove loop-iterator argument.
2938         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
2939         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
2940         graphite-clast-to-gimple.c, graphite-scop-detection.c,
2941         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
2942         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
2943         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
2944         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
2945         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
2946         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
2947         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
2948         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
2949         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
2950         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
2951         FOR_EACH_LOOP_BREAK with break.
2953 2013-11-19  Richard Biener  <rguenther@suse.de>
2955         PR tree-optimization/59164
2956         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2957         Uncomment assert.
2958         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
2959         whether we can create an epilogue loop to reflect thecases where
2960         we create one.
2962 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
2964         * graphite-sese-to-poly.c: Include expr.h.
2966 2013-11-19  Richard Biener  <rguenther@suse.de>
2968         PR middle-end/58956
2969         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
2970         loads into stmts that may clobber it.
2972 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
2974         * cgraphunit.c (symtab_terminator): New variable.
2975         (queued_nodes): Renamed from first.  Use symtab_terminator as
2976         initializer.
2977         (analyze_functions): Adjust accordingly.
2978         (cgraph_process_new_functions): Return void.
2979         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
2981 2013-11-19  Marek Polacek  <polacek@redhat.com>
2983         * opts.c (common_handle_option): Add -fsanitize=null option.
2984         Turn off -fdelete-null-pointer-checks option when doing the
2985         NULL pointer checking.
2986         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
2987         * tree-pass.h (make_pass_ubsan): Declare.
2988         (make_pass_sanopt): Declare.
2989         * timevar.def (TV_TREE_UBSAN): New timevar.
2990         * passes.def: Add pass_sanopt and pass_ubsan.
2991         * ubsan.h (ubsan_null_ckind): New enum.
2992         (ubsan_mismatch_data): New struct.
2993         (ubsan_expand_null_ifn): Declare.
2994         (ubsan_create_data): Adjust declaration.
2995         (ubsan_type_descriptor): Likewise.
2996         * asan.c: Include "ubsan.h".
2997         (pass_data_sanopt): New pass.
2998         (execute_sanopt): New function.
2999         (gate_sanopt): Likewise.
3000         (make_pass_sanopt): Likewise.
3001         (class pass_sanopt): New class.
3002         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3003         gimple-iterator.h and cfgloop.h.
3004         (PROB_VERY_UNLIKELY): Define.
3005         (tree_type_map_hash): New function.
3006         (ubsan_type_descriptor): Add new parameter.
3007         Improve type name generation.
3008         (ubsan_create_data): Add new parameter.  Add pointer data into
3009         ubsan structure.
3010         (ubsan_expand_null_ifn): New function.
3011         (instrument_member_call): Likewise.
3012         (instrument_mem_ref): Likewise.
3013         (instrument_null): Likewise.
3014         (ubsan_pass): Likewise.
3015         (gate_ubsan): Likewise.
3016         (make_pass_ubsan): Likewise.
3017         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3018         (class pass_ubsan): New class.
3019         (pass_data_ubsan): New pass.
3020         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3021         * internal-fn.c (expand_UBSAN_NULL): New function.
3022         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3023         even when !flag_toplevel_reorder.
3024         * internal-fn.def (UBSAN_NULL): New.
3026 2013-11-19  Jan Hubicka  <jh@suse.cz>
3028         * cgraph.c (cgraph_create_indirect_edge): Use
3029         get_polymorphic_call_info.
3030         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3031         maybe_in_construction and maybe_derived_type.
3032         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3033         (ipa_dummy_polymorphic_call_context): New global var.
3034         (possible_polymorphic_call_targets): Add context paramter.
3035         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3036         (possible_polymorphic_call_target_p): Likewise.
3037         (get_polymorphic_call_info): New function.
3038         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3039         (add_type_duplicate): Remove forgotten debug output.
3040         (method_class_type): Add sanity check.
3041         (maybe_record_node): Add FINALP parameter.
3042         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3043         by info by get_binfo_at_offset.
3044         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3045         parameters; pass them to record-binfo.
3046         (polymorphic_call_target_d): Add context and FINAL.
3047         (polymorphic_call_target_hasher::hash): Hash context.
3048         (polymorphic_call_target_hasher::equal): Compare context.
3049         (free_polymorphic_call_targets_hash):
3050         (get_class_context): New function.
3051         (contains_type_p): New function.
3052         (get_polymorphic_call_info): New function.
3053         (walk_bases): New function.
3054         (possible_polymorphic_call_targets): Add context parameter; honnor it.
3055         (dump_possible_polymorphic_call_targets): Dump context.
3056         (possible_polymorphic_call_target_p): Add context.
3057         (update_type_inheritance_graph): Update comment.s
3058         (ipa_set_jf_known_type): Assert that compoentn type is known.
3059         (ipa_note_param_call): Do not tamper with offsets.
3060         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3061         outer type.
3062         (update_indirect_edges_after_inlining): Likewise.
3063         (ipa_write_indirect_edge_info): Stream new fields.
3064         (ipa_read_indirect_edge_info): Stream in new fields.
3066 2013-11-19  Jan Hubicka  <jh@suse.cz>
3068         * tree-pretty-print.c (dump_generic_node): Print class type of
3069         OBJ_TYPE_REF.
3071 2013-11-19  Joey Ye  <joey.ye@arm.com>
3073         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3074         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3075         for new option.
3076         * config/arm/arm.c (arm_option_override): By default disable
3077         -marm-pic-data-is-text-relative.
3078         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3079         (arm_assemble_integer): Likewise.
3080         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3081         New macro to initialize -marm-pic-data-is-text-relative.
3083 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
3085         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3086         (address_cost_data): New field.
3087         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3088         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
3090 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
3092         * config/aarch64/aarch64.md: Remove v8type from all insns.
3094 2013-11-19  Richard Biener  <rguenther@suse.de>
3096         PR tree-optimization/57517
3097         * tree-predcom.c (combinable_refs_p): Verify the combination
3098         is always executed when the refs are.
3100 2013-11-19  Jeff Law  <law@redhat.com>
3102         * tree-ssa-threadupdate.c: Include ssa-iterators.h
3103         (copy_phi_arg_into_existing_phi): New function.
3104         (any_remaining_duplicated_blocks): Likewise.
3105         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3106         blocks on a jump threading path.
3108         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
3109         thread through a joiner which has the latch edge.
3111 2013-11-19  Jan Hubicka  <jh@suse.cz>
3113         * md.texi (setmem): Document new parameter.
3114         * optabs.c (maybe_gen_insn): Support 9 operands.
3115         * builtins.c (determine_block_size): Add probable_max_size;
3116         support anti-ranges.
3117         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3118         probable_max_size.
3119         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3120         emit_block_move, clear_storage_hints, set_storage_via_setmem):
3121         Likewise.
3122         * expr.h (emit_block_move_hints, clear_storage_hints,
3123         set_storage_via_setmem): Update prototype.
3124         * i386.md (setmem, movmem patterns): Add 9th operand.
3125         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3126         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3127         argument; pass it to decide_alg.
3129 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3131         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3132         (n_basic_blocks_for_fn): ...this.
3134         (n_basic_blocks): Eliminate macro as work towards making uses of
3135         cfun be explicit.
3137         * cfgloop.c (init_loops_structure): Update for renaming of
3138         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3139         * graph.c (draw_cfg_nodes_no_loops): Likewise.
3140         * ipa-utils.c (ipa_merge_profiles): Likewise.
3141         * lto-streamer-in.c (make_new_block): Likewise.
3142         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3143         (dump_function_to_file): Likewise.
3145         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3146         macro with "n_basic_blocks_for_fn (cfun)".
3147         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3148         (duplicate_computed_gotos): Likewise.
3149         (reorder_basic_blocks): Likewise.
3150         * bt-load.c (augment_live_range): Likewise.
3151         * cfg.c (expunge_block): Likewise.
3152         (compact_blocks): Likewise.
3153         * cfganal.c (single_pred_before_succ_order): Likewise.
3154         (compute_idf): Likewise.
3155         (flow_dfs_compute_reverse_init): Likewise.
3156         (pre_and_rev_post_order_compute): Likewise.
3157         (pre_and_rev_post_order_compute_fn): Likewise.
3158         (inverted_post_order_compute): Likewise.
3159         (post_order_compute): Likewise.
3160         (print_edge_list): Likewise.
3161         (find_unreachable_blocks): Likewise.
3162         (mark_dfs_back_edges): Likewise.
3163         * cfgcleanup.c (try_optimize_cfg): Likewise.
3164         (try_forward_edges): Likewise.
3165         * cfghooks.c (dump_flow_info): Likewise.
3166         * cfgloop.c (verify_loop_structure): Likewise.
3167         (get_loop_body): Likewise.
3168         (flow_loops_find): Likewise.
3169         * cfgloopmanip.c (add_loop): Likewise.
3170         (remove_path): Likewise.
3171         (find_path): Likewise.
3172         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3173         (rtl_verify_bb_layout): Likewise.
3174         (entry_of_function): Likewise.
3175         (rtl_create_basic_block): Likewise.
3176         * coverage.c (coverage_compute_cfg_checksum): Likewise.
3177         * cprop.c (one_cprop_pass): Likewise.
3178         (is_too_expensive): Likewise.
3179         * df-core.c (df_compute_cfg_image): Likewise.
3180         (df_compact_blocks): Likewise.
3181         (df_worklist_dataflow_doublequeue): Likewise.
3182         * dominance.c (calculate_dominance_info): Likewise.
3183         (calc_dfs_tree): Likewise.
3184         (calc_dfs_tree_nonrec): Likewise.
3185         (init_dom_info): Likewise.
3186         * domwalk.c (cmp_bb_postorder): Likewise.
3187         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3188         (generate_setjmp_warnings): Likewise.
3189         * fwprop.c (build_single_def_use_links): Likewise.
3190         * gcse.c (is_too_expensive): Likewise.
3191         (one_code_hoisting_pass): Likewise.
3192         (one_pre_gcse_pass): Likewise.
3193         * graphite.c (graphite_initialize): Likewise.
3194         * haifa-sched.c (haifa_sched_init): Likewise.
3195         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3196         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3197         * ira-build.c (ira_build): Likewise.
3198         * lcm.c (compute_nearerout): Likewise.
3199         (compute_available): Likewise.
3200         (compute_laterin): Likewise.
3201         (compute_antinout_edge): Likewise.
3202         * lra-lives.c (lra_create_live_ranges): Likewise.
3203         * lra.c (has_nonexceptional_receiver): Likewise.
3204         * mcf.c (create_fixup_graph): Likewise.
3205         * profile.c (branch_prob): Likewise.
3206         * reg-stack.c (convert_regs_2): Likewise.
3207         * regrename.c (regrename_analyze): Likewise.
3208         * reload1.c (has_nonexceptional_receiver): Likewise.
3209         * reorg.c (dbr_schedule): Likewise.
3210         * sched-deps.c (sched_deps_init): Likewise.
3211         * sched-ebb.c (schedule_ebbs): Likewise.
3212         * sched-rgn.c (extend_regions): Likewise.
3213         (schedule_insns): Likewise.
3214         (sched_rgn_init): Likewise.
3215         (extend_rgns): Likewise.
3216         (haifa_find_rgns): Likewise.
3217         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
3218         (sel_recompute_toporder): Likewise.
3219         * sel-sched.c (run_selective_scheduling): Likewise.
3220         * store-motion.c (one_store_motion_pass): Likewise.
3221         (remove_reachable_equiv_notes): Likewise.
3222         * tracer.c (tracer): Likewise.
3223         (tail_duplicate): Likewise.
3224         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3225         (dump_cfg_stats): Likewise.
3226         (gimple_dump_cfg): Likewise.
3227         (create_bb): Likewise.
3228         (build_gimple_cfg): Likewise.
3229         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
3230         * tree-inline.c (optimize_inline_calls): Likewise.
3231         (fold_marked_statements): Likewise.
3232         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3233         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3234         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3235         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3236         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3237         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3238         * tree-ssa-pre.c (do_pre): Likewise.
3239         (init_pre): Likewise.
3240         (compute_avail): Likewise.
3241         * tree-ssa-reassoc.c (init_reassoc): Likewise.
3242         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3243         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3244         (init_worklist): Likewise.
3245         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3246         * var-tracking.c (variable_tracking_main_1): Likewise.
3247         (vt_find_locations): Likewise.
3248         (vt_stack_adjustments): Likewise.
3249         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3250         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3252 2013-11-18  Jan Hubicka  <jh@suse.cz>
3254         * profile.c (compute_branch_probabilities): Do not sanity check
3255         run_max.
3257 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3259         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3260         GET_MODE_PRECISION.
3261         * fold-const.c (fold_single_bit_test_into_sign_test)
3262         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3264 2013-11-18  Teresa Johnson  <tejohnson@google.com>
3266         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3267         cfglayout after bb reordering.
3268         * passes.def: Move compgotos before bb reordering since it goes into
3269         cfglayout.
3271 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
3273         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3274         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3275         static.
3276         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
3277         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
3278         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
3279         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
3280         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
3281         Remove all_lto_gen_passes.
3282         * passes.c (pass_manager::dump_passes): Remove its use.
3283         (pass_manager::register_pass): Likewise.
3284         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
3285         (pass_manager::pass_manager): Don't initialize or use it.
3286         (write_lto): New static function.
3287         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
3288         instead of using all_lto_gen_passes.
3289         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
3290         pass_ipa_lto_finish_out): Delete.
3291         * tree-pass.h (make_pass_ipa_lto_gimple_out,
3292         make_pass_ipa_lto_finish_out): Don't declare.
3294 2013-11-18  Jeff Law  <law@redhat.com>
3296         * tree-ssa-threadupdate.c (redirection_data): Record two
3297         duplicated blocks instead of just one.
3298         (local_info): Explain why we don't create a template for the
3299         second duplicated block in a thread path.
3300         (create_block_for_threading): Accept argument indicating array
3301         index into redirection_data to store its result.
3302         (lookup_redirection_data): Initialize both duplicate blocks.
3303         (ssa_create_duplicates): If a jump threading path needs multiple
3304         blocks duplicated, then duplicate them.
3305         (ssa_fix_duplicate_block_edges): Corresponding changes.
3306         (ssa_fixup_template_block, thread_single_edge):  Likewise.
3308 2013-11-18  Marek Polacek  <polacek@redhat.com>
3310         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
3312 2013-11-18  Andrew Pinski <apinski@cavium.com>
3313             Steve Ellcey  <sellcey@mips.com>
3315         PR target/56552
3316         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
3317         type restriction from equality_operator on conditonal move.
3318         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
3319         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
3321 2013-11-18  Jeff Law  <law@redhat.com>
3323         * tree-ssa-threadupdate.c: Fix file block comment.
3324         Fix minor indention issue.
3326 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
3328         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
3329         ix86_address_subreg_operand.  Move subreg checks to
3330         ix86_validate_address_register.  Move address override check to
3331         ix86_legitimate_address_p.
3332         (ix86_validate_address_register): New function.
3333         (ix86_legitimate_address_p): Call ix86_validate_address_register
3334         to validate base and index registers.  Add address override check
3335         from ix86_decompose_address.
3336         (ix86_decompose_address): Remove.
3338 2013-11-18  Richard Biener  <rguenther@suse.de>
3340         PR tree-optimization/59125
3341         PR tree-optimization/54570
3342         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
3343         is not complete do not treat component-references with offset zero
3344         but different fields as equal.
3345         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
3346         (compute_object_sizes): Apply TLC.  Propagate the constant
3347         results into all uses and fold their stmts.
3348         * passes.def (pass_all_optimizations): Move pass_object_sizes
3349         after the first pass_forwprop and before pass_fre.
3351 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3353         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3354         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3355         (tree_ctz): Remove cast to unsigned type.
3356         * builtins.c (fold_builtin_memory_op): Likewise.
3357         * dwarf2out.c (descr_info_loc): Likewise.
3358         * godump.c (go_output_typedef): Likewise.
3359         * omp-low.c (expand_omp_simd): Likewise.
3360         * stor-layout.c (excess_unit_span): Likewise.
3361         * tree-object-size.c (addr_object_size): Likewise.
3362         * tree-sra.c (analyze_all_variable_accesses): Likewise.
3363         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3364         (simplify_rotate): Likewise.
3365         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
3366         (handle_pointer_plus): Likewise.
3367         * tree-switch-conversion.c (check_range): Likewise.
3368         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
3369         * tsan.c (instrument_builtin_call): Likewise.
3370         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
3371         * trans-mem.c (tm_log_add): Likewise.
3372         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
3373         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
3374         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
3375         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
3377 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3379         * tree.h (host_integerp, tree_low_cst): Delete.
3380         * tree.c (host_integerp, tree_low_cst): Delete.
3382 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3384         * expr.h: Update comments to refer to tree_to_[su]hwi rather
3385         than tree_low_cst.
3386         * fold-const.c (fold_binary_loc): Likewise.
3387         * expr.c (store_constructor): Use tree_to_uhwi rather than
3388         tree_low_cst.
3389         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
3390         * stmt.c (emit_case_dispatch_table): Likewise.
3391         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3393 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3395         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
3396         config/aarch64/aarch64.c, config/alpha/predicates.md,
3397         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
3398         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
3399         config/mep/mep-pragma.c, config/mips/mips.c,
3400         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
3401         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
3402         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
3403         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
3404         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
3405         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
3406         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
3407         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
3408         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
3409         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
3411 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3413         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
3414         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
3415         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
3416         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
3417         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
3418         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
3419         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
3420         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
3421         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
3422         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
3423         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
3425 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3427         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
3428         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
3430 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3432         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
3433         than host_integerp.
3435 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3437         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
3438         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
3439         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
3440         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
3441         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
3442         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
3443         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
3444         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
3445         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
3446         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
3447         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
3448         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
3449         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
3450         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
3451         tree_fits_uhwi_p throughout.
3453 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3455         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
3456         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
3457         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
3458         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
3459         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
3460         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
3461         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
3462         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
3463         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
3464         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
3465         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
3466         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
3467         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
3468         throughout.
3470 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3472         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
3473         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
3475 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3477         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
3478         flag if it kills its address, not its post-increment.
3480 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
3482         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3483         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3484         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3485         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3486         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3487         (gimple_call_with_bounds_p): New.
3488         (gimple_call_set_with_bounds): New.
3489         (gimple_call_num_nobnd_args): Remove.
3490         (gimple_call_nobnd_arg): Remove.
3491         * tree.h (CALL_WITH_BOUNDS_P): New.
3492         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3494 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
3496         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
3497         (symtab_node_name): Rename to symtab_node::name.
3498         (cgraph_node_asm_name): Remove.
3499         (varpool_node_asm_name): Remove.
3500         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
3501         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
3502         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
3503         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
3504         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
3506 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3508         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
3509         * config/arm/arm.c (arm_cortex_a53_tune): New.
3510         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
3512 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3514         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
3515         (case ${target}): Add bdver4.
3516         * config/i386/bdver3.md: Add bdver4.
3517         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3518         -march=native recognize bdver4 processors.
3519         * config/i386/i386-c.c (ix86_target_macros_internal): Add
3520         bdver4 def_and_undef
3521         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
3522         (m_BDVER4): New definition.
3523         (m_AMD_MULTIPLE): Includes m_BDVER4.
3524         (processor_target_table): Add bdver4 entry.
3525         (static const char *const cpu_names): Add bdver4 entry.
3526         (software_prefetching_beneficial_p): Add bdver3.
3527         (ix86_option_override_internal): Add bdver4 instruction sets.
3528         (ix86_issue_rate): Add bdver4.
3529         (ix86_adjust_cost): Add bdver4.
3530         (ia32_multipass_dfa_lookahead): Add bdver4.
3531         (enum processor_model): Add M_AMDFAM15H_BDVER4.
3532         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
3533         (has_dispatch): Add bdver4.
3534         * config/i386/i386.h (TARGET_BDVER4): New definition.
3535         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
3536         (enum processor_type): Add PROCESSOR_BDVER4.
3537         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
3538         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
3539         * doc/extend.texi: Add details about bdver4.
3540         * doc/invoke.texi: Add details about bdver4. Add
3541         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
3543 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3545         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
3546         sdmode_stack_slot also in little-endian mode.
3548 2013-11-17  Jan Hubicka  <jh@suse.cz>
3550         * doc/md.texi (setmem, movstr): Update documentation.
3551         * builtins.c (determine_block_size): New function.
3552         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
3553         (expand_builtin_memset_args): Use it and pass it to
3554         set_storage_via_setmem.
3555         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
3556         parameters; update call to expander.
3557         (emit_block_move_hints): Add min_size/max_size parameters.
3558         (clear_storage_hints): Likewise.
3559         (set_storage_via_setmem): Likewise.
3560         (clear_storage): Update.
3561         * expr.h (emit_block_move_hints, clear_storage_hints,
3562         set_storage_via_setmem): Update prototypes.
3563         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
3564         (ix86_expand_movmem, ix86_expand_setmem): Remove.
3565         (ix86_expand_movmem, ix86_expand_setmem): Remove.
3566         * i386.md (movmem, setmem): Pass parameters.
3568 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
3570         PR target/59153
3571         * config/i386/i386.c (ix86_address_subreg_operand): Do not
3572         reject non-integer subregs.
3573         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
3574         Move check for invalid x32 constant addresses ...
3575         (ix86_legitimate_address_p): ... here.
3577 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3579         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
3580         parameter and use it in REG_FRAME_RELATED_EXPR note.
3581         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
3582         parameter.
3583         (rs6000_emit_prologue): Likewise, but for little endian VSX
3584         stores, pass the source register of the store instead.
3586 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
3588         * gimple.h: Reorder prototypes to match .c declaration order, and
3589         remove protyotypes for functions not in gimple.c.
3590         (LABEL): Move to tree-into-ssa.c.
3591         * gimple.c: Remove unused prototypes.
3592         (get_base_address): Move to tree.c.
3593         * tree.c (get_base_address): Relocate from gimple.c.
3594         * builtins.h (validate_gimple_arglist): Add prototype.
3595         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
3596         * cfgexpand.h: New File.
3597         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
3598         * tree.h (build_addr): Move to tree-nested.h.
3599         * tree-nested.h: New File.
3600         (build_addr, lower_nested_functions, insert_field_into_struct): Add
3601         prototypes.
3602         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
3603         * ipa-inline-analysis.c: Include cfgexpand.h.
3604         * cgraphunit.c: Include tree-nested.h.
3605         * omp-low.c: Likewise.
3606         * tree-parloops.c: Likewise.
3607         * gimple-low.h: Likewise.
3608         * tree-profile.h: Likewise.
3609         * expr.c: Include cfgexpand.h.
3610         * tree-affine.c: Likewise.
3611         * tree-ssa.c: Likewise.
3612         * tree-ssa-loop-im.c: Include trans-mem.h.
3613         * tree-ssa-tail-merge.c: Likewise.
3614         * value-prof.c: Include builtins.h and tree-nested.h.
3615         * tree-into-ssa.c (LABEL): Define here.
3617 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3619         * config/arc/arc.c (arc_predicate_delay_insns): New function.
3620         (pass_data_arc_predicate_delay_insns): New pass_data instance.
3621         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
3622         (make_pass_arc_predicate_delay_insns): New function.
3623         (arc_init): Register pass_arc_predicate_delay_insns if
3624         flag_delayed_branch is active.
3626 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3628         * config/arc/constraints.md (Rcq): Simplify register number test.
3630 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
3632         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
3634 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3636         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
3637         is null.
3639 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
3641         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
3642         * gimple-pretty-print.c (dump_omp_for): Add case for
3643         GF_OMP_FOR_KIND_CILKSIMD.
3644         * gimple.h (enum gf_mask): Restructure entries to add
3645         GF_OMP_FOR_KIND_CILKSIMD.
3646         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
3647         (gimplify_omp_for): Handle CILK_SIMD.
3648         (gimplify_expr): Add ccase for CILK_SIMD.
3649         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
3650         (build_outer_var_ref): Same.
3651         (check_omp_nesting_restrictions): Same.
3652         (lower_rec_input_clauses): Same.
3653         (lower_lastprivate_clauses): Same.
3654         (expand_omp_for): Same.
3655         (execute_expand_omp): Check flag_enable_cilkplus.
3656         (execute_lower_omp): Same.
3657         (diagnose_sb_0): Handle CILK_SIMD.
3658         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
3659         (setjmp_or_longjmp_p): New.
3660         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
3661         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
3662         * tree.def: Add tree code for CILK_SIMD.
3664 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3666         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
3667         Remove.
3668         (altivec_vperm_<mode>): Revert earlier little endian change.
3669         (*altivec_vperm_<mode>_internal): Remove.
3670         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
3671         (*altivec_vperm_<mode>_uns_internal): Remove.
3672         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
3674 2013-11-15  Jeff Law  <law@redhat.com>
3676         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
3677         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
3678         * gimple-ssa-isolate-paths.c
3679         (find_implicit_erroneous_behaviour): Corresponding changes.
3680         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
3681         (find_explicit_erroneous_behaviour): Likewise.
3683 2013-11-15  Jeff Law  <law@redhat.com>
3685         * ifcvt.c (find_cond_trap): Properly handle case where
3686         trap_bb == else_bb.
3688 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
3690         * configure: Regenerate.
3692 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
3694         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
3695         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
3696         where it is incorrect or missing.
3698 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
3700         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
3701         host_integerp test.
3702         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
3703         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
3704         constant.
3705         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
3706         pair with a TREE_CODE test and TREE_INT_CST_LOW.
3707         * tree-vect-generic.c (expand_vector_divmod): Likewise.
3709 2013-11-15  Richard Biener  <rguenther@suse.de>
3711         PR tree-optimization/50262
3712         * tree-ssa-alias.h (struct pt_solution): Split
3713         vars_contains_global into vars_contains_nonlocal,
3714         vars_contains_escaped and vars_contains_escaped_heap.
3715         * tree-ssa-structalias.c (label_visit): Expand comment.
3716         (handle_lhs_call): Adjust comment.
3717         (set_uids_in_ptset): Set the new flags appropriately.
3718         (pt_solution_set): Adjust.
3719         (pt_solution_set_var): Likewise.
3720         (pt_solution_ior_into): Likewise.
3721         (pt_solution_includes_global): Likewise.
3722         (pt_solutions_intersect_1): Optimize escaped handling.
3723         (compute_points_to_sets): Remove heap variable globalization.
3724         (ipa_escaped_pt): Adjust initializer.
3725         (pass_data_ipa_pta): Do not run TODO_update_ssa.
3726         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
3727         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
3729 2013-11-15  Richard Biener  <rguenther@suse.de>
3731         * tree-loop-distribution.c (tree_loop_distribution): Make sure
3732         to distribute all stores.
3734 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3736         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
3738 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
3740         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
3741         * configure.ac: Determine target_header_dir earlier.
3742         (--with-glibc-version): New configure option.
3743         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
3744         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
3745         * configure: Regenerate.
3746         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
3747         native toolchains for default.
3748         (--with-glibc-version): Document.
3750 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
3752         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
3754 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
3756         * lto-streamer-in.c (input function): Call cgraph_create_node if
3757         cgraph_get_node failed.
3759 2013-11-14   Olivier Hainque  <hainque@adacore.com>
3761         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
3762         defer allocation of DECL_IGNORED_P variables at toplevel unless really
3763         small.  Factorize size threshold computation from the existing one.
3764         (expand_used_vars): Refine comment.
3766 2013-11-14  Cong Hou  <congh@google.com>
3768         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
3769         address field as it can be obtained from dr.  Rename the struct.
3770         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
3771         steps of data references during sort.
3772         (vect_prune_runtime_alias_test_list): Adjust with the change to
3773         struct dr_with_seg_len.
3774         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3775         Adjust with the change to struct dr_with_seg_len.
3777 2013-11-14  Jeff Law  <law@redhat.com>
3779         PR middle-end/59127
3780         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
3781         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
3782         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
3783         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
3784         edges, then ignore it.  If the statement exhibiting erroneous
3785         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
3786         then we can not optimize.
3787         (find_explicit_erroneous_behaviour): Likewise.
3789 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
3791         * gimplify-me.h:  New file.  Add prototypes.
3792         * gimplify.h: Don't include gimple.h.
3793         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
3794         Relocate from gimple.h.
3795         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
3796         is_gimple_sizepos): Move to gimplify.h.
3797         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
3798         (enum gsi_iterator_update): Move to gimple-iterator.h.
3799         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
3800         * gimplify-me.c: New File.
3801         (force_gimple_operand_1, force_gimple_operand,
3802         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
3803         gimple_regimplify_operands): Relocate from gimplify.c.
3804         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
3805         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
3806         gimple_regimplify_operands): Move to gimplify-me.c.
3807         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
3808         from gimple.h.
3809         * Makefile.in (OBJS): Add gimplify-me.o
3810         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
3811         required.
3812         * cfgloopmanip.c: Likewise.
3813         * cgraphunit.c: Likewise.
3814         * cilk-common.c: Likewise.
3815         * fold-const.c: Likewise.
3816         * function.c: Likewise.
3817         * gimple-expr.c: Likewise.
3818         * gimple-fold.c: Likewise.
3819         * gimple-ssa-strength-reduction.c: Likewise.
3820         * gimple.c: Likewise.
3821         * graphite-clast-to-gimple.c: Likewise.
3822         * graphite-sese-to-poly.c: Likewise.
3823         * ipa-prop.c: Likewise.
3824         * ipa-split.c: Likewise.
3825         * ipa.c: Likewise.
3826         * langhooks.c: Likewise.
3827         * omp-low.c: Likewise.
3828         * sese.c: Likewise.
3829         * stor-layout.c: Likewise.
3830         * targhooks.c: Likewise.
3831         * trans-mem.c: Likewise.
3832         * tree-affine.c: Likewise.
3833         * tree-cfg.c: Likewise.
3834         * tree-cfgcleanup.c: Likewise.
3835         * tree-complex.c: Likewise.
3836         * tree-if-conv.c: Likewise.
3837         * tree-inline.c: Likewise.
3838         * tree-loop-distribution.c: Likewise.
3839         * tree-nested.c: Likewise.
3840         * tree-parloops.c: Likewise.
3841         * tree-predcom.c: Likewise.
3842         * tree-profile.c: Likewise.
3843         * tree-scalar-evolution.c: Likewise.
3844         * tree-sra.c: Likewise.
3845         * tree-ssa-address.c: Likewise.
3846         * tree-ssa-ccp.c: Likewise.
3847         * tree-ssa-dce.c: Likewise.
3848         * tree-ssa-forwprop.c: Likewise.
3849         * tree-ssa-ifcombine.c: Likewise.
3850         * tree-ssa-loop-im.c: Likewise.
3851         * tree-ssa-loop-ivopts.c: Likewise.
3852         * tree-ssa-loop-manip.c: Likewise.
3853         * tree-ssa-loop-niter.c: Likewise.
3854         * tree-ssa-loop-prefetch.c: Likewise.
3855         * tree-ssa-loop-unswitch.c: Likewise.
3856         * tree-ssa-math-opts.c: Likewise.
3857         * tree-ssa-phiopt.c: Likewise.
3858         * tree-ssa-phiprop.c: Likewise.
3859         * tree-ssa-pre.c: Likewise.
3860         * tree-ssa-propagate.c: Likewise.
3861         * tree-ssa-reassoc.c: Likewise.
3862         * tree-ssa-sccvn.c: Likewise.
3863         * tree-ssa-strlen.c: Likewise.
3864         * tree-ssa.c: Likewise.
3865         * tree-switch-conversion.c: Likewise.
3866         * tree-tailcall.c: Likewise.
3867         * tree-vect-data-refs.c: Likewise.
3868         * tree-vect-generic.c: Likewise.
3869         * tree-vect-loop-manip.c: Likewise.
3870         * tree-vect-loop.c: Likewise.
3871         * tree-vect-patterns.c: Likewise.
3872         * tree-vect-stmts.c: Likewise.
3873         * tree.c: Likewise.
3874         * tsan.c: Likewise.
3875         * value-prof.c: Likewise.
3876         * config/aarch64/aarch64.c: Likewise.
3877         * config/alpha/alpha.c: Likewise.
3878         * config/darwin.c: Likewise.
3879         * config/i386/i386.c: Likewise.
3880         * config/ia64/ia64.c: Likewise.
3881         * config/mep/mep.c: Likewise.
3882         * config/mips/mips.c: Likewise.
3883         * config/rs6000/rs6000.c: Likewise.
3884         * config/s390/s390.c: Likewise.
3885         * config/sh/sh.c: Likewise.
3886         * config/sparc/sparc.c: Likewise.
3887         * config/spu/spu.c: Likewise.
3888         * config/stormy16/stormy16.c: Likewise.
3889         * config/tilegx/tilegx.c: Likewise.
3890         * config/tilepro/tilepro.c: Likewise.
3891         * config/xtensa/xtensa.c: Likewise.
3893 2013-11-14  Diego Novillo  <dnovillo@google.com>
3895         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
3897 2013-11-14  Diego Novillo  <dnovillo@google.com>
3899         * tree.h: Include fold-const.h.
3900         (aggregate_value_p): Moved to function.h.
3901         (alloca_call_p): Moved to calls.h.
3902         (allocate_struct_function): Moved to function.h.
3903         (apply_tm_attr): Moved to attribs.h.
3904         (array_at_struct_end_p): Moved to expr.h.
3905         (array_ref_element_size): Moved to tree-dfa.h.
3906         (array_ref_low_bound): Moved to tree-dfa.h.
3907         (array_ref_up_bound): Moved to tree.h.
3908         (assemble_alias): Moved to cgraph.h.
3909         (bit_from_pos): Moved to stor-layout.h.
3910         (build_addr): Moved to tree-nested.h.
3911         (build_duplicate_type): Moved to tree-inline.h.
3912         (build_fold_addr_expr): Moved to fold-const.h.
3913         (build_fold_addr_expr_with_type): Moved to fold-const.h.
3914         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
3915         (build_fold_indirect_ref): Moved to fold-const.h.
3916         (build_fold_indirect_ref_loc): Moved to fold-const.h.
3917         (build_personality_function): Moved to tree.h.
3918         (build_range_check): Moved to fold-const.h.
3919         (build_simple_mem_ref): Moved to fold-const.h.
3920         (build_simple_mem_ref_loc): Moved to fold-const.h.
3921         (build_tm_abort_call): Moved to trans-mem.h.
3922         (byte_from_pos): Moved to stor-layout.h.
3923         (call_expr_flags): Moved to calls.h.
3924         (can_move_by_pieces): Moved to expr.h.
3925         (categorize_ctor_elements): Moved to expr.h.
3926         (change_decl_assembler_name): Moved to gcc-symtab.h.
3927         (combine_comparisons): Moved to fold-const.h.
3928         (complete_ctor_at_level_p): Moved to tree.h.
3929         (component_ref_field_offset): Moved to tree-dfa.h.
3930         (compute_builtin_object_size): Moved to tree-object-size.h.
3931         (compute_record_mode): Moved to stor-layout.h.
3932         (constant_boolean_node): Moved to fold-const.h.
3933         (constructor_static_from_elts_p): Moved to varasm.h.
3934         (cxx11_attribute_p): Moved to attribs.h.
3935         (debug_body): Moved to print-tree.h.
3936         (debug_find_tree): Moved to tree-inline.h.
3937         (debug_fold_checksum): Moved to fold-const.h.
3938         (debug_head): Moved to print-tree.h.
3939         (debug_head): Moved to print-tree.h.
3940         (debug_raw): Moved to print-tree.h.
3941         (debug_tree): Moved to print-tree.h.
3942         (debug_vec_tree): Moved to print-tree.h.
3943         (debug_verbose): Moved to print-tree.h.
3944         (debug_verbose): Moved to print-tree.h.
3945         (decl_attributes): Moved to attribs.h.
3946         (decl_binds_to_current_def_p): Moved to varasm.h.
3947         (decl_default_tls_model): Moved to varasm.h.
3948         (decl_replaceable_p): Moved to varasm.h.
3949         (div_if_zero_remainder): Moved to fold-const.h.
3950         (double_int mem_ref_offset): Moved to fold-const.h.
3951         (dump_addr): Moved to print-tree.h.
3952         (element_precision): Moved to machmode.h.
3953         (expand_dummy_function_end): Moved to function.h.
3954         (expand_function_end): Moved to function.h.
3955         (expand_function_start): Moved to function.h.
3956         (expand_label): Moved to stmt.h.
3957         (expr_first): Moved to tree-iterator.h.
3958         (expr_last): Moved to tree-iterator.h.
3959         (finalize_size_functions): Moved to stor-layout.h.
3960         (finish_builtin_struct): Moved to stor-layout.h.
3961         (finish_record_layout): Moved to stor-layout.h.
3962         (fixup_signed_type): Moved to stor-layout.h.
3963         (fixup_unsigned_type): Moved to stor-layout.h.
3964         (flags_from_decl_or_type): Moved to calls.h.
3965         (fold): Moved to fold-const.h.
3966         (fold_abs_const): Moved to fold-const.h.
3967         (fold_binary): Moved to fold-const.h.
3968         (fold_binary_loc): Moved to fold-const.h.
3969         (fold_binary_to_constant): Moved to fold-const.h.
3970         (fold_build1): Moved to fold-const.h.
3971         (fold_build1_initializer_loc): Moved to fold-const.h.
3972         (fold_build1_loc): Moved to fold-const.h.
3973         (fold_build1_stat_loc): Moved to fold-const.h.
3974         (fold_build2): Moved to fold-const.h.
3975         (fold_build2_initializer_loc): Moved to fold-const.h.
3976         (fold_build2_loc): Moved to fold-const.h.
3977         (fold_build2_stat_loc): Moved to fold-const.h.
3978         (fold_build3): Moved to fold-const.h.
3979         (fold_build3_loc): Moved to fold-const.h.
3980         (fold_build3_stat_loc): Moved to fold-const.h.
3981         (fold_build_call_array): Moved to fold-const.h.
3982         (fold_build_call_array_initializer): Moved to fold-const.h.
3983         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
3984         (fold_build_call_array_loc): Moved to fold-const.h.
3985         (fold_build_cleanup_point_expr): Moved to fold-const.h.
3986         (fold_convert): Moved to fold-const.h.
3987         (fold_convert_loc): Moved to fold-const.h.
3988         (fold_convertible_p): Moved to fold-const.h.
3989         (fold_defer_overflow_warnings): Moved to fold-const.h.
3990         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
3991         (fold_fma): Moved to fold-const.h.
3992         (fold_ignored_result): Moved to fold-const.h.
3993         (fold_indirect_ref): Moved to fold-const.h.
3994         (fold_indirect_ref_1): Moved to fold-const.h.
3995         (fold_indirect_ref_loc): Moved to fold-const.h.
3996         (fold_read_from_constant_string): Moved to fold-const.h.
3997         (fold_real_zero_addition_p): Moved to fold-const.h.
3998         (fold_single_bit_test): Moved to fold-const.h.
3999         (fold_strip_sign_ops): Moved to fold-const.h.
4000         (fold_ternary): Moved to fold-const.h.
4001         (fold_ternary_loc): Moved to fold-const.h.
4002         (fold_unary): Moved to tree-data-ref.h.
4003         (fold_unary_ignore_overflow): Moved to fold-const.h.
4004         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4005         (fold_unary_loc): Moved to fold-const.h.
4006         (fold_unary_to_constant): Moved to fold-const.h.
4007         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4008         (fold_undefer_overflow_warnings): Moved to fold-const.h.
4009         (folding_initializer): Moved to fold-const.h.
4010         (free_temp_slots): Moved to function.h.
4011         (generate_setjmp_warnings): Moved to function.h.
4012         (get_attribute_name): Moved to attribs.h.
4013         (get_identifier): Moved to stringpool.h.
4014         (get_identifier_with_length): Moved to stringpool.h.
4015         (get_inner_reference): Moved to tree.h.
4016         (gimple_alloca_call_p): Moved to calls.h.
4017         (gimplify_parameters): Moved to function.h.
4018         (highest_pow2_factor): Moved to expr.h.
4019         (indent_to): Moved to print-tree.h.
4020         (init_attributes): Moved to attribs.h.
4021         (init_dummy_function_start): Moved to function.h.
4022         (init_function_start): Moved to function.h.
4023         (init_inline_once): Moved to tree-inline.h.
4024         (init_object_sizes): Moved to tree-object-size.h.
4025         (init_temp_slots): Moved to function.h.
4026         (init_tree_optimization_optabs): Moved to optabs.h.
4027         (initialize_sizetypes): Moved to stor-layout.h.
4028         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4029         (initializer_constant_valid_p): Moved to varasm.h.
4030         (int_const_binop): Moved to fold-const.h.
4031         (internal_reference_types): Moved to stor-layout.h.
4032         (invert_tree_comparison): Moved to fold-const.h.
4033         (invert_truthvalue): Moved to fold-const.h.
4034         (invert_truthvalue_loc): Moved to fold-const.h.
4035         (is_tm_ending_fndecl): Moved to trans-mem.h.
4036         (is_tm_may_cancel_outer): Moved to trans-mem.h.
4037         (is_tm_pure): Moved to trans-mem.h.
4038         (is_tm_safe): Moved to trans-mem.h.
4039         (layout_decl): Moved to stor-layout.h.
4040         (layout_type): Moved to stor-layout.h.
4041         (lookup_attribute_spec): Moved to attribs.h.
4042         (make_accum_type): Moved to stor-layout.h.
4043         (make_decl_one_only): Moved to varasm.h.
4044         (make_decl_rtl): Moved to tree.h.
4045         (make_decl_rtl_for_debug): Moved to varasm.h.
4046         (make_fract_type): Moved to stor-layout.h.
4047         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4048         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4049         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4050         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4051         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4052         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4053         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4054         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4055         (make_range): Moved to fold-const.h.
4056         (make_range_step): Moved to fold-const.h.
4057         (make_sat_signed_accum_type): Moved to stor-layout.h.
4058         (make_sat_signed_fract_type): Moved to stor-layout.h.
4059         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4060         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4061         (make_signed_accum_type): Moved to stor-layout.h.
4062         (make_signed_fract_type): Moved to stor-layout.h.
4063         (make_signed_type): Moved to stor-layout.h.
4064         (make_unsigned_accum_type): Moved to stor-layout.h.
4065         (make_unsigned_fract_type): Moved to stor-layout.h.
4066         (make_unsigned_type): Moved to stor-layout.h.
4067         (mark_decl_referenced): Moved to varasm.h.
4068         (mark_referenced): Moved to varasm.h.
4069         (may_negate_without_overflow_p): Moved to fold-const.h.
4070         (maybe_get_identifier): Moved to stringpool.h.
4071         (merge_ranges): Moved to fold-const.h.
4072         (merge_weak): Moved to varasm.h.
4073         (mode_for_size_tree): Moved to stor-layout.h.
4074         (multiple_of_p): Moved to fold-const.h.
4075         (must_pass_in_stack_var_size): Moved to calls.h.
4076         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4077         (native_encode_expr): Moved to fold-const.h.
4078         (native_interpret_expr): Moved to fold-const.h.
4079         (non_lvalue): Moved to fold-const.h.
4080         (non_lvalue_loc): Moved to fold-const.h.
4081         (normalize_offset): Moved to stor-layout.h.
4082         (normalize_rli): Moved to stor-layout.h.
4083         (notice_global_symbol): Moved to varasm.h.
4084         (omit_one_operand): Moved to fold-const.h.
4085         (omit_one_operand_loc): Moved to fold-const.h.
4086         (omit_two_operands): Moved to fold-const.h.
4087         (omit_two_operands_loc): Moved to fold-const.h.
4088         (operand_equal_p): Moved to tree-data-ref.h.
4089         (parse_input_constraint): Moved to stmt.h.
4090         (parse_output_constraint): Moved to stmt.h.
4091         (place_field): Moved to stor-layout.h.
4092         (pop_function_context): Moved to function.h.
4093         (pop_temp_slots): Moved to function.h.
4094         (pos_from_bit): Moved to stor-layout.h.
4095         (preserve_temp_slots): Moved to function.h.
4096         (print_node): Moved to print-tree.h.
4097         (print_node_brief): Moved to print-tree.h.
4098         (print_rtl): Moved to rtl.h.
4099         (process_pending_assemble_externals): Moved to varasm.h.
4100         (ptr_difference_const): Moved to fold-const.h.
4101         (push_function_context): Moved to function.h.
4102         (push_struct_function): Moved to function.h.
4103         (push_temp_slots): Moved to function.h.
4104         (record_tm_replacement): Moved to trans-mem.h.
4105         (relayout_decl): Moved to stor-layout.h.
4106         (resolve_asm_operand_names): Moved to stmt.h.
4107         (resolve_unique_section): Moved to varasm.h.
4108         (rli_size_so_far): Moved to stor-layout.h.
4109         (rli_size_unit_so_far): Moved to stor-layout.h.
4110         (round_down): Moved to fold-const.h.
4111         (round_down_loc): Moved to fold-const.h.
4112         (round_up): Moved to fold-const.h.
4113         (round_up_loc): Moved to fold-const.h.
4114         (set_decl_incoming_rtl): Moved to emit-rtl.h.
4115         (set_decl_rtl): Moved to tree.h.
4116         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4117         (set_user_assembler_name): Moved to varasm.h.
4118         (setjmp_call_p): Moved to calls.h.
4119         (size_binop): Moved to fold-const.h.
4120         (size_binop_loc): Moved to fold-const.h.
4121         (size_diffop): Moved to fold-const.h.
4122         (size_diffop_loc): Moved to fold-const.h.
4123         (size_int_kind): Moved to fold-const.h.
4124         (stack_protect_epilogue): Moved to function.h.
4125         (start_record_layout): Moved to stor-layout.h.
4126         (supports_one_only): Moved to varasm.h.
4127         (swap_tree_comparison): Moved to fold-const.h.
4128         (tm_malloc_replacement): Moved to trans-mem.h.
4129         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4130         (tree build_invariant_address): Moved to fold-const.h.
4131         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4132         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4133         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4134         (tree_expr_nonnegative_p): Moved to fold-const.h.
4135         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4136         (tree_output_constant_def): Moved to varasm.h.
4137         (tree_overlaps_hard_reg_set): Moved to stmt.h.
4138         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4139         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4140         (tree_swap_operands_p): Moved to fold-const.h.
4141         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4142         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4143         (update_alignment_for_field): Moved to stor-layout.h.
4144         (use_register_for_decl): Moved to function.h.
4145         (variable_size): Moved to rtl.h.
4146         (vector_type_mode): Moved to stor-layout.h.
4147         * cgraph.h: Corresponding changes.
4148         * emit-rtl.h: Corresponding changes.
4149         * expr.h: Corresponding changes.
4150         * function.h: Corresponding changes.
4151         * optabs.h: Corresponding changes.
4152         * trans-mem.h: Corresponding changes.
4153         Protect against multiple inclusion.
4154         * tree-inline.h: Corresponding changes.
4155         * tree-iterator.h: Corresponding changes.
4156         * tree-dfa.h: Include expr.h.
4157         * tree-ssanames.h: Include stringpool.h.
4158         * attribs.h: New file.
4159         * calls.h: New file.
4160         * fold-const.h: New file.
4161         * gcc-symtab.h: New file.
4162         * print-rtl.h: New file.
4163         * print-tree.h: New file.
4164         * stmt.h: New file.
4165         * stor-layout.h: New file.
4166         * strinpool.h: New file.
4167         * tree-nested.h: New file
4168         * tree-object-size.h: New file.
4169         * varasm.h: New file.
4171 2013-11-14  Diego Novillo  <dnovillo@google.com>
4173         * alias.c: Include varasm.h.
4174         Include expr.h.
4175         * asan.c: Include calls.h.
4176         Include stor-layout.h.
4177         Include varasm.h.
4178         * attribs.c: Include stringpool.h.
4179         Include attribs.h.
4180         Include stor-layout.h.
4181         * builtins.c: Include stringpool.h.
4182         Include stor-layout.h.
4183         Include calls.h.
4184         Include varasm.h.
4185         Include tree-object-size.h.
4186         * calls.c: Include stor-layout.h.
4187         Include varasm.h.
4188         Include stringpool.h.
4189         Include attribs.h.
4190         * cfgexpand.c: Include stringpool.h.
4191         Include varasm.h.
4192         Include stor-layout.h.
4193         Include stmt.h.
4194         Include print-tree.h.
4195         * cgraph.c: Include varasm.h.
4196         Include calls.h.
4197         Include print-tree.h.
4198         * cgraphclones.c: Include stringpool.h.
4199         Include function.h.
4200         Include emit-rtl.h.
4201         Move inclusion of rtl.h earlier in the file.
4202         * cgraphunit.c: Include varasm.h.
4203         Include stor-layout.h.
4204         Include stringpool.h.
4205         * cilk-common.c: Include stringpool.h.
4206         Include stor-layout.h.
4207         * combine.c: Include stor-layout.h.
4208         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4209         Include stringpool.h.
4210         Include calls.h.
4211         * config/aarch64/aarch64.c: Include stringpool.h.
4212         Include stor-layout.h.
4213         Include calls.h.
4214         Include varasm.h.
4215         * config/alpha/alpha.c: Include stor-layout.h.
4216         Include calls.h.
4217         Include varasm.h.
4218         * config/arc/arc.c: Include varasm.h.
4219         Include stor-layout.h.
4220         Include stringpool.h.
4221         Include calls.h.
4222         * config/arm/arm.c: Include stringpool.h.
4223         Include stor-layout.h.
4224         Include calls.h.
4225         Include varasm.h.
4226         * config/avr/avr-c.c: Include stor-layout.h.
4227         * config/avr/avr-log.c: Include print-tree.h.
4228         * config/avr/avr.c: Include print-tree.h.
4229         Include calls.h.
4230         Include stor-layout.h.
4231         Include stringpool.h.
4232         * config/bfin/bfin.c: Include varasm.h.
4233         Include calls.h.
4234         * config/c6x/c6x.c: Include stor-layout.h.
4235         Include varasm.h.
4236         Include calls.h.
4237         Include stringpool.h.
4238         * config/cr16/cr16.c: Include stor-layout.h.
4239         Include calls.h.
4240         * config/cris/cris.c: Include varasm.h.
4241         Include stor-layout.h.
4242         Include calls.h.
4243         Include stmt.h.
4244         * config/darwin.c: Include stringpool.h.
4245         Include varasm.h.
4246         Include stor-layout.h.
4247         * config/epiphany/epiphany.c: Include stor-layout.h.
4248         Include varasm.h.
4249         Include calls.h.
4250         Include stringpool.h.
4251         * config/fr30/fr30.c: Include stor-layout.h.
4252         Include varasm.h.
4253         * config/frv/frv.c: Include varasm.h.
4254         Include stor-layout.h.
4255         Include stringpool.h.
4256         * config/h8300/h8300.c: Include stor-layout.h.
4257         Include varasm.h.
4258         Include calls.h.
4259         Include stringpool.h.
4260         * config/i386/i386.c: Include stringpool.h.
4261         Include attribs.h.
4262         Include calls.h.
4263         Include stor-layout.h.
4264         Include varasm.h.
4265         * config/i386/winnt-cxx.c: Include stringpool.h.
4266         Include attribs.h.
4267         * config/i386/winnt.c: Include stringpool.h.
4268         Include varasm.h.
4269         * config/ia64/ia64-c.c: Include stringpool.h.
4270         * config/ia64/ia64.c: Include stringpool.h.
4271         Include stor-layout.h.
4272         Include calls.h.
4273         Include varasm.h.
4274         * config/iq2000/iq2000.c: Include stor-layout.h.
4275         Include calls.h.
4276         Include varasm.h.
4277         * config/lm32/lm32.c: Include calls.h.
4278         * config/m32c/m32c.c: Include stor-layout.h.
4279         Include varasm.h.
4280         Include calls.h.
4281         * config/m32r/m32r.c: Include stor-layout.h.
4282         Include varasm.h.
4283         Include stringpool.h.
4284         Include calls.h.
4285         * config/m68k/m68k.c: Include calls.h.
4286         Include stor-layout.h.
4287         Include varasm.h.
4288         * config/mcore/mcore.c: Include stor-layout.h.
4289         Include varasm.h.
4290         Include stringpool.h.
4291         Include calls.h.
4292         * config/mep/mep.c: Include varasm.h.
4293         Include calls.h.
4294         Include stringpool.h.
4295         Include stor-layout.h.
4296         * config/microblaze/microblaze.c: Include varasm.h.
4297         Include stor-layout.h.
4298         Include calls.h.
4299         * config/mips/mips.c: Include varasm.h.
4300         Include stringpool.h.
4301         Include stor-layout.h.
4302         Include calls.h.
4303         * config/mmix/mmix.c: Include varasm.h.
4304         Include stor-layout.h.
4305         Include calls.h.
4306         * config/mn10300/mn10300.c: Include stor-layout.h.
4307         Include varasm.h.
4308         Include calls.h.
4309         * config/moxie/moxie.c: Include stor-layout.h.
4310         Include varasm.h.
4311         Include calls.h.
4312         * config/msp430/msp430.c: Include stor-layout.h.
4313         Include calls.h.
4314         * config/nds32/nds32.c: Include stor-layout.h.
4315         Include varasm.h.
4316         Include calls.h.
4317         * config/pa/pa.c: Include stor-layout.h.
4318         Include stringpool.h.
4319         Include varasm.h.
4320         Include calls.h.
4321         * config/pdp11/pdp11.c: Include stor-layout.h.
4322         Include varasm.h.
4323         Include calls.h.
4324         * config/picochip/picochip.c: Include calls.h.
4325         Include stor-layout.h.
4326         Include stringpool.h.
4327         Include varasm.h.
4328         * config/rl78/rl78.c: Include varasm.h.
4329         Include stor-layout.h.
4330         Include calls.h.
4331         * config/rs6000/rs6000-c.c: Include stor-layout.h.
4332         Include stringpool.h.
4333         * config/rs6000/rs6000.c: Include stringpool.h.
4334         Include stor-layout.h.
4335         Include calls.h.
4336         Include print-tree.h.
4337         Include varasm.h.
4338         * config/rx/rx.c: Include varasm.h.
4339         Include stor-layout.h.
4340         Include calls.h.
4341         * config/s390/s390.c: Include print-tree.h.
4342         Include stringpool.h.
4343         Include stor-layout.h.
4344         Include varasm.h.
4345         Include calls.h.
4346         * config/score/score.c: Include stringpool.h.
4347         Include calls.h.
4348         Include varasm.h.
4349         Include stor-layout.h.
4350         * config/sh/sh-c.c: Include stringpool.h.
4351         Include attribs.h.h.
4352         * config/sh/sh.c: Include stringpool.h.
4353         Include stor-layout.h.
4354         Include calls.h.
4355         Include varasm.h.
4356         * config/sol2-c.c: Include stringpool.h.
4357         Include attribs.h.
4358         * config/sol2-cxx.c: Include stringpool.h.
4359         * config/sol2.c: Include stringpool.h.
4360         Include varasm.h.
4361         * config/sparc/sparc.c: Include stringpool.h.
4362         Include stor-layout.h.
4363         Include calls.h.
4364         Include varasm.h.
4365         * config/spu/spu-c.c: Include stringpool.h.
4366         * config/spu/spu.c: Include stringpool.h.
4367         Include stor-layout.h.
4368         Include calls.h.
4369         Include varasm.h.
4370         * config/stormy16/stormy16.c: Include stringpool.h.
4371         Include stor-layout.h.
4372         Include varasm.h.
4373         Include calls.h.
4374         * config/tilegx/tilegx.c: Include stringpool.h.
4375         Include stor-layout.h.
4376         Include varasm.h.
4377         Include calls.h.
4378         * config/tilepro/tilepro.c: Include stringpool.h.
4379         Include stor-layout.h.
4380         Include varasm.h.
4381         Include calls.h.
4382         * config/v850/v850-c.c: Include stringpool.h.
4383         Include attribs.h.
4384         * config/v850/v850.c: Include stringpool.h.
4385         Include stor-layout.h.
4386         Include varasm.h.
4387         Include calls.h.
4388         * config/vax/vax.c: Include calls.h.
4389         Include varasm.h.
4390         * config/vms/vms.c: Include stringpool.h.
4391         * config/vxworks.c: Include stringpool.h.
4392         * config/xtensa/xtensa.c: Include stringpool.h.
4393         Include stor-layout.h.
4394         Include calls.h.
4395         Include varasm.h.
4396         * convert.c: Include stor-layout.h.
4397         * coverage.c: Include stringpool.h.
4398         Include stor-layout.h.
4399         * dbxout.c: Include varasm.h.
4400         Include stor-layout.h.
4401         * dojump.c: Include stor-layout.h.
4402         * dse.c: Include stor-layout.h.
4403         * dwarf2asm.c: Include stringpool.h.
4404         Include varasm.h.
4405         * dwarf2cfi.c: Include stor-layout.h.
4406         * dwarf2out.c: Include rtl.h.
4407         Include stringpool.h.
4408         Include stor-layout.h.
4409         Include varasm.h.
4410         Include function.h.
4411         Include emit-rtl.h.
4412         Move inclusion of rtl.h earlier in the file.
4413         * emit-rtl.c: Include varasm.h.
4414         * except.c: Include stringpool.h.
4415         Include stor-layout.h.
4416         * explow.c: Include stor-layout.h.
4417         * expmed.c: Include stor-layout.h.
4418         * expr.c: Include stringpool.h.
4419         Include stor-layout.h.
4420         Include attribs.h.
4421         Include varasm.h.
4422         * final.c: Include varasm.h.
4423         * fold-const.c: Include stor-layout.h.
4424         Include calls.h.
4425         Include tree-iterator.h.
4426         * function.c: Include stor-layout.h.
4427         Include varasm.h.
4428         Include stringpool.h.
4429         * genattrtab.c (write_header): Emit includes for varasm.h,
4430         stor-layout.h and calls.h.
4431         * genautomata.c (main): Likewise.
4432         * genemit.c: Likewise.
4433         * genopinit.c: Likewise.
4434         * genoutput.c (output_prologue): Likewise.
4435         * genpeep.c: Likewise.
4436         * genpreds.c (write_insn_preds_c): Likewise.
4437         * gengtype.c (open_base_files): Add stringpool.h.
4438         * gimple-expr.c: Include stringpool.h.
4439         Include stor-layout.h.
4440         * gimple-fold.c: Include stringpool.h.
4441         Include expr.h.
4442         Include stmt.h.
4443         Include stor-layout.h.
4444         * gimple-low.c: Include tree-nested.h.
4445         Include calls.h.
4446         * gimple-pretty-print.c: Include stringpool.h.
4447         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
4448         Include expr.h.
4449         * gimple-walk.c: Include stmt.h.
4450         * gimple.c: Include calls.h.
4451         Include stmt.h.
4452         Include stor-layout.h.
4453         * gimplify.c: Include stringpool.h.
4454         Include calls.h.
4455         Include varasm.h.
4456         Include stor-layout.h.
4457         Include stmt.h.
4458         Include print-tree.h.
4459         Include expr.h.
4460         * gimplify-me.c: Include stmt.h
4461         Include stor-layout.h
4462         * internal-fn.c: Include stor-layout.h.
4463         * ipa-devirt.c: Include print-tree.h.
4464         Include calls.h.
4465         * ipa-inline-analysis.c: Include stor-layout.h.
4466         Include stringpool.h.
4467         Include print-tree.h.
4468         * ipa-inline.c: Include trans-mem.h.
4469         Include calls.h.
4470         * ipa-prop.c: Include expr.h.
4471         Include stor-layout.h.
4472         Include print-tree.h.
4473         * ipa-pure-const.c: Include print-tree.h.
4474         Include calls.h.
4475         * ipa-reference.c: Include calls.h.
4476         * ipa-split.c: Include stringpool.h.
4477         Include expr.h.
4478         Include calls.h.
4479         * ipa.c: Include calls.h.
4480         Include stringpool.h.
4481         * langhooks.c: Include stringpool.h.
4482         Include attribs.h.
4483         * lto-cgraph.c: Include stringpool.h.
4484         * lto-streamer-in.c: Include stringpool.h.
4485         * lto-streamer-out.c: Include stor-layout.h.
4486         Include stringpool.h.
4487         * omp-low.c: Include stringpool.h.
4488         Include stor-layout.h.
4489         Include expr.h.
4490         * optabs.c: Include stor-layout.h.
4491         Include stringpool.h.
4492         Include varasm.h.
4493         * passes.c: Include varasm.h.
4494         * predict.c: Include calls.h.
4495         * print-rtl.c: Include print-tree.h.
4496         * print-tree.c: Include varasm.h.
4497         Include print-rtl.h.
4498         Include stor-layout.h.
4499         * realmpfr.c: Include stor-layout.h.
4500         * reg-stack.c: Include varasm.h.
4501         * sdbout.c: Include varasm.h.
4502         Include stor-layout.h.
4503         * simplify-rtx.c: Include varasm.h.
4504         * stmt.c: Include varasm.h.
4505         Include stor-layout.h.
4506         * stor-layout.c: Include stor-layout.h.
4507         Include stringpool.h.
4508         Include varasm.h.
4509         Include print-tree.h.
4510         * symtab.c: Include rtl.h.
4511         Include print-tree.h.
4512         Include varasm.h.
4513         Include function.h.
4514         Include emit-rtl.h.
4515         * targhooks.c: Include stor-layout.h.
4516         Include varasm.h.
4517         * toplev.c: Include varasm.h.
4518         Include tree-inline.h.
4519         * trans-mem.c: Include calls.h.
4520         Include function.h.
4521         Include rtl.h.
4522         Include emit-rtl.h.
4523         * tree-affine.c: Include expr.h.
4524         * tree-browser.c: Include print-tree.h.
4525         * tree-call-cdce.c: Include stor-layout.h.
4526         * tree-cfg.c: Include trans-mem.h.
4527         Include stor-layout.h.
4528         Include print-tree.h.
4529         * tree-complex.c: Include stor-layout.h.
4530         * tree-data-ref.c: Include expr.h.
4531         * tree-dfa.c: Include stor-layout.h.
4532         * tree-eh.c: Include expr.h.
4533         Include calls.h.
4534         * tree-emutls.c: Include stor-layout.h.
4535         Include varasm.h.
4536         * tree-if-conv.c: Include stor-layout.h.
4537         * tree-inline.c: Include stor-layout.h.
4538         Include calls.h.
4539         * tree-loop-distribution.c: Include stor-layout.h.
4540         * tree-nested.c: Include stringpool.h.
4541         Include stor-layout.h.
4542         * tree-object-size.c: Include tree-object-size.h.
4543         * tree-outof-ssa.c: Include stor-layout.h.
4544         * tree-parloops.c: Include stor-layout.h.
4545         Include tree-nested.h.
4546         * tree-pretty-print.c: Include stor-layout.h.
4547         Include expr.h.
4548         * tree-profile.c: Include varasm.h.
4549         Include tree-nested.h.
4550         * tree-scalar-evolution.c: Include expr.h.
4551         * tree-sra.c: Include stor-layout.h.
4552         * tree-ssa-address.c: Include stor-layout.h.
4553         * tree-ssa-ccp.c: Include stor-layout.h.
4554         * tree-ssa-dce.c: Include calls.h.
4555         * tree-ssa-dom.c: Include stor-layout.h.
4556         * tree-ssa-forwprop.c: Include stor-layout.h.
4557         * tree-ssa-ifcombine.c: Include stor-layout.h.
4558         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
4559         * tree-ssa-loop-niter.c: Include calls.h.
4560         Include expr.h.
4561         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
4562         * tree-ssa-math-opts.c: Include stor-layout.h.
4563         * tree-ssa-operands.c: Include stmt.h.
4564         Include print-tree.h.
4565         * tree-ssa-phiopt.c: Include stor-layout.h.
4566         * tree-ssa-reassoc.c: Include stor-layout.h.
4567         * tree-ssa-sccvn.c: Include stor-layout.h.
4568         * tree-ssa-sink.c: Include stor-layout.h.
4569         * tree-ssa-strlen.c: Include stor-layout.h.
4570         * tree-ssa-structalias.c: Include stor-layout.h.
4571         Include stmt.h.
4572         * tree-ssa-tail-merge.c: Include stor-layout.h.
4573         Include trans-mem.h.
4574         * tree-ssa-uncprop.c: Include stor-layout.h.
4575         * tree-ssa.c: Include stor-layout.h.
4576         * tree-ssanames.c: Include stor-layout.h.
4577         * tree-streamer-in.c: Include stringpool.h.
4578         * tree-streamer-out.c: Include stor-layout.h.
4579         * tree-switch-conversion.c: Include varasm.h.
4580         Include stor-layout.h.
4581         * tree-tailcall.c: Include stor-layout.h.
4582         * tree-vect-data-refs.c: Include stor-layout.h.
4583         * tree-vect-generic.c: Include stor-layout.h.
4584         * tree-vect-loop.c: Include stor-layout.h.
4585         * tree-vect-patterns.c: Include stor-layout.h.
4586         * tree-vect-slp.c: Include stor-layout.h.
4587         * tree-vect-stmts.c: Include stor-layout.h.
4588         * tree-vectorizer.c: Include stor-layout.h.
4589         * tree-vrp.c: Include stor-layout.h.
4590         Include calls.h.
4591         * tree.c: Include stor-layout.h.
4592         Include calls.h.
4593         Include attribs.h.
4594         Include varasm.h.
4595         * tsan.c: Include expr.h.
4596         * ubsan.c: Include stor-layout.h.
4597         Include stringpool.h.
4598         * value-prof.c: Include tree-nested.h.
4599         Include calls.h.
4600         * var-tracking.c: Include varasm.h.
4601         Include stor-layout.h.
4602         * varasm.c: Include stor-layout.h.
4603         Include stringpool.h.
4604         Include gcc-symtab.h.
4605         Include varasm.h.
4606         * varpool.c: Include varasm.h.
4607         * vmsdbgout.c: Include varasm.h.
4608         * xcoffout.c: Include varasm.h.
4610 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
4612         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
4613         use (.&-4) idiom.
4615 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4617         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
4619 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4620             Alan Modra  <amodra@gmail.com>
4622         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
4623         (RS6000_SAVE_TOC): Remove.
4624         (RS6000_TOC_SAVE_SLOT): New macro.
4625         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
4626         (rs6000_parm_start): Use it.
4627         (rs6000_function_arg_advance_1): Likewise.
4628         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
4629         (rs6000_emit_epilogue): Likewise.
4630         (rs6000_call_aix): Likewise.
4631         (rs6000_output_function_prologue): Do not save/restore r11
4632         around calling _mcount for ABI_ELFv2.
4634 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4635             Alan Modra  <amodra@gmail.com>
4637         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
4638         Add prototype.
4639         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
4640         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
4641         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
4642         (rs6000_function_parms_need_stack): Likewise.
4643         (rs6000_reg_parm_stack_space): Likewise.
4644         (rs6000_function_arg): Do not replace BLKmode by Pmode when
4645         returning a register argument.
4647 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4648             Michael Gschwind  <mkg@us.ibm.com>
4650         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
4651         (ALTIVEC_ARG_MAX_RETURN): Likewise.
4652         (FUNCTION_VALUE_REGNO_P): Use them.
4653         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
4654         (rs6000_return_in_msb): New function.
4655         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
4656         Handle aggregates of up to 16 bytes for ELFv2.
4657         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
4659 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4660             Michael Gschwind  <mkg@us.ibm.com>
4662         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4663         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4664         (rs6000_discover_homogeneous_aggregate): Likewise.
4665         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4666         (rs6000_function_arg_advance_1): Likewise.
4667         (rs6000_function_arg): Likewise.
4668         (rs6000_arg_partial_bytes): Likewise.
4669         (rs6000_psave_function_arg): Handle BLKmode arguments.
4671 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4672             Michael Gschwind  <mkg@us.ibm.com>
4674         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4675         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4676         (rs6000_discover_homogeneous_aggregate): Likewise.
4677         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4678         (rs6000_function_arg_advance_1): Likewise.
4679         (rs6000_function_arg): Likewise.
4680         (rs6000_arg_partial_bytes): Likewise.
4681         (rs6000_psave_function_arg): Handle BLKmode arguments.
4683 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4685         * config/rs6000/rs6000.c (machine_function): New member
4686         r2_setup_needed.
4687         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
4688         (rs6000_output_mi_thunk): Set r2_setup_needed.
4689         (rs6000_output_function_prologue): Output global entry point
4690         prologue and local entry point marker if needed for ABI_ELFv2.
4691         Output -mprofile-kernel code here.
4692         (output_function_profiler): Do not output -mprofile-kernel
4693         code here; moved to rs6000_output_function_prologue.
4694         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
4696         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
4697         (rs6000_output_function_entry): Likewise.
4698         (rs6000_assemble_integer): Likewise.
4699         (rs6000_elf_encode_section_info): Likewise.
4700         (rs6000_elf_declare_function_name): Do not create dot symbols
4701         or .opd section for ABI_ELFv2.
4703         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
4704         (rs6000_trampoline_init): Likewise.
4705         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
4707         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
4708         for function descriptors in ABI_ELFv2.
4710         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
4711         on ABI_AIX only, not ABI_ELFv2.
4712         ("*call_value_indirect_aix<mode>"): Likewise.
4713         ("*call_indirect_elfv2<mode>"): New pattern.
4714         ("*call_value_indirect_elfv2<mode>"): Likewise.
4716         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
4717         check for function descriptors in ABI_ELFv2.
4718         ("current_file_function_operand"): Likewise.
4720         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
4721         (toc): Undefine.
4722         (FUNC_NAME): Define ELFv2 variant.
4723         (JUMP_TARGET): Likewise.
4724         (FUNC_START): Likewise.
4725         (HIDDEN_FUNC): Likewise.
4726         (FUNC_END): Likeiwse.
4728 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4730         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
4731         and --with-abi=elfv2.
4732         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
4733         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
4734         (mabi=elfv2): Likewise.
4735         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
4736         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
4737         if !RS6000_BI_ARCH.
4738         (ELFv2_ABI_CHECK): New macro.
4739         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
4740         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
4741         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
4742         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
4743         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
4745         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
4746         (debug_stack_info): Likewise.
4747         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
4748         (rs6000_legitimize_tls_address): Likewise.
4749         (rs6000_conditional_register_usage): Likewise.
4750         (rs6000_emit_move): Likewise.
4751         (init_cumulative_args): Likewise.
4752         (rs6000_function_arg_advance_1): Likewise.
4753         (rs6000_function_arg): Likewise.
4754         (rs6000_arg_partial_bytes): Likewise.
4755         (rs6000_output_function_entry): Likewise.
4756         (rs6000_assemble_integer): Likewise.
4757         (rs6000_savres_strategy): Likewise.
4758         (rs6000_stack_info): Likewise.
4759         (rs6000_function_ok_for_sibcall): Likewise.
4760         (rs6000_emit_load_toc_table): Likewise.
4761         (rs6000_savres_routine_name): Likewise.
4762         (ptr_regno_for_savres): Likewise.
4763         (rs6000_emit_prologue): Likewise.
4764         (rs6000_emit_epilogue): Likewise.
4765         (rs6000_output_function_epilogue): Likewise.
4766         (output_profile_hook): Likewise.
4767         (output_function_profiler): Likewise.
4768         (rs6000_trampoline_size): Likewise.
4769         (rs6000_trampoline_init): Likewise.
4770         (rs6000_elf_output_toc_section_asm_op): Likewise.
4771         (rs6000_elf_encode_section_info): Likewise.
4772         (rs6000_elf_reloc_rw_mask): Likewise.
4773         (rs6000_elf_declare_function_name): Likewise.
4774         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
4775         except that rs6000_compat_align_parm is always assumed false.
4776         (rs6000_gimplify_va_arg): Likewise.
4777         (rs6000_call_aix): Update comment.
4778         (rs6000_sibcall_aix): Likewise.
4779         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
4780         Treat ABI_ELFv2 the same as ABI_AIX.
4781         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
4782         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
4783         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
4784         ("load_toc_aix_si"): Likewise.
4785         ("load_toc_aix_di"): Likewise.
4786         ("call"): Likewise.
4787         ("call_value"): Likewise.
4788         ("*call_local_aix<mode>"): Likewise.
4789         ("*call_value_local_aix<mode>"): Likewise.
4790         ("*call_nonlocal_aix<mode>"): Likewise.
4791         ("*call_value_nonlocal_aix<mode>"): Likewise.
4792         ("*call_indirect_aix<mode>"): Likewise.
4793         ("*call_value_indirect_aix<mode>"): Likewise.
4794         ("sibcall"): Likewise.
4795         ("sibcall_value"): Likewise.
4796         ("*sibcall_aix<mode>"): Likewise.
4797         ("*sibcall_value_aix<mode>"): Likewise.
4798         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
4799         ("current_file_function_operand"): Likewise.
4801 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4803         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
4804         by making use of the fact that for vector / floating point arguments
4805         passed both in VRs/FPRs and in the fixed parameter area, the partial
4806         bytes mechanism is in fact not used.
4808 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4810         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
4811         (rs6000_finish_function_arg): Likewise.
4812         (rs6000_function_arg): Use rs6000_psave_function_arg and
4813         rs6000_finish_function_arg to handle both vector and floating
4814         point arguments that are also passed in GPRs / the stack.
4816 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4818         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
4819         (USE_ALTIVEC_FOR_ARG_P): Likewise.
4820         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
4821         (rs6000_function_arg_advance_1):Likewise.
4822         (rs6000_darwin64_record_arg_recurse): Likewise.
4823         (rs6000_function_arg): Likewise.
4824         (rs6000_arg_partial_bytes): Likewise.
4826 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4828         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
4829         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
4830         (rs6000_savres_strategy): Likewise.
4831         (rs6000_return_addr): Likewise.
4832         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
4833         testing for ABI_V4 (since ABI_DARWIN is impossible here).
4834         (rs6000_emit_prologue): Likewise.
4835         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
4836         (rs6000_elf_declare_function_name): Remove duplicated test.
4837         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
4838         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
4839         ("load_toc_v4_PIC_1_normal"): Likewise.
4840         ("load_toc_v4_PIC_1_476"): Likewise.
4841         ("load_toc_v4_PIC_1b"): Likewise.
4842         ("load_toc_v4_PIC_1b_normal"): Likewise.
4843         ("load_toc_v4_PIC_1b_476"): Likewise.
4844         ("load_toc_v4_PIC_2"): Likewise.
4845         ("load_toc_v4_PIC_3b"): Likewise.
4846         ("load_toc_v4_PIC_3c"): Likewise.
4847         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
4848         (RS6000_SAVE_AREA): Likewise.
4849         (FP_ARG_MAX_REG): Likewise.
4850         (RETURN_ADDRESS_OFFSET): Likewise.
4851         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
4852         of ABI_AIX.
4853         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4854         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4856 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4858         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
4859         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
4860         Create call insn directly instead of via various gen_... routines.
4861         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
4862         (rs6000_sibcall_aix): New function.
4863         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
4864         (TOC_SAVE_OFFSET_64BIT): Likewise.
4865         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
4866         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
4867         (AIX_FUNC_DESC_SC_32BIT): Likewise.
4868         (AIX_FUNC_DESC_SC_64BIT): Likewise.
4869         ("call" expander): Call rs6000_call_aix.
4870         ("call_value" expander): Likewise.
4871         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
4872         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
4873         ("*call_indirect_aix<mode>"): ... by this insn pattern.
4874         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
4875         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
4876         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
4877         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
4878         ("*call_nonlocal_aix<mode>"): ... this pattern.
4879         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
4880         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
4881         ("*call_local_aix<mode>"): New insn pattern.
4882         ("*call_value_local_aix<mode>"): Likewise.
4883         ("sibcall" expander): Call rs6000_sibcall_aix.
4884         ("sibcall_value" expander): Likewise.  Move earlier in file.
4885         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
4886         ("*sibcall_aix<mode>"): ... this pattern.
4887         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
4888         ("*sibcall_value_aix<mode>"): ... this pattern.
4889         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
4890         (rs6000_call_aix): Add prototype.
4891         (rs6000_sibcall_aix): Likewise.
4893 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
4895         PR sanitizer/59122
4896         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
4897         isn't confused by the artificial decl.
4899 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4901         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
4902         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
4903         Instead, add USEs of all modified call-saved CR fields to the
4904         insn storing the result to the stack slot, and provide an
4905         appropriate REG_FRAME_RELATED_EXPR for that insn.
4906         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
4907         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
4909 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4910             Alan Modra  <amodra@gmail.com>
4912         * function.c (assign_parms): Use all.reg_parm_stack_space instead
4913         of re-evaluating REG_PARM_STACK_SPACE target macro.
4914         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
4915         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
4916         (assign_parm_find_entry_rtl): Update call.
4917         * calls.c (initialize_argument_information): Update call.
4918         (emit_library_call_value_1): Likewise.
4919         * expr.h (locate_and_pad_parm): Update prototype.
4921 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4923         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
4924         arguments.
4926 2013-11-14  DJ Delorie  <dj@redhat.com>
4928         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
4929         to 16 bits.
4931 2013-11-14  Jeff Law  <law@redhat.com>
4933         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
4934         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
4936 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4938         * doc/invoke.texi: Update documentation for AArch64's -mcpu
4939         and -mtune options.
4941 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4943         * config/aarch64/aarch64-cores.def (example-1): Remove.
4944         (example-2): Likewise.
4945         * config/aarch64/aarch64-tune.md: Regenerate.
4946         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
4947         (generic_sched): Remove "large", "small".
4948         * config/aarch64/large.md: Delete.
4949         * config/aarch64/small.md: Delete.
4951 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4953         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
4954         * config/aarch64/aarch64-tune.md: Regenerate.
4955         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
4956         (generic_sched): "no" if we are tuning for cortexa15.
4957         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
4958         relative path.
4960 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4962         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
4963         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
4964         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
4965         (all_cores): Use cortexa53 when tuning for "generic".
4966         (aarch64_override_options): Fix comment.
4967         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
4968         * config/aarch64/aarch64-generic.md: Delete.
4970 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4972         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
4974 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4976         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
4977         (generic_rtx_cost_table): Remove.
4978         (aarch64_rtx_costs): Use fields from cpu_cost_table.
4979         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
4980         insn_extra_cost.
4981         (cpu_rtx_cost_table): Remove.
4983 2013-11-14  Julian Brown  <julian@codesourcery.com>
4984             Joey Ye  <joey.ye@arm.com>
4986         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
4987         (arm_v7m_tune): New.
4988         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
4989         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
4990         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
4991         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
4993 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
4995         PR target/57491
4996         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
4997         flag setting.
4999 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5000             Uros Bizjak  <ubizjak@gmail.com>
5002         PR target/59101
5003         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5004         operands[2] satisfies_constraint_Z that might have bit 31 set.
5006 2013-11-13  Jeff Law  <law@redhat.com>
5008         PR tree-optimization/59102
5009         * gimple-ssa-isolate-paths.c
5010         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5011         gimple assignment before looking at gimple_assign_lhs.
5013 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5015         * ira.c: Add comment about threads at the top of file.
5017 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5019         * ira-color.c (coalesce_allocnos): Don't allocate and free
5020         sorted_copies.
5022 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5024         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5025         equality for GIMPLE_ASSIGN.
5027 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5029         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5030         function out of ...
5031         (gimple_equal_p): ... here.
5033 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5035         * trans-mem.c (is_tm_ending): New function.
5036         * gimple.h (is_tm_ending): Declare.
5037         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5038         BUILT_IN_TM_COMMIT.
5039         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5041 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5043         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5045 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
5047         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
5048         (struct walk_stmt_info):  Relocate here from gimple.h.
5049         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
5050         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5051         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5052         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5053         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5054         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5055         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5056         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5057         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5058         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5059         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5060         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5061         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5062         (struct walk_stmt_info): Move to gimple-walk.h.
5063         (gimple_seq_set_location): Move to gimple.c
5064         * gimple-walk.c: New File.
5065         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5066         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5067         walk_stmt_load_store_ops): Relocate here from gimple.c.
5068         * gimple-iterator.c: Include gimple-iterator.h.
5069         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5070         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5071         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5072         gimple-walk.c.
5073         (gimple_seq_set_location): Relocate from gimple.h.
5074         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5075         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5076         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5077         * Makefile.in (OBJS): Add gimple-walk.o
5078         * asan.c: Update Include list as required for gimple-iterator.h and
5079         gimple-walk.h.
5080         * cfgexpand.c: Likewise.
5081         * cfgloop.c: Likewise.
5082         * cfgloopmanip.c: Likewise.
5083         * cgraph.c: Likewise.
5084         * cgraphbuild.c: Likewise.
5085         * cgraphunit.c: Likewise.
5086         * gimple-fold.c: Likewise.
5087         * gimple-low.c: Likewise.
5088         * gimple-pretty-print.c: Likewise.
5089         * gimple-ssa-isolate-paths.c: Likewise.
5090         * gimple-ssa-strength-reduction.c: Likewise.
5091         * gimple-streamer-in.c: Likewise.
5092         * gimple-streamer-out.c: Likewise.
5093         * gimplify.c: Likewise.
5094         * graphite-blocking.c: Likewise.
5095         * graphite-clast-to-gimple.c: Likewise.
5096         * graphite-dependences.c: Likewise.
5097         * graphite-interchange.c: Likewise.
5098         * graphite-optimize-isl.c: Likewise.
5099         * graphite-poly.c: Likewise.
5100         * graphite-scop-detection.c: Likewise.
5101         * graphite-sese-to-poly.c: Likewise.
5102         * graphite.c: Likewise.
5103         * ipa-inline-analysis.c: Likewise.
5104         * ipa-profile.c: Likewise.
5105         * ipa-prop.c: Likewise.
5106         * ipa-pure-const.c: Likewise.
5107         * ipa-split.c: Likewise.
5108         * lto-streamer-in.c: Likewise.
5109         * lto-streamer-out.c: Likewise.
5110         * omp-low.c: Likewise.
5111         * predict.c: Likewise.
5112         * profile.c: Likewise.
5113         * sese.c: Likewise.
5114         * tracer.c: Likewise.
5115         * trans-mem.c: Likewise.
5116         * tree-call-cdce.c: Likewise.
5117         * tree-cfg.c: Likewise.
5118         * tree-cfgcleanup.c: Likewise.
5119         * tree-complex.c: Likewise.
5120         * tree-data-ref.c: Likewise.
5121         * tree-dfa.c: Likewise.
5122         * tree-eh.c: Likewise.
5123         * tree-emutls.c: Likewise.
5124         * tree-if-conv.c: Likewise.
5125         * tree-inline.c: Likewise.
5126         * tree-into-ssa.c: Likewise.
5127         * tree-loop-distribution.c: Likewise.
5128         * tree-nested.c: Likewise.
5129         * tree-nrv.c: Likewise.
5130         * tree-object-size.c: Likewise.
5131         * tree-outof-ssa.c: Likewise.
5132         * tree-parloops.c: Likewise.
5133         * tree-predcom.c: Likewise.
5134         * tree-profile.c: Likewise.
5135         * tree-scalar-evolution.c: Likewise.
5136         * tree-sra.c: Likewise.
5137         * tree-ssa-ccp.c: Likewise.
5138         * tree-ssa-coalesce.c: Likewise.
5139         * tree-ssa-copy.c: Likewise.
5140         * tree-ssa-copyrename.c: Likewise.
5141         * tree-ssa-dce.c: Likewise.
5142         * tree-ssa-dom.c: Likewise.
5143         * tree-ssa-dse.c: Likewise.
5144         * tree-ssa-forwprop.c: Likewise.
5145         * tree-ssa-ifcombine.c: Likewise.
5146         * tree-ssa-live.c: Likewise.
5147         * tree-ssa-loop-ch.c: Likewise.
5148         * tree-ssa-loop-im.c: Likewise.
5149         * tree-ssa-loop-ivcanon.c: Likewise.
5150         * tree-ssa-loop-ivopts.c: Likewise.
5151         * tree-ssa-loop-manip.c: Likewise.
5152         * tree-ssa-loop-niter.c: Likewise.
5153         * tree-ssa-loop-prefetch.c: Likewise.
5154         * tree-ssa-loop.c: Likewise.
5155         * tree-ssa-math-opts.c: Likewise.
5156         * tree-ssa-phiopt.c: Likewise.
5157         * tree-ssa-phiprop.c: Likewise.
5158         * tree-ssa-pre.c: Likewise.
5159         * tree-ssa-propagate.c: Likewise.
5160         * tree-ssa-reassoc.c: Likewise.
5161         * tree-ssa-sink.c: Likewise.
5162         * tree-ssa-strlen.c: Likewise.
5163         * tree-ssa-structalias.c: Likewise.
5164         * tree-ssa-tail-merge.c: Likewise.
5165         * tree-ssa-ter.c: Likewise.
5166         * tree-ssa-threadedge.c: Likewise.
5167         * tree-ssa-threadupdate.c: Likewise.
5168         * tree-ssa-uncprop.c: Likewise.
5169         * tree-ssa-uninit.c: Likewise.
5170         * tree-ssa.c: Likewise.
5171         * tree-stdarg.c: Likewise.
5172         * tree-switch-conversion.c: Likewise.
5173         * tree-tailcall.c: Likewise.
5174         * tree-vect-data-refs.c: Likewise.
5175         * tree-vect-generic.c: Likewise.
5176         * tree-vect-loop-manip.c: Likewise.
5177         * tree-vect-loop.c: Likewise.
5178         * tree-vect-patterns.c: Likewise.
5179         * tree-vect-slp.c: Likewise.
5180         * tree-vect-stmts.c: Likewise.
5181         * tree-vectorizer.c: Likewise.
5182         * tree-vrp.c: Likewise.
5183         * tree.c: Likewise.
5184         * tsan.c: Likewise.
5185         * value-prof.c: Likewise.
5186         * vtable-verify.c: Likewise.
5188 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5190         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5191         fix.
5193 2013-11-13  Jeff Law  <law@redhat.com>
5195         * PR middle-end/59119
5196         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5197         function, extracted from gimple_ssa_isolate_erroneous_paths.
5198         (find_explicit_erroneous_behaviour): Similarly.
5199         (insert_trap_and_remove_trailing_statements): Remove statements
5200         in reverse order.
5202 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5204         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5205         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
5206         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5207         looking at INSN_CODE.
5208         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5209         active_insn_p object, respect basic block boundaries.
5210         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5211         follows immediately after the jump table data label.
5212         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5213         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
5214         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
5216 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5218         PR ipa/58862
5219         * predict.c (drop_profile): Error is currently too strict.
5220         (handle_missing_profiles): Pass call_count to drop_profile.
5222 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5224         PR ipa/58862
5225         * ipa-inline.c (edge_badness): Fix overflow.
5227 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5229         PR rtl-optimization/59036
5230         * ira-color.c (struct allocno_color_data): Add new members
5231         first_thread_allocno, next_thread_allocno, thread_freq.
5232         (sorted_copies): New static var.
5233         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5234         (allocno_thread_conflict_p, merge_threads)
5235         (form_threads_from_copies, form_threads_from_bucket)
5236         (form_threads_from_colorable_allocno, init_allocno_threads): New
5237         functions.
5238         (bucket_allocno_compare_func): Add comparison by thread frequency
5239         and threads.
5240         (add_allocno_to_ordered_bucket): Rename to
5241         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
5242         (push_only_colorable): Call form_threads_from_bucket.
5243         (color_pass): Call init_allocno_threads.  Use
5244         consideration_allocno_bitmap instead of coloring_allocno_bitmap
5245         for nuillify allocno color data.
5246         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5247         (coalesce_allocnos): Use static sorted copies.
5249 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
5251         * passes.c (execute_todo): Don't call do_per_function if
5252         flags are zero.
5253         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5254         execute_function_dump if dump_file is NULL.
5256 2013-11-13  Martin Jambor  <mjambor@suse.cz>
5258         * cgraph.c (cgraph_get_create_node): Do what
5259         cgraph_get_create_real_symbol_node used to do.
5260         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
5261         call cgraph_get_create_node.
5262         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5263         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5264         cgraph_get_create_node.  Assert we get a node.
5266 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5268         * config/aarch64/aarch64-simd.md (vec_extract): New.
5270 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5272         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5273         the constraint.
5275 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5277         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
5278         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
5279         or if optimization is enabled.
5280         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
5281         require that all the names based on a PARM_DECL or a RESULT_DECL that
5282         isn't ignored for debug info be coalesced.
5284 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5286         * config/c6x/c6x.c: Include "gimple-expr.h".
5288 2013-11-13  Richard Biener  <rguenther@suse.de>
5290         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
5291         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
5292         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
5293         dealing with type mismatches inside component reference chains.
5295 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
5297         PR tree-optimization/59077
5298         * ipa-pure-const.c (better_state): Update *state.
5300 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
5302         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
5303         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
5304         Update offset calculations.
5306 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5308         PR ada/35998
5309         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
5310         for fields.  Do not add the attribute if the size is negative.
5312 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5314         * config/arm/arm.c: Include aarch-cost-tables.h.
5315         (generic_extra_costs): Move from here...
5316         * config/arm/aarch-cost-tables.h: ... To here.  New file.
5318 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5319             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5320             Sergey Lega  <sergey.s.lega@intel.com>
5321             Anna Tikhonova  <anna.tikhonova@intel.com>
5322             Ilya Tocar  <ilya.tocar@intel.com>
5323             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5324             Ilya Verbin  <ilya.verbin@intel.com>
5325             Kirill Yukhin  <kirill.yukhin@intel.com>
5326             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5328         * config/i386/i386.c (ix86_print_operand): Support z-masking.
5329         * config/i386/predicate.md (const_0_to_4_operand): New.
5330         (const_0_to_5_operand): Ditto.
5331         * config/i386/sse.md (UNSPEC_COMPRESS): New.
5332         (UNSPEC_COMPRESS_STORE): Ditto.
5333         (UNSPEC_EXPAND): Ditto.
5334         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
5335         (define_mode_attr ssescalarsize): Ditto.
5336         (avx512f_load<mode>_mask): Ditto.
5337         (avx512f_store<mode>_mask): Ditto.
5338         (avx512f_storedqu<mode>_mask): Ditto.
5339         (avx512f_vmcmp<mode>3_mask): Ditto.
5340         (avx512f_fmadd_<mode>_mask): Ditto.
5341         (avx512f_fmadd_<mode>_mask3): Ditto.
5342         (avx512f_fmsub_<mode>_mask): Ditto.
5343         (avx512f_fmsub_<mode>_mask3): Ditto.
5344         (avx512f_fnmadd_<mode>_mask): Ditto.
5345         (avx512f_fnmadd_<mode>_mask3): Ditto.
5346         (avx512f_fnmsub_<mode>_mask): Ditto.
5347         (avx512f_fnmsub_<mode>_mask3): Ditto.
5348         (avx512f_fmaddsub_<mode>_mask): Ditto.
5349         (avx512f_fmaddsub_<mode>_mask3): Ditto.
5350         (avx512f_fmsubadd_<mode>_mask): Ditto.
5351         (avx512f_fmsubadd_<mode>_mask3): Ditto.
5352         (vec_unpacku_float_lo_v16si): Ditto.
5353         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
5354         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
5355         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
5356         (vec_extract_lo_<mode>_maskm): Ditto.
5357         (vec_extract_hi_<mode>_maskm): Ditto.
5358         (avx512f_vternlog<mode>_mask): Ditto.
5359         (avx512f_shufps512_mask): Ditto.
5360         (avx512f_fixupimm<mode>_mask): Ditto.
5361         (avx512f_shufpd512_mask): Ditto.
5362         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
5363         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
5364         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
5365         (ashr<mode>3<mask_name>): Ditto.
5366         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
5367         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
5368         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
5369         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
5370         (avx512f_pshufdv3_mask): Ditto.
5371         (avx512f_perm<mode>_mask): Ditto.
5372         (avx512f_vpermi2var<mode>3_mask): Ditto.
5373         (avx512f_vpermt2var<mode>3_mask): Ditto.
5374         (avx512f_compress<mode>_mask): Ditto.
5375         (avx512f_compressstore<mode>_mask): Ditto.
5376         (avx512f_expand<mode>_mask): Ditto.
5377         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
5378         to support masking.
5379         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
5380         (<plusminus_insn><mode>3<mask_name>): Ditto.
5381         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5382         (mul<mode>3<mask_name>): Ditto.
5383         (*mul<mode>3<mask_name>): Ditto.
5384         (<sse>_div<mode>3<mask_name>): Ditto.
5385         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
5386         (<sse>_sqrt<mode>2<mask_name>): Ditto.
5387         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
5388         (<code><mode>3<mask_name>/smaxmin): Ditto.
5389         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
5390         (*<code><mode>3<mask_name>/smaxmin): Ditto.
5391         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
5392         (ufloatv16siv16sf2<mask_name>): Ditto.
5393         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
5394         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
5395         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
5396         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
5397         (ufloatv8siv8df<mask_name>): Ditto.
5398         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
5399         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
5400         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
5401         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
5402         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
5403         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
5404         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
5405         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
5406         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
5407         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5408         (vec_extract_lo_<mode><mask_name>): Ditto.
5409         (vec_extract_hi_<mode><mask_name>): Ditto.
5410         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
5411         (avx512f_movddup512<mask_name>): Ditto.
5412         (avx512f_unpcklpd512<mask_name>): Ditto.
5413         (*avx512f_unpcklpd512<mask_name>): Ditto.
5414         (*avx512f_vmscalef<mode>): Ditto.
5415         (avx512f_scalef<mode><mask_name>): Ditto.
5416         (avx512f_getexp<mode><mask_name>): Ditto.
5417         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
5418         (avx512f_rndscale<mode><mask_name>): Ditto.
5419         (avx512f_shufps512_1<mask_name>): Ditto.
5420         (avx512f_shufpd512_1<mask_name>): Ditto.
5421         (<plusminus_insn><mode>3<mask_name>): Ditto.
5422         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5423         (vec_widen_umult_even_v16si<mask_name>): Ditto.
5424         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
5425         (vec_widen_smult_even_v16si<mask_name>): Ditto.
5426         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
5427         (mul<mode>3<mask_name>): Ditto.
5428         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
5429         (<shift_insn><mode>3<mask_name>): Ditto.
5430         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
5431         (avx512f_<rotate><mode><mask_name>): Ditto.
5432         (<code><mode>3<mask_name>/maxmin): Ditto.
5433         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
5434         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
5435         (*andnot<mode>3<mask_name>): Ditto.
5436         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
5437         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
5438         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
5439         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
5440         (vec_set_lo_<mode><mask_name>): Ditto.
5441         (vec_set_hi_<mode><mask_name>): Ditto.
5442         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
5443         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
5444         (avx512f_pshufd_1<mask_name>): Ditto.
5445         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
5446         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
5447         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
5448         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
5449         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
5450         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
5451         (avx512er_exp2<mode><mask_name>): Ditto.
5452         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
5453         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
5454         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
5455         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
5456         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
5457         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
5458         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
5459         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
5460         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
5461         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
5462         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
5463         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
5464         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
5465         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
5466         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
5467         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
5468         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
5469         (avx512f_getmant<mode><mask_name>): Ditto.
5470         (clz<mode>2<mask_name>): Ditto.
5471         (<mask_codefor>conflict<mode><mask_name>): Ditto.
5472         (*srcp14<mode>): Remove visibility.
5473         (*rsqrt14<mode>): Ditto.
5474         (*fma_fmsub_<mode>): Ditto.
5475         (*fma_fnmadd_<mode>): Ditto.
5476         (*avx512f_rndscale<mode>): Ditto.
5477         * config/i386/subst.md: New file.
5479 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
5481         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
5482         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
5483         (atomic_load_explicit, atomic_exchange_explicit)
5484         (atomic_compare_exchange_strong_explicit)
5485         (atomic_compare_exchange_weak_explicit): Use __auto_type to
5486         declare variable initialized with PTR argument.
5488 2013-11-12  Jeff Law  <law@redhat.com>
5490         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
5491         backedge_seen_p.  Set, use and pass it to children appropriately.
5492         (thread_through_normal_block): Similarly.
5493         (thread_across_edge): Similarly.
5495         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
5496         memory references as volatile.
5497         (insert_trap_and_remove_trailing_statements): Fix comment.
5499 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
5501         PR other/58712
5502         * ira-costs.c (record_operand_costs): Check operands number for
5503         the single set.
5505 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
5507         PR target/59054
5508         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
5509         constraints that would allow DImode into the traditional Altivec
5510         registers, but cause undesirable code generation when loading 0 as
5511         a constant.
5512         (movdi_internal64): Likewise.
5513         (cmp<mode>_fpr): Do not use %x for CR register output.
5514         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
5515         -mallow-upper-sf debug switches are used.
5517 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
5519         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
5520         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
5521         Relocate prototypes from gimple.h.
5522         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
5523         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
5524         from gimple.h.
5525         * gimple.h: Move some prototypes to gimplify.h.
5526         (gimple_predicate, enum fallback, enum gimplify_status): Move to
5527         gimplify.h.
5528         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
5529         Relocate from gimpify.c.
5530         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5531         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
5532         is_gimple_reg_rhs) Relocate from gimplify.c.
5533         * gimplify.c (mark_addressable): Move to gimple-expr.c.
5534         (gimple_seq_add_stmt_without_update): Move to gimple.c.
5535         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5536         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
5537         is_gimple_reg_rhs): Move to gimple-expr.c.
5538         (should_carry_location_p): Move to gimple.c.
5539         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
5540         to gimple.h.
5541         (annotate_one_with_location, annotate_all_with_location_after,
5542         annotate_all_with_location): Move to gimple.c.
5543         (compare_case_labels, sort_case_labels,
5544         preprocess_case_label_vec_for_gimple): Move to gimple.c.
5545         (rhs_predicate_for): Make static.
5546         (gimplify_assign): Relocate from gimple.c.
5547         * gimple.c (gimplify_assign): Move to gimplify.c.
5548         (gimple_seq_add_stmt_without_update, should_carry_location_p,
5549         annotate_one_with_location, annotate_all_with_location_after,
5550         annotate_all_with_location, compare_case_labels, sort_case_labels,
5551         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
5552         * tree.h (unshare_expr, unshare_expr_without_location,
5553         mark_addressable): Move prototypes to gimplify.h.
5554         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
5555         tmp_var_id_num
5556         * asan.c: Include gimplify.h rather than gimple.h.
5557         * cfgloopmanip.c: Likewise.
5558         * cgraphunit.c: Likewise.
5559         * cilk-common.c: Likewise.
5560         * dwarf2out.c: Dont include gimple.h.
5561         * fold-const.c: Include gimplify.h rather than gimple.h.
5562         * function.c: Likewise.
5563         * gimple-fold.c: Likewise.
5564         * gimple-ssa-strength-reduction.c: Likewise.
5565         * graphite-clast-to-gimple.c: Likewise.
5566         * graphite-sese-to-poly.c: Likewise.
5567         * ipa-prop.c: Likewise.
5568         * ipa-split.c: Likewise.
5569         * ipa.c: Likewise.
5570         * langhooks.c: Dont include gimple.h.
5571         * loop-init.c: Include gimplify.h rather than gimple.h.
5572         * omp-low.c: Likewise.
5573         * sese.c: Likewise.
5574         * stor-layout.c: Likewise.
5575         * targhooks.c: Likewise.
5576         * trans-mem.c: Likewise.
5577         * tree-affine.c: Likewise.
5578         * tree-cfg.c: Likewise.
5579         * tree-cfgcleanup.c: Likewise.
5580         * tree-complex.c: Likewise.
5581         * tree-if-conv.c: Likewise.
5582         * tree-inline.c: Likewise.
5583         * tree-iterator.c: Likewise.
5584         * tree-loop-distribution.c: Likewise.
5585         * tree-nested.c: Likewise.
5586         * tree-parloops.c: Likewise.
5587         * tree-predcom.c: Likewise.
5588         * tree-profile.c: Likewise.
5589         * tree-scalar-evolution.c: Likewise.
5590         * tree-sra.c: Likewise.
5591         * tree-ssa-address.c: Likewise.
5592         * tree-ssa-ccp.c: Likewise.
5593         * tree-ssa-dce.c: Likewise.
5594         * tree-ssa-forwprop.c: Likewise.
5595         * tree-ssa-ifcombine.c: Likewise.
5596         * tree-ssa-loop-im.c: Likewise.
5597         * tree-ssa-loop-ivopts.c: Likewise.
5598         * tree-ssa-loop-manip.c: Likewise.
5599         * tree-ssa-loop-niter.c: Likewise.
5600         * tree-ssa-loop-prefetch.c: Likewise.
5601         * tree-ssa-loop-unswitch.c: Likewise.
5602         * tree-ssa-math-opts.c: Likewise.
5603         * tree-ssa-phiopt.c: Likewise.
5604         * tree-ssa-phiprop.c: Likewise.
5605         * tree-ssa-pre.c: Likewise.
5606         * tree-ssa-propagate.c: Likewise.
5607         * tree-ssa-reassoc.c: Likewise.
5608         * tree-ssa-sccvn.c: Likewise.
5609         * tree-ssa-strlen.c: Likewise.
5610         * tree-ssa.c: Likewise.
5611         * tree-switch-conversio: Likewise.n.c
5612         * tree-tailcall.c: Likewise.
5613         * tree-vect-data-refs.c: Likewise.
5614         * tree-vect-generic.c: Likewise.
5615         * tree-vect-loop-manip.c: Likewise.
5616         * tree-vect-loop.c: Likewise.
5617         * tree-vect-patterns.c: Likewise.
5618         * tree-vect-stmts.c: Likewise.
5619         * tsan.c: Likewise.
5620         * value-prof.c: Likewise.
5621         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
5622         * config/alpha/alpha.c: Likewise.
5623         * config/darwin.c: Likewise.
5624         * config/i386/i386.c: Likewise.
5625         * config/ia64/ia64.c: Likewise.
5626         * config/mep/mep.c: Likewise.
5627         * config/mips/mips.c: Likewise.
5628         * config/rs6000/rs6000.c: Likewise.
5629         * config/s390/s390.c: Likewise.
5630         * config/sh/sh.c: Likewise.
5631         * config/sparc/sparc.c: Likewise.
5632         * config/spu/spu.c: Likewise.
5633         * config/stormy16/stormy16.c: Likewise.
5634         * config/tilegx/tilegx.c: Likewise.
5635         * config/tilepro/tilepro.c: Likewise.
5636         * config/xtensa/xtensa.c: Likewise.
5638 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
5640         * tree.c (grow_tree_vec_stat): New function ...
5641         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
5642         and macro front-end.
5644 2013-11-12  Marek Polacek  <polacek@redhat.com>
5646         * final.c (update_alignments): Initialize label to NULL_RTX.
5648 2013-11-12  Jeff Law  <law@redhat.com>
5650         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
5651         (insert_trap_and_remove_trailing_statements): New argument OP which
5652         is the NULL pointer.  Emit the trap after the load/store through
5653         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
5654         when trivial to do so.
5655         (isolate_path): Corresponding changes.
5656         (gimple_ssa_isolate_erroneous_path): Likewise.
5658 2013-11-12  Teresa Johnson  <tejohnson@google.com>
5659             Jan Hubicka  <jh@suse.cz>
5661         * predict.c (drop_profile): New function.
5662         (handle_missing_profiles): Ditto.
5663         (counts_to_freqs): Don't overwrite estimated frequencies
5664         when function has no profile counts.
5665         * predict.h (handle_missing_profiles): Declare.
5666         * tree-inline.c (freqs_to_counts): New function.
5667         (copy_cfg_body): Invoke freqs_to_counts as needed.
5668         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
5670 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
5672         PR target/59088
5673         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
5674         Set for m_HASWELL.
5675         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
5677 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
5679         PR target/59084
5680         * config/i386/i386.c (ix86_option_override_internal): Check
5681         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
5682         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
5683         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
5684         MASK_AVX256_SPLIT_UNALIGNED_STORE.
5686         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
5687         Clear m_COREI7_AVX and update comments.
5688         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
5690 2013-11-12  Martin Jambor  <mjambor@suse.cz>
5692         PR rtl-optimization/10474
5693         * ira.c (interesting_dest_for_shprep): New function.
5694         (split_live_ranges_for_shrink_wrap): Likewise.
5695         (find_moveable_pseudos): Move calculation of dominance info,
5696         df_analysios and the final anlyses to...
5697         (ira): ...here, call split_live_ranges_for_shrink_wrap.
5699 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
5701         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
5702         Handle type conversion.
5704 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
5705             Jan Hubicka  <jh@suse.cz>
5707         * cgraph.c (dump_cgraph_node): Profile dump added.
5708         * cgraph.h (struct cgraph_node): New time profile variable added.
5709         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
5710         * gcov-io.h (gcov_type): New profiler type introduced.
5711         * ipa-profile.c (lto_output_node): Streaming for time profile added.
5712         (input_node): Time profiler is read from LTO stream.
5713         * predict.c (maybe_hot_count_p): Hot prediction changed.
5714         * profile.c (instrument_values): New case for time profiler added.
5715         (compute_value_histograms): Read of time profile.
5716         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
5717         * tree-profile.c (init_ic_make_global_vars): Time profiler
5718         function added.
5719         (gimple_init_edge_profiler): TP function instrumentation.
5720         (gimple_gen_time_profiler): New.
5721         * value-prof.c (gimple_add_histogram_value): Support for time profiler
5722         added.
5723         (dump_histogram_value): TP type added to dumps.
5724         (visit_hist): More sensitive check that takes TP into account.
5725         (gimple_find_values_to_profile): TP instrumentation.
5726         * value-prof.h (hist_type): New histogram type added.
5727         (struct histogram_value_t): Pointer to struct function added.
5728         * libgcc/Makefile.in: New GCOV merge function for TP added.
5729         * libgcov.c: function_counter variable introduced.
5730         (_gcov_merge_time_profile): New.
5731         (_gcov_time_profiler): New.
5733 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
5734             Jeff Law  <law@redhat.com>
5736         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
5737         ao_ref_init_from_ptr_and_size for builtins.
5739 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
5740             H.J. Lu  <hongjiu.lu@intel.com>
5742         PR target/58853
5743         * config/i386/x86-tune.def
5744         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
5745         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
5746         * config/i386/i386.h
5747         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
5748         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
5749         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
5750         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
5751         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
5752         misaligned_prologue_used.  Check that
5753         desired_aling <= epilogue_size_needed.
5755 2013-11-11  Cong Hou  <congh@google.com>
5757         PR tree-optimization/59050
5758         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
5760 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
5762         PR middle-end/59049
5763         * expmed.c (emit_store_flag): Fail for const-const comparison.
5765 2013-11-11  Tristan Gingold  <gingold@adacore.com>
5766             Eric Botcazou  <ebotcazou@adacore.com>
5768         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
5769         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
5770         * tree.def (CONSTRUCTOR): Likewise.
5771         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
5772         * gimplify.c (gimplify_init_constructor): Do not clear the object when
5773         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
5775 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
5777         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
5778         diagnostic_finish.
5780 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5782         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
5783         comparisons.
5785 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
5787         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
5789 2013-11-08  Jeff Law  <law@redhat.com>
5791         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
5792         threading paths first, then perform PHI node checks if applicable.
5794 2013-11-10  Karlson2k  <k2k@narod.ru>
5795             Kai Tietz  <ktietz@redhat.com>
5797         PR plugin/52872
5798         * configure.ac: Adding for exported symbols check
5799         and for rdynamic-check executable-extension.
5800         * configure: Regenerated.
5802 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
5804         * mode-switching.c (optimize_mode_switching): Mark block as
5805         nontransparent, if last_mode at block exit is different from no_mode.
5807 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5809         * function.c (NAME__MAIN): Move to...
5810         * cfgexpand.c (NAME__MAIN): ...here.
5812 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
5814         * target.def (can_use_doloop_p): New hook.
5815         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
5816         * doc/tm.texi: Regenerate.
5817         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
5818         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
5819         * hooks.c (hook_bool_dint_dint_uint_true): New function.
5820         * targhooks.h (can_use_doloop_if_innermost): Declare.
5821         * targhooks.c (can_use_doloop_if_innermost): New function.
5822         * target.h: Include double-int.h.
5823         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
5824         Remove iteration count, maximum iteration count, loop depth and
5825         enter-at-top inputs from doloop_begin and doloop_end.
5826         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
5827         interface.
5828         * config/arc/arc.c (arc_can_use_doloop_p): New function.
5829         (TARGET_CAN_USE_DOLOOP_P): Define.
5830         * config/arm/thumb2.md (doloop_end): Update for new interface.
5831         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
5832         * config/bfin/bfin.md (doloop_end): Update for new interface.
5833         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
5834         (TARGET_CAN_USE_DOLOOP_P): Define.
5835         * config/c6x/c6x.md (doloop_end): Update for new interface.
5836         * config/ia64/ia64.md (doloop_end): Update for new interface.
5837         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
5838         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
5839         interface.
5840         * config/mep/mep.c (mep_emit_doloop): Likewise.
5841         (TARGET_CAN_USE_DOLOOP_P): Define.
5842         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
5843         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
5844         * config/s390/s390.md (doloop_end): Update for new interface.
5845         * config/sh/sh.md (doloop_end): Likewise.
5846         * config/spu/spu.md (doloop_end): Likewise.
5847         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
5848         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
5849         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
5850         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
5851         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
5852         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
5853         interface.
5854         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
5856 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
5858         PR other/59055
5859         * doc/extend.texi: Move Cilk Plus Builtins node before Other
5860         Builtins node.
5862 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
5863             Joseph Myers  <joseph@codesourcery.com>
5865         * ginclude/stdatomic.h: New file.
5866         * Makefile.in (USER_H): Add stdatomic.h.
5868 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5870         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
5871         comparisons.
5873 2013-11-08  Jeff Law  <law@redhat.com>
5875         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
5876         * tree-ssa-threadupdate.c (delete_thread_path): New function.
5877         (ssa_redirect_edges, thread_block_1): Use it.
5878         (thread_through_loop_header, mark_threaded_blocks): Likewise.
5879         (thread_through_all_blocks, register_jump_thread): Likewise.
5880         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
5882 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
5884         * config/arm/aarch-common.c
5885         (search_term): New typedef.
5886         (shift_rtx_costs): New array.
5887         (arm_rtx_shift_left_p): New.
5888         (arm_find_sub_rtx_with_search_term): Likewise.
5889         (arm_find_sub_rtx_with_code): Likewise.
5890         (arm_early_load_addr_dep): Add sanity checking.
5891         (arm_no_early_alu_shift_dep): Likewise.
5892         (arm_no_early_alu_shift_value_dep): Likewise.
5893         (arm_no_early_mul_dep): Likewise.
5894         (arm_no_early_store_addr_dep): Likewise.
5896 2013-11-08  Richard Biener  <rguenther@suse.de>
5898         PR tree-optimization/59047
5899         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
5901 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
5903         * common.opt (fcheck-pointer-bounds): Move to ...
5904         * c-family/c.opt: ... here.
5905         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
5906         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
5907         * langhooks.h (lang_hooks): Remove chkp_supported field.
5908         * toplev.c (process_options): Remove chkp_supported check.
5910 2013-11-08  Richard Biener  <rguenther@suse.de>
5912         PR tree-optimization/59038
5913         PR tree-optimization/58955
5914         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
5915         previous change.  Handle known dependences correctly.
5917 2013-11-08  Tom de Vries  <tom@codesourcery.com>
5919         * config/rs6000/t-xilinx: Remove duplicate contents.
5921 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
5922             Joseph Myers  <joseph@codesourcery.com>
5924         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
5925         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
5926         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
5927         (struct tree_base): Add atomic_flag field.
5928         * tree.h (TYPE_ATOMIC): New accessor macro.
5929         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
5930         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
5931         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
5932         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
5933         * tree.c (set_type_quals): Set TYPE_ATOMIC.
5934         (find_atomic_core_type): New function.
5935         (build_qualified_type): Adjust alignment for qualified types.
5936         (build_atomic_base): New function
5937         (build_common_tree_nodes): Build atomicQI_type_node,
5938         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
5939         atomicTI_type_node.
5940         * print-tree.c (print_node): Print atomic qualifier.
5941         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
5942         * target.def (atomic_assign_expand_fenv): New hook.
5943         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
5944         * doc/tm.texi: Regenerate.
5945         * targhooks.c (default_atomic_assign_expand_fenv): New function.
5946         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
5947         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
5948         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
5949         function type.
5950         * config/i386/i386.c (enum ix86_builtins): Add
5951         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
5952         IX86_BUILTIN_FNCLEX.
5953         (bdesc_special_args): Add __builtin_ia32_fnstenv,
5954         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
5955         (ix86_expand_builtin): Handle the new built-in functions.
5956         (ix86_atomic_assign_expand_fenv): New function.
5957         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
5958         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
5959         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
5960         (fnstenv, fldenv, fnstsw, fnclex): New insns.
5962 2013-11-07  Steve Ellcey  <sellcey@mips.com>
5964         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
5965         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
5966         (MULTILIB_DIRNAMES): Add fp64 directory.
5967         (MULTILIB_EXCEPTIONS): Add new exclusions.
5969 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
5971         * gimplify.c (gimple_regimplify_operands): Do not set
5972         SSA_NAME_DEF_STMT.
5973         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
5974         (rewrite_close_phi_out_of_ssa): Same.
5975         (rewrite_phi_out_of_ssa): Same.
5976         (rewrite_degenerate_phi): Same.
5977         (handle_scalar_deps_crossing_scop_limits): Same.
5978         * tree-if-conv.c (predicate_scalar_phi): Same.
5979         * tree-parloops.c (create_loads_for_reductions): Same.
5980         (create_final_loads_for_reduction): Same.
5981         (create_loads_and_stores_for_name): Same.
5982         (transform_to_exit_first_loop): Same.
5983         (create_parallel_loop): Same.
5984         * tree-ssa-loop-im.c
5985         (move_computations_dom_walker::before_dom_children): Same.
5986         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
5987         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
5988         * tree-ssa-propagate.c (substitute_and_fold): Same.
5989         * tree-vect-loop.c (vect_finalize_reduction): Same.
5990         * tree-vect-stmts.c (vectorizable_call): Same.
5992 2013-11-07  Mike Stump  <mikestump@comcast.net>
5994         * config/pdp11/pdp11.c: Include dbxout.h.
5995         * config/picochip/picochip.c: Likewise.
5997 2013-11-07  Cong Hou  <congh@google.com>
5999         PR tree-optimization/56764
6000         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6001         Combine alias checks if it is possible to amortize the runtime
6002         overhead.  Return the number of alias checks after merging.
6003         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6004         Use the function vect_create_cond_for_alias_checks () to check
6005         the number of alias checks.
6007 2013-11-07  Jeff Law  <law@redhat.com>
6009         * varpool.c (ctor_for_folding): Fix typo in comment.
6011 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
6013         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6014         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
6016 2013-11-07  Jeff Law  <law@redhat.com>
6018         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6020         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6021         No longer check if we have __builtin_trap, assume it's available.
6023 2013-11-07  Diego Novillo  <dnovillo@google.com>
6025         * attribs.c (lookup_scoped_attribute_spec): Make static.
6026         (get_attribute_namespace): Likewise.
6027         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6028         (validate_arglist): Move earlier in the file. Make static.
6029         (expand_stack_restore): Move from stmt.c
6030         (expand_stack_save): Move from stmt.c
6031         (rewrite_call_expr_array): Move earlier in the file.
6032         (rewrite_call_expr_valist): Likewise.
6033         * cfgexpand.c: Include hard-reg-set.h before tree.h
6034         Include recog.h.
6035         Include output.h.
6036         (expand_asm_loc): Move from stmt.c.
6037         (n_occurrences): Move from stmt.c.
6038         (check_operand_nalternatives): Move from stmt.c.
6039         (tree_conflicts_with_clobbers_p): Move from stmt.c.
6040         (expand_asm_operands): Move from stmt.c
6041         (expand_asm_stmt): Move from stmt.c
6042         (expand_computed_goto): Move from stmt.c
6043         (expand_goto): Move from stmt.c
6044         (expand_null_return_1): Move from stmt.c
6045         (expand_null_return): Move from stmt.c
6046         (expand_value_return): Move from stmt.c
6047         (expand_return): Move from stmt.c
6048         (expand_main_function): Move from function.c
6049         (stack_protect_prologue): Move from function.c
6050         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6051         (build_function_decl_skip_args): Move from tree.c.
6052         * explow.c (tree_expr_size): Move from tree.c.
6053         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6054         (fields_length): Move from tree.c.
6055         * fold-const.c (size_low_cst): Move from tree.c.
6056         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6057         (tree_expr_nonzero_p): Make static. Move earlier in the file.
6058         (fold_build3_initializer_loc): Remove.
6059         (tree_invalid_nonnegative_warnv_p): Make static.
6060         * function.c (expand_main_function): Move to cfgexpand.c.
6061         (stack_protect_prologue): Move to cfgexpand.c.
6062         (set_insn_locations): Move earlier in the file.
6063         * gimple-fold.c: Include langhooks.h.
6064         (truth_type_for): Move from tree.c.
6065         * print-tree.c (print_vec_tree): Remove.
6066         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6067         (expand_goto): Move to cfgexpand.c.
6068         (n_occurrences): Move to cfgexpand.c.
6069         (expand_asm_loc): Move to cfgexpand.c
6070         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6071         (expand_asm_operands): Move to cfgexpand.c.
6072         (expand_asm_stmt): Move to cfgexpand.c.
6073         (check_operand_nalternatives): Move to cfgexpand.c
6074         (expand_null_return): Move to cfgexpand.c.
6075         (expand_value_return): Move to cfgexpand.c.
6076         (expand_null_return_1): Move to cfgexpand.c.
6077         (expand_return): Move to cfgexpand.c.
6078         (expand_stack_save): Move to builtins.c.
6079         (expand_stack_restore): Move to builtins.c
6080         * symtab.c: Include output.h.
6081         (decl_assembler_name_hash): Move from tree.c.
6082         (decl_assembler_name_equal): Move from tree.c.
6083         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6084         * tree-eh.c (in_array_bounds_p): Move from tree.c.
6085         (range_in_array_bounds_p): Move from tree.c.
6086         * tree-object-size.c (fini_object_sizes): Make static.
6087         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6088         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6089         * tree.c (decl_assembler_name_equal): Move to symtab.c.
6090         (tree_expr_size): Move to explow.c.
6091         (decl_assembler_name_hash): Move to symtab.c.
6092         (real_twop): Remove.
6093         (tree_expr_size): Move to explow.c.
6094         (stabilize_reference_1): Move earlier in the file. Make static.
6095         (omp_remove_redundant_declare_simd_attrs): Remove.
6096         (simple_cst_list_equal): Move earlier in the file. Make static.
6097         (size_low_cst): Move to fold-const.c.
6098         (build_type_no_quals): Remove.
6099         (build_function_type_skip_args): Move to cgraphclones.c.
6100         (build_function_decl_skip_args): Move to cgraphclones.c.
6101         (in_array_bounds_p): Move to tree-eh.c.
6102         (range_in_array_bounds_p): Move to tree-eh.c.
6103         (truth_type_for): Move to gimple-fold.c.
6104         (list_equal_p): Remove.
6105         * tree.h (decl_assembler_name_equal): Remove.
6106         (decl_assembler_name_hash): Remove.
6107         (truth_type_for): Remove.
6108         (build_type_no_quals): Remove.
6109         (build_function_decl_skip_args): Remove.
6110         (in_array_bounds_p): Remove.
6111         (range_in_array_bounds_p): Remove.
6112         (size_low_cst): Remove.
6113         (omp_remove_redundant_declare_simd_attrs): Remove.
6114         (tree_expr_size): Remove.
6115         (fields_length): Remove.
6116         (stabilize_reference_1): Remove.
6117         (expand_goto): Remove.
6118         (expand_stack_save): Remove.
6119         (expand_stack_restore): Remove.
6120         (expand_return): Remove.
6121         (fold_build3_initializer_loc): Remove.
6122         (tree_expr_nonzero_p): Remove.
6123         (tree_invalid_nonnegative_warnv_p): Remove.
6124         (tree_expr_nonzero_warnv_p): Remove.
6125         (fold_builtin_snprintf_chk): Remove.
6126         (validate_arglist): Remove.
6127         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6128         (simple_cst_list_equal): Remove.
6129         (real_twop): Remove.
6130         (expand_main_function): Remove.
6131         (stack_protect_prologue): Remove.
6132         (print_vec_tree): Remove.
6133         (lookup_scoped_attribute_spec): Remove.
6134         (get_attribute_namespace): Remove.
6135         (expand_computed_goto): Remove.
6136         (expand_asm_stmt): Remove.
6137         (list_equal_p): Remove.
6138         (ssa_name_nonnegative_p): Remove.
6139         (fini_object_sizes): Remove.
6140         (addr_expr_of_non_mem_decl_p): Remove.
6141         (is_tm_safe_or_pure): Move to trans-mem.c.
6142         (more_const_call_expr_args_p): Remove.
6143         (save_vtable_map_decl): Remove.
6145 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
6147         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6148         linker plugins, too.
6150         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6151         link to libgomp and its dependencies.
6152         * config/ia64/hpux.h (LIB_SPEC): Likewise.
6153         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6154         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6155         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6157 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
6159         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6160         (determine_value_range): Add loop argument.  Use get_range_info to
6161         improve range.
6162         (bound_difference): Adjust caller.
6164 2013-11-07  Richard Biener  <rguenther@suse.de>
6165             Jakub Jelinek  <jakub@redhat.com>
6167         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6168         latches from header PHI arguments from the latch edge.
6170 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
6172         PR c++/58176
6173         * varasm.c (output_constant): Handle NULLPTR_TYPE.
6175 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6177         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6178         misaligned_prologue_used when it has been set.
6180 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
6181             Jakub Jelinek  <jakub@redhat.com>
6183         PR sanitizer/59029
6184         * asan.c (get_mem_refs_of_builtin_call): Allow
6185         integer literals as addresses in instrumented builtins.
6187 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6189         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6190         Explain why plus_constant is not used.
6192 2013-11-07  Richard Biener  <rguenther@suse.de>
6194         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6195         (canonicalize_value): ... this.  Also handle stripping of
6196         TREE_OVERFLOW.
6197         (get_value, set_lattice_value, get_value_for_expr): Adjust.
6198         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6199         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6201 2013-11-07  Richard Biener  <rguenther@suse.de>
6203         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6205 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6207         PR target/59034
6208         * config/i386/i386.md (push peepholer/splitter): Use Pmode
6209         with stack_pointer_rtx.
6211 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6213         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6214         using operand_equal_p.
6216 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6218         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
6219         * tree-affine.c (get_inner_reference_aff): Return base.
6220         * tree-affine.h (get_inner_reference_aff): Change prototype.
6222 2013-11-06  Tobias Burnus  <burnus@net-b.de>
6224         * doc/invoke.texi (Wdate-time): Fix typo.
6226 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6228         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
6229         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
6230         fp_arith_reg_operand instead of arith_reg_operand.
6232 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6234         * config/sh/sh.md (adddi3): Remove empty constraints.
6235         Remove can_create_pseudo_p and arith_reg_operand check.
6236         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6237         Split before reload.
6239 2013-11-06  Jeff Law  <law@redhat.com>
6240             Tom Tromey  <tromey@redhat.com>
6242         * gdbinit.in: Disable strict type checking.
6244 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
6246         * tree-pass.h (make_pass_live_range_shrinkage): New external.
6247         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6248         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6249         (rest_of_handle_live_range_shrinkage): Ditto
6250         (class pass_live_range_shrinkage): Ditto.
6251         (pass_data_live_range_shrinkage): Ditto.
6252         (make_pass_live_range_shrinkage): Ditto.
6253         * sched-int.h (initialize_live_range_shrinkage): New prototype.
6254         (finish_live_range_shrinkage): Ditto.
6255         * sched-deps.c (create_insn_reg_set): Make void return value.
6256         * passes.def: Add pass_live_range_shrinkage.
6257         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6258         * haifa-sched.c (live_range_shrinkage_p): New.
6259         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6260         New functions.
6261         (rank_for_schedule): Add code for pressure relief through live
6262         range shrinkage.
6263         (schedule_insn): Print more debug info.
6264         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6265         through live range shrinkage.
6266         * doc/invoke.texi (-flive-range-shrinkage): New.
6267         * common.opt (flive-range-shrinkage): New.
6269 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
6271         PR target/59021
6272         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6273         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6274         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6275         RTXes that return in AVX256 register.
6277 2013-11-06  Richard Biener  <rguenther@suse.de>
6279         PR tree-optimization/58653
6280         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
6281         (prepare_initializers_chain): Adjust.
6283 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
6285         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
6286         (gimple_in_transaction): Use bb_in_transaction.
6287         * basic-block.h (bb_in_transaction): Relocate here and rename.
6288         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
6290 2013-11-06  Richard Biener  <rguenther@suse.de>
6292         * tree.c (drop_tree_overflow): New function.
6293         * tree.h (drop_tree_overflow): Declare.
6294         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
6295         * tree-vrp.c (range_int_cst_singleton_p): Use
6296         is_overflow_infinity instead of testing TREE_OVERFLOW.
6297         (extract_range_from_assert): Likewise.
6298         (zero_nonzero_bits_from_vr): Likewise.
6299         (extract_range_basic): Likewise.
6300         (register_new_assert_for): Use drop_tree_overflow.
6301         (vrp_visit_phi_node): Likewise.
6303 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
6305         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
6306         checking for leaf functions without dynamic stack allocation.
6307         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
6308         (ia64_expand_prologue): Likewise.
6309         * config/mips/mips.c (mips_expand_prologue): Likewise.
6310         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6311         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6312         (sparc_flat_expand_prologue): Likewise.
6314 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
6316         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
6317         (__ST3_LANE_FUNC): Likewise.
6318         (__ST4_LANE_FUNC): Likewise.
6320 2013-11-06  Nick Clifton  <nickc@redhat.com>
6322         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
6323         name returned by msp430_mcu_name.
6324         (LIB_SPEC): If a -T option has not been specified then set a
6325         default, mcu-specific, linker script.
6326         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
6327         * config/msp430/msp430.c (msp430x_names): Likewise.
6328         Alpha sort the names for ease of comparison.
6329         (msp430_mcu_name): New function:  Returns a string suitable for
6330         use as a C preprocessor symbol based upon the name of the MCU
6331         being targeted.
6332         (msp430_option_override): Accept msp430x and msp430xv2 as generic
6333         mcu names.
6334         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
6336         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
6337         unless it is the last part of a spec substring.
6338         * doc/invoke.texi (Spec Files): Document space insertion
6339         behaviour of %*.
6341 2013-11-06  Christian Bruel  <christian.bruel@st.com>
6343         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
6344         Factorize probabilities, Use adjust_address instead of
6345         adjust_automodify_address when possible. Enable for optimize.
6346         (sh_expand_strlen): New function.
6347         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
6348         * config/sh/sh.md (strlensi): New pattern.
6349         (UNSPEC_BUILTIN_STRLEN): Define.
6351 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
6353         PR middle-end/58970
6354         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
6355         (expand_assignment): If *bitpos is negative, set *offset
6356         and adjust *bitpos, so that it is not negative.
6358 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
6360         * config/i386/bdver3.md : Added two additional decoder units
6361         to support issue rate of 4 and remodeled vector unit.
6362         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
6363         architectures is set to 4.
6364         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
6365         lookahead is set to 4 for BD architectures.
6367 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6369         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6370         Remove restriction against use of VSX instructions when generating
6371         code for little endian mode.
6373 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6375         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
6376         for both big and little endian.
6377         (mulv8hi3): Swap input operands for merge high and merge low
6378         instructions for little endian.
6380 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6382         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
6383         define_insn to define_expand that uses even patterns for big
6384         endian and odd patterns for little endian.
6385         (vec_widen_smult_even_v16qi): Likewise.
6386         (vec_widen_umult_even_v8hi): Likewise.
6387         (vec_widen_smult_even_v8hi): Likewise.
6388         (vec_widen_umult_odd_v16qi): Likewise.
6389         (vec_widen_smult_odd_v16qi): Likewise.
6390         (vec_widen_umult_odd_v8hi): Likewise.
6391         (vec_widen_smult_odd_v8hi): Likewise.
6392         (altivec_vmuleub): New define_insn.
6393         (altivec_vmuloub): Likewise.
6394         (altivec_vmulesb): Likewise.
6395         (altivec_vmulosb): Likewise.
6396         (altivec_vmuleuh): Likewise.
6397         (altivec_vmulouh): Likewise.
6398         (altivec_vmulesh): Likewise.
6399         (altivec_vmulosh): Likewise.
6401 2013-11-05  Mike Stump  <mikestump@comcast.net>
6403         * Makefile.in (mostlyclean): Remove c-family objects.
6405 2013-11-05  Ian Lance Taylor  <iant@google.com>
6407         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
6408         If possible, add .cfi directives to record change to bx.
6409         * config/i386/i386.c (ix86_emit_cfi): New function.
6410         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
6412 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
6414         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
6415         immediately after a label for a tablejump pattern.
6417         * config/arm/arm.c (is_jump_table): Remove.
6418         (create_fix_barrier): Use tablejump_p instead.
6419         (arm_reorg): Likewise.
6420         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
6421         (thumb2_output_casesi): Likewise.
6422         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
6423         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
6424         casesi_shift_media, casesi_load_media): Likewise.
6425         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
6426         * config/microblaze/microblaze.md: Likewise.
6428 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6430         * doc/invoke.texi (-Wdate-time): Document.
6432 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
6434         * double-int.c (lshift_double, rshift_double): Remove
6435         SHIFT_COUNT_TRUNCATED handling.
6437 2013-11-05  Jeff Law  <law@redhat.com>
6439         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
6440         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
6441         * gimple-ssa-isolate-paths.c: New file.
6442         * gimple.c (check_loadstore): New function.
6443         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
6444         Verify OP is in the argument list and the argument corresponding
6445         to OP is a pointer type.  Use operand_equal_p rather than
6446         pointer equality when testing if OP is on the nonnull list.
6447         Use check_loadstore rather than count_ptr_derefs.  Handle
6448         GIMPLE_RETURN statements.
6449         * tree-vrp.c (infer_nonnull_range): Remove.
6450         * gimple.h (infer_nonnull_range): Declare.
6451         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
6452         * passes.def: Add pass_isolate_erroneous_paths.
6453         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
6454         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
6455         * tree-ssa.c (struct count_ptr_d): Remove.
6456         (count_ptr_derefs, count_uses_and_derefs): Remove.
6457         * tree-ssa.h (count_uses_and_derefs): Remove.
6459 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
6461         PR rtl-optimization/58997
6462         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
6463         get_iv_value to be in iv->mode rather than iv->extend_mode.
6464         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
6465         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
6466         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
6467         mode.
6469 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
6471         * gimple.h: Move some prototypes to gimple-expr.h and add to include
6472         list.
6473         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
6474         Move to gimple-expr.h.
6475         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
6476         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
6477         is_gimple_id, virtual_operand_p, is_gimple_addressable,
6478         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
6479         Relocate here.
6480         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
6481         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
6482         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
6483         is_gimple_address, is_gimple_invariant_address,
6484         is_gimple_ip_invariant_address, is_gimple_min_invariant,
6485         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
6486         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
6487         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
6488         gimple_decl_printable_name, useless_type_conversion_p,
6489         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
6490         gimple-expr.[ch].
6491         * gimple-expr.c: New File.
6492         (useless_type_conversion_p, gimple_set_body, gimple_body,
6493         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
6494         gimple_can_coalesce_p, extract_ops_from_tree_1,
6495         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
6496         is_gimple_address, is_gimple_invariant_address,
6497         is_gimple_ip_invariant_address, is_gimple_min_invariant,
6498         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
6499         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
6500         is_gimple_mem_ref_addr): Relocate here.
6501         * Makefile.in (OBJS): Add gimple-expr.o.
6503 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
6505         * gengtype-parse.c (struct_field_seq): Support empty structs.
6507 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6509         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
6511 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6513         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
6514         for !TARGET_80387.
6515         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
6516         _SOFT_FLOAT here.
6517         (LONG_DOUBLE_TYPE_SIZE): New define.
6518         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
6520 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
6522         PR c++/58724
6523         * doc/extend.texi [visibility ("visibility_type")]: Add example
6524         about visibility attribute on namespace declaration.
6526 2013-11-05  Richard Biener  <rguenther@suse.de>
6528         PR ipa/58492
6529         * passes.def (all_passes): Start with pass_fixup_cfg again.
6531 2013-11-05  Richard Biener  <rguenther@suse.de>
6533         PR tree-optimization/58955
6534         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
6535         edge direction.
6537 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6539         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
6540         little endian.
6541         (vec_pack_ufix_trunc_v2df): Likewise.
6543 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
6545         PR middle-end/58981
6546         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
6547         pattern, instead of word_mode.
6549         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
6550         Pmode for size.
6551         (set_storage_via_setmem): Likewise.
6553 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
6555         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
6556         gimple.h and the rest of the condition in eliminate_build.
6557         (eliminate_build): Call new routine.
6558         * gimple.h (phi_ssa_name_p): Delete.
6560 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
6562         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
6563         case of no prefix and reserving zero slots, because when that's the
6564         case we'll never get here.
6565         * vec.h (va_heap::reserve): Don't try and handle
6566         vec_prefix::calculate_allocation returning zero because that should
6567         never happen.
6569 2013-11-05  Richard Biener  <rguenther@suse.de>
6571         PR middle-end/58941
6572         * tree-dfa.c (get_ref_base_and_extent): Merge common code
6573         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
6574         process trailing array detection before diving into the
6575         view-converted object (and possibly apply some extra offset).
6577 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
6579         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
6580         New function.
6581         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
6583 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
6585         PR tree-optimization/58958
6586         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
6587         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6589 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
6591         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
6592         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
6594 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
6596         PR tree-optimization/58984
6597         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
6598         set *SIZE_P if non-NULL on success.
6599         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
6600         callers.
6601         (ipcp_transform_function): Likewise.  Punt if size of access
6602         is different from TYPE_SIZE on v->value's type.
6604 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6606         * doc/invoke.texi (-fopenmp-simd): Document new option.
6607         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
6608         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
6609         * tree.c (attribute_value_equal): Ditto.
6611 2013-11-04  Wei Mi  <wmi@google.com>
6613         * sched-rgn.c (add_branch_dependences): Keep insns in
6614         a SCHED_GROUP at the end of BB to remain their location.
6616 2013-11-04  Wei Mi  <wmi@google.com>
6618         * config/i386/i386.c (memory_address_length): Extract a part
6619         of code to rip_relative_addr_p.
6620         (rip_relative_addr_p): New Function.
6621         (ix86_macro_fusion_p): Ditto.
6622         (ix86_macro_fusion_pair_p): Ditto.
6623         * config/i386/i386.h: Add new tune features about macro-fusion.
6624         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6625         * doc/tm.texi: Generated.
6626         * doc/tm.texi.in: Ditto.
6627         * haifa-sched.c (try_group_insn): New Function.
6628         (group_insns_for_macro_fusion): Ditto.
6629         (sched_init): Call group_insns_for_macro_fusion.
6630         * target.def: Add two hooks: macro_fusion_p and
6631         macro_fusion_pair_p.
6633 2013-11-04  Kostya Serebryany  <kcc@google.com>
6635         Update to match the changed asan API.
6636         * asan.c (asan_function_start): New function.
6637         (asan_emit_stack_protection): Update the string stored in the
6638         stack red zone to match new API.  Store the PC of the current
6639         function in the red zone.
6640         (asan_global_struct): Update the __asan_global definition to match
6641         the new API.
6642         (asan_add_global): Ditto.
6643         * asan.h (asan_function_start): New prototype.
6644         * final.c (final_start_function): Call asan_function_start.
6645         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
6646         to __asan_init_v3.
6648 2013-11-04  Wei Mi  <wmi@google.com>
6650         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
6651         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
6652         * config/i386/i386.c (ix86_option_override_internal): Ditto.
6653         (ix86_issue_rate): Ditto.
6654         (ix86_adjust_cost): Ditto.
6655         (ia32_multipass_dfa_lookahead): Ditto.
6656         (ix86_sched_init_global): Ditto.
6657         (get_builtin_code_for_version): Ditto.
6658         * config/i386/i386.h (enum target_cpu_default): Ditto.
6659         (enum processor_type): Ditto.
6660         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6662 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
6664         PR rtl-optimization/58967
6665         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
6666         !lra_in_progress for mode sizes bigger word.
6668 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6670         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
6671         arguments to merge instruction for little endian.
6672         (vec_widen_umult_lo_v16qi): Likewise.
6673         (vec_widen_smult_hi_v16qi): Likewise.
6674         (vec_widen_smult_lo_v16qi): Likewise.
6675         (vec_widen_umult_hi_v8hi): Likewise.
6676         (vec_widen_umult_lo_v8hi): Likewise.
6677         (vec_widen_smult_hi_v8hi): Likewise.
6678         (vec_widen_smult_lo_v8hi): Likewise.
6680 2013-11-04  Ian Lance Taylor  <iant@google.com>
6682         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
6683         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
6684         builtins that take pointers.
6685         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
6686         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
6687         (run_gcc): Pass -fnon-call-exceptions.
6689 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
6691         * optabs.c (expand_vec_perm): Revert one incorrect line from
6692         2013-10-31 change.
6694         PR tree-optimization/58978
6695         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
6696         use_stmt by single_imm_use directly.  Only call single_imm_use
6697         on SSA_NAMEs.
6699 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
6701         PR rtl-optimization/58968
6702         * lra-spills.c (return_regno_p): New function.
6703         (lra_final_code_change): Use it.
6705 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
6707         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
6708         * target.def (float_exceptions_rounding_supported_p): New hook.
6709         * targhooks.c (default_float_exceptions_rounding_supported_p): New
6710         function.
6711         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
6712         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
6713         New @hook.
6714         * doc/tm.texi: Regenerate.
6715         * config.gcc (powerpc*-*-linux*): Set extra_objs.
6716         * config/rs6000/rs6000-linux.c: New file.
6717         * config/rs6000/rs6000-protos.h
6718         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
6719         * config/rs6000/linux.h
6720         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
6721         * config/rs6000/linux64.h
6722         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
6723         * config/rs6000/t-linux (rs6000-linux.o): New rule.
6724         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
6726 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6728         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
6729         Replace the define_insn_and_split with a define_insn and two
6730         define_splits, with the split after reload re-permuting the source
6731         register to its original value.
6732         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
6733         (*vsx_le_perm_store_v8hi): Likewise.
6734         (*vsx_le_perm_store_v16qi): Likewise.
6736 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6738         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
6739         little endian.
6741 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
6743         PR tree-optimization/58946
6744         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
6745         bbs with bbinfo[idx].op != NULL before all blocks with
6746         bbinfo[idx].op == NULL.
6748 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
6750         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
6751         (avr_dump_double_int_hex): Likewise.
6752         (avr_log_vadump): Remove %D and %X handling.
6753         * config/avr/avr.c (avr_double_int_push_digit): Delete.
6754         (avr_map_op_t): Change map from double_int to unsigned int.
6755         (avr_map_op): Update accordingly.
6756         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
6757         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
6758         unsigned ints rather than double_ints.
6760 2013-11-03  Marek Polacek  <polacek@redhat.com>
6762         Implement -fsanitize=vla-bound.
6763         * opts.c (common_handle_option): Handle vla-bound.
6764         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
6765         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
6766         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
6768 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
6770         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
6771         little endian.
6773 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
6775         * config/i386/constraints.md (Ts, Tv): New address constrains.
6776         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
6777         constraint for address_no_seg_operand.
6778         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
6779         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
6780         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
6781         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
6782         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
6783         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
6784         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
6785         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
6786         constraint for vsib_address_operand.
6788 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
6790         * gcse.c (pre_delete): Remove references to regmove from comments.
6791         * recog.c: (validate_replace_rtx_1): Likewise.
6792         * config/rl78/rl78.c: Likewise.
6793         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
6794         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
6795         * common/config/mmix/mmix-common.c: Likewise.
6797 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
6799         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
6800         * gimplify.c (gimplify_compound_lval): Likewise.
6801         * graphite-clast-to-gimple.c (gloog): Likewise.
6802         * graphite-dependences.c (loop_is_parallel_p): Likewise.
6803         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
6804         (limit_scop); Likewise.
6805         (build_scops): Likewise.
6806         (dot_scop): Likewise.
6807         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
6808         (build_scop_drs): Likewise.
6809         (insert_stmts): Likewise.
6810         (insert_out_of_ssa_copy): Likewise.
6811         (remove_phi): Likewise.
6812         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
6813         * hw-doloop.c (discover_loop): Likewise.
6814         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
6815         * tree-dfa.c (dump_enumerated_decls): Likewise.
6816         * tree-if-conv.c (if_convertable_loop_p): Likewise.
6817         * tree-inline.c (tree_function_versioning): Likewise.
6818         * tree-loop-distribution.c (build_rdg): Likewise.
6819         (rdg_flag_vertex_and_dependent): Likewise.
6820         (distribute_loop): Likewise.
6821         * tree-parloops.c (loop_parallel_p): Likewise.
6822         (eliminate_local_variables): Likewise.
6823         (separate_decls_in_region): Likewise.
6824         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
6825         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
6826         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
6827         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
6828         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
6829         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
6830         (vectorizable_condition): Likewise.
6832 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
6834         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
6835         * configure: Regenerate.
6836         * config/i386/i386.md (*movdi_internal): Change
6837         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
6838         (*movdf_internal): Ditto.
6839         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
6840         * config/i386/sse.md (vec_concatv2di): Output interunit movq
6841         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
6843 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
6845         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
6846         after comment.
6848 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
6850         Automated part of renaming of symtab_node_base to symtab_node.
6852         Patch autogenerated by rename_symtab.py from
6853         https://github.com/davidmalcolm/gcc-refactoring-scripts
6854         revision 58bb219cc090b2f4516a9297d868c245495ee622
6855         with ChangeLog entry fixed up by hand.
6857         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
6858         symtab_node.
6859         (cgraph_node_for_asm): Likewise.
6860         * cgraph.h (symtab_node_base): Likewise.
6861         (cgraph_node): Likewise.
6862         (varpool_node): Likewise.
6863         (is_a_helper <cgraph_node>::test): Likewise.
6864         (is_a_helper <varpool_node>::test): Likewise.
6865         (symtab_nodes): Likewise.
6866         (symtab_register_node): Likewise.
6867         (symtab_unregister_node): Likewise.
6868         (symtab_remove_node): Likewise.
6869         (symtab_get_node): Likewise.
6870         (symtab_node_for_asm): Likewise.
6871         (symtab_node_asm_name): Likewise.
6872         (symtab_node_name): Likewise.
6873         (symtab_insert_node_to_hashtable): Likewise.
6874         (symtab_add_to_same_comdat_group): Likewise.
6875         (symtab_dissolve_same_comdat_group_list): Likewise.
6876         (dump_symtab_node): Likewise.
6877         (debug_symtab_node): Likewise.
6878         (dump_symtab_base): Likewise.
6879         (verify_symtab_node): Likewise.
6880         (verify_symtab_base): Likewise.
6881         (symtab_used_from_object_file_p): Likewise.
6882         (symtab_alias_ultimate_target): Likewise.
6883         (symtab_resolve_alias): Likewise.
6884         (fixup_same_cpp_alias_visibility): Likewise.
6885         (symtab_for_node_and_aliases): Likewise.
6886         (symtab_nonoverwritable_alias): Likewise.
6887         (availability symtab_node_availability): Likewise.
6888         (symtab_semantically_equivalent_p): Likewise.
6889         (fixup_same_cpp_alias_visibility): Likewise.
6890         (symtab_prevail_in_asm_name_hash): Likewise.
6891         (cgraph): Likewise.
6892         (varpool): Likewise.
6893         (varpool_first_variable): Likewise.
6894         (varpool_next_variable): Likewise.
6895         (varpool_first_static_initializer): Likewise.
6896         (varpool_next_static_initializer): Likewise.
6897         (varpool_first_defined_variable): Likewise.
6898         (varpool_next_defined_variable): Likewise.
6899         (cgraph_first_defined_function): Likewise.
6900         (cgraph_next_defined_function): Likewise.
6901         (cgraph_first_function): Likewise.
6902         (cgraph_next_function): Likewise.
6903         (cgraph_first_function_with_gimple_body): Likewise.
6904         (cgraph_next_function_with_gimple_body): Likewise.
6905         (symtab_alias_target): Likewise.
6906         (symtab_real_symbol_p): Likewise.
6907         (symtab_can_be_discarded): Likewise.
6908         * cgraphbuild.c (mark_address): Likewise.
6909         (mark_load): Likewise.
6910         (mark_store): Likewise.
6911         * cgraphunit.c (decide_is_symbol_needed): Likewise.
6912         (first): Likewise.
6913         (enqueue_node): Likewise.
6914         (referred_to_p): Likewise.
6915         (cgraph_process_same_body_aliases): Likewise.
6916         (analyze_functions): Likewise.
6917         (handle_alias_pairs): Likewise.
6918         (output_weakrefs): Likewise.
6919         (compile): Likewise.
6920         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6921         * ipa-inline-analysis.c (inline_write_summary): Likewise.
6922         * ipa-prop.c (remove_described_reference): Likewise.
6923         (try_decrement_rdesc_refcount): Likewise.
6924         (ipa_edge_duplication_hook): Likewise.
6925         * ipa-ref.c (ipa_record_reference): Likewise.
6926         (ipa_maybe_record_reference): Likewise.
6927         (ipa_clone_ref): Likewise.
6928         (ipa_clone_references): Likewise.
6929         (ipa_clone_referring): Likewise.
6930         (ipa_find_reference): Likewise.
6931         (ipa_remove_stmt_references): Likewise.
6932         (ipa_clear_stmts_in_references): Likewise.
6933         * ipa-ref.h (symtab_node_base): Likewise.
6934         (ipa_ref): Likewise.
6935         (ipa_record_reference): Likewise.
6936         (ipa_maybe_record_reference): Likewise.
6937         (ipa_clone_references): Likewise.
6938         (ipa_clone_referring): Likewise.
6939         (ipa_clone_ref): Likewise.
6940         (ipa_find_reference): Likewise.
6941         (ipa_remove_stmt_references): Likewise.
6942         (ipa_clear_stmts_in_references): Likewise.
6943         * ipa-reference.c (ipa_reference_write_optimization_summary):
6944         Likewise.
6945         * ipa.c (enqueue_node): Likewise.
6946         (process_references): Likewise.
6947         (walk_polymorphic_call_targets): Likewise.
6948         (symtab_remove_unreachable_nodes): Likewise.
6949         (address_taken_from_non_vtable_p): Likewise.
6950         (comdat_can_be_unshared_p_1): Likewise.
6951         (comdat_can_be_unshared_p): Likewise.
6952         (can_replace_by_local_alias): Likewise.
6953         (function_and_variable_visibility): Likewise.
6954         * is-a.h: Likewise (within example in comment).
6955         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
6956         (lto_symtab_encoder_encode): Likewise.
6957         (lto_symtab_encoder_delete_node): Likewise.
6958         (lto_symtab_encoder_in_partition_p): Likewise.
6959         (lto_set_symtab_encoder_in_partition): Likewise.
6960         (output_refs): Likewise.
6961         (compute_ltrans_boundary): Likewise.
6962         (output_symtab): Likewise.
6963         (input_node): Likewise.
6964         (input_ref): Likewise.
6965         (input_edge): Likewise.
6966         (input_cgraph_1): Likewise.
6967         (input_refs): Likewise.
6968         (output_cgraph_opt_summary): Likewise.
6969         (input_node_opt_summary): Likewise.
6970         (input_cgraph_opt_section): Likewise.
6971         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6972         Likewise.
6973         * lto-streamer-out.c (lto_output): Likewise.
6974         (output_symbol_p): Likewise.
6975         (produce_symtab): Likewise.
6976         * lto-streamer.h (lto_encoder_entry): Likewise.
6977         (lto_free_function_in_decl_state_for_node): Likewise.
6978         (lto_symtab_encoder_encode): Likewise.
6979         (lto_symtab_encoder_delete_node): Likewise.
6980         (lto_symtab_encoder_in_partition_p): Likewise.
6981         (lto_set_symtab_encoder_in_partition): Likewise.
6982         (lto_symtab_encoder_lookup): Likewise.
6983         (lsei_node): Likewise.
6984         (lto_symtab_encoder_deref): Likewise.
6985         * symtab.c (symtab_hash): Likewise.
6986         (assembler_name_hash): Likewise.
6987         (symtab_nodes): Likewise.
6988         (hash_node): Likewise.
6989         (eq_node): Likewise.
6990         (hash_node_by_assembler_name): Likewise.
6991         (eq_assembler_name): Likewise.
6992         (insert_to_assembler_name_hash): Likewise.
6993         (unlink_from_assembler_name_hash): Likewise.
6994         (symtab_prevail_in_asm_name_hash): Likewise.
6995         (symtab_register_node): Likewise.
6996         (symtab_insert_node_to_hashtable): Likewise.
6997         (symtab_unregister_node): Likewise.
6998         (symtab_get_node): Likewise.
6999         (symtab_remove_node): Likewise.
7000         (symtab_initialize_asm_name_hash): Likewise.
7001         (symtab_node_for_asm): Likewise.
7002         (symtab_add_to_same_comdat_group): Likewise.
7003         (symtab_dissolve_same_comdat_group_list): Likewise.
7004         (symtab_node_asm_name): Likewise.
7005         (symtab_node_name): Likewise.
7006         (dump_symtab_base): Likewise.
7007         (dump_symtab_node): Likewise.
7008         (dump_symtab): Likewise.
7009         (debug_symtab_node): Likewise.
7010         (verify_symtab_base): Likewise.
7011         (verify_symtab_node): Likewise.
7012         (verify_symtab): Likewise.
7013         (symtab_used_from_object_file_p): Likewise.
7014         (symtab_node_availability): Likewise.
7015         (symtab_alias_ultimate_target): Likewise.
7016         (fixup_same_cpp_alias_visibility): Likewise.
7017         (symtab_resolve_alias): Likewise.
7018         (symtab_for_node_and_aliases): Likewise.
7019         (symtab_for_node_and_aliases): Likewise.
7020         (symtab_nonoverwritable_alias_1): Likewise.
7021         (symtab_nonoverwritable_alias): Likewise.
7022         (symtab_semantically_equivalent_p): Likewise.
7023         * value-prof.c (init_node_map): Likewise.
7024         * varasm.c (find_decl): Likewise.
7025         * varpool.c (varpool_node_for_asm): Likewise.
7026         (varpool_remove_unreferenced_decls): Likewise.
7028 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7030         Manual part of renaming of symtab_node_base to symtab_node.
7032         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7033         clashes with the preferred name for the base class.
7034         (const_symtab_node): Remove redundant typedef.
7036 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7038         * optabs.c (expand_vec_perm): Avoid vector mode punning
7039         SUBREGs in SET_DEST.
7040         * expmed.c (store_bit_field_1): Likewise.
7041         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7042         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7043         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7044         * config/i386/i386.c (ix86_expand_vector_move_misalign,
7045         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7046         ix86_expand_sse_unpack, ix86_expand_args_builtin,
7047         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7048         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7049         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7050         expand_vec_perm_vpshufb2_vpermq,
7051         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7052         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7053         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7054         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
7055         than *d itself.
7057 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
7059         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7060         Use gcc_unreachable for unhandled modes.  Do not check results of
7061         expand_simple_binop.  If not expanded to target, move the result.
7063 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
7064             Shiva Chen  <shiva0217@gmail.com>
7066         * config.gcc (nds32*-*-*): Add nds32 target.
7067         * config/nds32/nds32.c: New file.
7068         * config/nds32/nds32.h: New file.
7069         * config/nds32/nds32.md: New file.
7070         * config/nds32/constants.md: New file.
7071         * config/nds32/constraints.md: New file.
7072         * config/nds32/iterators.md: New file.
7073         * config/nds32/nds32-doubleword.md: New file.
7074         * config/nds32/nds32-intrinsic.md: New file.
7075         * config/nds32/nds32_intrinsic.h: New file.
7076         * config/nds32/nds32-modes.def: New file.
7077         * config/nds32/nds32-multiple.md: New file.
7078         * config/nds32/nds32.opt: New file.
7079         * config/nds32/nds32-opts.h: New file.
7080         * config/nds32/nds32-protos.h: New file.
7081         * config/nds32/nds32-peephole2.md: New file.
7082         * config/nds32/pipelines.md: New file.
7083         * config/nds32/predicates.md: New file.
7084         * config/nds32/t-mlibs: New file.
7085         * common/config/nds32: New directory and files.
7087         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7088         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7089         * doc/install.texi (Cross-Compiler-Specific Options): Document
7090         --with-nds32-lib for nds32 target.
7091         * doc/extend.texi (Function Attributes, Target Builtins): Document
7092         nds32 specific attributes.
7094 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
7096         * lra-constraints (process_alt_operands): Use the result
7097         elimination register for operand when matching constraints.
7099 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7101         * tree-vrp.c (maybe_set_nonzero_bits): New function.
7102         (remove_range_assertions): Call it.
7104         * tree.c (tree_ctz): New function.
7105         * tree.h (tree_ctz): New prototype.
7106         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7107         first argument from tree to const_tree.
7108         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7109         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7110         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7111         static.
7112         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7113         * tree-vect-loop.c (vect_analyze_loop_operations,
7114         vect_transform_loop): Don't force scalar loop for bound just because
7115         number of iterations is unknown, only do it if it is not known to be
7116         a multiple of vectorization_factor.
7117         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7119         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7120         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
7121         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7122         (set_nonzero_bits, get_nonzero_bits): New prototypes.
7123         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7124         a default def isn't partially constant.
7125         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7126         is known to be partially zero.
7127         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7128         to see if a default def isn't partially constant.
7129         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7130         creation of a range, if VR_RANGE, try to improve nonzero_bits from
7131         the range.
7132         (set_nonzero_bits, get_nonzero_bits): New functions.
7134         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7135         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7136         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7137         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7138         uses but in the condition and ASSERT_EXPR and the other successor of
7139         the predecessor bb is __builtin_unreachable (), set_range_info of the
7140         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7142 2013-10-31  Martin Jambor  <mjambor@suse.cz>
7144         PR rtl-optimization/58934
7145         Revert:
7146         2013-10-30  Martin Jambor  <mjambor@suse.cz>
7147         PR rtl-optimization/10474
7148         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7149         nor df analysis.
7150         (interesting_dest_for_shprep): New function.
7151         (split_live_ranges_for_shrink_wrap): Likewise.
7152         (ira): Calculate dominance info and df analysis. Call
7153         split_live_ranges_for_shrink_wrap.
7155 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
7156             Yury Gribov  <y.gribov@samsung.com>
7158         PR sanitizer/58543
7159         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7160         shadow pointer to avoid clobbering the main one.
7162 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7164         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7166 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7168         PR bootstrap/58933
7169         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
7170         it for calling update_costs_from_allocno.
7171         (assign_hard_reg): Call restore_costs_from_copies only for
7172         !retry_p.  Pass new argument to update_costs_from_copies.
7173         (color_pass): Pass new argument to update_costs_from_copies.
7174         (ira_mark_allocation_change): Ditto.
7176 2013-10-30  Sharad Singhai  <singhai@google.com>
7178         PR middle-end/58134
7179         * opts.c (common_handle_option): Remove deprecated option
7180         -ftree-vectorizer-verbose.
7181         * doc/invoke.texi (Debugging Options): Ditto.
7182         * opts-global.c (handle_common_deferred_options): Ditto.
7183         (dump_remap_tree_vectorizer_verbose): Delete.
7184         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7186 2013-10-30  DJ Delorie  <dj@redhat.com>
7188         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7189         that take no arguments.
7191 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7193         PR other/58545
7194         * reload1.c (update_eliminables_and_spill): New function, broken
7195         out of reload.
7196         (reload): Use it.  Check for frame size change after frame size
7197         alignment, and call update_eliminables_and_spill first if continue-ing.
7199 2013-10-30  Cong Hou  <congh@google.com>
7201         PR target/58762
7202         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7203         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7204         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7206 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
7208         PR rtl-optimization/58369
7209         * reload1.c (compute_reload_subreg_offset): New function.
7210         (choose_reload_regs): Use it to pass endian-correct
7211         offset to subreg_regno_offset.
7213 2013-10-30  Tobias Burnus  <burnus@net-b.de>
7215         PR other/33426
7216         * tree-cfg.c (replace_loop_annotate): Replace warning by
7217         warning_at.
7219 2013-10-30  Jason Merrill  <jason@redhat.com>
7221         * configure.ac (loose_warn): Add -Wno-format if
7222         --disable-build-format-warnings.
7224 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
7226         * cgraphunit.c (analyze_functions): Split symtab_node declarations
7227         onto multiple lines to make things easier for rename_symtab.py.
7229         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
7230         (symtab_semantically_equivalent_p): Likewise.
7232 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7234         PR target/58784
7235         * lra.c (check_rtl): Remove address check before LRA work.
7237 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
7239         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7240         POINTER_PLUS_EXPR in the defining statement.
7242 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7244         * regmove.c: Remove.
7245         * tree-pass.h (make_pass_regmove): Remove.
7246         * timevar.def (TV_REGMOVE): Remove.
7247         * passes.def (pass_regmove): Remove.
7248         * opts.c (default_options_table): Remove entry for regmove.
7249         * doc/passes.texi: Remove regmove pass description.
7250         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7251         options.
7252         (-fdump-rtl-regmove): Ditto.
7253         * common.opt (foptimize-register-move, fregmove): Ignore.
7254         * Makefile.in (OBJS): Remove regmove.o.
7255         * regmove.c: Remove.
7256         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7257         and type.
7258         (struct ira_allocno) New member allocno_prefs.
7259         (ALLOCNO_PREFS): New macro.
7260         (ira_prefs, ira_prefs_num): New external vars.
7261         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7262         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7263         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7264         Ditto.
7265         (ira_add_allocno_copy_to_list): Remove prototype.
7266         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7267         (ira_pref_iterator): New type.
7268         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7269         (FOR_EACH_PREF): New macro.
7270         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7271         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
7272         code.
7273         (ira_setup_alts): New function.
7274         (decrease_live_ranges_number): New function.
7275         (ira): Call the above function.
7276         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
7277         (ira_create_allocno): Initialize allocno prefs.
7278         (pref_pool, pref_vec): New static vars.
7279         (initiate_prefs, find_allocno_pref, ira_create_pref): New
7280         functions.
7281         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
7282         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
7283         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
7284         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
7285         (ira_add_allocno_copy_to_list): Make static.  Rename to
7286         add_allocno_copy_to_list.
7287         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
7288         swap_allocno_copy_ends_if_necessary.
7289         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
7290         ira_remove_allocno_prefs.
7291         (ira_flattening): Ditto.
7292         (ira_build): Call initiate_prefs, print_prefs.
7293         (ira_destroy): Call finish_prefs.
7294         * ira-color.c (struct update_cost_record): New.
7295         (struct allocno_color_data): Add new member update_cost_records.
7296         (update_cost_record_pool): New static var.
7297         (init_update_cost_records, get_update_cost_record): New functions.
7298         (free_update_cost_record_list, finish_update_cost_records): Ditto.
7299         (struct update_cost_queue_elem): Add member from.
7300         (initiate_cost_update): Call init_update_cost_records.
7301         (finish_cost_update): Call finish_update_cost_records.
7302         (queue_update_cost, get_next_update_cost): Add new param from.
7303         (Update_allocno_cost, update_costs_from_allocno): New functions.
7304         (update_costs_from_prefs): Ditto.
7305         (update_copy_costs): Rename to update_costs_from_copies.
7306         (restore_costs_from_copies): New function.
7307         (update_conflict_hard_regno_costs): Don't go back.
7308         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
7309         more debug info.
7310         (pop_allocnos): Add priniting more debug info.
7311         (color_allocnos): Remove prefs for conflicting hard regs.
7312         Call update_costs_from_prefs.
7313         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
7314         (get_dup_num): Rename, modify, and move to ira.c
7315         (process_regs_for_copy): Add prefs.
7316         (add_insn_allocno_copies): Put src as first arg of
7317         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
7318         * ira-costs.c (record_reg_classes): Modify and move code into
7319         record_operands_costs.
7320         (find_costs_and_classes): Create prefs for the hard reg of small
7321         reg class.
7322         (process_bb_node_for_hard_reg_moves): Add prefs.
7324 2013-10-30  Richard Biener  <rguenther@suse.de>
7326         PR middle-end/57100
7327         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
7328         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
7329         as worker for ...
7330         (pre_and_rev_post_order_compute): ... which now wraps it.
7331         * graph.c (draw_cfg_nodes_no_loops): Use
7332         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
7333         on cfun.
7335 2013-10-30  Christian Bruel  <christian.bruel@st.com>
7337         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
7338         (sh_expand_cmpstr): Handle known align and schedule improvements.
7339         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
7340         * config/sh/sh.md (cmpstrnsi): New pattern.
7342 2013-10-30  Martin Jambor  <mjambor@suse.cz>
7344         PR rtl-optimization/10474
7345         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7346         nor df analysis.
7347         (interesting_dest_for_shprep): New function.
7348         (split_live_ranges_for_shrink_wrap): Likewise.
7349         (ira): Calculate dominance info and df analysis. Call
7350         split_live_ranges_for_shrink_wrap.
7352 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7354         PR target/58854
7355         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
7357 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7359         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7360         * tree.h (POINTER_BOUNDS_P): New.
7361         (BOUNDED_TYPE_P): New.
7362         (BOUNDED_P): New.
7363         (pointer_bounds_type_node): New.
7364         * tree.c (build_common_tree_nodes): Initialize
7365         pointer_bounds_type_node.
7366         * gimple.h (gimple_call_get_nobnd_arg_index): New.
7367         (gimple_call_num_nobnd_args): New.
7368         (gimple_call_nobnd_arg): New.
7369         (gimple_return_retbnd): New.
7370         (gimple_return_set_retbnd): New
7371         * gimple.c (gimple_build_return): Increase number of ops
7372         for return statement.
7373         (gimple_call_get_nobnd_arg_index): New.
7374         * gimple-pretty-print.c (dump_gimple_return): Print second op.
7376 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7378         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7379         with "chkp ctor" and "bnd_legacy" attributes.
7380         * gimplify.c (gimplify_init_constructor): Avoid infinite
7381         loop during gimplification of bounds initializer.
7383 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7385         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7386         (handle_bnd_legacy): New.
7387         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
7388         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
7389         attributes.
7391 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
7393         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
7394         (BT_FN_PTR_CONST_PTR): New.
7395         (BT_FN_CONST_PTR_CONST_PTR): New.
7396         (BT_FN_PTR_CONST_PTR_SIZE): New.
7397         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7398         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7399         (BT_FN_VOID_CONST_PTR_SIZE): New.
7400         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7401         * chkp-builtins.def: New.
7402         * builtins.def: include chkp-builtins.def.
7403         (DEF_CHKP_BUILTIN): New.
7404         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7405         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7406         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7407         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
7408         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
7409         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
7410         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
7411         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
7412         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
7413         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
7414         * common.opt (fcheck-pointer-bounds): New.
7415         * toplev.c (process_options): Check Pointer Bounds Checker is
7416         supported.
7417         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
7419 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7421         * target.def (builtin_chkp_function): New.
7422         (chkp_bound_type): New.
7423         (chkp_bound_mode): New.
7424         (fn_abi_va_list_bounds_size): New.
7425         (load_bounds_for_arg): New.
7426         (store_bounds_for_arg): New.
7427         * targhooks.h (default_load_bounds_for_arg): New.
7428         (default_store_bounds_for_arg): New.
7429         (default_fn_abi_va_list_bounds_size): New.
7430         (default_chkp_bound_type): New.
7431         (default_chkp_bound_mode): New.
7432         (default_builtin_chkp_function): New.
7433         * targhooks.c (default_load_bounds_for_arg): New.
7434         (default_store_bounds_for_arg): New.
7435         (default_fn_abi_va_list_bounds_size): New.
7436         (default_chkp_bound_type): New.
7437         (default_chkp_bound_mode); New.
7438         (default_builtin_chkp_function): New.
7439         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
7440         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7441         (TARGET_STORE_BOUNDS_FOR_ARG): New.
7442         (TARGET_BUILTIN_CHKP_FUNCTION): New.
7443         (TARGET_CHKP_BOUND_TYPE): New.
7444         (TARGET_CHKP_BOUND_MODE): New.
7445         * doc/tm.texi: Regenerated.
7446         * langhooks.h (lang_hooks): Add chkp_supported field.
7447         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
7448         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
7450 2013-10-29  Andrew Pinski <apinski@cavium.com>
7452         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
7453         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
7454         fails, combining the branches anyways.
7455         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
7456         increases the number of combinings.
7457         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
7459 2013-10-29  Mike Stump  <mikestump@comcast.net>
7461         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
7462         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
7463         (make_vector_mode): Increase namebuf to 16.
7464         (emit_insn_modes_h): When processing BImode, don't
7465         also match partial int modes.
7466         (emit_class_narrowest_mode): Likewise.
7468         * config/bfin/bfin-modes.def: Add precision to PDI.
7469         * config/m32c/m32c-modes.def: Add precision to PSI.
7470         * config/msp430/msp430-modes.def: Add precision to PSI.
7471         * config/rs6000/rs6000-modes.def: Add precision to PTI.
7472         * config/sh/sh-modes.def: Add precision to PSI and PDI.
7474 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
7476         PR target/54236
7477         * config/sh/sh.md (*addc): Rename existing variations to ...
7478         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
7479         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
7480         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
7481         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
7483 2013-10-29  Teresa Johnson  <tejohnson@google.com>
7485         PR ipa/58862
7486         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
7487         insanities when updating probabilities.
7489 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7491         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
7492         prettyprinter for cgraph_node to reflect the conversion of the
7493         symtable types to a C++ class hierarchy: it now *is* a
7494         symtab_node_base, rather than having one (named "symbol").
7496 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7498         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
7499         __cilkrts_pop_frame.  If matched, then return true for built-in
7500         function name.
7501         (expand_builtin): Added BUILT_IN_CILK_DETACH and
7502         BUILT_IN_CILK_POP_FRAME case.
7503         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
7504         (lhs_cilk_detect_spawn): Likewise.
7505         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
7506         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
7507         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
7508         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
7509         (LANG_HOOKS_CILKPLUS): Likewise.
7510         * tree.h (CILK_SPAWN_FN): Likewise.
7511         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
7512         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
7513         (OBJS): Added cilk-common.o.
7514         (BUILTINS_DEF): Added cilk-builtins.def.
7515         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
7516         (lhd_cilk_detect_spawn): Likewise.
7517         * langhooks.h (lang_hooks_for_cilkplus): New struct.
7518         (struct lang_hooks): Added new field called "cilkplus."
7519         * cilk-common.c: New file.
7520         * cilk.h: Likewise.
7521         * cilk-builtins.def: Likewise.
7522         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
7523         "__cilk" macro and set it to 200.
7524         * function.h (struct function::cilk_frame_decl): New field.
7525         (struct function::is_cilk_function): Likewise.
7526         (struct function::calls_cilk_spawn): Likewise.
7527         * gimplify.c (gimplify_call_expr): Added a check if the function call
7528         being gimplified is a spawn detach point.  If so, then add pop_frame
7529         and detach function calls.
7530         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
7531         for gimplifying _Cilk_spawn and _Cilk_sync statements.
7532         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
7533         function.  If so, added a _Cilk_sync and gimplified it.
7534         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
7535         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
7536         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
7537         spawner function.
7538         (can_inline_edge_p): Prevent inling of spawnee function.
7539         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
7540         for functions that use Cilk keywords.
7541         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
7542         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
7543         CILK_SYNC_STMT cases.
7544         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
7545         trees.
7546         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
7547         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
7548         * passes.texi (Cilk Keywords): New section that describes the compiler
7549         code changes for handling Cilk Keywords.
7551 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7553         Patch autogenerated by refactor_symtab.py from
7554         https://github.com/davidmalcolm/gcc-refactoring-scripts
7555         revision 58bb219cc090b2f4516a9297d868c245495ee622
7557         * asan.c (asan_finish_file): Update for conversion of symtab types to
7558         a true class hierarchy.
7559         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7560         * cgraph.c (cgraph_get_body): Likewise.
7561         (cgraph_get_create_real_symbol_node): Likewise.
7562         (verify_cgraph_node): Likewise.
7563         (verify_edge_corresponds_to_fndecl): Likewise.
7564         (verify_edge_count_and_frequency): Likewise.
7565         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
7566         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
7567         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
7568         (cgraph_node_cannot_return): Likewise.
7569         (cgraph_set_pure_flag_1): Likewise.
7570         (cgraph_set_const_flag_1): Likewise.
7571         (cgraph_set_nothrow_flag_1): Likewise.
7572         (cgraph_make_node_local_1): Likewise.
7573         (cgraph_for_node_and_aliases): Likewise.
7574         (cgraph_for_node_thunks_and_aliases): Likewise.
7575         (cgraph_node_can_be_local_p): Likewise.
7576         (cgraph_node_cannot_be_local_p_1): Likewise.
7577         (cgraph_function_body_availability): Likewise.
7578         (dump_cgraph_node): Likewise.
7579         (cgraph_rtl_info): Likewise.
7580         (cgraph_mark_address_taken_node): Likewise.
7581         (cgraph_remove_node): Likewise.
7582         (cgraph_release_function_body): Likewise.
7583         (cgraph_update_edges_for_call_stmt_node): Likewise.
7584         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
7585         (cgraph_make_edge_direct): Likewise.
7586         (cgraph_resolve_speculation): Likewise.
7587         (cgraph_speculative_call_info): Likewise.
7588         (cgraph_turn_edge_to_speculative): Likewise.
7589         (cgraph_create_edge_1): Likewise.
7590         (cgraph_set_call_stmt): Likewise.
7591         (cgraph_node_for_asm): Likewise.
7592         (cgraph_add_thunk): Likewise.
7593         (cgraph_same_body_alias): Likewise.
7594         (cgraph_create_function_alias): Likewise.
7595         (cgraph_create_node): Likewise.
7596         (cgraph_create_empty_node): Likewise.
7597         (record_function_versions): Likewise.
7598         (used_from_object_file_p): Likewise.
7599         * cgraph.h (symtab_can_be_discarded): Likewise.
7600         (symtab_real_symbol_p): Likewise.
7601         (cgraph_mark_force_output_node): Likewise.
7602         (cgraph_edge_recursive_p): Likewise.
7603         (symtab_alias_target): Likewise.
7604         (varpool_all_refs_explicit_p): Likewise.
7605         (varpool_can_remove_if_no_refs): Likewise.
7606         (cgraph_only_called_directly_or_aliased_p): Likewise.
7607         (cgraph_next_function_with_gimple_body): Likewise.
7608         (cgraph_first_function_with_gimple_body): Likewise.
7609         (cgraph_function_with_gimple_body_p): Likewise.
7610         (cgraph_next_function): Likewise.
7611         (cgraph_first_function): Likewise.
7612         (cgraph_next_defined_function): Likewise.
7613         (cgraph_first_defined_function): Likewise.
7614         (varpool_next_defined_variable): Likewise.
7615         (varpool_first_defined_variable): Likewise.
7616         (varpool_next_static_initializer): Likewise.
7617         (varpool_first_static_initializer): Likewise.
7618         (varpool_next_variable): Likewise.
7619         (varpool_first_variable): Likewise.
7620         (varpool_node_name): Likewise.
7621         (varpool): Likewise.
7622         (cgraph): Likewise.
7623         (is_a_helper <varpool_node>::test): Likewise.
7624         (is_a_helper <cgraph_node>::test): Likewise.
7625         (varpool_variable_node): Likewise.
7626         (cgraph_function_or_thunk_node): Likewise.
7627         (varpool_alias_target): Likewise.
7628         (cgraph_alias_target): Likewise.
7629         (cgraph_node_name): Likewise.
7630         (varpool_node_asm_name): Likewise.
7631         (cgraph_node_asm_name): Likewise.
7632         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
7633         (cgraph_rebuild_references): Likewise.
7634         (rebuild_cgraph_edges): Likewise.
7635         (record_eh_tables): Likewise.
7636         (build_cgraph_edges): Likewise.
7637         (mark_store): Likewise.
7638         (mark_load): Likewise.
7639         (mark_address): Likewise.
7640         (record_type_list): Likewise.
7641         (record_reference): Likewise.
7642         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
7643         (cgraph_materialize_clone): Likewise.
7644         (cgraph_function_versioning): Likewise.
7645         (cgraph_copy_node_for_versioning): Likewise.
7646         (update_call_expr): Likewise.
7647         (cgraph_find_replacement_node): Likewise.
7648         (cgraph_create_virtual_clone): Likewise.
7649         (cgraph_clone_node): Likewise.
7650         * cgraphunit.c (compile): Likewise.
7651         (output_weakrefs): Likewise.
7652         (output_in_order): Likewise.
7653         (expand_function): Likewise.
7654         (assemble_thunks_and_aliases): Likewise.
7655         (expand_thunk): Likewise.
7656         (mark_functions_to_output): Likewise.
7657         (handle_alias_pairs): Likewise.
7658         (analyze_functions): Likewise.
7659         (walk_polymorphic_call_targets): Likewise.
7660         (varpool_finalize_decl): Likewise.
7661         (process_function_and_variable_attributes): Likewise.
7662         (cgraph_process_same_body_aliases): Likewise.
7663         (analyze_function): Likewise.
7664         (cgraph_add_new_function): Likewise.
7665         (cgraph_finalize_function): Likewise.
7666         (referred_to_p): Likewise.
7667         (cgraph_reset_node): Likewise.
7668         (cgraph_process_new_functions): Likewise.
7669         (enqueue_node): Likewise.
7670         (decide_is_symbol_needed): Likewise.
7671         * coverage.c (coverage_compute_profile_id): Likewise.
7672         * dbxout.c (dbxout_expand_expr): Likewise.
7673         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
7674         (reference_to_unused): Likewise.
7675         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7676         * gimplify.c (unvisit_body): Likewise.
7677         (unshare_body): Likewise.
7678         * ipa-cp.c (ipcp_generate_summary): Likewise.
7679         (ipcp_decision_stage): Likewise.
7680         (identify_dead_nodes): Likewise.
7681         (decide_whether_version_node): Likewise.
7682         (decide_about_value): Likewise.
7683         (perhaps_add_new_callers): Likewise.
7684         (create_specialized_node): Likewise.
7685         (update_profiling_info): Likewise.
7686         (ipcp_propagate_stage): Likewise.
7687         (estimate_local_effects): Likewise.
7688         (good_cloning_opportunity_p): Likewise.
7689         (devirtualization_time_bonus): Likewise.
7690         (propagate_constants_accross_call): Likewise.
7691         (initialize_node_lattices): Likewise.
7692         (ipcp_cloning_candidate_p): Likewise.
7693         (determine_versionability): Likewise.
7694         (print_all_lattices): Likewise.
7695         (print_lattice): Likewise.
7696         (ipcp_discover_new_direct_edges): Likewise.
7697         * ipa-devirt.c (ipa_devirt): Likewise.
7698         (likely_target_p): Likewise.
7699         (update_type_inheritance_graph): Likewise.
7700         (possible_polymorphic_call_target_p): Likewise.
7701         (dump_possible_polymorphic_call_targets): Likewise.
7702         (devirt_variable_node_removal_hook): Likewise.
7703         (record_binfo): Likewise.
7704         (maybe_record_node): Likewise.
7705         (build_type_inheritance_graph): Likewise.
7706         * ipa-inline-analysis.c (inline_write_summary): Likewise.
7707         (inline_generate_summary): Likewise.
7708         (inline_analyze_function): Likewise.
7709         (do_estimate_growth): Likewise.
7710         (simple_edge_hints): Likewise.
7711         (estimate_node_size_and_time): Likewise.
7712         (estimate_edge_devirt_benefit): Likewise.
7713         (compute_inline_parameters): Likewise.
7714         (estimate_function_body_sizes): Likewise.
7715         (compute_bb_predicates): Likewise.
7716         (initialize_inline_failed): Likewise.
7717         (dump_inline_summary): Likewise.
7718         (dump_inline_edge_summary): Likewise.
7719         * ipa-inline-transform.c (inline_transform): Likewise.
7720         (preserve_function_body_p): Likewise.
7721         (save_inline_function_body): Likewise.
7722         (inline_call): Likewise.
7723         (clone_inlined_nodes): Likewise.
7724         (can_remove_node_now_p): Likewise.
7725         (can_remove_node_now_p_1): Likewise.
7726         * ipa-inline.c (early_inliner): Likewise.
7727         (early_inline_small_functions): Likewise.
7728         (inline_always_inline_functions): Likewise.
7729         (ipa_inline): Likewise.
7730         (flatten_function): Likewise.
7731         (inline_small_functions): Likewise.
7732         (speculation_useful_p): Likewise.
7733         (recursive_inlining): Likewise.
7734         (update_caller_keys): Likewise.
7735         (reset_edge_caches): Likewise.
7736         (update_edge_key): Likewise.
7737         (edge_badness): Likewise.
7738         (relative_time_benefit): Likewise.
7739         (want_inline_self_recursive_call_p): Likewise.
7740         (want_inline_small_function_p): Likewise.
7741         (want_early_inline_function_p): Likewise.
7742         (num_calls): Likewise.
7743         (can_early_inline_edge_p): Likewise.
7744         (can_inline_edge_p): Likewise.
7745         (report_inline_failed_reason): Likewise.
7746         * ipa-profile.c (ipa_profile): Likewise.
7747         (ipa_propagate_frequency): Likewise.
7748         (ipa_propagate_frequency_1): Likewise.
7749         (ipa_profile_generate_summary): Likewise.
7750         * ipa-prop.c (ipcp_transform_function): Likewise.
7751         (read_replacements_section): Likewise.
7752         (ipa_prop_read_section): Likewise.
7753         (ipa_modify_call_arguments): Likewise.
7754         (ipa_print_node_params): Likewise.
7755         (propagate_controlled_uses): Likewise.
7756         (update_indirect_edges_after_inlining): Likewise.
7757         (remove_described_reference): Likewise.
7758         (ipa_make_edge_direct_to_target): Likewise.
7759         (ipa_analyze_node): Likewise.
7760         (ipa_analyze_params_uses): Likewise.
7761         (ipa_compute_jump_functions): Likewise.
7762         (ipa_get_callee_param_type): Likewise.
7763         (ipa_print_node_jump_functions): Likewise.
7764         (ipa_initialize_node_params): Likewise.
7765         (ipa_populate_param_decls): Likewise.
7766         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
7767         (write_agg_replacement_chain): Likewise.
7768         (ipa_write_node_info): Likewise.
7769         (ipa_edge_duplication_hook): Likewise.
7770         (try_decrement_rdesc_refcount): Likewise.
7771         * ipa-pure-const.c (propagate_nothrow): Likewise.
7772         (propagate_pure_const): Likewise.
7773         (pure_const_read_summary): Likewise.
7774         (pure_const_write_summary): Likewise.
7775         (analyze_function): Likewise.
7776         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
7777         (ipa_ref_referring_ref_list): Likewise.
7778         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
7779         (ipa_remove_stmt_references): Likewise.
7780         (ipa_find_reference): Likewise.
7781         (ipa_dump_referring): Likewise.
7782         (ipa_dump_references): Likewise.
7783         (ipa_record_reference): Likewise.
7784         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
7785         (ipa_reference_write_optimization_summary): Likewise.
7786         (write_node_summary_p): Likewise.
7787         (propagate): Likewise.
7788         (read_write_all_from_decl): Likewise.
7789         (generate_summary): Likewise.
7790         (analyze_function): Likewise.
7791         (propagate_bits): Likewise.
7792         (ipa_reference_get_not_written_global): Likewise.
7793         (ipa_reference_get_not_read_global): Likewise.
7794         * ipa-split.c (execute_split_functions): Likewise.
7795         (split_function): Likewise.
7796         * ipa-utils.c (ipa_merge_profiles): Likewise.
7797         (dump_cgraph_node_set): Likewise.
7798         (ipa_reverse_postorder): Likewise.
7799         (ipa_edge_within_scc): Likewise.
7800         (ipa_get_nodes_in_cycle): Likewise.
7801         (ipa_free_postorder_info): Likewise.
7802         (ipa_reduced_postorder): Likewise.
7803         (searchc): Likewise.
7804         (recursive_call_p): Likewise.
7805         * ipa.c (ipa_cdtor_merge): Likewise.
7806         (record_cdtor_fn): Likewise.
7807         (function_and_variable_visibility): Likewise.
7808         (varpool_externally_visible_p): Likewise.
7809         (cgraph_externally_visible_p): Likewise.
7810         (comdat_can_be_unshared_p): Likewise.
7811         (comdat_can_be_unshared_p_1): Likewise.
7812         (address_taken_from_non_vtable_p): Likewise.
7813         (ipa_discover_readonly_nonaddressable_vars): Likewise.
7814         (symtab_remove_unreachable_nodes): Likewise.
7815         (walk_polymorphic_call_targets): Likewise.
7816         (process_references): Likewise.
7817         (enqueue_node): Likewise.
7818         (has_addr_references_p): Likewise.
7819         (cgraph_non_local_node_p_1): Likewise.
7820         * is-a.h (varpool_analyze_node): Likewise.
7821         * lto-cgraph.c (input_symtab): Likewise.
7822         (merge_profile_summaries): Likewise.
7823         (input_cgraph_1): Likewise.
7824         (input_edge): Likewise.
7825         (input_varpool_node): Likewise.
7826         (input_node): Likewise.
7827         (input_overwrite_node): Likewise.
7828         (compute_ltrans_boundary): Likewise.
7829         (output_refs): Likewise.
7830         (lto_output_varpool_node): Likewise.
7831         (lto_output_node): Likewise.
7832         (reachable_from_other_partition_p): Likewise.
7833         (referenced_from_other_partition_p): Likewise.
7834         (lto_output_edge): Likewise.
7835         (output_node_opt_summary): Likewise.
7836         (add_node_to): Likewise.
7837         (reachable_from_this_partition_p): Likewise.
7838         (lto_set_symtab_encoder_in_partition): Likewise.
7839         (lto_symtab_encoder_in_partition_p): Likewise.
7840         (lto_set_symtab_encoder_encode_initializer): Likewise.
7841         (lto_symtab_encoder_encode_initializer_p): Likewise.
7842         (lto_set_symtab_encoder_encode_body): Likewise.
7843         (lto_symtab_encoder_encode_body_p): Likewise.
7844         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7845         Likewise.
7846         * lto-streamer-in.c (lto_read_body): Likewise.
7847         (fixup_call_stmt_edges): Likewise.
7848         (fixup_call_stmt_edges_1): Likewise.
7849         * lto-streamer-out.c (produce_symtab): Likewise.
7850         (output_symbol_p): Likewise.
7851         (write_symbol): Likewise.
7852         (lto_output): Likewise.
7853         (copy_function): Likewise.
7854         (output_function): Likewise.
7855         * passes.c (function_called_by_processed_nodes_p): Likewise.
7856         (ipa_write_optimization_summaries): Likewise.
7857         (ipa_write_summaries): Likewise.
7858         (do_per_function_toporder): Likewise.
7859         (do_per_function): Likewise.
7860         (dump_passes): Likewise.
7861         * symtab.c (symtab_semantically_equivalent_p): Likewise.
7862         (symtab_nonoverwritable_alias): Likewise.
7863         (symtab_nonoverwritable_alias_1): Likewise.
7864         (symtab_for_node_and_aliases): Likewise.
7865         (symtab_resolve_alias): Likewise.
7866         (fixup_same_cpp_alias_visibility): Likewise.
7867         (symtab_alias_ultimate_target): Likewise.
7868         (symtab_used_from_object_file_p): Likewise.
7869         (verify_symtab_base): Likewise.
7870         (dump_symtab_base): Likewise.
7871         (symtab_node_name): Likewise.
7872         (symtab_node_asm_name): Likewise.
7873         (symtab_dissolve_same_comdat_group_list): Likewise.
7874         (symtab_add_to_same_comdat_group): Likewise.
7875         (symtab_unregister_node): Likewise.
7876         (symtab_insert_node_to_hashtable): Likewise.
7877         (symtab_register_node): Likewise.
7878         (unlink_from_assembler_name_hash): Likewise.
7879         (insert_to_assembler_name_hash): Likewise.
7880         (eq_assembler_name): Likewise.
7881         (hash_node_by_assembler_name): Likewise.
7882         (eq_node): Likewise.
7883         (hash_node): Likewise.
7884         * toplev.c (wrapup_global_declaration_2): Likewise.
7885         * trans-mem.c (ipa_tm_execute): Likewise.
7886         (ipa_tm_transform_clone): Likewise.
7887         (ipa_tm_transform_transaction): Likewise.
7888         (ipa_tm_transform_calls_redirect): Likewise.
7889         (ipa_tm_insert_gettmclone_call): Likewise.
7890         (ipa_tm_insert_irr_call): Likewise.
7891         (ipa_tm_create_version): Likewise.
7892         (ipa_tm_create_version_alias): Likewise.
7893         (ipa_tm_mark_forced_by_abi_node): Likewise.
7894         (ipa_tm_mark_force_output_node): Likewise.
7895         (ipa_tm_diagnose_tm_safe): Likewise.
7896         (ipa_tm_mayenterirr_function): Likewise.
7897         (ipa_tm_scan_irr_function): Likewise.
7898         (ipa_tm_note_irrevocable): Likewise.
7899         (ipa_tm_scan_calls_clone): Likewise.
7900         (get_cg_data): Likewise.
7901         * tree-eh.c (tree_could_trap_p): Likewise.
7902         * tree-emutls.c (ipa_lower_emutls): Likewise.
7903         (create_emultls_var): Likewise.
7904         (lower_emutls_function_body): Likewise.
7905         (gen_emutls_addr): Likewise.
7906         (emutls_decl): Likewise.
7907         (new_emutls_decl): Likewise.
7908         * tree-inline.c (tree_function_versioning): Likewise.
7909         (optimize_inline_calls): Likewise.
7910         (expand_call_inline): Likewise.
7911         (estimate_num_insns): Likewise.
7912         (copy_bb): Likewise.
7913         (delete_unreachable_blocks_update_callgraph): Likewise.
7914         * tree-nested.c (gimplify_all_functions): Likewise.
7915         (create_nesting_tree): Likewise.
7916         (check_for_nested_with_variably_modified): Likewise.
7917         * tree-pretty-print.c (dump_function_header): Likewise.
7918         * tree-profile.c (tree_profiling): Likewise.
7919         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
7920         (modify_function): Likewise.
7921         (convert_callers): Likewise.
7922         (convert_callers_for_node): Likewise.
7923         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7924         (associate_varinfo_to_alias): Likewise.
7925         (create_variable_info_for): Likewise.
7926         (get_constraint_for_ssa_var): Likewise.
7927         * tree-vectorizer.c (increase_alignment): Likewise.
7928         * tree.c (find_decls_types_in_var): Likewise.
7929         (find_decls_types_in_node): Likewise.
7930         (free_lang_data_in_decl): Likewise.
7931         * value-prof.c (gimple_ic_transform): Likewise.
7932         (gimple_ic): Likewise.
7933         (check_ic_target): Likewise.
7934         (init_node_map): Likewise.
7935         * varasm.c (decl_binds_to_current_def_p): Likewise.
7936         (default_binds_local_p_1): Likewise.
7937         (dump_tm_clone_pairs): Likewise.
7938         (assemble_alias): Likewise.
7939         (find_decl): Likewise.
7940         (mark_decl_referenced): Likewise.
7941         * varpool.c (varpool_for_node_and_aliases): Likewise.
7942         (varpool_extra_name_alias): Likewise.
7943         (varpool_create_variable_alias): Likewise.
7944         (add_new_static_var): Likewise.
7945         (varpool_finalize_named_section_flags): Likewise.
7946         (varpool_remove_unreferenced_decls): Likewise.
7947         (enqueue_node): Likewise.
7948         (varpool_assemble_decl): Likewise.
7949         (assemble_aliases): Likewise.
7950         (varpool_analyze_node): Likewise.
7951         (cgraph_variable_initializer_availability): Likewise.
7952         (varpool_add_new_variable): Likewise.
7953         (ctor_for_folding): Likewise.
7954         (dump_varpool_node): Likewise.
7955         (varpool_remove_initializer): Likewise.
7956         (varpool_remove_node): Likewise.
7957         (varpool_node_for_decl): Likewise.
7958         (varpool_create_empty_node): Likewise.
7959         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
7960         (ix86_get_function_versions_dispatcher): Likewise.
7962 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7964         * cgraph.h (symtab_node_base): Convert to a class;
7965         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
7966         chain_next/prev from symtab_node_def.
7967         (cgraph_node): Inherit from symtab_node; add GTY option
7968         tag ("SYMTAB_FUNCTION").
7969         (varpool_node): Inherit from symtab_node; add GTY option
7970         tag ("SYMTAB_VARIABLE").
7971         (symtab_node_def): Remove.
7972         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
7973         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
7974         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
7975         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
7977         * ipa-ref.h (symtab_node_def): Drop.
7978         (symtab_node): Change underlying type from symtab_node_def to
7979         symtab_node_base.
7980         (const_symtab_node): Likwise.
7982         * is-a.h: Update examples in comment.
7984         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
7985         (assembler_name_hash): Likewise.
7987 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
7989         * doc/tree-ssa.texi (gimple_phi_result): Document.
7990         (gimple_phi_num_args, gimple_phi_arg): Likewise.
7991         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
7992         (PHI_RESULT, PHI_NUM_ARGS): Remove.
7993         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
7995 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
7997         * expr.h: Revert change and include tree-core.h.
7998         * rtl.h: Revert change and don't include tree-core.h.
8000 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8002         * config/darwin.c: Include gimple.h.
8003         * config/i386/winnt.c: Likewise.
8005 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
8007         PR tree-optimization/19831
8008         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8010 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8012         * tree-outof-ssa.h: Remove include files.
8013         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8014         * expr.c: Likewise.
8015         * tree-ssa-coalesce.c: Likewise.
8016         * cfgexpand.c: Likewise.
8017         * tree-ssa-ter.c: Likewise.
8018         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8019         * lto-streamer.h: Likewise.
8020         * cgraphbuild.c: Add gimple.h to include list.
8021         * data-streamer-in.c: Likewise.
8022         * ipa-cp.c: Likewise.
8023         * tree-streamer.c: Likewise.
8024         * lto-compress.c: Likewise.
8025         * ipa-reference.c: Likewise.
8026         * data-streamer-out.c: Likewise.
8027         * lto-cgraph.c: Likewise.
8028         * cgraphclones.c: Likewise.
8029         * ipa-utils.c: Likewise.
8030         * data-streamer.c: Likewise.
8031         * ipa-split.c: Likewise.
8032         * lto-section-in.c: Likewise.
8033         * tree-streamer-out.c: Likewise.
8034         * ipa-prop.c: Likewise.
8035         * tree-streamer-in.c: Likewise.
8036         * symtab.c: Likewise.
8037         * opts-global.c: Likewise.
8038         * lto-opts.c: Likewise.
8039         * lto-section-out.c: Likewise.
8040         * lto-streamer.c: Likewise.
8041         * rtl.h: Add tree-core.h to include list.
8042         * expr.h: Remove tree-core.h from include list.
8043         * gimple.h: Likewise.
8044         * ipa-utils.h: Likewise.
8045         * streamer-hooks.h: Likewise.
8046         * streamer-hooks.c: Include input.h.
8048 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8050         * config/arm/arm.c (cortexa7_extra_costs): New table.
8051         (arm_cortex_a7_tune): New.
8052         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8054 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
8056         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8058 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8060         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8061         to use autogenerated markers for a class-hierarchy, every class
8062         must have a GTY marker.
8063         * gengtype.h (struct type): Add linked list of subclasses to
8064         the "s" member of the union.
8065         (add_subclass): New decl.
8066         * gengtype-state.c (read_state_struct_type): Set up subclass
8067         linked list.
8068         * gengtype.c (get_ultimate_base_class): New.
8069         (add_subclass): New.
8070         (new_structure): Set up subclass linked list.
8071         (set_gc_used_type): Propagate usage information to subclasses.
8072         (output_mangled_typename): Use get_ultimate_base_class.
8073         (walk_subclasses): Use the subclass linked list, avoiding an
8074         O(N^2) when writing out all types.
8075         (walk_type): Issue an error if the base class is missing a tag,
8076         rather than generating bogus C code.  Add a gcc_unreachable
8077         default case, in case people omit tags from concrete subclasses,
8078         or get the values wrong.
8079         (write_func_for_structure): Issue an error for subclasses for
8080         which the base doesn't have a "desc", since otherwise the
8081         autogenerated routines for the base would silently fail to visit
8082         any subclass fields.
8083         (write_root): Use get_ultimate_base_class, tweaking constness of
8084         tp to match that function's signature.
8086 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8088         * doc/gty.texi (GTY Options): Add note about inheritance to
8089         description of desc and tag.
8090         (Inheritance and GTY): New.
8092 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8094         * gengtype-parse.c (opts_have): Drop "static" so that
8095         we can use this from gengtype.c.
8096         * gengtype.c (set_gc_used_type): Mark any base class as used;
8097         update field traversal to visit inherited fields.
8098         (output_mangled_typename):  Convert references to classes within
8099         an inheritance hierarchy to reference the ultimate base class,
8100         since only it will have gt_ functions.
8101         (get_string_option): New.
8102         (walk_subclasses): New.
8103         (walk_type): Treat GTY structs that have a "desc" as being the
8104         root of an inheritance hierarchy.  Generate a switch on it
8105         within the marking function which walks all subclasses, adding
8106         cases for them via walk_subclasses.  For subclasses, visit all
8107         fields of the type (including inherited ones).
8108         (write_func_for_structure): Don't write fns for subclasses, only
8109         for the ultimate base class within an inheritance hierarchy.
8110         Subclasses-marking will be handled by the base class marking functions.
8111         (write_types): Likewise.
8112         (write_local_func_for_structure): Likewise.
8113         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8114         a "tag" option (and are thus concrete subclasses).
8115         (write_root): Use the marker function for the ultimate base class.
8116         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8117         (opts_have): Add declaration.
8119 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
8121         * lra-spills.c (lra_final_code_change): Remove useless move insns
8122         originated from moves of pseudos.
8124 2013-10-28  Jeff Law  <law@redhat.com>
8126         * lower-subreg.c (resolve_simple_move): Fix comment typo.
8128 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
8130         * df-scan.c (df_collection_rec): Adjust.
8131         (copy_defs): New constant.
8132         (copy_uses): Likewise.
8133         (copy_eq_uses): Likewise.
8134         (copy_mw): Likewise.
8135         (copy_all): Likewise.
8136         (df_insn_rescan): Adjust.
8137         (df_notes_rescan): Likewise.
8138         (df_swap_refs): Likewise.
8139         (df_sort_and_compress_refs): Likewise.
8140         (df_sort_and_compress_mws): Likewise.
8141         (df_install_refs): Likewise.
8142         (df_install_mws): Likewise.
8143         (df_refs_add_to_chains): Add flags parameter controlling which vectors
8144         are coppied.
8145         (df_bb_refs_record): Adjust.
8146         (df_record_entry_block_defs): Likewise.
8147         (df_record_exit_block_defs): Likewise.
8148         (df_refs_verify): Likewise.
8149         (df_mws_verify): Likewise.
8150         (df_insn_refs_verify): Likewise.
8151         (df_bb_verify): Likewise.
8152         * ipa-pure-const.c (finish_state): Remove.
8153         (propagate): Adjust.
8154         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8155         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8156         var-tracking.c: Adjust.
8157         * vec.c (stack_vecs): Remove.
8158         (register_stack_vec): Likewise.
8159         (stack_vec_register_index): Likewise.
8160         (unregister_stack_vec): Likewise.
8161         * vec.h (struct va_stack): Remove.
8162         (struct vec<T, A, vl_ptr>): Specialize as
8163         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8164         allocation strategy compatable with the vl_ptr layout.
8165         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8166         specialization anyway.
8167         (class stack_vec): New class.
8168         (vec_stack_alloc): Remove.
8169         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8171 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8172             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8173             Sergey Lega  <sergey.s.lega@intel.com>
8174             Anna Tikhonova  <anna.tikhonova@intel.com>
8175             Ilya Tocar  <ilya.tocar@intel.com>
8176             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8177             Ilya Verbin  <ilya.verbin@intel.com>
8178             Kirill Yukhin  <kirill.yukhin@intel.com>
8179             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8181         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8182         (*prefetch_avx512pf_<mode>): New.
8183         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8184         (avx512f_maskcmp<mode>3): Ditto.
8185         (vashrv16si3): Ditto.
8187 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8188             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8189             Sergey Lega  <sergey.s.lega@intel.com>
8190             Anna Tikhonova  <anna.tikhonova@intel.com>
8191             Ilya Tocar  <ilya.tocar@intel.com>
8192             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8193             Ilya Verbin  <ilya.verbin@intel.com>
8194             Kirill Yukhin  <kirill.yukhin@intel.com>
8195             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8197         * config/i386/i386.md (any_truncate): New.
8198         (trunsuffix): Ditto.
8199         * config/i386/predicates.md (const_8_to_9_operand): New.
8200         (const_10_to_11_operand): Ditto.
8201         (const_12_to_13_operand): Ditto.
8202         (const_14_to_15_operand): Ditto.
8203         (const_16_to_19_operand): Ditto.
8204         (const_20_to_23_operand): Ditto.
8205         (const_24_to_27_operand): Ditto.
8206         (const_28_to_31_operand): Ditto.
8207         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8208         (cvtusi2<ssescalarmodesuffix>32): New.
8209         (cvtusi2<ssescalarmodesuffix>64): Ditto.
8210         (ufloatv16siv16sf2): Ditto.
8211         (avx512f_fix_notruncv16sfv16si): Ditto.
8212         (avx512f_ufix_notruncv16sfv16si): Ditto.
8213         (avx512f_vcvtss2usi): Ditto.
8214         (avx512f_vcvtss2usiq): Ditto.
8215         (avx512f_vcvttss2usi): Ditto.
8216         (avx512f_vcvttss2usiq): Ditto.
8217         (avx512f_vcvtsd2usi): Ditto.
8218         (avx512f_vcvtsd2usiq): Ditto.
8219         (avx512f_vcvttsd2usi): Ditto.
8220         (avx512f_vcvttsd2usiq): Ditto.
8221         (ufloatv8siv8df): Ditto.
8222         (avx512f_cvtdq2pd512_2): Ditto.
8223         (avx512f_cvtpd2dq512): Ditto.
8224         (avx512f_ufix_notruncv8dfv8si): Ditto.
8225         (avx512f_cvtpd2ps512): Ditto.
8226         (vec_unpacks_lo_v16sf): Ditto.
8227         (vec_unpacks_hi_v16sf): Ditto.
8228         (vec_unpacks_float_hi_v16si): Ditto.
8229         (vec_unpacks_float_lo_v16si): Ditto.
8230         (avx512f_unpckhps512): Ditto.
8231         (avx512f_unpcklps512): Ditto.
8232         (avx512f_movshdup512): Ditto.
8233         (avx512f_movsldup512): Ditto.
8234         (vec_extract_lo_v32hi): Ditto.
8235         (vec_extract_hi_v32hi): Ditto.
8236         (vec_extract_lo_v64qi): Ditto.
8237         (vec_extract_hi_v64qi): Ditto.
8238         (avx512f_unpckhpd512): Ditto.
8239         (avx512f_movddup512): Ditto.
8240         (avx512f_unpcklpd512): Ditto.
8241         (*avx512f_unpcklpd512): Ditto.
8242         (avx512f_shufps512_1): Ditto.
8243         (avx512f_shufpd512_1): Ditto.
8244         (avx512f_interleave_highv8di): Ditto.
8245         (avx512f_interleave_lowv8di): Ditto.
8246         (PMOV_DST_MODE): Ditto.
8247         (pmov_src_mode): Ditto.
8248         (pmov_src_lower): Ditto.
8249         (pmov_suff): Ditto.
8250         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8251         (*avx512f_<code>v8div16qi2): Ditto.
8252         (*avx512f_<code>v8div16qi2_store): Ditto.
8253         (vec_widen_umult_even_v16si): Ditto.
8254         (*vec_widen_umult_even_v16si): Ditto.
8255         (vec_widen_smult_even_v16si): Ditto.
8256         (*vec_widen_smult_even_v16si): Ditto.
8257         (avx512f_interleave_highv16si): Ditto.
8258         (avx512f_interleave_lowv16si): Ditto.
8259         (avx512f_<code>v16qiv16si2): Ditto.
8260         (avx512f_<code>v16hiv16si2): Ditto.
8261         (avx512f_<code>v8qiv8di2): Ditto.
8262         (avx512f_<code>v8hiv8di2): Ditto.
8263         (avx512f_<code>v8siv8di2): Ditto.
8264         (avx512cd_maskb_vec_dupv8di): Ditto.
8265         (avx512cd_maskw_vec_dupv16si): Ditto.
8266         (avx512f_vcvtph2ps512): Ditto.
8267         (avx512f_vcvtps2ph512): Ditto.
8268         (VEC_EXTRACT_MODE): Extened with wider modes.
8269         (VEC_PERM_AVX2): Ditto.
8270         (VEC_PERM_CONST): Ditto.
8272 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8274         * config/arc/arc.c (arc_ccfsm_post_advance):
8275         Add comment about TYPE_RETURN.
8277 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
8279         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
8280         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
8281         (strip_offset): Convert offset to unsigned number.
8283 2013-10-27  Tom de Vries  <tom@codesourcery.com>
8285         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
8286         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
8288 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
8290         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
8291         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
8292         (TARGET_BIG_ENDIAN): New macro.
8293         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
8294         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
8295         * config/sh/sh.c: Likewise.
8296         * config/sh/sh.h: Likewise.
8298 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
8300         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
8301         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
8303 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8305         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
8306         Fix formatting.
8307         (cmpstr_t, cmpstrsi): Fix formatting.
8309 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8311         PR target/52483
8312         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
8313         addressing, do not use general_operand for memory operands.
8315 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
8317         Revert:
8318         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8319         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8321 2013-10-26  Jeff Law  <law@redhat.com>
8323         * predict.c (PRED_MUDFLAP): Remove.
8324         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
8326         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
8327         (OBJS): Remove tree-nomudflap.o
8328         (GTFILES): Remove tree-mudflap.c
8329         * builtins.c (expand_builtin_alloc): Remove mudflap support.
8330         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8331         (mfwrap_spec, mflib_spec): Likewise.
8332         (cpp_unique_options, cc1_options, static_specs): Likewise.
8333         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
8334         * passes.def: Likewise.
8335         * toplev.c (compile_file, process_options): Likewise.
8336         * tree-inline.c (copy_tree_r): Likewise.
8337         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
8338         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
8339         (build_constant_desc, output_constant_def_contents): Likewise.
8340         (categorize_decl_for_section): Likewise.
8341         * tree-mudflap.c: Removed.
8342         * tree-mudflap.h: Removed.
8343         * tree-nomudflap.c: Removed.
8344         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
8345         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
8346         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8347         * config/sol2.h (MFLIB_SPEC): Likewise.
8348         * doc/install.texi: Remove mudflap references.
8349         * doc/passes.texi: Similarly.
8350         * doc/sourcebuild.texi: Similarly.
8351         * doc/invoke.texi: Remove mudlfap related options.
8353 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8355         PR rtl-optimization/58759
8356         * lra-constraints.c (lra_constraints): Remove wrong condition to
8357         remove insn setting up an equivalent pseudo.
8359 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8361         * config/rs6000/rs6000-protos.h
8362         (rs6000_secondary_memory_needed_mode): New prototype.
8363         * config/rs6000/rs6000.c: Include ira.h.
8364         (TARGET_LRA_P): Redefine.
8365         (rs6000_legitimate_offset_address_p): Call
8366         legitimate_constant_pool_address_p in strict mode for LRA.
8367         (rs6000_legitimate_address_p): Ditto.
8368         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
8369         (rs6000_emit_move): Add LRA version of code to generate load/store
8370         of SDmode values.
8371         (rs6000_secondary_memory_needed_mode): New.
8372         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
8373         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
8374         constants, memory, and FP registers.
8375         (rs6000_lra_p): New.
8376         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
8377         * config/rs6000/rs6000.opt (mlra): New option.
8378         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8380 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
8382         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
8383         has_single_use () and not do the conversion if has_single_use ()
8384         returns false for the multiplication result.
8386 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
8388         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
8389         to "NODE", since this works on a "tree", not an
8390         "enum tree_code".
8391         (CONSTANT_CLASS_P): Likewise.
8392         (TYPE_P): Likewise.
8393         (DECL_P): Likewise.
8394         (INDIRECT_REF_P): Likewise.
8395         (REFERENCE_CLASS_P): Likewise.
8396         (COMPARISON_CLASS_P): Likewise.
8397         (UNARY_CLASS_P): Likewise.
8398         (BINARY_CLASS_P): Likewise.
8399         (STATEMENT_CLASS_P): Likewise.
8400         (VL_EXP_CLASS_P): Likewise.
8401         (EXPRESSION_CLASS_P): Likewise.
8402         (IS_TYPE_OR_DECL_P): Likewise.
8404 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
8406         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
8407         ADDR_EXPR in the defining statement.
8409 2013-10-25  Richard Biener  <rguenther@suse.de>
8411         PR tree-optimization/58626
8412         * tree-loop-distribution.c (enum rdg_dep_type): Remove
8413         anti_dd, output_dd and input_dd.
8414         (struct rdg_edge): Remove level and relation members.
8415         (RDGE_LEVEL, RDGE_RELATION): Remove.
8416         (dot_rdg_1): Adjust.
8417         (create_rdg_edge_for_ddr): Remove.
8418         (create_rdg_edges_for_scalar): Adjust.
8419         (create_edge_for_control_dependence): Likewise.
8420         (create_rdg_edges): Split into ...
8421         (create_rdg_flow_edges): ... this
8422         (create_rdg_cd_edges): ... and this.
8423         (free_rdg): Adjust.
8424         (build_rdg): Likewise, do not compute data dependences or
8425         add edges for them.
8426         (pg_add_dependence_edges): New function.
8427         (pgcmp): Likewise.
8428         (distribute_loop): First apply all non-dependence based
8429         partition mergings.  Then compute dependences between partitions
8430         and merge and order partitions according to them.
8432 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8434         PR rtl-optimization/58831
8435         * alias.c (init_alias_analysis): At the beginning of each iteration,
8436         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
8438 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8440         * recog.c (search_ofs): New static variable moved from...
8441         (peep2_find_free_register): ...here.
8442         (peephole2_optimize): Initialize it.
8444 2013-10-25  Tobias Burnus  <burnus@net-b.de>
8446         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
8448 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
8450         * config/i386/i386.h (TARGET_MPX): New define.
8451         (TARGET_MPX_P): Ditto.
8453 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
8455         * config/i386/constraints.md (B): New.
8456         (Ti): New.
8457         (Tb): New.
8458         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
8459         * config/i386/i386-modes.def (BND32): New.
8460         (BND64): New.
8461         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
8462         * config/i386/i386.c (isa_opts): Add mmpx.
8463         (regclass_map): Add bound registers.
8464         (dbx_register_map): Likewise.
8465         (dbx64_register_map): Likewise.
8466         (svr4_dbx_register_map): Likewise.
8467         (PTA_MPX): New.
8468         (ix86_option_override_internal): Support MPX ISA.
8469         (ix86_conditional_register_usage): Support bound registers.
8470         (print_reg): Likewise.
8471         (ix86_code_end): Add MPX bnd prefix.
8472         (output_set_got): Likewise.
8473         (ix86_output_call_insn): Likewise.
8474         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
8475         (ix86_print_operand_punct_valid_p): Likewise.
8476         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
8477         UNSPEC_BNDMK_ADDR.
8478         (ix86_class_likely_spilled_p): Add bound regs support.
8479         (ix86_hard_regno_mode_ok): Likewise.
8480         (x86_order_regs_for_local_alloc): Likewise.
8481         (ix86_bnd_prefixed_insn_p): New.
8482         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
8483         (FIXED_REGISTERS): Add bound registers.
8484         (CALL_USED_REGISTERS): Likewise.
8485         (REG_ALLOC_ORDER): Likewise.
8486         (HARD_REGNO_NREGS): Likewise.
8487         (TARGET_MPX): New.
8488         (VALID_BND_REG_MODE): New.
8489         (FIRST_BND_REG): New.
8490         (LAST_BND_REG): New.
8491         (reg_class): Add BND_REGS.
8492         (REG_CLASS_NAMES): Likewise.
8493         (REG_CLASS_CONTENTS): Likewise.
8494         (BND_REGNO_P): New.
8495         (ANY_BND_REG_P): New.
8496         (BNDmode): New.
8497         (HI_REGISTER_NAMES): Add bound registers.
8498         * config/i386/i386.md (UNSPEC_BNDMK): New.
8499         (UNSPEC_BNDMK_ADDR): New.
8500         (UNSPEC_BNDSTX): New.
8501         (UNSPEC_BNDLDX): New.
8502         (UNSPEC_BNDLDX_ADDR): New.
8503         (UNSPEC_BNDCL): New.
8504         (UNSPEC_BNDCU): New.
8505         (UNSPEC_BNDCN): New.
8506         (UNSPEC_MPX_FENCE): New.
8507         (BND0_REG): New.
8508         (BND1_REG): New.
8509         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8510         (length_immediate): Likewise.
8511         (prefix_0f): Likewise.
8512         (memory): Likewise.
8513         (prefix_rep): Check for bnd prefix.
8514         (length_nobnd): New.
8515         (length): Use length_nobnd if specified.
8516         (BND): New.
8517         (bnd_ptr): New.
8518         (BNDCHECK): New.
8519         (bndcheck): New.
8520         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
8521         (*jcc_2): Likewise.
8522         (jump): Likewise.
8523         (simple_return_internal): Likewise.
8524         (simple_return_pop_internal): Likewise.
8525         (*indirect_jump): Add MPX bnd prefix.
8526         (*tablejump_1): Likewise.
8527         (simple_return_internal_long): Likewise.
8528         (simple_return_indirect_internal): Likewise.
8529         (<mode>_mk): New.
8530         (*<mode>_mk): New.
8531         (mov<mode>): New.
8532         (*mov<mode>_internal_mpx): New.
8533         (<mode>_<bndcheck>): New.
8534         (*<mode>_<bndcheck>): New.
8535         (<mode>_ldx): New.
8536         (*<mode>_ldx): New.
8537         (<mode>_stx): New.
8538         (*<mode>_stx): New.
8539         * config/i386/predicates.md (lea_address_operand): Rename to...
8540         (address_no_seg_operand): ... this.
8541         (address_mpx_no_base_operand): New.
8542         (address_mpx_no_index_operand): New.
8543         (bnd_mem_operator): New.
8544         * config/i386/i386.opt (mmpx): New.
8545         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
8546         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
8548 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
8550         * mode-classes.def (MODE_POINTER_BOUNDS): New.
8551         * tree.def (POINTER_BOUNDS_TYPE): New.
8552         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
8553         (POINTER_BOUNDS_MODE): New.
8554         (make_pointer_bounds_mode): New.
8555         * machmode.h (POINTER_BOUNDS_MODE_P): New.
8556         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
8557         (layout_type): Support POINTER_BOUNDS_TYPE.
8558         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
8559         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
8560         (type_contains_placeholder_1): Likewise.
8561         * tree.h (POINTER_BOUNDS_TYPE_P): New.
8562         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
8563         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
8565 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
8567         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
8568         mode of address computation when calling memory_address_addr_space.
8570 2013-08-24  Richard Henderson  <rth@twiddle.net>
8572         PR rtl/58542
8573         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
8574         instead of create_convert_operand_to.
8575         (maybe_emit_sync_lock_test_and_set): Likewise.
8576         (expand_atomic_compare_and_swap): Likewise.
8577         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
8579 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
8581         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
8582         Change param_is to use the struct and not the pointer to the struct.
8584 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
8586         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
8587         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8588         Move to targhooks.c.
8589         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
8590         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8591         Relocate from gimplify.c.
8592         * targhooks.h: Add 2 prototypes.
8593         * tree.h: Delete 2 prototypes.
8595 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
8597         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
8598         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
8600 2013-10-24  Cong Hou  <congh@google.com>
8602         * convert.c (convert_to_real): Guard those unsafe math function
8603         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
8604         specially.
8606 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
8608         PR ipa/58712
8609         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
8610         as argument.
8611         (cgraph_create_edge): Use the new argument.
8612         (cgraph_create_indirect_edge): Likewise.
8614 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
8616         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
8617         TYPE_UNCOND_BRANCH.
8618         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
8619         changes statep->state.
8621 2013-10-24  Tobias Burnus  <burnus@net-b.de>
8623         PR other/33426
8624         * tree-cfg.c (replace_loop_annotate): New function.
8625         (execute_build_cfg): Call it.
8626         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
8627         * internal-fn.c (expand_ANNOTATE): New function.
8628         * internal-fn.def (ANNOTATE): Define as new internal function.
8629         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
8630         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
8631         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
8632         * doc/extend.texi (Pragmas): Document #pragma ivdep.
8633         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
8635 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
8636             Marcus Shawcroft  <marcus.shawcroft@arm.com>
8638         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
8639         Special case reload SP+C into none GENERAL_REGS.
8641 2013-10-24  Michael Matz  <matz@suse.de>
8643         * gengtype.c (is_file_equal): Check that files will be same length.
8645 2013-10-25  Christian Bruel  <christian.bruel@st.com>
8647         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
8648         * config/sh/t-sh (sh-mem.o): New rule.
8649         * config/sh/sh-mem.cc (expand_block_move): Moved here.
8650         (sh_expand_cmpstr): New function.
8651         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
8652         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
8653         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
8654         (rotlhi3_8): Rename.
8656 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8658         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
8659         * Makefile.in (CXXDEPMODE): Assign and change users.
8660         (CCDEPMODE): Delete.
8661         * configure: Regenerate.
8663 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
8665         * gengtype-parse.c (require_without_advance): New.
8666         (type): For GTY-marked types that are not GTY((user)), parse any
8667         base classes, requiring them to be single-inheritance, and not
8668         be templates.  For non-GTY-marked types and GTY((user)),
8669         continue to skip over any C++ inheritance specification.
8670         * gengtype-state.c (state_writer::write_state_struct_type):
8671         Write base class of type (if any).
8672         (read_state_struct_type): Read base class of type (if any).
8673         * gengtype.c (new_structure): Add a "base_class" parameter.
8674         (create_optional_field_): Update for new parameter to new_structure.
8675         (adjust_field_rtx_def): Likewise.
8676         (adjust_field_tree_exp): Likewise.
8677         * gengtype.h (struct type): Add "base_class" field to the s
8678         union field.
8679         (new_structure): Add "base" parameter.
8681 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
8683         PR target/57756
8684         * config/i386/i386.c (ix86_option_override_internal):
8685         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
8686         (ix86_valid_target_attribute_tree):
8687         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
8688         Change TARGET_SSE to TARGET_SSE_P (opts->...)
8690 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
8692         * tree-ssa-loop.h: Remove include files.
8693         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
8694         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
8695         * graphite-clast-to-gimple.c: Likewise.
8696         * graphite-scop-detection.c: Likewise.
8697         * graphite-sese-to-poly.c: Likewise.
8698         * ipa-inline-analysis.c: Likewise.
8699         * ipa-pure-const.c: Likewise.
8700         * loop-init.c: Likewise.
8701         * passes.c: Likewise.
8702         * predict.c: Likewise.
8703         * tree-cfg.c: Likewise.
8704         * tree-cfgcleanup.c: Likewise.
8705         * tree-chrec.c: Likewise.
8706         * tree-data-ref.c: Likewise.
8707         * tree-loop-distribution.c: Likewise.
8708         * tree-parloops.c: Likewise.
8709         * tree-predcom.c: Likewise.
8710         * tree-scalar-evolution.c: Likewise.
8711         * tree-ssa-address.c: Likewise.
8712         * tree-ssa.c: Likewise.
8713         * tree-ssa-dce.c: Likewise.
8714         * tree-ssa-loop.c: Likewise.
8715         * tree-ssa-loop-im.c: Likewise.
8716         * tree-ssa-loop-ivcanon.c: Likewise.
8717         * tree-ssa-loop-ivopts.c: Likewise.
8718         * tree-ssa-loop-manip.c: Likewise.
8719         * tree-ssa-loop-niter.c: Likewise.
8720         * tree-ssa-loop-prefetch.c: Likewise.
8721         * tree-ssa-loop-unswitch.c: Likewise.
8722         * tree-ssa-reassoc.c: Likewise.
8723         * tree-vect-data-refs.c: Likewise.
8724         * tree-vect-loop.c: Likewise.
8725         * tree-vect-loop-manip.c: Likewise.
8726         * tree-vectorizer.c: Likewise.
8727         * tree-vect-stmts.c: Likewise.
8728         * tree-vrp.c: Likewise.
8730 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8732         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
8734 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
8736         PR tree-optimization/58775
8737         PR tree-optimization/58791
8738         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
8739         (insert_stmt_after): Rewritten, don't move the stmt, but really
8740         insert it.
8741         (get_stmt_uid_with_default): Remove.
8742         (build_and_add_sum): Use insert_stmt_after and
8743         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
8744         (update_range_test): Set uid on stmts added by
8745         force_gimple_operand_gsi.  Don't immediately modify statements
8746         in inter-bb optimization, just update oe->op values.
8747         (optimize_range_tests): Return bool whether any changed have been made.
8748         (update_ops): New function.
8749         (struct inter_bb_range_test_entry): New type.
8750         (maybe_optimize_range_tests): Perform statement changes here.
8751         (not_dominated_by, appears_later_in_bb, get_def_stmt,
8752         ensure_ops_are_available): Remove.
8753         (find_insert_point): Rewritten.
8754         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
8755         return LHS of the (new resp. old) stmt.  Don't call
8756         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
8757         instead of last, move new stmt at the right place.
8758         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
8759         (negate_value): Likewise.  Set uids.
8760         (break_up_subtract_bb): Initialize uids.
8761         (reassociate_bb): Adjust rewrite_expr_tree caller.
8762         (do_reassoc): Don't call renumber_gimple_stmt_uids.
8764 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
8766         PR target/58838
8767         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
8768         TARGET_32BIT final condition.
8769         (mulsi3_internal2 and splitter): Same.
8771 2013-10-23  Jeff Law  <law@redhat.com>
8773         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
8774         through joiner blocks with abnormal outgoing edges.
8776         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
8777         Add parameter JOINERS, to allow/disallow threading through joiner
8778         blocks.
8779         (thread_block): New.  Call thread_block_1.
8780         (mark_threaded_blocks): Remove code to filter out certain cases
8781         of threading through joiner blocks.
8782         (thread_through_all_blocks): Document how we can have a dangling
8783         edge AUX field and clear it.
8785 2013-10-23  Ian Lance Taylor  <iant@google.com>
8787         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
8788         (C++ Dialect Options): Likewise.
8789         (Optimize Options): Likewise.
8791 2013-10-23  Tom de Vries  <tom@codesourcery.com>
8793         PR tree-optimization/58805
8794         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
8796 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
8798         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
8799         sequence based on get_range_info returned range.
8801 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
8803         * tree-ssa.h: Remove all #include's
8804         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
8805         * alias.c: Move required includes from tree-ssa.h.
8806         * asan.c: Likewise.
8807         * builtins.c: Likewise.
8808         * calls.c: Likewise.
8809         * cfgexpand.c: Likewise.
8810         * cfghooks.c: Likewise.
8811         * cfgloop.c: Likewise.
8812         * cfgloopmanip.c: Likewise.
8813         * cgraph.c: Likewise.
8814         * cgraphbuild.c: Likewise.
8815         * cgraphclones.c: Likewise.
8816         * cgraphunit.c: Likewise.
8817         * dse.c: Likewise.
8818         * except.c: Likewise.
8819         * expr.c: Likewise.
8820         * final.c: Likewise.
8821         * fold-const.c: Likewise.
8822         * ggc-page.c: Likewise.
8823         * gimple-builder.c: Likewise.
8824         * gimple-fold.c: Likewise.
8825         * gimple-iterator.c: Likewise.
8826         * gimple-low.c: Likewise.
8827         * gimple-pretty-print.c: Likewise.
8828         * gimple-ssa-strength-reduction.c: Likewise.
8829         * gimple-streamer-in.c: Likewise.
8830         * gimple-streamer-out.c: Likewise.
8831         * gimplify.c: Likewise.
8832         * graphite-blocking.c: Likewise.
8833         * graphite-clast-to-gimple.c: Likewise.
8834         * graphite-dependences.c: Likewise.
8835         * graphite-interchange.c: Likewise.
8836         * graphite-optimize-isl.c: Likewise.
8837         * graphite-poly.c: Likewise.
8838         * graphite-scop-detection.c: Likewise.
8839         * graphite-sese-to-poly.c: Likewise.
8840         * graphite.c: Likewise.
8841         * ipa-cp.c: Likewise.
8842         * ipa-inline-analysis.c: Likewise.
8843         * ipa-inline-transform.c: Likewise.
8844         * ipa-inline.c: Likewise.
8845         * ipa-prop.c: Likewise.
8846         * ipa-pure-const.c: Likewise.
8847         * ipa-reference.c: Likewise.
8848         * ipa-split.c: Likewise.
8849         * ipa-utils.c: Likewise.
8850         * loop-init.c: Likewise.
8851         * lto-cgraph.c: Likewise.
8852         * lto-section-in.c: Likewise.
8853         * lto-section-out.c: Likewise.
8854         * lto-streamer-in.c: Likewise.
8855         * lto-streamer-out.c: Likewise.
8856         * lto-streamer.c: Likewise.
8857         * omp-low.c: Likewise.
8858         * passes.c: Likewise.
8859         * predict.c: Likewise.
8860         * print-tree.c: Likewise.
8861         * profile.c: Likewise.
8862         * sese.c: Likewise.
8863         * targhooks.c: Likewise.
8864         * tracer.c: Likewise.
8865         * trans-mem.c: Likewise.
8866         * tree-call-cdce.c: Likewise.
8867         * tree-cfg.c: Likewise.
8868         * tree-cfgcleanup.c: Likewise.
8869         * tree-chrec.c: Likewise.
8870         * tree-complex.c: Likewise.
8871         * tree-data-ref.c: Likewise.
8872         * tree-dfa.c: Likewise.
8873         * tree-eh.c: Likewise.
8874         * tree-emutls.c: Likewise.
8875         * tree-if-conv.c: Likewise.
8876         * tree-inline.c: Likewise.
8877         * tree-into-ssa.c: Likewise.
8878         * tree-loop-distribution.c: Likewise.
8879         * tree-mudflap.c: Likewise.
8880         * tree-nested.c: Likewise.
8881         * tree-nrv.c: Likewise.
8882         * tree-object-size.c: Likewise.
8883         * tree-outof-ssa.c: Likewise.
8884         * tree-parloops.c: Likewise.
8885         * tree-phinodes.c: Likewise.
8886         * tree-predcom.c: Likewise.
8887         * tree-pretty-print.c: Likewise.
8888         * tree-profile.c: Likewise.
8889         * tree-scalar-evolution.c: Likewise.
8890         * tree-sra.c: Likewise.
8891         * tree-ssa-address.c: Likewise.
8892         * tree-ssa-alias.c: Likewise.
8893         * tree-ssa-ccp.c: Likewise.
8894         * tree-ssa-coalesce.c: Likewise.
8895         * tree-ssa-copy.c: Likewise.
8896         * tree-ssa-copyrename.c: Likewise.
8897         * tree-ssa-dce.c: Likewise.
8898         * tree-ssa-dom.c: Likewise.
8899         * tree-ssa-dse.c: Likewise.
8900         * tree-ssa-forwprop.c: Likewise.
8901         * tree-ssa-ifcombine.c: Likewise.
8902         * tree-ssa-live.c: Likewise.
8903         * tree-ssa-loop-ch.c: Likewise.
8904         * tree-ssa-loop-im.c: Likewise.
8905         * tree-ssa-loop-ivcanon.c: Likewise.
8906         * tree-ssa-loop-ivopts.c: Likewise.
8907         * tree-ssa-loop-manip.c: Likewise.
8908         * tree-ssa-loop-niter.c: Likewise.
8909         * tree-ssa-loop-prefetch.c: Likewise.
8910         * tree-ssa-loop-unswitch.c: Likewise.
8911         * tree-ssa-loop.c: Likewise.
8912         * tree-ssa-math-opts.c: Likewise.
8913         * tree-ssa-operands.c: Likewise.
8914         * tree-ssa-phiopt.c: Likewise.
8915         * tree-ssa-phiprop.c: Likewise.
8916         * tree-ssa-pre.c: Likewise.
8917         * tree-ssa-propagate.c: Likewise.
8918         * tree-ssa-reassoc.c: Likewise.
8919         * tree-ssa-sccvn.c: Likewise.
8920         * tree-ssa-sink.c: Likewise.
8921         * tree-ssa-strlen.c: Likewise.
8922         * tree-ssa-structalias.c: Likewise.
8923         * tree-ssa-tail-merge.c: Likewise.
8924         * tree-ssa-ter.c: Likewise.
8925         * tree-ssa-threadedge.c: Likewise.
8926         * tree-ssa-threadupdate.c: Likewise.
8927         * tree-ssa-uncprop.c: Likewise.
8928         * tree-ssa-uninit.c: Likewise.
8929         * tree-ssa.c: Likewise.
8930         * tree-ssanames.c: Likewise.
8931         * tree-stdarg.c: Likewise.
8932         * tree-streamer-in.c: Likewise.
8933         * tree-switch-conversion.c: Likewise.
8934         * tree-tailcall.c: Likewise.
8935         * tree-vect-data-refs.c: Likewise.
8936         * tree-vect-generic.c: Likewise.
8937         * tree-vect-loop-manip.c: Likewise.
8938         * tree-vect-loop.c: Likewise.
8939         * tree-vect-patterns.c: Likewise.
8940         * tree-vect-slp.c: Likewise.
8941         * tree-vect-stmts.c: Likewise.
8942         * tree-vectorizer.c: Likewise.
8943         * tree-vrp.c: Likewise.
8944         * tree.c: Likewise.
8945         * tsan.c: Likewise.
8946         * value-prof.c: Likewise.
8947         * var-tracking.c: Likewise.
8948         * varpool.c: Likewise.
8949         * vtable-verify.c: Likewise.
8951 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8953         * config/tilegx/tilegx.c: Include "tree.h".
8955 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
8957         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
8958         the info, not after it.
8959         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
8960         dump_ssaname_info call.
8961         (pp_gimple_stmt_1): Adjust caller.
8962         (dump_phi_nodes): Likewise.  Don't print "# " here.
8964 2013-10-22  Jan Hubicka  <jh@suse.cz>
8966         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
8967         tuning flag.
8968         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
8969         * i386.c (expand_small_movmem_or_setmem): New function.
8970         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
8971         function.
8972         (alg_usable_p): Add support for value ranges; cleanup.
8973         (ix86_expand_set_or_movmem): Add support for misaligned moves.
8975 2013-10-22  Sterling Augustine  <saugustine@google.com>
8977         * doc/invoke.texi: Document -ggnu-pubnames.
8978         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
8979         logic.
8980         * dwarf2out.c: Include gdb/gdb-index.h.
8981         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
8982         debug_generate_pub_sections.
8983         (is_java, output_pubtables, output_pubname): New functions.
8984         (include_pubname_in_output): Handle debug_generate_pub_sections at
8985         level 2.
8986         (size_of_pubnames): Use new local space_for_flags based on
8987         debug_generate_pub_sections.
8988         (output_pubnames): Unify pubnames and pubtypes output logic.
8989         Genericize comments.  Call output_pubname.
8990         (dwarf2out_finish): Move logic to output_pubnames and call it.
8992 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
8994         PR target/58779
8995         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
8996         Remove CCCmode handling.
8997         <case LTU>: Return 'c' suffix for CCCmode.
8998         <case GEU>: Return 'nc' suffix for CCCmode.
8999         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9000         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9001         (*sub<mode>3_cc_overflow): Ditto.
9002         (*subsi3_zext_cc_overflow): Ditto.
9004 2013-10-22  Steve Ellcey  <sellcey@mips.com>
9006         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
9007         (AND (NOT OP1) (NOT OP2)).
9009 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
9011         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9012         meaning of merge-high and merge-low masks for little endian; avoid
9013         use of vector-pack masks for little endian for mismatched modes.
9015 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9017         * config/tilepro/tilepro.c: Include "tree.h".
9019 2013-10-22  Andreas Schwab  <schwab@suse.de>
9021         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9022         with PRE_DEC.
9024 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
9026         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9027         [Ed Smith-Rowland]): New entries.
9028         ([Stephen M. Webb]): Update.
9030 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
9032         * tree-ssa-ter.h: Remove duplicate copy of file contents.
9034 2013-10-21  Marek Polacek  <polacek@redhat.com>
9036         PR middle-end/58809
9037         * fold-const.c (fold_range_test): Return 0 if the type is not
9038         an integral type.
9040 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
9042         * system.h: Move hwint.h include further down.
9043         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
9044         gcc_checking_asserts.
9045         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9047 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9049         Fix volatile issues in optimize_bit_field_compare.
9050         * fold-const.c (optimize_bit_field_compare): Bail out if
9051         lvolatilep or rvolatilep.
9053 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9055         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9056         and get_inner_reference returning different pmode for non-volatile
9057         bit-field members dependent on flag_strict_volatile_bitfields.
9058         * stor-layout.c (layout_decl): Remove special handling of
9059         flag_strict_volatile_bitfields.
9060         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9061         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9063 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
9065         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9066         calculations.
9068 2013-10-21  Jeff Law  <law@redhat.com>
9070         * tree-ssa-threadedge.c (thread_through_normal_block): New
9071         argument VISITED.  Remove VISISTED as a local variable.  When we
9072         have a threadable jump, verify the destination of the jump has not
9073         been visised.
9074         (thread_across_edge): Allocate VISITED bitmap once at function
9075         scope and use it throughout.  Make sure to set appropriate bits in
9076         VISITED for E (start of jump thread path).
9077         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9078         through a joiner if any edge on the path has a recorded jump thread.
9080 2013-10-21  Ian Lance Taylor  <iant@google.com>
9082         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9083         don't imply that attributes can solve all problems.
9084         (Directory Options): Fix typo.
9086 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9088         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9089         extend and extend_add.
9091 2013-10-21  Richard Biener  <rguenther@suse.de>
9093         PR tree-optimization/58794
9094         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9095         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9097 2013-10-21  Richard Biener  <rguenther@suse.de>
9099         PR middle-end/58742
9100         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9101         to (T) X for sign-changing conversions (or no conversion).
9103 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
9105         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9107 2013-10-20  Jan Hubicka  <jh@suse.cz>
9109         * config/i386/i386-tune.def: Add comment; organize into categories
9111 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9113         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9114         argument.  Update function comment.
9115         (expand_set_or_movmem_via_rep): New function combining
9116         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9117         (expand_movmem_via_rep_mov): Remove.
9118         expand_setmem_via_rep_stos): Remove.
9119         (expand_movmem_epilogue): Update calls correspondingly.
9120         (expand_setmem_epilogue_via_loop): Likewise.
9121         (emit_memset): New.
9122         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9123         (expand_set_or_movmem_prologue): New function combining
9124         expand_movmem_prologue and expand_setmem_prologue.
9125         (expand_movmem_prologue): Remove.
9126         (expand_setmem_prologue): Remove.
9127         (expand_set_or_movmem_constant_prologue): New function combining
9128         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9129         (expand_constant_movmem_prologue): Remove.
9130         (expand_constant_setmem_prologue): Remove.
9131         (promote_duplicated_reg): Allow vector-const0 value.
9132         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9133         and ix86_expand_setmem.
9134         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9135         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9137 2013-10-21  Diego Novillo  <dnovillo@google.com>
9139         * asan.c: Include tree.h
9140         * bb-reorder.c: Likewise.
9141         * cfgcleanup.c: Likewise.
9142         * cfgloopmanip.c: Likewise.
9143         * data-streamer-in.c: Likewise.
9144         * data-streamer-out.c: Likewise.
9145         * data-streamer.c: Likewise.
9146         * dwarf2cfi.c: Likewise.
9147         * graphite-blocking.c: Likewise.
9148         * graphite-clast-to-gimple.c: Likewise.
9149         * graphite-dependences.c: Likewise.
9150         * graphite-interchange.c: Likewise.
9151         * graphite-optimize-isl.c: Likewise.
9152         * graphite-poly.c: Likewise.
9153         * graphite-scop-detection.c: Likewise.
9154         * graphite-sese-to-poly.c: Likewise.
9155         * graphite.c: Likewise.
9156         * ipa-devirt.c: Likewise.
9157         * ipa-profile.c: Likewise.
9158         * ipa.c: Likewise.
9159         * ira.c: Likewise.
9160         * loop-init.c: Likewise.
9161         * loop-unroll.c: Likewise.
9162         * lower-subreg.c: Likewise.
9163         * lto/lto-object.c: Likewise.
9164         * recog.c: Likewise.
9165         * reginfo.c: Likewise.
9166         * tree-loop-distribution.c: Likewise.
9167         * tree-parloops.c: Likewise.
9168         * tree-ssa-strlen.c: Likewise.
9169         * tree-streamer.c: Likewise.
9170         * value-prof.c: Likewise.
9171         * target-globals.c: Likewise.
9172         * expr.h: Include tree-core.h instead of tree.h.
9173         * gimple.h: Likewise.
9174         * ipa-prop.h: Likewise.
9175         * ipa-utils.h: Likewise.
9176         * lto-streamer.h: Likewise.
9177         * streamer-hooks.h: Likewise.
9178         * ipa-reference.h: Include cgraph.h instead of tree.h.
9179         * cgraph.h: Include basic-block.h instead of tree.h.
9180         * tree-streamer.h: Do not include tree.h.
9181         * genattrtab.c (write_header): Generate inclusion of tree.h.
9182         * genautomata.c (main): Likewise.
9183         * genemit.c: Likewise.
9184         * genopinit.c: Likewise.
9185         * genoutput.c (output_prologue): Likewise.
9186         * genpeep.c: Likewise.
9188 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9190         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9191         little endian.
9192         (vec_unpacku_hi_v8hi): Likewise.
9193         (vec_unpacku_lo_v16qi): Likewise.
9194         (vec_unpacku_lo_v8hi): Likewise.
9196 2013-10-20  Jan Hubicka  <jh@suse.cz>
9198         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9199         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9200         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9202 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
9204         * config/mips/mips.h (ISA_HAS_WSBH): Define.
9205         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9206         constants.
9207         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9209 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
9211         PR target/58603
9212         * system.h: Undef m_slot.
9214 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9216         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
9217         all elements for both endian flavors.
9219 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9221         PR target/58792
9222         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
9223         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
9224         and SI_REG for 64bit SYSV ABI targets.
9226 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9228         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
9229         to multi_reg_return.  Clarify that we are skipping USEs of multiple
9230         return registers.  Use bool type where appropriate.
9232 2013-10-18  Jan Hubicka  <jh@suse.cz>
9234         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9235         for cold functions.
9236         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9237         (X86_TUNE_PUSH_MEMORY): Likewise.
9238         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9239         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9240         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9241         New.
9242         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9243         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9244         Remove.
9245         (ix86_option_override_internal): Update to use tune features instead
9246         of variables.
9248 2013-10-18  Cong Hou  <congh@google.com>
9250         PR tree-optimization/58508
9251         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9252         statement that contains data refs with zero-step.
9254 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9256         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9257         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9258         * gimple-low.c (gimple_check_call_arg,
9259         gimple_check_call_matching_types): Move to cgraph.c.
9260         * gimple-low.h: Remove prototype.
9261         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9262         Relocate from gimple-low.c.
9263         * cgraph.h: Add prototype.  Don't include basic-block.h.
9264         * gimplify.c: Add gimple-low to include list.
9265         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9266         * tree-eh.c: Add gimple-low to include list.
9267         * tree-nested.c: Likewise.
9268         * cfgexpand.c: Add tree-ssa-address.h to include list.
9269         * expr.c: Likewise.
9270         * gimple-fold.c: Likewise.
9271         * gimple-ssa-strength-reduction.c: Likewise.
9272         * trans-mem.c: Likewise.
9273         * tree-mudflap.c: Likewise.
9274         * tree-ssa-loop-ivopts.c: Likewise.
9275         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9276         (degenerate_phi_result): Move to tree-phinodes.c.
9277         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
9278         * tree-ssa-threadedge.c: Likewise.
9279         * tree-vrp.c: Likewise.
9280         * tree-phinodes.c (degenerate_phi_result): Relocate here.
9281         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
9282         * tree-phinodes.h (degenerate_phi_result): Add prototype.
9283         * tree-ssa-copy.c: Include tree-ssa-dom.h.
9284         * tree-ssa-forwprop.c: Likewise.
9285         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
9286         pass_data_cleanup_cfg_post_optimizing,
9287         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
9288         * tree-optimize.c: Delete File.
9289         * graphite.c: Include tree-cfgcleanup.h.
9290         * passes.c: Likewise.
9291         * tree-cfg.c: Likewise.
9292         * tree-profile.c: Likewise.
9293         * tree-ssa-dse.c: Likewise.
9294         * tree-ssa-loop-ivcanon.c: Likewise.
9295         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
9296         * tree-outof-ssa.c: Include sbitmap.h.
9297         * tree-ssa-live.c: Likewise.
9298         * tree-ssa-propagate.c: Likewise.
9299         * tree-ssa-structalias.c: Likewise.
9300         * tree-stdarg.c: Likewise.
9301         * Makefile.in (OBJS): Delete tree-optimize.o.
9302         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
9303         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
9304         * varasm.c: Include basic-block.h.
9305         * cfgloop.h: Include function.h instead of basic-block.h
9306         (bb_loop_depth): Move to cfgloop.c.
9307         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
9309 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9311         * predict.c (probably_never_executed): Compare frequency-based
9312         count to number of training runs.
9313         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
9315 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9317         * config/arm/arm.c (cortexa9_extra_costs): New table.
9318         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
9320 2013-10-18  Jeff Law  <law@redhat.com>
9322         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
9324         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
9325         (register_jump_thread): Add "registered_jump_thread" debug
9326         counter support.
9327         * dbgcnt.def (registered_jump_thread): New debug counter.
9329 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9331         * config/rs6000/rs6000.c: Include cgraph.h.
9333 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9335         * tree-ssa-tail-merge.c (replace_block_by): Update edge
9336         weights during merging.
9338 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9340         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
9341         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
9342         * tree-ssa-operands.h: Remove prototype.
9343         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
9344         * gimple.c (virtual_operand_p): Relocate from gimple.c.
9345         * gimple.h: Add prototype.
9346         * gimple-ssa.h: Include tree-ssa-operands.h.
9347         * tree-dump.c: Add tree-cfg.h to include list.
9348         * tree-ssa-alias.c: Add ipa-reference.h to include list.
9349         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
9350         * config/i386/i386.c: Don't include tree-flow.h.
9351         * config/rs6000/rs6000.c: Likewise.
9353 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9355         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
9357 2013-10-18  Richard Biener  <rguenther@suse.de>
9359         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
9360         or TYPE_UNSIGNED of integral types.
9361         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
9362         NULL_TREE for zero-precision integral types.
9364 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
9366         * config/aarch64/arm_neon.h
9367         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
9369 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
9371         PR target/57756
9372         * opth-gen.awk: Define target_flags_explicit.
9374 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9376         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
9377         fields to the reg_addr array that describes the valid addressing
9378         mode for any register, general purpose registers, floating point
9379         registers, and Altivec registers.
9380         (FIRST_RELOAD_REG_CLASS): Likewise.
9381         (LAST_RELOAD_REG_CLASS): Likewise.
9382         (struct reload_reg_map_type): Likewise.
9383         (reload_reg_map_type): Likewise.
9384         (RELOAD_REG_VALID): Likewise.
9385         (RELOAD_REG_MULTIPLE): Likewise.
9386         (RELOAD_REG_INDEXED): Likewise.
9387         (RELOAD_REG_OFFSET): Likewise.
9388         (RELOAD_REG_PRE_INCDEC): Likewise.
9389         (RELOAD_REG_PRE_MODIFY): Likewise.
9390         (reg_addr): Likewise.
9391         (mode_supports_pre_incdec_p): New helper functions to say whether
9392         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
9393         (mode_supports_pre_modify_p): Likewise.
9394         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
9395         print the valid address mode bits for each mode.
9396         (rs6000_debug_print_mode): Likewise.
9397         (rs6000_debug_reg_global): Likewise.
9398         (rs6000_setup_reg_addr_masks): New function to set up the address
9399         mask bits for each type.
9400         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
9401         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
9402         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
9403         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
9404         PRE_MODIFY are supported.
9405         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
9406         registers, instead of {src,dest}_av_p.
9407         (rs6000_print_options_internal): Tweak the debug output slightly.
9409 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
9411         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
9412         isa attribute.
9414 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
9416         * tree-flow.h (struct omp_region): Move to omp-low.c.
9417         Remove omp_ prototypes and variables.
9418         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
9419         (copy_var_decl): Relocate prototype from tree-flow.h.
9420         * gimple.c (copy_var_decl): Relocate from omp-low.c.
9421         * tree.h: Move prototype to omp-low.h.
9422         * omp-low.h: New File.  Relocate prototypes here.
9423         * omp-low.c (struct omp_region): Make local here.
9424         (root_omp_region): Make static.
9425         (copy_var_decl) Move to gimple.c.
9426         (new_omp_region): Make static.
9427         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
9428         * tree-cfg.c: Include omp-low.h.
9429         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
9430         * gimplify.c: Include omp-low.h.
9431         * tree-parloops.c: Likewise.
9433 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
9435         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
9436         operands are in memory, prefer to force non-matched operand 1 to
9437         the register.
9439 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9441         PR target/58673
9442         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
9443         restrict TImode addresses to single indirect registers if both
9444         -mquad-memory and -mvsx-timode are used.
9445         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
9446         we should emit load/store quad.  Remove using %y for quad memory
9447         addresses.
9449         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
9450         constraints to allow load/store quad on machines where TImode is
9451         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
9452         for TImode to load integer constants.
9454 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9456         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
9458 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9460         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
9461         handling of STACK_REG.
9463 2013-10-17  Richard Biener  <rguenther@suse.de>
9465         PR tree-optimization/58143
9466         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
9467         New function.
9468         (rewrite_to_defined_overflow): Likewise.
9469         (move_computations_dom_walker::before_dom): Rewrite stmts
9470         with undefined signed overflow that are not always executed
9471         into unsigned arithmetic.
9473 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
9475         PR target/57756
9476         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
9477         explicit isa flag to be an options variable, instead of using
9478         global_options_set.  Remove define from rs6000.h.
9479         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
9481         * config/rs6000/rs6000.c (rs6000_option_override_internal):
9482         Initialize rs6000_isa_flags_explicit.
9483         (rs6000_function_specific_save): Add gcc_options* parameter, so
9484         that the powerpc builds after the 2013-10-15 changes.
9485         (rs6000_function_specific_restore): Likewise.
9487 2013-10-16  DJ Delorie  <dj@redhat.com>
9489         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
9490         op is a REG before checking REGNO.
9491         (rl78_alloc_physical_registers): Verify pattern is a SET before
9492         checking SET_SRC.
9494 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9496         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
9497         endianness.
9498         (vec_unpacks_lo_v4sf): Likewise.
9499         (vec_unpacks_float_hi_v4si): Likewise.
9500         (vec_unpacks_float_lo_v4si): Likewise.
9501         (vec_unpacku_float_hi_v4si): Likewise.
9502         (vec_unpacku_float_lo_v4si): Likewise.
9504 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9506         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
9507         (vsx_concat_v2sf): Likewise.
9509 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
9511         * config/aarch64/aarch64.md
9512         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
9514 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
9516         PR tree-optimization/58697
9517         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
9518         estimated_loop_iterations_int.
9519         (max_stmt_executions_int): Call get_max_loop_iterations_int.
9520         (get_max_loop_iterations_int): New.  HWINT version of
9521         get_max_loop_iterations.
9522         * cfgloop.h: Add prototypes.
9523         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
9524         * loop-unroll.c (decide_peel_once_rolling): Call
9525         get_estimated_loop_iterations_int.
9526         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
9527         * tree-ssa-loop-niter.h: Tweak prototypes.
9529 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
9531         * gengtype-parse.c (struct_field_seq): Ignore access-control
9532         keywords ("public:" etc).
9534 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9536         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
9537         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
9539 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
9541         * config/arm/arm.opt (mlra): New option.
9542         * config/arm/arm.c (arm_lra_p): New function.
9543         (TARGET_LRA_P): Define.
9545 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
9547         * tree-core.h (tree_code_name): Remove.
9548         * tree.h (get_tree_code_name): New prototype.
9549         * tree.c (tree_code_name): Make static.
9550         (get_tree_code_name): New function.
9551         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
9552         tree_class_check_failed, tree_range_check_failed,
9553         tree_not_class_check_failed, omp_clause_check_failed,
9554         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
9555         wrapper get_tree_code_name instead of calling tree_code_name directly.
9556         * tree-vrp.c (dump_asserts_for): Likewise.
9557         * tree-dump.c (dequeue_and_dump): Likewise.
9558         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
9559         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
9560         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
9561         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
9562         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
9563         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
9564         dump_gimple_omp_for): Likewise.
9565         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
9566         * tree-ssa-pre.c (print_pre_expr): Likewise.
9567         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
9568         * print-tree.c (print_node_brief, print_node): Likewise.
9569         * gimple.c (gimple_check_failed): Likewise.
9570         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
9571         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
9572         * config/mep/mep.c (mep_validate_vliw): Likewise.
9573         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
9574         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
9576 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9578         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
9579         for AMD bdver3.
9581 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
9583         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
9584         (MULTILIB_MATCHES): Add multilib for -march=v8.
9586 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
9588         PR target/57756
9589         * optc-save-gen.awk: Add extra parameter to the save and restore
9590         target calls.
9591         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
9592         * tree.c (build_optimization_node): New parameter.  Add extra parameter
9593         to call to cl_optimization_save.
9594         (build_target_option_node): New parameter. Add extra parameter
9595         to call to cl_target_option_save.
9596         * tree.h (build_optimization_node): New parameter.
9597         (build_target_option_node): New parameter.
9598         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
9599         build_optimization_node and build_target_option_node.
9600         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
9601         (handle_pragma_push_options): Ditto.
9602         * toplev.c (process_options): Ditto.
9603         * opts.c (init_options_struct): Check for opts_set non-null.
9604         * target.def (target_option.save): New parameter.
9605         (target_option.restore): New parameter.
9606         * tm.texi: Generate.
9607         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
9608         (ix86_pragma_target_parse): Ditto.
9609         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
9610         parameters.
9611         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
9612         to  build_optimization_node and build_target_option_node.
9613         (rs6000_valid_attribute_p): Ditto.
9614         (rs6000_pragma_target_parse): Ditto.
9615         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
9616         data.
9617         * config/i386/i386.h:
9618         TARGET_64BIT_P: New Macro
9619         TARGET_MMX_P: New Macro.
9620         TARGET_3DNOW_P: New Macro.
9621         TARGET_3DNOW_A_P: New Macro.
9622         TARGET_SSE_P: New Macro.
9623         TARGET_SSE2_P: New Macro.
9624         TARGET_SSE3_P: New Macro.
9625         TARGET_SSSE3_P: New Macro.
9626         TARGET_SSE4_1_P: New Macro.
9627         TARGET_SSE4_2_P: New Macro.
9628         TARGET_AVX_P: New Macro.
9629         TARGET_AVX2_P: New Macro.
9630         TARGET_AVX512F_P: New Macro.
9631         TARGET_AVX512PF_P: New Macro.
9632         TARGET_AVX512ER_P: New Macro.
9633         TARGET_AVX512CD_P: New Macro.
9634         TARGET_FMA_P: New Macro.
9635         TARGET_SSE4A_P: New Macro.
9636         TARGET_FMA4_P: New Macro.
9637         TARGET_XOP_P: New Macro.
9638         TARGET_LWP_P: New Macro.
9639         TARGET_ABM_P: New Macro.
9640         TARGET_BMI_P: New Macro.
9641         TARGET_BMI2_P: New Macro.
9642         TARGET_LZCNT_P: New Macro.
9643         TARGET_TBM_P: New Macro.
9644         TARGET_POPCNT_P: New Macro.
9645         TARGET_SAHF_P: New Macro.
9646         TARGET_MOVBE_P: New Macro.
9647         TARGET_CRC32_P: New Macro.
9648         TARGET_AES_P: New Macro.
9649         TARGET_PCLMUL_P: New Macro.
9650         TARGET_CMPXCHG16B_P: New Macro.
9651         TARGET_FSGSBASE_P: New Macro.
9652         TARGET_RDRND_P: New Macro.
9653         TARGET_F16C_P: New Macro.
9654         TARGET_RTM_P: New Macro.
9655         TARGET_HLE_P: New Macro.
9656         TARGET_RDSEED_P: New Macro.
9657         TARGET_PRFCHW_P: New Macro.
9658         TARGET_ADX_P: New Macro.
9659         TARGET_FXSR_P: New Macro.
9660         TARGET_XSAVE_P: New Macro.
9661         TARGET_XSAVEOPT_P: New Macro.
9662         TARGET_LP64_P: New Macro.
9663         TARGET_X32_P: New Macro.
9664         TARGET_FPMATH_DEFAULT_P: New Macro.
9665         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
9666         * config/i386/i386.c (ix86_option_override_internal): New parameters.
9667         opts and opts_set.
9668         Change ix86_tune_string to access opts->x_ix86_tune_string.
9669         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
9670         Change ix86_arch_string to access opts->x_ix86_arch_string.
9671         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
9672         Change ix86_pmode to access opts->x_ix86_pmode.
9673         Change ix86_abi to access opts->x_ix86_abi.
9674         Change ix86_cmodel to access opts->x_ix86_cmodel.
9675         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
9676         Change ix86_isa_flags_explicit to access
9677         opts->x_ix86_isa_flags_explicit.
9678         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
9679         Change ix86_regparm to access opts->x_ix86_regparm.
9680         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
9681         Change ix86_preferred_stack_boundary_arg to access
9682         opts->x_ix86_preferred_stack_boundary_arg.
9683         Change ix86_force_align_arg_pointer to access
9684         opts->x_ix86_force_align_arg_pointer.
9685         Change ix86_incoming_stack_boundar_arg to access
9686         opts->x_ix86_incoming_stack_boundar_arg.
9687         Change ix86_fpmath to access opts->x_ix86_fpmath.
9688         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
9689         Change ix86_recip_name to access opts->x_ix86_recip_name.
9690         Change ix86_stack_protector_guard to access
9691         opts->x_ix86_stack_protector_guard.
9692         Change ix86_tune_memcpy_strategy to access
9693         opts->x_ix86_tune_memcpy_strategy.
9694         Change ix86_tune_memset_strategy to access
9695         opts->x_ix86_tune_memset_strategy.
9696         Change global_options to access opts.
9697         Change global_options_set to access opts_set.
9698         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
9699         Change TARGET_MMX to TARGET_MMX_P (opts->...).
9700         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
9701         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
9702         Change TARGET_SSE to TARGET_SSE_P (opts->...).
9703         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
9704         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
9705         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
9706         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
9707         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
9708         Change TARGET_AVX to TARGET_AVX_P (opts->...).
9709         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
9710         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
9711         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
9712         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
9713         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
9714         Change TARGET_FMA to TARGET_FMA_P (opts->...).
9715         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
9716         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
9717         Change TARGET_XOP to TARGET_XOP_P (opts->...).
9718         Change TARGET_LWP to TARGET_LWP_P (opts->...).
9719         Change TARGET_ABM to TARGET_ABM_P (opts->...).
9720         Change TARGET_BMI to TARGET_BMI_P (opts->...).
9721         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
9722         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
9723         Change TARGET_TBM to TARGET_TBM_P (opts->...).
9724         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
9725         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
9726         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
9727         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
9728         Change TARGET_AES to TARGET_AES_P (opts->...).
9729         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
9730         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
9731         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
9732         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
9733         Change TARGET_F16C to TARGET_F16C_P (opts->...).
9734         Change TARGET_RTM to TARGET_RTM_P (opts->...).
9735         Change TARGET_HLE to TARGET_HLE_P (opts->...).
9736         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
9737         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
9738         Change TARGET_ADX to TARGET_ADX_P (opts->...).
9739         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
9740         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
9741         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
9742         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
9743         Change TARGET_X32 to TARGET_X32_P (opts->...).
9744         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
9745         Change TARGET_FLOAT_RETURNS_IN_80387 to
9746         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
9747         (ix86_function_specific_save): New parameter. Use opts-> fields
9748         to replace global fields.
9749         (ix86_function_specific_restore): Ditto.
9750         (ix86_valid_target_attribute_inner_p): New parameters.
9751         Fix recursive call.
9752         Fix call to ix86_handle_option and set_option.
9753         (ix86_valid_target_attribute_tree): New parameters.
9754         Change global_options to access opts.
9755         Change global_options_set to access opts_set.
9756         Fix call to ix86_valid_target_attribute_inner_p.
9757         Change ix86_tune_string to access opts->x_ix86_tune_string.
9758         Change ix86_arch_string to access opts->x_ix86_arch_string.
9759         Change ix86_fpmath to access opts->x_ix86_fpmath
9760         Fix call to ix86_option_override_internal.
9761         Fix call to ix86_add_new_builtins.
9762         Fix calls to build_optimization_node and build_target_option_node.
9763         (ix86_valid_target_attribute_p): Remove access to global_options.
9764         Use new gcc_options structure func_options.
9765         Fix call to ix86_valid_target_attribute_tree.
9766         Fix call to  build_optimization_node.
9767         (get_builtin_code_for_version): Fix call to
9768         ix86_valid_target_attribute_tree.
9770 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
9772         * Makefile.in (PICFLAG): New.
9773         (enable_host_shared): New.
9774         (INTERNAL_CFLAGS): Use PICFLAG.
9775         (LIBIBERTY): Use pic build of libiberty.a if configured with
9776         --enable-host-shared.
9777         * configure.ac: Add --enable-host-shared, setting up new
9778         PICFLAG variable.
9779         * configure: Regenerate.
9780         * doc/install.texi (--enable-shared): Add note contrasting it with ...
9781         (--enable-host-shared): New option.
9783 2013-10-15  Richard Biener  <rguenther@suse.de>
9785         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
9786         for built-in functions.
9788 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
9790         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
9791         (optimize_range_tests_1): New function,
9792         extracted from optimize_range_tests.
9793         (optimize_range_tests_xor): Similarly.
9794         (optimize_range_tests_diff): New function.
9795         (optimize_range_tests): Use optimize_range_tests_1.
9797 2013-10-15  Cong Hou  <congh@google.com>
9799         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
9800         requirement of the reduction pattern so that one operand of the
9801         reduction operation can come from outside of the loop.
9803 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9805         * config/arm/neon-schedgen.ml: Remove.
9806         * config/arm/cortex-a9-neon.md: Remove comment regarding
9807         neon-schedgen.ml.
9809 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9811         * config/arm/types: Remove old neon types.
9813 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9815         * config/arm/cortex-a7.md
9816         (cortex_a7_neon_type): New.
9817         (cortex_a7_neon_mul): Update for new types.
9818         (cortex_a7_neon_mla): Likewise.
9819         (cortex_a7_neon): Likewise.
9821 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9823         * config/arm/cortex-a15-neon.md
9824         (cortex_a15_neon_type): New,
9826         (cortex_a15_neon_int_1): Remove.
9827         (cortex_a15_neon_int_2): Likewise.
9828         (cortex_a15_neon_int_3): Likewise.
9829         (cortex_a15_neon_int_4): Likewise.
9830         (cortex_a15_neon_int_5): Likewise.
9831         (cortex_a15_neon_vqneg_vqabs): Likewise.
9832         (cortex_a15_neon_vmov): Likewise.
9833         (cortex_a15_neon_vaba): Likewise.
9834         (cortex_a15_neon_vaba_qqq): Likewise.
9835         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9836         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9837         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9838         Likewise.
9839         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9840         (cortex_a15_neon_mla_qqq_8_16): Likewise.
9841         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
9842         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9843         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9844         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
9845         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9846         (cortex_a15_neon_shift_1): Likewise.
9847         (cortex_a15_neon_shift_2): Likewise.
9848         (cortex_a15_neon_shift_3): Likewise.
9849         (cortex_a15_neon_vshl_ddd): Likewise.
9850         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9851         (cortex_a15_neon_vsra_vrsra): Likewise.
9852         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9853         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9854         (cortex_a15_neon_bp_3cycle): Likewise.
9855         (cortex_a15_neon_ldm_2): Likewise.
9856         (cortex_a15_neon_stm_2): Likewise.
9857         (cortex_a15_neon_mcr): Likewise.
9858         (cortex_a15_neon_mrc): Likewise.
9859         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
9860         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
9861         (cortex_a15_neon_fp_vmul_ddd): Likewise.
9862         (cortex_a15_neon_fp_vmul_qqd): Likewise.
9863         (cortex_a15_neon_fp_vmla_ddd): Likewise.
9864         (cortex_a15_neon_fp_vmla_qqq): Likewise.
9865         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9866         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9867         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9868         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9869         (cortex_a15_neon_bp_simple): Likewise.
9870         (cortex_a15_neon_bp_2cycle): Likewise.
9871         (cortex_a15_neon_bp_3cycle): Likewise.
9872         (cortex_a15_neon_vld1_1_2_regs): Likewise.
9873         (cortex_a15_neon_vld1_3_4_regs): Likewise.
9874         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9875         (cortex_a15_neon_vld2_4_regs): Likewise.
9876         (cortex_a15_neon_vld3_vld4): Likewise.
9877         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9878         (cortex_a15_neon_vst1_3_4_regs): Likewise.
9879         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
9880         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
9881         (cortex_a15_neon_vst3_vst4): Rename to...
9882         (cortex_a15_neon_vst4): This, update for new attributes.
9883         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
9884         (cortex_a15_neon_vld3_vld4_lane): Likewise.
9885         (cortex_a15_neon_vst1_vst2_lane): Likewise.
9886         (cortex_a15_neon_vst3_vst4_lane): Likewise.
9887         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
9888         (cortex_a15_neon_ldm_2): Likewise.
9889         (cortex_a15_neon_stm_2): Likewise.
9890         (cortex_a15_neon_mcr): Likewise.
9891         (cortex_a15_neon_mcr_2_mcrr): Likewise.
9892         (cortex_a15_neon_mrc): Likewise.
9893         (cortex_a15_neon_mrrc): Likewise.
9895         (cortex_a15_neon_abd): New.
9896         (cortex_a15_neon_abd_q): Likewise.
9897         (cortex_a15_neon_aba): Likewise.
9898         (cortex_a15_neon_aba_q): Likewise.
9899         (cortex_a15_neon_acc): Likewise.
9900         (cortex_a15_neon_acc_q): Likewise.
9901         (cortex_a15_neon_arith_basic): Likewise.
9902         (cortex_a15_neon_arith_complex): Likewise.
9903         (cortex_a15_neon_multiply): Likewise.
9904         (cortex_a15_neon_multiply_q): Likewise.
9905         (cortex_a15_neon_mla): Likewise.
9906         (cortex_a15_neon_mla_q): Likewise.
9907         (cortex_a15_neon_sat_mla_long): Likewise.
9908         (cortex_a15_neon_shift_acc): Likewise.
9909         (cortex_a15_neon_shift_imm_basic): Likewise.
9910         (cortex_a15_neon_shift_imm_complex): Likewise.
9911         (cortex_a15_neon_shift_reg_basic): Likewise.
9912         (cortex_a15_neon_shift_reg_basic_q): Likewise.
9913         (cortex_a15_neon_shift_reg_complex): Likewise.
9914         (cortex_a15_neon_shift_reg_complex_q): Likewise.
9915         (cortex_a15_neon_fp_negabs): Likewise
9916         (cortex_a15_neon_fp_arith): Likewise
9917         (cortex_a15_neon_fp_arith_q): Likewise
9918         (cortex_a15_neon_fp_cvt_int): Likewise
9919         (cortex_a15_neon_fp_cvt_int_q): Likewise
9920         (cortex_a15_neon_fp_cvt_16): Likewise
9921         (cortex_a15_neon_fp_mul): Likewise
9922         (cortex_a15_neon_fp_mul_q): Likewise
9923         (cortex_a15_neon_fp_mla): Likewise
9924         (cortex_a15_neon_fp_mla_q): Likewise
9925         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
9926         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
9927         (cortex_a15_neon_bitops): Likewise.
9928         (cortex_a15_neon_bitops_q): Likewise.
9929         (cortex_a15_neon_from_gp): Likewise.
9930         (cortex_a15_neon_from_gp_q): Likewise.
9931         (cortex_a15_neon_tbl3_tbl4): Likewise.
9932         (cortex_a15_neon_zip_q): Likewise.
9933         (cortex_a15_neon_to_gp): Likewise.
9934         (cortex_a15_neon_load_a): Likewise.
9935         (cortex_a15_neon_load_b): Likewise.
9936         (cortex_a15_neon_load_c): Likewise.
9937         (cortex_a15_neon_load_d): Likewise.
9938         (cortex_a15_neon_load_e): Likewise.
9939         (cortex_a15_neon_load_f): Likewise.
9940         (cortex_a15_neon_store_a): Likewise.
9941         (cortex_a15_neon_store_b): Likewise.
9942         (cortex_a15_neon_store_c): Likewise.
9943         (cortex_a15_neon_store_d): Likewise.
9944         (cortex_a15_neon_store_e): Likewise.
9945         (cortex_a15_neon_store_f): Likewise.
9946         (cortex_a15_neon_store_g): Likewise.
9947         (cortex_a15_neon_store_h): Likewise.
9948         (cortex_a15_vfp_to_from_gp): Likewise.
9950 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9952         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
9954         (cortex_a9_neon_vshl_ddd): Remove.
9955         (cortex_a9_neon_vst3_vst4): Likewise.
9956         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
9958         (cortex_a9_neon_bit_ops_q): New.
9960         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
9961         (cortex_a9_neon_int_2): Likewise.
9962         (cortex_a9_neon_int_3): Likewise.
9963         (cortex_a9_neon_int_4): Likewise.
9964         (cortex_a9_neon_int_5): Likewise.
9965         (cortex_a9_neon_vqneg_vqabs): Likewise.
9966         (cortex_a9_neon_vmov): Likewise.
9967         (cortex_a9_neon_vaba): Likewise.
9968         (cortex_a9_neon_vaba_qqq): Likewise.
9969         (cortex_a9_neon_shift_1): Likewise.
9970         (cortex_a9_neon_shift_2): Likewise.
9971         (cortex_a9_neon_shift_3): Likewise.
9972         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9973         (cortex_a9_neon_vsra_vrsra): Likewise.
9974         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9975         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9976         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9977         Likewise.
9978         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9979         (cortex_a9_neon_mla_qqq_8_16): Likewise.
9980         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
9981         Likewise.
9982         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9983         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9984         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
9985         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9986         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
9987         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
9988         (cortex_a9_neon_fp_vsum): Likewise.
9989         (cortex_a9_neon_fp_vmul_ddd): Likewise.
9990         (cortex_a9_neon_fp_vmul_qqd): Likewise.
9991         (cortex_a9_neon_fp_vmla_ddd): Likewise.
9992         (cortex_a9_neon_fp_vmla_qqq): Likewise.
9993         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
9994         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
9995         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9996         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9997         (cortex_a9_neon_bp_simple): Likewise.
9998         (cortex_a9_neon_bp_2cycle): Likewise.
9999         (cortex_a9_neon_bp_3cycle): Likewise.
10000         (cortex_a9_neon_ldr): Likewise.
10001         (cortex_a9_neon_str): Likewise.
10002         (cortex_a9_neon_vld1_1_2_regs): Likewise.
10003         (cortex_a9_neon_vld1_3_4_regs): Likewise.
10004         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10005         (cortex_a9_neon_vld2_4_regs): Likewise.
10006         (cortex_a9_neon_vld3_vld4): Likewise.
10007         (cortex_a9_neon_vld1_vld2_lane): Likewise.
10008         (cortex_a9_neon_vld3_vld4_lane): Likewise.
10009         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10010         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10011         (cortex_a9_neon_vst1_3_4_regs): Likewise.
10012         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10013         (cortex_a9_neon_vst1_vst2_lane): Likewise.
10014         (cortex_a9_neon_vst3_vst4_lane): Likewise.
10015         (cortex_a9_neon_mcr): Likewise.
10016         (cortex_a9_neon_mcr_2_mcrr): Likewise.
10017         (cortex_a9_neon_mrc): Likewise.
10018         (cortex_a9_neon_mrrc): Likewise.
10020 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10022         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10024         (cortex_a8_neon_vshl_ddd): Remove.
10025         (cortex_a8_neon_vst3_vst4): Likewise.
10026         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10028         (cortex_a8_neon_bit_ops_q): New.
10030         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10031         (cortex_a8_neon_int_2): Likewise..
10032         (cortex_a8_neon_int_3): Likewise.
10033         (cortex_a8_neon_int_5): Likewise.
10034         (cortex_a8_neon_vqneg_vqabs): Likewise.
10035         (cortex_a8_neon_int_4): Likewise.
10036         (cortex_a8_neon_vaba): Likewise.
10037         (cortex_a8_neon_vaba_qqq): Likewise.
10038         (cortex_a8_neon_shift_1): Likewise.
10039         (cortex_a8_neon_shift_2): Likewise.
10040         (cortex_a8_neon_shift_3): Likewise.
10041         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10042         (cortex_a8_neon_vsra_vrsra): Likewise.
10043         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10044         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10045         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10046         Likewise.
10047         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10048         (cortex_a8_neon_mla_qqq_8_16): Likewise.
10049         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10050         Likewise.
10051         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10052         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10053         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10054         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10055         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10056         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10057         (cortex_a8_neon_fp_vsum): Likewise.
10058         (cortex_a8_neon_fp_vmul_ddd): Likewise.
10059         (cortex_a8_neon_fp_vmul_qqd): Likewise.
10060         (cortex_a8_neon_fp_vmla_ddd): Likewise.
10061         (cortex_a8_neon_fp_vmla_qqq): Likewise.
10062         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10063         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10064         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10065         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10066         (cortex_a8_neon_bp_simple): Likewise.
10067         (cortex_a8_neon_bp_2cycle): Likewise.
10068         (cortex_a8_neon_bp_3cycle): Likewise.
10069         (cortex_a8_neon_ldr): Likewise.
10070         (cortex_a8_neon_str): Likewise.
10071         (cortex_a8_neon_vld1_1_2_regs): Likewise.
10072         (cortex_a8_neon_vld1_3_4_regs): Likewise.
10073         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10074         (cortex_a8_neon_vld2_4_regs): Likewise.
10075         (cortex_a8_neon_vld3_vld4): Likewise.
10076         (cortex_a8_neon_vld1_vld2_lane): Likewise.
10077         (cortex_a8_neon_vld3_vld4_lane): Likewise.
10078         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10079         (cortex_a8_neon_vst1_3_4_regs): Likewise.
10080         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10081         (cortex_a8_neon_vst1_vst2_lane): Likewise.
10082         (cortex_a8_neon_vst3_vst4_lane): Likewise.
10083         (cortex_a8_neon_mcr): Likewise.
10084         (cortex_a8_neon_mcr_2_mcrr): Likewise.
10085         (cortex_a8_neon_mrc): Likewise.
10086         (cortex_a8_neon_mrrc): Likewise.
10088 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10090         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10091         (fp): New.
10092         * config/aarch64/aarch64-simd.md (neon_type): Remove.
10093         (aarch64_simd_dup<mode>): Add "type" attribute.
10094         (aarch64_dup_lane<mode>): Likewise.
10095         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10096         (*aarch64_simd_mov<mode>): Likewise.
10097         (aarch64_simd_mov_from_<mode>low): Likewise.
10098         (aarch64_simd_mov_from_<mode>high): Likewise.
10099         (orn<mode>3): Likewise.
10100         (bic<mode>3): Likewise.
10101         (add<mode>3): Likewise.
10102         (sub<mode>3): Likewise.
10103         (mul<mode>3): Likewise.
10104         (*aarch64_mul3_elt<mode>): Likewise.
10105         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10106         (*aarch64_mul3_elt_to_128df): Likewise.
10107         (*aarch64_mul3_elt_to_64v2df): Likewise.
10108         (neg<mode>2): Likewise.
10109         (abs<mode>2): Likewise.
10110         (abd<mode>_3): Likewise.
10111         (aba<mode>_3): Likewise.
10112         (fabd<mode>_3): Likewise.
10113         (*fabd_scalar<mode>3): Likewise.
10114         (and<mode>3): Likewise.
10115         (ior<mode>3): Likewise.
10116         (xor<mode>3): Likewise.
10117         (one_cmpl<mode>2): Likewise.
10118         (aarch64_simd_vec_set<mode>): Likewise.
10119         (aarch64_simd_lshr<mode>): Likewise.
10120         (aarch64_simd_ashr<mode>): Likewise.
10121         (aarch64_simd_imm_shl<mode>): Likewise.
10122         (aarch64_simd_reg_sshl<mode): Likewise.
10123         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10124         (aarch64_simd_reg_shl<mode>_signed): Likewise.
10125         (aarch64_simd_vec_setv2di): Likewise.
10126         (aarch64_simd_vec_set<mode>): Likewise.
10127         (aarch64_mla<mode>): Likewise.
10128         (*aarch64_mla_elt<mode>): Likewise.
10129         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10130         (aarch64_mls<mode>): Likewise.
10131         (*aarch64_mls_elt<mode>): Likewise.
10132         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10133         (<su><maxmin><mode>3): Likewise.
10134         (move_lo_quad_<mode>): Likewise.
10135         (aarch64_simd_move_hi_quad_<mode>): Likewise.
10136         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10137         (vec_pack_trunc_<mode>): Likewise.
10138         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10139         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10140         (*aarch64_<su>mlal_lo<mode>): Likewise.
10141         (*aarch64_<su>mlal_hi<mode>): Likewise.
10142         (*aarch64_<su>mlsl_lo<mode>): Likewise.
10143         (*aarch64_<su>mlsl_hi<mode>): Likewise.
10144         (*aarch64_<su>mlal<mode>): Likewise.
10145         (*aarch64_<su>mlsl<mode>): Likewise.
10146         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10147         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10148         (add<mode>3): Likewise.
10149         (sub<mode>3): Likewise.
10150         (mul<mode>3): Likewise.
10151         (div<mode>3): Likewise.
10152         (neg<mode>2): Likewise.
10153         (abs<mode>2): Likewise.
10154         (fma<mode>4): Likewise.
10155         (*aarch64_fma4_elt<mode>): Likewise.
10156         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10157         (*aarch64_fma4_elt_to_128df): Likewise.
10158         (*aarch64_fma4_elt_to_64v2df): Likewise.
10159         (fnma<mode>4): Likewise.
10160         (*aarch64_fnma4_elt<mode>): Likewise.
10161         (*aarch64_fnma4_elt_<vswap_width_name><mode>
10162         (*aarch64_fnma4_elt_to_128df): Likewise.
10163         (*aarch64_fnma4_elt_to_64v2df): Likewise.
10164         (<frint_pattern><mode>2): Likewise.
10165         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10166         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10167         (vec_unpacks_lo_v4sf): Likewise.
10168         (aarch64_float_extend_lo_v2df): Likewise.
10169         (vec_unpacks_hi_v4sf): Likewise.
10170         (aarch64_float_truncate_lo_v2sf): Likewise.
10171         (aarch64_float_truncate_hi_v4sf): Likewise.
10172         (aarch64_vmls<mode>): Likewise.
10173         (<su><maxmin><mode>3): Likewise.
10174         (<maxmin_uns><mode>3): Likewise.
10175         (reduc_<sur>plus_<mode>): Likewise.
10176         (reduc_<sur>plus_v2di): Likewise.
10177         (reduc_<sur>plus_v2si): Likewise.
10178         (reduc_<sur>plus_<mode>): Likewise.
10179         (aarch64_addpv4sf): Likewise.
10180         (clz<mode>2): Likewise.
10181         (reduc_<maxmin_uns>_<mode>): Likewise.
10182         (reduc_<maxmin_uns>_v2di): Likewise.
10183         (reduc_<maxmin_uns>_v2si): Likewise.
10184         (reduc_<maxmin_uns>_<mode>): Likewise.
10185         (reduc_<maxmin_uns>_v4sf): Likewise.
10186         (aarch64_simd_bsl<mode>_internal): Likewise.
10187         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10188         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10189         (aarch64_get_lane<mode>): Likewise.
10190         (*aarch64_combinez<mode>): Likewise.
10191         (aarch64_combine<mode>): Likewise.
10192         (aarch64_simd_combine<mode>): Likewise.
10193         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10194         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10195         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10196         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10197         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10198         (aarch64_<sur>h<addsub><mode>): Likewise.
10199         (aarch64_<sur><addsub>hn<mode>): Likewise.
10200         (aarch64_<sur><addsub>hn2<mode>): Likewise.
10201         (aarch64_pmul<mode>): Likewise.
10202         (aarch64_<su_optab><optab><mode>): Likewise.
10203         (aarch64_<sur>qadd<mode>): Likewise.
10204         (aarch64_sqmovun<mode>): Likewise.
10205         (aarch64_<sur>qmovn<mode>): Likewise.
10206         (aarch64_s<optab><mode>): Likewise.
10207         (aarch64_sq<r>dmulh<mode>): Likewise.
10208         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10209         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10210         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10211         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10212         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10213         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10214         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
10215         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
10216         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10217         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10218         (aarch64_sqdmull<mode>): Likewise.
10219         (aarch64_sqdmull_lane<mode>_internal): Likewise.
10220         (aarch64_sqdmull_n<mode>): Likewise.
10221         (aarch64_sqdmull2<mode>_internal): Likewise.
10222         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10223         (aarch64_sqdmull2_n<mode>_internal): Likewise.
10224         (aarch64_<sur>shl<mode>): Likewise.
10225         (aarch64_<sur>q<r>shl<mode>
10226         (aarch64_<sur>shll_n<mode>): Likewise.
10227         (aarch64_<sur>shll2_n<mode>): Likewise.
10228         (aarch64_<sur>shr_n<mode>): Likewise.
10229         (aarch64_<sur>sra_n<mode>): Likewise.
10230         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
10231         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
10232         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10233         (aarch64_cm<optab><mode>): Likewise.
10234         (aarch64_cm<optab>di): Likewise.
10235         (aarch64_cm<optab><mode>): Likewise.
10236         (aarch64_cm<optab>di): Likewise.
10237         (aarch64_cmtst<mode>): Likewise.
10238         (aarch64_cmtstdi): Likewise.
10239         (aarch64_cm<optab><mode>): Likewise.
10240         (*aarch64_fac<optab><mode>): Likewise.
10241         (aarch64_addp<mode>): Likewise.
10242         (aarch64_addpdi): Likewise.
10243         (sqrt<mode>2): Likewise.
10244         (vec_load_lanesoi<mode>): Likewise.
10245         (vec_store_lanesoi<mode>): Likewise.
10246         (vec_load_lanesci<mode>): Likewise.
10247         (vec_store_lanesci<mode>): Likewise.
10248         (vec_load_lanesxi<mode>): Likewise.
10249         (vec_store_lanesxi<mode>): Likewise.
10250         (*aarch64_mov<mode>): Likewise.
10251         (aarch64_ld2<mode>_dreg): Likewise.
10252         (aarch64_ld2<mode>_dreg): Likewise.
10253         (aarch64_ld3<mode>_dreg): Likewise.
10254         (aarch64_ld3<mode>_dreg): Likewise.
10255         (aarch64_ld4<mode>_dreg): Likewise.
10256         (aarch64_ld4<mode>_dreg): Likewise.
10257         (aarch64_tbl1<mode>): Likewise.
10258         (aarch64_tbl2v16qi): Likewise.
10259         (aarch64_combinev16qi): Likewise.
10260         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10261         (aarch64_st2<mode>_dreg): Likewise.
10262         (aarch64_st2<mode>_dreg): Likewise.
10263         (aarch64_st3<mode>_dreg): Likewise.
10264         (aarch64_st3<mode>_dreg): Likewise.
10265         (aarch64_st4<mode>_dreg): Likewise.
10266         (aarch64_st4<mode>_dreg): Likewise.
10267         (*aarch64_simd_ld1r<mode>): Likewise.
10268         (aarch64_frecpe<mode>): Likewise.
10269         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10270         (aarch64_frecps<mode>): Likewise.
10272 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10274         * config/arm/iterators.md (V_elem_ch): New.
10275         (q): Likewise.
10276         (VQH_type): Likewise.
10277         * config/arm/arm.md (is_neon_type): New.
10278         (conds): Use is_neon_type.
10279         (anddi3_insn): Update type attribute.
10280         (xordi3_insn): Likewise.
10281         (one_cmpldi2): Likewise.
10282         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
10283         * config/arm/neon.md (neon_mov): Update type attribute.
10284         (*movmisalign<mode>_neon_store): Likewise.
10285         (*movmisalign<mode>_neon_load): Likewise.
10286         (vec_set<mode>_internal): Likewise.
10287         (vec_set<mode>_internal): Likewise.
10288         (vec_setv2di_internal): Likewise.
10289         (vec_extract<mode>): Likewise.
10290         (vec_extract<mode>): Likewise.
10291         (vec_extractv2di): Likewise.
10292         (*add<mode>3_neon): Likewise.
10293         (adddi3_neon): Likewise.
10294         (*sub<mode>3_neon): Likewise.
10295         (subdi3_neon): Likewise.
10296         (fma<VCVTF:mode>4): Likewise.
10297         (fma<VCVTF:mode>4_intrinsic): Likewise.
10298         (*fmsub<VCVTF:mode>4): Likewise.
10299         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10300         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10301         (ior<mode>3): Likewise.
10302         (and<mode>3): Likewise.
10303         (orn<mode>3_neon): Likewise.
10304         (orndi3_neon): Likewise.
10305         (bic<mode>3_neon): Likewise.
10306         (bicdi3_neon): Likewise.
10307         (xor<mode>3): Likewise.
10308         (one_cmpl<mode>2): Likewise.
10309         (abs<mode>2): Likewise.
10310         (neg<mode>2): Likewise.
10311         (negdi2_neon): Likewise.
10312         (*umin<mode>3_neon): Likewise.
10313         (*umax<mode>3_neon): Likewise.
10314         (*smin<mode>3_neon): Likewise.
10315         (*smax<mode>3_neon): Likewise.
10316         (vashl<mode>3): Likewise.
10317         (vashr<mode>3_imm): Likewise.
10318         (vlshr<mode>3_imm): Likewise.
10319         (ashl<mode>3_signed): Likewise.
10320         (ashl<mode>3_unsigned): Likewise.
10321         (neon_load_count): Likewise.
10322         (ashldi3_neon_noclobber): Likewise.
10323         (ashldi3_neon): Likewise.
10324         (signed_shift_di3_neon): Likewise.
10325         (unsigned_shift_di3_neon): Likewise.
10326         (ashrdi3_neon_imm_noclobber): Likewise.
10327         (lshrdi3_neon_imm_noclobber): Likewise.
10328         (<shift>di3_neon): Likewise.
10329         (widen_ssum<mode>3): Likewise.
10330         (widen_usum<mode>3): Likewise.
10331         (quad_halves_<code>v4si): Likewise.
10332         (quad_halves_<code>v4sf): Likewise.
10333         (quad_halves_<code>v8hi): Likewise.
10334         (quad_halves_<code>v16qi): Likewise.
10335         (reduc_splus_v2di): Likewise.
10336         (neon_vpadd_internal<mode>): Likewise.
10337         (neon_vpsmin<mode>): Likewise.
10338         (neon_vpsmax<mode>): Likewise.
10339         (neon_vpumin<mode>): Likewise.
10340         (neon_vpumax<mode>): Likewise.
10341         (*ss_add<mode>_neon): Likewise.
10342         (*us_add<mode>_neon): Likewise.
10343         (*ss_sub<mode>_neon): Likewise.
10344         (*us_sub<mode>_neon): Likewise.
10345         (neon_vadd<mode>_unspec): Likewise.
10346         (neon_vaddl<mode>): Likewise.
10347         (neon_vaddw<mode>): Likewise.
10348         (neon_vhadd<mode>): Likewise.
10349         (neon_vqadd<mode>): Likewise.
10350         (neon_vaddhn<mode>): Likewise.
10351         (neon_vmul<mode>): Likewise.
10352         (neon_vfms<VCVTF:mode>): Likewise.
10353         (neon_vmlal<mode>): Likewise.
10354         (neon_vmls<mode>): Likewise.
10355         (neon_vmlsl<mode>): Likewise.
10356         (neon_vqdmulh<mode>): Likewise.
10357         (neon_vqdmlal<mode>): Likewise.
10358         (neon_vqdmlsl<mode>): Likewise.
10359         (neon_vmull<mode>): Likewise.
10360         (neon_vqdmull<mode>): Likewise.
10361         (neon_vsub<mode>_unspec): Likewise.
10362         (neon_vsubl<mode>): Likewise.
10363         (neon_vsubw<mode>): Likewise.
10364         (neon_vqsub<mode>): Likewise.
10365         (neon_vhsub<mode>): Likewise.
10366         (neon_vsubhn<mode>): Likewise.
10367         (neon_vceq<mode>): Likewise.
10368         (neon_vcge<mode>): Likewise.
10369         (neon_vcgeu<mode>): Likewise.
10370         (neon_vcgt<mode>): Likewise.
10371         (neon_vcgtu<mode>): Likewise.
10372         (neon_vcle<mode>): Likewise.
10373         (neon_vclt<mode>): Likewise.
10374         (neon_vcage<mode>): Likewise.
10375         (neon_vcagt<mode>): Likewise.
10376         (neon_vtst<mode>): Likewise.
10377         (neon_vabd<mode>): Likewise.
10378         (neon_vabdl<mode>): Likewise.
10379         (neon_vaba<mode>): Likewise.
10380         (neon_vabal<mode>): Likewise.
10381         (neon_vmax<mode>): Likewise.
10382         (neon_vmin<mode>): Likewise.
10383         (neon_vpaddl<mode>): Likewise.
10384         (neon_vpadal<mode>): Likewise.
10385         (neon_vpmax<mode>): Likewise.
10386         (neon_vpmin<mode>): Likewise.
10387         (neon_vrecps<mode>): Likewise.
10388         (neon_vrsqrts<mode>): Likewise.
10389         (neon_vqabs<mode>): Likewise.
10390         (neon_vqneg<mode>): Likewise.
10391         (neon_vcls<mode>): Likewise.
10392         (clz<mode>2): Likewise.
10393         (popcount<mode>2): Likewise.
10394         (neon_vrecpe<mode>): Likewise.
10395         (neon_vrsqrte<mode>): Likewise.
10396         (neon_vget_lane<mode>_sext_internal): Likewise.
10397         (neon_vget_lane<mode>_zext_internal): Likewise.
10398         (neon_vdup_n<mode>): Likewise.
10399         (neon_vdup_n<mode>): Likewise.
10400         (neon_vdup_nv2di): Likewise.
10401         (neon_vdup_lane<mode>_interal): Likewise.
10402         (*neon_vswp<mode>): Likewise.
10403         (neon_vcombine<mode>): Likewise.
10404         (float<mode><V_cvtto>2): Likewise.
10405         (floatuns<mode><V_cvtto>2): Likewise.
10406         (fix_trunc<mode><V_cvtto>2): Likewise.
10407         (fixuns_trunc<mode><V_cvtto>2
10408         (neon_vcvt<mode>): Likewise.
10409         (neon_vcvt<mode>): Likewise.
10410         (neon_vcvtv4sfv4hf): Likewise.
10411         (neon_vcvtv4hfv4sf): Likewise.
10412         (neon_vcvt_n<mode>): Likewise.
10413         (neon_vcvt_n<mode>): Likewise.
10414         (neon_vmovn<mode>): Likewise.
10415         (neon_vqmovn<mode>): Likewise.
10416         (neon_vqmovun<mode>): Likewise.
10417         (neon_vmovl<mode>): Likewise.
10418         (neon_vmul_lane<mode>): Likewise.
10419         (neon_vmul_lane<mode>): Likewise.
10420         (neon_vmull_lane<mode>): Likewise.
10421         (neon_vqdmull_lane<mode>): Likewise.
10422         (neon_vqdmulh_lane<mode>): Likewise.
10423         (neon_vqdmulh_lane<mode>): Likewise.
10424         (neon_vmla_lane<mode>): Likewise.
10425         (neon_vmla_lane<mode>): Likewise.
10426         (neon_vmlal_lane<mode>): Likewise.
10427         (neon_vqdmlal_lane<mode>): Likewise.
10428         (neon_vmls_lane<mode>): Likewise.
10429         (neon_vmls_lane<mode>): Likewise.
10430         (neon_vmlsl_lane<mode>): Likewise.
10431         (neon_vqdmlsl_lane<mode>): Likewise.
10432         (neon_vext<mode>): Likewise.
10433         (neon_vrev64<mode>): Likewise.
10434         (neon_vrev32<mode>): Likewise.
10435         (neon_vrev16<mode>): Likewise.
10436         (neon_vbsl<mode>_internal): Likewise.
10437         (neon_vshl<mode>): Likewise.
10438         (neon_vqshl<mode>): Likewise.
10439         (neon_vshr_n<mode>): Likewise.
10440         (neon_vshrn_n<mode>): Likewise.
10441         (neon_vqshrn_n<mode>): Likewise.
10442         (neon_vqshrun_n<mode>): Likewise.
10443         (neon_vshl_n<mode>): Likewise.
10444         (neon_vqshl_n<mode>): Likewise.
10445         (neon_vqshlu_n<mode>): Likewise.
10446         (neon_vshll_n<mode>): Likewise.
10447         (neon_vsra_n<mode>): Likewise.
10448         (neon_vsri_n<mode>): Likewise.
10449         (neon_vsli_n<mode>): Likewise.
10450         (neon_vtbl1v8qi): Likewise.
10451         (neon_vtbl2v8qi): Likewise.
10452         (neon_vtbl3v8qi): Likewise.
10453         (neon_vtbl4v8qi): Likewise.
10454         (neon_vtbl1v16qi): Likewise.
10455         (neon_vtbl2v16qi): Likewise.
10456         (neon_vcombinev16qi): Likewise.
10457         (neon_vtbx1v8qi): Likewise.
10458         (neon_vtbx2v8qi): Likewise.
10459         (neon_vtbx3v8qi): Likewise.
10460         (neon_vtbx4v8qi): Likewise.
10461         (*neon_vtrn<mode>_insn): Likewise.
10462         (*neon_vzip<mode>_insn): Likewise.
10463         (*neon_vuzp<mode>_insn): Likewise.
10464         (neon_vld1<mode>): Likewise.
10465         (neon_vld1_lane<mode>): Likewise.
10466         (neon_vld1_lane<mode>): Likewise.
10467         (neon_vld1_dup<mode>): Likewise.
10468         (neon_vld1_dup<mode>): Likewise.
10469         (neon_vld1_dupv2di): Likewise.
10470         (neon_vst1<mode>): Likewise.
10471         (neon_vst1_lane<mode>): Likewise.
10472         (neon_vst1_lane<mode>): Likewise.
10473         (neon_vld2<mode>): Likewise.
10474         (neon_vld2<mode>): Likewise.
10475         (neon_vld2_lane<mode>): Likewise.
10476         (neon_vld2_lane<mode>): Likewise.
10477         (neon_vld2_dup<mode>): Likewise.
10478         (neon_vst2<mode>): Likewise.
10479         (neon_vst2<mode>): Likewise.
10480         (neon_vst2_lane<mode>): Likewise.
10481         (neon_vst2_lane<mode>): Likewise.
10482         (neon_vld3<mode>): Likewise.
10483         (neon_vld3qa<mode>): Likewise.
10484         (neon_vld3qb<mode>): Likewise.
10485         (neon_vld3_lane<mode>): Likewise.
10486         (neon_vld3_lane<mode>): Likewise.
10487         (neon_vld3_dup<mode>): Likewise.
10488         (neon_vst3<mode>): Likewise.
10489         (neon_vst3qa<mode>): Likewise.
10490         (neon_vst3qb<mode>): Likewise.
10491         (neon_vst3_lane<mode>): Likewise.
10492         (neon_vst3_lane<mode>): Likewise.
10493         (neon_vld4<mode>): Likewise.
10494         (neon_vld4qa<mode>): Likewise.
10495         (neon_vld4qb<mode>): Likewise.
10496         (neon_vld4_lane<mode>): Likewise.
10497         (neon_vld4_lane<mode>): Likewise.
10498         (neon_vld4_dup<mode>): Likewise.
10499         (neon_vst4<mode>): Likewise.
10500         (neon_vst4qa<mode>): Likewise.
10501         (neon_vst4qb<mode>): Likewise.
10502         (neon_vst4_lane<mode>): Likewise.
10503         (neon_vst4_lane<mode>): Likewise.
10504         (neon_vec_unpack<US>_lo_<mode>): Likewise.
10505         (neon_vec_unpack<US>_hi_<mode>): Likewise.
10506         (neon_vec_<US>mult_lo_<mode>): Likewise.
10507         (neon_vec_<US>mult_hi_<mode>): Likewise.
10508         (neon_vec_<US>shiftl_<mode>): Likewise.
10509         (neon_unpack<US>_<mode>): Likewise.
10510         (neon_vec_<US>mult_<mode>): Likewise.
10511         (vec_pack_trunc_<mode>): Likewise.
10512         (neon_vec_pack_trunc_<mode>): Likewise.
10513         (neon_vabd<mode>_2): Likewise.
10514         (neon_vabd<mode>_3): Likewise.
10516 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10518         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
10519         (load_pair): Update type attribute.
10520         (store_pair): Update type attribute.
10521         * config/aarch64/iterators.md (q): New.
10523 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10525         * config/arm/types.md: Add new types for Neon insns.
10527 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10528             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10529             Sergey Lega  <sergey.s.lega@intel.com>
10530             Anna Tikhonova  <anna.tikhonova@intel.com>
10531             Ilya Tocar  <ilya.tocar@intel.com>
10532             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10533             Ilya Verbin  <ilya.verbin@intel.com>
10534             Kirill Yukhin  <kirill.yukhin@intel.com>
10535             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10537         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
10538         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
10539         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
10540         (rcp14<mode>): New.
10541         (srcp14<mode>): Ditto.
10542         (rsqrt14<mode>): Ditto.
10543         (rsqrt14<mode>): Ditto.
10544         (avx512f_vmscalef<mode>): Ditto.
10545         (avx512f_scalef<mode>): Ditto.
10546         (avx512f_getexp<mode>): Ditto.
10547         (avx512f_sgetexp<mode>): Ditto.
10548         (avx512f_fixupimm<mode>): Ditto.
10549         (avx512f_sfixupimm<mode>): Ditto.
10550         (avx512f_rndscale<mode>): Ditto.
10551         (*avx512er_exp2<mode>): Ditto.
10552         (*avx512er_rcp28<mode>): Ditto.
10553         (avx512er_rsqrt28<mode>): Ditto.
10554         (avx512f_getmant<mode>): Ditto.
10555         (avx512f_getmant<mode>): Ditto.
10556         (avx512f_rndscale<mode>): Fix formatting.
10558 2013-10-15  Martin Jambor  <mjambor@suse.cz>
10560         * ipa-utils.h (ipa_edge_within_scc): Declare.
10561         * ipa-cp.c (edge_within_scc): Moved...
10562         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
10564 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10565             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10566             Sergey Lega  <sergey.s.lega@intel.com>
10567             Anna Tikhonova  <anna.tikhonova@intel.com>
10568             Ilya Tocar  <ilya.tocar@intel.com>
10569             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10570             Ilya Verbin  <ilya.verbin@intel.com>
10571             Kirill Yukhin  <kirill.yukhin@intel.com>
10572             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10574         * config/i386/predicates.md (const_8_to_15_operand): New.
10575         (const_16_to_31_operand): Ditto.
10576         * config/i386/sse.md (V8FI): New.
10577         (V16FI): Ditto.
10578         (reduc_splus_v8df): Ditto.
10579         (reduc_splus_v16sf): Ditto.
10580         (avx512f_vextract<shuffletype>32x4_1): Ditto.
10581         (vec_extract_hi_<mode>): Ditto.
10582         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
10583         (vec_set_lo_<mode>): Ditto.
10584         (vec_set_hi_<mode>): Ditto.
10585         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
10586         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
10587         (avx512f_pshufd_1): Ditto.
10588         (avx512f_broadcast<mode>): Ditto.
10589         (avx512f_broadcast<mode>): Ditto.
10590         (define_split): Split vec_extract_lo into move.
10591         (ssequartermode): Ditto.
10592         (ssedoublemode): Extened with wider modes.
10593         (vec_extract_lo_<mode>): Ditto.
10595 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10596             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10597             Sergey Lega  <sergey.s.lega@intel.com>
10598             Anna Tikhonova  <anna.tikhonova@intel.com>
10599             Ilya Tocar  <ilya.tocar@intel.com>
10600             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10601             Ilya Verbin  <ilya.verbin@intel.com>
10602             Kirill Yukhin  <kirill.yukhin@intel.com>
10603             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10605         * config/i386/predicates.md (register_or_constm1_operand): New.
10606         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
10607         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
10608         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
10609         UNSPEC_SCATTER_PREFETCH
10610         (VI48_512): New.
10611         (avx512f_ucmp<mode>3): Ditto.
10612         (avx512f_vternlog<mode>): Ditto.
10613         (avx512f_align<mode>): Ditto.
10614         (<shift_insn><mode>3): Ditto.
10615         (avx512f_<rotate>v<mode>): Ditto.
10616         (avx512f_<rotate><mode>): Ditto.
10617         (avx512f_eq<mode>3): Ditto.
10618         (avx512f_eq<mode>3_1): Ditto.
10619         (avx512f_gt<mode>3): Ditto.
10620         (avx512f_testm<mode>3): Ditto.
10621         (avx512f_testnm<mode>3): Ditto.
10622         (avx512pf_gatherpf<mode>): Ditto.
10623         (*avx512pf_gatherpf<mode>_mask): Ditto.
10624         (*avx512pf_gatherpf<mode>): Ditto.
10625         (avx512pf_scatterpf<mode>): Ditto.
10626         (*avx512pf_scatterpf<mode>_mask): Ditto.
10627         (*avx512pf_scatterpf<mode>): Ditto.
10628         (avx512f_vec_dup_gpr<mode>): Ditto.
10629         (clz<mode>2): Ditto.
10630         (conflict<mode>): Ditto.
10631         (REDUC_SMINMAX_MODE): Extened with wider modes.
10632         (reduc_<code>_<mode>): Ditto.
10633         (vlshr<mode>3): Ditto.
10634         (vashl<mode>3): Ditto.
10636 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10637             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10638             Sergey Lega  <sergey.s.lega@intel.com>
10639             Anna Tikhonova  <anna.tikhonova@intel.com>
10640             Ilya Tocar  <ilya.tocar@intel.com>
10641             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10642             Ilya Verbin  <ilya.verbin@intel.com>
10643             Kirill Yukhin  <kirill.yukhin@intel.com>
10644             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10646         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
10647         UNSPEC_SCATTER.
10648         (VI48F_512): New.
10649         (avx512fmaskmode): Ditto.
10650         (bcstscalarsuff): Ditto.
10651         (avx512f_blendm<mode>): Ditto.
10652         (cmp_imm_predicate): Ditto.
10653         (avx512f_cmp<mode>3): Ditto.
10654         (avx512f_vec_dup<mode>): Ditto.
10655         (avx512f_vec_dup_mem<mode>): Ditto.
10656         (avx512f_vpermi2var<mode>3): Ditto.
10657         (avx512f_vpermt2var<mode>3): Ditto.
10658         (vec_init<mode>): Ditto.
10659         (avx512f_gathersi<mode>): Ditto.
10660         (*avx512f_gathersi<mode>): Ditto.
10661         (*avx512f_gathersi<mode>_2): Ditto.
10662         (avx512f_gatherdi<mode>): Ditto.
10663         (*avx512f_gatherdi<mode>): Ditto.
10664         (*avx512f_gatherdi<mode>_2): Ditto.
10665         (avx512f_scattersi<mode>): Ditto.
10666         (*avx512f_scattersi<mode>): Ditto.
10667         (avx512f_scatterdi<mode>): Ditto.
10668         (*avx512f_scatterdi<mode>): Ditto.
10669         (sseintprefix): Extened with wider modes.
10670         (VEC_GATHER_IDXSI): Ditto.
10671         (VEC_GATHER_IDXDI): Ditto.
10672         (VEC_GATHER_SRCDI): Ditto.
10674 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
10675             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10677         * config/arm/t-aprofile: New file.
10678         * config.gcc: Handle --with-multilib-list option.
10680 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
10682         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
10683         the input for r2.
10685 2013-10-15  Richard Biener  <rguenther@suse.de>
10687         * tree-loop-distribution.c (build_empty_rdg): Inline into
10688         single user.
10689         (rdg_flag_vertex): Inline into single user.
10690         (rdg_flag_vertex_and_dependent): Likewise.
10691         (build_rdg_partition_for_vertex): Remove processed bitmap.
10692         (rdg_build_partitions): Simplify.
10694 2013-10-15  Richard Biener  <rguenther@suse.de>
10696         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
10697         Restructure forwarding through conversions and copies to
10698         avoid performing copy-propagation the wrong way.  Adjust
10699         recursion invocations.
10700         (forward_propagate_addr_expr): Add argument stating if we
10701         are recursing from a single-use.
10702         (ssa_forward_propagate_and_combine): Adjust.
10704 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
10706         * dumpfile.h (gcc::dump_manager): New class, to hold state
10707         relating to dumpfile management.
10708         (get_dump_file_name): Remove in favor of method of dump_manager.
10709         (dump_initialized_p): Likewise.
10710         (dump_start): Likewise.
10711         (dump_finish): Likewise.
10712         (dump_switch_p): Likewise.
10713         (dump_register): Likewise.
10714         (get_dump_file_info): Likewise.
10715         * context.c (gcc::context::context): Construct the dump_manager
10716         instance.
10717         * context.h (gcc::context::get_dumps): New.
10718         (gcc::context::m_dumps): New.
10719         * coverage.c (coverage_init): Port to dump_manager API.
10720         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
10721         (extra_dump_files_in_use): Likewise.
10722         (extra_dump_files_alloced): Likewise.
10723         (gcc::dump_manager::dump_manager): New.
10724         (dump_register): Convert to...
10725         (gcc::dump_manager::dump_register): ...method, replacing
10726         function-static next_dump with m_next_dump field.
10727         (get_dump_file_info): Convert to...
10728         (gcc::dump_manager::get_dump_file_info): ...method.
10729         (get_dump_file_name): Convert to...
10730         (gcc::dump_manager::get_dump_file_name): ...method.
10731         (dump_start): Convert to...
10732         (gcc::dump_manager::dump_start): ...method.
10733         (dump_finish): Convert to...
10734         (gcc::dump_manager::dump_finish): ...method.
10735         (dump_begin): Replace body with...
10736         (gcc::dump_manager::dump_begin): ...new method.
10737         (dump_phase_enabled_p): Convert to...
10738         (gcc::dump_manager::dump_phase_enabled_p): ...method.
10739         (dump_phase_enabled_p): Convert to...
10740         (gcc::dump_manager::dump_phase_enabled_p): ...method.
10741         (dump_initialized_p):  Convert to...
10742         (gcc::dump_manager::dump_initialized_p): ...method.
10743         (dump_flag_name): Replace body with...
10744         (gcc::dump_manager::dump_flag_name): ...new method.
10745         (dump_enable_all): Convert to...
10746         (gcc::dump_manager::dump_enable_all): ...new method.
10747         (opt_info_enable_passes): Convert to...
10748         (gcc::dump_manager::opt_info_enable_passes): ...new method.
10749         (dump_switch_p_1): Convert to...
10750         (gcc::dump_manager::dump_switch_p_1): ...new method.
10751         (dump_switch_p):  Convert to...
10752         (gcc::dump_manager::dump_switch_p): ...new method.
10753         (opt_info_switch_p): Port to dump_manager API.
10754         (enable_rtl_dump_file): Likewise.
10755         * opts-global.c (handle_common_deferred_options): Port to new
10756         dump_manager API.
10757         * passes.c (pass_manager::finish_optimization_passes): Likewise.
10758         (pass_manager::register_one_dump_file): Likewise.
10759         (pass_manager::register_pass): Likewise.
10760         (pass_init_dump_file): Likewise.
10761         (pass_fini_dump_file): Likewise.
10762         * statistics.c (statistics_early_init): Likewise.
10764 2013-10-14  Richard Biener  <rguenther@suse.de>
10766         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
10767         iterative_hash_canonical_type, gimple_canonical_type_hash,
10768         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
10769         gimple_register_canonical_type, print_gimple_types_stats,
10770         free_gimple_type_tables): Move to lto/lto.c
10771         (gt-gimple.h): Do not include.
10772         * gimple.h (gimple_register_canonical_type,
10773         print_gimple_types_stats, free_gimple_type_tables): Remove.
10774         * Makefile.in (GTFILES): Remove gimple.c.
10776 2013-10-14  Travis Snoozy  <quandary@remstate.com>
10778         PR target/58716
10779         * config/msp430/msp430.c (msp430_option_override): Correct thinko
10780         scanning for msp430x targets.
10782 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
10784         PR bootstrap/58509
10785         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
10786         (registers_ok_for_ldd_peep): Move around.
10787         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
10788         * config/sparc/sparc.md (widening peepholes): Use it.
10790 2013-10-14  Richard Biener  <rguenther@suse.de>
10792         PR middle-end/58712
10793         PR middle-end/55358
10794         * gimple.c (iterative_hash_canonical_type): Make sure to
10795         record the hash into the correct hashtable slot.
10797 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
10799         PR rtl-optimization/58662
10800         * combine.c (try_combine): Take into account death nodes on I2 when
10801         splitting a PARALLEL of two independent SETs.  Fix dump message.
10803 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
10805         PR target/51244
10806         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
10807         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
10808         extra_objs.
10809         * config/sh/t-sh (sh_treg_combine.o): New entry.
10810         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
10811         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
10812         (register_sh_passes): New function.  Register sh_treg_combine pass.
10813         (sh_option_override): Invoke it.
10814         (sh_canonicalize_comparison): Handle op0_preserve_value.
10815         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
10816         opportunities.  Canonicalize branch condition.
10817         (nott): Allow only if pseudos can be created for non-SH2A.
10819 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
10821         PR target/58690
10822         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
10823         (ix86_expand_movmem): Replace copy_addr_to_reg with
10824         ix86_copy_addr_to_reg.
10825         (ix86_expand_setmem): Likewise.
10827 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
10829         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
10830         provided by ix86_fp_compare_mode instead of CCFPUmode.
10832 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
10834         * config/aarch64/arm_neon.h
10835         (vtbx<1,3>_<psu>8): Fix register constriants.
10837 2013-10-11  Jeff Law  <law@redhat.com>
10839         PR tree-optimization/58640
10840         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
10841         threading paths that cross over two loop entry points.
10843 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10845         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
10846         handle vector float as well.
10847         (*vsx_le_perm_load_v4si): Likewise.
10848         (*vsx_le_perm_store_v2di): Likewise.
10849         (*vsx_le_perm_store_v4si): Likewise.
10851 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10853         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
10854         directly to circumvent subtract from splat{31} workaround.
10855         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
10856         prototype.
10857         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
10858         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
10859         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
10860         (altivec_vperm_<mode>): Convert to define_insn_and_split to
10861         separate big and little endian logic.
10862         (*altivec_vperm_<mode>_internal): New define_insn.
10863         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
10864         separate big and little endian logic.
10865         (*altivec_vperm_<mode>_uns_internal): New define_insn.
10866         (vec_permv16qi): Add little endian logic.
10868 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
10870         * doc/extend.texi (returns_nonnull): Remove arguments.
10872 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10873             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10874             Sergey Lega  <sergey.s.lega@intel.com>
10875             Anna Tikhonova  <anna.tikhonova@intel.com>
10876             Ilya Tocar  <ilya.tocar@intel.com>
10877             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10878             Ilya Verbin  <ilya.verbin@intel.com>
10879             Kirill Yukhin  <kirill.yukhin@intel.com>
10880             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10882         * config/i386/sse.md (VI48F_256_512): New.
10883         (avx2_permvar<mode>): Change to ...
10884         (<avx2_avx512f>_permvar<mode>): This.
10886 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10887             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10888             Sergey Lega  <sergey.s.lega@intel.com>
10889             Anna Tikhonova  <anna.tikhonova@intel.com>
10890             Ilya Tocar  <ilya.tocar@intel.com>
10891             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10892             Ilya Verbin  <ilya.verbin@intel.com>
10893             Kirill Yukhin  <kirill.yukhin@intel.com>
10894             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10896         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
10897         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
10898         * config/i386/sse.md (VI4_AVX): New.
10899         (sf2simodelower): Ditto.
10900         (sse2_cvtps2dq): Change to ...
10901         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
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/sse.md (V_512): New.
10914         (VI_512): Ditto.
10915         (vcond<V_512:mode><VF_512:mode>): Ditto.
10916         (vcond<V_512:mode><VI_512:mode>): Ditto.
10917         (vcondu<V_512:mode><VI_512:mode>): Ditto.
10919 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10920             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10921             Sergey Lega  <sergey.s.lega@intel.com>
10922             Anna Tikhonova  <anna.tikhonova@intel.com>
10923             Ilya Tocar  <ilya.tocar@intel.com>
10924             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10925             Ilya Verbin  <ilya.verbin@intel.com>
10926             Kirill Yukhin  <kirill.yukhin@intel.com>
10927             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10929         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
10930         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
10931         (FMAMODE): Ditto.
10932         (fma<mode>4): Removed condition.
10933         (fms<mode>4): Ditto.
10934         (fnma<mode>4): Ditto.
10935         (fnms<mode>4): Ditto.
10936         (fma4i_fmadd_<mode>): Ditto.
10937         (*fma_fmadd_<mode>): Ditto.
10938         (*fma_fmsub_<mode>): Ditto.
10939         (*fma_fnmadd_<mode>): Ditto.
10940         (*fma_fnmsub_<mode>): Ditto.
10941         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
10942         (*fma_fmaddsub_<mode>): Ditto.
10943         (*fma_fmsubadd_<mode>): Ditto.
10944         (*fmai_fmadd_<mode>): Ditto.
10945         (*fmai_fmsub_<mode>): Ditto.
10946         (*fmai_fnmadd_<mode>): Ditto.
10947         (*fmai_fnmsub_<mode>): Ditto.
10949 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10950             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10951             Sergey Lega  <sergey.s.lega@intel.com>
10952             Anna Tikhonova  <anna.tikhonova@intel.com>
10953             Ilya Tocar  <ilya.tocar@intel.com>
10954             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10955             Ilya Verbin  <ilya.verbin@intel.com>
10956             Kirill Yukhin  <kirill.yukhin@intel.com>
10957             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10959         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
10960         (VI124_256): Changed to ...
10961         (VI124_256_48_512): This.
10962         (ssepackmode): Extended with wider modes.
10963         (<code><mode>3): Changed iterator.
10964         (*avx2_<code><mode>3): Ditto.
10965         (vec_pack_trunc_<mode>): Ditto.
10967 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10968             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10969             Sergey Lega  <sergey.s.lega@intel.com>
10970             Anna Tikhonova  <anna.tikhonova@intel.com>
10971             Ilya Tocar  <ilya.tocar@intel.com>
10972             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10973             Ilya Verbin  <ilya.verbin@intel.com>
10974             Kirill Yukhin  <kirill.yukhin@intel.com>
10975             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10977         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
10978         (VI8F_256_512): Ditto.
10979         (abs<mode>2): Changed iterator.
10980         (avx2_perm<mode>): Changed to ...
10981         (<avx2_avx512f>_perm<mode>): This.
10982         (avx2_perm<mode>_1): Changed to ...
10983         (<avx2_avx512f>_perm<mode>_1): This.
10985 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10986             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10987             Sergey Lega  <sergey.s.lega@intel.com>
10988             Anna Tikhonova  <anna.tikhonova@intel.com>
10989             Ilya Tocar  <ilya.tocar@intel.com>
10990             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10991             Ilya Verbin  <ilya.verbin@intel.com>
10992             Kirill Yukhin  <kirill.yukhin@intel.com>
10993             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10995         * config/i386/sse.md (VI48_AVX512F): New.
10996         (VI48_AVX2): Changed to ...
10997         (VI48_AVX2_48_AVX512F): This.
10998         (avx2_ashrv<mode>): Changed to ...
10999         (<avx2_avx512f>_ashrv<mode>): This.
11000         (avx2_<shift_insn>v<mode>): Changed to ...
11001         (<avx2_avx512f>_<shift_insn>v<mode>): This.
11003 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11004             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11005             Sergey Lega  <sergey.s.lega@intel.com>
11006             Anna Tikhonova  <anna.tikhonova@intel.com>
11007             Ilya Tocar  <ilya.tocar@intel.com>
11008             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11009             Ilya Verbin  <ilya.verbin@intel.com>
11010             Kirill Yukhin  <kirill.yukhin@intel.com>
11011             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11013         * config/i386/sse.md (VI4_AVX512F): New.
11014         (VI8_AVX2_AVX512F): Ditto.
11015         (mul<mode>3): Extended with wider modes.
11016         (*<sse4_1_avx2>_mul<mode>3): Ditto.
11017         (mul<mode>3): Ditto.
11018         (vec_widen_<s>mult_odd_<mode>): Ditto.
11020 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11021             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11022             Sergey Lega  <sergey.s.lega@intel.com>
11023             Anna Tikhonova  <anna.tikhonova@intel.com>
11024             Ilya Tocar  <ilya.tocar@intel.com>
11025             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11026             Ilya Verbin  <ilya.verbin@intel.com>
11027             Kirill Yukhin  <kirill.yukhin@intel.com>
11028             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11030         * config/i386/sse.md (VI2_AVX512F): New.
11031         (VI124_AVX512F): Ditto.
11032         (sseunpackmode): Extended with wider modes.
11033         (sseunpackfltmode): Ditto.
11034         (vec_unpacks_float_hi_<mode>): Ditto.
11035         (vec_unpacks_float_lo_<mode>): Ditto.
11036         (vec_unpacku_float_hi_<mode>): Ditto.
11037         (vec_unpacku_float_lo_<mode>): Ditto.
11038         (vec_unpacks_lo_<mode>): Ditto.
11039         (vec_unpacks_hi_<mode>): Ditto.
11040         (vec_unpacku_lo_<mode>): Ditto.
11041         (vec_unpacku_hi_<mode>): Ditto.
11043 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11044             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11045             Sergey Lega  <sergey.s.lega@intel.com>
11046             Anna Tikhonova  <anna.tikhonova@intel.com>
11047             Ilya Tocar  <ilya.tocar@intel.com>
11048             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11049             Ilya Verbin  <ilya.verbin@intel.com>
11050             Kirill Yukhin  <kirill.yukhin@intel.com>
11051             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11053         * config/i386/i386.md (multdiv): New.
11054         (multdiv_mnemonic): Ditto.
11055         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11056         (<sse>_vm<multdiv_mnemonic><mode>3): This.
11057         (<sse>_vmdiv<mode>3): Removed.
11059 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11060             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11061             Sergey Lega  <sergey.s.lega@intel.com>
11062             Anna Tikhonova  <anna.tikhonova@intel.com>
11063             Ilya Tocar  <ilya.tocar@intel.com>
11064             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11065             Ilya Verbin  <ilya.verbin@intel.com>
11066             Kirill Yukhin  <kirill.yukhin@intel.com>
11067             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11069         * config/i386/sse.md (V): Extended with wider modes.
11070         (VF2): Ditto.
11071         (ssehalfvecmode): Ditto.
11072         (i128): Ditto.
11073         (ssepackfltmode): Ditto.
11074         (avx_vec_concat<mode>): Ditto.
11075         (V_256_512): New iterator.
11076         (VF2_512_256): Ditto.
11077         (si2dfmode): New attribute.
11078         (si2dfmodelower): Ditto.
11079         (sf2dfmode): Ditto.
11080         (concat_tg_mode): Ditto.
11081         (floatv4siv4df2): Changed to ...
11082         (float<si2dfmodelower><mode>2): This.
11083         (avx_cvtps2pd256): Changed to ...
11084         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11085         (vec_pack_trunc_v4df): Changed to ...
11086         (vec_pack_trunc_<mode>): This.
11087         (avx_vpermil<mode>): Changed to ...
11088         (<sse2_avx_avx512f>_vpermil<mode>): This.
11089         (<fixsuffix>fix_truncv8dfv8si2): New.
11090         (vec_pack_sfix_trunc_v8df): Ditto.
11091         (avx512f_rndscale<mode>): Ditto.
11092         (avx512f_roundpd512): Ditto.
11093         (vec_pack_ufix_trunc_<mode>): Updated iterator.
11095 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11096             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11097             Sergey Lega  <sergey.s.lega@intel.com>
11098             Anna Tikhonova  <anna.tikhonova@intel.com>
11099             Ilya Tocar  <ilya.tocar@intel.com>
11100             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11101             Ilya Verbin  <ilya.verbin@intel.com>
11102             Kirill Yukhin  <kirill.yukhin@intel.com>
11103             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11105         * config/i386/i386.md (any_fix): New iterator.
11106         (fixsuffix): New attribute.
11107         * config/i386/sse.md (VF1): Extened with wider modes.
11108         (VI): Ditto.
11109         (VI_AVX2): Ditto.
11110         (VI8): Ditto.
11111         (sseintvecmodelower): Ditto.
11112         (ssescalarmode): Ditto.
11113         (ssescalarnum): Ditto.
11114         (VF1_128_256): New.
11115         (ssexmmmode): Ditto.
11116         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11117         (<sse>_rcp<mode>2): Change iterator.
11118         (rsqrt<mode>2): Ditto.
11119         (<sse>_rsqrt<mode>2): Ditto.
11120         (avx2_vec_dup<mode>): Ditto.
11121         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11122         (round<mode>2_sfix): Ditto.
11123         (avx2_pbroadcast<mode>): Ditto.
11124         (*andnot<mode>3): Handle XI mode.
11125         (*<code><mode>3): Ditto.
11126         (AVXTOSSEMODE): Removed.
11127         (avx_vpermil<mode>): Changed to ...
11128         (<sse2_avx_avx512f>_vpermil<mode>): This.
11130 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11131             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11132             Sergey Lega  <sergey.s.lega@intel.com>
11133             Anna Tikhonova  <anna.tikhonova@intel.com>
11134             Ilya Tocar  <ilya.tocar@intel.com>
11135             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11136             Ilya Verbin  <ilya.verbin@intel.com>
11137             Kirill Yukhin  <kirill.yukhin@intel.com>
11138             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11140         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11141         (<sse>_comi): Ditto.
11142         (<sse>_ucomi): Ditto.
11143         (sse_cvtss2siq_2): Ditto.
11144         (sse2_cvtsd2si): Ditto.
11145         (sse2_cvtsd2siq): Ditto.
11146         (sse2_cvttsd2si): Ditto.
11147         (sse2_cvttsd2siq): Ditto.
11148         (<shift_insn><mode>3): Ditto.
11149         (sse2_cvtsi2sdq): Update constraint and prefix.
11150         (sse_cvtsi2ss): Update prefix.
11151         (sse_cvtsi2ssq): Ditto.
11153 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11155         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11156         ignore internal calls.
11158 2013-10-11  Richard Biener  <rguenther@suse.de>
11160         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11161         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
11162         TREE_OVERFLOW is set.
11164 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
11166         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11168         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11169         * gimple.h: Likewise.
11171         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11173         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11174         macros.
11176         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11178         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11179         * configure: Regenerate.
11181 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11183         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11184         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11185         formatting fixes, use pp_colon instead of pp_character (..., ':'),
11186         similarly pp_right_paren.
11187         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11188         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11189         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11190         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11191         clauses.
11192         (omp_declare_simd_clauses_equal,
11193         omp_remove_redundant_declare_simd_attrs): New functions.
11194         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11195         (walk_tree_1): Handle new OpenMP 4.0 clauses.
11196         * tree.h (OMP_LOOP_CHECK): Define.
11197         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11198         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11199         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11200         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11201         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11202         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11203         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11204         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11205         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11206         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11207         OMP_CLAUSE_SIMDLEN_EXPR): Define.
11208         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11209         (omp_remove_redundant_declare_simd_attrs): New prototype.
11210         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11211         GIMPLE_OMP_TEAMS): New codes.
11212         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11213         * omp-low.c (struct omp_context): Add cancel_label and cancellable
11214         fields.
11215         (target_nesting_level): New variable.
11216         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
11217         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
11218         for collapse > 1 static schedule unless ordered.
11219         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
11220         (determine_parallel_type): Adjust get_ws_args_for caller.
11221         (install_var_field): Handle mask & 4 for double indirection.
11222         (scan_sharing_clauses): Ignore shared clause on teams construct.
11223         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
11224         (create_omp_child_function): If inside target or declare target
11225         constructs, set "omp declare target" attribute on the child function.
11226         (find_combined_for): New function.
11227         (scan_omp_parallel): Handle combined loops.
11228         (scan_omp_target, scan_omp_teams): New functions.
11229         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
11230         restrictions and set ctx->cancellable for cancellable constructs.
11231         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
11232         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
11233         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11234         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11235         (omp_clause_aligned_alignment): New function.
11236         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11237         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
11238         on teams constructs.  Handle user defined reductions and new
11239         OpenMP 4.0 clauses.
11240         (lower_reduction_clauses): Don't set placeholder to address of ref
11241         if it has already the right type.
11242         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11243         (expand_parallel_call): Use the new non-_start suffixed builtins,
11244         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11245         and GOMP_parallel_end after the call.
11246         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11247         (expand_omp_for_init_counts): Handle combined loops.
11248         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11249         loops.
11250         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
11251         end of cancellable loops.
11252         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11253         Likewise.  Handle collapse > 1 loops.
11254         (expand_omp_simd): Handle combined loops.
11255         (expand_omp_for): Add inner_stmt argument, adjust callers of
11256         expand_omp_for* functions, use expand_omp_for_static*chunk even
11257         for collapse > 1 unless ordered.
11258         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11259         of cancellable sections.
11260         (expand_omp_single): Remove need_barrier variable, just rely on
11261         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
11262         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11263         (expand_omp_atomic_load, expand_omp_atomic_store,
11264         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11265         (expand_omp_target): New function.
11266         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
11267         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11268         (build_omp_regions_1): Immediately close region for
11269         GF_OMP_TARGET_KIND_UPDATE.
11270         (maybe_add_implicit_barrier_cancel): New function.
11271         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
11272         cancellation.
11273         (lower_omp_single): Likewise.  Add clobber after the barrier.
11274         (lower_omp_taskgroup): New function.
11275         (lower_omp_for): Handle combined loops.  Adjust
11276         lower_rec_input_clauses caller.  Handle cancellation.
11277         (lower_depend_clauses): New function.
11278         (lower_omp_taskreg): Lower depend clauses.  Adjust
11279         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
11280         cancellation.
11281         (lower_omp_target, lower_omp_teams): New functions.
11282         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
11283         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
11284         and GOMP_cancellation_point calls.
11285         (lower_omp): Fold stmts inside of target region.
11286         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
11287         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11288         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
11289         (BT_FN_VOID_OMPFN_PTR_UINT,
11290         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11291         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
11292         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
11293         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
11294         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
11295         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
11296         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
11297         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11298         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11299         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
11300         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11301         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
11302         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
11303         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
11304         BUILT_IN_GOMP_PARALLEL_END.
11305         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
11306         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11307         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11308         GF_OMP_FOR_KIND_DISTRIBUTE.
11309         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
11310         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
11311         (dump_gimple_omp_return): Print lhs if it has any.
11312         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
11313         gimple_omp_atomic_seq_cst_p.
11314         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
11315         and GIMPLE_OMP_TEAMS.
11316         * langhooks.c (lhd_omp_mappable_type): New function.
11317         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
11318         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
11319         hook.
11320         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
11321         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
11322         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
11323         (struct gimplify_omp_ctx): Add combined_loop field.
11324         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
11325         on stmts inside of target region.
11326         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
11327         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
11328         ORT_TARGET and ORT_TARGET_DATA.
11329         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
11330         Handle GOVD_MAP.
11331         (omp_notice_threadprivate_variable): Complain about threadprivate
11332         variables in target region.
11333         (omp_notice_variable): Complain about vars with non-mappable type
11334         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
11335         (omp_check_private): Ignore ORT_TARGET* regions.
11336         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
11337         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
11338         (find_combined_omp_for): New function.
11339         (gimplify_omp_for): Handle gimplification of combined loops.
11340         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
11341         OMP_TEAMS.
11342         (gimplify_omp_target_update): New function.
11343         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
11344         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
11345         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
11346         (gimplify_body): If fndecl has "omp declare target" attribute, add
11347         implicit ORT_TARGET context around it.
11348         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
11349         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
11350         * tree-nested.c (convert_nonlocal_reference_stmt,
11351         convert_local_reference_stmt, convert_gimple_call): Handle
11352         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11353         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
11354         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
11355         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
11356         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
11357         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
11358         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
11359         BUILT_IN_GOMP_LOOP_END_CANCEL,
11360         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
11361         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
11362         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
11363         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
11364         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
11365         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
11366         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
11367         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
11368         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11369         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11370         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11371         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11372         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
11373         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
11374         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
11375         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11376         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
11377         gimple_build_omp_teams): New functions.
11378         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
11379         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
11380         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
11381         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11382         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
11383         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
11384         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
11385         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
11386         GF_OMP_ATOMIC_SEQ_CST): New.
11387         (gimple_build_omp_taskgroup, gimple_build_omp_target,
11388         gimple_build_omp_teams): New prototypes.
11389         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
11390         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11391         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
11392         GIMPLE_OMP_SINGLE as end of range.
11393         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
11394         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
11395         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
11396         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
11397         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
11398         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
11399         gimple_omp_target_kind, gimple_omp_target_set_kind,
11400         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
11401         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
11402         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
11403         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
11404         gimple_omp_teams_set_clauses): New inlines.
11405         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
11406         and GIMPLE_OMP_TASKGROUP.
11407         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
11408         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
11409         enum omp_clause_proc_bind_kind): New.
11410         (union omp_clause_subcode): Add depend_kind, map_kind and
11411         proc_bind_kind fields.
11412         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
11413         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11414         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
11415         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
11416         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
11418 2013-10-10  Teresa Johnson  <tejohnson@google.com>
11420         * predict.c (tree_estimate_probability): Add new parameter
11421         for estimate_bb_frequencies.
11422         (estimate_bb_frequencies): Add new parameter to force estimation.
11423         (rebuild_frequencies): When max frequency in function is small,
11424         recompute counts from frequencies.
11425         * predict.h (estimate_bb_frequencies): New parameter.
11427 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
11429         * ipa-inline.c (ipa_inline): Fix leak of "order" when
11430         optimizations are disabled.
11432 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
11434         * coverage.c (coverage_finish): Fix leak of da_file_name.
11436 2013-10-10  Jan Hubicka  <jh@suse.cz>
11438         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
11439         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
11440         Bobcat and generic.
11442 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
11444         PR middle-end/58670
11445         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
11446         if any labels are in FALLTHRU_BB, use a special label emitted
11447         immediately after the asm goto insn rather than label_rtx
11448         of the LABEL_DECL.
11449         (expand_asm_stmt): Adjust caller.
11450         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
11451         edge if the last insn in predecessor is a jump with single successor,
11452         but it isn't simplejump_p.
11454 2013-10-10  Richard Biener  <rguenther@suse.de>
11456         PR tree-optimization/58656
11457         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
11459 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11461         * gimplify.c: Include expr.h and tm_p.h for targets with special
11462         va-arg padding requirements.
11464 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11466         * tree-flow.h: Move some prototypes to gimple.h.
11467         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
11468         * gimple.h: Relocate some prototypes from tree-flow.h
11469         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
11470         Move to gimplify.c.
11471         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
11472         (build_va_arg_indirect_ref): Relocate and make static.
11473         (std_gimplify_va_arg_expr): Relocate here.
11474         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
11475         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
11477 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11479         * doc/md.texi: Document the mnemonic attribute.
11481 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11483         PR target/57377
11484         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
11485         (set_attr_alternative x ...) when searching for user defined
11486         mnemonic attribute.
11488 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11490         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
11492 2013-10-09  Easwaran Raman <eraman@google.com>
11494         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
11495         * cfgexpand.c (defer_stack_allocation): ...use here
11496         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
11498 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11500         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
11501         (operand_equal_for_value_replacement): New function, extracted from
11502         value_replacement and enhanced to catch more cases.
11503         (value_replacement): Use operand_equal_for_value_replacement.
11505 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11507         * loop-doloop.c (doloop_modify, doloop_optimize): Use
11508         get_max_loop_iterations.
11510 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11512         * config/arm/aarch-common.c (arm_early_load_addr_dep):
11513         Place comment above function.
11515 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11517         * tree-flow.h: Remove all remaining prototypes, enums and structs that
11518         are not related to tree-cfg.c.
11519         * tree-ssa-address.h: New file.  Relocate prototypes.
11520         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
11521         (addr_for_mem_ref): New.  Combine call to get_address_description and
11522         return addr_for_mem_ref.
11523         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
11524         * tree-ssa-live.h: Adjust prototypes.
11525         * passes.c: Include tree-ssa-live.h.
11526         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
11527         * graphite.c (graphite_transform_loops): Make static.
11528         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11529         make_pass_graphite, pass_data_graphite_transforms,
11530         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
11531         * ipa-pure-const.c (warn_function_noreturn): Make static.
11532         (execute_warn_function_noreturn, gate_warn_function_noreturn,
11533         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11534         Relocate from tree-cfg.c
11535         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
11536         static.
11537         (execute_warn_function_noreturn, gate_warn_function_noreturn,
11538         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11539         Move to ipa-pure-const.c.
11540         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
11541         Relocate from tree-optimize.c.
11542         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
11543         make_pass_fixup_cfg): Move to tree-cfg.c.
11544         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
11545         Relocate some prototypes.
11546         * tree-data-ref.h (tree_check_data_deps) Add prototype.
11547         * tree-dump.c (dump_function_to_file): Remove prototype.
11548         Add tree-flow.h to the include file.
11549         * tree-dump.h: Remove prototype.
11550         * tree-parloops.h: New File.  Add prototypes.
11551         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
11552         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
11553         from tree-ssa-loop.c.
11554         * tree-predcom.c (run_tree_predictive_commoning,
11555         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
11556         Relocate here from tree-ssa-loop.c.
11557         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
11558         ssa_name_values.release ().
11559         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
11560         (ssa_name_values): Relocate from tree-flow.h.
11561         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
11562         * tree-ssa-loop.c (run_tree_predictive_commoning,
11563         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
11564         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11565         make_pass_graphite, pass_data_graphite_transforms,
11566         make_pass_graphite_transforms, gate_tree_parallelize_loops,
11567         tree_parallelize_loops, pass_data_parallelize_loops,
11568         make_pass_parallelize_loops): Move to other files.
11569         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
11570         moved here.
11571         * tree.h: Remove prototypes from tree-address.c.
11573 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11575         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
11576         (struct int_tree_map): Move to tree-hasher.h
11577         (SCALE, LABEL, PERCENT): Move to gimple.h
11578         * tree-flow-inline.h: Delete.  Move functions to other files.
11579         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
11580         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
11581         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
11582         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
11583         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
11584         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
11585         * tree-hasher.h: Don't include tree-flow.h.
11586         (struct int_tree_map): Relocate from tree-flow.h.
11587         * tree-sra.c (contains_view_convert_expr_p): Relocate from
11588         tree-flow-inline.h and make static.
11589         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
11590         tree-flow-inline.h.
11591         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
11592         tree-flow-inline.h and make static.
11593         * tree.h (is_global_var, may_be_aliased): Relocate from
11594         tree-flow-inline.h.
11595         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
11596         * value-prof.c: No longer include tree-flow-inline.h.
11597         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
11599 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11601         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
11602         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
11603         (enum move_pos): Move to tree-ssa-loop-im.h
11604         * cfgloop.h: Move some prototypes.
11605         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
11606         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
11607         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
11608         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
11609         (loop_containing_stmt): Relocate from tree-flow-inline.h.
11610         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
11611         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
11612         (enum move_pos): Relocate here.
11613         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
11614         tree-ssa-loop.c.
11615         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
11616         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
11617         make_pass_lim): Relocate here from tree-ssa-loop.c.
11618         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
11619         tree-ssa-loop.c.
11620         (loop_edge_to_cancel, unloop_loops): Make static.
11621         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11622         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
11623         (tree_complete_unroll, gate_tree_complete_unroll,
11624         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
11625         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11626         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
11627         * tree-ssa-loop-ivopts.c: Remove local prototypes.
11628         (stmt_invariant_in_loop_p): Remove unused function.
11629         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
11630         * tree-ssa-loop-manip.h: New file.  Add prototypes.
11631         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
11632         (gcov_type_to_double_int): Move to cfgloop.h.
11633         (double_int_cmp, bound_index,
11634         estimate_numbers_of_iterations_loop): Make static.
11635         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
11636         (max_loop_iterations): Factor out get_max_loop_iterations.
11637         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
11638         cfgloop.c.
11639         * tree-ssa-loop-niter.h: New file.  Add prototypes.
11640         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
11641         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
11642         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
11643         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
11644         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
11645         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
11646         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
11647         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
11648         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
11649         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
11650         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11651         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
11652         pass_data_complete_unroll, make_pass_complete_unroll,
11653         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11654         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
11655         tree-ssa-loop-ivcanon.c.
11656         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
11657         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
11658         tree-ssa-loop-prefetch.c.
11659         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
11660         tree-ssa-loop-im.c.
11661         (get_lsm_tmp_name): Relocate and add suffix parameter.
11662         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
11663         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
11664         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
11665         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
11666         (get_estimated_loop_iterations): Factor out accessor from
11667         estimated_loop_iterations in tree-ssa-loop-niter.c.
11668         (get_max_loop_iterations): Factor out accessor from
11669         _max_loop_iterations in tree-ssa-niter.c.
11670         * loop-unroll.c (decide_unroll_constant_iterations,
11671         decide_unroll_runtime_iterations, decide_peel_simple,
11672         decide_unroll_stupid): Use new get_* accessors.
11674 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
11676         PR tree-optimization/20318
11677         * doc/extend.texi (returns_nonnull): New function attribute.
11678         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
11679         attribute.
11680         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
11681         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
11683 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
11685         PR middle-end/58570
11686         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
11687         false if both components are bitfields.
11689 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11691         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
11692         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
11693         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
11694         * config/aarch64/aarch64.h
11695         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
11696         * config/aarch64/aarch64-simd-builtins.def
11697         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
11699 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11701         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
11703 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11705         * config/aarch64/arm_neon.h (vdiv_f64): Added.
11707 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11709         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
11710         (vneg_f64): New intrinsic.
11711         (vneg_s8): Asm replaced with C.
11712         (vneg_s16): Likewise.
11713         (vneg_s32): Likewise.
11714         (vneg_s64): New intrinsic.
11715         (vnegq_f32): Asm replaced with C.
11716         (vnegq_f64): Likewise.
11717         (vnegq_s8): Likewise.
11718         (vnegq_s16): Likewise.
11719         (vnegq_s32): Likewise.
11720         (vnegq_s64): Likewise.
11722 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
11724         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
11726 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11728         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
11729         packed stack special handling.
11730         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
11731         back to fixed stack slots for FPRs saved due to stdarg.
11733 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11735         * config/s390/s390.c (s390_frame_info): Restructure function.
11737 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11739         * config/s390/s390.c (struct s390_frame_layout): New field
11740         gpr_save_slots.
11741         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
11742         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
11743         regs_ever_clobbered to char*.
11744         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
11745         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
11746         (s390_register_info): Enable FPR save slots.  Move/Copy some
11747         functionality into ...
11748         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
11749         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
11750         function.
11751         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
11752         not imply a stack frame.
11753         (s390_init_frame_layout): Remove variable clobbered_regs.
11754         (s390_update_register_info): Remove function.
11755         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
11756         cannot be used for register renaming.
11757         (s390_hard_regno_scratch_ok): New function.
11758         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
11759         (s390_initial_elimination_offset): Change offset calculation of
11760         the return address pointer.
11761         (save_gprs): Deal with only r6 being saved from the call-saved regs.
11762         (restore_gprs): Set frame related flag.
11763         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
11764         (s390_emit_prologue): Call s390_register_info instead of
11765         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
11766         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
11767         (s390_optimize_prologue): Call s390_optimize_register_info.
11768         Try to remove also FPR slot save/restore INSNs.  Remove frame
11769         related flags from restore INSNs.
11771 2013-10-08  DJ Delorie  <dj@redhat.com>
11773         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
11774         (movhi): Likewise.
11776         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
11777         avoid conflict with the MI use of %c.
11778         * config/rl78/rl78-real.md: change %c to %C throughout.
11779         * config/rl78/rl78-virt.md: Likewise.
11781 2013-10-08  Jan Hubicka  <jh@suse.cz>
11783         * config/i386/i386.c (ix86_option_override_internal): Switch
11784         to SSE math for -ffast-math when target ISA supports SSE2.
11786 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
11788         * tree-flow.h: Remove some prototypes.
11789         * tree.h: Remove some protypes, add a couple.
11790         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
11791         using_eh_for_cleanups_p): Add interface routines for front ends.
11792         * tree-eh.h: New file.  Add protoptyes.
11793         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
11794         (add_stmt_to_eh_lp_fn): Make static.
11795         (lower_try_finally): Use new using_eh_for_cleanups_p.
11796         * emit-rtl.c: Include tree-eh.h.
11797         * gimple.h: Include tree-eh.h.
11799 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
11801         PR tree-optimization/58480
11802         * tree-vrp.c (infer_nonnull_range): New function.
11803         (infer_value_range): Call infer_nonnull_range.
11805 2013-10-08  Dehao Chen  <dehao@google.com>
11807         PR tree-optimization/58619
11808         * tree-inline.c (copy_phis_for_bb): Combine location data
11809         only if non-null.
11811 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11813         PR target/58423
11814         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
11815         RTX_FRAME_RELATED_P on INSN.
11817 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11819         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
11820         (altivec_expand_vec_perm_const): Call it.
11822 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11824         * config/rs6000/vector.md (mov<mode>): Emit permuted move
11825         sequences for LE VSX loads and stores at expand time.
11826         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
11827         prototype.
11828         * config/rs6000/rs6000.c (rs6000_const_vec): New.
11829         (rs6000_gen_le_vsx_permute): New.
11830         (rs6000_gen_le_vsx_load): New.
11831         (rs6000_gen_le_vsx_store): New.
11832         (rs6000_gen_le_vsx_move): New.
11833         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
11834         (*vsx_le_perm_load_v4si): New.
11835         (*vsx_le_perm_load_v8hi): New.
11836         (*vsx_le_perm_load_v16qi): New.
11837         (*vsx_le_perm_store_v2di): New.
11838         (*vsx_le_perm_store_v4si): New.
11839         (*vsx_le_perm_store_v8hi): New.
11840         (*vsx_le_perm_store_v16qi): New.
11841         (*vsx_xxpermdi2_le_<mode>): New.
11842         (*vsx_xxpermdi4_le_<mode>): New.
11843         (*vsx_xxpermdi8_le_V8HI): New.
11844         (*vsx_xxpermdi16_le_V16QI): New.
11845         (*vsx_lxvd2x2_le_<mode>): New.
11846         (*vsx_lxvd2x4_le_<mode>): New.
11847         (*vsx_lxvd2x8_le_V8HI): New.
11848         (*vsx_lxvd2x16_le_V16QI): New.
11849         (*vsx_stxvd2x2_le_<mode>): New.
11850         (*vsx_stxvd2x4_le_<mode>): New.
11851         (*vsx_stxvd2x8_le_V8HI): New.
11852         (*vsx_stxvd2x16_le_V16QI): New.
11854 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
11856         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
11858 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11860         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
11861         loop to work also for 31bit ABI.
11862         Save the stack pointer for frame_size > 0.
11864 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11866         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
11867         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
11868         constraint letters from expanders.
11869         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
11870         retry count to general_operand.
11871         ("tabort"): Give operand 0 a mode.
11872         ("tabort_1"): Add mode and constraint letter for operand 0.
11873         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
11875 2013-10-04  Jeff Law  <law@redhat.com>
11877         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
11879         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
11880         out of ...
11881         (thread_across_edge): Here.  Call it.
11883 2013-10-04  Cary Coutant  <ccoutant@google.com>
11885         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
11886         discarding a location list expression (or a piece of one).
11888 2013-10-03  Jan Hubicka  <jh@suse.cz>
11890         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
11891         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
11892         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
11894 2013-10-03  Jan Hubicka  <jh@suse.cz>
11896         * config/i386/i386.c (ix86_option_override_internal): Do not enable
11897         accumulate-outgoing-args when producing unwind info.
11899 2013-10-03  Wei Mi  <wmi@google.com>
11901         * lra-constraints.c (insert_move_for_subreg): New function
11902         extracted from simplify_operand_subreg.
11903         (simplify_operand_subreg): Add reload for paradoxical subreg.
11905 2013-10-03  Rong Xu  <xur@google.com>
11907         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
11908         the candidate of builtin_expect such that we should fix the
11909         size/time estimation.
11910         (estimate_function_body_sizes): Do the acutally size/time fix-up
11911         for builtin_expect.
11913 2013-10-03  Rong Xu  <xur@google.com>
11915         * predict.c (tree_predict_by_opcode): Get the probability
11916         for builtin_expect from param builtin_expect_probability.
11917         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
11918         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
11919         * doc/invoke.texi: Add documentation for builtin-expect-probability.
11921 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
11923         PR c++/19476
11924         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
11925         * calls.c (alloca_call_p): Use get_callee_fndecl.
11926         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
11927         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
11928         Likewise.
11929         (vrp_visit_stmt): Remove duplicated code.
11931 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
11933         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
11934         ceildf2, btruncdf2, instead of vsx_* name.
11936         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
11937         iterators to only do V2DF and V4SF here.  Move the DF code to
11938         rs6000.md where it is combined with SF mode.  Replace <VSv> with
11939         just 'v' since only vector operations are handled with these insns
11940         after moving the DF support to rs6000.md.
11941         (vsx_sub<mode>3): Likewise.
11942         (vsx_mul<mode>3): Likewise.
11943         (vsx_div<mode>3): Likewise.
11944         (vsx_fre<mode>2): Likewise.
11945         (vsx_neg<mode>2): Likewise.
11946         (vsx_abs<mode>2): Likewise.
11947         (vsx_nabs<mode>2): Likewise.
11948         (vsx_smax<mode>3): Likewise.
11949         (vsx_smin<mode>3): Likewise.
11950         (vsx_sqrt<mode>2): Likewise.
11951         (vsx_rsqrte<mode>2): Likewise.
11952         (vsx_fms<mode>4): Likewise.
11953         (vsx_nfma<mode>4): Likewise.
11954         (vsx_copysign<mode>3): Likewise.
11955         (vsx_btrunc<mode>2): Likewise.
11956         (vsx_floor<mode>2): Likewise.
11957         (vsx_ceil<mode>2): Likewise.
11958         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
11959         (vsx_sminsf3): Likewise.
11960         (vsx_fmadf4): Likewise.
11961         (vsx_fmsdf4): Likewise.
11962         (vsx_nfmadf4): Likewise.
11963         (vsx_nfmsdf4): Likewise.
11964         (vsx_cmpdf_internal1): Likewise.
11966         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
11967         simpler to select whether a target has SPE or traditional floating
11968         point support in iterators.
11969         (TARGET_DF_SPE): Likewise.
11970         (TARGET_SF_FPR): Likewise.
11971         (TARGET_DF_FPR): Likewise.
11972         (TARGET_SF_INSN): Macros to say whether floating point support
11973         exists for a given operation for expanders.
11974         (TARGET_DF_INSN): Likewise.
11976         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
11977         combining of SF/DF mode operations, using both traditional and VSX
11978         registers.
11979         (Fvsx): Likewise.
11980         (Ff): Likewise.
11981         (Fv): Likewise.
11982         (Fs): Likewise.
11983         (Ffre): Likewise.
11984         (FFRE): Likewise.
11985         (abs<mode>2): Combine SF/DF modes using traditional floating point
11986         instructions.  Add support for using the upper DF registers with
11987         VSX support, and SF registers with power8-vector support.  Update
11988         expanders for operations supported by both the SPE and traditional
11989         floating point units.
11990         (abs<mode>2_fpr): Likewise.
11991         (nabs<mode>2): Likewise.
11992         (nabs<mode>2_fpr): Likewise.
11993         (neg<mode>2): Likewise.
11994         (neg<mode>2_fpr): Likewise.
11995         (add<mode>3): Likewise.
11996         (add<mode>3_fpr): Likewise.
11997         (sub<mode>3): Likewise.
11998         (sub<mode>3_fpr): Likewise.
11999         (mul<mode>3): Likewise.
12000         (mul<mode>3_fpr): Likewise.
12001         (div<mode>3): Likewise.
12002         (div<mode>3_fpr): Likewise.
12003         (sqrt<mode>3): Likewise.
12004         (sqrt<mode>3_fpr): Likewise.
12005         (fre<Fs>): Likewise.
12006         (rsqrt<mode>2): Likewise.
12007         (cmp<mode>_fpr): Likewise.
12008         (smax<mode>3): Likewise.
12009         (smin<mode>3): Likewise.
12010         (smax<mode>3_vsx): Likewise.
12011         (smin<mode>3_vsx): Likewise.
12012         (negsf2): Delete SF operations that are merged with DF.
12013         (abssf2): Likewise.
12014         (addsf3): Likewise.
12015         (subsf3): Likewise.
12016         (mulsf3): Likewise.
12017         (divsf3): Likewise.
12018         (fres): Likewise.
12019         (fmasf4_fpr): Likewise.
12020         (fmssf4_fpr): Likewise.
12021         (nfmasf4_fpr): Likewise.
12022         (nfmssf4_fpr): Likewise.
12023         (sqrtsf2): Likewise.
12024         (rsqrtsf_internal1): Likewise.
12025         (smaxsf3): Likewise.
12026         (sminsf3): Likewise.
12027         (cmpsf_internal1): Likewise.
12028         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12029         (negdf2): Delete DF operations that are merged with SF.
12030         (absdf2): Likewise.
12031         (nabsdf2): Likewise.
12032         (adddf3): Likewise.
12033         (subdf3): Likewise.
12034         (muldf3): Likewise.
12035         (divdf3): Likewise.
12036         (fred): Likewise.
12037         (rsqrtdf_internal1): Likewise.
12038         (fmadf4_fpr): Likewise.
12039         (fmsdf4_fpr): Likewise.
12040         (nfmadf4_fpr): Likewise.
12041         (nfmsdf4_fpr): Likewise.
12042         (sqrtdf2): Likewise.
12043         (smaxdf3): Likewise.
12044         (smindf3): Likewise.
12045         (cmpdf_internal1): Likewise.
12046         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12047         (btrunc<mode>2): Delete separate expander, and combine with the
12048         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
12049         (btrunc<mode>2_fpr): Likewise.
12050         (ceil<mode>2): Likewise.
12051         (ceil<mode>2_fpr): Likewise.
12052         (floor<mode>2): Likewise.
12053         (floor<mode>2_fpr): Likewise.
12054         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12055         Add support for using the upper registers with VSX and
12056         power8-vector.  Move insns to be closer to the define_expands. On
12057         VSX systems, prefer the traditional form of FMA over the VSX
12058         version, since the traditional form allows the target not to
12059         overlap with the inputs.
12060         (fms<mode>4_fpr): Likewise.
12061         (nfma<mode>4_fpr): Likewise.
12062         (nfms<mode>4_fpr): Likewise.
12064 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12065             Richard Earnshaw  <richard.earnshaw@arm.com>
12067         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12068         (struct mult_cost_table): Likewise.
12069         (struct mem_cost_table): Likewise.
12070         (struct fp_cost_table): Likewise.
12071         (struct vector_cost_table): Likewise.
12072         (cpu_cost_table): Likewise.
12073         * config/arm/arm.opt (mold-rts-costs): New option.
12074         (mnew-generic-costs): Likewise.
12075         * config/arm/arm.c (generic_extra_costs): New table.
12076         (cortexa15_extra_costs): Likewise.
12077         (arm_slowmul_tune): Use NULL as new costs.
12078         (arm_fastmul_tune): Likewise.
12079         (arm_strongarm_tune): Likewise.
12080         (arm_xscale_tune): Likewise.
12081         (arm_9e_tune): Likewise.
12082         (arm_v6t2_tune): Likewise.
12083         (arm_cortex_a5_tune): Likewise.
12084         (arm_cortex_a9_tune): Likewise.
12085         (arm_v6m_tune): Likewise.
12086         (arm_fa726te_tune): Likewise.
12087         (arm_cortex_a15_tune): Use cortex15_extra_costs.
12088         (arm_cortex_tune): Use generict_extra_costs.
12089         (shifter_op_p): New function.
12090         (arm_unspec_cost): Likewise.
12091         (LIBCALL_COST): Define.
12092         (arm_new_rtx_costs): New function.
12093         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12094         table is available. Use old costs otherwise unless mnew-generic-costs
12095         is specified.
12096         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12097         (cpu_cost_table): Declare.
12099 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12101         PR target/58460
12102         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12103         (*subs_mul_imm_<mode>)
12104         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12105         (*sub_<shift>_<mode>)
12106         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12107         Remove k constraint.
12109 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
12111         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12112         code.
12113         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12115 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12117         * predict.c (probably_never_executed): New function.
12118         (probably_never_executed_bb_p): Invoke probably_never_executed.
12119         (probably_never_executed_edge_p): Ditto.
12120         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12121         Treat profile insanities conservatively.
12123 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
12125         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12127 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
12129         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12130         use it.  Use smaller increase for scratch.  Don't increase reject
12131         for early clobber scratch.
12132         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12133         setting eliminated regs except setting fp from hfp.
12134         (lra_eliminate): Check lra_insn_recog_data on NULL.
12136 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12138         PR target/58587
12139         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12140         setting -mvsx-timode by default until the underlying problem is fixed.
12141         (RS6000_CPU, power7 defaults): Likewise.
12143 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12145         * config/x-linux (host-linux.o): Remove header dependencies.
12146         Use $(COMPILE) and $(POSTCOMPILE).
12147         * config/t-linux-android (linux-android.o): Ditto.
12149 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12151         * Makefile.in (expmed.o-warn): Remove.
12153 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12155         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12156         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12158 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12160         * dojump.c (do_jump_1): Divide probability between
12161         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12163 2013-10-02  Tom Tromey  <tromey@redhat.com>
12165         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12167 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12169         * tree-flow.h: Remove some prototypes.
12170         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12171         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12172         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12173         mark_virtual_phi_result_for_renaming): Relocate here.
12174         * tree-into-ssa.h: Add prototypes.
12175         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12176         single_pred_before_succ_order.
12177         (blocks_in_phiopt_order): Rename and move to cfganal.c.
12178         (nonfreeing_call_p) Move to gimple.c.
12179         * cfganal.c (single_pred_before_succ_order): Move and renamed from
12180         tree-ssa-phiopt.c.
12181         * basic-block.h (single_pred_before_succ_order): Add prototype.
12182         * gimple.c (nonfreeing_call_p): Relocate here.
12183         * gimple.h: Add prototype.
12184         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12185         * tree-ssa-dom.h: New file.  Relocate prototypes here.
12186         * tree-ssa.h: Include tree-ssa-dom.h.
12188 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12190         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12191         Use $(COMPILE) and $(POSTCOMPILE).
12193         * config/alpha/x-alpha (driver-alpha.o): Ditto.
12195 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12197         * tree-flow.h: Remove some prototypes.
12198         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12199         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12200         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12201         propagate_tree_value*): Move from here to...
12202         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12203         propagate_tree_value*): Relocate here.
12204         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12205         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12206         * gimple-fold.c: Remove gimple-fold.h from include list.
12207         * tree-vrp.c: Remove gimple-fold.h from include list.
12208         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12209         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12210         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12211         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12212         * sese.c: Add tree-ssa-propagate.h to include list.
12214 2013-10-02  Richard Biener  <rguenther@suse.de>
12216         * tree-loop-distribution.c: Include tree-vectorizer.h for
12217         find_loop_location.
12218         (enum partition_kind): Remove PKIND_REDUCTION.
12219         (struct partition_s): Remove has_writes member, add reduction_p member.
12220         (partition_alloc): Adjust.
12221         (partition_builtin_p): Likewise.
12222         (partition_has_writes): Remove.
12223         (partition_reduction_p): New function.
12224         (partition_merge_into): Likewise.
12225         (generate_code_for_partition): Commonize builtin partition
12226         handling tail.
12227         (rdg_cannot_recompute_vertex_p): Remove.
12228         (already_processed_vertex_p): Likewise.
12229         (rdg_flag_vertex): Do not set has_writes.
12230         (classify_partition): Adjust.
12231         (rdg_build_partitions): Do not set has_writes, treat all
12232         partitions as useful.
12233         (distribute_loop): Record number of library calls generated.  Adjust.
12234         (tree_loop_distribution): Report number of loops and library
12235         calls generated as opt-info.
12237 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12239         * tree-flow.h: Include new .h files.  Move prototypes.
12240         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
12241         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
12242         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12243         * tree-pretty-print.h: Add prototypes from tree-flow.h.
12244         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
12245         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12246         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12247         * tree.h (get_ref_base_and_extent): Move prototype out.
12248         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12249         tree-dfa.h.
12250         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
12251         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12252         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12253         * tree-scalar-evolution.c: Include tree.h.
12254         * sese.c: Include tree.h.
12255         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12256         * dwarf2out.c: Include tree-dfa.h.
12257         * tree-chrec.c: Include tree.h.
12258         * tree-data-ref.c: Include tree.h.
12260 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
12262         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12263         Fix whitespace.
12265 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12267         * config/t-sol2 (sol2-c.o): Remove header dependencies.
12268         Use $(COMPILE) and $(POSTCOMPILE).
12269         (sol2-cxx.o): Likewise.
12270         (sol2-stubs.o): Likewise.
12271         (sol2.o): Likewise.
12272         * config/x-solaris (host-solaris.o): Likewise.
12274         * config/sparc/t-sparc (sparc.o): Remove.
12275         (sparc-c.o): Remove header dependencies.
12276         Use $(COMPILE) and $(POSTCOMPILE).
12277         * config/sparc/x-sparc: Likewise.
12279 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
12281         * config/arc/arc-opts.h: Add 2013 to Copyright years.
12282         * config/arc/arc700.md: Likewise.
12283         * config/arc/arc-modes.def: Likewise.
12284         * config/arc/arc-simd.h: Likewise.
12285         * config/arc/t-arc-uClibc: Likewise.
12286         * config/arc/t-arc-newlib: Likewise.
12288 2013-10-02  Renlin Li  <renlin.li@arm.com>
12290         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12291         plus_constant.
12292         (aarch64_expand_epilogue): Likewise.
12294 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12295             Yufeng Zhang  <yufeng.zhang@arm.com>
12297         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
12298         declaration.
12299         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12300         'base_in' represent a conversion and legal_cast_p_1 holds; set
12301         'base_in' with the returned value from get_unwidened.
12303 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12305         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
12306         plus_constant is not used.
12308 2013-10-01  Wei Mi  <wmi@google.com>
12310         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
12311         * config/i386/i386.md: Add define_peephole2 to
12312         break partial reg stall for cvtss2sd/cvtsd2ss.
12314 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12316         * config/arc/arc.c (pass_arc_ifcvt::clone):
12317         Update for ctxt_ -> m_ctxt change.
12319 2013-10-01  Jeff Law  <law@redhat.com>
12321         * tree-ssa-threadupdate.c (struct redirection_data): Delete
12322         outgoing_edge and intermediate_edge fields.  Instead store the path.
12323         (redirection_data::hash): Hash on the last edge's destination index.
12324         (redirection_data::equal): Check the entire thread path.
12325         (lookup_redirectio_data): Corresponding changes.
12326         (create_edge_and_update_destination_phis): Likewise.
12327         (thread_single_edge): Likewise.
12329 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12330             Diego Novillo <dnovillo@google.com>
12332         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
12333         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
12334         (vld32wh_insn, vld32wl_insn): Delete commented-out old
12335         versions of these patterns.
12337         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
12338         (__builtin_arc_aligned): Likewise.
12340         * config/arc/arc.md: Expand adc_0 comment stating the intended
12341         purpose and why it isn't ready.
12342         Replace commented out call_value_via_label_mixed with a
12343         plain comment about bl_s.
12345         * config/arc/arc.c (stdio.h): Don't include directly.
12346         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
12347         Remove if (1) condition.
12348         (arc_encode_section_info): Fix comment.
12350 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12352         * config/arc/arc.c (arc_conditional_register_usage):
12353         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
12354         Also set reg_alloc_order for DMA config regs.
12356 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12357             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12359         * doc/install.texi (--with-cpu): Mention ARC.
12360         (arc-*-elf32): New paragraph.
12361         (arc-linux-uclibc): Likewise.
12362         * doc/md.texi (Machine Constraints): Add ARC part.
12363         * doc/invoke.texi: (menu): Add ARC Options.
12364         (Machine Dependent Options) <ARC Options>: Add synopsis.
12365         (node ARC Options): Add.
12366         * doc/extend.texi (long_call / short_call attribute): Add ARC.
12367         (ARC Built-in Functions): New section defining
12368         generic ARC built-in functions.
12369         (ARC SIMD Built-in Functions): New section defining SIMD specific
12370         built-in functions.
12371         (Declaring Attributes of Functions): Extended
12372         description of short_call and long_call attributes for ARC and
12373         added index entries.
12375 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
12376             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
12377             Joern Rennecke  <joern.rennecke@embecosm.com>
12378             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
12379             Brendan Kehoe  <brendan@zen.org>
12380             Michael Eager  <eager@eagercon.com>
12381             Simon Cook  <simon.cook@embecosm.com>
12382             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12384         * config/arc, common/config/arc: New directories.
12386 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12387             Brendan Kehoe  <brendan@zen.org>
12388             Simon Cook  <simon.cook@embecosm.com>
12390         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
12392 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12394         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
12395         * tree-ssa-coalesce.h: New. Move prototype to here.
12396         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
12397         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
12398         (gimple_can_coalesce_p): Move to...
12399         * gimple.c (gimple_can_coalesce_p): Here.
12401 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12403         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
12404         (dump_decl_set): Move to gimple.c.
12405         * gimple.h: Don't include tree-ssa-operands.h.
12406         (dump_decl_set): Add prototype.
12407         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12408         Move to gimple-ssa.h.
12409         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
12410         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
12411         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
12412         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
12413         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
12414         than PHI_ARG_DEF.
12415         (dump_decl_set): Relocate here.
12416         * gimple-ssa.h: New file.
12417         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12418         Relocate from gimple.h.
12419         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
12420         * tree-ssa-operands.c (swap_ssa_operands): Rename from
12421         swap_tree_operands and remove non-ssa path.
12422         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
12423         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
12424         swap_ssa_operands.
12425         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
12426         vect_is_simple_reduction_1): Use swap_ssa_operands.
12427         * tree-flow.h: Move various prototypes to tree-phinodes.h.
12428         (enum need_phi_state): Move to tree-into-ssa.c.
12429         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12430         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
12431         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
12432         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
12433         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12434         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12435         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12436         num_imm_uses): Move to ssa-iterators.h.
12437         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
12438         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
12439         tree-phinodes.h.
12440         (op_iter_done, op_iter_next_def, op_iter_next_tree,
12441         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
12442         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
12443         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
12444         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
12445         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
12446         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
12447         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
12448         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
12449         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
12450         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
12451         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
12452         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
12453         (set_phi_nodes): Move to tree-phinodes.h.
12454         * tree-ssa-operands.h (enum ssa_op_iter_type,
12455         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
12456         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
12457         (dump_decl_set): Remove prototype.
12458         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
12459         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
12460         (set_phi_nodes): Relocate from tree-flow-inline.h.
12461         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
12462         tree-flow-inline.h
12463         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
12464         include list.  Temporarily add gimple.h to include list.
12465         * ssa-iterators.h: New file.
12466         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12467         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
12468         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
12469         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
12470         Relocate from tree-ssa-operands.h.
12471         (delink_imm_use, link_imm_use_to_list, link_imm_use,
12472         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12473         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12474         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12475         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
12476         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
12477         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
12478         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
12479         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
12480         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
12481         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
12482         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
12483         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
12484         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
12485         Relocate from tree-flow-inline.h.
12486         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
12488 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
12490         * aarch64-simd.md
12491         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
12492         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
12493         Insert '\t' to output template.
12494         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
12495         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
12496         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
12497         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
12499 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
12501         * doc/install.texi (Host/target specific installation notes for GCC):
12502         Put @anchor before @heading.
12503         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
12504         Use @email for email addresses.
12506 2013-10-01  Jeff Law  <law@redhat.com>
12508         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
12509         a vec.  Only delete the path if we create one without successfully
12510         registering a jump thread.
12511         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
12512         as a pointer.
12513         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
12514         (paths): New vector of jump threading paths.
12515         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
12516         (THREAD_PATH): New accessor macro for the entire thread path.
12517         (lookup_redirection_data): Get intermediate and final outgoing edge
12518         from the thread path.
12519         (create_edge_and_update_destination_phis): Copy the threading path.
12520         (ssa_fix_duplicate_block_edges): Get edges and block types from the
12521         jump threading path.
12522         (ssa_redirect_edges): Get edges and block types from the jump threading
12523         path.  Free the path vector.
12524         (thread_block): Get edges from the jump threading path.  Look at the
12525         entire path to see if we thread to a loop exit.  If we cancel a jump
12526         thread request, then free the path vector.
12527         (thread_single_edge): Get edges and block types from the jump threading
12528         path.  Free the path vector.
12529         (thread_through_loop_header): Get edges and block types from the jump
12530         threading path.  Free the path vector.
12531         (mark_threaded_blocks): Iterate over the vector of paths and store
12532         the path on the appropriate edge.  Get edges and block types from the
12533         jump threading path.
12534         (mark_threaded_blocks): Get edges and block types from the jump
12535         threading path.  Free the path vector.
12536         (thread_through_all_blocks): Use the vector of paths rather than
12537         a vector of 3-edge sets.
12538         (register_jump_thread): Accept pointer to a path vector rather
12539         than the path vector itself.  Store the path vector for later use.
12540         Simplify.
12542 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
12543             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12545         PR target/58574
12546         * config/s390/s390.c (s390_split_branches): Modify check for table
12547         jump insns.
12548         (s390_chunkify_start): Rearrange table jump insn check in order to
12549         deal with compare and branch insns correctly.
12551 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
12553         PR target/58578
12554         Revert
12555         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
12556         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
12557         define_insn_and_split.
12558         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
12559         (shiftsi3_compare): New pattern.
12560         (rrx): New pattern.
12561         * config/arm/unspecs.md (UNSPEC_RRX): New.
12563 2013-10-01  Alan Modra  <amodra@gmail.com>
12565         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
12566         casing inout operands.
12568 2013-10-01  Richard Biener  <rguenther@suse.de>
12570         PR tree-optimization/58553
12571         * tree-loop-distribution.c (struct partition_s): Add niter member.
12572         (classify_partition): Populate niter member for the partition
12573         and properly identify whether the relevant store happens before
12574         or after the loop exit.
12575         (generate_memset_builtin): Use niter member from the partition.
12576         (generate_memcpy_builtin): Likewise.
12578 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
12580         * vec.h (vec_prefix, vec): Prefix member names with "m_".
12581         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
12583 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
12585         * basic-block.h (edge_list): Prefix member names with "m_".
12586         * context.h (context): Likewise.
12587         * domwalk.h (dom_walker): Likewise.
12588         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
12589         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
12590         * hash-table.h (hash_table): Likewise.
12591         * machmode.h (bit_field_mode_iterator): Likewise.
12592         * pass_manager.h (pass_list): Likewise.
12593         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
12594         * tree-pass.h (pass_data): Likewise.
12595         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
12596         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
12597         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
12598         * asan.c (pass_data_asan): Update accordingly.
12599         * cfganal.c (control_dependences::find_control_dependence): Likewise.
12600         (control_dependences::control_dependences): Likewise.
12601         (control_dependences::~control_dependences): Likewise.
12602         (control_dependences::~control_dependences): Likewise.
12603         (control_dependences::get_edges_dependent_on): Likewise.
12604         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
12605         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
12606         * context.c (gcc::context::context): Likewise.
12607         * cprop.c (pass_rtl_cprop::clone): Likewise.
12608         * domwalk.c (dom_walker::walk): Likewise.
12609         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
12610         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
12611         * mode-switching.c (pass_mode_switching::clone): Likewise.
12612         * passes.c (opt_pass::opt_pass): Likewise.
12613         (pass_manager::pass_manager): Likewise.
12614         * predict.c (pass_strip_predict_hints::clone): Likewise.
12615         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
12616         (pass_split_all_insns::clone): Likewise.
12617         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
12618         Likewise.
12619         (bit_field_mode_iterator::next_mode): Likewise.
12620         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
12621         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
12622         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
12623         * tree-complex.c (pass_lower_complex::clone): Likewise.
12624         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
12625         * tree-object-size.c (pass_object_sizes::clone): Likewise.
12626         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
12627         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
12628         (pass_fold_builtins::clone): Likewise.
12629         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
12630         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
12631         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
12632         (pass_cd_dce::clone): Likewise.
12633         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
12634         (pass_phi_only_cprop::clone): Likewise.
12635         * tree-ssa-dse.c (pass_dse::clone): Likewise.
12636         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
12637         * tree-ssa-loop.c (pass_lim::clone): Likewise.
12638         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
12639         * tree-ssa-pre.c (pass_fre::clone): Likewise.
12640         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
12641         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
12642         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
12643         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
12644         * tree-vrp.c (pass_vrp::clone): Likewise.
12645         * tsan.c (pass_tsan::clone): Likewise.
12647 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
12649         PR middle-end/58564
12650         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
12651         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
12653         PR middle-end/58564
12654         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
12655         optimization, punt if sign_bit_p looked through any zero extension.
12657 2013-09-30  Teresa Johnson  <tejohnson@google.com>
12659         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
12660         Update redirected out edge count in joiner case.
12661         (ssa_redirect_edges): Common the joiner and non-joiner cases
12662         so that joiner case gets profile updates.
12664 2013-09-30  Richard Biener  <rguenther@suse.de>
12666         PR tree-optimization/58554
12667         * tree-loop-distribution.c (classify_partition): Require
12668         unconditionally executed stores for memcpy and memset recognition.
12669         (tree_loop_distribution): Calculate dominance info.
12671 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
12673         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
12674         (NO_PROFILE_COUNTERS): Likewise.
12675         (PROFILE_HOOK): Likewise.
12676         (FUNCTION_PROFILER): Likewise.
12677         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
12679 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
12681         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
12682         calls and defines in TARGET_MACHO conditional.
12683         (load_macho_picbase_di): Likewise.
12684         (reload_macho_picbase): Likewise.
12685         (reload_macho_picbase_si): Likewise.
12686         (reload_macho_picbase_di): Likewise.
12687         (nonlocal_goto_receiver): Likewise.
12689 2013-09-30  Nick Clifton  <nickc@redhat.com>
12691         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
12692         that use the MSP430X ISA.
12693         (msp430_option_override): Scan -mmcu command line option for any
12694         MCU name that supports the MSP430X ISA.
12695         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
12696         -mmcu options which enable the MSP430X ISA.
12698 2013-09-30  Richard Biener  <rguenther@suse.de>
12700         PR middle-end/58532
12701         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
12702         before looking for setjmp-like calls.
12704 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
12706         PR target/10901
12707         * config/darwin-protos.h (machopic_get_function_picbase): New.
12708         * config/darwin.c (machopic_get_function_picbase): New.
12709         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
12710         label for a new func.  (load_macho_picbase_di): Likewise.
12711         (reload_macho_picbase): New expand.
12712         (reload_macho_picbase_si): New insn.
12713         (reload_macho_picbase_di): New insn.
12714         (nonlocal_goto_receiver): New define and split.
12715         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
12716         (unspecv enum): Add UNSPECV_NLGR.
12718 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
12720         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
12721         that altivec registers are correctly sized on Darwin.
12723 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
12725         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
12726         darwin-driver.o): Use COMPILE and POSTCOMPILE.
12727         * config/x-darwin (host-darwin.o): Likewise.
12728         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
12729         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
12730         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
12732 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
12734         * doc/invoke.texi: Fix usage of @tie{} command.
12736 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
12738         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
12740 2013-09-28  Jan Hubicka  <jh@suse.cz>
12742         * config/i386/x86-tune.def: Add documentation for each of the options;
12743         add whitespace.
12745 2013-09-28  Jan Hubicka  <jh@suse.cz>
12747         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
12748         generic.
12749         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
12750         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
12751         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
12752         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
12753         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
12755 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
12757         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
12758         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
12759         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
12760         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
12761         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
12762         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
12763         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
12764         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
12765         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
12766         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
12767         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
12768         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
12769         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
12770         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
12771         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
12772         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
12773         gimple.h, godump.c, graphite-clast-to-gimple.c,
12774         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
12775         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
12776         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
12777         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
12778         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
12779         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
12780         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
12781         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
12782         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
12783         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
12784         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
12785         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
12786         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
12787         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
12788         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
12789         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
12790         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
12791         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
12792         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
12793         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
12794         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
12795         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
12796         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
12797         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
12798         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
12799         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12800         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
12801         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
12802         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
12803         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
12804         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
12805         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
12806         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
12807         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
12808         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
12809         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
12810         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
12811         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
12812         whitespace before "(".
12814 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
12816         * expr.h (extract_bit_field): Remove packedp parameter.
12817         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
12818         from forward declaration.
12819         (store_split_bit_field): Remove packedp arg from calls to
12820         extract_fixed_bit_field.
12821         (extract_bit_field_1): Remove packedp parameter and packedp
12822         argument from recursive calls and calls to extract_fixed_bit_field.
12823         (extract_bit_field): Remove packedp parameter and corresponding
12824         arg to extract_bit_field_1.
12825         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
12826         to issue warnings.
12827         (extract_split_bit_field): Remove packedp arg from call to
12828         extract_fixed_bit_field.
12829         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
12830         (copy_blkmode_from_reg): Likewise.
12831         (copy_blkmode_to_reg): Likewise.
12832         (read_complex_part): Likewise.
12833         (store_field): Likewise.
12834         (expand_expr_real_1): Likewise.
12835         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
12836         to extract_bit_field.
12837         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
12838         call to extract_bit_field.
12839         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
12840         call to extract_bit_field.
12841         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
12842         and special packedp behavior from -fstrict-volatile-bitfields
12843         documentation.
12845 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12847         * lra-eliminations.c (init_elim_table): Guard value_p.
12849 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
12851         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
12852         DFmode, DImode, and SFmode in the upper VSX registers based on the
12853         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
12854         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
12855         of the VSX register handling.
12857         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
12858         (f32_sv): Likewise.
12859         (zero_extendsidi2_lfiwzx): Add support for loading into the
12860         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
12861         only do VSX memory options on Altivec registers.
12862         (extendsidi2_lfiwax): Likewise.
12863         (extendsfdf2_fpr): Likewise.
12864         (mov<mode>_hardfloat, SF/SD modes): Likewise.
12865         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
12866         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
12867         (movdi_internal64): Likewise.
12869 2013-09-27  Xinliang David Li  <davidxl@google.com>
12871         * opts.c (finish_options): Adjust parameters
12872         according to vect cost model.
12873         (common_handle_option): Set dynamic vect cost
12874         model for FDO.
12875         targhooks.c (default_add_stmt_cost): Compute stmt cost
12876         unconditionally.
12877         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
12878         Use helper function.
12879         * tree-vectorizer.h (unlimited_cost_model): New function.
12880         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
12881         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
12882         function.
12883         (vect_enhance_data_refs_alignment): Ditto.
12884         * flag-types.h: New enum.
12885         * common/config/i386/i386-common.c (ix86_option_init_struct):
12886         No need to initialize vect_cost_model flag.
12887         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
12888         unconditionally.
12890 2013-09-27  Diego Novillo  <dnovillo@google.com>
12892         * gimple.h (enum ssa_mode): Remove.
12894 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
12896         * cfgloop.h (number_of_loops): Fix typo in check for null.
12898 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
12900         PR middle-end/58551
12901         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
12902         are children of outermost saved_cfun's loop, and set it up to
12903         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
12904         if loop != loop0 and SESE region contains bbs that belong to loop0.
12906 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
12908         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
12909         (binary_scale_code_p, get_base_term, get_index_term): New functions.
12910         (set_address_segment, set_address_base, set_address_index)
12911         (set_address_disp): Accept the argument unconditionally.
12912         (baseness): Remove must_be_base_p and must_be_index_p checks.
12913         (decompose_normal_address): Classify as much as possible in the
12914         main loop.
12916 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
12918         * cse.c (count_reg_usage): Handle INT_LIST.
12919         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
12920         * reginfo.c (reg_scan_mark_refs): Likewise.
12921         * reload1.c (eliminate_regs_1): Likewise.
12923 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
12925         PR middle-end/58547
12926         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
12927         signed.
12929 2013-09-27  Richard Biener  <rguenther@suse.de>
12931         PR tree-optimization/58459
12932         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
12933         restriction not propagating into loops.
12935 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
12937         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
12938         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
12939         * doc/tree-ssa.texi (Walking use-def chains): Delete.
12941 2013-09-26  Richard Biener  <rguenther@suse.de>
12943         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
12945 2013-09-26  Richard Biener  <rguenther@suse.de>
12947         * alias.h (component_uses_parent_alias_set): Rename to ...
12948         (component_uses_parent_alias_set_from): ... this.
12949         * alias.c (component_uses_parent_alias_set): Rename to ...
12950         (component_uses_parent_alias_set_from): ... this and return
12951         the desired parent.
12952         (reference_alias_ptr_type_1): Use the result from
12953         component_uses_parent_alias_set_from instead of stripping
12954         components one at a time.
12955         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
12957 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
12959         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
12960         Move prototypes to...
12961         * tree-ssa-ter.h: New File.  Move prototypes here.
12962         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
12963         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
12964         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
12965         from is_replaceable_p.
12966         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
12967         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
12968         (process_replaceable): Use ter_is_replaceable_p.
12969         (find_replaceable_in_bb): Use ter_is_replaceable_p.
12970         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
12971         newly refactored ssa_is_replaceable_p.
12972         * cfgexpand.c: Include tree-outof-ssa.h.
12973         * ssaexpand.h: Delete.
12975 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
12977         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
12978         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
12979         tree-ssa.c
12980         (create_gimple_tmp): Delete.
12981         (get_expr_type, build_assign, build_type_cast): Move to...
12982         * gimple-builder.c: New File.
12983         (get_expr_type): Relocate from gimple.c.
12984         (build_assign, build_type_cast): Change to only create ssanames.
12985         * gimple.h: Move prototypes to...
12986         * gimple-builder.h: New File. Here.
12987         * tree-ssa.h: And here.
12988         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
12989         count_uses_and_derefs): Relocate from gimple.c.
12990         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
12991         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
12992         * tree-ssa-math-opts (execute_cse_reciprocals): Use
12993         gimple_replace_ssa_lhs.
12994         * asan.c: Include gimple-builder.h.
12995         * Makefile.in: Add gimple-builder.o.
12997 2013-09-26  Richard Biener  <rguenther@suse.de>
12999         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13000         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13001         (loe_visit_block): Use gcc_checking_assert.
13002         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13003         gimple_assign_ssa_name_copy_p.
13004         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13005         change.
13007 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
13009         * config/rs6000/t-rs6000 (rs6000.o): Remove.
13010         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13012 2013-09-26  Richard Biener  <rguenther@suse.de>
13014         PR tree-optimization/58539
13015         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13016         the fact that debug statements are not taking part in loop-closed
13017         SSA construction.
13019 2013-09-26  Nick Clifton  <nickc@redhat.com>
13021         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13022         time warning message.
13023         (msp430_print_operand_raw): Delete unused letter parameter.
13024         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13025         (msp430_print_operand_address): New function.
13026         (msp430_print_operand): Move address printing code from here to
13027         new function.
13028         * config/msp430/msp430.md (movsipsi2): Add comment in generated
13029         assembler.
13030         (zero_extendpsisi2): Likewise.
13031         (extendpsisi2): New pattern.
13032         (andneghi3): New pattern.
13034 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
13036         * config/aarch64/aarch64.opt (mlra): New option.
13037         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13038         (TARGET_LRA_P): Define.
13040 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
13042         * expr.c (expand_assignment): Remove obsolete comment.
13044 2013-09-25  Jeff Law  <law@redhat.com>
13046         * tree-flow.h (thread_through_all_blocks): Prototype moved into
13047         tree-ssa-threadupdate.h.
13048         (register_jump_thread): Similarly.
13049         * tree-ssa-threadupdate.h: New header file.
13050         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13051         * tree-vrp.c: Likewise.
13052         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13053         (thread_around_empty_blocks): Change type of path vector argument to
13054         an edge,type pair from just an edge.  Initialize both elements when
13055         appending to a jump threading path.  Tweak references to elements
13056         appropriately.
13057         (thread_across_edge): Similarly.  Release memory for the elements
13058         as needed.
13059         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13060         (dump_jump_thread_path): New function broken out from
13061         register_jump_thread.
13062         (register_jump_thread): Use dump_jump_thread_path.  Change type of
13063         path vector entries.  Search the path for NULL edges and dump
13064         the path if one is found.  Tweak the conversion of path to 3-edge
13065         form to use the block copy type information embedded in the path.
13067 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13069         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13071 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13072             Vladimir Makarov  <vmakarov@redhat.com>
13074         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13075         from the least significant bit.
13076         (strip_address_mutations): Add bitfield operations handling.
13077         (must_be_index_p): Add shifting and rotate operations handling.
13078         (set_address_base): Use must_be_base_p predicate.
13079         (set_address_index): Use must_be_index_p predicate.
13081 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13082             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13083             Sergey Lega  <sergey.s.lega@intel.com>
13084             Anna Tikhonova  <anna.tikhonova@intel.com>
13085             Ilya Tocar  <ilya.tocar@intel.com>
13086             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13087             Ilya Verbin  <ilya.verbin@intel.com>
13088             Kirill Yukhin  <kirill.yukhin@intel.com>
13089             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13091         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13092         Use new names.
13093         (ix86_expand_vector_move_misalign): Support new unaligned load and
13094         stores and use new names.
13095         (CODE_FOR_sse2_storedqu): Rename to ...
13096         (CODE_FOR_sse2_storedquv16qi): ... this.
13097         (CODE_FOR_sse2_loaddqu): Rename to ...
13098         (CODE_FOR_sse2_loaddquv16qi): ... this.
13099         (CODE_FOR_avx_loaddqu256): Rename to ...
13100         (CODE_FOR_avx_loaddquv32qi): ... this.
13101         (CODE_FOR_avx_storedqu256): Rename to ...
13102         (CODE_FOR_avx_storedquv32qi): ... this.
13103         * config/i386/i386.md (fpint_logic): New.
13104         * config/i386/sse.md (VMOVE): Extend for AVX512.
13105         (VF): Ditto.
13106         (VF_128_256): New.
13107         (VF_512): Ditto.
13108         (VI_UNALIGNED_LOADSTORE): Ditto.
13109         (sse2_avx_avx512f): Ditto.
13110         (sse2_avx2): Extend for AVX512.
13111         (sse4_1_avx2): Ditto.
13112         (avx2_avx512f): New.
13113         (sse): Extend for AVX512.
13114         (sse2): Ditto.
13115         (sse4_1): Ditto.
13116         (avxsizesuffix): Ditto.
13117         (sseintvecmode): Ditto.
13118         (ssePSmode): Ditto.
13119         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13120         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13121         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13122         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13123         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13124         (<sse2_avx_avx512f>_storedqu<mode): ... this.
13125         (<sse>_movnt<mode>): Replace constraint "x" with "v".
13126         (STORENT_MODE): Extend for AVX512.
13127         (*absneg<mode>2): Replace constraint "x" with "v".
13128         (*mul<mode>3): Ditto.
13129         (*ieee_smin<mode>3): Ditto.
13130         (*ieee_smax<mode>3): Ditto.
13131         (avx_cmp<mode>3): Replace VF with VF_128_256.
13132         (*<sse>_maskcmp<mode>3_comm): Ditto.
13133         (<sse>_maskcmp<mode>3): Ditto.
13134         (<sse>_andnot<mode>3): Extend for AVX512.
13135         (<code><mode>3, anylogic): Replace VF with VF_128_256.
13136         (<code><mode>3, fpint_logic): New.
13137         (*<code><mode>3): Extend for AVX512.
13138         (avx512flogicsuff): New.
13139         (avx512f_<logic><mode>): Ditto.
13140         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13141         VF_128_256.
13142         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13143         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13144         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13145         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13146         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13147         (xop_vpermil2<mode>3): Ditto.
13148         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13149         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13150         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13151         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13153 2013-09-25  Tom Tromey  <tromey@redhat.com>
13155         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13156         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13157         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13158         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13159         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13160         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13161         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13162         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13163         (GRAPHITE_HTAB_H): Remove.
13165 2013-09-25  Tom Tromey  <tromey@redhat.com>
13167         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13169 2013-09-25  Tom Tromey  <tromey@redhat.com>
13171         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13173 2013-09-25  Tom Tromey  <tromey@redhat.com>
13175         * config/i386/t-i386 (i386.o): Remove.
13176         (i386-c.o): Use COMPILE and POSTCOMPILE.
13178 2013-09-25  Tom Tromey  <tromey@redhat.com>
13180         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13182 2013-09-25  Tom Tromey  <tromey@redhat.com>
13184         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13185         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13186         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13187         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13188         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13189         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13190         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13191         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13192         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13193         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13194         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13195         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13196         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13197         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13198         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13199         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13200         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13201         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13202         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13203         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13204         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13205         (tree-ssa-pre.o, tree-ssa-sccvn.o)
13206         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13207         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13208         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13209         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13210         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13211         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13212         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13213         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13214         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
13215         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
13216         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
13217         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
13218         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
13219         (graphite-clast-to-gimple.o, graphite-dependences.o)
13220         (graphite-interchange.o, graphite-poly.o)
13221         (graphite-scop-detection.o, graphite-sese-to-poly.o)
13222         (graphite-optimize-isl.o, tree-vect-loop.o)
13223         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
13224         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
13225         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
13226         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
13227         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
13228         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
13229         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
13230         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
13231         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
13232         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13233         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13234         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13235         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13236         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13237         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13238         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13239         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13240         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13241         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13242         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13243         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13244         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13245         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13246         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13247         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13248         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13249         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13250         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13251         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13252         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13253         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13254         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13255         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13256         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13257         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13258         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13259         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13260         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13261         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13262         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13263         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13264         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13265         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13266         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13267         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13268         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13269         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13270         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13271         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13272         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13273         (gcov-dump.o): Remove.
13274         (default-c.o): Use COMPILE and POSTCOMPILE.
13275         (CFLAGS-gcc.o): New variable.
13276         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
13278 2013-09-25  Tom Tromey  <tromey@redhat.com>
13280         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
13281         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
13282         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
13283         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
13284         (c-family/c-pragma.o, c-family/c-pretty-print.o)
13285         (c-family/c-semantics.o, c-family/c-ada-spec.o)
13286         (c-family/array-notation-common.o, c-family/stub-objc.o)
13287         (c-family/c-ubsan.o): Remove.
13289 2013-09-25  Tom Tromey  <tromey@redhat.com>
13291         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
13293 2013-09-25  Tom Tromey  <tromey@redhat.com>
13295         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
13296         to add -DENABLE_SHARED_LIBGCC.
13297         (gcc.o): Don't use subshell.
13299 2013-09-25  Tom Tromey  <tromey@redhat.com>
13301         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
13302         * configure.ac: Don't invoke AM_PROG_CC_C_O.
13303         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
13304         * configure, config.in: Rebuild.
13306 2013-09-25  Tom Tromey  <tromey@redhat.com>
13308         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
13309         (COMPILE, POSTCOMPILE): New variables.
13310         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
13311         (DEPFILES): New variable.
13312         Include ".Po" files.
13313         * configure.ac: Add checks for dependency checking.
13314         * configure, aclocal.m4: Regenerate.
13316 2013-09-25  Tom Tromey  <tromey@redhat.com>
13318         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
13319         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
13321 2013-09-25  Tom Tromey  <tromey@redhat.com>
13323         * Makefile.in (generated_files): Add options.h,
13324         target-hooks-def.h, insn-opinit.h,
13325         common/common-target-hooks-def.h, pass-instances.def,
13326         c-family/c-target-hooks-def.h.
13328 2013-09-25  Jeff Law  <law@redhat.com>
13330         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
13331         than foo[foo.length () - 1] to access last member in a vec.
13332         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
13334 2013-09-25  Richard Biener  <rguenther@suse.de>
13336         PR middle-end/58521
13337         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
13339 2013-09-25  Jan Hubicka  <jh@suse.cz>
13341         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
13342         test.
13344 2013-09-25  Marek Polacek  <polacek@redhat.com>
13346         PR sanitizer/58420
13347         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
13348         when determining the type name.
13350 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
13352         * config/sh/sh.md: Fix formatting.
13354 2013-09-24  Xinliang David Li  <davidxl@google.com>
13356         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
13357         max peel iterations parameter.
13358         * param.def: New parameter.
13359         * doc/invoke.texi: Document New parameter.
13361 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
13363         * gimple-pretty-print.c: Various whitespace tweaks.
13364         * tree-core.h: Likewise.
13365         * tree-pretty-print.c: Likewise.
13366         * tree-ssa-alias.c: Likewise.
13367         * tree-ssa-copy.c: Likewise.
13368         * tree-ssanames.c: Likewise.
13369         * tree-ssanames.h: Likewise.
13370         * tree-vrp.c: Likewise.
13372 2013-09-24  Alan Modra  <amodra@gmail.com>
13374         PR middle-end/57134
13375         PR middle-end/57586
13376         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
13377         for output operands that disallow regs.  Don't use EXPAND_WRITE on
13378         inout operands.
13380 2013-09-24  Richard Biener  <rguenther@suse.de>
13382         PR middle-end/58513
13383         * tree.c (reference_alias_ptr_type): Move ...
13384         * alias.c (reference_alias_ptr_type): ... here and implement
13385         in terms of the new reference_alias_ptr_type_1.
13386         (ref_all_alias_ptr_type_p): New helper.
13387         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
13388         use ref_all_alias_ptr_type_p.
13389         (get_deref_alias_set): Add flag_strict_aliasing check here.
13390         (reference_alias_ptr_type_1): New function, split out from ...
13391         (get_alias_set): ... here.
13392         (alias_ptr_types_compatible_p): New function.
13393         * alias.h (reference_alias_ptr_type): Declare.
13394         (alias_ptr_types_compatible_p): Likewise.
13395         * tree.h (reference_alias_ptr_type): Remove.
13396         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
13397         to compare MEM_REF alias types.
13399 2013-09-24  Richard Biener  <rguenther@suse.de>
13401         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
13403 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13405         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
13406         reload helper function arrays into a single array reg_addr.
13407         (reload_fpr_gpr): Likewise.
13408         (reload_gpr_vsx): Likewise.
13409         (reload_vsx_gpr): Likewise.
13410         (struct rs6000_reg_addr): Likewise.
13411         (reg_addr): Likewise.
13412         (rs6000_debug_reg_global): Change rs6000_vector_reload,
13413         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
13414         (rs6000_init_hard_regno_mode_ok): Likewise.
13415         (rs6000_secondary_reload_direct_move): Likewise.
13416         (rs6000_secondary_reload): Likewise.
13418         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
13419         constraints: wu, ww, and wy.  Repurpose wv constraint added during
13420         power8 changes.  Put wg constraint in alphabetical order.
13422         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
13423         for future work to add ISA 2.07 VSX single precision support.
13424         (-mvsx-scalar-double): Change default from -1 to 1, update
13425         documentation comment.
13426         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
13427         (-mupper-regs-df): New debug switch to control whether DF values
13428         can go in the traditional Altivec registers.
13429         (-mupper-regs-sf): New debug switch to control whether SF values
13430         can go in the traditional Altivec registers.
13432         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
13433         and wy constraints.
13434         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
13435         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
13436         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
13437         (rs6000_debug_legitimate_address_p): Print if we are running
13438         before, during, or after reload.
13439         (rs6000_secondary_reload): Add a comment.
13440         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
13442         * config/rs6000/constraints.md (wa constraint): Sort w<x>
13443         constraints.  Update documentation string.
13444         (wd constraint): Likewise.
13445         (wf constraint): Likewise.
13446         (wg constraint): Likewise.
13447         (wn constraint): Likewise.
13448         (ws constraint): Likewise.
13449         (wt constraint): Likewise.
13450         (wx constraint): Likewise.
13451         (wz constraint): Likewise.
13452         (wu constraint): New constraint for ISA 2.07 SFmode scalar
13453         instructions.
13454         (ww constraint): Likewise.
13455         (wy constraint): Likewise.
13456         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
13457         in the previous submissions.
13458         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
13460 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
13462         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
13463         (REG_BR_PROB): Say that the probability is stored in an int_list.
13464         * reg-notes.def: Update commentary to mention INT_LIST.
13465         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
13466         (INT_LIST): New rtx.
13467         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
13468         * rtlanal.c (int_reg_note_p): New function.
13469         (alloc_reg_note): Assert that the note does not have an int argument.
13470         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
13471         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
13472         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
13473         rather than an INSN_LIST.  Handle INT_LIST.
13474         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
13475         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
13476         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
13477         Manipulate them as ints rather than rtxes.
13478         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
13479         * regmove.c (copy_src_to_dest): Likewise.
13480         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
13482         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
13483         into the cases that need it.
13484         * config/arm/arm.c (arm_unwind_emit): Likewise.
13486         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
13487         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
13488         * loop-doloop.c (add_test, doloop_modify): Likewise.
13489         * loop-unswitch.c (compare_and_jump_seq): Likewise.
13490         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
13491         * predict.c (combine_predictions_for_insn): Likewise.
13492         * print-rtl.c (print_rtx): Handle INT_LIST.
13493         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
13494         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
13495         * config/arm/arm.c (emit_unlikely_jump): Likewise.
13496         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
13497         (ix86_split_fp_branch, predict_jump): Likewise.
13498         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
13499         * config/sh/sh.c (expand_cbranchsi4): Likewise.
13500         * config/spu/spu.c (ea_load_store_inline): Likewise.
13502         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
13503         value of a REG_BR_PROB note.
13504         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13505         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
13506         * emit-rtl.c (try_split): Likewise.
13507         * predict.c (br_prob_note_reliable_p): Likewise.
13508         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
13509         * reorg.c (mostly_true_jump): Likewise.
13510         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
13511         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
13512         * config/i386/i386.c (ix86_print_operand): Likewise.
13513         * config/ia64/ia64.c (ia64_print_operand): Likewise.
13514         * config/mmix/mmix.c (mmix_print_operand): Likewise.
13515         * config/rs6000/rs6000.c (output_cbranch): Likewise.
13516         * config/s390/s390.c (s390_expand_tbegin): Likewise.
13517         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
13518         * config/sparc/sparc.c (output_cbranch): Likewise.
13519         * config/spu/spu.c (get_branch_target): Likewise.
13520         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
13521         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
13523 2013-09-23  Jan Hubicka  <jh@suse.cz>
13525         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
13526         for ipa-devirt.
13527         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
13528         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
13529         of external calls
13530         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
13531         (gimple_fold_call): Dump inconsistent devirtualizations; add
13532         sanity check for type based devirtualizations.
13533         * ipa-prop.c: Include ipa-utils.h
13534         (ipa_intraprocedural_devirtualization): Add sanity check.
13535         (try_make_edge_direct_virtual_call): Likewise.
13537 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
13539         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
13540         assignment statements.
13542 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
13544         * gimple-pretty-print.c (dump_ssaname_info): New function.
13545         (dump_gimple_phi): Call it.
13546         (pp_gimple_stmt_1): Likewise.
13547         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
13548         (range_info_def): Declare.
13549         * tree-pretty-print.c (pp_double_int): New function.
13550         (dump_generic_node): Call it.
13551         * tree-pretty-print.h (pp_double_int): Declare.
13552         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
13553         * tree-ssanames.h (range_info_def): New structure.
13554         (value_range_type): Move definition here.
13555         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
13556         Declare.
13557         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
13558         initialization.
13559         (set_range_info): New function.
13560         (get_range_info): Likewise.
13561         (duplicate_ssa_name_range_info): Likewise.
13562         (duplicate_ssa_name_fn): Check pointer type and call
13563         duplicate_ssa_name_range_info.
13564         * tree-ssa-copy.c (fini_copy_prop): Likewise.
13565         * tree-vrp.c (value_range_type): Remove definition, now in
13566         tree-ssanames.h.
13567         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
13568         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
13569         (SSA_NAME_RANGE_INFO): New macro.
13571 2013-09-23  Richard Biener  <rguenther@suse.de>
13573         PR tree-optimization/58464
13574         * tree-ssa-pre.c (phi_trans_lookup): Remove.
13575         (phi_trans_add): Change to add conditionally on being not present.
13576         (phi_translate_1): Remove recursion detection here.
13577         (phi_translate): Pre-seed the cache with NULL to catch
13578         recursion here in a more generic way.
13579         (bitmap_find_leader): Adjust comment.
13580         (get_representative_for): Dump value-numbers.
13581         (create_expression_by_pieces): Likewise.
13582         (insert_into_preds_of_block): Likewise.
13584 2013-09-23  Christian Bruel  <christian.bruel@st.com>
13586         PR target/58475
13587         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
13588         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
13590 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
13592         Revert r202780:
13593         2013-09-20  Renlin Li  <renlin.li@arm.com>
13595         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13596         plus_constant.
13597         (aarch64_expand_epilogue): Likewise.
13598         (aarch64_legitimize_reload_address): Likewise.
13600 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
13602         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
13603         NULL_TREE before pushing them onto the vector.  Likewise for labels.
13605 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
13607         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
13608         comparison operators when -fno-trapping-math is in effect.
13609         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
13610         comparison operators in TFmode and assert that unsupported operators
13611         cannot reach here.
13612         (ia64_print_operand): Likewise.
13614 2013-09-21  Jan Hubicka  <jh@suse.cz>
13616         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
13617         (sse_typeless_stores): Enable for core
13618         (sse_load0_by_pxor): Likewise.
13619         (four_jump_limit): Disable for core.
13620         (pad_returns): Likewise.
13621         (avoid_vector_decode): Likewise.
13622         (fuse_cmp_and_branch): Enable for cores.
13623         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
13625 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
13627         PR middle-end/56791
13628         * config/pa/pa.c (pa_option_override): Disable auto increment and
13629         decrement instructions until reload is completed.
13631         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
13632         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
13633         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13635 2013-09-20  DJ Delorie  <dj@redhat.com>
13636             Nick Clifton  <nickc@redhat.com>
13638         * config/rl78/rl78.c: Various whitespace and comment tweaks.
13639         (need_to_save): Save bank 0 on interrupts.
13640         (characterize_address): Strip far address wrappers.
13641         (rl78_as_legitimate_address): Likewise.
13642         (transcode_memory_rtx): Likewise.
13643         (rl78_peep_movhi_p): Disable this peephole after devirt.
13644         (rl78_propogate_register_origins): Forget all origins when a
13645         CLOBBER is seen.
13646         * config/rl78/rl78-virt.md: Various whitespace tweaks.
13647         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
13648         peephole2's.
13649         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
13650         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
13651         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
13652         relocating.
13653         * config/rl78/constraints.md: Various whitespace and paren tweaks.
13655 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
13657         * config/pa/pa.md: In "scc" insn patterns, change output template to
13658         handle const0_rtx in reg_or_0_operand operands.
13660 2013-09-20  Martin Husemann  <martin@NetBSD.org>
13662         PR target/56875
13663         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
13664         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
13666 2013-09-20  Richard Biener  <rguenther@suse.de>
13668         PR middle-end/58484
13669         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
13670         remembering SSA name version and block index.
13671         (new_scev_info_str): Adjust.
13672         (hash_scev_info): Likewise.  Also hash the block index.
13673         (eq_scev_info): Adjust.
13674         (find_var_scev_info): Likewise.
13675         (struct instantiate_cache_entry): Remove.
13676         (struct instantiate_cache_type): Use a htab to map name, block
13677         to chrec.
13678         (instantiate_cache_type::~instantiate_cache_type): Adjust.
13679         (get_instantiated_value_entry): Likewise.
13680         (hash_idx_scev_info, eq_idx_scev_info): New functions.
13681         (instantiate_scev_name): Adjust.
13683 2013-09-20  Jeff Law  <law@redhat.com>
13685         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
13687 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
13689         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
13690         Call aarch64_simd_expand_args to update op[argc].
13692 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
13694         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
13695         plugin argument.
13697 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
13699         * gengtype.c (file_rules): Added rule for *.cc files.
13700         (get_output_file_with_visibility): Give fatal message when no
13701         rules found.
13703 2013-09-20  Renlin Li  <renlin.li@arm.com>
13705         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
13706         (aarch64_expand_epilogue): Likewise.
13707         (aarch64_legitimize_reload_address): Likewise.
13709 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13711         PR middle-end/57748
13712         * expr.c (expand_assignment): Remove misalignp code path.
13714 2013-09-20  Marek Polacek  <polacek@redhat.com>
13716         PR sanitizer/58413
13717         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
13718         TYPE_PRECISION.  Add asserts.
13720 2013-09-20  Richard Biener  <rguenther@suse.de>
13722         PR tree-optimization/58453
13723         * tree-loop-distribution.c (distribute_loop): Apply the cost
13724         model for -ftree-loop-distribute-patterns, too.
13726 2013-09-20  Richard Biener  <rguenther@suse.de>
13728         PR middle-end/58473
13729         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
13730         make type comparison less strict.
13732 2013-09-20  Alan Modra  <amodra@gmail.com>
13734         * configure: Regenerate.
13735         * aclocal.m4: Regenerate.
13737 2013-09-20  Marek Polacek  <polacek@redhat.com>
13739         PR other/58467
13740         * doc/extend.texi: Document that attribute used is meant to be used
13741         on variables with static storage duration.
13743 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
13745         PR tree-optimization/58472
13746         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
13747         simd_lane_access set inv_p = false.
13748         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
13749         the simduid magic VAR_DECL.
13751 2013-09-19  Jan Hubicka  <jh@suse.cz>
13753         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
13755 2013-09-17  Jeff Law  <law@redhat.com>
13757         * tree-ssa-dom.c (record_temporary_equivalences): New function
13758         split out of dom_opt_dom_walker::after_dom_children.
13759         (dom_opt_dom_walker::thread_across_edge): Move common code
13760         in here from dom_opt_dom_walker::after_dom_children.
13761         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
13763 2013-09-19  Jan Hubicka  <jh@suse.cz>
13765         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
13766         (TARGET_GENERIC): Use PROCESOR_GENERIC
13767         (enum processor_type): Unify generic32 and 64.
13768         * i386.md (cpu): Likewise.
13769         * x86-tune.def (use_leave): Enable for generic32.
13770         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
13771         * athlon.md: Change generic64 to generic in all occurences.
13772         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
13773         (ix86_target_macros_internal): Likewise.
13774         * driver-i386.c (host_detect_local_cpu): Likewise.
13775         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
13776         to ..
13777         (generic_memcpy, generic_memset, generic_cost): This one.
13778         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
13779         (m_GENERIC32, m_GENERIC64): Remove.
13780         (m_GENERIC): Turn into one flag.
13781         (processor_target): Unify generic tunnings.
13782         (ix86_option_override_internal): Replace generic32/64 by generic.
13783         (ix86_issue_rate): Likewise.
13784         (ix86_adjust_cost): Likewise.
13786 2013-09-19  Jan Hubicka  <jh@suse.cz>
13788         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
13789         of speculative flag.
13791 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
13793         * omp-low.c (expand_omp_sections): Always pass len - 1 to
13794         GOMP_sections_start, even if !exit_reachable.
13796 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
13798         * lra-constraints.c (need_for_all_save_p): Use macro
13799         HARD_REGNO_CALL_PART_CLOBBERED.
13800         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
13801         set up pseudo conflict hard regs.
13803 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13805         PR target/58452
13806         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
13807         operands.
13809 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
13811         PR rtl-optimization/58438
13812         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
13813         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
13814         from previous subpasses.
13816 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
13818         * arm.c (arm_get_frame_offsets): Validate architecture supports
13819         LDRD/STRD before accepting the tuning preference.
13820         (arm_expand_prologue): Likewise.
13821         (arm_expand_epilogue): Likewise.
13823 2013-09-18  Richard Biener  <rguenther@suse.de>
13825         PR tree-optimization/58417
13826         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
13827         have chrecs with symbols defined in the loop as operands.
13828         (chrec_fold_multiply): Likewise.
13829         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
13830         parameters before folding binary operations.
13831         (struct instantiate_cache_entry_hasher): Remove.
13832         (struct instantiate_cache_type): Use a pointer-map.
13833         (instantiate_cache_type::instantiate_cache_type): New function.
13834         (instantiate_cache_type::get): Likewise.
13835         (instantiate_cache_type::set): Likewise.
13836         (instantiate_cache_type::~instantiate_cache_type): Adjust.
13837         (get_instantiated_value_entry): Likewise.
13838         (global_cache): New global.
13839         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
13840         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
13841         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
13842         (instantiate_scev_name): Adjust.
13843         (instantiate_scev): Construct global instead of local cache.
13844         (resolve_mixers): Likewise.
13846 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
13847             Paolo Carlini  <paolo.carlini@oracle.com>
13849         PR c++/58458
13850         * doc/implement-cxx.texi: Fix references to the C++ standards.
13852 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
13854         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
13855         * tree-vect-data-refs.c (vect_analyze_data_refs): For
13856         simd_lane_access drs, update also DR_ALIGNED_TO.
13858 2013-09-18  Marek Polacek  <polacek@redhat.com>
13860         PR sanitizer/58411
13861         * doc/extend.texi: Document no_sanitize_undefined attribute.
13862         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
13863         no_sanitize_undefined attribute.
13865 2013-09-18  Nick Clifton  <nickc@redhat.com>
13867         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
13868         (ASM_DECLARE_FUNCTION_NAME): Define.
13870 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
13872         * compare-elim.c (find_comparison_dom_walker): New class
13873         (find_comparisons_in_bb): Rename to
13874         find_comparison_dom_walker::before_dom_children
13875         (find_comparisons): Adjust
13876         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
13877         adjust.
13878         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
13879         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
13880         (init_walk_dominator_tree): Remove declaration.
13881         (fini_walk_dominator_tree): Remove declaration.
13882         * fwprop.c (single_def_use_dom_walker): New class
13883         (single_def_use_enter_block): Convert to
13884         single_def_use_dom_walker::before_dom_children.
13885         (single_def_use_leave_block): Convert to
13886         single_def_use_dom_walker::after_dom_children.
13887         (build_single_def_use_links): Adjust.
13888         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
13889         class.
13890         (find_candidates_in_block): Convert to
13891         find_candidates_dom_walker::before_dom_children.
13892         (execute_strength_reduction): Adjust.
13893         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
13894         (sese_dom_walker): New class.
13895         (sese_dom_walker::sese_dom_walker): New constructor.
13896         (sese_dom_walker::~sese_dom_walker): New destructor.
13897         (build_sese_conditions_before): Convert to
13898         sese_dom_walker::before_dom_children.
13899         (build_sese_conditions_after): Convert to
13900         sese_dom_walker::after_dom_children.
13901         (build_poly_scop): Adjust
13902         * tree-into-ssa.c (rewrite_dom_walker): New class
13903         (rewrite_enter_block): Convert to
13904         rewrite_dom_walker::before_dom_children.
13905         (rewrite_leave_block): Convert to
13906         rewrite_dom_walker::after_dom_children.
13907         (rewrite_update_dom_walker): New class.
13908         (rewrite_update_enter_block): Convert to
13909         rewrite_update_dom_walker::before_dom_children.
13910         (rewrite_update_leave_block): Convert to
13911         rewrite_update_dom_walker::after_dom_children.
13912         (rewrite_blocks, rewrite_into_ssa): Adjust.
13913         (mark_def_dom_walker): New class.
13914         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
13915         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
13916         (mark_def_sites_blocks): Convert to
13917         mark_def_dom_walker::before_dom_children.
13918         (mark_def_site_blocks): Remove.
13919         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
13920         (tree_ssa_dominator_optimize): Adjust.
13921         (dom_thread_across_edge): Convert to method
13922         dom_opt_dom_walker::thread_across_edge.
13923         (dom_opt_enter_block): Convert to member function
13924         dom_opt_dom_walker::before_dom_children.
13925         (dom_opt_leave_block): Convert to member function
13926         dom_opt_dom_walker::after_dom_children.
13927         * tree-ssa-dse.c (dse_dom_walker): New class.
13928         (dse_enter_block): Convert to member function
13929         dse_dom_walker::before_dom_children.
13930         (tree_ssa_dse): Adjust.
13931         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
13932         (determine_invariantness_stmt): Convert to method
13933         invariantness_dom_walker::before_dom_children.
13934         (determine_invariantness): Remove
13935         (move_computations_dom_walker): New class.
13936         (move_computations_stmt): Convert to method
13937         move_computations_dom_walker::before_dom_children.
13938         (move_computations, tree_ssa_lim): Adjust.
13939         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
13940         (nt_init_block): Convert to method
13941         notrappping_dom_walker::before_dom_children.
13942         (nt_fini_block): Convert to method
13943         method nontrapping_dom_walker::after_dom_children.
13944         (get_non_trapping): Adjust.
13945         * tree-ssa-pre.c (eliminate_dom_walker): New class.
13946         (eliminate_bb): Convert to method
13947         eliminate_dom_walker::before_dom_children.
13948         (eliminate_leave_block): Convert to method
13949         eliminate_dom_walker::after_dom_children.
13950         (eliminate): Adjust.
13951         * tree-ssa-strlen.c (strlen_dom_walker): New class.
13952         (strlen_enter_block): Convert to method
13953         strlen_dom_walker::before_dom_children.
13954         (strlen_leave_block): Convert to method
13955         method strlen_dom_walker::after_dom_children.
13956         (tree_ssa_strlen): Adjust.
13957         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
13958         (tree_ssa_uncprop): Adjust.
13959         (uncprop_leave_block): Convert to method
13960         uncprop_dom_walker::after_dom_children.
13961         (uncprop_leave_block): Convert to method
13962         uncprop_dom_walker::before_dom_children.
13964 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
13966         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
13967         branch in same basic block.  Check both src and dest of the move insn.
13969 2013-09-17  Nick Clifton  <nickc@redhat.com>
13971         * config/rl78/rl78-real.md (bf): New pattern.
13972         (bt): New pattern.
13973         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
13974         (rl78_print_operand): Do not put a # before a %B.
13975         * config/rl78/rl78.opt: Tweak doc strings.
13977 2013-09-17  DJ Delorie  <dj@redhat.com>
13979         * config/rl78/constraints.md (Wcv): Allow up to $r31.
13980         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
13981         (rl78_option_override): Likewise, if -mallregs.
13982         (is_virtual_register): Likewise.
13983         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
13984         (REGNO_OK_FOR_BASE_P): Likewise.
13985         * config/rl78/rl78.opt (-mallregs): New.
13987 2013-09-17  Nick Clifton  <nickc@redhat.com>
13989         * config/rl78/rl78.c (need_to_save): Change return type to bool.
13990         For interrupt functions: save all call clobbered registers if the
13991         interrupt handler is not a leaf function.
13992         (rl78_expand_prologue): Always recompute the frame information.
13993         For interrupt functions: only select bank 0 if one of the bank 0
13994         registers is going to be psuhed.
13996 2013-09-17  DJ Delorie  <dj@redhat.com>
13998         * config/rl78/constraints.md: For each W* constraint, rename to C*
13999         and create a W* constraint that checks for an optional ES: prefix
14000         pattern also.
14001         * config/rl78/rl78.md (UNS_ES_ADDR): New.
14002         (es_addr): New.  Used to wrap far addresses.
14003         * config/rl78/rl78-protos.h (rl78_es_addr): New.
14004         (rl78_es_base): New.
14005         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14006         wrapped far addresses.
14007         (rl78_print_operand_1): Unwrap far addresses before processing.
14008         (rl78_lo16): Wrap far addresses in unspecs.
14009         (rl78_es_addr): New.
14010         (rl78_es_base): New.
14011         (insn_ok_now): Check for not-yet-wrapped far addresses.
14012         (transcode_memory_rtx): Properly re-wrap far addresses.
14014 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14016         * config/sparc/t-rtems: Add leon3 multilibs.
14018 2013-09-17  Cong Hou  <congh@google.com>
14020         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14021         when checking the dot production pattern. The type of rhs operand
14022         of multiply is now checked correctly.
14024 2013-09-17  Jeff Law  <law@redhat.com>
14026         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14027         edge implied equivalences into successor phis.
14028         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14029         here from tree-ssa-threadedge.c.
14030         (mark_threaded_blocks): When threading through a joiner, if both
14031         successors of the joiner's clone reach the same block, verify the
14032         PHI arguments are equal.  If not, cancel the jump threading request.
14033         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14034         tree-ssa-threadupdate.c
14035         (thread_across_edge): Don't check PHI argument equality when
14036         threading through joiner block here.
14038 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
14040         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14041         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14042         (warn_uninit, warn_uninitialized_vars,
14043         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14044         Move to tree-ssa-uninit.c.
14045         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14046         (has_undefined_value_p): New.  Pass dependant parts of
14047         ssa_undefined_value_p.
14048         (uninit_undefined_value_p): Use has_undefined_value_p.
14049         (warn_uninit, warn_uninitialized_vars,
14050         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14051         Move from tree-ssa.c.
14052         * tree-ssa.h: Adjust prototypes.
14054 2013-09-17  Jan Hubicka  <jh@suse.cz>
14056         PR middle-end/58332
14057         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14058         * ipa-inline.c (can_inline_edge_p): Do not downgrade
14059         FUNCTION_NOT_OPTIMIZED.
14060         * ipa-inline-analysis.c (compute_inline_parameters): Function
14061         not optimized is not inlinable unless it is alwaysinline.
14062         (inline_analyze_function): Force calls in not optimized
14063         function not inlinable.
14065 2013-09-17  Jan Hubicka  <jh@suse.cz>
14067         PR middle-end/58329
14068         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14069         to return NULL.
14070         * ipa.c (function_and_variable_visibility): Likewise.
14071         * ipa-profile.c (ipa_profile): Likewise.
14073 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14075         PR ipa/58398
14076         * cgraph.c (cgraph_function_body_availability): Check for ifunc
14077         attribute, and don't inline the resolver in this case.
14079 2013-09-17  Teresa Johnson  <tejohnson@google.com>
14081         * coverage.c (get_coverage_counts): Add missing newline.
14083 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14085         PR tree-optimization/58088
14086         * fold-const.c (mask_with_trailing_zeros): New function.
14087         (fold_binary_loc): Make sure we don't recurse infinitely
14088         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14089         Use mask_with_trailing_zeros where appropriate.
14091 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
14093         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14094         of 'prev' var to get better distance estimation.
14096 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14098         * tree-inline.h (struct copy_body_data): Add transform_parameter.
14099         * tree-inline.c (is_parameter_of): New predicate.
14100         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14101         a parameter has been remapped.
14102         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14103         (optimize_inline_calls): Initialize transform_parameter.
14104         (copy_gimple_seq_and_replace_locals): Likewise.
14105         (tree_function_versioning): Likewise.
14106         (maybe_inline_call_in_expr): Likewise.
14108 2013-09-17  Nick Clifton  <nickc@redhat.com>
14110         * config/msp430/msp430-protos.h: Add prototypes for new functions.
14111         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14112         interrupt handlers.
14113         (is_attr_func): New function.
14114         (msp430_is_interrupt_func): New function.
14115         (is_naked_func): New function.
14116         (is_reentrant_func): New function.
14117         (is_critical_func): New function.
14118         (msp430_start_function): Add annotations for function attributes.
14119         (msp430_attr): New function.
14120         (msp430_attribute_table): New.
14121         (msp430_function_section): New function.
14122         (TARGET_ASM_FUNCTION_SECTION): Define.
14123         (msp430_builtin): New enum.
14124         (msp430_init_builtins): New function.
14125         (msp430_builtin_devl): New function.
14126         (msp430_expand_builtin): New function.
14127         (TARGET_INIT_BUILTINS): Define.
14128         (TARGET_EXPAND_BUILTINS): Define.
14129         (TARGET_BUILTIN_DECL): Define.
14130         (msp430_expand_prologue): Add support for naked, interrupt,
14131         critical and reentrant functions.
14132         (msp430_expand_epilogue): Likewise.
14133         (msp430_print_operand): Handle 'O' character.
14134         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14135         NO_TRAMPOLINES.
14136         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14137         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14138         (pushm): Use a 'n' rather than an 'i' constraint.
14139         (msp_return): Add generation of the interrupt return instruction.
14140         (disable_interrupts): New pattern.
14141         (enable_interrupts): New pattern.
14142         (push_intr_state): New pattern.
14143         (pop_intr_state): New pattern.
14144         (bic_SR): New pattern.
14145         (bis_SR): New pattern.
14146         * doc/extend.texi: Document MSP430 function attributes and builtin
14147         functions.
14149 2013-09-17  Richard Biener  <rguenther@suse.de>
14151         PR tree-optimization/58432
14152         * tree-loop-distribution.c (tree_loop_distribution): Also
14153         scan PHIs for outside loop uses and seed a partition from them.
14155 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
14157         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14158         (restructure_reference): Call backtrace_base_for_ref.
14160 2013-09-17  Alan Modra  <amodra@gmail.com>
14162         PR target/57589
14163         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14164         patch.
14166 2013-09-16  DJ Delorie  <dj@redhat.com>
14168         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14169         vregs location for RL78/G10.
14170         (rl78_expand_prologue): Avoid SEL on G10.
14171         (rl78_expand_epilogue): Likewise.
14172         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14173         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14174         __RL78_G10__ when appropriate.
14175         (ASM_SPEC): Pass -mg10 along to the assembler.
14176         * config/rl78/rl78.md (sel_rb): Disable for G10.
14177         * config/rl78/rl78.opt: Add -mg10 option.
14178         * config/rl78/t-rl78: Add -mg10 multilib.
14180 2013-09-16  Xinliang David Li  <davidxl@google.com>
14182         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14183         * omp-low.c (omp_max_vf): Ditto.
14184         (expand_omp_simd): Ditto.
14185         * tree-vectorizer.c (vectorize_loops): Ditto.
14186         (gate_vect_slp): Ditto.
14187         (gate_increase_alignment): Ditto.
14188         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14189         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14190         (gate_tree_vectorize): Name change.
14191         (tree_vectorize): Ditto.
14192         (pass_vectorize::gate): Call new function.
14193         (pass_vectorize::execute): Ditto.
14194         * opts.c: O3 default setting change.
14195         (finish_options): Check new flag.
14196         * doc/invoke.texi: Document new flags.
14197         * common.opt: New flags.
14199 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
14201         * doc/tm.texi.in (Cond Exec Macros): Remove node.
14202         (Condition Code): Don't reference it.
14203         * doc/tm.texi: Regenerate.
14205 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
14207         PR middle-end/58418
14208         * lra-constraints.c (undo_optional_reloads): Consider all optional
14209         reload even if it did not get a hard reg.
14211 2013-09-16  Teresa Johnson  <tejohnson@google.com>
14213         * dumpfile.c (dump_loc): Remove newline emission.
14214         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
14215         emission to dump_printf_loc calls where missing.
14216         (vect_mark_for_runtime_alias_test): Ditto.
14217         (vect_analyze_data_ref_dependence): Ditto.
14218         (vect_analyze_data_ref_dependences): Ditto.
14219         (vect_slp_analyze_data_ref_dependence): Ditto.
14220         (vect_slp_analyze_data_ref_dependences): Ditto.
14221         (vect_compute_data_ref_alignment): Ditto.
14222         (vect_update_misalignment_for_peel): Ditto.
14223         (vect_verify_datarefs_alignment): Ditto.
14224         (vector_alignment_reachable_p): Ditto.
14225         (vect_get_data_access_cost): Ditto.
14226         (vect_enhance_data_refs_alignment): Ditto.
14227         (vect_find_same_alignment_drs): Ditto.
14228         (vect_analyze_data_refs_alignment): Ditto.
14229         (vect_analyze_group_access): Ditto.
14230         (vect_analyze_data_ref_access): Ditto.
14231         (vect_analyze_data_ref_accesses): Ditto.
14232         (vect_prune_runtime_alias_test_list): Ditto.
14233         (vect_analyze_data_refs): Ditto.
14234         (vect_create_addr_base_for_vector_ref): Ditto.
14235         (vect_create_data_ref_ptr): Ditto.
14236         (vect_grouped_store_supported): Ditto.
14237         (vect_grouped_load_supported): Ditto.
14238         * value-prof.c (check_counter): Ditto.
14239         (check_ic_target): Ditto.
14240         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14241         (vect_recog_widen_mult_pattern): Ditto.
14242         (vect_recog_widen_sum_pattern): Ditto.
14243         (vect_recog_over_widening_pattern): Ditto.
14244         (vect_recog_widen_shift_pattern): Ditto.
14245         (vect_recog_rotate_pattern): Ditto.
14246         (vect_recog_vector_vector_shift_pattern): Ditto.
14247         (vect_recog_divmod_pattern): Ditto.
14248         (vect_recog_mixed_size_cond_pattern): Ditto.
14249         (vect_recog_bool_pattern): Ditto.
14250         (vect_pattern_recog_1): Ditto.
14251         (vect_pattern_recog): Ditto.
14252         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14253         (vect_is_simple_iv_evolution): Ditto.
14254         (vect_analyze_scalar_cycles_1): Ditto.
14255         (vect_get_loop_niters): Ditto.
14256         (vect_analyze_loop_1): Ditto.
14257         (vect_analyze_loop_form): Ditto.
14258         (vect_analyze_loop_operations): Ditto.
14259         (vect_analyze_loop_2): Ditto.
14260         (vect_analyze_loop): Ditto.
14261         (report_vect_op): Ditto.
14262         (vect_is_slp_reduction): Ditto.
14263         (vect_is_simple_reduction_1): Ditto.
14264         (vect_get_known_peeling_cost): Ditto.
14265         (vect_estimate_min_profitable_iters): Ditto.
14266         (vect_model_reduction_cost): Ditto.
14267         (vect_model_induction_cost): Ditto.
14268         (get_initial_def_for_induction): Ditto.
14269         (vect_create_epilog_for_reduction): Ditto.
14270         (vectorizable_reduction): Ditto.
14271         (vectorizable_induction): Ditto.
14272         (vectorizable_live_operation): Ditto.
14273         (vect_loop_kill_debug_uses): Ditto.
14274         (vect_transform_loop): Ditto.
14275         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14276         (vect_stmt_relevant_p): Ditto.
14277         (process_use): Ditto.
14278         (vect_mark_stmts_to_be_vectorized): Ditto.
14279         (vect_model_simple_cost): Ditto.
14280         (vect_model_promotion_demotion_cost): Ditto.
14281         (vect_model_store_cost): Ditto.
14282         (vect_get_store_cost): Ditto.
14283         (vect_model_load_cost): Ditto.
14284         (vect_get_load_cost): Ditto.
14285         (vect_init_vector_1): Ditto.
14286         (vect_get_vec_def_for_operand): Ditto.
14287         (vect_finish_stmt_generation): Ditto.
14288         (vectorizable_call): Ditto.
14289         (vectorizable_conversion): Ditto.
14290         (vectorizable_assignment): Ditto.
14291         (vectorizable_shift): Ditto.
14292         (vectorizable_operation): Ditto.
14293         (vectorizable_store): Ditto.
14294         (vectorizable_load): Ditto.
14295         (vectorizable_condition): Ditto.
14296         (vect_analyze_stmt): Ditto.
14297         (vect_transform_stmt): Ditto.
14298         (vect_is_simple_use): Ditto.
14299         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
14300         (vect_can_advance_ivs_p): Ditto.
14301         (vect_update_ivs_after_vectorizer): Ditto.
14302         (vect_do_peeling_for_loop_bound): Ditto.
14303         (vect_gen_niters_for_prolog_loop): Ditto.
14304         (vect_update_inits_of_drs): Ditto.
14305         (vect_create_cond_for_alias_checks): Ditto.
14306         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
14307         (vect_build_slp_tree_1): Ditto.
14308         (vect_supported_load_permutation_p): Ditto.
14309         (vect_analyze_slp_instance): Ditto.
14310         (vect_analyze_slp): Ditto.
14311         (vect_make_slp_decision): Ditto.
14312         (vect_detect_hybrid_slp): Ditto.
14313         (vect_bb_vectorization_profitable_p): Ditto.
14314         (vect_slp_analyze_bb_1): Ditto.
14315         (vect_update_slp_costs_according_to_vf): Ditto.
14316         (vect_get_mask_element): Ditto.
14317         (vect_transform_slp_perm_load): Ditto.
14318         (vect_schedule_slp_instance): Ditto.
14319         (vect_schedule_slp): Ditto.
14320         (vect_slp_transform_bb): Ditto.
14321         * profile.c (read_profile_edge_counts): Ditto.
14322         (compute_branch_probabilities): Ditto.
14323         * coverage.c (get_coverage_counts): Ditto.
14325 2013-09-16  Diego Novillo  <dnovillo@google.com>
14327         * tree-core.h: Add missing comment lines from refactoring of tree.h.
14329 2013-09-16  Jan Hubicka  <jh@suse.cz>
14331         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
14332         abstract functions; for static functions check the presence of body.
14334 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14336         * config/aarch64/aarch64-simd-builtins.def (fma): New.
14337         * config/aarch64/aarch64-simd.md
14338         (aarch64_mla_elt<mode>): New.
14339         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14340         (aarch64_mls_elt<mode>): Likewise.
14341         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14342         (aarch64_fma4_elt<mode>): Likewise.
14343         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14344         (aarch64_fma4_elt_to_128v2df): Likewise.
14345         (aarch64_fma4_elt_to_64df): Likewise.
14346         (fnma<mode>4): Likewise.
14347         (aarch64_fnma4_elt<mode>): Likewise.
14348         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14349         (aarch64_fnma4_elt_to_128v2df): Likewise.
14350         (aarch64_fnma4_elt_to_64df): Likewise.
14351         * config/aarch64/iterators.md (VDQSF): New.
14352         * config/aarch64/arm_neon.h
14353         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
14354         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
14356 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14358         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
14359         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14360         (aarch64_mul3_elt_to_128df): Likewise.
14361         (aarch64_mul3_elt_to_64v2df): Likewise.
14362         * config/aarch64/iterators.md (VEL): Also handle DFmode.
14363         (VMUL): New.
14364         (VMUL_CHANGE_NLANES) Likewise.
14365         (h_con): Likewise.
14366         (f): Likewise.
14367         * config/aarch64/arm_neon.h
14368         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
14370 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14372         * config/aarch64/arm_neon.h
14373         (vcvtx_high_f32_f64): Fix parameters.
14375 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14376             Uros Bizjak  <ubizjak@gmail.com>
14378         * config/alpha.c: Include tree-ssanames.h.
14380 2013-09-16  Richard Biener  <rguenther@suse.de>
14382         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
14383         (dot_rdg_1): Handle control_dd.
14384         (create_edge_for_control_dependence): New function.
14385         (create_rdg_edges): Add control dependences if asked for.
14386         (build_rdg): Likewise.
14387         (generate_loops_for_partition): If there are not necessary
14388         control stmts remove all their dependencies.
14389         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
14390         (distribute_loop): Pass on control dependences.
14391         (tree_loop_distribution): Compute control dependences and remove
14392         restriction on number of loop nodes.
14394 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
14396         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
14397         for internal calls.
14399 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
14401         * cse.c (try_const_anchors): Punt on CC modes.
14403 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14405         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
14407 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
14409         PR target/58382
14410         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
14411         calls to word_mode.
14413 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
14415         PR target/48094
14416         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
14417         seen.
14418         (darwin_objc1_section): Likewise.
14419         (darwin_file_end): Emit Image Info section when required.
14421 2013-09-14  Jan Hubicka  <jh@suse.cz>
14423         * tree-into-ssa.c (gate_into_ssa): New.
14424         (pass_data_build_ssa): Use it.
14425         * cgraph.h (expand_thunk): Update prototype.
14426         * cgraphunit.c (analyze_function): Expand thunks early.
14427         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
14428         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
14429         set lowered flag; do not add new function.
14430         (assemble_thunks_and_aliases): Update.
14431         * tree-ssa.c (gate_init_datastructures): New gate.
14432         (pass_data_init_datastructures): Use it.
14434 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
14436         PR target/58269
14437         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
14438         xmm register set described in the psABI.
14440 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
14442         * dwarf2out.c (should_emit_struct_debug): Add check
14443         for type_decl variable is not NULL.
14445 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
14447         * config.gcc: Use new winnt-c.c target hooks
14448         * config/t-winnt: New file
14449         * config/winnt-c.c: New file
14450         * doc/tm.texi.in: Document new hook
14451         * doc/tm.texi: Regenerated
14453 2013-09-13  Jan Hubicka  <jh@suse.cz>
14455         PR middle-end/58094
14456         * ipa-inline.c (check_callers): New function.
14457         (check_caller_edge): Remove.
14458         (want_inline_function_to_all_callers_p): Also permit alises that are
14459         called dirrectly.
14460         (inline_to_all_callers): Terminate the walk when devirtualization
14461         introduce new calls.
14463 2013-09-13  Jan Hubicka  <jh@suse.cz>
14465         * ipa-inline-analysis.c (struct growth_data): Add node.
14466         (do_estimate_growth_1): Fix detection of recursion.
14468 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
14470         PR tree-optimization/58392
14471         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
14472         to avoid shadowing of outer loop variable.  If
14473         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
14474         replace_by_duplicate_decl simduid of loops that have it set and
14475         set dest_cfun->has_simduid_loops and/or
14476         dest_cfun->has_force_vect_loops.
14477         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
14478         instead of maybe_lookup_decl.
14479         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
14480         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
14481         call.  Copy over force_vect and copy and remap simduid.  Set
14482         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
14483         (copy_cfg_body): Remove blocks_to_copy argument.  Use
14484         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
14485         caller.  Don't set cfun->has_simduid_loops and/or
14486         cfun->has_force_vect_loops here.
14487         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
14488         caller.
14489         (expand_call_inline, tree_function_versioning): Adjust copy_body
14490         callers.
14492 2013-09-13  Martin Jambor  <mjambor@suse.cz>
14494         PR bootstrap/58388
14495         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
14496         the assert if the edge was a speculative one.
14498 2013-09-13  Richard Biener  <rguenther@suse.de>
14500         * tree-data-ref.h (known_dependences_p): Move here ...
14501         * tree-loop-distribution.c (known_dependences_p): ... from here.
14502         (dump_rdg_component, debug_rdg_component): Remove.
14503         (dump_rdg): Adjust.
14504         (generate_loops_for_partition): Use gimple_uid instead of
14505         relying on matching stmt visit order.
14506         (rdg_build_partitions): Take starting stmt vector.
14507         (ldist_gen): Merge into ...
14508         (distribute_loop): ... this function.  Do not compute starting
14509         vertices vector.
14510         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
14512 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14514         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
14515         Set type attribute correctly. Set predicable_short_it attribute.
14516         (cmpsi_shiftsi): Remove %? from output template.
14518 2013-09-13  Richard Biener  <rguenther@suse.de>
14520         * tree-loop-distribution.c (struct rdg_component,
14521         rdg_defs_used_in_other_loops_p, free_rdg_components,
14522         rdg_build_components): Remove.
14523         (stmts_from_loop): Do not record virtual PHIs.
14524         (generate_loops_for_partition): Skip virtual PHIs.
14525         (build_rdg_partition_for_component): Rename to ...
14526         (build_rdg_partition_for_vertex): ... this and adjust.
14527         (rdg_build_partitions): Take a vector of starting vertices
14528         instead of components.  Remove unnecessary leftover handling.
14529         (ldist_gen): Do not build components or record other stores.
14530         (distribute_loop): Do not distribute loops containing stmts
14531         with side-effects.
14533 2013-09-13  Christian Bruel  <christian.bruel@st.com>
14535         PR target/58314
14536         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
14538 2013-09-13  Kai Tietz  <ktietz@redhat.com>
14540         * config.gcc: Separate cases for mingw and cygwin targets,
14541         and add 64-bit cygwin target case.
14543         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
14544         dll-export inline-functions.
14545         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
14547 2013-09-13  Jeff Law  <law@redhat.com>
14549         PR middle-end/58387
14550         Revert:
14551         2013-09-06  Jeff Law  <law@redhat.com>
14553         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14554         edge implied equivalences into successor phis.
14556 2013-09-12  DJ Delorie  <dj@redhat.com>
14558         * config/rl78/rl78-virt.md: Change from | to \; for asm line
14559         separators.
14561 2013-09-12  Brooks Moses  <bmoses@google.com>
14563         PR driver/42955
14564         * Makefile.in: Do not install driver binaries in $(target)/bin.
14566 2013-09-12  DJ Delorie  <dj@redhat.com>
14568         * config/rl78/rl78.opt (mrelax): New.
14569         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
14570         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
14572         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
14573         between SP and FP.
14574         (rl78_expand_epilogue): Likewise.
14576 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
14578         PR middle-end/58335
14579         * lra-eliminations.c (remove_reg_equal_offset_note): New.
14580         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
14581         pointer elimination with using remove_reg_equal_offset_note.
14583 2013-09-12  DJ Delorie  <dj@redhat.com>
14585         * config/msp430/: New port.
14586         * config.gcc (msp430): Added.
14587         * doc/invoke.texi: Document MSP430 options.
14588         * doc/install.texi: Document msp430-elf
14589         * doc/md.texi: Document msp430-elf
14590         * doc/contrib.texi: Document msp430-elf
14592         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
14593         PSImode.
14595 2013-09-12  Martin Jambor  <mjambor@suse.cz>
14597         PR ipa/58389
14598         * ipa-prop.c (remove_described_reference): Give up if the edge in the
14599         reference descriptor is NULL.
14600         (ipa_edge_removal_hook): If owning a reference descriptor, set its
14601         edge to NULL.
14603 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
14605         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
14606         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
14607         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
14608         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
14609         make_temp_ssa_name): move to tree-ssanames.h
14610         * tree-ssa-alias.h: Move prototype.
14611         * tree-ssa.h: Include tree-ssanames.h.
14612         * tree-ssanames.c (FREE_SSANAMES): Move to here.
14613         * tree-ssanames.h: New.  Move items from tree-flow*.h
14614         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
14616 2013-09-12  Richard Biener  <rguenther@suse.de>
14618         PR tree-optimization/58404
14619         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
14620         propagate non-invariant addresses into dereferences wrapped
14621         in component references.
14623 2013-09-12  Richard Biener  <rguenther@suse.de>
14625         PR tree-optimization/58402
14626         * passes.def: Move pass_late_warn_uninitialized later.
14628 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
14630         * tree-ssa.h: New.  Move content from tree-flow.h and
14631         tree-flow-inline.h.
14632         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
14633         Move prototypes belonging to tree-ssa.c.
14634         * tree-flow-inline.h (redirect_edge_var_map_def,
14635         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
14636         tree-ssa.h.
14637         * gimple.h: Adjust prototypes.
14638         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
14639         to...
14640         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
14641         * tree.h: Move prototype to tree-ssa.h.
14642         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
14643         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
14644         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
14645         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
14646         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
14647         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
14648         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
14649         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
14650         graphite-blocking.c, graphite-clast-to-gimple.c,
14651         graphite-dependences.c, graphite-interchange.c,
14652         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
14653         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
14654         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
14655         ipa-reference.c, ipa-split.c, ipa-utils.c,
14656         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
14657         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
14658         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
14659         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
14660         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
14661         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
14662         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
14663         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
14664         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
14665         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
14666         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
14667         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
14668         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
14669         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
14670         value-prof.c, var-tracking.c,
14671         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
14673 2013-09-12  Richard Biener  <rguenther@suse.de>
14675         PR tree-optimization/58396
14676         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
14677         (build_rdg): Take a loop-nest parameter, fix memleaks.
14678         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
14680 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
14682         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
14683         for SLM.
14685 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
14687         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
14688         The FMA instruction names should have a 'v' prefix.
14690 2013-09-12  Richard Biener  <rguenther@suse.de>
14692         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
14693         (dot_rdg): Use popen instead of system in optional code.
14694         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
14695         (already_processed_vertex_p): Adjust.
14696         (has_anti_or_output_dependence, predecessor_has_mem_write,
14697         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
14698         rdg_flag_uses): Remove.
14699         (rdg_flag_vertex): Simplify.
14700         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
14701         remove recursion.
14702         (build_rdg_partition_for_component): Process the first vertex
14703         of a component only.
14704         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
14706 2013-09-12  Alan Modra  <amodra@gmail.com>
14708         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
14710 2013-09-11  DJ Delorie  <dj@redhat.com>
14711             Nick Clifton  <nickc@redhat.com>
14713         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
14714         (rl78_stack_based_mem): New.
14715         * config/rl78/constraints.md (Iv08): New.
14716         (Iv16): New.
14717         (Iv24): New.
14718         (Is09): New.
14719         (Is17): New.
14720         (Is25): New.
14721         (ISsi): New.
14722         (IShi): New.
14723         (ISqi): New.
14724         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
14725         (movhi): Likewise.
14726         (movsi): Change from expand to insn-and-split.
14727         (ashrsi3): Clobber AX.
14728         (lshrsi3): New.
14729         (ashlsi3): New.
14730         (cbranchsi4): New.
14731         * config/rl78/rl78.md (CC_REG): Fix.
14732         (addsi3): Allow memory and immediate operands.
14733         (addsi3_internal): Split into...
14734         (addsi3_internal_virt): ...new, and ...
14735         (addsi3_internal_real): ...new.
14736         (subsi): New.
14737         (subsi3_internal_virt): New.
14738         (subsi3_internal_real): New.
14739         (mulsi3): Add memory operand.
14740         (mulsi3_rl78): Likewise.
14741         (mulsi3_g13): Likewise.
14742         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
14743         (cbranchqi4_real): Add more constraint options.
14744         (cbranchhi4_real): Expand pattern.
14745         (cbranchhi4_real_signed): New.
14746         (cbranchhi4_real_inverted): New.
14747         (cbranchsi4_real_lt): New.
14748         (cbranchsi4_real_ge): New.
14749         (cbranchsi4_real_signed): New.
14750         (cbranchsi4_real): New.
14751         (peephole2): New.
14752         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
14753         constant shifts.
14754         (lshrsi3_virt): Likewise.
14755         (ashlsi3_virt): Likewise.
14756         (cbranchqi4_virt_signed): New.
14757         (cbranchhi4_virt_signed): New.
14758         (cbranchsi4_virt): New.
14759         * config/rl78/rl78.c: Whitespace fixes throughout.
14760         (move_elim_pass): New.
14761         (pass_data_rl78_move_elim): New.
14762         (pass_rl78_move_elim): New.
14763         (make_pass_rl78_move_elim): New.
14764         (rl78_devirt_info): Run devirt earlier.
14765         (rl78_move_elim_info): New.
14766         (rl78_asm_file_start): Register it.
14767         (rl78_split_movsi): New.
14768         (rl78_as_legitimate_address): Allow virtual base registers when
14769         appropriate.
14770         (rl78_addr_space_convert): Remove spurious debug stuff.
14771         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
14772         (rl78_print_operand): More cases for not printing '#'.
14773         (rl78_expand_compare): Remove most of the logic.
14774         (content_memory): New.
14775         (clear_content_memory): New.
14776         (get_content_index): New.
14777         (get_content_name): New.
14778         (display_content_memory): New.
14779         (update_content): New.
14780         (record_content): New.
14781         (already_contains): New.
14782         (insn_ok_now): Re-recog insns with virtual registers.
14783         (add_postponed_content_update): New.
14784         (process_postponed_content_update): New.
14785         (gen_and_emit_move): New.
14786         (transcode_memory_rtx): Record new location content.
14787         Use gen_and_emit_move.
14788         (force_into_acc): New.
14789         (move_to_acc): Use gen_and_emit_move.
14790         (move_from_acc): Likewise.
14791         (move_acc_to_reg): Likewise.
14792         (move_to_x): Likewise.
14793         (move_to_hl): Likewise.
14794         (move_to_de): Likewise.
14795         (rl78_alloc_physical_registers_op1): Record location content.
14796         (has_constraint): New.
14797         (rl78_alloc_physical_registers_op2): Record location content.
14798         Optimize use of HL.
14799         (rl78_alloc_physical_registers_ro1): Likewise.
14800         (rl78_alloc_physical_registers_cmp): Likewise.
14801         (rl78_alloc_physical_registers_umul): Likewise.
14802         (rl78_alloc_address_registers_macax): New.
14803         (rl78_alloc_physical_registers): Initialize and set location
14804         content memory as needed.
14805         (rl78_reorg): Make sure split2 is called.
14806         (rl78_rtx_costs): New.
14808 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
14810         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
14811         for (not (neg ...)) and (neg (not ...)) cases.
14813 2013-09-11  Richard Biener  <rguenther@suse.de>
14815         PR middle-end/58377
14816         * passes.def: Split critical edges before late uninit warning passes.
14817         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
14819 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
14821         PR tree-optimization/58385
14822         * fold-const.c (build_range_check): If both low and high are NULL,
14823         use omit_one_operand_loc to preserve exp side-effects.
14825 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14827         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
14829 2013-09-11  Richard Biener  <rguenther@suse.de>
14831         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
14832         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
14833         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
14834         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
14835         stmts_from_loop, known_dependences_p, build_empty_rdg,
14836         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
14837         * tree-loop-distribution.c: ... here.
14838         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
14839         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
14840         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
14841         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
14842         * tree-loop-distribution.c: ... here.
14843         * tree-loop-distribution.c: Include gimple-pretty-print.h.
14844         (struct partition_s): Add loops member.
14845         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
14846         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
14847         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
14849 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14850             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14851             Sergey Lega  <sergey.s.lega@intel.com>
14852             Anna Tikhonova  <anna.tikhonova@intel.com>
14853             Ilya Tocar  <ilya.tocar@intel.com>
14854             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14855             Ilya Verbin  <ilya.verbin@intel.com>
14856             Kirill Yukhin  <kirill.yukhin@intel.com>
14857             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14859         * config/i386/constraints.md (k): New.
14860         (Yk): Ditto.
14861         * config/i386/i386.c (const regclass_map): Add new mask registers.
14862         (dbx_register_map): Ditto.
14863         (dbx64_register_map): Ditto.
14864         (svr4_dbx_register_map): Ditto.
14865         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
14866         disabled.
14867         (ix86_preferred_reload_class): Disable constants for mask registers.
14868         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
14869         (ix86_hard_regno_mode_ok): Support new mask registers.
14870         (x86_order_regs_for_local_alloc): Ditto.
14871         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
14872         (FIXED_REGISTERS): Add new mask registers.
14873         (CALL_USED_REGISTERS): Ditto.
14874         (REG_ALLOC_ORDER): Ditto.
14875         (VALID_MASK_REG_MODE): New.
14876         (FIRST_MASK_REG): Ditto.
14877         (LAST_MASK_REG): Ditto.
14878         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
14879         (MAYBE_MASK_CLASS_P): New.
14880         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
14881         (REG_CLASS_CONTENTS): Ditto.
14882         (MASK_REGNO_P): New.
14883         (ANY_MASK_REG_P): Ditto.
14884         (HI_REGISTER_NAMES): Add new mask registers.
14885         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
14886         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
14887         mask registers.
14888         (attribute "type"): Add mskmov, msklog.
14889         (attribute "length_immediate"): Support them.
14890         (attribute "memory"): Ditto.
14891         (attribute "prefix_0f"): Ditto.
14892         (*movhi_internal): Support new mask registers.
14893         (*movqi_internal): Ditto.
14894         (define_split): Split out clobber pattern is a logic
14895         insn on mask registers.
14896         (*k<logic><mode>): New.
14897         (*andhi_1): Extend to support mask regs.
14898         (*andqi_1): Extend to support mask regs.
14899         (kandn<mode>): New.
14900         (define_split): Split and-not to and and not if operands
14901         are not mask regs.
14902         (*<code><mode>_1): Separate HI mode to new pattern...
14903         (*<code>hi_1): This.
14904         (*<code>qi_1): Extend to support mask regs.
14905         (kxnor<mode>): New.
14906         (kortestzhi): Ditto.
14907         (kortestchi): Ditto.
14908         (kunpckhi): Ditto.
14909         (*one_cmpl<mode>2_1): Remove HImode and handle it...
14910         (*one_cmplhi2_1): ...Here, now with mask registers support.
14911         (*one_cmplqi2_1): Support new mask registers.
14912         (HI/QImode arithmetics splitter): Don't split if mask registers
14913         are used.
14914         (HI/QImode not splitter): Ditto.
14915         * config/i386/predicated.md (mask_reg_operand): New.
14916         (general_reg_operand): Ditto.
14918 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14920         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
14921         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
14923 2013-09-10  Jeff Law  <law@redhat.com>
14925         PR tree-optimization/58380
14926         * tree-ssa-threadupdate.c (thread_block): Recognize another case
14927         of threading through a buried loop header.
14929         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
14930         return value for single successor case.
14932 2013-09-10  Jan Hubicka  <jh@suse.cz>
14934         * ipa-devirt.c (ipa_devirt): Enable with LTO.
14936 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
14938         PR target/58361
14939         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
14940         support conditional execution.
14941         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
14943 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
14945         * lra.c (lra): Clear lra_optional_reload_pseudos before every
14946         constraint pass.
14947         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
14948         Check destination too to check move insn.
14949         (undo_optional_reloads): Add check that the original peudo did not
14950         changed its allocation and the optional reload was inherited on last
14951         inheritance pass.  Break loop after deciding to keep optional reload.
14952         (lra_undo_inheritance): Add check that inherited pseudo still in
14953         memory.
14955 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
14957         * config/aarch64/aarch64.md (generic_sched): New.
14958         * config/aarch64/aarch64-generic.md (load): Make conditional
14959         on generic_sched attribute.
14960         (nonload): Likewise.
14962 2013-09-10  Jan Hubicka  <jh@suse.cz>
14964         * lto-cgraph.c: Include ipa-utils.h.
14965         (compute_ltrans_boundary): Also add possible targets into the boundary.
14967 2013-09-10  Jan Hubicka  <jh@suse.cz>
14969         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
14970         VAR_DECL of vtable rather than full expression.
14972 2013-09-10  Jan Hubicka  <jh@suse.cz>
14973             Paolo Carlini  <paolo.carlini@oracle.com>
14975         * cgraphunit.c (analyze_functions): Save input_location, set it
14976         to UNKNOWN_LOCATION and restore it at the end.
14978 2013-09-10  Martin Jambor  <mjambor@suse.cz>
14980         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
14981         represented by a thunk.
14983 2013-09-10  Jeff Law  <law@redhat.com>
14985         PR tree-optimization/58343
14986         * tree-ssa-threadupdate.c (thread_block): Identify and disable
14987         jump threading requests through loop headers buried in the middle
14988         of a jump threading path.
14990         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
14991         in return value/type.
14993 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
14995         PR rtl-optimization/58365
14996         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
14997         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
14998         it differs.
15000 2013-09-10  Richard Biener  <rguenther@suse.de>
15002         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15003         * tree-data-ref.c (create_rdg_vertices): Collect all data
15004         references, signal failure to the caller, use data-ref API.
15005         (build_rdg): Compute data references only once.  Maintain lifetime
15006         of data references and data dependences from within RDG.
15007         (free_rdg): Free dependence relations.
15008         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15009         inventing extra dependences.
15010         (distribute_loop): Update for RDG API changes.
15012 2013-09-10  Kai Tietz  <ktietz@redhat.com>
15014         * doc/invoke.texi (fms-extensions): Document changed
15015         behavior for ms-abi targets.
15016         * config/i386/i386.c (ix86_option_override_internal):
15017         Set default value of option -fms-extension for ms-abi targets.
15019 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15021         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15023 2013-09-10  Alan Modra  <amodra@gmail.com>
15025         PR target/58330
15026         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15028 2013-09-10  Alan Modra  <amodra@gmail.com>
15030         * config/rs6000/predicates.md (add_cint_operand): New.
15031         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15032         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15033         using add_cint_operand.
15034         (largetoc_high_plus_aix): Likewise.
15036 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
15038         PR tree-optimization/58364
15039         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15040         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15041         the current range can't be an unconditional true or false.
15043 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
15045         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15047 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
15049         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15051 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
15053         PR c++/43452
15054         * doc/invoke.texi (-Wdelete-incomplete): Document it.
15056 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
15058         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15059         NO_REGS for immediate that can't be moved directly into FP_REGS.
15061 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15063         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15064         comparison with negated operand.
15065         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15066         RTL form.
15068 2013-09-09  Richard Biener  <rguenther@suse.de>
15070         PR middle-end/58326
15071         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15072         of a subloop record all its block as affecting loop-closed SSA form.
15074 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15076         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15077         of an rtx/bitpos pair.
15078         (store_fixed_bit_field): Update accordingly.
15080 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15082         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15083         GEN_INT.
15084         * builtins.c (expand_errno_check): Likewise.
15085         * dwarf2cfi.c (init_return_column_size): Likewise.
15086         * except.c (sjlj_mark_call_sites): Likewise.
15087         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15088         * lra-constraints.c (emit_inc): Likewise.
15089         * ree.c (combine_set_extension): Likewise.
15090         * regmove.c (fixup_match_2): Likewise.
15091         * reload1.c (inc_for_reload): Likewise.
15093 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15095         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15096         (force_to_mode, simplify_shift_const_1, simplify_comparison):
15097         Use gen_int_mode with the mode of the associated simplify_* call.
15098         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15099         * expmed.c (expand_shift_1): Likewise.
15100         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15101         * loop-iv.c (iv_number_of_iterations): Likewise.
15102         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15103         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15105 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15107         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15108         of the associated expand_* call.
15109         (asan_emit_stack_protection): Likewise.
15110         * builtins.c (round_trampoline_addr): Likewise.
15111         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15112         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15113         (emit_store_flag): Likewise.
15114         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15115         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15116         Likewise.
15117         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15118         * ifcvt.c (noce_try_store_flag_constants): Likewise.
15119         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15120         * modulo-sched.c (generate_prolog_epilog): Likewise.
15121         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15122         (expand_ctz, expand_ffs, expand_unop): Likewise.
15124 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15126         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15127         of the associated gen_rtx_* call.
15128         * caller-save.c (init_caller_save): Likewise.
15129         * combine.c (find_split_point, make_extraction): Likewise.
15130         (make_compound_operation): Likewise.
15131         * dwarf2out.c (mem_loc_descriptor): Likewise.
15132         * explow.c (plus_constant, probe_stack_range): Likewise.
15133         * expmed.c (expand_mult_const): Likewise.
15134         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15135         * reload1.c (init_reload): Likewise.
15136         * valtrack.c (cleanup_auto_inc_dec): Likewise.
15137         * var-tracking.c (adjust_mems): Likewise.
15138         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15139         rather than gen_rtx_fmt_ee.
15141 2013-09-09  Jan Hubicka  <jh@suse.cz>
15143         PR middle-end/58294
15144         * value-prof.c (gimple_ic): Copy also abnormal edges.
15146 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15148         * asan.c (asan_shadow_cst): Use gen_int_mode.
15150 2013-09-08  Jan Hubicka  <jh@suse.cz>
15152         * ipa-profile.c: Add toplevel comment.
15153         (ipa_propagate_frequency_1): Be more conservative when profile is read.
15154         (contains_hot_call_p): New function.
15155         (ipa_propagate_frequency): Set frequencies based on counts when
15156         profile is read.
15157         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15158         profile; do not tamper with profile after inlining if it is read.
15160 2013-09-08  Jan Hubicka  <jh@suse.cz>
15162         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15163         speculative edges.
15165 2013-09-08  Jan Hubicka  <jh@suse.cz>
15167         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15168         summary generation.
15170 2013-09-08  Jeff Law  <law@redhat.com>
15172         PR bootstrap/58340
15173         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15174         of 'found'.
15176 2013-09-08  Andi Kleen  <ak@linux.intel.com>
15178         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15180 2013-09-08  Jan Hubicka  <jh@suse.cz>
15182         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15184 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
15186         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15187         for non-debug insns.
15188         * lra.c (new_insn_reg): Take the containing insn as a parameter.
15189         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15190         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15191         accordingly.
15193 2013-09-08  Jan Hubicka  <jh@suse.cz>
15195         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15196         targets and devirtualize to BUILT_IN_UNREACHABLE.
15197         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15198         * ipa.c (walk_polymorphic_call_targets): New function.
15199         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15200         functions; use the new timevar.
15201         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15202         was removed from the program.
15203         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15204         not consider it in the walk when its vtable is dead.
15205         (possible_polymorphic_call_targets_1): Pass anonymous flag to
15206         record_binfo.
15207         (devirt_variable_node_removal_hook): New function.
15208         (possible_polymorphic_call_targets): Also register
15209         devirt_variable_node_removal_hook.
15210         (ipa_devirt): Do not do non-speculative devirtualization.
15211         (gate_ipa_devirt): One execute if devirtualizing speculatively.
15213 2013-09-08  Jan Hubicka  <jh@suse.cz>
15215         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
15216         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
15217         varpool_remove_variable_insertion_hook): Declare.
15218         * varpool.c (varpool_node_hook_list): New structure.
15219         (first_varpool_node_removal_hook,
15220         first_varpool_variable_insertion_hook): New variables.
15221         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
15222         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
15223         varpool_remove_variable_insertion_hook,
15224         varpool_call_variable_insertion_hooks): New functions.
15225         (varpool_remove_node): Use it.
15227 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
15229         PR c++/54941
15230         * diagnostic.c (diagnostic_build_prefix): When s.file is
15231         "<built-in>" don't output line and column numbers.
15233 2013-09-06  Jan Hubicka  <jh@suse.cz>
15235         * cgraphunit.c (expand_thunk): Get body before touching arguments.
15236         * lto-streamer-out.c: Stream thunks, too.
15237         * lto-streamer-in.c (input_function): Pop cfun here
15238         (lto_read_body): Instead of here.
15240 2013-09-06  Caroline Tice  <cmtice@google.com>
15242         * doc/install.texi: Add documentation for the --enable-vtable-verify
15243         and the --disable-libvtv configure options.
15245 2013-09-06  Jeff Law  <law@redhat.com>
15247         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15248         edge implied equivalences into successor phis.
15250 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
15252         * resource.c (mark_referenced_resources): Handle COND_EXEC.
15254 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
15256         * resource.c (mark_target_live_regs): Compute resources taking
15257         into account if a call is predicated or not.
15259 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
15261         * toplev.c (output_stack_usage): Be prepared for suffixes created by
15262         the compiler in the function names.
15264 2013-09-06  Jan Hubicka  <jh@suse.cz>
15266         PR middle-end/58094
15267         * ipa-inline.c (has_caller_p): New function.
15268         (want_inline_function_to_all_callers_p): Use it.
15269         (sum_callers, inline_to_all_callers): Break out from ...
15270         (ipa_inline): ... here.
15272 2013-09-06  Jan Hubicka  <jh@suse.cz>
15274         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15275         only when AVX is enabled.
15277 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15279         * config/aarch64/aarch64.md
15280         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
15281         is fpsimd_<load/store>2.
15282         (load_pair<mode>): Likewise.
15283         (store_pair<mode>): Likewise.
15285 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15287         * config/arm/types.md (type): Add "mrs" type.
15288         * config/aarch64/aarch64.md
15289         (aarch64_load_tp_hard): Make type "mrs".
15290         * config/arm/arm.md
15291         (load_tp_hard): Make type "mrs".
15292         * config/arm/cortex-a15.md: Update with new attributes.
15293         * config/arm/cortex-a5.md: Update with new attributes.
15294         * config/arm/cortex-a53.md: Update with new attributes.
15295         * config/arm/cortex-a7.md: Update with new attributes.
15296         * config/arm/cortex-a8.md: Update with new attributes.
15297         * config/arm/cortex-a9.md: Update with new attributes.
15298         * config/arm/cortex-m4.md: Update with new attributes.
15299         * config/arm/cortex-r4.md: Update with new attributes.
15300         * config/arm/fa526.md: Update with new attributes.
15301         * config/arm/fa606te.md: Update with new attributes.
15302         * config/arm/fa626te.md: Update with new attributes.
15303         * config/arm/fa726te.md: Update with new attributes.
15305 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15307         * config/aarch64/aarch64.md
15308         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
15309         (*movtf_aarch64): Likewise.
15310         * config/arm/arm.md
15311         (thumb1_movdi_insn): Use "multiple" for type where more than one
15312         instruction is used for a move.
15313         (*arm32_movhf): Likewise.
15314         (*thumb_movdf_insn): Likewise.
15316 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15318         * config/arm/types.md (type): Rename fcpys to fmov.
15319         * config/arm/vfp.md
15320         (*arm_movsi_vfp): Rename type fcpys as fmov.
15321         (*thumb2_movsi_vfp): Likewise
15322         (*movhf_vfp_neon): Likewise
15323         (*movhf_vfp): Likewise
15324         (*movsf_vfp): Likewise
15325         (*thumb2_movsf_vfp): Likewise
15326         (*movsfcc_vfp): Likewise
15327         (*thumb2_movsfcc_vfp): Likewise
15328         * config/aarch64/aarch64-simd.md
15329         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
15330         * config/aarch64/aarch64.md
15331         (*movsi_aarch64): Replace type mov_reg with fmovs.
15332         (*movdi_aarch64): Likewise
15333         (*movsf_aarch64): Likewise
15334         (*movdf_aarch64): Likewise
15335         * config/arm/arm.c
15336         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
15337         * config/arm/iwmmxt.md
15338         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
15339         * config/arm/arm1020e.md: Update with new attributes.
15340         * config/arm/cortex-a15-neon.md: Update with new attributes.
15341         * config/arm/cortex-a5.md: Update with new attributes.
15342         * config/arm/cortex-a53.md: Update with new attributes.
15343         * config/arm/cortex-a7.md: Update with new attributes.
15344         * config/arm/cortex-a8-neon.md: Update with new attributes.
15345         * config/arm/cortex-a9.md: Update with new attributes.
15346         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15347         * config/arm/cortex-r4f.md: Update with new attributes.
15348         * config/arm/marvell-pj4.md: Update with new attributes.
15349         * config/arm/vfp11.md: Update with new attributes.
15351 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15353         * config/aarch64/aarch64.md
15354         (*madd<mode>): Fix type attribute.
15355         (*maddsi_uxtw): Likewise.
15356         (*msub<mode>): Likewise.
15357         (*msubsi_uxtw): Likewise.
15358         (<su_optab>maddsidi4): Likewise.
15359         (<su_optab>msubsidi4): Likewise.
15361 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15363         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
15364         * config/arm/arm.md (core_cycles): Remove fdiv.
15365         * config/arm/vfp.md:
15366         (*sqrtsf2_vfp): Update for attribute changes.
15367         (*sqrtdf2_vfp): Likewise.
15368         * config/aarch64/aarch64.md:
15369         (sqrt<mode>2): Update for attribute changes.
15370         * config/arm/arm1020e.md: Update with new attributes.
15371         * config/arm/cortex-a15-neon.md: Update with new attributes.
15372         * config/arm/cortex-a5.md: Update with new attributes.
15373         * config/arm/cortex-a53.md: Update with new attributes.
15374         * config/arm/cortex-a7.md: Update with new attributes.
15375         * config/arm/cortex-a8-neon.md: Update with new attributes.
15376         * config/arm/cortex-a9.md: Update with new attributes.
15377         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15378         * config/arm/cortex-r4f.md: Update with new attributes.
15379         * config/arm/marvell-pj4.md: Update with new attributes.
15380         * config/arm/vfp11.md: Update with new attributes.
15382 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15384         * config/arm/types.md
15385         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
15386         * config/aarch64/aarch64.md
15387         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
15388         new attributes.
15389         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15390         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
15391         (float<GPI:mode><GPF:mode>2): Likewise.
15392         * config/arm/vfp.md
15393         (*truncsisf2_vfp): Update with new attributes.
15394         (*truncsidf2_vfp): Likewise.
15395         (fixuns_truncsfsi2): Likewise.
15396         (fixuns_truncdfsi2): Likewise.
15397         (*floatsisf2_vfp): Likewise.
15398         (*floatsidf2_vfp): Likewise.
15399         (floatunssisf2): Likewise.
15400         (floatunssidf2): Likewise.
15401         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
15402         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
15403         * config/arm/arm1020e.md: Update with new attributes.
15404         * config/arm/cortex-a15-neon.md: Update with new attributes.
15405         * config/arm/cortex-a5.md: Update with new attributes.
15406         * config/arm/cortex-a53.md: Update with new attributes.
15407         * config/arm/cortex-a7.md: Update with new attributes.
15408         * config/arm/cortex-a8-neon.md: Update with new attributes.
15409         * config/arm/cortex-a9.md: Update with new attributes.
15410         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15411         * config/arm/cortex-r4f.md: Update with new attributes.
15412         * config/arm/marvell-pj4.md: Update with new attributes.
15413         * config/arm/vfp11.md: Update with new attributes.
15415 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15417         * config/aarch64/arm_neon.h
15418         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
15419         (vqtbx<1,2,3,4><q>_s8): Likewise.
15421 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15423         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
15424         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
15425         (add<mode>3): Add type attribute.
15426         (add<mode>3): Likewise.
15427         (usadd<mode>3): Likewise.
15428         (ssadd<mode>3): Likewise.
15429         (sub<mode>3): Likewise.
15430         (sub<mode>3): Likewise.
15431         (ussub<mode>3): Likewise.
15432         (sssub<mode>3): Likewise.
15433         (ssmulsa3): Likewise.
15434         (usmulusa3): Likewise.
15435         (arm_usatsihi): Likewise.
15436         * config/arm/vfp.md
15437         (*movdi_vfp): Add types for all instructions.
15438         (*movdi_vfp_cortexa8): Likewise.
15439         (*movhf_vfp_neon): Likewise.
15440         (*movhf_vfp): Likewise.
15441         (*movdf_vfp): Likewise.
15442         (*thumb2_movdf_vfp): Likewise.
15443         (*thumb2_movdfcc_vfp): Likewise.
15444         * config/arm/arm.md: Add type attribute to all insn patterns.
15445         (*thumb1_adddi3): Add type attribute.
15446         (*arm_adddi3): Likewise.
15447         (*adddi_sesidi_di): Likewise.
15448         (*adddi_zesidi_di): Likewise.
15449         (*thumb1_addsi3): Likewise.
15450         (addsi3_compare0): Likewise.
15451         (*addsi3_compare0_scratch): Likewise.
15452         (*compare_negsi_si): Likewise.
15453         (cmpsi2_addneg): Likewise.
15454         (*addsi3_carryin_<optab>): Likewise.
15455         (*addsi3_carryin_alt2_<optab>): Likewise.
15456         (*addsi3_carryin_clobercc_<optab>): Likewise.
15457         (*subsi3_carryin): Likewise.
15458         (*subsi3_carryin_const): Likewise.
15459         (*subsi3_carryin_compare): Likewise.
15460         (*subsi3_carryin_compare_const): Likewise.
15461         (*arm_subdi3): Likewise.
15462         (*thumb_subdi3): Likewise.
15463         (*subdi_di_zesidi): Likewise.
15464         (*subdi_di_sesidi): Likewise.
15465         (*subdi_zesidi_di): Likewise.
15466         (*subdi_sesidi_di): Likewise.
15467         (*subdi_zesidi_ze): Likewise.
15468         (thumb1_subsi3_insn): Likewise.
15469         (*arm_subsi3_insn): Likewise.
15470         (*anddi3_insn): Likewise.
15471         (*anddi_zesidi_di): Likewise.
15472         (*anddi_sesdi_di): Likewise.
15473         (*ne_zeroextracts): Likewise.
15474         (*ne_zeroextracts): Likewise.
15475         (*ite_ne_zeroextr): Likewise.
15476         (*ite_ne_zeroextr): Likewise.
15477         (*anddi_notdi_di): Likewise.
15478         (*anddi_notzesidi): Likewise.
15479         (*anddi_notsesidi): Likewise.
15480         (andsi_notsi_si): Likewise.
15481         (thumb1_bicsi3): Likewise.
15482         (*iordi3_insn): Likewise.
15483         (*iordi_zesidi_di): Likewise.
15484         (*iordi_sesidi_di): Likewise.
15485         (*thumb1_iorsi3_insn): Likewise.
15486         (*xordi3_insn): Likewise.
15487         (*xordi_zesidi_di): Likewise.
15488         (*xordi_sesidi_di): Likewise.
15489         (*arm_xorsi3): Likewise.
15490         (*andsi_iorsi3_no): Likewise.
15491         (*smax_0): Likewise.
15492         (*smax_m1): Likewise.
15493         (*arm_smax_insn): Likewise.
15494         (*smin_0): Likewise.
15495         (*arm_smin_insn): Likewise.
15496         (*arm_umaxsi3): Likewise.
15497         (*arm_uminsi3): Likewise.
15498         (*minmax_arithsi): Likewise.
15499         (*minmax_arithsi_): Likewise.
15500         (*satsi_<SAT:code>): Likewise.
15501         (arm_ashldi3_1bit): Likewise.
15502         (arm_ashrdi3_1bit): Likewise.
15503         (arm_lshrdi3_1bit): Likewise.
15504         (*arm_negdi2): Likewise.
15505         (*thumb1_negdi2): Likewise.
15506         (*arm_negsi2): Likewise.
15507         (*thumb1_negsi2): Likewise.
15508         (*negdi_extendsid): Likewise.
15509         (*negdi_zero_extend): Likewise.
15510         (*arm_abssi2): Likewise.
15511         (*thumb1_abssi2): Likewise.
15512         (*arm_neg_abssi2): Likewise.
15513         (*thumb1_neg_abss): Likewise.
15514         (one_cmpldi2): Likewise.
15515         (extend<mode>di2): Likewise.
15516         (*compareqi_eq0): Likewise.
15517         (*arm_extendhisi2addsi): Likewise.
15518         (*arm_movdi): Likewise.
15519         (*thumb1_movdi_insn): Likewise.
15520         (*arm_movt): Likewise.
15521         (*thumb1_movsi_insn): Likewise.
15522         (pic_add_dot_plus_four): Likewise.
15523         (pic_add_dot_plus_eight): Likewise.
15524         (tls_load_dot_plus_eight): Likewise.
15525         (*thumb1_movhi_insn): Likewise.
15526         (*thumb1_movsf_insn): Likewise.
15527         (*movdf_soft_insn): Likewise.
15528         (*thumb_movdf_insn): Likewise.
15529         (cbranchsi4_insn): Likewise.
15530         (cbranchsi4_scratch): Likewise.
15531         (*negated_cbranchsi4): Likewise.
15532         (*tbit_cbranch): Likewise.
15533         (*tlobits_cbranch): Likewise.
15534         (*tstsi3_cbranch): Likewise.
15535         (*cbranchne_decr1): Likewise.
15536         (*addsi3_cbranch): Likewise.
15537         (*addsi3_cbranch_scratch): Likewise.
15538         (*arm_cmpdi_insn): Likewise.
15539         (*arm_cmpdi_unsig): Likewise.
15540         (*arm_cmpdi_zero): Likewise.
15541         (*thumb_cmpdi_zero): Likewise.
15542         (*deleted_compare): Likewise.
15543         (*mov_scc): Likewise.
15544         (*mov_negscc): Likewise.
15545         (*mov_notscc): Likewise.
15546         (*cstoresi_eq0_thumb1_insn): Likewise.
15547         (cstoresi_nltu_thumb1): Likewise.
15548         (cstoresi_ltu_thu): Likewise.
15549         (thumb1_addsi3_addgeu): Likewise.
15550         (*arm_jump): Likewise.
15551         (*thumb_jump): Likewise.
15552         (*check_arch2): Likewise.
15553         (arm_casesi_internal): Likewise.
15554         (thumb1_casesi_dispatch): Likewise.
15555         (*arm_indirect_jump): Likewise.
15556         (*thumb1_indirect_jump): Likewise.
15557         (nop): Likewise.
15558         (*and_scc): Likewise.
15559         (*ior_scc): Likewise.
15560         (*compare_scc): Likewise.
15561         (*cond_move): Likewise.
15562         (*cond_arith): Likewise.
15563         (*cond_sub): Likewise.
15564         (*cmp_ite0): Likewise.
15565         (*cmp_ite1): Likewise.
15566         (*cmp_and): Likewise.
15567         (*cmp_ior): Likewise.
15568         (*ior_scc_scc): Likewise.
15569         (*ior_scc_scc_cmp): Likewise.
15570         (*and_scc_scc): Likewise.
15571         (*and_scc_scc_cmp): Likewise.
15572         (*and_scc_scc_nod): Likewise.
15573         (*negscc): Likewise.
15574         (movcond_addsi): Likewise.
15575         (movcond): Likewise.
15576         (*ifcompare_plus_move): Likewise.
15577         (*if_plus_move): Likewise.
15578         (*ifcompare_move_plus): Likewise.
15579         (*if_move_plus): Likewise.
15580         (*ifcompare_arith_arith): Likewise.
15581         (*if_arith_arith): Likewise.
15582         (*ifcompare_arith_move): Likewise.
15583         (*if_arith_move): Likewise.
15584         (*ifcompare_move_arith): Likewise.
15585         (*if_move_arith): Likewise.
15586         (*ifcompare_move_not): Likewise.
15587         (*if_move_not): Likewise.
15588         (*ifcompare_not_move): Likewise.
15589         (*if_not_move): Likewise.
15590         (*ifcompare_shift_move): Likewise.
15591         (*if_shift_move): Likewise.
15592         (*ifcompare_move_shift): Likewise.
15593         (*if_move_shift): Likewise.
15594         (*ifcompare_shift_shift): Likewise.
15595         (*ifcompare_not_arith): Likewise.
15596         (*ifcompare_arith_not): Likewise.
15597         (*if_arith_not): Likewise.
15598         (*ifcompare_neg_move): Likewise.
15599         (*if_neg_move): Likewise.
15600         (*ifcompare_move_neg): Likewise.
15601         (*if_move_neg): Likewise.
15602         (prologue_thumb1_interwork): Likewise.
15603         (*cond_move_not): Likewise.
15604         (*sign_extract_onebit): Likewise.
15605         (*not_signextract_onebit): Likewise.
15606         (stack_tie): Likewise.
15607         (align_4): Likewise.
15608         (align_8): Likewise.
15609         (consttable_end): Likewise.
15610         (consttable_1): Likewise.
15611         (consttable_2): Likewise.
15612         (consttable_4): Likewise.
15613         (consttable_8): Likewise.
15614         (consttable_16): Likewise.
15615         (*thumb1_tablejump): Likewise.
15616         (prefetch): Likewise.
15617         (force_register_use): Likewise.
15618         (thumb_eh_return): Likewise.
15619         (load_tp_hard): Likewise.
15620         (load_tp_soft): Likewise.
15621         (tlscall): Likewise.
15622         (*arm_movtas_ze): Likewise.
15623         (*arm_rev): Likewise.
15624         (*arm_revsh): Likewise.
15625         (*arm_rev16): Likewise.
15626         * config/arm/thumb2.md
15627         (*thumb2_smaxsi3): Likewise.
15628         (*thumb2_sminsi3): Likewise.
15629         (*thumb32_umaxsi3): Likewise.
15630         (*thumb2_uminsi3): Likewise.
15631         (*thumb2_negdi2): Likewise.
15632         (*thumb2_abssi2): Likewise.
15633         (*thumb2_neg_abss): Likewise.
15634         (*thumb2_movsi_insn): Likewise.
15635         (tls_load_dot_plus_four): Likewise.
15636         (*thumb2_movhi_insn): Likewise.
15637         (*thumb2_mov_scc): Likewise.
15638         (*thumb2_mov_negs): Likewise.
15639         (*thumb2_mov_negs): Likewise.
15640         (*thumb2_mov_nots): Likewise.
15641         (*thumb2_mov_nots): Likewise.
15642         (*thumb2_movsicc_): Likewise.
15643         (*thumb2_movsfcc_soft_insn): Likewise.
15644         (*thumb2_indirect_jump): Likewise.
15645         (*thumb2_and_scc): Likewise.
15646         (*thumb2_ior_scc): Likewise.
15647         (*thumb2_ior_scc_strict_it): Likewise.
15648         (*thumb2_cond_move): Likewise.
15649         (*thumb2_cond_arith): Likewise.
15650         (*thumb2_cond_ari): Likewise.
15651         (*thumb2_cond_sub): Likewise.
15652         (*thumb2_negscc): Likewise.
15653         (*thumb2_movcond): Likewise.
15654         (thumb2_casesi_internal): Likewise.
15655         (thumb2_casesi_internal_pic): Likewise.
15656         (*thumb2_alusi3_short): Likewise.
15657         (*thumb2_mov<mode>_shortim): Likewise.
15658         (*thumb2_addsi_short): Likewise.
15659         (*thumb2_subsi_short): Likewise.
15660         (thumb2_addsi3_compare0): Likewise.
15661         (*thumb2_cbz): Likewise.
15662         (*thumb2_cbnz): Likewise.
15663         (*thumb2_one_cmplsi2_short): Likewise.
15664         (*thumb2_negsi2_short): Likewise.
15665         (*orsi_notsi_si): Likewise.
15666         * config/arm/arm1020e.md: Update with new attributes.
15667         * config/arm/arm1026ejs.md: Update with new attributes.
15668         * config/arm/arm1136jfs.md: Update with new attributes.
15669         * config/arm/arm926ejs.md: Update with new attributes.
15670         * config/arm/cortex-a15.md: Update with new attributes.
15671         * config/arm/cortex-a5.md: Update with new attributes.
15672         * config/arm/cortex-a53.md: Update with new attributes.
15673         * config/arm/cortex-a7.md: Update with new attributes.
15674         * config/arm/cortex-a8.md: Update with new attributes.
15675         * config/arm/cortex-a9.md: Update with new attributes.
15676         * config/arm/cortex-m4.md: Update with new attributes.
15677         * config/arm/cortex-r4.md: Update with new attributes.
15678         * config/arm/fa526.md: Update with new attributes.
15679         * config/arm/fa606te.md: Update with new attributes.
15680         * config/arm/fa626te.md: Update with new attributes.
15681         * config/arm/fa726te.md: Update with new attributes.
15683 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15685         * config/aarch64/aarch64-simd.md
15686         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
15687         <vwx> iterator to ensure correct register choice.
15688         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
15689         (aarch64_sqdmull_n<mode>): Likewise.
15690         (aarch64_sqdmull2_n<mode>_internal): Likewise.
15691         * config/aarch64/arm_neon.h
15692         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
15693         (vml<as><q>_n_<su>16): Likewise.
15694         (vml<as>l_high_lane<q>_<su>16): Likewise.
15695         (vml<as>l_high_n_<su>16): Likewise.
15696         (vml<as>l_lane<q>_<su>16): Likewise.
15697         (vml<as>l_n_<su>16): Likewise.
15698         (vmul<q>_lane<q>_<su>16): Likewise.
15699         (vmul<q>_n_<su>16): Likewise.
15700         (vmull_lane<q>_<su>16): Likewise.
15701         (vmull_n_<su>16): Likewise.
15702         (vmull_high_lane<q>_<su>16): Likewise.
15703         (vmull_high_n_<su>16): Likewise.
15704         (vqrdmulh<q>_n_s16): Likewise.
15706 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
15708         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
15709         have the correct lane parameter.
15711 2013-09-06  Richard Biener <rguenther@suse.de>
15713         * cfganal.c (control_dependences::~control_dependences):
15714         Properly free all of the vector.
15716 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
15718         PR target/58269
15719         * config/i386/i386.c (ix86_conditional_register_usage):
15720         Proper initialize extended SSE registers.
15722 2013-09-06  Jan Hubicka  <jh@suse.cz>
15724         PR tree-optimization/58311
15725         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
15727 2013-09-06  Jan Hubicka  <jh@suse.cz>
15729         * Makefile.in (tree-sra.o): Update dependencies.
15730         * tree-sra.c: Include ipa-utils.h
15731         (scan_function): Use recursive_call_p.
15732         (has_caller_p): New function.
15733         (cgraph_for_node_and_aliases): Count also callers of aliases.
15735 2013-09-06  Jan Hubicka  <jh@suse.cz>
15737         PR middle-end/58094
15738         * cgraph.h (symtab_semantically_equivalent_p): Declare.
15739         * tree-tailcall.c: Include ipa-utils.h.
15740         (find_tail_calls): Use it.
15741         * ipa-pure-const.c (check_call): Likewise.
15742         * ipa-utils.c (recursive_call_p): New function.
15743         * ipa-utils.h (recursive_call_p): Dclare.
15744         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
15745         (symtab_semantically_equivalent_p): New function.
15746         * Makefile.in (tree-tailcall.o): Update dependencies.
15748 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
15750         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
15751         non-inlinable part.
15753 2013-09-06  Richard Biener  <rguenther@suse.de>
15755         * lto-streamer.h (lto_global_var_decls): Remove.
15756         * Makefile.in (OBJS): Remove lto-symtab.o.
15757         (lto-symtab.o): Remove.
15758         (GTFILES): Remove lto-symtab.c
15759         * lto-symtab.c: Move to lto/
15761 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15763         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
15764         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
15765         (UNSPEC_FPINT_RINT): New constant definitions.
15766         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
15767         definition with 2 attributes.
15768         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
15769         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
15770         definitions.
15772 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15774         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
15775         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
15776         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
15777         attribute to "z196_alone".
15778         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
15779         "zEC12_simple".
15781 2013-09-06  Richard Biener  <rguenther@suse.de>
15783         * basic-block.h (class control_dependences): New.
15784         * tree-ssa-dce.c (control_dependence_map): Remove.
15785         (cd): New global.
15786         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
15787         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
15788         find_pdom, find_control_dependence, find_all_control_dependences):
15789         Move to cfganal.c.
15790         (mark_control_dependent_edges_necessary,
15791         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
15792         tree_dce_done, perform_tree_ssa_dce): Adjust.
15793         * cfganal.c (set_control_dependence_map_bit,
15794         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
15795         find_all_control_dependences): Move from tree-ssa-dce.c and
15796         implement as methods of control_dependences class.
15797         (control_dependences::control_dependences): New.
15798         (control_dependences::~control_dependences): Likewise.
15799         (control_dependences::get_edges_dependent_on): Likewise.
15800         (control_dependences::get_edge): Likewise.
15802 2013-09-04  Jan Hubicka  <jh@suse.cz>
15804         * tree.c (types_same_for_odr): Drop overactive check.
15805         * ipa-devirt.c (hash_type_name): Likewise.
15807 2013-09-04  Jan Hubicka  <jh@suse.cz>
15809         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
15810         (analyze_functions): ... here.
15812 2013-09-04  Jan Hubicka  <jh@suse.cz>
15814         PR middle-end/58201
15815         * cgraphunit.c (analyze_functions): Clear AUX fields
15816         after processing; initialize assembler name has.
15818 2013-09-05  Jeff Law  <law@redhat.com>
15820         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
15821         from thread_around_empty_block.  Record threading path into PATH.
15822         Recurse if threading through the initial block is successful.
15823         (thread_across_edge): Corresponding changes to slightly simplify.
15825 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15827         * config/aarch64/aarch64.md
15828         (type): Remove frecpe, frecps, frecpx.
15829         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
15830         fix to be a TARGET_SIMD instruction.
15831         (aarch64_frecps): Remove.
15832         * config/aarch64/aarch64-simd.md
15833         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
15834         (aarch64_frecps<mode>): Handle all float/vector of float modes.
15836 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15837             Sofiane Naci  <sofiane.naci@arm.com>
15839         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
15840         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
15841         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
15842         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
15843         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
15844         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
15845         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
15846         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
15847         into "clz, "rbit".  Rename "shift" to "shift_imm".
15848         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
15849         changes.  Update for attribute changes all occurrences of arlo_* and
15850         shift* types.
15851         * config/arm/arm-fixed.md: Update for attribute changes
15852         all occurrences of arlo_* types.
15853         * config/arm/thumb2.md: Update for attribute changes all occurrences
15854         of arlo_* types.
15855         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
15856         (cortexa7_older_only): Likewise.
15857         (cortexa7_younger):  Likewise.
15858         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
15859         (1020alu_shift_op): Likewise.
15860         (1020alu_shift_reg_op): Likewise.
15861         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
15862         (alu_shift_op): Likewise.
15863         (alu_shift_reg_op): Likewise.
15864         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
15865         (11_alu_shift_op): Likewise.
15866         (11_alu_shift_reg_op): Likewise.
15867         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
15868         (9_alu_shift_reg_op): Likewise.
15869         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
15870         attribute changes.
15871         (cortex_a15_alu_shift): Likewise.
15872         (cortex_a15_alu_shift_reg): Likewise.
15873         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
15874         attribute changes.
15875         (cortex_a5_alu_shift): Likewise.
15876         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
15877         attribute changes.
15878         (cortex_a53_alu_shift): Likewise.
15879         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
15880         attribute changes.
15881         (cortex_a7_alu_reg): Likewise.
15882         (cortex_a7_alu_shift): Likewise.
15883         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
15884         attribute changes.
15885         (cortex_a8_alu_shift): Likewise.
15886         (cortex_a8_alu_shift_reg): Likewise.
15887         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
15888         (cortex_a9_dp_shift): Likewise.
15889         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
15890         attribute changes.
15891         * config/arm/cortex-r4.md
15892         (cortex_r4_alu): Update for attribute changes.
15893         (cortex_r4_mov): Likewise.
15894         (cortex_r4_alu_shift_reg): Likewise.
15895         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
15896         (526_alu_shift_op): Likewise.
15897         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
15898         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
15899         (626te_alu_shift_op): Likewise.
15900         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
15901         (726te_alu_shift_op): Likewise.
15902         (726te_alu_shift_reg_op): Likewise.
15903         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
15904         (mp626_alu_shift_op): Likewise.
15905         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
15906         (pj4_alu_conds): Likewise.
15907         (pj4_shift): Likewise.
15908         (pj4_shift_conds): Likewise.
15909         (pj4_alu_shift): Likewise.
15910         (pj4_alu_shift_conds): Likewise.
15911         * config/aarch64/aarch64.md: Update for attribute change
15912         all occurrences of arlo_* and shift* types.
15914 2013-09-05  Mike Stump  <mikestump@comcast.net>
15916         * tree.h: Move documentation for tree_function_decl to tree-core.h
15917         with the declaration.
15919 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
15921         PR target/58139
15922         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
15923         looking for widest mode.
15925 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
15927         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
15929 2013-09-05  Richard Biener  <rguenther@suse.de>
15931         PR tree-optimization/58137
15932         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
15933         Do not create vectors of pointers.
15934         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
15935         types for the components of the vector initializer.
15936         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
15937         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
15939 2013-09-05  Martin Jambor  <mjambor@suse.cz>
15941         * ipa-prop.c (remove_described_reference): Accept missing references,
15942         return false if that hppens, otherwise return true.
15943         (cgraph_node_for_jfunc): New function.
15944         (try_decrement_rdesc_refcount): Likewise.
15945         (try_make_edge_direct_simple_call): Use them.
15946         (ipa_edge_removal_hook): Remove references from rdescs.
15947         (ipa_edge_duplication_hook): Clone rdescs and their references
15948         when the new edge has the same caller as the old one.
15949         * cgraph.c (cgraph_resolve_speculation): Remove speculative
15950         reference before removing any edges.
15952 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
15954         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
15955         initial store.
15956         * thumb2.md (thumb2_storewb_parisi): New pattern.
15958 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
15960         * config/aarch64/aarch64-option-extensions.def: Add
15961         AARCH64_OPT_EXTENSION of 'crc'.
15962         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
15963         (AARCH64_ISA_CRC): Ditto.
15964         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
15965         description of the CRC extension.
15967 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15969         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
15970         * config/rs6000/linux.h: Ditto.
15971         * alpha/linux.h: Ditto.
15972         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
15973         no_c99_libc_has_function.
15974         * config/c6x/uclinux-elf.h: Ditto.
15975         * config/lm32/uclinux-elf.h: Ditto.
15976         * config/m68k/uclinux.h: Ditto.
15977         * config/moxie/uclinux.h: Ditto.
15978         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
15979         (crisv32-*-linux*, cris-*-linux*): Ditto.
15980         * config/bfin/bfin.c: Include "tm_p.h".
15982 2013-09-05  Richard Biener  <rguenther@suse.de>
15984         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
15985         check for a definition without a basic-block.
15987 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15988             Sofiane Naci <sofiane.naci@arm.com>
15990         * config/aarch64/aarch64.md
15991         (*movti_aarch64): Rename r_2_f and f_2_r.
15992         (*movsf_aarch64): Likewise.
15993         (*movdf_aarch64): Likewise.
15994         (*movtf_aarch64): Likewise.
15995         (aarch64_movdi_<mode>low): Likewise.
15996         (aarch64_movdi_<mode>high): Likewise.
15997         (aarch64_mov<mode>high_di): Likewise.
15998         (aarch64_mov<mode>low_di): Likewise.
15999         (aarch64_movtilow_tilow): Likewise.
16000         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
16001         values to config/arm/types.md
16002         (attribute "conds"): Update for attribute change.
16003         (anddi3_insn): Likewise.
16004         (iordi3_insn): Likewise.
16005         (xordi3_insn): Likewise.
16006         (one_cmpldi2): Likewise.
16007         * config/arm/types.md (type): Add Neon types.
16008         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16009         use "type" attribute.
16010         (movmisalign<mode>_neon_store): Likewise.
16011         (movmisalign<mode>_neon_load): Likewise.
16012         (vec_set<mode>_internal): Likewise.
16013         (vec_setv2di_internal): Likewise.
16014         (vec_extract<mode>): Likewise.
16015         (vec_extractv2di): Likewise.
16016         (add<mode>3_neon): Likewise.
16017         (adddi3_neon): Likewise.
16018         (sub<mode>3_neon): Likewise.
16019         (subdi3_neon): Likewise.
16020         (mul<mode>3_neon): Likewise.
16021         (mul<mode>3add<mode>_neon): Likewise.
16022         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16023         (fma<VCVTF:mode>4)): Likewise.
16024         (fma<VCVTF:mode>4_intrinsic): Likewise.
16025         (fmsub<VCVTF:mode>4)): Likewise.
16026         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16027         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16028         (ior<mode>3): Likewise.
16029         (and<mode>3): Likewise.
16030         (anddi3_neon): Likewise.
16031         (orn<mode>3_neon): Likewise.
16032         (orndi3_neon): Likewise.
16033         (bic<mode>3_neon): Likewise.
16034         (bicdi3_neon): Likewise.
16035         (xor<mode>3): Likewise.
16036         (one_cmpl<mode>2): Likewise.
16037         (abs<mode>2): Likewise.
16038         (neg<mode>2): Likewise.
16039         (umin<mode>3_neon): Likewise.
16040         (umax<mode>3_neon): Likewise.
16041         (smin<mode>3_neon): Likewise.
16042         (smax<mode>3_neon): Likewise.
16043         (vashl<mode>3): Likewise.
16044         (vashr<mode>3_imm): Likewise.
16045         (vlshr<mode>3_imm): Likewise.
16046         (ashl<mode>3_signed): Likewise.
16047         (ashl<mode>3_unsigned): Likewise.
16048         (neon_load_count): Likewise.
16049         (ashldi3_neon_noclobber): Likewise.
16050         (signed_shift_di3_neon): Likewise.
16051         (unsigned_shift_di3_neon): Likewise.
16052         (ashrdi3_neon_imm_noclobber): Likewise.
16053         (lshrdi3_neon_imm_noclobber): Likewise.
16054         (widen_ssum<mode>3): Likewise.
16055         (widen_usum<mode>3): Likewise.
16056         (quad_halves_<code>v4si): Likewise.
16057         (quad_halves_<code>v4sf): Likewise.
16058         (quad_halves_<code>v8hi): Likewise.
16059         (quad_halves_<code>v16qi): Likewise.
16060         (reduc_splus_v2di): Likewise.
16061         (neon_vpadd_internal<mode>): Likewise.
16062         (neon_vpsmin<mode>): Likewise.
16063         (neon_vpsmax<mode>): Likewise.
16064         (neon_vpumin<mode>): Likewise.
16065         (neon_vpumax<mode>): Likewise.
16066         (ss_add<mode>_neon): Likewise.
16067         (us_add<mode>_neon): Likewise.
16068         (ss_sub<mode>_neon): Likewise.
16069         (us_sub<mode>_neon): Likewise.
16070         (neon_vadd<mode>_unspec): Likewise.
16071         (neon_vaddl<mode>): Likewise.
16072         (neon_vaddw<mode>): Likewise.
16073         (neon_vhadd<mode>): Likewise.
16074         (neon_vqadd<mode>): Likewise.
16075         (neon_vaddhn<mode>): Likewise.
16076         (neon_vmul<mode>): Likewise.
16077         (neon_vmla<mode>): Likewise.
16078         (neon_vmlal<mode>): Likewise.
16079         (neon_vmls<mode>): Likewise.
16080         (neon_vmlsl<mode>): Likewise.
16081         (neon_vqdmulh<mode>): Likewise.
16082         (neon_vqdmlal<mode>): Likewise.
16083         (neon_vqdmlsl<mode>): Likewise.
16084         (neon_vmull<mode>): Likewise.
16085         (neon_vqdmull<mode>): Likewise.
16086         (neon_vsub<mode>_unspec): Likewise.
16087         (neon_vsubl<mode>): Likewise.
16088         (neon_vsubw<mode>): Likewise.
16089         (neon_vqsub<mode>): Likewise.
16090         (neon_vhsub<mode>): Likewise.
16091         (neon_vsubhn<mode>): Likewise.
16092         (neon_vceq<mode>): Likewise.
16093         (neon_vcge<mode>): Likewise.
16094         (neon_vcgeu<mode>): Likewise.
16095         (neon_vcgt<mode>): Likewise.
16096         (neon_vcgtu<mode>): Likewise.
16097         (neon_vcle<mode>): Likewise.
16098         (neon_vclt<mode>): Likewise.
16099         (neon_vcage<mode>): Likewise.
16100         (neon_vcagt<mode>): Likewise.
16101         (neon_vtst<mode>): Likewise.
16102         (neon_vabd<mode>): Likewise.
16103         (neon_vabdl<mode>): Likewise.
16104         (neon_vaba<mode>): Likewise.
16105         (neon_vabal<mode>): Likewise.
16106         (neon_vmax<mode>): Likewise.
16107         (neon_vmin<mode>): Likewise.
16108         (neon_vpaddl<mode>): Likewise.
16109         (neon_vpadal<mode>): Likewise.
16110         (neon_vpmax<mode>): Likewise.
16111         (neon_vpmin<mode>): Likewise.
16112         (neon_vrecps<mode>): Likewise.
16113         (neon_vrsqrts<mode>): Likewise.
16114         (neon_vqabs<mode>): Likewise.
16115         (neon_vqneg<mode>): Likewise.
16116         (neon_vcls<mode>): Likewise.
16117         (clz<mode>2): Likewise.
16118         (popcount<mode>2): Likewise.
16119         (neon_vrecpe): Likewise.
16120         (neon_vrsqrte): Likewise.
16121         (neon_vget_lane<mode>_sext_internal): Likewise.
16122         (neon_vget_lane<mode>_zext_internal): Likewise.
16123         (neon_vdup_n<mode>): Likewise.
16124         (neon_vdup_nv2di): Likewise.
16125         (neon_vdpu_lane<mode>_internal): Likewise.
16126         (neon_vswp<mode>): Likewise.
16127         (float<mode><V_cvtto>2): Likewise.
16128         (floatuns<mode><V_cvtto>2): Likewise.
16129         (fix_trunc<mode><V_cvtto>)2): Likewise
16130         (fixuns_trunc<mode><V_cvtto)2): Likewise.
16131         (neon_vcvt<mode>): Likewise.
16132         (neon_vcvtv4sfv4hf): Likewise.
16133         (neon_vcvtv4hfv4sf): Likewise.
16134         (neon_vcvt_n<mode>): Likewise.
16135         (neon_vmovn<mode>): Likewise.
16136         (neon_vqmovn<mode>): Likewise.
16137         (neon_vqmovun<mode>): Likewise.
16138         (neon_vmovl<mode>): Likewise.
16139         (neon_vmul_lane<mode>): Likewise.
16140         (neon_vmull_lane<mode>): Likewise.
16141         (neon_vqdmull_lane<mode>): Likewise.
16142         (neon_vqdmulh_lane<mode>): Likewise.
16143         (neon_vmla_lane<mode>): Likewise.
16144         (neon_vmlal_lane<mode>): Likewise.
16145         (neon_vqdmlal_lane<mode>): Likewise.
16146         (neon_vmls_lane<mode>): Likewise.
16147         (neon_vmlsl_lane<mode>): Likewise.
16148         (neon_vqdmlsl_lane<mode>): Likewise.
16149         (neon_vext<mode>): Likewise.
16150         (neon_vrev64<mode>): Likewise.
16151         (neon_vrev32<mode>): Likewise.
16152         (neon_vrev16<mode>): Likewise.
16153         (neon_vbsl<mode>_internal): Likewise.
16154         (neon_vshl<mode>): Likewise.
16155         (neon_vqshl<mode>): Likewise.
16156         (neon_vshr_n<mode>): Likewise.
16157         (neon_vshrn_n<mode>): Likewise.
16158         (neon_vqshrn_n<mode>): Likewise.
16159         (neon_vqshrun_n<mode>): Likewise.
16160         (neon_vshl_n<mode>): Likewise.
16161         (neon_vqshl_n<mode>): Likewise.
16162         (neon_vqshlu_n<mode>): Likewise.
16163         (neon_vshll_n<mode>): Likewise.
16164         (neon_vsra_n<mode>): Likewise.
16165         (neon_vsri_n<mode>): Likewise.
16166         (neon_vsli_n<mode>): Likewise.
16167         (neon_vtbl1v8qi): Likewise.
16168         (neon_vtbl2v8qi): Likewise.
16169         (neon_vtbl3v8qi): Likewise.
16170         (neon_vtbl4v8qi): Likewise.
16171         (neon_vtbx1v8qi): Likewise.
16172         (neon_vtbx2v8qi): Likewise.
16173         (neon_vtbx3v8qi): Likewise.
16174         (neon_vtbx4v8qi): Likewise.
16175         (neon_vtrn<mode>_internal): Likewise.
16176         (neon_vzip<mode>_internal): Likewise.
16177         (neon_vuzp<mode>_internal): Likewise.
16178         (neon_vld1<mode>): Likewise.
16179         (neon_vld1_lane<mode>): Likewise.
16180         (neon_vld1_dup<mode>): Likewise.
16181         (neon_vld1_dupv2di): Likewise.
16182         (neon_vst1<mode>): Likewise.
16183         (neon_vst1_lane<mode>): Likewise.
16184         (neon_vld2<mode>): Likewise.
16185         (neon_vld2_lane<mode>): Likewise.
16186         (neon_vld2_dup<mode>): Likewise.
16187         (neon_vst2<mode>): Likewise.
16188         (neon_vst2_lane<mode>): Likewise.
16189         (neon_vld3<mode>): Likewise.
16190         (neon_vld3qa<mode>): Likewise.
16191         (neon_vld3qb<mode>): Likewise.
16192         (neon_vld3_lane<mode>): Likewise.
16193         (neon_vld3_dup<mode>): Likewise.
16194         (neon_vst3<mode>): Likewise.
16195         (neon_vst3qa<mode>): Likewise.
16196         (neon_vst3qb<mode>): Likewise.
16197         (neon_vst3_lane<mode>): Likewise.
16198         (neon_vld4<mode>): Likewise.
16199         (neon_vld4qa<mode>): Likewise.
16200         (neon_vld4qb<mode>): Likewise.
16201         (neon_vld4_lane<mode>): Likewise.
16202         (neon_vld4_dup<mode>): Likewise.
16203         (neon_vst4<mode>): Likewise.
16204         (neon_vst4qa<mode>): Likewise.
16205         (neon_vst4qb<mode>): Likewise.
16206         (neon_vst4_lane<mode>): Likewise.
16207         (neon_vec_unpack<US>_lo_<mode>): Likewise.
16208         (neon_vec_unpack<US>_hi_<mode>): Likewise.
16209         (neon_vec_<US>mult_lo_<mode>): Likewise.
16210         (neon_vec_<US>mult_hi_<mode>): Likewise.
16211         (neon_vec_<US>shiftl_<mode>): Likewise.
16212         (neon_unpack<US>_<mode>): Likewise.
16213         (neon_vec_<US>mult_<mode>): Likewise.
16214         (vec_pack_trunc_<mode>): Likewise.
16215         (neon_vec_pack_trunk_<mode>): Likewise.
16216         (neon_vabd<mode>_2): Likewise.
16217         (neon_vabd<mode>_3): Likewise.
16218         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16219         (thumb2_movsi_vfp): Likewise.
16220         (movdi_vfp): Likewise.
16221         (movdi_vfp_cortexa8): Likewise.
16222         (movhf_vfp_neon): Likewise.
16223         (movhf_vfp): Likewiwse.
16224         (movsf_vfp): Likewiwse.
16225         (thumb2_movsf_vfp): Likewiwse.
16226         (movdf_vfp): Likewise.
16227         (thumb2_movdf_vfp): Likewise.
16228         (movsfcc_vfp): Likewise.
16229         (thumb2_movsfcc_vfp): Likewise.
16230         (movdfcc_vfp): Likewise.
16231         (thumb2_movdfcc_vfp): Likewise.
16232         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16233         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16234         (v10_v2c): Likewise.
16235         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16236         attribute change.
16237         (cortex_a15_neon_int_2): Likewise.
16238         (cortex_a15_neon_int_3): Likewise.
16239         (cortex_a15_neon_int_4): Likewise.
16240         (cortex_a15_neon_int_5): Likewise.
16241         (cortex_a15_neon_vqneg_vqabs): Likewise.
16242         (cortex_a15_neon_vmov): Likewise.
16243         (cortex_a15_neon_vaba): Likewise.
16244         (cortex_a15_neon_vaba_qqq): Likewise.
16245         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16246         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16247         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16248         scalar_64_32_long_scalar): Likewise.
16249         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16250         (cortex_a15_neon_mla_qqq_8_16): Likewise.
16251         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16252         lotype_qdd_64_32_long): Likewise.
16253         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16254         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16255         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16256         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16257         (cortex_a15_neon_shift_1): Likewise.
16258         (cortex_a15_neon_shift_2): Likewise.
16259         (cortex_a15_neon_shift_3): Likewise.
16260         (cortex_a15_neon_vshl_ddd): Likewise.
16261         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16262         (cortex_a15_neon_vsra_vrsra): Likewise.
16263         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16264         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16265         (cortex_a15_neon_fp_vmul_ddd): Likewise.
16266         (cortex_a15_neon_fp_vmul_qqd): Likewise.
16267         (cortex_a15_neon_fp_vmla_ddd): Likewise.
16268         (cortex_a15_neon_fp_vmla_qqq): Likewise.
16269         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16270         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16271         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16272         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16273         (cortex_a15_neon_bp_simple): Likewise.
16274         (cortex_a15_neon_bp_2cycle): Likewise.
16275         (cortex_a15_neon_bp_3cycle): Likewise.
16276         (cortex_a15_neon_vld1_1_2_regs): Likewise.
16277         (cortex_a15_neon_vld1_3_4_regs): Likewise.
16278         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16279         (cortex_a15_neon_vld2_4_regs): Likewise.
16280         (cortex_a15_neon_vld3_vld4): Likewise.
16281         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16282         (cortex_a15_neon_vst1_3_4_regs): Likewise.
16283         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
16284         (cortex_a15_neon_vst3_vst4): Likewise.
16285         (cortex_a15_neon_vld1_vld2_lane): Likewise.
16286         (cortex_a15_neon_vld3_vld4_lane" 10
16287         (cortex_a15_neon_vst1_vst2_lane): Likewise.
16288         (cortex_a15_neon_vst3_vst4_lane): Likewise.
16289         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
16290         (cortex_a15_neon_ldm_2): Likewise.0
16291         (cortex_a15_neon_stm_2): Likewise.
16292         (cortex_a15_neon_mcr): Likewise.
16293         (cortex_a15_neon_mcr_2_mcrr): Likewise.
16294         (cortex_a15_neon_mrc): Likewise.
16295         (cortex_a15_neon_mrrc): Likewise.
16296         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16297         change.
16298         (cortex_a15_alu_shift): Likewise.
16299         (cortex_a15_alu_shift_reg): Likewise.
16300         (cortex_a15_mult32): Likewise.
16301         (cortex_a15_mult64): Likewise.
16302         (cortex_a15_block): Likewise.
16303         (cortex_a15_branch): Likewise.
16304         (cortex_a15_load1): Likewise.
16305         (cortex_a15_load3): Likewise.
16306         (cortex_a15_store1): Likewise.
16307         (cortex_a15_store3): Likewise.
16308         (cortex_a15_call): Likewise.
16309         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
16310         (cortex_a5_f2r): Likewise.
16311         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
16312         change.
16313         (cortex_a53_f2r): Likewise.
16314         * config/arm/cortex-a7.md
16315         (cortex_a7_branch): Update for attribute change.
16316         (cortex_a7_call): Likewise.
16317         (cortex_a7_alu_imm): Likewise.
16318         (cortex_a7_alu_reg): Likewise.
16319         (cortex_a7_alu_shift): Likewise.
16320         (cortex_a7_mul): Likewise.
16321         (cortex_a7_load1): Likewise.
16322         (cortex_a7_store1): Likewise.
16323         (cortex_a7_load2): Likewise.
16324         (cortex_a7_store2): Likewise.
16325         (cortex_a7_load3): Likewise.
16326         (cortex_a7_store3): Likewise.
16327         (cortex_a7_load4): Likewise.
16328         (cortex_a7_store4): Likewise.
16329         (cortex_a7_fpalu): Likewise.
16330         (cortex_a7_fconst): Likewise.
16331         (cortex_a7_fpmuls): Likewise.
16332         (cortex_a7_neon_mul): Likewise.
16333         (cortex_a7_fpmacs): Likewise.
16334         (cortex_a7_neon_mla: Likewise.
16335         (cortex_a7_fpmuld: Likewise.
16336         (cortex_a7_fpmacd: Likewise.
16337         (cortex_a7_fpfmad: Likewise.
16338         (cortex_a7_fdivs: Likewise.
16339         (cortex_a7_fdivd: Likewise.
16340         (cortex_a7_r2f: Likewise.
16341         (cortex_a7_f2r: Likewise.
16342         (cortex_a7_f_flags: Likewise.
16343         (cortex_a7_f_loads: Likewise.
16344         (cortex_a7_f_loadd: Likewise.
16345         (cortex_a7_f_stores: Likewise.
16346         (cortex_a7_f_stored: Likewise.
16347         (cortex_a7_neon): Likewise.
16348         * config/arm/cortex-a8-neon.md
16349         (cortex_a8_neon_mrc): Update for attribute change.
16350         (cortex_a8_neon_mrrc): Likewise.
16351         (cortex_a8_neon_int_1): Likewise.
16352         (cortex_a8_neon_int_2): Likewise.
16353         (cortex_a8_neon_int_3): Likewise.
16354         (cortex_a8_neon_int_4): Likewise.
16355         (cortex_a8_neon_int_5): Likewise.
16356         (cortex_a8_neon_vqneg_vqabs): Likewise.
16357         (cortex_a8_neon_vmov): Likewise.
16358         (cortex_a8_neon_vaba): Likewise.
16359         (cortex_a8_neon_vaba_qqq): Likewise.
16360         (cortex_a8_neon_vsma): Likewise.
16361         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16362         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16363         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16364         long_scalar): Likewise.
16365         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16366         (cortex_a8_neon_mla_qqq_8_16): Likewise.
16367         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16368         long_scalar_qdd_64_32_long): Likewise.
16369         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16370         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16371         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
16372         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16373         (cortex_a8_neon_shift_1): Likewise.
16374         (cortex_a8_neon_shift_2): Likewise.
16375         (cortex_a8_neon_shift_3): Likewise.
16376         (cortex_a8_neon_vshl_ddd): Likewise.
16377         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16378         (cortex_a8_neon_vsra_vrsra): Likewise.
16379         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
16380         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
16381         (cortex_a8_neon_fp_vsum): Likewise.
16382         (cortex_a8_neon_fp_vmul_ddd): Likewise.
16383         (cortex_a8_neon_fp_vmul_qqd): Likewise.
16384         (cortex_a8_neon_fp_vmla_ddd): Likewise.
16385         (cortex_a8_neon_fp_vmla_qqq): Likewise.
16386         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
16387         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
16388         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16389         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16390         (cortex_a8_neon_bp_simple): Likewise.
16391         (cortex_a8_neon_bp_2cycle): Likewise.
16392         (cortex_a8_neon_bp_3cycle): Likewise.
16393         (cortex_a8_neon_ldr): Likewise.
16394         (cortex_a8_neon_str): Likewise.
16395         (cortex_a8_neon_vld1_1_2_regs): Likewise.
16396         (cortex_a8_neon_vld1_3_4_regs): Likewise.
16397         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16398         (cortex_a8_neon_vld2_4_regs): Likewise.
16399         (cortex_a8_neon_vld3_vld4): Likewise.
16400         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16401         (cortex_a8_neon_vst1_3_4_regs): Likewise.
16402         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
16403         (cortex_a8_neon_vst3_vst4): Likewise.
16404         (cortex_a8_neon_vld1_vld2_lane): Likewise.
16405         (cortex_a8_neon_vld3_vld4_lane): Likewise.
16406         (cortex_a8_neon_vst1_vst2_lane): Likewise.
16407         (cortex_a8_neon_vst3_vst4_lane): Likewise.
16408         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
16409         (cortex_a8_neon_mcr): Likewise.
16410         (cortex_a8_neon_mcr_2_mcrr): Likewise.
16411         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
16412         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
16413         change.
16414         (ca9_neon_mrrc): Likewise.
16415         (cortex_a9_neon_int_1): Likewise.
16416         (cortex_a9_neon_int_2): Likewise.
16417         (cortex_a9_neon_int_3): Likewise.
16418         (cortex_a9_neon_int_4): Likewise.
16419         (cortex_a9_neon_int_5): Likewise.
16420         (cortex_a9_neon_vqneg_vqabs): Likewise.
16421         (cortex_a9_neon_vmov): Likewise.
16422         (cortex_a9_neon_vaba): Likewise.
16423         (cortex_a9_neon_vaba_qqq): Likewise.
16424         (cortex_a9_neon_vsma): Likewise.
16425         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16426         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16427         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16428         long_scalar): Likewise.
16429         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16430         (cortex_a9_neon_mla_qqq_8_16): Likewise.
16431         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16432         long_scalar_qdd_64_32_long): Likewise.
16433         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16434         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16435         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
16436         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16437         (cortex_a9_neon_shift_1): Likewise.
16438         (cortex_a9_neon_shift_2): Likewise.
16439         (cortex_a9_neon_shift_3): Likewise.
16440         (cortex_a9_neon_vshl_ddd): Likewise.
16441         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16442         (cortex_a9_neon_vsra_vrsra): Likewise.
16443         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
16444         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
16445         (cortex_a9_neon_fp_vsum): Likewise.
16446         (cortex_a9_neon_fp_vmul_ddd): Likewise.
16447         (cortex_a9_neon_fp_vmul_qqd): Likewise.
16448         (cortex_a9_neon_fp_vmla_ddd): Likewise.
16449         (cortex_a9_neon_fp_vmla_qqq): Likewise.
16450         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
16451         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
16452         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16453         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16454         (cortex_a9_neon_bp_simple): Likewise.
16455         (cortex_a9_neon_bp_2cycle): Likewise.
16456         (cortex_a9_neon_bp_3cycle): Likewise.
16457         (cortex_a9_neon_ldr): Likewise.
16458         (cortex_a9_neon_str): Likewise.
16459         (cortex_a9_neon_vld1_1_2_regs): Likewise.
16460         (cortex_a9_neon_vld1_3_4_regs): Likewise.
16461         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16462         (cortex_a9_neon_vld2_4_regs): Likewise.
16463         (cortex_a9_neon_vld3_vld4): Likewise.
16464         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16465         (cortex_a9_neon_vst1_3_4_regs): Likewise.
16466         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
16467         (cortex_a9_neon_vst3_vst4): Likewise.
16468         (cortex_a9_neon_vld1_vld2_lane): Likewise.
16469         (cortex_a9_neon_vld3_vld4_lane): Likewise.
16470         (cortex_a9_neon_vst1_vst2_lane): Likewise.
16471         (cortex_a9_neon_vst3_vst4_lane): Likewise.
16472         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
16473         (cortex_a9_neon_mcr): Likewise.
16474         (cortex_a9_neon_mcr_2_mcrr): Likewise.
16475         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
16476         (cortex_a9_fps): Likewise.
16477         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
16478         change.
16479         (cortex_m4_fmuls): Likewise.
16480         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
16481         change.
16482         (cortex_r4_mrc): Likewise.
16483         * config/arm/iterators.md: Update comment referring to neon_type.
16484         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
16485         (iwmmxt_movsi_insn): Likewise.
16486         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
16487         attribute change.
16488         (pj4_core_to_vfp): Likewise.
16489         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
16490         attribute change.
16491         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
16492         (vfp_fstore): Likewise.
16493         * doc/md.texi: Change references to neon_type to refer to type.
16495 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
16497         * tree.h (DECL_BUILT_IN): Fix typo in comment.
16499 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
16501         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
16502         lglobl if not weak.
16504 2013-09-04  Easwaran Raman  <eraman@google.com>
16506         PR middle-end/57370
16507         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
16508         (build_and_add_sum): Use it.
16509         (appears_later_in_bb): Simplify code.
16511 2013-09-04  Teresa Johnson  <tejohnson@google.com>
16513         * dumpfile.c (dump_finish): Don't close stderr/stdout.
16515 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
16517         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
16519 2013-09-04  Jan Hubicka  <jh@suse.cz>
16521         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
16522         * ipa-devirt.c: Include diganostic.h
16523         (odr_type_d): Add types and types_set.
16524         (hash_type_name): Work for types with vtables during LTO.
16525         (odr_hasher::remove): Fix comment; destroy types_set.
16526         (add_type_duplicate): New function,
16527         (get_odr_type): Use it.
16528         (dump_type_inheritance_graph): Dump type duplicates.
16529         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
16530         graph.
16531         * tree.c (types_same_for_odr): Give exact answers on types with
16532         virtual tables.
16534 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
16536         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
16537         explaining their differences.
16539 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
16541         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
16543 2013-09-03  Jeff Law  <law@redhat.com>
16545         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
16546         when not threading through a joiner block.  Pass joiner/no joiner
16547         state to register_jump_thread.
16548         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
16549         state from argument rather than implying on path length.
16550         Dump the entire jump thread path into debugging dump.
16551         * tree-flow.h (register_jump_thread): Update prototype.
16553 2013-08-29  Xinliang David Li  <davidxl@google.com>
16555         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16556         Remove a trivial gcc_assert.
16558 2013-08-29  Xinliang David Li  <davidxl@google.com>
16560         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
16561         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
16562         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16563         Delay base decl alignment adjustment.
16564         * tree-vectorizer.c (vect_destroy_datarefs): New function.
16565         * tree-vectorizer.h: New data structure.
16566         (set_dr_misalignment): New function.
16567         (dr_misalignment): Ditto.
16568         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
16569         (vectorizable_load): Ditto.
16570         (ensure_base_align): New function.
16571         (vectorize_loops): Add dbg_cnt support.
16572         (execute_vect_slp): Ditto.
16573         * dbgcnt.def: New debug counter.
16574         * Makefile: New dependency.
16576 2013-09-03  Meador Inge  <meadori@codesourcery.com>
16578         Revert:
16580         2013-08-30  Meador Inge  <meadori@codesourcery.com>
16582         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16584 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
16586         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
16587         function descriptor.
16589 2013-09-03  Richard Biener  <rguenther@suse.de>
16591         * tree-affine.c (add_elt_to_tree): Fix association issue,
16592         avoid useless converts and make sure to always return a
16593         properly typed result.
16595 2013-09-03  Richard Biener  <rguenther@suse.de>
16597         PR middle-end/57656
16598         * fold-const.c (negate_expr_p): Fix division case.
16599         (negate_expr): Likewise.
16601 2013-09-03  Richard Biener  <rguenther@suse.de>
16603         PR lto/58285
16604         * tree-streamer-out.c: Include tm.h.
16605         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
16607 2013-09-03  Jan Hubicka  <jh@suse.cz>
16609         * tree-profile.c (tree_profiling): Cleanup CFG when done.
16611 2013-09-03  Alan Modra  <amodra@gmail.com>
16613         * config.gcc (powerpc*-*-linux*): Add support for little-endian
16614         multilibs to big-endian target and vice versa.
16615         * config/rs6000/t-linux64: Use := assignment on all vars.
16616         (MULTILIB_EXTRA_OPTS): Remove fPIC.
16617         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
16618         * config/rs6000/t-linux64le: New file.
16619         * config/rs6000/t-linux64bele: New file.
16620         * config/rs6000/t-linux64lebe: New file.
16622 2013-09-02  Jan Hubicka  <jh@suse.cz>
16624         * ipa-inline-transform.c (inline_transform): Do not
16625         optimize_inline_calls when not optimizing.
16627 2013-09-02  Jan Hubicka  <jh@suse.cz>
16629         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
16630         duplicated nodes for assembler names.
16631         * symtab.c (symtab_unregister_node): Do not attempt to unlink
16632         hard registers from assembler name hash.
16634 2013-09-02  Jan Hubicka  <jh@suse.cz>
16636         * ipa-split.c (execute_split_functions): Split externally visible
16637         functions called once.
16639 2013-09-02  Martin Jambor  <mjambor@suse.cz>
16641         PR ipa/58106
16642         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
16643         linked list.  When finding the correct duplicate, also consider also
16644         the caller in additon to its inlined_to node.
16646 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
16648         * config/aarch64/aarch64-simd-builtins.def
16649         (dup_lane_scalar): Remove.
16650         * config/aarch64/aarch64-simd.md
16651         (aarch64_simd_dup): Add 'w->w' alternative.
16652         (aarch64_dup_lane<mode>): Allow for VALL.
16653         (aarch64_dup_lane_scalar<mode>): Remove.
16654         (aarch64_dup_lane_<vswap_width_name><mode>): New.
16655         (aarch64_get_lane_signed<mode>): Add w->w altenative.
16656         (aarch64_get_lane_unsigned<mode>): Likewise.
16657         (aarch64_get_lane<mode>): Likewise.
16658         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
16659         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
16660         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
16661         (VCON): Change container of V2SF.
16662         (vswap_width_name): Likewise.
16663         * config/aarch64/arm_neon.h
16664         (__aarch64_vdup_lane_any): New.
16665         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16666         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
16667         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16669 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
16671         PR middle-end/56382
16672         * expr.c (emit_move_complex): Do not move complex FP values as parts if
16673         the source or the destination is a single hard register.
16675 2013-09-02  Richard Biener  <rguenther@suse.de>
16677         PR middle-end/57511
16678         * tree-scalar-evolution.c (instantiate_scev_name): Allow
16679         non-linear SCEVs.
16681 2013-09-02  Richard Biener  <rguenther@suse.de>
16683         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
16684         arithmetic to sizetype.
16686 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
16688         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
16689         Find auto-increment use both before and after candidate.
16691 2013-09-02  Marek Polacek  <polacek@redhat.com>
16693         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
16695 2013-09-01  Jan Hubicka  <jh@suse.cz>
16697         * Makefile.in: Add ipa-profile.o
16698         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
16699         * cgraph.c (struct cgraph_propagate_frequency_data,
16700         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
16701         ipa-profile.c; replace cgraph_ by ipa_ prefix.
16702         * cgraph.h (cgraph_propagate_frequency): Remove.
16703         * ipa-inline-analysis.c: Include ipa-utils.h;
16704         drop duplicated cfgloop.h.
16705         (inline_update_callee_summaries): Update.
16706         * ipa-profile.c: New file.
16707         * ipa-utils.h (ipa_propagate_frequency): Declare.
16708         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
16709         data-streamer.h, value-prof.h.
16710         (symtab_remove_unreachable_nodes): Update profile.
16711         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
16712         account_time_size, cmp_counts, dump_histogram,
16713         ipa_profile_generate_summary, ipa_profile_write_summary,
16714         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
16715         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
16716         Move to ipa-profile.c.
16718 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
16720         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
16722 2013-09-01  Jan Hubicka  <jh@suse.cz>
16724         * common.opt (fdevirtualize-speculatively): New function.
16725         * invoke.texi (fdevirtualize-speculatively): Document.
16726         * ipa-devirt.c: Include ipa-inline.h
16727         (likely_target_p): New function.
16728         (ipa_devirt): New function.
16729         (gate_ipa_devirt): New function.
16730         (pass_data_ipa_devirt): New static var.
16731         (pass_ipa_devirt): Likewise.
16732         (make_pass_ipa_devirt): New function.
16733         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
16734         (common_handle_option): Disable devirtualization when
16735         value range profiling is available.
16736         * passes.def (pass_ipa_devirt): Add.
16737         * timever.def (TV_IPA_DEVIRT): New timevar.
16738         * tree-pass.h (make_pass_ipa_devirt):
16740 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
16742         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
16743         include sanitize(undefined).
16745 2013-08-31  Diego Novillo  <dnovillo@google.com>
16747         * Makefile.in (TREE_CORE_H): Define.
16748         (TREE_H): Use.
16749         (GTFILES): Add tree-core.h.
16750         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
16751         size the array.
16752         * tree-core.h: New file.
16753         Move all data structures, enum, typedefs, global
16754         declarations and constants from ...
16755         * tree.h: ... here.
16757 2013-08-31  Jan Hubicka  <jh@suse.cz>
16759         * bulitins.c (expand_builtin): Do not early exit for gcov
16760         instrumented functions.
16762 2013-08-31  Marek Polacek  <polacek@redhat.com>
16764         * ubsan.c: Include tm_p.h.
16766 2013-08-31  Jan Hubicka  <jh@suse.cz>
16768         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
16769         warning.
16771         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
16772         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
16773         * tree-cfg.c (verify_gimple_label): ... here.
16774         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
16775         (ipa_merge_profiles): New function.
16776         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
16777         (lto_input_function_body): Likewise.
16778         * ipa-utils.h (ipa_merge_profiles): Declare.
16779         * lto-streamer.h (lto_input_function_body): Update prototype.
16780         (emit_label_in_global_context_p): Remove.
16781         * lto-symtab.c: Include ipa-utils.h
16782         (lto_cgraph_replace_node): Use ipa_merge_profiles.
16784 2013-08-31  Jan Hubicka  <jh@suse.cz>
16786         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
16788 2013-08-31  Jan Hubicka  <jh@suse.cz>
16790         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
16792 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
16794         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
16795         "cmp" RTX before signed_comparison_operator check to account
16796         for "code" changes.
16798 2013-08-30  Jan Hubicka  <jh@suse.cz>
16800         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
16801         (detect_type_change_1): Rename to ...
16802         (detect_type_change): ... this one; early return on non-polymorphic
16803         types.
16804         (detect_type_change_ssa): Add comp_type parameter; update
16805         use of detect_type_change.
16806         (compute_complex_assign_jump_func): Add param_type parameter;
16807         update use of detect_type_change_ssa.
16808         (compute_complex_ancestor_jump_func): Likewise.
16809         (ipa_get_callee_param_type): New function.
16810         (ipa_compute_jump_functions_for_edge): Compute parameter type;
16811         update calls to the jump function computation functions.
16813 2013-08-30  Teresa Johnson  <tejohnson@google.com>
16814             Steven Bosscher  <steven@gcc.gnu.org>
16816         * cfgrtl.c (fixup_new_cold_bb): New routine.
16817         (commit_edge_insertions): Invoke fixup_partitions.
16818         (find_partition_fixes): New routine.
16819         (fixup_partitions): Ditto.
16820         (verify_hot_cold_block_grouping): Update comments.
16821         (rtl_verify_edges): Invoke find_partition_fixes.
16822         (rtl_verify_bb_pointers): Update comments.
16823         (rtl_verify_bb_layout): Ditto.
16824         * basic-block.h (probably_never_executed_edge_p): Declare.
16825         (fixup_partitions): Ditto.
16826         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
16827         * bb-reorder.c (sanitize_hot_paths): New function.
16828         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
16829         sanitize_hot_paths.
16830         * predict.c (probably_never_executed_edge_p): New routine.
16831         * cfg.c (check_bb_profile): Add partition insanity warnings.
16833 2013-08-30  Meador Inge  <meadori@codesourcery.com>
16835         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16837 2013-08-30  Marek Polacek  <polacek@redhat.com>
16839         * Makefile.in (ubsan.o): Add.
16840         (c-family/c-ubsan.o): Add.
16841         (builtins.o): Add ubsan.h dependency.
16842         * ubsan.h: New file.
16843         * ubsan.c: New file.
16844         * common.opt: Add -fsanitize=undefined option.
16845         (flag_sanitize): Add variable.
16846         (fsanitize=): Add option.  Add Driver.
16847         (fsanitize=thread): Remove option.
16848         (fsanitize=address): Likewise.
16849         (static-libubsan): New option.
16850         * doc/invoke.texi: Document the new flag and -static-libubsan.
16851         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
16852         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
16853         * builtin-attrs.def (ATTR_COLD): Define.
16854         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
16855         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
16856         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
16857         * flag-types.h (sanitize_code): New enum.
16858         * opts.c (common_handle_option): Parse command line arguments
16859         of -fsanitize=.  Add -fsanitize=unreachable option.
16860         * varasm.c (get_variable_section): Adjust.
16861         (assemble_noswitch_variable): Likewise.
16862         (assemble_variable): Likewise.
16863         (output_constant_def_contents): Likewise.
16864         (categorize_decl_for_section): Likewise.
16865         (place_block_symbol): Likewise.
16866         (output_object_block): Likewise.
16867         * builtins.def: Likewise.
16868         * toplev.c (compile_file): Likewise.
16869         (process_options): Likewise.
16870         * cppbuiltin.c: Likewise.
16871         * tsan.c (tsan_pass): Likewise.
16872         (tsan_gate): Likewise.
16873         (tsan_gate_O0): Likewise.
16874         * cfgexpand.c (partition_stack_vars): Likewise.
16875         (expand_stack_vars): Likewise.
16876         (defer_stack_allocation): Likewise.
16877         (expand_used_vars): Likewise.
16878         * cfgcleanup.c (old_insns_match_p): Likewise.
16879         * asan.c (asan_finish_file): Likewise.
16880         (asan_instrument): Likewise.
16881         (gate_asan): Likewise.
16882         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
16883         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
16884         (asan_global_struct): Use pointer_sized_int_node instead
16885         calling build_nonstandard_integer_type.
16886         (initialize_sanitizer_builtins): Likewise.
16887         (asan_finish_file): Likewise.
16888         * gcc.c: Document %{%:function(args):X}.
16889         (static_spec_functions): Add sanitize.
16890         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
16891         store funcval != NULL there.
16892         (do_spec_1): Adjust handle_spec_function caller.
16893         (handle_braces): Allow %:function(args) as condition.
16894         (sanitize_spec_function): New function.
16895         (ADD_STATIC_LIBUBSAN_LIBS): Define.
16896         (LIBUBSAN_SPEC): Likewise.
16897         (LIBUBSAN_EARLY_SPEC): Likewise.
16898         (SANITIZER_SPEC): Handle libubsan.
16899         (SANITIZER_EARLY_SPEC): Likewise.
16900         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
16901         instead of fsanitize=address.
16902         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
16903         instead of fsanitize=address*.
16904         * builtins.c: Include ubsan.h.
16905         (fold_builtin_0): Instrument __builtin_unreachable.
16906         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
16907         instead of flag_asan.
16908         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
16909         (pointer_sized_int_node): Define.
16910         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
16912 2013-08-30  Mike Stump  <mikestump@comcast.net>
16914         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
16915         with RE patterns.
16917 2013-08-29  Jan Hubicka  <jh@suse.cz>
16919         * cgraph.c (cgraph_function_body_availability): Handle weakref
16920         correctly.
16921         * passes.def: Remove pass_fixup_cfg.
16922         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
16923         track when we need to remove functions.
16924         (gate_ipa_inline): Execute inlining always; add comment why.
16925         (pass_data_ipa_inline): Remove TODO_remove_functions.
16926         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
16927         do not produce summaries.
16928         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
16929         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
16930         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
16931         constant pool and vtable.
16933 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
16935         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
16936         New arm_neon.h's internal macros to specify 64-bit constants.
16937         Avoid using stdint.h's macros.
16939 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
16941         * recog.c (verify_changes): Verify that changes[i].old is non-zero
16942         before applying REG_P.
16944 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
16946         PR tree-optimization/58277
16947         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
16948         after seeing too many stmts with vdef in between dombb and current
16949         bb, invalidate everything.
16951 2013-08-30  Richard Biener  <rguenther@suse.de>
16953         * fold-const.c (fold_single_bit_test): Fix overflow test.
16955 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
16957         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
16958         and which can live in a register, always retrieve the value on entry.
16959         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
16960         passed by invisible reference specially.
16961         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
16962         (vt_add_function_parameter): Correctly deal with a parameter passed by
16963         invisible reference.
16965 2013-08-30  Jan Hubicka  <jh@suse.cz>
16967         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
16969 2013-08-30  Richard Biener  <rguenther@suse.de>
16971         PR tree-optimization/58228
16972         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
16973         allow invariant loads in nested loop vectorization.
16975 2013-08-30  Richard Biener  <rguenther@suse.de>
16977         PR tree-optimization/58223
16978         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
16979         (has_anti_or_output_dependence): ... this and adjust to also
16980         look for output dependences.
16981         (mark_nodes_having_upstream_mem_writes): Adjust.
16982         (rdg_flag_uses): Likewise.
16984 2013-08-30  Richard Biener  <rguenther@suse.de>
16986         PR tree-optimization/58010
16987         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
16988         assert that we have a loop-closed PHI.
16990 2013-08-29  Jan Hubicka  <jh@suse.cz>
16992         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
16993         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
16994         * lto-section-in.c (lto_free_function_in_decl_state): New function.
16995         (lto_free_function_in_decl_state_for_node): New function.
16997 2013-08-29  Xinliang David Li  <davidxl@google.com>
16999         * loop-unroll.c (report_unroll_peel): Minor message change.
17000         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17001         Emit alignment peeling message with default -fopt-info.
17002         (vect_loop_versioning): Emit loop version info message.
17003         * tree-vectorizer.c (vectorize_loops): Minor message change.
17004         (execute_vect_slp): Ditto.
17006 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
17008         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17009         of the clone from the DECL_NAME of the original function.
17011 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
17013         * passes.c (register_pass): Add overload.
17014         * tree-pass.h (register_pass): Forward declare it.  Add comment.
17016 2013-08-29  Jan Hubicka  <jh@suse.cz>
17018         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17019         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17020         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17021         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17022         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17023         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17024         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17025         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17027 2013-08-29  Teresa Johnson  <tejohnson@google.com>
17029         * dumpfile.c (dump_loc): Output column number.
17030         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17031         * doc/invoke.texi: Document optall -fopt-info flag.
17032         * profile.c (read_profile_edge_counts): Use new dump framework.
17033         (compute_branch_probabilities): Ditto.
17034         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17035         when pass not in any opt group.
17036         * pass_manager.h (pass_manager::get_pass_profile): New method.
17037         * value-prof.c (check_counter): Use new dump framework.
17038         (check_ic_target): Ditto.
17039         * coverage.c (get_coverage_counts): Ditto.
17040         (coverage_init): Setup new dump framework.
17042 2013-08-29  Richard Biener  <rguenther@suse.de>
17044         PR tree-optimization/58246
17045         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17046         handle the dominance check inside a basic-block.
17048 2013-08-29  Richard Biener  <rguenther@suse.de>
17050         PR middle-end/57287
17051         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17052         of default defs that appear in abnormal PHI nodes.
17054 2013-08-29  Richard Biener  <rguenther@suse.de>
17056         PR tree-optimization/57685
17057         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17058         single-use operands to avoid exponential complexity.
17060 2013-08-28  Dehao Chen  <dehao@google.com>
17062         * ipa-inline.c (edge_badness): Fix integer underflow.
17064 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
17066         * gtm-builtins.def (_ITM_free): Declare leaf.
17068 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17070         PR target/58067
17071         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17072         (*tls_local_dynamic_base_64_largepic): Likewise.
17073         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17074         Remove predicate from call operand.
17075         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17076         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17078 2013-08-28  Jeff Law  <law@redhat.com>
17080         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17081         checks for the number of predecessors and successors allowed.
17082         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17083         which require copying a joiner block if there is a request which
17084         is a subpath that requires no joiner block copying.
17086 2013-08-28  Jan Hubicka  <jh@suse.cz>
17088         * lto-streamer-out.c (DFS_write_tree_body): Drop
17089         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17090         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17091         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17092         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17093         Do not read DECL_ERROR_ISSUED.
17094         (unpack_ts_decl_with_vis_value_fields): Do not read
17095         DECL_DEFER_OUTPUT.
17096         (lto_input_ts_binfo_tree_pointers): Do not read
17097         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17098         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17099         write DECL_ERROR_ISSUED..
17100         (pack_ts_decl_with_vis_value_fields): Do not write
17101         DECL_DEFER_OUTPUT.
17102         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17103         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17104         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17105         * tree.h (tree_decl_common): Update comment.
17106         (DECL_ERROR_ISSUED): Remove.
17108 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17110         PR middle-end/58257
17111         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17113 2013-08-28  Jan Hubicka  <jh@suse.cz>
17115         * builtins.def (free): Declare leaf.
17117 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
17119         * gdbhooks.py: New.
17120         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17121         * configure: Regenerate.
17123 2013-08-27  Martin Jambor  <mjambor@suse.cz>
17125         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17126         (ipa_ancestor_jf_data): Likewise.
17127         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17128         (ipa_get_jf_pass_through_type_preserved): New function.
17129         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17130         (ipa_get_jf_ancestor_type_preserved): New function.
17131         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17132         (ipa_get_jf_ancestor_result): Likewise.
17133         (propagate_vals_accross_pass_through): Use
17134         ipa_get_jf_pass_through_result to do all the value mappings.
17135         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17136         type_preserved flag.
17137         (ipa_set_jf_cst_copy): New function.
17138         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17139         (ipa_set_jf_arith_pass_through): Likewise.
17140         (ipa_set_ancestor_jf): Likewise.
17141         (compute_complex_assign_jump_func): Set type_preserved instead of
17142         punting.
17143         (ipa_compute_jump_functions_for_edge): Likewise.
17144         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17145         (update_jump_functions_after_inlining): Update type_preserved.
17146         Explicitely create jump functions when combining one with pass_through.
17147         (ipa_write_jump_function): Stream the type_preserved flags.
17148         (ipa_read_jump_function): Likewise.
17150 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
17151             Aldy Hernandez  <aldyh@redhat.com>
17153         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17154         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17155         * function.h (struct function): Add has_force_vect_loops and
17156         has_simduid_loops.
17157         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17158         * gimple.c (gimple_build_omp_critical): Add KIND argument and
17159         handle it.
17160         * gimple.def: Update CLAUSES comments.
17161         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17162         (gimple_build_omp_for): Add argument to prototype.
17163         (gimple_omp_for_kind): New.
17164         (gimple_omp_for_set_kind): New.
17165         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17166         GOVD_DATA_SHARE_CLASS.
17167         (enum omp_region_type): Add ORT_SIMD.
17168         (gimple_add_tmp_var): Handle ORT_SIMD.
17169         (gimplify_var_or_parm_decl): Same.
17170         (is_gimple_stmt): Same.
17171         (omp_firstprivatize_variable): Same.
17172         (omp_add_variable): Only use splay_tree_insert if lookup failed.
17173         (omp_notice_variable): Handle ORT_SIMD.
17174         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17175         (omp_check_private): Handle ORT_SIMD.
17176         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17177         OMP_CLAUSE_SAFELEN.
17178         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17179         Handle OMP_CLAUSE_LASTPRIVATE.
17180         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17181         OMP_CLAUSE_SAFELEN.
17182         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17183         (gimplify_expr): Handle OMP_SIMD.
17184         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17185         (expand_GOMP_SIMD_VF): New.
17186         (expand_GOMP_SIMD_LAST_LANE): New.
17187         * internal-fn.def (GOMP_SIMD_LANE): New.
17188         (GOMP_SIMD_VF): New.
17189         (GOMP_SIMD_LAST_LANE): New.
17190         * omp-low.c: Include target.h.
17191         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17192         OMP_CLAUSE_SAFELEN.
17193         (check_omp_nesting_restrictions): Same.
17194         (omp_max_vf): New.
17195         (lower_rec_simd_input_clauses): New.
17196         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17197         OMP_CLAUSE_LINEAR.
17198         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17199         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17200         (expand_omp_build_assign): New.
17201         (expand_omp_for_init_counts): New.
17202         (expand_omp_for_init_vars): New.
17203         (extract_omp_for_update_vars): New.
17204         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17205         and rewrite accordingly.
17206         (expand_omp_simd): New.
17207         (expand_omp_for): Use expand_omp_simd.
17208         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17209         (lower_omp_for): Do not lower the body.
17210         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17211         in their own loops.
17212         * tree-flow.h (find_omp_clause): Remove prototype.
17213         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17214         forcing vectorization of the loop, or if flag_tree_vectorize.
17215         (gate_tree_if_conversion): Similarly.
17216         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
17217         gimple_build_omp_for.
17218         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
17219         * tree-parloops (create_parallel_loop): Pass kind argument to
17220         gimple_build_omp_for.
17221         * tree-pretty-print.c (dump_omp_clause): Add cases for
17222         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
17223         OMP_CLAUSE__SIMDUID_.
17224         (dump_generic_node): Handle OMP_SIMD.
17225         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
17226         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
17227         unroll OMP_SIMD loops here.
17228         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
17229         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
17230         loop->safelen.
17231         (vect_analyze_data_refs): Handle simd loops.
17232         * tree-vect-loop.c (vectorizable_live_operation): Handle
17233         IFN_GOMP_SIMD*.
17234         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17235         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17236         (vectorizable_load): Same.
17237         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17238         (struct simduid_to_vf): New.
17239         (simduid_to_vf::hash): New.
17240         (simduid_to-vf::equal): New.
17241         (struct simd_array_to_simduid): New.
17242         (simd_array_to_simduid::hash): New.
17243         (simd_array_to_simduid::equal): New.
17244         (adjust_simduid_builtins): New.
17245         (struct note_simd_array_uses_struct): New.
17246         (note_simd_array_uses_cb): New.
17247         (note_simd_array_uses): New.
17248         (vectorize_loops): Handle simd hints and adjust simd builtins
17249         accordingly.
17250         * tree-vectorizer.h (struct _stmt_vec_info): Add
17251         simd_lane_access_p field.
17252         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17253         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17254         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17255         (omp_clause_code_name): Same.
17256         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17257         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17258         * tree.def (OMP_SIMD): New entry.
17259         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17260         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17261         (OMP_CLAUSE_DECL): Adjust range for new clauses.
17262         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17263         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17264         (OMP_CLAUSE_LINEAR_STEP): New.
17265         (OMP_CLAUSE_SAFELEN_EXPR): New.
17266         (OMP_CLAUSE__SIMDUID__DECL): New.
17267         (find_omp_clause): New prototype.
17269 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
17271         * config/i386/driver-i386.c (host_detect_local_cpu): Update
17272         Haswell processor detection.
17274 2013-08-27  Christian Widmer  <shadow@umbrox.de>
17276         PR target/57927
17277         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
17278         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
17279         AVX2 capable processors.
17281 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
17283         * config/aarch64/arm_neon.h: Replace all inline asm implementations
17284         of vget_low_* with implementations in terms of other intrinsics.
17286 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
17288         PR middle-end/57219
17289         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
17290         values to -1, 0 and 1.
17292 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
17294         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
17295         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
17296         (<optab><mode>3_insn): Remove.
17297         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
17298         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17299         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17300         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
17301         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
17302         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
17303         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
17304         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
17305         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
17306         (ror<mode>3_insn): Likewise.
17307         * config/aarch64/predicates.md (aarch64_simd_register): New.
17309 2013-08-27  Richard Biener  <rguenther@suse.de>
17311         PR tree-optimization/57521
17312         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
17313         one edge is non-critical.
17314         (find_phi_replacement_condition): Make sure to use a non-critical
17315         edge.  Cleanup and remove old bug workarounds.
17316         (bb_postdominates_preds): Remove.
17317         (if_convertible_loop_p_1): Do not compute post-dominators.
17318         (combine_blocks): Do not free post-dominators.
17319         (main_tree_if_conversion): Likewise.
17320         (pass_data_if_conversion): Add TODO_verify_ssa.
17322 2013-08-27  DJ Delorie  <dj@redhat.com>
17324         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
17326 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
17328         * function.c (assign_parm_find_data_types): Set passed_mode and
17329         nominal_mode to the TYPE_MODE of nominal_type for the built
17330         pointer type in case of the struct-pass-by-reference.
17332 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17334         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
17335         (UINT16_TYPE): Change default to "unsigned int".
17337         * config/avr/avr.opt (mfract-convert-truncate): New option.
17338         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
17339         is set, round negative fractional integers according to n1169
17340         when converting to integer types.
17342 2013-08-26  Jan Hubicka  <jh@suse.cz>
17344         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
17345         methods can not be called indirectly when their address is not taken.
17347 2013-08-26  Jan Hubicka  <jh@suse.cz>
17349         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
17350         ctor_for_folding.
17352 2013-08-26  Jan Hubicka  <jh@suse.cz>
17354         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
17355         can be unshared.
17357 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17359         * reload.c (find_valid_class): Allow classes that do not include
17360         FIRST_PSEUDO_REGISTER - 1.
17362 2013-08-26  Jan Hubicka  <jh@suse.cz>
17364         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
17365         fix edge count/frequency when speculation failed; fix type check
17366         for the direct call.
17368 2013-08-26  Jan Hubicka  <jh@suse.cz>
17370         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
17372 2013-08-26  Jan Hubicka  <jh@suse.cz>
17374         * ipa-inline-transform.c (inline_transform): Be ready for basic block
17375         to be changed by edge redirection.
17377 2013-08-26  Jan Hubicka  <jh@suse.cz>
17379         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
17380         formating; add sanity check.
17381         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
17382         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
17383         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
17384         (resolve_noninline_speculation): Update callee keys, too.
17386 2013-08-26  Jan Hubicka  <jh@suse.cz>
17388         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
17389         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
17391 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17393         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
17394         into proper place.
17396 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
17398         * config/i386/i386.c (ix86_debug_options): Remove prototype.
17399         (x86_64_elf_select_section): Ditto.
17400         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
17401         arguments.
17402         (ix86_pass_by_reference): Ditto.
17403         (output_set_got): Ditto.
17404         (ix86_unary_operator_ok): Ditto.
17405         (ix86_expand_builtin): Ditto.
17407 2013-08-23  Jan Hubicka  <jh@suse.cz>
17409         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
17411 2013-08-23  Jan Hubicka  <jh@suse.cz>
17413         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
17414         (tree_decl_with_vis): Add FINAL field.
17416 2013-08-23  Jeff Law  <law@redhat.com>
17418         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
17419         the debugging dump when the expression is fully redundant.
17421 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17423         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
17424         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
17425         * pretty-print.c (pp_formatted_text_data): Likewise.
17426         (pp_write_text_to_stream): Likewise.
17427         (pp_write_text_as_dot_label_to_stream): Likewise.
17428         (pp_append_r): Likewise.
17429         (pp_format): Likewise.
17430         (pp_flush): Likewise.
17431         (pp_clear_output_area): Likewise.
17432         (pp_append_text): Likewise.
17433         (pp_formatted_text): Likewise.
17434         (pp_remaining_character_count_for_line): Likewise.
17435         (pp_newline): Likewise.
17436         (pp_character): Likewise.
17437         (output_buffer::~output_buffer): Define.
17438         (pretty_printer::~pretty_printer): Destruct output buffer.
17439         * pretty-print.h (output_buffer::~output_buffer): Declare.
17440         (pretty_printer::~pretty_printer): Declare virtual.
17442 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
17444         PR other/57324
17445         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
17446         HOST_WIDE_INT_M1U): New macros.
17447         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
17448         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
17449         unsigned -1 for lshift.
17450         * cse.c (cse_insn): Likewise.
17451         * double-int.c (rshift_double, lshift_double): Likewise.
17452         * builtins.c (fold_builtin_bitop): Likewise.
17453         * combine.c (force_to_mode): Likewise.
17454         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
17455         * simplify-rtx.c (simplify_const_unary_operation,
17456         simplify_const_binary_operation): Likewise.
17457         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
17458         check_va_list_escapes): Likewise.
17459         * rtlanal.c (nonzero_bits1): Likewise.
17460         * expmed.c (expand_smod_pow2): Likewise.
17461         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
17463 2013-08-23  Jan Hubicka  <jh@suse.cz>
17465         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
17466         as having address taken.
17468 2013-08-23  Jan Hubicka  <jh@suse.cz>
17470         * ipa-utils.h (method_class_type): Declare.
17471         * ipa-devirt.c (method_class_type): Export.
17473         * cgraphunit.c (analyze_functions): Do basic devirtualization;
17474         do not walk base classes of anonymous types.
17476 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
17478         PR rtl-optimization/58220
17479         PR regression/58221
17480         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
17481         handle SEQUENCE insns properly.
17483 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17485         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
17486         definition.
17487         (pp_newline_and_indent): Likewise.
17488         (pp_separate_with): Likewise.
17489         * pretty-print.c (pp_newline_and_flush): Define.
17490         (pp_newline_and_indent): Likewise.
17491         (pp_separate_with): Likewise.
17493 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
17495         PR target/58218
17496         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
17497         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
17499 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
17501         * config/i386/predicates.md (ext_sse_reg_operand): New.
17502         * config/i386/i386.md (*movti_internal): Use
17503         predicate to determine if EVEX is needed.
17504         (*movsi_internal): Ditto.
17505         (*movdf_internal): Ditto.
17506         (*movsf_internal): Ditto.
17507         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
17509 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
17511         PR tree-optimization/58209
17512         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
17513         (find_tail_calls): Give up for pointer result types if m is non-NULL.
17514         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
17515         emit POINTER_PLUS_EXPR.
17516         (create_tailcall_accumulator): For pointer result type accumulate in
17517         sizetype type.
17519 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
17521         * configure.ac: Add backslashes missing from the last change.
17522         * configure: Regenerate.
17524 2013-08-22  Jan Hubicka  <jh@susue.cz>
17526         * ipa.c (function_and_variable_visibility): First remember function
17527         was global and then make it local.
17529 2013-08-22  Julian Brown  <julian@codesourcery.com>
17531         * configure.ac: Add aarch64 to list of arches which use "nop" in
17532         debug_line test.
17533         * configure: Regenerate.
17535 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17537         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
17538         gnu_libc_has_function.
17539         * config/s390/tpf.h: Likewise.
17541 2013-08-22  Jan Hubicka  <jh@susue.cz>
17543         * timevar.c (validate_phases): Add cast.
17545 2013-08-22  Jan Hubicka  <jh@susue.cz>
17547         * timevar.c (validate_phases): Use size_t for memory.
17548         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
17550 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17552         * pretty-print.h (output_buffer::output_buffer): Declare.
17553         (pretty_printer::pretty_printer): Likewise.
17554         (pp_construct): Remove.
17555         * pretty-print.c (output_buffer::output_buffer): Define.
17556         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
17557         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
17558         (print_gimple_expr): Likewise.
17559         (print_gimple_seq): Likewise.
17560         (gimple_dump_bb): Likewise.
17561         * sched-vis.c (dump_value_slim): Likewise.
17562         (dump_insn_slim): Likewise.
17563         (dump_rtl_slim): Likewise.
17564         (str_pattern_slim): Likewise.
17565         * tree-mudflap.c (mf_varname_tree): Likewise.
17566         * graph.c (print_graph_cfg): Likewise.
17567         (start_graph_dump): Likewise.
17568         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
17569         placement-new.
17570         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
17571         pretty printer initialization.
17572         * coretypes.h (diagnostic_context): Remove superflous type alias
17573         declaration.
17574         (pretty_printer): Likewise.  Declare directly as a class.
17575         (pretty_print_info): Remove declaration as class.
17576         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
17577         and pp_clear_output_area.
17578         (asan_add_global): Likewise.
17580 2013-08-22  Jan Hubicka  <jh@suse.cz>
17582         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
17583         * ipa-utils.h (update_type_inheritance_graph): Declare.
17584         (possible_polymorphic_call_target_p): Declare.
17585         (possible_polymorphic_call_target_p): New.
17586         * ipa-devirt.c: Update toplevel comments.
17587         (cached_polymorphic_call_targets): Move up.
17588         (odr_type_d): Move ID down.
17589         (polymorphic_type_binfo_p): Update comment.
17590         (odr_hasher::remove): Likewise;
17591         (get_odr_type): Set anonymous_namespace.
17592         (dump_odr_type): Dump it.
17593         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
17594         (maybe_record_node): Record node in cached_polymorphic_call_targets.
17595         (record_binfo): Add comment.
17596         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
17597         built.
17598         (devirt_node_removal_hook): Do not iCE when cache is freed.
17599         (possible_polymorphic_call_target_p): New predicate.
17600         (update_type_inheritance_graph): New function.
17602 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17603             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17604             Sergey Lega  <sergey.s.lega@intel.com>
17605             Anna Tikhonova  <anna.tikhonova@intel.com>
17606             Ilya Tocar  <ilya.tocar@intel.com>
17607             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17608             Ilya Verbin  <ilya.verbin@intel.com>
17609             Kirill Yukhin  <kirill.yukhin@intel.com>
17610             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17612         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
17613         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
17614         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
17615         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
17616         (OPTION_MASK_ISA_AVX2_UNSET): Update.
17617         (OPTION_MASK_ISA_AVX512F_UNSET): New.
17618         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
17619         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
17620         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
17621         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
17622         OPT_mavx512pf, OPT_mavx512er cases.
17623         * config/i386/constraints.md (v): New constraint.
17624         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
17625         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
17626         (bit_AVX512CD): New.
17627         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17628         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
17629         * config/i386/i386-c.c (ix86_target_macros_internal):
17630         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
17631         __AVX512PF__.
17632         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
17633         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
17634         * config/i386/i386.c (regclass_map, dbx_register_map)
17635         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
17636         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
17637         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
17638         -mavx512pf options.
17639         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
17640         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
17641         -mavx512pf options.  Fix formatting.
17642         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
17643         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
17644         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
17645         -mavx512cd, -mavx512pf options.
17646         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
17647         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
17648         (ix86_preferred_output_reload_class): Replace SSE_REGS with
17649         ALL_SSE_REGS.
17650         (ix86_hard_regno_mode_ok): Support 512-bit registers.
17651         (ix86_set_reg_reg_cost): Ditto.
17652         (x86_order_regs_for_local_alloc): Ditto.
17653         (MAX_VECT_LEN): Extend to 64-byte.
17654         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
17655         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
17656         (TARGET_AVX512ER, TARGET_AVX512CD): New.
17657         (BIGGEST_ALIGNMENT): Extend to 512-bits.
17658         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
17659         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
17660         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
17661         (SSE_REG_MODE_P): Support new modes.
17662         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
17663         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
17664         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
17665         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
17666         (REG_CLASS_CONTENTS): Add new registers.
17667         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
17668         (EXT_REX_SSE_REGNO_P): New.
17669         (HI_REGISTER_NAMES): Add new registers.
17670         * config/i386/i386.md: Define constants for new registers.
17671         (mode): Add new 512-bit modes.
17672         (prefix): Support evex prefix.
17673         (isa): Support avx512f, noavx512f, fma_avx512f.
17674         (ssemodesuffix): Add new 512-bit modes.
17675         (movxi): New.
17676         (*movxi_internal_avx512f): Ditto.
17677         (*movdi_internal): Replace constraint "x" with the new constraint "v".
17678         Support MODE_XI.
17679         (*movsi_internal): Likewise.
17680         (*movdf_internal): Likewise.
17681         (*movsf_internal): Likewise.
17682         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
17683         (<code><mode>3): Likewise.
17684         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
17685         New.
17686         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
17687         with the new constraint "v".
17688         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
17689         modes.
17690         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
17691         with the new constraint "v".
17692         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
17693         (<sse2>_storedqu<avxsizesuffix>): Likewise.
17694         (*<plusminus_insn><mode>3): Likewise.
17695         (<sse>_vm<plusminus_insn><mode>3): Likewise.
17696         (*mul<mode>3): Likewise.
17697         (<sse>_vmmul<mode>3): Likewise.
17698         (<sse>_div<mode>3): Likewise.
17699         (<sse>_vmdiv<mode>3): Likewise.
17700         (<sse>_sqrt<mode>2): Likewise.
17701         (<sse>_vmsqrt<mode>2): Likewise.
17702         (*<code><mode>3_finite): Likewise.
17703         (*<code><mode>3) <smaxmin>: Likewise.
17704         (<sse>_vm<code><mode>3): Likewise.
17705         (*<code><mode>3) <any_logic>: Likewise.
17706         (*fma_fmadd_<mode>): Likewise.
17707         (*fma_fmsub_<mode>): Likewise.
17708         (*fma_fnmadd_<mode>): Likewise.
17709         (*fma_fnmsub_<mode>): Likewise.
17710         (*fma_fmaddsub_<mode>): Likewise.
17711         (*fma_fmsubadd_<mode>): Likewise.
17712         (*fmai_fmadd_<mode>): Likewise.
17713         (*fmai_fmsub_<mode>): Likewise.
17714         (*fmai_fnmadd_<mode>): Likewise.
17715         (*fmai_fnmsub_<mode>): Likewise.
17716         (sse_cvtsi2ss): Likewise.
17717         (sse_cvtsi2ssq): Likewise.
17718         (sse_cvtss2si): Likewise.
17719         (sse_cvtss2si_2): Likewise.
17720         (sse_cvtss2siq): Likewise.
17721         (sse_cvtss2siq_2): Likewise.
17722         (sse_cvttss2si): Likewise.
17723         (sse_cvtss2siq_2): Likewise.
17724         (float<sseintvecmodelower><mode>2): Likewise.
17725         (sse2_cvtsd2si_2): Likewise.
17726         (sse2_cvtsd2siq_2): Likewise.
17727         (*<plusminus_insn><mode>3): Likewise.
17728         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
17729         (*<sse4_1_avx2>_mul<mode>3): Likewise.
17730         (ashr<mode>3): Likewise.
17731         (<shift_insn><mode>3): Likewise.
17732         (avx2_<code><mode>3): Likewise.
17733         (*avx2_<code><mode>3): Likewise.
17734         (*andnot<mode>3): Likewise.
17735         (*<code><mode>3) <any_logic>: Likewise.
17736         (abs<mode>2): Likewise.
17737         (avx2_permvar<mode>): Likewise.
17738         (avx2_perm<mode>_1): Likewise.
17739         (*avx_vpermilp<mode>): Likewise.
17740         (avx_vpermilvar<mode>3): Likewise.
17741         (avx2_ashrv<mode>): Likewise.
17742         (avx2_<shift_insn>v<mode>): Likewise.
17743         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
17744         -mavx512cd.
17745         * doc/rtl.texi: Document XImode.
17747 2013-08-21  Jeff Law  <law@redhat.com>
17749         * tree-flow.h (register_jump_thread): Pass vector of edges
17750         instead of each important edge.
17751         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
17752         thread path into a vector and pass that to register_jump_thread.
17753         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
17754         passed in edge vector to the current 3-edge form.
17756         Revert:
17757         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
17759         * dce.c (fini_dce): Call df_analyze again just in case
17760         delete_unmarked_insns removed anything.
17762 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
17764         * reload.h (struct reg_equivs): Rename to ..
17765         (struct reg_equivs_s): .. this.
17767 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
17769         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
17771 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17773         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
17775 2013-08-21  Jeff Law  <law@redhat.com>
17777         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
17778         simplify assignments too.  If the RHS collapses to a singleton
17779         range, then return the value for the range.
17781 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
17783         * config/i386/sse.md (V16): Rename to...
17784         (VMOVE): this.
17785         (mov<mode>): Update iterator name.
17786         (*mov<mode>_internal): Ditto.
17787         (push<mode>1): Ditto.
17788         (movmisalign<mode>): Ditto.
17790 2013-08-20  Jan Hubicka  <jh@suse.cz>
17792         PR bootstrap/58186
17793         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
17794         entry for direct edges.
17795         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
17797 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17799         Revert my last two changes, r201865 and r201864:
17801         Revert r201865:
17802         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17804         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
17805         instances can own GC refs.
17807         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
17808         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
17809         (gcc::context::gt_pch_nx): Likewise.
17810         (gcc::context::gt_pch_nx):  Likewise.
17811         * ggc.h (gt_ggc_mx <T>): New.
17812         (gt_pch_nx_with_op <T>): New.
17813         (gt_pch_nx <T>): New.
17814         * passes.c (opt_pass::gt_ggc_mx): New.
17815         (opt_pass::gt_pch_nx): New.
17816         (opt_pass::gt_pch_nx_with_op): New.
17817         (pass_manager::gt_ggc_mx): New.
17818         (pass_manager::gt_pch_nx): New.
17819         (pass_manager::gt_pch_nx_with_op): New.
17820         (pass_manager::operator new): Use
17821         ggc_internal_cleared_alloc_stat rather than xcalloc.
17822         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
17823         (pass_manager::gt_ggc_mx): New.
17824         (pass_manager::gt_pch_nx): New.
17825         (pass_manager::gt_pch_nx_with_op): New.
17826         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
17827         (opt_pass::operator new): New.
17828         (opt_pass::gt_ggc_mx): New.
17829         (opt_pass::gt_pch_nx): New.
17830         (opt_pass::gt_pch_nx_with_op): New.
17832         Revert r201864:
17833         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17835         * Makefile.in (GTFILES): Add context.h.
17836         * context.c (gcc::context::operator new): New.
17837         (gcc::context::gt_ggc_mx): New.
17838         (gcc::context::gt_pch_nx): New.
17839         (gcc::context::gt_pch_nx): New.
17840         * context.h (gcc::context): Add GTY((user)) marking.
17841         (gcc::context::operator new): New.
17842         (gcc::context::gt_ggc_mx): New.
17843         (gcc::context::gt_pch_nx): New.
17844         (gcc::context::gt_pch_nx): New.
17845         (g): Add GTY marking.
17846         (gt_ggc_mx (gcc::context *)): New.
17847         (gt_pch_nx (gcc::context *)): New.
17848         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
17849         void *cookie)): New.
17850         * gengtype.c (open_base_files) <ifiles>: Add context.h.
17852 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
17854         * dce.c (fini_dce): Call df_analyze again just in case
17855         delete_unmarked_insns removed anything.
17857 2013-08-20  Teresa Johnson  <tejohnson@google.com>
17859         PR rtl-optimizations/57451
17860         * final.c (reemit_insn_block_notes): Prevent lexical blocks
17861         from crossing split section boundaries.
17863 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
17865         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
17866         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
17867         with MULTLIB_DEFAULTS.
17869 2013-08-20  Nick Clifton  <nickc@redhat.com>
17871         * target.def (narrow_volatile_bitfield): Note that the default
17872         value is false, not !TARGET_STRICT_ALIGN.
17873         * doc/tm.texi: Regenerate.
17875 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
17877         Fix LIB_SPEC for systems without libpthread.
17879         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
17880         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
17881         for Android.
17882         * config/i386/linux-common.h: Likewise.
17883         * config/mips/linux-common.h: Likewise.
17885 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
17887         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
17888         checks.
17890 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17892         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
17893         instances can own GC refs.
17895         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
17896         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
17897         (gcc::context::gt_pch_nx): Likewise.
17898         (gcc::context::gt_pch_nx):  Likewise.
17899         * ggc.h (gt_ggc_mx <T>): New.
17900         (gt_pch_nx_with_op <T>): New.
17901         (gt_pch_nx <T>): New.
17902         * passes.c (opt_pass::gt_ggc_mx): New.
17903         (opt_pass::gt_pch_nx): New.
17904         (opt_pass::gt_pch_nx_with_op): New.
17905         (pass_manager::gt_ggc_mx): New.
17906         (pass_manager::gt_pch_nx): New.
17907         (pass_manager::gt_pch_nx_with_op): New.
17908         (pass_manager::operator new): Use
17909         ggc_internal_cleared_alloc_stat rather than xcalloc.
17910         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
17911         (pass_manager::gt_ggc_mx): New.
17912         (pass_manager::gt_pch_nx): New.
17913         (pass_manager::gt_pch_nx_with_op): New.
17914         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
17915         (opt_pass::operator new): New.
17916         (opt_pass::gt_ggc_mx): New.
17917         (opt_pass::gt_pch_nx): New.
17918         (opt_pass::gt_pch_nx_with_op): New.
17920 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17922         * Makefile.in (GTFILES): Add context.h.
17923         * context.c (gcc::context::operator new): New.
17924         (gcc::context::gt_ggc_mx): New.
17925         (gcc::context::gt_pch_nx): New.
17926         (gcc::context::gt_pch_nx): New.
17927         * context.h (gcc::context): Add GTY((user)) marking.
17928         (gcc::context::operator new): New.
17929         (gcc::context::gt_ggc_mx): New.
17930         (gcc::context::gt_pch_nx): New.
17931         (gcc::context::gt_pch_nx): New.
17932         (g): Add GTY marking.
17933         (gt_ggc_mx (gcc::context *)): New.
17934         (gt_pch_nx (gcc::context *)): New.
17935         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
17936         void *cookie)): New.
17937         * gengtype.c (open_base_files) <ifiles>: Add context.h.
17939 2013-08-20  Alan Modra  <amodra@gmail.com>
17941         PR target/57865
17942         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
17943         (rs6000_emit_epilogue): Likewise.
17945 2013-08-19  Dehao Chen  <dehao@google.com>
17947         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
17949 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
17950             Jakub Jelinek  <jakub@redhat.com>
17952         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
17953         (BUILT_IN_FABSD64): Likewise.
17954         (BUILT_IN_FABSD128): Likewise.
17955         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
17956         (fold_builtin_1): Likewise.
17957         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
17958         destination and source operands.
17959         (*abstd2_fpr): Likewise.
17960         (*nabstd2_fpr): Likewise.
17962 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
17964         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
17965         JUMP_P and INSN_P.
17967 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
17969         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
17970         incomplete.
17972 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17974         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
17975         * builtins.c (default_libc_has_function): New.
17976         (gnu_libc_has_function): Ditto.
17977         (no_c99_libc_has_function): Ditto.
17978         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
17979         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
17980         (fold_builtin_sincos): Likewise.
17981         (fold_builtin_cexp): Likewise.
17982         * builtins.def (DEF_C94_BUILTIN): Likewise.
17983         (DEF_C99_BUILTIN): Likewise.
17984         (DEF_C99_C90RES_BUILTIN): Likewise.
17985         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
17986         definitions to using this define.
17987         * config/darwin-protos.h (darwin_libc_has_function): New.
17988         * config/darwin.c (darwin_libc_has_function): Ditto.
17989         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
17990         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
17991         * config/darwin.h: Ditto.
17992         * config/elfos.h: Ditto.
17993         * config/freebsd.h: Ditto.
17994         * config/i386/cygming.h: Ditto.
17995         * config/i386/djgpp.h: Ditto.
17996         * config/i386/i386-interix.h: Ditto.
17997         * config/microblaze/microblaze.h: Ditto.
17998         * config/mmix/mmix.h: Ditto.
17999         * config/gnu-user.h: Ditto.
18000         * config/ia64/hpux.h: Ditto.
18001         * config/pa/pa-hpux.h: Ditto.
18002         * config/pdp11/pdp11.h: Ditto.
18003         * config/picochip/picochip.h: Ditto.
18004         * config/linux.h: Ditto.
18005         * config/netbsd.h: Ditto.
18006         * config/openbsd.h: Ditto.
18007         * config/rs6000/aix43.h: Ditto.
18008         * config/rs6000/aix51.h: Ditto.
18009         * config/rs6000/aix52.h: Ditto.
18010         * config/rs6000/aix53.h: Ditto.
18011         * config/rs6000/aix61.h: Ditto.
18012         * config/rs6000/darwin.h: Ditto.
18013         * config/rs6000/linux.h: Ditto.
18014         * config/rs6000/linux64.h: Ditto.
18015         * config/s390/tpf.h: Ditto.
18016         * config/sol2-10.h: Ditto.
18017         * config/sol2.h: Ditto.
18018         * config/vms/vms.h: Ditto.
18019         * config/vxworks.h: Ditto.
18020         * config/linux-android.c (linux_android_libc_has_function):
18021         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18022         * config/linux-protos.h (linux_android_libc_has_function):
18023         New declaration.
18024         * config/i386/i386.c (ix86_libc_has_function): New.
18025         * config/i386/i386-protos.h
18026         (ix86_libc_has_function): New declaration.
18027         * config/i386/i386.md
18028         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18029         ("isinf<mode>2): Likewise.
18030         * convert.c (convert_to_integer): Using new target hook
18031         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18032         TARGET_C99_FUNCTIONS.
18033         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18034         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18035         * coretypes.h (function_class): New enum for different
18036         classes of functions.
18037         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18038         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18039         (TARGET_HAS_SINCOS): Likewise.
18040         (TARGET_LIBC_HAS_FUNCTION): New.
18041         * doc/tm.texi: Regenerated.
18042         * targhooks.h (default_libc_has_function): New declaration.
18043         (no_c99_libc_has_function): Ditto.
18044         (gnu_libc_has_function): Ditto.
18045         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18046         and TARGET_HAS_SINCOS.
18048 2013-08-18  Jan Hubicka  <jh@suse.cz>
18050         * Makeifle-in (ipa-devirt.o): New.
18051         (GTFILES): Add ipa-utils.h and ipa-devirt.c
18052         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18053         (analyze_functions): Look into possible targets of polymorphic call.
18054         * dumpfile.c (dump_files): Add type-inheritance dump.
18055         * dumpfile.h (TDI_inheritance): New.
18056         * ipa-devirt.c: New file.
18057         * ipa-utils.h (odr_type_d): Forward declare.
18058         (odr_type): New type.
18059         (build_type_inheritance_graph): Declare.
18060         (possible_polymorphic_call_targets): Declare and introduce inline
18061         variant when only edge is pased.
18062         (dump_possible_polymorphic_call_targets): Likewise.
18063         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18064         * tree.c (type_in_anonymous_namespace_p): Break out from ...
18065         (types_same_for_odr): ... here.
18066         * tree.h (type_in_anonymous_namespace_p): Declare.
18068 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
18070         PR tree-optimization/58006
18071         * tree-parloops.c (take_address_of): Don't ICE if get_name
18072         returns NULL.
18073         (eliminate_local_variables_stmt): Remove clobber stmts.
18075 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
18077         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18078         error message is issued for an alias to undefined symbol.
18080 2013-08-18  Jan Hubicka  <jh@suse.cz>
18082         * cgraph.c (cgraph_create_indirect_edge): Discover
18083         polymorphic calls and record basic info into indirect_info.
18084         * gimple-fold.c (gimple_fold_call): When doing BINFO based
18085         devirtualization, ignore objc function calls.
18086         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18087         call with no parm index info.
18088         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18089         * tree.c (virtual_method_call_p): New function.
18090         * tree.h (virtual_method_call_p): Declare.
18092 2013-08-16  Jan Hubicka  <jh@suse.cz>
18094         PR middle-end/58179
18095         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18097 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
18099         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18100         attribute.
18102 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18104         * gengtype.c (type_for_name): Add special-case support for
18105         locating types within the "gcc::" namespace.
18106         (open_base_files): Emit a "using namespace gcc" directive.
18108 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
18110         PR target/58160
18111         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18112         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18114         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18115         array instead of each individual operand as a separate argument.
18116         (emit_fusion_gpr_load): Likewise.
18117         (expand_fusion_gpr_load): Add new function declaration.
18119         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18120         signature to have the operands passed as an array, instead of as
18121         separate arguments.  Allow ZERO_EXTEND to be in the memory
18122         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
18123         depend on the register live/dead flags when peepholes are run.
18124         (expand_fusion_gpr_load): New function to be called from the
18125         peephole2 pass, to change the register that addis sets to be the
18126         target register.
18127         (emit_fusion_gpr_load): Change the calling signature to have the
18128         operands passed as an array, instead of as separate arguments.
18129         Allow ZERO_EXTEND to be in the memory address, and also
18130         SIGN_EXTEND if -mpower8-fusion-sign.
18132         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18133         unspec enumeration.
18134         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18135         adjust the register addis loads up in the peephole2 pass.  Do not
18136         depend on the register live/dead state when the peephole pass is done.
18138 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18140         * gengtype.c (create_user_defined_type): Ensure that the kind
18141         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18142         declaration is seen before the GTY((user)) marking.
18144 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18146         PR target/58105
18147         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18149 2013-08-16  Jan Hubicka  <jh@suse.cz>
18151         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18152         arugment expected_type.
18153         (gimple_fold_call): Use it.
18154         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18155         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18156         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18157         (try_make_edge_direct_virtual_call): Likewise.
18158         * tree.c (obj_type_ref_class): New.
18159         * tree.h (obj_type_ref_class): Use it.
18161 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18163         * sched-vis.c (rtl_slim_pp_initialized): Remove.
18164         (rtl_slim_pp): Likewise.
18165         (init_rtl_slim_pretty_print): Likewise.
18166         (dump_value_slim):  Don't call it.  Use local pretty printer.
18167         (dump_insn_slim): Likewise.
18168         (dump_rtl_slim): Likewise.
18169         (str_pattern_slim): Likewise.
18170         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18171         Simplify.
18173 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
18175         PR tree-optimization/58164
18176         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18177         walk gimple_goto_dest of GIMPLE_GOTO.
18179         PR tree-optimization/58165
18180         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18181         bi_call must be the last stmt in a bb, don't split_block, instead
18182         use fallthru edge from it and give up if there is none.
18183         Release conds vector when returning early.
18185 2013-08-14  Xinliang David Li  <davidxl@google.com>
18187         * config/i386/i386.c (ix86_option_override_internal):
18188         Remove unused variable and field.
18190 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18192         PR target/57949
18193         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18194         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18195         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18196         and Linux, correct BLKmode alignment when 128-bit alignment is
18197         required and compatibility flag is not set.
18198         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18199         for zero-size arguments when compatibility flag is not set.
18201 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18203         PR tree-optimization/58145
18204         * tree-sra.c (build_ref_for_offset): If prev_base has
18205         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18207 2013-08-14  Xinliang David Li  <davidxl@google.com>
18209         * config/i386/i386.c (ix86_option_override_internal):
18210         Fix uninitialized variable error.
18212 2013-08-14  Xinliang David Li  <davidxl@google.com>
18214         * config/i386/i386.opt: Define two new options.
18215         * config/i386/x86-tune.def: Add arch selector field in macros.
18216         * config/i386/i386.h: Adjust macro definition.
18217         * config/i386/i386.c (ix86_option_override_internal):
18218         Refactor the code.
18219         (parse_mtune_ctrl_str): New function.
18220         (set_ix86_tune_features): New function.
18221         (ix86_function_specific_restore): Call the new helper function.
18223 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
18225         PR rtl-optimization/57662
18226         * sel-sched.c (code_motion_process_successors): When the current insn
18227         is removed after the recursive traversal, break from the loop.
18228         Add comments and debug printouts.
18230 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18231             Alexandre Oliva  <aoliva@redhat.com>
18233         PR target/58067
18234         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18235         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18236         there also UNSPEC_PLTOFF.
18238 2013-08-14  Marek Polacek  <polacek@redhat.com>
18240         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18241         NUM_CONDITIONS bit positions.
18243 2013-08-13  Cary Coutant  <ccoutant@google.com>
18245         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18246         (attr_checksum): Hash vector contents instead of pointer.
18247         (attr_checksum_ordered): Likewise.
18249 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
18251         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18252         when Pmode != word_mode.  Add length_address attribute.
18253         (sse3_monitor_<mode>): Merge from sse3_monitor and
18254         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
18255         Pmode != word_mode.  Update insn length attribute.
18256         * config/i386/i386.c (ix86_option_override_internal): Update
18257         ix86_gen_monitor selection for merged sse3_monitor insn.
18259 2013-08-13  Julian Brown  <julian@codesourcery.com>
18261         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18262         perform invalid legitimization on greater-than-word-size modes for
18263         TARGET_E500_DOUBLE.
18265 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
18267         * ira.c (setup_class_translate_array): Use aclass instead of cl
18268         for classes not fully covered by allocno classes.
18270 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
18272         PR tree-optimization/57661
18273         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18274         * tree-inline.c (tree_function_versioning): Initialize it.
18275         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18276         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
18277         that is not being copied.
18279         PR sanitizer/56417
18280         * asan.c (instrument_strlen_call): Fix typo in comment.
18281         Use char * type even for the lhs of POINTER_PLUS_EXPR.
18283 2013-08-13  Steve Ellcey  <sellcey@mips.com>
18285         * config/mips/mips.md (prefetch): Use lw instead of ld on
18286         loongson in 32bit mode.
18288 2013-08-13  Nick Clifton  <nickc@redhat.com>
18290         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
18292 2013-08-13  Jan Hubicka  <jh@suse.cz>
18294         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
18295         introduced edge; fix typo in sanity check.
18296         (cgraph_resolve_speculation): Export; improve diagnostic.
18297         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
18298         speculation at type mismatch.
18299         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
18300         (cgraph_resolve_speculation): Declare.
18301         (symtab_can_be_discarded): New function.
18302         * value-prof.c (gimple_ic_transform): Remove actual transform code.
18303         * ipa-inline-transform.c (speculation_removed): New global var.
18304         (clone_inlined_nodes): See if speculation can be removed.
18305         (inline_call): If speculations was removed, we growths may not match.
18306         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
18307         (speculation_useful_p): New function.
18308         (resolve_noninline_speculation): New function.
18309         (inline_small_functions): Resolve useless speculations.
18310         * ipa-inline.h (speculation_useful_p): Declare
18311         * ipa.c (can_replace_by_local_alias): Simplify.
18312         (ipa_profile): Produce speculative calls in non-lto, too;
18313         add simple cost model; produce local aliases.
18315 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
18317         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
18318         PASS_MANAGER_H.
18320 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
18322         * config/i386/i386.c (ix86_function_versions): Use error + inform.
18324 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
18326         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
18327         iterator instead of X87MODEF.
18329 2013-08-12  Perez Read  <netfirewall@gmail.com>
18331         PR target/58132
18332         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
18333         operand 0 for intel asm alternative.
18334         (*movabs<mode>_2): Ditto for operand 1.
18336 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
18338         * config/aarch64/arm_none.h
18339         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
18341 2013-08-12  Nick Clifton  <nickc@redhat.com>
18343         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
18345 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
18347         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
18348         expand for QI/HImode operand to produce more effictive code for
18349         unsigned char(short) --> float(double) conversion.
18351 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
18353         * doc/invoke.texi: Mention that -ftls-model does not force the final
18354         model.
18356 2013-08-12  Marek Polacek  <polacek@redhat.com>
18357             Marc Glisse  <marc.glisse@inria.fr>
18359         PR tree-optimization/57980
18360         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
18361         when creating -1 constant.
18363 2013-08-10  Jan Hubicka  <jh@suse.cz>
18365         Workaround binutils PR14342.
18366         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
18367         (gimple_init_edge_profiler): Likewise.
18368         (gimple_gen_ic_func_profiler): Likewise.
18370 2013-08-09  Jan Hubicka  <jh@suse.cz>
18372         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
18374 2013-08-09  Xinliang David Li  <davidxl@google.com>
18376         * config/i386/stringop.def: New file.
18377         * config/i386/stringop.opt: New file.
18378         * config/i386/i386-opts.h: Include stringopt.def.
18379         * config/i386/i386.opt: Include stringopt.opt.
18380         * config/i386/i386.c (ix86_option_override_internal):
18381         Override default size based stringop inline strategies with options.
18382         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
18383         New function.
18385 2013-08-09  Jan Hubicka  <jh@suse.cz>
18387         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
18389 2013-08-09  Jan Hubicka  <jh@suse.cz>
18391         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
18392         CGRAPH_FREQ_MAX.
18393         (dump_cgraph_node): Dump profile-id.
18394         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
18395         and common_target_probability.
18396         * lto-cgraph.c (lto_output_edge): Stream common targets.
18397         (lto_output_node): Stream profile ids.
18398         (input_node): Stream profile ids.
18399         (input_edge): Stream common targets.
18400         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
18401         * ipa.c: Include value-prof.h
18402         (ipa_profile_generate_summary): Turn indirect call statement histograms
18403         into common targets.
18404         (ipa_profile): Turn common targets into speculative edges.
18406 2013-08-09  Jan Hubicka  <jh@suse.cz>
18408         * cgraph.h (cgraph_node): Add profile_id.
18409         * value-prof.c (cgraph_node_map): Turn into pointer_map.
18410         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
18411         (del_node_map): Update.
18412         (find_func_by_funcdef_no): Replace by ...
18413         (find_func_by_profile_id): ... this one.
18414         (gimple_ic_transform): Do not remove useful histograms when
18415         speculation is not done; dump info when indirect call removal
18416         can happen at LTO.
18417         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
18418         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
18419         (__gcov_indirect_call_profiler_v2): .. this one.
18420         * profile.h (init_node_map): Update.
18421         * coverage.c (coverage_compute_profile_id): New function.
18422         * coverage.h (coverage_compute_profile_id): Declare.
18423         * tree-profile.c (init_ic_make_global_vars): Make
18424         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
18425         (gimple_init_edge_profiler): Update prototype of
18426         __gcov_indirect_call_profiler.
18427         (gimple_gen_ic_func_profiler): Simplify.
18428         (tree_profiling): Use init_node_map
18430 2013-08-09  Jan Hubicka  <jh@suse.cz>
18432         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
18433         non-speculative refs.
18434         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
18435         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
18436         (cgraph_set_call_stmt): Likewise.
18437         (cgraph_create_edge_1): Fix release checking compilatoin;
18438         clear lto_stmt_uid.
18439         (cgraph_free_edge): Free indirect info.
18440         (cgraph_turn_edge_to_speculative): New function.
18441         (cgraph_speculative_call_info): New function.
18442         (cgraph_make_edge_direct): Return direct edge; handle speculation.
18443         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
18444         (dump_cgraph_node): Dump speculation.
18445         (verify_edge_count_and_frequency): Accept speculative edges.
18446         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
18447         (verify_cgraph_node): Handle speculation.
18448         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
18449         (cgraph_set_call_stmt): Update prototype.
18450         (cgraph_make_edge_direct): Update prototype.
18451         (cgraph_speculative_call_info): Declare.
18452         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
18453         to change; update call of ipa_find_references.
18454         * ipa-ref.c (ipa_record_reference): Fix return value; clear
18455         lto_stmt_uid and speculative flags.
18456         (ipa_dump_references): Dump speculation.
18457         (ipa_clone_references): Clone speculative flag.
18458         (ipa_clone_referring): Likewise.
18459         (ipa_clone_ref): New function.
18460         (ipa_find_reference): Look into lto_stmt_uids
18461         (ipa_clear_stmts_in_references): Do not clear speculative calls.
18462         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
18463         (ipa_find_reference): Update declaration.
18464         (ipa_clone_ref): Declare.
18465         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
18466         stream speculative flag.
18467         (lto_output_ref): Stream statements uids and speculation.
18468         (input_ref): Likewise.
18469         (input_edge): Stream speuclation.
18470         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
18471         (cgraph_set_call_stmt_including_clones): Handle speculation.
18472         * ipa-inline.c (heap_edge_removal_hook): New function.
18473         (inline_small_functions): Register it.
18474         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
18475         also initialize refs.
18476         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
18477         edge to change.
18478         (try_make_edge_direct_simple_call): Likewise.
18479         (try_make_edge_direct_simple_call): Likewise.
18480         (update_indirect_edges_after_inlining): Likewise.
18481         (remove_described_reference): Look proper lto_stmt_uid.
18482         (propagate_controlled_uses): Likewise.
18483         (propagate_controlled_uses): Liekwise.
18484         * tree-inline.c (copy_bb): Copy speculative edges.
18485         (redirect_all_calls): New function.
18486         (copy_cfg_body): Do redirection after loop info is updated.
18487         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
18489 2013-08-09  Jan Hubicka  <jh@suse.cz>
18491         * lto-streamer-out.c (output_function): Renumber PHIs.
18492         * lto-streamer-in.c (input_function): Likewise.
18494 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
18496         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
18497         (get_lane_unsigned): Likewise.
18498         (dup_lane_scalar): Likewise.
18499         (get_lane): enable for VALL.
18500         * config/aarch64/aarch64-simd.md
18501         (aarch64_dup_lane_scalar<mode>): Remove.
18502         (aarch64_get_lane_signed<mode>): Likewise.
18503         (aarch64_get_lane_unsigned<mode>): Likewise.
18504         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
18505         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
18506         (aarch64_get_lane<mode>): Enable for all vector modes.
18507         (aarch64_get_lanedi): Remove misleading constraints.
18508         * config/aarch64/arm_neon.h
18509         (__aarch64_vget_lane_any): Define.
18510         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
18511         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
18512         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
18513         * config/aarch64/iterators.md (VDQQH): New.
18514         (VDQQHS): Likewise.
18515         (vwcore): Likewise.
18517 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
18519         * configure.ac: Add GAS check for LEON instructions on SPARC.
18520         * configure: Regenerate.
18521         * config.in: Likewise.
18522         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
18523         sparc*-*-* block.
18524         * config/sparc/sparc.opt (LEON, LEON3): New masks.
18525         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
18526         for LEON or LEON3.
18527         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
18528         (AS_LEON_FLAG): New macro.
18529         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
18530         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
18531         Deal with LEON and LEON3 for the memory model.
18532         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
18533         (atomic_compare_and_swap<mode>_1): Likewise.
18534         (*atomic_compare_and_swap<mode>_1): Likewise.
18536 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18538         * config/arm/neon.md (vcond): Fix floating-point vector
18539         comparisons against 0.
18541 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
18543         * lra-constraints.c (emit_spill_move): Remove assert.
18544         (process_alt_operands): Add more debugging
18545         output.  Increase reject for spilling into memory.  Decrease
18546         reject for reloading scratch.
18547         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
18549 2013-08-08  Steve Ellcey  <sellcey@mips.com>
18551         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
18552         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
18553         micromips incompatible.  Add nan2008.
18554         (MULTILIB_DIRNAMES): Add nan2008.
18555         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18556         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
18557         and micromips incompatible.  Add nan2008.
18558         (MULTILIB_DIRNAMES): Add nan2008.
18559         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18561 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
18563         PR rtl-optimization/58079
18564         * combine.c (combine_simplify_rtx): Avoid using SUBST if
18565         simplify_comparison has widened a comparison with an integer.
18567 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18569         * config/arm/neon.md (movmisalign<mode>): Disable when we
18570         don't allow unaligned accesses.
18571         (*movmisalign<mode>_neon_store): Likewise.
18572         (*movmisalign<mode>_neon_load): Likewise.
18573         (*movmisalign<mode>_neon_store): Likewise.
18574         (*movmisalign<mode>_neon_load): Likewise.
18576 2013-08-08  Jan Hubicka  <jh@suse.cz>
18578         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
18579         (make_pass_rebuild_cgraph_edges): Also clear references.
18580         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
18581         * ipa-inline-transform.c (inline_transform): Remove all references
18582         after inlining.
18583         * cgraphunit.c (expand_function): Remove all references after
18584         expansion.
18585         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
18586         (ipa_find_reference): Rewrite to iterator.
18587         (remove_stmt_references): Likewise.
18588         (ipa_clear_stmts_in_references): New function.
18589         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
18590         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
18591         clear references.
18592         * ipa-split.c (split_function): Remove references in split function.
18594 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
18596         PR target/57431
18597         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
18598         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
18600 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
18602         PR target/56979
18603         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
18604         suggested mode for the assignment isn't compatible with the
18605         registers required.
18607 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18609         PR target/58065
18610         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
18612 2013-08-07  Xinliang David Li  <davidxl@google.com>
18614         * config/i386/i386.opt: New option -mtune-ctrl=.
18615         * config/i386/x86-tune.def: New file.
18616         * config/i386/i386.h: include x86-tune.def.
18617         * config/i386/i386.c (ix86_option_override_internal):
18618         Parsing -mtune-ctrl= option and set tune features.
18620 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
18622         PR other/12081
18623         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
18624         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
18625         to gen_2arg_fn_t.
18627 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
18629         * rtl.h (update_alignments): Declare.
18630         * final.c (grow_label_align): New function extracted from...
18631         (shorten_branches): ...here.  Call it.
18632         (update_alignments): New function.
18633         * reorg.c (sibling_labels): New variable.
18634         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
18635         the new label along with it onto the sibling_labels vector.
18636         (fill_simple_delay_slots): Adjust call to get_label_before.
18637         (fill_slots_from_thread): Likewise.
18638         (relax_delay_slots): Likewise.
18639         (make_return_insns): Likewise.
18640         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
18642 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
18644         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
18645         document its semantics.
18646         (diagnostic_report_diagnostic): Adjust accordingly.
18648 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
18650         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
18651         (sparc_option_override): ...and port to new C++ pass API.
18652         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
18654 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
18656         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
18658 2013-08-06  Caroline Tice  <cmtice@google.com>
18660         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
18661         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
18662         * tree-pass.h: Add pass_vtable_verify.
18663         * varasm.c (assemble_variable): Add code to properly set the comdat
18664         section and name for the .vtable_map_vars section.
18665         (assemble_vtyv_preinit_initializer): New function.
18666         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
18667         LINK_ONCE flag.
18668         * output.h: Add function decl for assemble_vtv_preinit_initializer.
18669         * vtable-verify.c: New file.
18670         * vtable-verify.h: New file.
18671         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
18672         initialiation levels.
18673         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
18674         * passes.def: Insert pass_vtable_verify.
18675         * aclocal.m4: Reorder includes.
18676         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
18677         -fvtv-counts options.
18678         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
18679         as appropriate, if -fvtable-verify=... is used.
18680         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
18681         -fvtable-verify=... is used.
18682         * Makefile.in (OBJS):  Add vtable-verify.o to list.
18683         (vtable-verify.o): Add new build rule.
18684         (GTFILES): Add vtable-verify.c to list.
18685         * common.opt (fvtable-verify=): New flag.
18686         (vtv_priority): Values for fvtable-verify= flag.
18687         (fvtv-counts): New flag.
18688         (fvtv-debug): New flag.
18689         * tree.h (save_vtable_map_decl): New extern function decl.
18691 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
18693         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
18694         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
18695         (pass_data_rl78_devirt): ...new pass_data instance and...
18696         (make_pass_rl78_devirt): ...new function.
18697         (rl78_asm_file_start): Port pass registration to new C++ API.
18699 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
18701         * coretypes.h (rtl_opt_pass): Add.
18702         (gcc::context): Add.
18703         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
18704         (epiphany_init): Port to new C++ pass API.
18705         (epiphany_optimize_mode_switching): Likewise.
18706         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
18707         (pass_manager::get_pass_mode_switching): New.
18708         (pass_manager::get_pass_peephole2): New.
18709         * mode-switching.c (pass_mode_switching): Add clone method.
18710         * recog.c (pass_peephole2): Add clone method.
18711         (pass_split_all_insns): Add clone method.
18713 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
18715         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
18716         (mips_option_override): ...here, porting to new C++ API for passes.
18718 2013-08-06  Jan Hubicka  <jh@suse.cz>
18720         * cgraph.c (cgraph_get_body): New function based on lto.c
18721         implementation.
18722         * cgraph.h (cgraph_get_body): Declare.
18723         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
18724         LTO paths.
18725         * cgraphunit.c (expand_function): Get body prior expanding.
18726         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
18727         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
18728         really need.
18729         * passes.c (do_per_function_toporder): Get body.
18730         * tree-inline.c (expand_call_inline): Get body prior inlining it.
18731         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
18733 2013-08-06  Martin Jambor  <mjambor@suse.cz>
18735         PR fortran/57987
18736         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
18737         is not re-finalized.  Rename second parameter to no_collect.
18739 2013-08-06  Martin Jambor  <mjambor@suse.cz>
18741         PR middle-end/58041
18742         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
18743         MEM_REF has proper alignment information.
18745 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
18747         PR other/12081
18748         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
18749         class insn_gen_fn.
18750         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
18751         rtx (*) (rtx, ...) with insn_gen_fn.
18752         * genoutput.c (output_insn_data): Cast gen_? function pointers to
18753         insn_gen_fn::stored_funcptr.  Add initializer braces.
18755 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
18757         Rewrite how instances of passes are cloned to remove assumptions
18758         about their sizes (thus allowing pass subclasses to have
18759         additional data fields, albeit non-GC-managed ones at this point).
18761         * passes.c (make_pass_instance): Now that passes have clone
18762         methods, rewrite this function to eliminate XNEW and memcpy
18763         calls that used hardcoded sizes.  Since this function no longer
18764         creates pass instances, rename it to...
18765         (add_pass_instance): ...this.  Document the old way that passes were
18766         numbered and flagged, and rework this function to continue using it.
18767         (next_pass_1): Add an initial_pass argument for use by
18768         add_pass_instance.
18769         (position_pass): When adding multiple instances of a pass, use
18770         the pass's clone method, rather than relying on the XNEW/memcpy
18771         within the former make_pass_instance (now add_pass_instance).
18772         (pass_manager::pass_manager): When invoking next_pass_1, also supply
18773         the initial instance of the current pass within the pass manager.
18775 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
18777         This is the automated part of the conversion of passes from C
18778         structs to C++ classes.
18780         Patch autogenerated by refactor_passes.py from
18781         https://github.com/davidmalcolm/gcc-refactoring-scripts
18782         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
18784         * asan.c (pass_asan): Convert from a global struct to a subclass of
18785         gimple_opt_pass along with...
18786         (pass_data_asan): ...new pass_data instance and...
18787         (make_pass_asan): ...new function.
18788         (pass_asan_O0): Convert from a global struct to a subclass of
18789         gimple_opt_pass along with...
18790         (pass_data_asan_O0): ...new pass_data instance and...
18791         (make_pass_asan_O0): ...new function.
18792         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
18793         subclass of rtl_opt_pass along with...
18794         (pass_data_inc_dec): ...new pass_data instance and...
18795         (make_pass_inc_dec): ...new function.
18796         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
18797         a subclass of rtl_opt_pass along with...
18798         (pass_data_reorder_blocks): ...new pass_data instance and...
18799         (make_pass_reorder_blocks): ...new function.
18800         (pass_duplicate_computed_gotos): Convert from a global struct to a
18801         subclass of rtl_opt_pass along with...
18802         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
18803         (make_pass_duplicate_computed_gotos): ...new function.
18804         (pass_partition_blocks): Convert from a global struct to a subclass of
18805         rtl_opt_pass along with...
18806         (pass_data_partition_blocks): ...new pass_data instance and...
18807         (make_pass_partition_blocks): ...new function.
18808         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
18809         struct to a subclass of rtl_opt_pass along with...
18810         (pass_data_branch_target_load_optimize1): ...new pass_data instance
18811         and...
18812         (make_pass_branch_target_load_optimize1): ...new function.
18813         (pass_branch_target_load_optimize2): Convert from a global struct to a
18814         subclass of rtl_opt_pass along with...
18815         (pass_data_branch_target_load_optimize2): ...new pass_data instance
18816         and...
18817         (make_pass_branch_target_load_optimize2): ...new function.
18818         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
18819         of rtl_opt_pass along with...
18820         (pass_data_jump): ...new pass_data instance and...
18821         (make_pass_jump): ...new function.
18822         (pass_jump2): Convert from a global struct to a subclass of
18823         rtl_opt_pass along with...
18824         (pass_data_jump2): ...new pass_data instance and...
18825         (make_pass_jump2): ...new function.
18826         * cfgexpand.c (pass_expand): Convert from a global struct to a
18827         subclass of rtl_opt_pass along with...
18828         (pass_data_expand): ...new pass_data instance and...
18829         (make_pass_expand): ...new function.
18830         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
18831         of rtl_opt_pass along with...
18832         (pass_data_free_cfg): ...new pass_data instance and...
18833         (make_pass_free_cfg): ...new function.
18834         (pass_into_cfg_layout_mode): Convert from a global struct to a
18835         subclass of rtl_opt_pass along with...
18836         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
18837         (make_pass_into_cfg_layout_mode): ...new function.
18838         (pass_outof_cfg_layout_mode): Convert from a global struct to a
18839         subclass of rtl_opt_pass along with...
18840         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
18841         (make_pass_outof_cfg_layout_mode): ...new function.
18842         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
18843         struct to a subclass of gimple_opt_pass along with...
18844         (pass_data_build_cgraph_edges): ...new pass_data instance and...
18845         (make_pass_build_cgraph_edges): ...new function.
18846         (pass_rebuild_cgraph_edges): Convert from a global struct to a
18847         subclass of gimple_opt_pass along with...
18848         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
18849         (make_pass_rebuild_cgraph_edges): ...new function.
18850         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
18851         subclass of gimple_opt_pass along with...
18852         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
18853         and...
18854         (make_pass_remove_cgraph_callee_edges): ...new function.
18855         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
18856         struct to a subclass of rtl_opt_pass along with...
18857         (pass_data_stack_adjustments): ...new pass_data instance and...
18858         (make_pass_stack_adjustments): ...new function.
18859         * combine.c (pass_combine): Convert from a global struct to a subclass
18860         of rtl_opt_pass along with...
18861         (pass_data_combine): ...new pass_data instance and...
18862         (make_pass_combine): ...new function.
18863         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
18864         global struct to a subclass of rtl_opt_pass along with...
18865         (pass_data_compare_elim_after_reload): ...new pass_data instance
18866         and...
18867         (make_pass_compare_elim_after_reload): ...new function.
18868         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
18869         of rtl_opt_pass along with...
18870         (pass_data_rtl_cprop): ...new pass_data instance and...
18871         (make_pass_rtl_cprop): ...new function.
18872         * cse.c (pass_cse): Convert from a global struct to a subclass of
18873         rtl_opt_pass along with...
18874         (pass_data_cse): ...new pass_data instance and...
18875         (make_pass_cse): ...new function.
18876         (pass_cse2): Convert from a global struct to a subclass of
18877         rtl_opt_pass along with...
18878         (pass_data_cse2): ...new pass_data instance and...
18879         (make_pass_cse2): ...new function.
18880         (pass_cse_after_global_opts): Convert from a global struct to a
18881         subclass of rtl_opt_pass along with...
18882         (pass_data_cse_after_global_opts): ...new pass_data instance and...
18883         (make_pass_cse_after_global_opts): ...new function.
18884         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
18885         of rtl_opt_pass along with...
18886         (pass_data_ud_rtl_dce): ...new pass_data instance and...
18887         (make_pass_ud_rtl_dce): ...new function.
18888         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
18889         rtl_opt_pass along with...
18890         (pass_data_fast_rtl_dce): ...new pass_data instance and...
18891         (make_pass_fast_rtl_dce): ...new function.
18892         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
18893         a subclass of rtl_opt_pass along with...
18894         (pass_data_df_initialize_opt): ...new pass_data instance and...
18895         (make_pass_df_initialize_opt): ...new function.
18896         (pass_df_initialize_no_opt): Convert from a global struct to a
18897         subclass of rtl_opt_pass along with...
18898         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
18899         (make_pass_df_initialize_no_opt): ...new function.
18900         (pass_df_finish): Convert from a global struct to a subclass of
18901         rtl_opt_pass along with...
18902         (pass_data_df_finish): ...new pass_data instance and...
18903         (make_pass_df_finish): ...new function.
18904         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
18905         rtl_opt_pass along with...
18906         (pass_data_rtl_dse1): ...new pass_data instance and...
18907         (make_pass_rtl_dse1): ...new function.
18908         (pass_rtl_dse2): Convert from a global struct to a subclass of
18909         rtl_opt_pass along with...
18910         (pass_data_rtl_dse2): ...new pass_data instance and...
18911         (make_pass_rtl_dse2): ...new function.
18912         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
18913         subclass of rtl_opt_pass along with...
18914         (pass_data_dwarf2_frame): ...new pass_data instance and...
18915         (make_pass_dwarf2_frame): ...new function.
18916         * except.c (pass_set_nothrow_function_flags): Convert from a global
18917         struct to a subclass of rtl_opt_pass along with...
18918         (pass_data_set_nothrow_function_flags): ...new pass_data instance
18919         and...
18920         (make_pass_set_nothrow_function_flags): ...new function.
18921         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
18922         subclass of rtl_opt_pass along with...
18923         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
18924         and...
18925         (make_pass_convert_to_eh_region_ranges): ...new function.
18926         * final.c (pass_compute_alignments): Convert from a global struct to a
18927         subclass of rtl_opt_pass along with...
18928         (pass_data_compute_alignments): ...new pass_data instance and...
18929         (make_pass_compute_alignments): ...new function.
18930         (pass_final): Convert from a global struct to a subclass of
18931         rtl_opt_pass along with...
18932         (pass_data_final): ...new pass_data instance and...
18933         (make_pass_final): ...new function.
18934         (pass_shorten_branches): Convert from a global struct to a subclass of
18935         rtl_opt_pass along with...
18936         (pass_data_shorten_branches): ...new pass_data instance and...
18937         (make_pass_shorten_branches): ...new function.
18938         (pass_clean_state): Convert from a global struct to a subclass of
18939         rtl_opt_pass along with...
18940         (pass_data_clean_state): ...new pass_data instance and...
18941         (make_pass_clean_state): ...new function.
18942         * function.c (pass_instantiate_virtual_regs): Convert from a global
18943         struct to a subclass of rtl_opt_pass along with...
18944         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
18945         (make_pass_instantiate_virtual_regs): ...new function.
18946         (pass_leaf_regs): Convert from a global struct to a subclass of
18947         rtl_opt_pass along with...
18948         (pass_data_leaf_regs): ...new pass_data instance and...
18949         (make_pass_leaf_regs): ...new function.
18950         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
18951         subclass of rtl_opt_pass along with...
18952         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
18953         and...
18954         (make_pass_thread_prologue_and_epilogue): ...new function.
18955         (pass_match_asm_constraints): Convert from a global struct to a
18956         subclass of rtl_opt_pass along with...
18957         (pass_data_match_asm_constraints): ...new pass_data instance and...
18958         (make_pass_match_asm_constraints): ...new function.
18959         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
18960         subclass of rtl_opt_pass along with...
18961         (pass_data_rtl_fwprop): ...new pass_data instance and...
18962         (make_pass_rtl_fwprop): ...new function.
18963         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
18964         rtl_opt_pass along with...
18965         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
18966         (make_pass_rtl_fwprop_addr): ...new function.
18967         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
18968         rtl_opt_pass along with...
18969         (pass_data_rtl_pre): ...new pass_data instance and...
18970         (make_pass_rtl_pre): ...new function.
18971         (pass_rtl_hoist): Convert from a global struct to a subclass of
18972         rtl_opt_pass along with...
18973         (pass_data_rtl_hoist): ...new pass_data instance and...
18974         (make_pass_rtl_hoist): ...new function.
18975         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
18976         subclass of gimple_opt_pass along with...
18977         (pass_data_lower_cf): ...new pass_data instance and...
18978         (make_pass_lower_cf): ...new function.
18979         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
18980         from a global struct to a subclass of gimple_opt_pass along with...
18981         (pass_data_strength_reduction): ...new pass_data instance and...
18982         (make_pass_strength_reduction): ...new function.
18983         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
18984         of rtl_opt_pass along with...
18985         (pass_data_rtl_ifcvt): ...new pass_data instance and...
18986         (make_pass_rtl_ifcvt): ...new function.
18987         (pass_if_after_combine): Convert from a global struct to a subclass of
18988         rtl_opt_pass along with...
18989         (pass_data_if_after_combine): ...new pass_data instance and...
18990         (make_pass_if_after_combine): ...new function.
18991         (pass_if_after_reload): Convert from a global struct to a subclass of
18992         rtl_opt_pass along with...
18993         (pass_data_if_after_reload): ...new pass_data instance and...
18994         (make_pass_if_after_reload): ...new function.
18995         * init-regs.c (pass_initialize_regs): Convert from a global struct to
18996         a subclass of rtl_opt_pass along with...
18997         (pass_data_initialize_regs): ...new pass_data instance and...
18998         (make_pass_initialize_regs): ...new function.
18999         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19000         of ipa_opt_pass_d along with...
19001         (pass_data_ipa_cp): ...new pass_data instance and...
19002         (make_pass_ipa_cp): ...new function.
19003         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19004         global struct to a subclass of gimple_opt_pass along with...
19005         (pass_data_inline_parameters): ...new pass_data instance and...
19006         (make_pass_inline_parameters): ...new function.
19007         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19008         subclass of gimple_opt_pass along with...
19009         (pass_data_early_inline): ...new pass_data instance and...
19010         (make_pass_early_inline): ...new function.
19011         (pass_ipa_inline): Convert from a global struct to a subclass of
19012         ipa_opt_pass_d along with...
19013         (pass_data_ipa_inline): ...new pass_data instance and...
19014         (make_pass_ipa_inline): ...new function.
19015         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19016         struct to a subclass of gimple_opt_pass along with...
19017         (pass_data_local_pure_const): ...new pass_data instance and...
19018         (make_pass_local_pure_const): ...new function.
19019         (pass_ipa_pure_const): Convert from a global struct to a subclass of
19020         ipa_opt_pass_d along with...
19021         (pass_data_ipa_pure_const): ...new pass_data instance and...
19022         (make_pass_ipa_pure_const): ...new function.
19023         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19024         to a subclass of ipa_opt_pass_d along with...
19025         (pass_data_ipa_reference): ...new pass_data instance and...
19026         (make_pass_ipa_reference): ...new function.
19027         * ipa-split.c (pass_split_functions): Convert from a global struct to
19028         a subclass of gimple_opt_pass along with...
19029         (pass_data_split_functions): ...new pass_data instance and...
19030         (make_pass_split_functions): ...new function.
19031         (pass_feedback_split_functions): Convert from a global struct to a
19032         subclass of gimple_opt_pass along with...
19033         (pass_data_feedback_split_functions): ...new pass_data instance and...
19034         (make_pass_feedback_split_functions): ...new function.
19035         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19036         global struct to a subclass of simple_ipa_opt_pass along with...
19037         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19038         instance and...
19039         (make_pass_ipa_function_and_variable_visibility): ...new function.
19040         (pass_ipa_free_inline_summary): Convert from a global struct to a
19041         subclass of simple_ipa_opt_pass along with...
19042         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19043         (make_pass_ipa_free_inline_summary): ...new function.
19044         (pass_ipa_whole_program_visibility): Convert from a global struct to a
19045         subclass of ipa_opt_pass_d along with...
19046         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19047         and...
19048         (make_pass_ipa_whole_program_visibility): ...new function.
19049         (pass_ipa_profile): Convert from a global struct to a subclass of
19050         ipa_opt_pass_d along with...
19051         (pass_data_ipa_profile): ...new pass_data instance and...
19052         (make_pass_ipa_profile): ...new function.
19053         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19054         ipa_opt_pass_d along with...
19055         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19056         (make_pass_ipa_cdtor_merge): ...new function.
19057         * ira.c (pass_ira): Convert from a global struct to a subclass of
19058         rtl_opt_pass along with...
19059         (pass_data_ira): ...new pass_data instance and...
19060         (make_pass_ira): ...new function.
19061         (pass_reload): Convert from a global struct to a subclass of
19062         rtl_opt_pass along with...
19063         (pass_data_reload): ...new pass_data instance and...
19064         (make_pass_reload): ...new function.
19065         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19066         subclass of rtl_opt_pass along with...
19067         (pass_data_cleanup_barriers): ...new pass_data instance and...
19068         (make_pass_cleanup_barriers): ...new function.
19069         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19070         of rtl_opt_pass along with...
19071         (pass_data_loop2): ...new pass_data instance and...
19072         (make_pass_loop2): ...new function.
19073         (pass_rtl_loop_init): Convert from a global struct to a subclass of
19074         rtl_opt_pass along with...
19075         (pass_data_rtl_loop_init): ...new pass_data instance and...
19076         (make_pass_rtl_loop_init): ...new function.
19077         (pass_rtl_loop_done): Convert from a global struct to a subclass of
19078         rtl_opt_pass along with...
19079         (pass_data_rtl_loop_done): ...new pass_data instance and...
19080         (make_pass_rtl_loop_done): ...new function.
19081         (pass_rtl_move_loop_invariants): Convert from a global struct to a
19082         subclass of rtl_opt_pass along with...
19083         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19084         (make_pass_rtl_move_loop_invariants): ...new function.
19085         (pass_rtl_unswitch): Convert from a global struct to a subclass of
19086         rtl_opt_pass along with...
19087         (pass_data_rtl_unswitch): ...new pass_data instance and...
19088         (make_pass_rtl_unswitch): ...new function.
19089         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19090         subclass of rtl_opt_pass along with...
19091         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19092         and...
19093         (make_pass_rtl_unroll_and_peel_loops): ...new function.
19094         (pass_rtl_doloop): Convert from a global struct to a subclass of
19095         rtl_opt_pass along with...
19096         (pass_data_rtl_doloop): ...new pass_data instance and...
19097         (make_pass_rtl_doloop): ...new function.
19098         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19099         a subclass of rtl_opt_pass along with...
19100         (pass_data_lower_subreg): ...new pass_data instance and...
19101         (make_pass_lower_subreg): ...new function.
19102         (pass_lower_subreg2): Convert from a global struct to a subclass of
19103         rtl_opt_pass along with...
19104         (pass_data_lower_subreg2): ...new pass_data instance and...
19105         (make_pass_lower_subreg2): ...new function.
19106         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19107         struct to a subclass of ipa_opt_pass_d along with...
19108         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19109         (make_pass_ipa_lto_gimple_out): ...new function.
19110         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19111         of ipa_opt_pass_d along with...
19112         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19113         (make_pass_ipa_lto_finish_out): ...new function.
19114         * mode-switching.c (pass_mode_switching): Convert from a global struct
19115         to a subclass of rtl_opt_pass along with...
19116         (pass_data_mode_switching): ...new pass_data instance and...
19117         (make_pass_mode_switching): ...new function.
19118         * modulo-sched.c (pass_sms): Convert from a global struct to a
19119         subclass of rtl_opt_pass along with...
19120         (pass_data_sms): ...new pass_data instance and...
19121         (make_pass_sms): ...new function.
19122         * omp-low.c (pass_expand_omp): Convert from a global struct to a
19123         subclass of gimple_opt_pass along with...
19124         (pass_data_expand_omp): ...new pass_data instance and...
19125         (make_pass_expand_omp): ...new function.
19126         (pass_lower_omp): Convert from a global struct to a subclass of
19127         gimple_opt_pass along with...
19128         (pass_data_lower_omp): ...new pass_data instance and...
19129         (make_pass_lower_omp): ...new function.
19130         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19131         of gimple_opt_pass along with...
19132         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19133         (make_pass_diagnose_omp_blocks): ...new function.
19134         * passes.c (pass_early_local_passes): Convert from a global struct to
19135         a subclass of simple_ipa_opt_pass along with...
19136         (pass_data_early_local_passes): ...new pass_data instance and...
19137         (make_pass_early_local_passes): ...new function.
19138         (pass_all_early_optimizations): Convert from a global struct to a
19139         subclass of gimple_opt_pass along with...
19140         (pass_data_all_early_optimizations): ...new pass_data instance and...
19141         (make_pass_all_early_optimizations): ...new function.
19142         (pass_all_optimizations): Convert from a global struct to a subclass
19143         of gimple_opt_pass along with...
19144         (pass_data_all_optimizations): ...new pass_data instance and...
19145         (make_pass_all_optimizations): ...new function.
19146         (pass_all_optimizations_g): Convert from a global struct to a subclass
19147         of gimple_opt_pass along with...
19148         (pass_data_all_optimizations_g): ...new pass_data instance and...
19149         (make_pass_all_optimizations_g): ...new function.
19150         (pass_rest_of_compilation): Convert from a global struct to a subclass
19151         of rtl_opt_pass along with...
19152         (pass_data_rest_of_compilation): ...new pass_data instance and...
19153         (make_pass_rest_of_compilation): ...new function.
19154         (pass_postreload): Convert from a global struct to a subclass of
19155         rtl_opt_pass along with...
19156         (pass_data_postreload): ...new pass_data instance and...
19157         (make_pass_postreload): ...new function.
19158         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19159         subclass of rtl_opt_pass along with...
19160         (pass_data_gcse2): ...new pass_data instance and...
19161         (make_pass_gcse2): ...new function.
19162         * postreload.c (pass_postreload_cse): Convert from a global struct to
19163         a subclass of rtl_opt_pass along with...
19164         (pass_data_postreload_cse): ...new pass_data instance and...
19165         (make_pass_postreload_cse): ...new function.
19166         * predict.c (pass_profile): Convert from a global struct to a subclass
19167         of gimple_opt_pass along with...
19168         (pass_data_profile): ...new pass_data instance and...
19169         (make_pass_profile): ...new function.
19170         (pass_strip_predict_hints): Convert from a global struct to a subclass
19171         of gimple_opt_pass along with...
19172         (pass_data_strip_predict_hints): ...new pass_data instance and...
19173         (make_pass_strip_predict_hints): ...new function.
19174         * recog.c (pass_peephole2): Convert from a global struct to a subclass
19175         of rtl_opt_pass along with...
19176         (pass_data_peephole2): ...new pass_data instance and...
19177         (make_pass_peephole2): ...new function.
19178         (pass_split_all_insns): Convert from a global struct to a subclass of
19179         rtl_opt_pass along with...
19180         (pass_data_split_all_insns): ...new pass_data instance and...
19181         (make_pass_split_all_insns): ...new function.
19182         (pass_split_after_reload): Convert from a global struct to a subclass
19183         of rtl_opt_pass along with...
19184         (pass_data_split_after_reload): ...new pass_data instance and...
19185         (make_pass_split_after_reload): ...new function.
19186         (pass_split_before_regstack): Convert from a global struct to a
19187         subclass of rtl_opt_pass along with...
19188         (pass_data_split_before_regstack): ...new pass_data instance and...
19189         (make_pass_split_before_regstack): ...new function.
19190         (pass_split_before_sched2): Convert from a global struct to a subclass
19191         of rtl_opt_pass along with...
19192         (pass_data_split_before_sched2): ...new pass_data instance and...
19193         (make_pass_split_before_sched2): ...new function.
19194         (pass_split_for_shorten_branches): Convert from a global struct to a
19195         subclass of rtl_opt_pass along with...
19196         (pass_data_split_for_shorten_branches): ...new pass_data instance
19197         and...
19198         (make_pass_split_for_shorten_branches): ...new function.
19199         * ree.c (pass_ree): Convert from a global struct to a subclass of
19200         rtl_opt_pass along with...
19201         (pass_data_ree): ...new pass_data instance and...
19202         (make_pass_ree): ...new function.
19203         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19204         subclass of rtl_opt_pass along with...
19205         (pass_data_stack_regs): ...new pass_data instance and...
19206         (make_pass_stack_regs): ...new function.
19207         (pass_stack_regs_run): Convert from a global struct to a subclass of
19208         rtl_opt_pass along with...
19209         (pass_data_stack_regs_run): ...new pass_data instance and...
19210         (make_pass_stack_regs_run): ...new function.
19211         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19212         subclass of rtl_opt_pass along with...
19213         (pass_data_cprop_hardreg): ...new pass_data instance and...
19214         (make_pass_cprop_hardreg): ...new function.
19215         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
19216         subclass of rtl_opt_pass along with...
19217         (pass_data_reginfo_init): ...new pass_data instance and...
19218         (make_pass_reginfo_init): ...new function.
19219         * regmove.c (pass_regmove): Convert from a global struct to a subclass
19220         of rtl_opt_pass along with...
19221         (pass_data_regmove): ...new pass_data instance and...
19222         (make_pass_regmove): ...new function.
19223         * regrename.c (pass_regrename): Convert from a global struct to a
19224         subclass of rtl_opt_pass along with...
19225         (pass_data_regrename): ...new pass_data instance and...
19226         (make_pass_regrename): ...new function.
19227         * reorg.c (pass_delay_slots): Convert from a global struct to a
19228         subclass of rtl_opt_pass along with...
19229         (pass_data_delay_slots): ...new pass_data instance and...
19230         (make_pass_delay_slots): ...new function.
19231         (pass_machine_reorg): Convert from a global struct to a subclass of
19232         rtl_opt_pass along with...
19233         (pass_data_machine_reorg): ...new pass_data instance and...
19234         (make_pass_machine_reorg): ...new function.
19235         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19236         of rtl_opt_pass along with...
19237         (pass_data_sched): ...new pass_data instance and...
19238         (make_pass_sched): ...new function.
19239         (pass_sched2): Convert from a global struct to a subclass of
19240         rtl_opt_pass along with...
19241         (pass_data_sched2): ...new pass_data instance and...
19242         (make_pass_sched2): ...new function.
19243         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19244         to a subclass of rtl_opt_pass along with...
19245         (pass_data_stack_ptr_mod): ...new pass_data instance and...
19246         (make_pass_stack_ptr_mod): ...new function.
19247         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19248         to a subclass of rtl_opt_pass along with...
19249         (pass_data_rtl_store_motion): ...new pass_data instance and...
19250         (make_pass_rtl_store_motion): ...new function.
19251         * tracer.c (pass_tracer): Convert from a global struct to a subclass
19252         of gimple_opt_pass along with...
19253         (pass_data_tracer): ...new pass_data instance and...
19254         (make_pass_tracer): ...new function.
19255         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19256         to a subclass of gimple_opt_pass along with...
19257         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19258         (make_pass_diagnose_tm_blocks): ...new function.
19259         (pass_lower_tm): Convert from a global struct to a subclass of
19260         gimple_opt_pass along with...
19261         (pass_data_lower_tm): ...new pass_data instance and...
19262         (make_pass_lower_tm): ...new function.
19263         (pass_tm_init): Convert from a global struct to a subclass of
19264         gimple_opt_pass along with...
19265         (pass_data_tm_init): ...new pass_data instance and...
19266         (make_pass_tm_init): ...new function.
19267         (pass_tm_mark): Convert from a global struct to a subclass of
19268         gimple_opt_pass along with...
19269         (pass_data_tm_mark): ...new pass_data instance and...
19270         (make_pass_tm_mark): ...new function.
19271         (pass_tm_edges): Convert from a global struct to a subclass of
19272         gimple_opt_pass along with...
19273         (pass_data_tm_edges): ...new pass_data instance and...
19274         (make_pass_tm_edges): ...new function.
19275         (pass_tm_memopt): Convert from a global struct to a subclass of
19276         gimple_opt_pass along with...
19277         (pass_data_tm_memopt): ...new pass_data instance and...
19278         (make_pass_tm_memopt): ...new function.
19279         (pass_ipa_tm): Convert from a global struct to a subclass of
19280         simple_ipa_opt_pass along with...
19281         (pass_data_ipa_tm): ...new pass_data instance and...
19282         (make_pass_ipa_tm): ...new function.
19283         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
19284         subclass of gimple_opt_pass along with...
19285         (pass_data_call_cdce): ...new pass_data instance and...
19286         (make_pass_call_cdce): ...new function.
19287         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
19288         subclass of gimple_opt_pass along with...
19289         (pass_data_build_cfg): ...new pass_data instance and...
19290         (make_pass_build_cfg): ...new function.
19291         (pass_split_crit_edges): Convert from a global struct to a subclass of
19292         gimple_opt_pass along with...
19293         (pass_data_split_crit_edges): ...new pass_data instance and...
19294         (make_pass_split_crit_edges): ...new function.
19295         (pass_warn_function_return): Convert from a global struct to a
19296         subclass of gimple_opt_pass along with...
19297         (pass_data_warn_function_return): ...new pass_data instance and...
19298         (make_pass_warn_function_return): ...new function.
19299         (pass_warn_function_noreturn): Convert from a global struct to a
19300         subclass of gimple_opt_pass along with...
19301         (pass_data_warn_function_noreturn): ...new pass_data instance and...
19302         (make_pass_warn_function_noreturn): ...new function.
19303         (pass_warn_unused_result): Convert from a global struct to a subclass
19304         of gimple_opt_pass along with...
19305         (pass_data_warn_unused_result): ...new pass_data instance and...
19306         (make_pass_warn_unused_result): ...new function.
19307         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
19308         a subclass of gimple_opt_pass along with...
19309         (pass_data_merge_phi): ...new pass_data instance and...
19310         (make_pass_merge_phi): ...new function.
19311         * tree-complex.c (pass_lower_complex): Convert from a global struct to
19312         a subclass of gimple_opt_pass along with...
19313         (pass_data_lower_complex): ...new pass_data instance and...
19314         (make_pass_lower_complex): ...new function.
19315         (pass_lower_complex_O0): Convert from a global struct to a subclass of
19316         gimple_opt_pass along with...
19317         (pass_data_lower_complex_O0): ...new pass_data instance and...
19318         (make_pass_lower_complex_O0): ...new function.
19319         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
19320         subclass of gimple_opt_pass along with...
19321         (pass_data_lower_eh): ...new pass_data instance and...
19322         (make_pass_lower_eh): ...new function.
19323         (pass_refactor_eh): Convert from a global struct to a subclass of
19324         gimple_opt_pass along with...
19325         (pass_data_refactor_eh): ...new pass_data instance and...
19326         (make_pass_refactor_eh): ...new function.
19327         (pass_lower_resx): Convert from a global struct to a subclass of
19328         gimple_opt_pass along with...
19329         (pass_data_lower_resx): ...new pass_data instance and...
19330         (make_pass_lower_resx): ...new function.
19331         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
19332         of gimple_opt_pass along with...
19333         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
19334         (make_pass_lower_eh_dispatch): ...new function.
19335         (pass_cleanup_eh): Convert from a global struct to a subclass of
19336         gimple_opt_pass along with...
19337         (pass_data_cleanup_eh): ...new pass_data instance and...
19338         (make_pass_cleanup_eh): ...new function.
19339         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
19340         to a subclass of simple_ipa_opt_pass along with...
19341         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
19342         (make_pass_ipa_lower_emutls): ...new function.
19343         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
19344         a subclass of gimple_opt_pass along with...
19345         (pass_data_if_conversion): ...new pass_data instance and...
19346         (make_pass_if_conversion): ...new function.
19347         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
19348         subclass of gimple_opt_pass along with...
19349         (pass_data_build_ssa): ...new pass_data instance and...
19350         (make_pass_build_ssa): ...new function.
19351         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
19352         global struct to a subclass of gimple_opt_pass along with...
19353         (pass_data_loop_distribution): ...new pass_data instance and...
19354         (make_pass_loop_distribution): ...new function.
19355         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
19356         subclass of gimple_opt_pass along with...
19357         (pass_data_mudflap_1): ...new pass_data instance and...
19358         (make_pass_mudflap_1): ...new function.
19359         (pass_mudflap_2): Convert from a global struct to a subclass of
19360         gimple_opt_pass along with...
19361         (pass_data_mudflap_2): ...new pass_data instance and...
19362         (make_pass_mudflap_2): ...new function.
19363         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
19364         subclass of gimple_opt_pass along with...
19365         (pass_data_mudflap_1): ...new pass_data instance and...
19366         (make_pass_mudflap_1): ...new function.
19367         (pass_mudflap_2): Convert from a global struct to a subclass of
19368         gimple_opt_pass along with...
19369         (pass_data_mudflap_2): ...new pass_data instance and...
19370         (make_pass_mudflap_2): ...new function.
19371         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
19372         gimple_opt_pass along with...
19373         (pass_data_nrv): ...new pass_data instance and...
19374         (make_pass_nrv): ...new function.
19375         (pass_return_slot): Convert from a global struct to a subclass of
19376         gimple_opt_pass along with...
19377         (pass_data_return_slot): ...new pass_data instance and...
19378         (make_pass_return_slot): ...new function.
19379         * tree-object-size.c (pass_object_sizes): Convert from a global struct
19380         to a subclass of gimple_opt_pass along with...
19381         (pass_data_object_sizes): ...new pass_data instance and...
19382         (make_pass_object_sizes): ...new function.
19383         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
19384         global struct to a subclass of gimple_opt_pass along with...
19385         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
19386         and...
19387         (make_pass_cleanup_cfg_post_optimizing): ...new function.
19388         (pass_fixup_cfg): Convert from a global struct to a subclass of
19389         gimple_opt_pass along with...
19390         (pass_data_fixup_cfg): ...new pass_data instance and...
19391         (make_pass_fixup_cfg): ...new function.
19392         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
19393         (make_pass_mudflap_1): ...new function.
19394         (pass_mudflap_2): Replace declaration with that of...
19395         (make_pass_mudflap_2): ...new function.
19396         (pass_asan): Replace declaration with that of...
19397         (make_pass_asan): ...new function.
19398         (pass_asan_O0): Replace declaration with that of...
19399         (make_pass_asan_O0): ...new function.
19400         (pass_tsan): Replace declaration with that of...
19401         (make_pass_tsan): ...new function.
19402         (pass_tsan_O0): Replace declaration with that of...
19403         (make_pass_tsan_O0): ...new function.
19404         (pass_lower_cf): Replace declaration with that of...
19405         (make_pass_lower_cf): ...new function.
19406         (pass_refactor_eh): Replace declaration with that of...
19407         (make_pass_refactor_eh): ...new function.
19408         (pass_lower_eh): Replace declaration with that of...
19409         (make_pass_lower_eh): ...new function.
19410         (pass_lower_eh_dispatch): Replace declaration with that of...
19411         (make_pass_lower_eh_dispatch): ...new function.
19412         (pass_lower_resx): Replace declaration with that of...
19413         (make_pass_lower_resx): ...new function.
19414         (pass_build_cfg): Replace declaration with that of...
19415         (make_pass_build_cfg): ...new function.
19416         (pass_early_tree_profile): Replace declaration with that of...
19417         (make_pass_early_tree_profile): ...new function.
19418         (pass_cleanup_eh): Replace declaration with that of...
19419         (make_pass_cleanup_eh): ...new function.
19420         (pass_sra): Replace declaration with that of...
19421         (make_pass_sra): ...new function.
19422         (pass_sra_early): Replace declaration with that of...
19423         (make_pass_sra_early): ...new function.
19424         (pass_early_ipa_sra): Replace declaration with that of...
19425         (make_pass_early_ipa_sra): ...new function.
19426         (pass_tail_recursion): Replace declaration with that of...
19427         (make_pass_tail_recursion): ...new function.
19428         (pass_tail_calls): Replace declaration with that of...
19429         (make_pass_tail_calls): ...new function.
19430         (pass_tree_loop): Replace declaration with that of...
19431         (make_pass_tree_loop): ...new function.
19432         (pass_tree_loop_init): Replace declaration with that of...
19433         (make_pass_tree_loop_init): ...new function.
19434         (pass_lim): Replace declaration with that of...
19435         (make_pass_lim): ...new function.
19436         (pass_tree_unswitch): Replace declaration with that of...
19437         (make_pass_tree_unswitch): ...new function.
19438         (pass_predcom): Replace declaration with that of...
19439         (make_pass_predcom): ...new function.
19440         (pass_iv_canon): Replace declaration with that of...
19441         (make_pass_iv_canon): ...new function.
19442         (pass_scev_cprop): Replace declaration with that of...
19443         (make_pass_scev_cprop): ...new function.
19444         (pass_empty_loop): Replace declaration with that of...
19445         (make_pass_empty_loop): ...new function.
19446         (pass_record_bounds): Replace declaration with that of...
19447         (make_pass_record_bounds): ...new function.
19448         (pass_graphite): Replace declaration with that of...
19449         (make_pass_graphite): ...new function.
19450         (pass_graphite_transforms): Replace declaration with that of...
19451         (make_pass_graphite_transforms): ...new function.
19452         (pass_if_conversion): Replace declaration with that of...
19453         (make_pass_if_conversion): ...new function.
19454         (pass_loop_distribution): Replace declaration with that of...
19455         (make_pass_loop_distribution): ...new function.
19456         (pass_vectorize): Replace declaration with that of...
19457         (make_pass_vectorize): ...new function.
19458         (pass_slp_vectorize): Replace declaration with that of...
19459         (make_pass_slp_vectorize): ...new function.
19460         (pass_complete_unroll): Replace declaration with that of...
19461         (make_pass_complete_unroll): ...new function.
19462         (pass_complete_unrolli): Replace declaration with that of...
19463         (make_pass_complete_unrolli): ...new function.
19464         (pass_parallelize_loops): Replace declaration with that of...
19465         (make_pass_parallelize_loops): ...new function.
19466         (pass_loop_prefetch): Replace declaration with that of...
19467         (make_pass_loop_prefetch): ...new function.
19468         (pass_iv_optimize): Replace declaration with that of...
19469         (make_pass_iv_optimize): ...new function.
19470         (pass_tree_loop_done): Replace declaration with that of...
19471         (make_pass_tree_loop_done): ...new function.
19472         (pass_ch): Replace declaration with that of...
19473         (make_pass_ch): ...new function.
19474         (pass_ccp): Replace declaration with that of...
19475         (make_pass_ccp): ...new function.
19476         (pass_phi_only_cprop): Replace declaration with that of...
19477         (make_pass_phi_only_cprop): ...new function.
19478         (pass_build_ssa): Replace declaration with that of...
19479         (make_pass_build_ssa): ...new function.
19480         (pass_build_alias): Replace declaration with that of...
19481         (make_pass_build_alias): ...new function.
19482         (pass_build_ealias): Replace declaration with that of...
19483         (make_pass_build_ealias): ...new function.
19484         (pass_dominator): Replace declaration with that of...
19485         (make_pass_dominator): ...new function.
19486         (pass_dce): Replace declaration with that of...
19487         (make_pass_dce): ...new function.
19488         (pass_dce_loop): Replace declaration with that of...
19489         (make_pass_dce_loop): ...new function.
19490         (pass_cd_dce): Replace declaration with that of...
19491         (make_pass_cd_dce): ...new function.
19492         (pass_call_cdce): Replace declaration with that of...
19493         (make_pass_call_cdce): ...new function.
19494         (pass_merge_phi): Replace declaration with that of...
19495         (make_pass_merge_phi): ...new function.
19496         (pass_split_crit_edges): Replace declaration with that of...
19497         (make_pass_split_crit_edges): ...new function.
19498         (pass_pre): Replace declaration with that of...
19499         (make_pass_pre): ...new function.
19500         (pass_profile): Replace declaration with that of...
19501         (make_pass_profile): ...new function.
19502         (pass_strip_predict_hints): Replace declaration with that of...
19503         (make_pass_strip_predict_hints): ...new function.
19504         (pass_lower_complex_O0): Replace declaration with that of...
19505         (make_pass_lower_complex_O0): ...new function.
19506         (pass_lower_complex): Replace declaration with that of...
19507         (make_pass_lower_complex): ...new function.
19508         (pass_lower_vector): Replace declaration with that of...
19509         (make_pass_lower_vector): ...new function.
19510         (pass_lower_vector_ssa): Replace declaration with that of...
19511         (make_pass_lower_vector_ssa): ...new function.
19512         (pass_lower_omp): Replace declaration with that of...
19513         (make_pass_lower_omp): ...new function.
19514         (pass_diagnose_omp_blocks): Replace declaration with that of...
19515         (make_pass_diagnose_omp_blocks): ...new function.
19516         (pass_expand_omp): Replace declaration with that of...
19517         (make_pass_expand_omp): ...new function.
19518         (pass_expand_omp_ssa): Replace declaration with that of...
19519         (make_pass_expand_omp_ssa): ...new function.
19520         (pass_object_sizes): Replace declaration with that of...
19521         (make_pass_object_sizes): ...new function.
19522         (pass_strlen): Replace declaration with that of...
19523         (make_pass_strlen): ...new function.
19524         (pass_fold_builtins): Replace declaration with that of...
19525         (make_pass_fold_builtins): ...new function.
19526         (pass_stdarg): Replace declaration with that of...
19527         (make_pass_stdarg): ...new function.
19528         (pass_early_warn_uninitialized): Replace declaration with that of...
19529         (make_pass_early_warn_uninitialized): ...new function.
19530         (pass_late_warn_uninitialized): Replace declaration with that of...
19531         (make_pass_late_warn_uninitialized): ...new function.
19532         (pass_cse_reciprocals): Replace declaration with that of...
19533         (make_pass_cse_reciprocals): ...new function.
19534         (pass_cse_sincos): Replace declaration with that of...
19535         (make_pass_cse_sincos): ...new function.
19536         (pass_optimize_bswap): Replace declaration with that of...
19537         (make_pass_optimize_bswap): ...new function.
19538         (pass_optimize_widening_mul): Replace declaration with that of...
19539         (make_pass_optimize_widening_mul): ...new function.
19540         (pass_warn_function_return): Replace declaration with that of...
19541         (make_pass_warn_function_return): ...new function.
19542         (pass_warn_function_noreturn): Replace declaration with that of...
19543         (make_pass_warn_function_noreturn): ...new function.
19544         (pass_cselim): Replace declaration with that of...
19545         (make_pass_cselim): ...new function.
19546         (pass_phiopt): Replace declaration with that of...
19547         (make_pass_phiopt): ...new function.
19548         (pass_forwprop): Replace declaration with that of...
19549         (make_pass_forwprop): ...new function.
19550         (pass_phiprop): Replace declaration with that of...
19551         (make_pass_phiprop): ...new function.
19552         (pass_tree_ifcombine): Replace declaration with that of...
19553         (make_pass_tree_ifcombine): ...new function.
19554         (pass_dse): Replace declaration with that of...
19555         (make_pass_dse): ...new function.
19556         (pass_nrv): Replace declaration with that of...
19557         (make_pass_nrv): ...new function.
19558         (pass_rename_ssa_copies): Replace declaration with that of...
19559         (make_pass_rename_ssa_copies): ...new function.
19560         (pass_sink_code): Replace declaration with that of...
19561         (make_pass_sink_code): ...new function.
19562         (pass_fre): Replace declaration with that of...
19563         (make_pass_fre): ...new function.
19564         (pass_check_data_deps): Replace declaration with that of...
19565         (make_pass_check_data_deps): ...new function.
19566         (pass_copy_prop): Replace declaration with that of...
19567         (make_pass_copy_prop): ...new function.
19568         (pass_vrp): Replace declaration with that of...
19569         (make_pass_vrp): ...new function.
19570         (pass_uncprop): Replace declaration with that of...
19571         (make_pass_uncprop): ...new function.
19572         (pass_return_slot): Replace declaration with that of...
19573         (make_pass_return_slot): ...new function.
19574         (pass_reassoc): Replace declaration with that of...
19575         (make_pass_reassoc): ...new function.
19576         (pass_rebuild_cgraph_edges): Replace declaration with that of...
19577         (make_pass_rebuild_cgraph_edges): ...new function.
19578         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
19579         (make_pass_remove_cgraph_callee_edges): ...new function.
19580         (pass_build_cgraph_edges): Replace declaration with that of...
19581         (make_pass_build_cgraph_edges): ...new function.
19582         (pass_local_pure_const): Replace declaration with that of...
19583         (make_pass_local_pure_const): ...new function.
19584         (pass_tracer): Replace declaration with that of...
19585         (make_pass_tracer): ...new function.
19586         (pass_warn_unused_result): Replace declaration with that of...
19587         (make_pass_warn_unused_result): ...new function.
19588         (pass_diagnose_tm_blocks): Replace declaration with that of...
19589         (make_pass_diagnose_tm_blocks): ...new function.
19590         (pass_lower_tm): Replace declaration with that of...
19591         (make_pass_lower_tm): ...new function.
19592         (pass_tm_init): Replace declaration with that of...
19593         (make_pass_tm_init): ...new function.
19594         (pass_tm_mark): Replace declaration with that of...
19595         (make_pass_tm_mark): ...new function.
19596         (pass_tm_memopt): Replace declaration with that of...
19597         (make_pass_tm_memopt): ...new function.
19598         (pass_tm_edges): Replace declaration with that of...
19599         (make_pass_tm_edges): ...new function.
19600         (pass_split_functions): Replace declaration with that of...
19601         (make_pass_split_functions): ...new function.
19602         (pass_feedback_split_functions): Replace declaration with that of...
19603         (make_pass_feedback_split_functions): ...new function.
19604         (pass_strength_reduction): Replace declaration with that of...
19605         (make_pass_strength_reduction): ...new function.
19606         (pass_ipa_lower_emutls): Replace declaration with that of...
19607         (make_pass_ipa_lower_emutls): ...new function.
19608         (pass_ipa_function_and_variable_visibility): Replace declaration with
19609         that of...
19610         (make_pass_ipa_function_and_variable_visibility): ...new function.
19611         (pass_ipa_tree_profile): Replace declaration with that of...
19612         (make_pass_ipa_tree_profile): ...new function.
19613         (pass_early_local_passes): Replace declaration with that of...
19614         (make_pass_early_local_passes): ...new function.
19615         (pass_ipa_whole_program_visibility): Replace declaration with that
19616         of...
19617         (make_pass_ipa_whole_program_visibility): ...new function.
19618         (pass_ipa_lto_gimple_out): Replace declaration with that of...
19619         (make_pass_ipa_lto_gimple_out): ...new function.
19620         (pass_ipa_increase_alignment): Replace declaration with that of...
19621         (make_pass_ipa_increase_alignment): ...new function.
19622         (pass_ipa_inline): Replace declaration with that of...
19623         (make_pass_ipa_inline): ...new function.
19624         (pass_ipa_free_lang_data): Replace declaration with that of...
19625         (make_pass_ipa_free_lang_data): ...new function.
19626         (pass_ipa_free_inline_summary): Replace declaration with that of...
19627         (make_pass_ipa_free_inline_summary): ...new function.
19628         (pass_ipa_cp): Replace declaration with that of...
19629         (make_pass_ipa_cp): ...new function.
19630         (pass_ipa_reference): Replace declaration with that of...
19631         (make_pass_ipa_reference): ...new function.
19632         (pass_ipa_pure_const): Replace declaration with that of...
19633         (make_pass_ipa_pure_const): ...new function.
19634         (pass_ipa_pta): Replace declaration with that of...
19635         (make_pass_ipa_pta): ...new function.
19636         (pass_ipa_lto_finish_out): Replace declaration with that of...
19637         (make_pass_ipa_lto_finish_out): ...new function.
19638         (pass_ipa_tm): Replace declaration with that of...
19639         (make_pass_ipa_tm): ...new function.
19640         (pass_ipa_profile): Replace declaration with that of...
19641         (make_pass_ipa_profile): ...new function.
19642         (pass_ipa_cdtor_merge): Replace declaration with that of...
19643         (make_pass_ipa_cdtor_merge): ...new function.
19644         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
19645         of...
19646         (make_pass_cleanup_cfg_post_optimizing): ...new function.
19647         (pass_init_datastructures): Replace declaration with that of...
19648         (make_pass_init_datastructures): ...new function.
19649         (pass_fixup_cfg): Replace declaration with that of...
19650         (make_pass_fixup_cfg): ...new function.
19651         (pass_expand): Replace declaration with that of...
19652         (make_pass_expand): ...new function.
19653         (pass_instantiate_virtual_regs): Replace declaration with that of...
19654         (make_pass_instantiate_virtual_regs): ...new function.
19655         (pass_rtl_fwprop): Replace declaration with that of...
19656         (make_pass_rtl_fwprop): ...new function.
19657         (pass_rtl_fwprop_addr): Replace declaration with that of...
19658         (make_pass_rtl_fwprop_addr): ...new function.
19659         (pass_jump): Replace declaration with that of...
19660         (make_pass_jump): ...new function.
19661         (pass_jump2): Replace declaration with that of...
19662         (make_pass_jump2): ...new function.
19663         (pass_lower_subreg): Replace declaration with that of...
19664         (make_pass_lower_subreg): ...new function.
19665         (pass_cse): Replace declaration with that of...
19666         (make_pass_cse): ...new function.
19667         (pass_fast_rtl_dce): Replace declaration with that of...
19668         (make_pass_fast_rtl_dce): ...new function.
19669         (pass_ud_rtl_dce): Replace declaration with that of...
19670         (make_pass_ud_rtl_dce): ...new function.
19671         (pass_rtl_dce): Replace declaration with that of...
19672         (make_pass_rtl_dce): ...new function.
19673         (pass_rtl_dse1): Replace declaration with that of...
19674         (make_pass_rtl_dse1): ...new function.
19675         (pass_rtl_dse2): Replace declaration with that of...
19676         (make_pass_rtl_dse2): ...new function.
19677         (pass_rtl_dse3): Replace declaration with that of...
19678         (make_pass_rtl_dse3): ...new function.
19679         (pass_rtl_cprop): Replace declaration with that of...
19680         (make_pass_rtl_cprop): ...new function.
19681         (pass_rtl_pre): Replace declaration with that of...
19682         (make_pass_rtl_pre): ...new function.
19683         (pass_rtl_hoist): Replace declaration with that of...
19684         (make_pass_rtl_hoist): ...new function.
19685         (pass_rtl_store_motion): Replace declaration with that of...
19686         (make_pass_rtl_store_motion): ...new function.
19687         (pass_cse_after_global_opts): Replace declaration with that of...
19688         (make_pass_cse_after_global_opts): ...new function.
19689         (pass_rtl_ifcvt): Replace declaration with that of...
19690         (make_pass_rtl_ifcvt): ...new function.
19691         (pass_into_cfg_layout_mode): Replace declaration with that of...
19692         (make_pass_into_cfg_layout_mode): ...new function.
19693         (pass_outof_cfg_layout_mode): Replace declaration with that of...
19694         (make_pass_outof_cfg_layout_mode): ...new function.
19695         (pass_loop2): Replace declaration with that of...
19696         (make_pass_loop2): ...new function.
19697         (pass_rtl_loop_init): Replace declaration with that of...
19698         (make_pass_rtl_loop_init): ...new function.
19699         (pass_rtl_move_loop_invariants): Replace declaration with that of...
19700         (make_pass_rtl_move_loop_invariants): ...new function.
19701         (pass_rtl_unswitch): Replace declaration with that of...
19702         (make_pass_rtl_unswitch): ...new function.
19703         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
19704         (make_pass_rtl_unroll_and_peel_loops): ...new function.
19705         (pass_rtl_doloop): Replace declaration with that of...
19706         (make_pass_rtl_doloop): ...new function.
19707         (pass_rtl_loop_done): Replace declaration with that of...
19708         (make_pass_rtl_loop_done): ...new function.
19709         (pass_web): Replace declaration with that of...
19710         (make_pass_web): ...new function.
19711         (pass_cse2): Replace declaration with that of...
19712         (make_pass_cse2): ...new function.
19713         (pass_df_initialize_opt): Replace declaration with that of...
19714         (make_pass_df_initialize_opt): ...new function.
19715         (pass_df_initialize_no_opt): Replace declaration with that of...
19716         (make_pass_df_initialize_no_opt): ...new function.
19717         (pass_reginfo_init): Replace declaration with that of...
19718         (make_pass_reginfo_init): ...new function.
19719         (pass_inc_dec): Replace declaration with that of...
19720         (make_pass_inc_dec): ...new function.
19721         (pass_stack_ptr_mod): Replace declaration with that of...
19722         (make_pass_stack_ptr_mod): ...new function.
19723         (pass_initialize_regs): Replace declaration with that of...
19724         (make_pass_initialize_regs): ...new function.
19725         (pass_combine): Replace declaration with that of...
19726         (make_pass_combine): ...new function.
19727         (pass_if_after_combine): Replace declaration with that of...
19728         (make_pass_if_after_combine): ...new function.
19729         (pass_ree): Replace declaration with that of...
19730         (make_pass_ree): ...new function.
19731         (pass_partition_blocks): Replace declaration with that of...
19732         (make_pass_partition_blocks): ...new function.
19733         (pass_match_asm_constraints): Replace declaration with that of...
19734         (make_pass_match_asm_constraints): ...new function.
19735         (pass_regmove): Replace declaration with that of...
19736         (make_pass_regmove): ...new function.
19737         (pass_split_all_insns): Replace declaration with that of...
19738         (make_pass_split_all_insns): ...new function.
19739         (pass_fast_rtl_byte_dce): Replace declaration with that of...
19740         (make_pass_fast_rtl_byte_dce): ...new function.
19741         (pass_lower_subreg2): Replace declaration with that of...
19742         (make_pass_lower_subreg2): ...new function.
19743         (pass_mode_switching): Replace declaration with that of...
19744         (make_pass_mode_switching): ...new function.
19745         (pass_sms): Replace declaration with that of...
19746         (make_pass_sms): ...new function.
19747         (pass_sched): Replace declaration with that of...
19748         (make_pass_sched): ...new function.
19749         (pass_ira): Replace declaration with that of...
19750         (make_pass_ira): ...new function.
19751         (pass_reload): Replace declaration with that of...
19752         (make_pass_reload): ...new function.
19753         (pass_clean_state): Replace declaration with that of...
19754         (make_pass_clean_state): ...new function.
19755         (pass_branch_prob): Replace declaration with that of...
19756         (make_pass_branch_prob): ...new function.
19757         (pass_value_profile_transformations): Replace declaration with that
19758         of...
19759         (make_pass_value_profile_transformations): ...new function.
19760         (pass_postreload_cse): Replace declaration with that of...
19761         (make_pass_postreload_cse): ...new function.
19762         (pass_gcse2): Replace declaration with that of...
19763         (make_pass_gcse2): ...new function.
19764         (pass_split_after_reload): Replace declaration with that of...
19765         (make_pass_split_after_reload): ...new function.
19766         (pass_branch_target_load_optimize1): Replace declaration with that
19767         of...
19768         (make_pass_branch_target_load_optimize1): ...new function.
19769         (pass_thread_prologue_and_epilogue): Replace declaration with that
19770         of...
19771         (make_pass_thread_prologue_and_epilogue): ...new function.
19772         (pass_stack_adjustments): Replace declaration with that of...
19773         (make_pass_stack_adjustments): ...new function.
19774         (pass_peephole2): Replace declaration with that of...
19775         (make_pass_peephole2): ...new function.
19776         (pass_if_after_reload): Replace declaration with that of...
19777         (make_pass_if_after_reload): ...new function.
19778         (pass_regrename): Replace declaration with that of...
19779         (make_pass_regrename): ...new function.
19780         (pass_cprop_hardreg): Replace declaration with that of...
19781         (make_pass_cprop_hardreg): ...new function.
19782         (pass_reorder_blocks): Replace declaration with that of...
19783         (make_pass_reorder_blocks): ...new function.
19784         (pass_branch_target_load_optimize2): Replace declaration with that
19785         of...
19786         (make_pass_branch_target_load_optimize2): ...new function.
19787         (pass_leaf_regs): Replace declaration with that of...
19788         (make_pass_leaf_regs): ...new function.
19789         (pass_split_before_sched2): Replace declaration with that of...
19790         (make_pass_split_before_sched2): ...new function.
19791         (pass_compare_elim_after_reload): Replace declaration with that of...
19792         (make_pass_compare_elim_after_reload): ...new function.
19793         (pass_sched2): Replace declaration with that of...
19794         (make_pass_sched2): ...new function.
19795         (pass_stack_regs): Replace declaration with that of...
19796         (make_pass_stack_regs): ...new function.
19797         (pass_stack_regs_run): Replace declaration with that of...
19798         (make_pass_stack_regs_run): ...new function.
19799         (pass_df_finish): Replace declaration with that of...
19800         (make_pass_df_finish): ...new function.
19801         (pass_compute_alignments): Replace declaration with that of...
19802         (make_pass_compute_alignments): ...new function.
19803         (pass_duplicate_computed_gotos): Replace declaration with that of...
19804         (make_pass_duplicate_computed_gotos): ...new function.
19805         (pass_variable_tracking): Replace declaration with that of...
19806         (make_pass_variable_tracking): ...new function.
19807         (pass_free_cfg): Replace declaration with that of...
19808         (make_pass_free_cfg): ...new function.
19809         (pass_machine_reorg): Replace declaration with that of...
19810         (make_pass_machine_reorg): ...new function.
19811         (pass_cleanup_barriers): Replace declaration with that of...
19812         (make_pass_cleanup_barriers): ...new function.
19813         (pass_delay_slots): Replace declaration with that of...
19814         (make_pass_delay_slots): ...new function.
19815         (pass_split_for_shorten_branches): Replace declaration with that of...
19816         (make_pass_split_for_shorten_branches): ...new function.
19817         (pass_split_before_regstack): Replace declaration with that of...
19818         (make_pass_split_before_regstack): ...new function.
19819         (pass_convert_to_eh_region_ranges): Replace declaration with that
19820         of...
19821         (make_pass_convert_to_eh_region_ranges): ...new function.
19822         (pass_shorten_branches): Replace declaration with that of...
19823         (make_pass_shorten_branches): ...new function.
19824         (pass_set_nothrow_function_flags): Replace declaration with that of...
19825         (make_pass_set_nothrow_function_flags): ...new function.
19826         (pass_dwarf2_frame): Replace declaration with that of...
19827         (make_pass_dwarf2_frame): ...new function.
19828         (pass_final): Replace declaration with that of...
19829         (make_pass_final): ...new function.
19830         (pass_rtl_seqabstr): Replace declaration with that of...
19831         (make_pass_rtl_seqabstr): ...new function.
19832         (pass_release_ssa_names): Replace declaration with that of...
19833         (make_pass_release_ssa_names): ...new function.
19834         (pass_early_inline): Replace declaration with that of...
19835         (make_pass_early_inline): ...new function.
19836         (pass_inline_parameters): Replace declaration with that of...
19837         (make_pass_inline_parameters): ...new function.
19838         (pass_update_address_taken): Replace declaration with that of...
19839         (make_pass_update_address_taken): ...new function.
19840         (pass_convert_switch): Replace declaration with that of...
19841         (make_pass_convert_switch): ...new function.
19842         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
19843         to a subclass of simple_ipa_opt_pass along with...
19844         (pass_data_ipa_tree_profile): ...new pass_data instance and...
19845         (make_pass_ipa_tree_profile): ...new function.
19846         * tree-sra.c (pass_sra_early): Convert from a global struct to a
19847         subclass of gimple_opt_pass along with...
19848         (pass_data_sra_early): ...new pass_data instance and...
19849         (make_pass_sra_early): ...new function.
19850         (pass_sra): Convert from a global struct to a subclass of
19851         gimple_opt_pass along with...
19852         (pass_data_sra): ...new pass_data instance and...
19853         (make_pass_sra): ...new function.
19854         (pass_early_ipa_sra): Convert from a global struct to a subclass of
19855         gimple_opt_pass along with...
19856         (pass_data_early_ipa_sra): ...new pass_data instance and...
19857         (make_pass_early_ipa_sra): ...new function.
19858         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
19859         subclass of gimple_opt_pass along with...
19860         (pass_data_ccp): ...new pass_data instance and...
19861         (make_pass_ccp): ...new function.
19862         (pass_fold_builtins): Convert from a global struct to a subclass of
19863         gimple_opt_pass along with...
19864         (pass_data_fold_builtins): ...new pass_data instance and...
19865         (make_pass_fold_builtins): ...new function.
19866         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
19867         subclass of gimple_opt_pass along with...
19868         (pass_data_copy_prop): ...new pass_data instance and...
19869         (make_pass_copy_prop): ...new function.
19870         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
19871         global struct to a subclass of gimple_opt_pass along with...
19872         (pass_data_rename_ssa_copies): ...new pass_data instance and...
19873         (make_pass_rename_ssa_copies): ...new function.
19874         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
19875         subclass of gimple_opt_pass along with...
19876         (pass_data_dce): ...new pass_data instance and...
19877         (make_pass_dce): ...new function.
19878         (pass_dce_loop): Convert from a global struct to a subclass of
19879         gimple_opt_pass along with...
19880         (pass_data_dce_loop): ...new pass_data instance and...
19881         (make_pass_dce_loop): ...new function.
19882         (pass_cd_dce): Convert from a global struct to a subclass of
19883         gimple_opt_pass along with...
19884         (pass_data_cd_dce): ...new pass_data instance and...
19885         (make_pass_cd_dce): ...new function.
19886         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
19887         subclass of gimple_opt_pass along with...
19888         (pass_data_dominator): ...new pass_data instance and...
19889         (make_pass_dominator): ...new function.
19890         (pass_phi_only_cprop): Convert from a global struct to a subclass of
19891         gimple_opt_pass along with...
19892         (pass_data_phi_only_cprop): ...new pass_data instance and...
19893         (make_pass_phi_only_cprop): ...new function.
19894         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
19895         subclass of gimple_opt_pass along with...
19896         (pass_data_dse): ...new pass_data instance and...
19897         (make_pass_dse): ...new function.
19898         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
19899         a subclass of gimple_opt_pass along with...
19900         (pass_data_forwprop): ...new pass_data instance and...
19901         (make_pass_forwprop): ...new function.
19902         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
19903         struct to a subclass of gimple_opt_pass along with...
19904         (pass_data_tree_ifcombine): ...new pass_data instance and...
19905         (make_pass_tree_ifcombine): ...new function.
19906         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
19907         subclass of gimple_opt_pass along with...
19908         (pass_data_ch): ...new pass_data instance and...
19909         (make_pass_ch): ...new function.
19910         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
19911         subclass of gimple_opt_pass along with...
19912         (pass_data_tree_loop): ...new pass_data instance and...
19913         (make_pass_tree_loop): ...new function.
19914         (pass_tree_loop_init): Convert from a global struct to a subclass of
19915         gimple_opt_pass along with...
19916         (pass_data_tree_loop_init): ...new pass_data instance and...
19917         (make_pass_tree_loop_init): ...new function.
19918         (pass_lim): Convert from a global struct to a subclass of
19919         gimple_opt_pass along with...
19920         (pass_data_lim): ...new pass_data instance and...
19921         (make_pass_lim): ...new function.
19922         (pass_tree_unswitch): Convert from a global struct to a subclass of
19923         gimple_opt_pass along with...
19924         (pass_data_tree_unswitch): ...new pass_data instance and...
19925         (make_pass_tree_unswitch): ...new function.
19926         (pass_predcom): Convert from a global struct to a subclass of
19927         gimple_opt_pass along with...
19928         (pass_data_predcom): ...new pass_data instance and...
19929         (make_pass_predcom): ...new function.
19930         (pass_vectorize): Convert from a global struct to a subclass of
19931         gimple_opt_pass along with...
19932         (pass_data_vectorize): ...new pass_data instance and...
19933         (make_pass_vectorize): ...new function.
19934         (pass_graphite): Convert from a global struct to a subclass of
19935         gimple_opt_pass along with...
19936         (pass_data_graphite): ...new pass_data instance and...
19937         (make_pass_graphite): ...new function.
19938         (pass_graphite_transforms): Convert from a global struct to a subclass
19939         of gimple_opt_pass along with...
19940         (pass_data_graphite_transforms): ...new pass_data instance and...
19941         (make_pass_graphite_transforms): ...new function.
19942         (pass_check_data_deps): Convert from a global struct to a subclass of
19943         gimple_opt_pass along with...
19944         (pass_data_check_data_deps): ...new pass_data instance and...
19945         (make_pass_check_data_deps): ...new function.
19946         (pass_iv_canon): Convert from a global struct to a subclass of
19947         gimple_opt_pass along with...
19948         (pass_data_iv_canon): ...new pass_data instance and...
19949         (make_pass_iv_canon): ...new function.
19950         (pass_scev_cprop): Convert from a global struct to a subclass of
19951         gimple_opt_pass along with...
19952         (pass_data_scev_cprop): ...new pass_data instance and...
19953         (make_pass_scev_cprop): ...new function.
19954         (pass_record_bounds): Convert from a global struct to a subclass of
19955         gimple_opt_pass along with...
19956         (pass_data_record_bounds): ...new pass_data instance and...
19957         (make_pass_record_bounds): ...new function.
19958         (pass_complete_unroll): Convert from a global struct to a subclass of
19959         gimple_opt_pass along with...
19960         (pass_data_complete_unroll): ...new pass_data instance and...
19961         (make_pass_complete_unroll): ...new function.
19962         (pass_complete_unrolli): Convert from a global struct to a subclass of
19963         gimple_opt_pass along with...
19964         (pass_data_complete_unrolli): ...new pass_data instance and...
19965         (make_pass_complete_unrolli): ...new function.
19966         (pass_parallelize_loops): Convert from a global struct to a subclass
19967         of gimple_opt_pass along with...
19968         (pass_data_parallelize_loops): ...new pass_data instance and...
19969         (make_pass_parallelize_loops): ...new function.
19970         (pass_loop_prefetch): Convert from a global struct to a subclass of
19971         gimple_opt_pass along with...
19972         (pass_data_loop_prefetch): ...new pass_data instance and...
19973         (make_pass_loop_prefetch): ...new function.
19974         (pass_iv_optimize): Convert from a global struct to a subclass of
19975         gimple_opt_pass along with...
19976         (pass_data_iv_optimize): ...new pass_data instance and...
19977         (make_pass_iv_optimize): ...new function.
19978         (pass_tree_loop_done): Convert from a global struct to a subclass of
19979         gimple_opt_pass along with...
19980         (pass_data_tree_loop_done): ...new pass_data instance and...
19981         (make_pass_tree_loop_done): ...new function.
19982         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
19983         struct to a subclass of gimple_opt_pass along with...
19984         (pass_data_cse_reciprocals): ...new pass_data instance and...
19985         (make_pass_cse_reciprocals): ...new function.
19986         (pass_cse_sincos): Convert from a global struct to a subclass of
19987         gimple_opt_pass along with...
19988         (pass_data_cse_sincos): ...new pass_data instance and...
19989         (make_pass_cse_sincos): ...new function.
19990         (pass_optimize_bswap): Convert from a global struct to a subclass of
19991         gimple_opt_pass along with...
19992         (pass_data_optimize_bswap): ...new pass_data instance and...
19993         (make_pass_optimize_bswap): ...new function.
19994         (pass_optimize_widening_mul): Convert from a global struct to a
19995         subclass of gimple_opt_pass along with...
19996         (pass_data_optimize_widening_mul): ...new pass_data instance and...
19997         (make_pass_optimize_widening_mul): ...new function.
19998         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
19999         subclass of gimple_opt_pass along with...
20000         (pass_data_phiopt): ...new pass_data instance and...
20001         (make_pass_phiopt): ...new function.
20002         (pass_cselim): Convert from a global struct to a subclass of
20003         gimple_opt_pass along with...
20004         (pass_data_cselim): ...new pass_data instance and...
20005         (make_pass_cselim): ...new function.
20006         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20007         subclass of gimple_opt_pass along with...
20008         (pass_data_phiprop): ...new pass_data instance and...
20009         (make_pass_phiprop): ...new function.
20010         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20011         subclass of gimple_opt_pass along with...
20012         (pass_data_pre): ...new pass_data instance and...
20013         (make_pass_pre): ...new function.
20014         (pass_fre): Convert from a global struct to a subclass of
20015         gimple_opt_pass along with...
20016         (pass_data_fre): ...new pass_data instance and...
20017         (make_pass_fre): ...new function.
20018         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20019         subclass of gimple_opt_pass along with...
20020         (pass_data_reassoc): ...new pass_data instance and...
20021         (make_pass_reassoc): ...new function.
20022         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20023         subclass of gimple_opt_pass along with...
20024         (pass_data_sink_code): ...new pass_data instance and...
20025         (make_pass_sink_code): ...new function.
20026         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20027         subclass of gimple_opt_pass along with...
20028         (pass_data_strlen): ...new pass_data instance and...
20029         (make_pass_strlen): ...new function.
20030         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20031         struct to a subclass of gimple_opt_pass along with...
20032         (pass_data_build_alias): ...new pass_data instance and...
20033         (make_pass_build_alias): ...new function.
20034         (pass_build_ealias): Convert from a global struct to a subclass of
20035         gimple_opt_pass along with...
20036         (pass_data_build_ealias): ...new pass_data instance and...
20037         (make_pass_build_ealias): ...new function.
20038         (pass_ipa_pta): Convert from a global struct to a subclass of
20039         simple_ipa_opt_pass along with...
20040         (pass_data_ipa_pta): ...new pass_data instance and...
20041         (make_pass_ipa_pta): ...new function.
20042         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20043         subclass of gimple_opt_pass along with...
20044         (pass_data_uncprop): ...new pass_data instance and...
20045         (make_pass_uncprop): ...new function.
20046         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20047         global struct to a subclass of gimple_opt_pass along with...
20048         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20049         (make_pass_late_warn_uninitialized): ...new function.
20050         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20051         to a subclass of gimple_opt_pass along with...
20052         (pass_data_init_datastructures): ...new pass_data instance and...
20053         (make_pass_init_datastructures): ...new function.
20054         (pass_early_warn_uninitialized): Convert from a global struct to a
20055         subclass of gimple_opt_pass along with...
20056         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20057         (make_pass_early_warn_uninitialized): ...new function.
20058         (pass_update_address_taken): Convert from a global struct to a
20059         subclass of gimple_opt_pass along with...
20060         (pass_data_update_address_taken): ...new pass_data instance and...
20061         (make_pass_update_address_taken): ...new function.
20062         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20063         struct to a subclass of gimple_opt_pass along with...
20064         (pass_data_release_ssa_names): ...new pass_data instance and...
20065         (make_pass_release_ssa_names): ...new function.
20066         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20067         subclass of gimple_opt_pass along with...
20068         (pass_data_stdarg): ...new pass_data instance and...
20069         (make_pass_stdarg): ...new function.
20070         * tree-switch-conversion.c (pass_convert_switch): Convert from a
20071         global struct to a subclass of gimple_opt_pass along with...
20072         (pass_data_convert_switch): ...new pass_data instance and...
20073         (make_pass_convert_switch): ...new function.
20074         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20075         to a subclass of gimple_opt_pass along with...
20076         (pass_data_tail_recursion): ...new pass_data instance and...
20077         (make_pass_tail_recursion): ...new function.
20078         (pass_tail_calls): Convert from a global struct to a subclass of
20079         gimple_opt_pass along with...
20080         (pass_data_tail_calls): ...new pass_data instance and...
20081         (make_pass_tail_calls): ...new function.
20082         * tree-vect-generic.c (pass_lower_vector): Convert from a global
20083         struct to a subclass of gimple_opt_pass along with...
20084         (pass_data_lower_vector): ...new pass_data instance and...
20085         (make_pass_lower_vector): ...new function.
20086         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20087         gimple_opt_pass along with...
20088         (pass_data_lower_vector_ssa): ...new pass_data instance and...
20089         (make_pass_lower_vector_ssa): ...new function.
20090         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20091         to a subclass of gimple_opt_pass along with...
20092         (pass_data_slp_vectorize): ...new pass_data instance and...
20093         (make_pass_slp_vectorize): ...new function.
20094         (pass_ipa_increase_alignment): Convert from a global struct to a
20095         subclass of simple_ipa_opt_pass along with...
20096         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20097         (make_pass_ipa_increase_alignment): ...new function.
20098         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20099         gimple_opt_pass along with...
20100         (pass_data_vrp): ...new pass_data instance and...
20101         (make_pass_vrp): ...new function.
20102         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20103         subclass of simple_ipa_opt_pass along with...
20104         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20105         (make_pass_ipa_free_lang_data): ...new function.
20106         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20107         gimple_opt_pass along with...
20108         (pass_data_tsan): ...new pass_data instance and...
20109         (make_pass_tsan): ...new function.
20110         (pass_tsan_O0): Convert from a global struct to a subclass of
20111         gimple_opt_pass along with...
20112         (pass_data_tsan_O0): ...new pass_data instance and...
20113         (make_pass_tsan_O0): ...new function.
20114         * var-tracking.c (pass_variable_tracking): Convert from a global
20115         struct to a subclass of rtl_opt_pass along with...
20116         (pass_data_variable_tracking): ...new pass_data instance and...
20117         (make_pass_variable_tracking): ...new function.
20118         * web.c (pass_web): Convert from a global struct to a subclass of
20119         rtl_opt_pass along with...
20120         (pass_data_web): ...new pass_data instance and...
20121         (make_pass_web): ...new function.
20122         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20123         declaration with that of...
20124         (make_pass_mode_switch_use): ...new function.
20125         (pass_resolve_sw_modes): Replace declaration with that of...
20126         (make_pass_resolve_sw_modes): ...new function.
20127         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20128         from a global struct to a subclass of rtl_opt_pass along with...
20129         (pass_data_mode_switch_use): ...new pass_data instance and...
20130         (make_pass_mode_switch_use): ...new function.
20131         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20132         from a global struct to a subclass of rtl_opt_pass along with...
20133         (pass_data_resolve_sw_modes): ...new pass_data instance and...
20134         (make_pass_resolve_sw_modes): ...new function.
20135         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20136         struct to a subclass of rtl_opt_pass along with...
20137         (pass_data_insert_vzeroupper): ...new pass_data instance and...
20138         (make_pass_insert_vzeroupper): ...new function.
20139         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20140         global struct to a subclass of rtl_opt_pass along with...
20141         (pass_data_work_around_errata): ...new pass_data instance and...
20142         (make_pass_work_around_errata): ...new function.
20143         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20144         struct to a subclass of rtl_opt_pass along with...
20145         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20146         (make_pass_mips_machine_reorg2): ...new function.
20148 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20150         * passes.c (pass_manager::operator new): New.
20152 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20154         Handwritten part of conversion of passes to C++ classes.
20156         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20157         (toplev.o): Add dep on PASS_MANAGER_H.
20158         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20159         of early local pases to reflect this moving from a global to a
20160         member of gcc::pass_manager.
20161         (cgraph_add_new_function): Likewise.
20162         * lto-cgraph.c (lto_output_node): Update for conversion of
20163         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20164         * passes.c (opt_pass::clone): New.
20165         (opt_pass::gate): New.
20166         (opt_pass::execute): New.
20167         (opt_pass::opt_pass): New.
20168         (pass_manager::execute_early_local_passes): New.
20169         (pass_manager::execute_pass_mode_switching): new.
20170         (finish_optimization_passes): Convert to...
20171         (pass_manager::finish_optimization_passes): ...this.
20172         (finish_optimization_passes): Update for conversion of passes to
20173         C++ classes.
20174         (register_dump_files_1): Use has_gate since we cannot portably
20175         check a vtable entry against NULL.
20176         (dump_one_pass): Likewise.
20177         (ipa_write_summaries_2): Likewise.
20178         (ipa_write_optimization_summaries_1): Likewise.
20179         (ipa_read_summaries_1): Likewise.
20180         (ipa_read_optimization_summaries_1): Likewise.
20181         (execute_ipa_stmt_fixups): Likewise.
20182         (pass_manager::pass_manager): Rewrite pass-creation, invoking
20183         pass-creation functions rather than wiring up globals, and
20184         storing the results in fields of pass_manager generated using
20185         pass-instances.def.
20186         (pass_manager::dump_profile_report): Update for conversion of
20187         passes to C++ classes.
20188         (pass_manager::execute_ipa_summary_passes): Likewise.
20189         (execute_one_ipa_transform_pass): Likewise.
20190         (execute_one_pass): Use has_gate and has_execute since we cannot
20191         portably check a vtable entry against NULL.
20192         * pass_manager.h (pass_manager::finish_optimization_passes): New.
20193         (pass_manager): Use pass-instances.def to add fields for the
20194         various pass instances.
20195         * toplev.c (finalize): Update for move of
20196         finish_optimization_passes to a method of gcc::pass_manager.
20197         * toplev.h (finish_optimization_passes): Move to method of class
20198         pass_manager.
20199         * tree-pass.h (struct pass_data): New.
20200         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20201         (opt_pass::gate): Convert to virtual function.
20202         (opt_pass::~opt_pass): New.
20203         (opt_pass::clone): New.
20204         (opt_pass::execute): Convert to virtual function.
20205         (opt_pass::opt_pass): New.
20206         (opt_pass::ctxt_): new.
20207         (gimple_opt_pass): Convert to subclass of opt_pass.
20208         (gimple_opt_pass::gimple_opt_pass): New.
20209         (rtl_opt_pass): Convert to subclass of opt_pass.
20210         (rtl_opt_pass::rtl_opt_pass): New.
20211         (ipa_opt_pass_d): Convert to subclass of opt_pass.
20212         (ipa_opt_pass_d::ipa_opt_pass_d): New.
20213         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20214         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
20215         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
20216         invocation of pass_mode_switching to reflect this moving from a
20217         global to a member of gcc::pass_manager.
20218         (ix86_option_override): Rework how pass_insert_vzeroupper is
20219         added to the pass_manager to reflect autogenerated changes.
20220         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
20222 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
20224         PR rtl-optimization/57708
20225         * recog.c (peep2_find_free_register): Validate all regs in a
20226         multi-reg mode.
20228 2013-08-05  Jan Hubicka  <jh@suse.cz>
20230         PR lto/57602
20231         * cgraph.c (verify_cgraph_node): Accept local flags from other
20232         partitions.
20233         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20234         (function_and_variable_visibility): Likewise.
20235         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20237 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20239         * graph.c (init_graph_slim_pretty_print): Remove.
20240         (print_graph_cfg): Do not call it.  Use local pretty printer.
20241         (start_graph_dump): Likewise.
20243 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20245         * gimple-pretty-print.c (buffer): Remove.
20246         (initialized): Likewise.
20247         (maybe_init_pretty_print): Likewise.
20248         (print_gimple_stmt): Do not call it.  Use non-static local
20249         pretty_printer variable.
20250         (print_gimple_expr): Likewise.
20251         (print_gimple_seq): Likewise.
20252         (gimple_dump_bb): Likewise.
20254 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20256         * asan.c (asan_pp): Remove.
20257         (asan_pp_initialized): Likewise.
20258         (asan_pp_initialize): Likewise.
20259         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
20260         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
20261         (asan_add_global): Likewise.
20263 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20265         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
20266         * diagnostic.h (diagnostic_flush_buffer): Adjust.
20267         * pretty-print.c (pp_formatted_text_data): Likewise.
20268         (pp_indent): Rename from pp_base_indent.
20269         (pp_format): Rename from pp_base_format.
20270         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20271         (pp_format_verbatim): Rename from pp_base_format_verbatim.
20272         (pp_flush): Rename from pp_base_flush.
20273         (pp_set_line_maximum_length): Rename from
20274         pp_base_set_line_maximum_length.
20275         (pp_clear_output_area): Rename from pp_base_clear_output_area.
20276         (pp_set_prefix): Rename from pp_base_set_prefix.
20277         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
20278         (pp_emit_prefix): Rename from pp_base_emit_prefix.
20279         (pp_append_text): Rename from pp_base_append_text.
20280         (pp_formatted_text): Rename from pp_base_formatted_text.
20281         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
20282         (pp_remaining_character_count_for_line): Rename from
20283         pp_base_remaining_character_count_for_line.
20284         (pp_newline): Rename from pp_base_newline.
20285         (pp_character): Rename from pp_base_character.
20286         (pp_string): Rename from pp_base_string.
20287         (pp_maybe_space): Rename from pp_base_maybe_space.
20288         * asan.c (asan_pp_string): Adjust.
20289         (asan_emit_stack_protection): Likewise.
20290         (asan_add_global): Likewise.
20291         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
20292         * tree-mudflap.c (mf_varname_tree): Likewise.
20293         * tree-pretty-print.c (pp_tree_identifier): Rename from
20294         pp_base_tree_identifier.
20295         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
20296         Declare as function.
20298 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20300         * pretty-print.h (pp_bar_bar): New.
20301         (pp_ampersand_ampersand): Likewise.
20302         (pp_less_equal): Likewise.
20303         (pp_greater_equal): Likewise.
20304         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
20305         printer functions instead of pp_string or operators and punctuators.
20306         (dump_gimple_call): Likewise.
20307         (dump_gimple_omp_for): Likewise.
20308         (dump_gimple_transaction): Likewise.
20309         (dump_gimple_phi): Likewise.
20310         (pp_gimple_stmt_1): Likewise.
20311         * sched-vis.c (print_insn): Likewise.
20312         * tree-mudflap.c (mf_varname_tree): Likewise.
20313         * tree-pretty-print.c (dump_block_node): Likewise.
20314         (dump_generic_node): Likewise.
20316 2013-08-02  Jan Hubicka  <jh@suse.cz>
20318         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
20319         boundaries.
20320         * lto-streamer-out.c (tree_is_indexable): Results decls and
20321         parm decls are not indexable.
20322         (DFS_write_tree_body): Do not follow args and results.
20323         (hash_tree): Likewise.
20324         (output_functions): Rearrange so struct function is needed
20325         only when real body is output; be able to also ouptut abstract
20326         functions; output DECL_ARGUMENTS and DECL_RESULT.
20327         (lto_output): When not in WPA, ale store abstract functions.
20328         (write_symbol): Do not care about RESULT_DECL.
20329         (output_symbol_p): Handle correctly sbtract decls.
20330         * lto-streamer-in.c (input_function): Rearrange so struct
20331         function can be NULL at entry; allow streaming of
20332         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
20333         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
20334         sanity check during LTO.
20335         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
20336         RESULT_DECl and DECL_ARGUMENTS.
20337         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20338         Likewise.
20340 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20342         * pretty-print.h (pp_underscore): New.
20343         (pp_comma): Tidy.
20344         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
20345         printer functions instead of pp_character.
20346         (dump_binary_rhs): Likewise.
20347         (dump_ternary_rhs): Likewise.
20348         (dump_gimple_call_args): Likewise.
20349         (pp_points_to_solution): Likewise.
20350         (dump_gimple_call): Likewise.
20351         (dump_gimple_switch): Likewise.
20352         (dump_gimple_cond): Likewise.
20353         (dump_gimple_bind): Likewise.
20354         (dump_gimple_try): Likewise.
20355         (dump_gimple_omp_for): Likewise.
20356         (dump_gimple_omp_continue): Likewise.
20357         (dump_gimple_omp_single): Likewise.
20358         (dump_gimple_omp_sections): Likewise.
20359         (dump_gimple_omp_block): Likewise.
20360         (dump_gimple_omp_critical): Likewise.
20361         (dump_gimple_transaction): Likewise.
20362         (dump_gimple_asm): Likewise.
20363         (dump_gimple_phi): Likewise.
20364         (dump_gimple_omp_parallel): Likewise.
20365         (dump_gimple_omp_task): Likewise.
20366         (dump_gimple_omp_atomic_load): Likewise.
20367         (dump_gimple_omp_atomic_store): Likewise.
20368         (dump_gimple_mem_ops): Likewise.
20369         (pp_gimple_stmt_1): Likewise.
20370         (pp_cfg_jump): Likewise.
20371         (dump_implicit_edges): Likewise.
20372         (gimple_dump_bb_for_graph): Likewise.
20373         * graph.c (draw_cfg_node): Likewise.
20374         * langhooks.c (lhd_print_error_function): Likewise.
20375         * sched-vis.c (print_exp): Likewise.
20376         (print_value): Likewise.
20377         (print_pattern): Likewise.
20378         (print_insn): Likewise.
20379         (rtl_dump_bb_for_graph): Likewise.
20380         * tree-pretty-print.c (dump_function_declaration): Likewise.
20381         (dump_array_domain): Likewise.
20382         (dump_omp_clause): Likewise.
20383         (dump_location): Likewise.
20384         (dump_generic_node): Likewise.
20385         (print_struct_decl): Likewise.
20386         * diagnostic.c (diagnostic_show_locus): Use pp_space.
20388 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20390         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
20391         candidate table when replacing a candidate statement.
20392         (replace_rhs_if_not_dup): Likewise.
20393         (replace_one_candidate): Likewise.
20395 2013-08-02  Jan Hubicka  <jh@suse.cz>
20396             Martin Liska  <marxin.liska@gmail.com>
20398         * cgraphunit.c (add_new_function): Fix logic when adding from
20399         late IPA pass.
20400         (assemble_thunk): Rename to ...
20401         (expand_thunk); .. this one; export; get it working with
20402         general functions; make produced gimple valid.
20403         * cgraph.h (expand_thunk): Declare.
20405 2013-08-02  Jan Hubicka  <jh@suse.cz>
20407         * ipa-cp.c (gather_context_independent_values): Use
20408         ipa_get_param_move_cost.
20409         (get_replacement_map): Remove PARAM; move parameter folding
20410         into tree-inline.c
20411         (create_specialized_node): Update.
20412         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
20413         assert that we have gimple body; update move_cost.
20414         (count_formal_params): Assert that we have gimple body.
20415         (ipa_dump_param): New function.
20416         (ipa_alloc_node_params): Break out from ...
20417         (ipa_initialize_node_params): ... here.
20418         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
20419         (ipa_write_node_info): Stream move costs.
20420         (ipa_read_node_info): Read move costs.
20421         (ipa_update_after_lto_read): Do not recompute node params.
20422         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
20423         (ipa_get_param): Check we are not in WPA.
20424         (ipa_get_param_move_cost): New.
20425         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
20426         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
20427         parm numbers to be present.
20429 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
20431         PR rtl-optimization/58048
20432         * lra-constraints.c (process_alt_operands): Don't check asm
20433         operand on register.
20435 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
20437         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
20438         the implied StoreLoad barrier for atomic operations if before.
20440 2013-08-02  Jan Hubicka  <jh@suse.cz>
20441             Martin Liska  <marxin.liska@gmail.com>
20443         * cgraph.c (cgraph_function_body_availability): Do not check
20444         cgraph flags.
20445         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
20446         symtab_node_availability): Declare.
20447         * ipa.c (can_replace_by_local_alias): New.
20448         (function_and_variable_visibility): Use it.
20449         * symtab.c (symtab_for_node_and_aliases,
20450         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
20452 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
20454         PR rtl-optimization/57963
20455         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
20456         (lra_constraints): Use them.
20458 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
20460         * config/arm/types.md (define_attr "type"): Add "load_acq"
20461         and "store_rel".
20462         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
20463         changes.
20464         (cortex_a53_store1): Likewise.
20466 2013-08-01  Jan Hubicka  <jh@suse.cz>
20468         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
20469         partitions are not needed.
20471 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
20473         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
20474         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
20475         MAYBE_NON_Q_CLASS_P where appropriate.
20477 2013-08-01  Jan Hubicka  <jh@suse.cz>
20479         * cgraph.h (release_function_body): Declare.
20480         * tree.c (free_lang_data_in_decl): Free, parameters and return values
20481         of unused delcarations.
20483 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20485         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
20486         RTL form when subtracting a constant.
20488 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20490         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
20491         Generate canonical plus rtx with negated immediate instead of minus
20492         where appropriate.
20493         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
20495 2013-08-01  Jan Hubicka  <jh@suse.cz>
20497         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
20498         (cgraph_release_function_body): Likewise.
20499         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
20500         * cgraph.h (cgrpah_node): Rename abstract_and_needed
20501         to used_as_abstract_origin.
20502         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
20503         symbols used as abstract origins.
20504         * cgraphunit.c (analyze_functions): Update.
20505         * ipa.c (symtab_remove_unreachable_nodes): Recompute
20506         used_as_abstract_origin.
20507         * tree-inline.c (tree_function_versioning): Update
20508         used_as_abstract_origin; be ready for DECL_RESULT and
20509         DECL_ARGUMENTS to be NULL.
20511         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
20512         for abstract functions.
20513         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
20514         real symbols.
20516 2013-08-01  Jan Hubicka  <jh@suse.cz>
20518         * profile.c (compute_value_histograms): Fix thinko.
20520 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
20522         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
20523         aarch-common-protos.h to extra_headers.
20524         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20525         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
20526         * config/aarch64/t-aarch64 (aarch-common.o): Define.
20528 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
20530         * config/aarch64/aarch64.md (define_attr "type"): Delete.
20531         Include "../arm/types.md".  Define "type" attribute for all patterns.
20532         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
20533         attribute changes.
20535 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
20537         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
20538         to support power8 load fusion.
20539         (fusion_gpr_mem_load): Likewise.
20541         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
20543         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
20544         declarations for power8 load fusion.
20545         (emit_fusion_gpr_load): Likewise.
20547         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20548         tuning for power8, turn on fusion mode by default.  Turn on sign
20549         extending fusion mode if normal fusion mode is on, and we are at
20550         -O2 or -O3.
20551         (fusion_gpr_load_p): New function, return true if we can fuse an
20552         addis instruction with a dependent load to a GPR.
20553         (emit_fusion_gpr_load): Emit the instructions for power8 load
20554         fusion to GPRs.
20556         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
20557         (VSX load fusion peepholes): New peepholes to fuse together an
20558         addi instruction with a VSX load instruction.
20560         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
20561         peepholes to fuse an addis instruction with a load to a GPR base
20562         register.  If we are supporting sign extending fusions, convert
20563         sign extending loads to zero extending loads and add an explicit
20564         sign extension.
20566 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
20568         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
20569         aarch-common-protos.h to extra_headers.
20570         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20571         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
20572         (arm_early_store_addr_dep): Likewise.
20573         (arm_no_early_alu_shift_dep): Likewise.
20574         (arm_no_early_alu_shift_value_dep): Likewise.
20575         (arm_no_early_mul_dep): Likewise.
20576         (arm_no_early_store_addr_dep): Likewise.
20577         (arm_mac_accumulator_is_mul_result): Likewise.
20578         (arm_mac_accumulator_is_result): Likewise.
20579         * config/arm/aarch-common.c: ... here.  New file.
20580         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
20581         here to ...
20582         (arm_early_store_addr_dep): Likewise.
20583         (arm_no_early_alu_shift_dep): Likewise.
20584         (arm_no_early_alu_shift_value_dep): Likewise.
20585         (arm_no_early_mul_dep): Likewise.
20586         (arm_no_early_store_addr_dep): Likewise.
20587         (arm_mac_accumulator_is_mul_result): Likewise.
20588         (arm_mac_accumulator_is_result): Likewise.
20589         * config/arm/aarch-common-protos.h: ... here.  New file.
20590         * config/arm/t-arm (aarch-common.o): Define.
20592 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
20594         * config/arm/arm.md: Include new file "types.md".
20595         (define_attr "type"): Move from here to ...
20596         (define_attr "mul32"): Likewise.
20597         (define_attr "mul64"): Likewise.
20598         * config/arm/types.md: ... here.  New file.
20600 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20602         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
20603         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
20605 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20607         * gen-pass-instances.awk: Fix offset of substr().
20609 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
20611         * Makefile.in (pass-instances.def): New.
20612         (passes.o): Replace dependency on passes.def with one on
20613         pass-instances.def
20615         * gen-pass-instances.awk: New.
20617         * passes.c (pass_manager::pass_manager): Use pass-instances.def
20618         rather than passes.def, updating local definition of NEXT_PASS
20619         macro to add an extra NUM parameter (currently unused).
20621 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
20623         * Makefile.in (PASS_MANAGER_H): New.
20624         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
20625         (passes.o): Likewise.
20626         (statistics.o): Likewise.
20627         (cgraphunit.o): Likewise.
20628         (context.o): Depend on PASS_MANAGER_H.
20630         * pass_manager.h: New.
20632         * cgraphunit.c (cgraph_add_new_function): Update for moves
20633         of globals to fields of pass_manager.
20634         (analyze_function): Likewise.
20635         (expand_function): Likewise.
20636         (ipa_passes): Likewise.
20637         (compile): Likewise.
20639         * context.c (context::context): New.
20640         * context.h  (context::context): New.
20641         (context::get_passes): New.
20642         (context::passes_): New.
20644         * lto-cgraph.c (input_node): Update for moves of globals to
20645         fields of pass_manager.
20647         * passes.c (all_passes): Remove, in favor of a field of the
20648         same name within the new class pass_manager.
20649         (all_small_ipa_passes): Likewise.
20650         (all_lowering_passes): Likewise.
20651         (all_regular_ipa_passes): Likewise.
20652         (all_late_ipa_passes): Likewise.
20653         (all_lto_gen_passes): Likewise.
20654         (passes_by_id): Likewise.
20655         (passes_by_id_size): Likewise.
20656         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20657         the new class pass_manager.
20658         (set_pass_for_id): Convert to...
20659         (pass_manager::set_pass_for_id): ...method.
20660         (get_pass_for_id): Convert to...
20661         (pass_manager::get_pass_for_id): ...method.
20662         (register_one_dump_file): Move body of implementation into...
20663         (pass_manager::register_one_dump_file): ...here.
20664         (register_dump_files_1): Convert to...
20665         (pass_manager::register_dump_files_1): ...method.
20666         (register_dump_files): Convert to...
20667         (pass_manager::register_dump_files): ...method.
20668         (create_pass_tab): Update for moves of globals to fields of
20669         pass_manager.
20670         (dump_passes): Move body of implementation into...
20671         (pass_manager::dump_passes): ...here.
20672         (register_pass): Move body of implementation into...
20673         (pass_manager::register_pass): ...here.
20674         (init_optimization_passes): Convert into...
20675         (pass_manager::pass_manager): ...constructor for new
20676         pass_manager class, and initialize the pass_lists array.
20677         (check_profile_consistency): Update for moves of globals to
20678         fields of pass_manager.
20679         (dump_profile_report): Move body of implementation into...
20680         (pass_manager::dump_profile_report): ...here.
20681         (ipa_write_summaries_1): Update for moves of pass lists from
20682         being globals to fields of pass_manager.
20683         (ipa_write_optimization_summaries): Likewise.
20684         (ipa_read_summaries):  Likewise.
20685         (ipa_read_optimization_summaries): Likewise.
20686         (execute_all_ipa_stmt_fixups): Likewise.
20688         * statistics.c (statistics_fini): Update for moves of globals to
20689         fields of pass_manager.
20691         * toplev.c (general_init): Replace call to
20692         init_optimization_passes with construction of the pass_manager
20693         instance.
20695         * tree-pass.h (all_passes): Remove, in favor of a field of the
20696         same name within the new class pass_manager.
20697         (all_small_ipa_passes): Likewise.
20698         (all_lowering_passes): Likewise.
20699         (all_regular_ipa_passes): Likewise.
20700         (all_lto_gen_passes): Likewise.
20701         (all_late_ipa_passes): Likewise.
20702         (passes_by_id): Likewise.
20703         (passes_by_id_size): Likewise.
20704         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20705         the new class pass_manager.
20706         (get_pass_for_id): Remove.
20708 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
20710         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
20711         configs.
20713 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
20715         * arm.md (mulhi3): New expand pattern.
20717 2013-07-30  Jan Hubicka  <jh@suse.cz>
20718             Martin Liska  <marxin.liska@gmail.com>
20720         * profile.c (compute_value_histograms): Do not ICE when
20721         there is mismatch only on some counters.
20723 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20725         PR rtl-optimization/57637
20726         * function.c (move_insn_for_shrink_wrap): Also check the
20727         GEN set of the LIVE problem for the liveness analysis
20728         if it exists, otherwise give up.
20730 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20732         PR tree-optimization/57993
20733         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
20734         replaced statement in the candidate table.
20735         (phi_add_costs): Return infinite cost when the hidden basis does
20736         not dominate all phis on which the candidate is dependent.
20737         (replace_one_candidate): Record replaced statement in the
20738         candidate table.
20740 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
20742         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
20743         (ashlv2si3): New expander.
20744         (*ashlv2si3_i): New define_insn_and_split.
20745         * predicates.md (float_operation): Allow patterns with three
20746         basic sub-patterns.
20748         PR rtl-optimization/58021
20749         * mode-switching.c (create_pre_exit): Always split off preceding
20750         insns if we are not at the basic block head.
20752 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
20754         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
20755         (UCLIBC_DYNAMIC_LINKER): New macro.
20756         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
20757         `-mnan=2008'.
20758         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
20759         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
20760         `-mnan=2008'.
20761         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
20762         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
20763         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
20764         for SF and DF modes.  Use ieee_quad_format for TF mode.
20765         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
20766         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
20767         (mips_option_override): Handle `-mnan=legacy'.
20768         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
20769         `-mabs=2008' and `-mnan=2008'.
20770         (OPTION_DEFAULT_SPECS): Add "nan" default.
20771         (ASM_SPEC): Handle `-mnan='.
20772         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
20773         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
20774         comment accordingly.
20775         (neg<mode>2): Likewise.
20776         * config/mips/mips.opt (mabs, mnan): New options.
20777         * doc/install.texi (Configuration): Document `--with-nan=' option.
20778         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
20779         `-mnan=' options.
20780         (MIPS Options): Document them.
20781         * config.gcc <mips*-*-*>: Handle `--with-nan='.
20782         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
20783         * configure: Regenerate.
20784         * config.in: Regenerate.
20786 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
20788         * config/i386/i386.md (float post-reload splitters): Do not check
20789         for subregs of SSE registers.
20791 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
20792             H.J. Lu  <hongjiu.lu@intel.com>
20794         PR target/57954
20795         PR target/57988
20796         * config/i386/i386.md (post-reload splitter
20797         to avoid partial SSE reg dependency stalls): New pattern.
20799 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20801         * config/s390/s390.md ("movcc"): Swap load and store instructions.
20803 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
20805         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
20806         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
20808 2013-07-26  Cary Coutant  <ccoutant@google.com>
20810         * dwarf2out.c (die_checksum_ordered): Don't include template
20811         instantiations in signature.
20812         (is_template_parameter): New function.
20813         (is_template_instantiation): New function.
20814         (generate_skeleton_bottom_up): Don't include template instantiations
20815         in type unit DIE.
20816         (generate_skeleton): Likewise.
20817         (break_out_comdat_types): Move recursive call to break out nested
20818         types earlier.
20819         (prune_unused_types_mark_generic_parms_dies): Call
20820         is_template_parameter.
20822 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
20824         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
20825         uses vector registers.
20826         * config/aarch64/iterators.md: Add attributes rtn and vas.
20828 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20829             Richard Earnshaw  <richard.earnshaw@arm.com>
20831         * combine.c (simplify_comparison): Re-canonicalize operands
20832         where appropriate.
20833         * config/arm/arm.md (movcond_addsi): New splitter.
20835 2013-07-25  Sterling Augustine  <saugustine@google.com>
20837         * dwarf2out.c (size_of_pubnames): Move code to...
20838         (include_pubname_in_output): ...here.  New.
20839         (want_pubnames): Rearrange.
20840         (output_pubnames): Call include_pubname_in_output.  Move assertion.
20842 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
20844         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
20846 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
20848         PR target/38836
20849         * doc/extend.texi: Remove obsolete builtins. Fix
20850         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
20852 2013-07-25  Jan Hubicka  <jh@suse.cz>
20854         * cgraph.c (release_function_body): Break out from ...
20855         (cgraph_release_function_body): ... this one; also release DECL_RESULT
20856         and DECL_ARGUMENTS.
20857         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
20858         old_tree in the map.
20859         (create_specialized_node): Update.
20860         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
20861         into index.
20862         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
20863         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
20864         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
20865         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
20866         DECL_RESULT.
20868 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20870         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
20871         addsi3_carryin_alt2_<optab>): Correct output template.
20873 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20875         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
20876         Adjust for arm_restrict_it.
20877         Remove trailing whitespace.
20879 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
20881         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
20882         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
20884         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
20886 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
20888         PR rtl-optimization/57960
20889         * lra-constraints.c (process_alt_operands): Use the right mode
20890         when checking strict_low.
20892 2013-07-25  Jan Hubicka  <jh@suse.cz>
20894         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
20895         * cgraph.c (cgraph_remove_node): Do not release function body
20896         when in cgraph streaming.
20897         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
20898         in other partitions are not considered reachable; fix handling of
20899         clones.
20901 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20903         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
20905 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20907         PR target/19599
20908         PR target/57731
20909         PR target/57837
20910         * config/arm/arm.md ("*sibcall_insn): Replace use of
20911         Ss with US. Adjust output for v5 and v4t.
20912         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
20914         * config/arm/constraints.md ("Ss"): Rename to US.
20916 2013-07-25  Terry Guo  <terry.guo@arm.com>
20918         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
20919         shift_add/shift_sub0/shift_sub1 RTXs.
20921 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
20922             Anton Blanchard  <anton@au1.ibm.com>
20924         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
20925         (altivec_vpks<VI_char>ss): Likewise.
20926         (altivec_vpks<VI_char>us): Likewise.
20927         (altivec_vpku<VI_char>us): Likewise.
20928         (altivec_vpku<VI_char>um): Likewise.
20930 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
20932         Introduce context class.
20934         * Makefile.in (CONTEXT_H): New.
20935         (OBJS): Add context.o.
20936         (toplev.o): Add CONTEXT_H to dependencies.
20937         (context.o): New.
20939         * toplev.c (general_init): Create the singleton gcc::context instance.
20941         * context.c: New.
20943         * context.h: New.
20945 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
20947         PR rtl-optimization/57968
20948         * mode-switching.c (create_pre_exit): Allow instructions that
20949         don't set a return register to need a non-exit mode.
20951 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20952             Anton Blanchard  <anton@au1.ibm.com>
20954         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
20955         operands to vperm for little endian.
20956         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
20957         of lvsl to create the control mask for a vperm for little endian.
20959 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20960             Anton Blanchard  <anton@au1.ibm.com>
20962         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
20963         two operands for little-endian.
20965 2013-07-23  Steve Ellcey  <sellcey@mips.com>
20967         * config/mips/mips.c (mips_case_values_threshold): New.
20968         (TARGET_CASE_VALUES_THRESHOLD): Define.
20970 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20971             Anton Blanchard  <anton@au1.ibm.com>
20973         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
20974         selection of field for vector splat in little endian mode.
20976 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
20978         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
20979         expanders to rs6000.md.
20980         (ior<mode>3): Likewise.
20981         (and<mode>3): Likewise.
20982         (one_cmpl<mode>2): Likewise.
20983         (nor<mode>3): Likewise.
20984         (andc<mode>3): Likewise.
20985         (eqv<mode>3): Likewise.
20986         (nand<mode>3): Likewise.
20987         (orc<mode>3): Likewise.
20989         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
20990         declaration.
20992         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
20993         to split multi-word logical operations.
20994         (rs6000_split_logical_di): Likewise.
20995         (rs6000_split_logical): Likewise.
20997         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
20998         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
20999         and allow TImode operations in 32-bit.
21000         (vsx_and<mode>3_64bit): Likewise.
21001         (vsx_ior<mode>3_32bit): Likewise.
21002         (vsx_ior<mode>3_64bit): Likewise.
21003         (vsx_xor<mode>3_32bit): Likewise.
21004         (vsx_xor<mode>3_64bit): Likewise.
21005         (vsx_one_cmpl<mode>2_32bit): Likewise.
21006         (vsx_one_cmpl<mode>2_64bit): Likewise.
21007         (vsx_nor<mode>3_32bit): Likewise.
21008         (vsx_nor<mode>3_64bit): Likewise.
21009         (vsx_andc<mode>3_32bit): Likewise.
21010         (vsx_andc<mode>3_64bit): Likewise.
21011         (vsx_eqv<mode>3_32bit): Likewise.
21012         (vsx_eqv<mode>3_64bit): Likewise.
21013         (vsx_nand<mode>3_32bit): Likewise.
21014         (vsx_nand<mode>3_64bit): Likewise.
21015         (vsx_orc<mode>3_32bit): Likewise.
21016         (vsx_orc<mode>3_64bit): Likewise.
21018         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21019         logical types in GPRs.
21021         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21022         logical insns to rs6000.md, and allow TImode operations in
21023         32-bit.
21024         (altivec_ior<mode>3): Likewise.
21025         (altivec_xor<mode>3): Likewise.
21026         (altivec_one_cmpl<mode>2): Likewise.
21027         (altivec_nor<mode>3): Likewise.
21028         (altivec_andc<mode>3): Likewise.
21030         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21031         attributes for moving the 128-bit logical operations into
21032         rs6000.md.
21033         (BOOL_REGS_OUTPUT): Likewise.
21034         (BOOL_REGS_OP1): Likewise.
21035         (BOOL_REGS_OP2): Likewise.
21036         (BOOL_REGS_UNARY): Likewise.
21037         (BOOL_REGS_AND_CR0): Likewise.
21038         (one_cmpl<mode>2): Add support for DI logical operations on
21039         32-bit, splitting the operations to 32-bit.
21040         (anddi3): Likewise.
21041         (iordi3): Likewise.
21042         (xordi3): Likewise.
21043         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21044         changes to combine the 32/64-bit code, allow logical operations on
21045         TI mode in 32-bit, and to use similar match_operator patterns like
21046         scalar mode uses.  Combine the Altivec and VSX code for logical
21047         operations, and move it here.
21048         (ior<mode>3, 128-bit types): Likewise.
21049         (xor<mode>3, 128-bit types): Likewise.
21050         (one_cmpl<mode>3, 128-bit types): Likewise.
21051         (nor<mode>3, 128-bit types): Likewise.
21052         (andc<mode>3, 128-bit types): Likewise.
21053         (eqv<mode>3, 128-bit types): Likewise.
21054         (nand<mode>3, 128-bit types): Likewise.
21055         (orc<mode>3, 128-bit types): Likewise.
21056         (and<mode>3_internal): Likewise.
21057         (bool<mode>3_internal): Likewise.
21058         (boolc<mode>3_internal1): Likewise.
21059         (boolc<mode>3_internal2): Likewise.
21060         (boolcc<mode>3_internal1): Likewise.
21061         (boolcc<mode>3_internal2): Likewise.
21062         (eqv<mode>3_internal1): Likewise.
21063         (eqv<mode>3_internal2): Likewise.
21064         (one_cmpl1<mode>3_internal): Likewise.
21066 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21068         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21069         Rename flag_stack_usage to flag_stack_usage_info.
21071 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21073         * config/microblaze/sync.md: New file.
21074         * config/microblaze/microblaze.md: Include sync.md
21075         * config/microblaze/microblaze.c: Add print_operand 'y'.
21076         * config/microblaze/constraints.md: Add memory_contraint
21077         'Q' which is a single register.
21079 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
21081         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21083 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21085         * reload.c (find_reloads): Exit loop once we find this operand
21086         cannot be reloaded somehow for this alternative.
21088         * reload.c (find_reloads): Exit loop once we find a hard register.
21090         * rtlanal.c (computed_jump_p): Exit loop once we find label
21091         reference is used.
21093         * i386.c (ix86_pad_returns): Exit loop after setting replace.
21095         * cfgloopmanip.c (remove_path): Exit loop after setting
21096         irred_invalidated.
21098         * gensupport.c (subst_dup): Avoid loop if code is not
21099         MATCH_DUP nor MATCH_OP_DUP.
21101 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
21103         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21105 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21107         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21108         true for SP_REGNUM if mode == ptr_mode.
21109         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21110         with value R0_REGNUM + 31.
21112 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21114         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21115         pad pointer-typed argument downward.
21117 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21119         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21120         and __ILP32__ when the ILP32 model is in use.
21122 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21124         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21125         (aarch64_load_symref_appropriately): In the case of
21126         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21127         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21128         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21129         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21130         if 'mode' doesn't equal to 'ptr_mode'.
21131         (aarch64_output_mi_thunk): Add an assertion on the alignment of
21132         'vcall_offset'; change to call aarch64_emit_move differently depending
21133         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21134         to calculate the upper bound of 'vcall_offset'.
21135         (aarch64_cannot_force_const_mem): Change to also return true if
21136         mode != ptr_mode.
21137         (aarch64_legitimize_reload_address): In the case of large
21138         displacements, add new local variable 'xmode' and an assertion
21139         based on it; change to use 'xmode' to generate the new rtx and
21140         reload.
21141         (aarch64_asm_trampoline_template): Change to generate the template
21142         differently depending on TARGET_ILP32 or not; change to use
21143         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21144         (aarch64_trampoline_size): Removed.
21145         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21146         and replace immediate literals with it.  Change to use 'ptr_mode'
21147         instead of 'DImode' and call convert_memory_address if the mode
21148         of 'fnaddr' doesn't equal to 'ptr_mode'.
21149         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21150         to output symbol.
21151         (aarch64_elf_asm_destructor): Likewise.
21152         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21153         on TARGET_ILP32 instead of aarch64_trampoline_size.
21154         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21155         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21156         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21157         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
21158         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21159         (storewb_pair<GPI:mode>_<P:mode>): ... this.
21160         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21161         depending on the value of 'mode'.
21162         (add_losym_<mode>): New.
21163         (ldr_got_small_<mode>): New, based on ldr_got_small.
21164         (ldr_got_small): Remove.
21165         (ldr_got_small_sidi): New.
21166         * config/aarch64/iterators.md (P): New.
21167         (PTR): Change to 'ptr_mode' in the condition.
21169 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21171         * config.gcc (aarch64*-*-*): Support --with-abi.
21172         (aarch64*-*-elf): Support --with-multilib-list.
21173         (aarch64*-*-linux*): Likewise.
21174         (supported_defaults): Add abi to aarch64*-*-*.
21175         * configure.ac: Mention AArch64 for --with-multilib-list.
21176         * configure: Re-generated.
21177         * config/aarch64/biarchilp32.h: New file.
21178         * config/aarch64/biarchlp64.h: New file.
21179         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21180         (ABI_SPEC): Ditto.
21181         (MULTILIB_DEFAULTS): Ditto.
21182         (DRIVER_SELF_SPECS): Ditto.
21183         (ASM_SPEC): Update to also substitute -mabi.
21184         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21185         file whose name depends on -mabi= and -mbig-endian.
21186         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21187         TARGET_ILP32.
21188         (POINTER_SIZE): New define.
21189         (POINTERS_EXTEND_UNSIGNED): Ditto.
21190         (enum aarch64_abi_type): New enumeration tag.
21191         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21192         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21193         (TARGET_ILP32): New define.
21194         * config/aarch64/aarch64.opt (mabi): New.
21195         (aarch64_abi): New.
21196         (ilp32, lp64): New values for -mabi.
21197         * config/aarch64/t-aarch64 (comma): New define.
21198         (MULTILIB_OPTIONS): Ditto.
21199         (MULTILIB_DIRNAMES): Ditto.
21200         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21201         * doc/invoke.texi: Document -mabi for AArch64.
21203 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
21205         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21207 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21208             Anton Blanchard  <anton@au1.ibm.com>
21210         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21211         endianness when selecting field to splat.
21213 2013-07-22  Eric Christopher  <echristo@gmail.com>
21215         * dwarf2out.c (die_odr_checksum): New function to use
21216         CHECKSUM_ macros and ULEB128 for DIE tag.
21217         (generate_type_signature): Use.
21219 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
21221         * config.gcc (sparc*-*-*): Accept leon3 processor.
21222         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
21223         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
21224         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
21225         * config/sparc/sparc.opt (enum processor_type): Add leon3.
21226         (mfix-ut699): Adjust comment.
21227         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
21228         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
21229         (CPP_CPU_SPEC): Likewise.
21230         (ASM_CPU_SPEC): Likewise.
21231         * config/sparc/sparc.c (leon3_cost): New constant.
21232         (sparc_option_override): Add leon3 support.
21233         (mem_ref): New function.
21234         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21235         (sparc_do_work_around_errata): Look into the instruction in the delay
21236         slot and adjust accordingly.  Add fix for the data cache nullify issues
21237         of the UT699.  Change insertion position for the NOP.
21238         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21239         (leon3_load): New reservation.
21240         (leon_store): Bump latency to 2.
21241         (grfpu): New automaton.
21242         (grfpu_alu): New unit.
21243         (grfpu_ds): Likewise.
21244         (leon_fp_alu): Adjust.
21245         (leon_fp_mult): Delete.
21246         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21247         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21248         * config/sparc/sparc.md (cpu): Add leon3.
21249         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21250         (swapsi): Likewise.
21251         (atomic_test_and_set): Likewise.
21252         (ldstub): Likewise.
21254 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
21256         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
21257         default for R5900 targets.
21258         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21259         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21260         * config/mips/mips.c (mips_option_override): Report an error for
21261         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
21262         for -march=r5900 -mhard-float.
21264 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21266         * df-problems.c (can_move_insns_across): Exit loop once we
21267         find a non-fixed, non-global register.
21269         * ipa-pure-const.c (propagate_nothrow): Exit loop after
21270         setting can_throw.
21272         * omega.c (omega_eliminate_red): Break after setting red_found.
21273         (omega_problem_has_red_equations): Similarly after setting found.
21274         (omega_query_variable): Similarly after setting coupled.
21276 2013-07-22  Marek Polacek  <polacek@redhat.com>
21278         * gimplify.c: Don't include gimple.h twice.
21280 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21282         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
21283         instead of TARGET_THUMB1.
21284         (Pz): New constraint.
21285         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
21286         encodings.
21287         (compare_negsi_si): Likewise.
21288         (compare_addsi2_op0): Likewise.
21289         (compare_addsi2_op1): Likewise.
21290         (addsi3_carryin_<optab>): Likewise.
21291         (addsi3_carryin_alt2_<optab>): Likewise.
21292         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
21293         for arm_restrict_it.
21294         (subsi3_carryin): Likewise.
21295         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
21296         (minmax_arithsi): Disable for arm_restrict_it.
21297         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
21298         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
21299         (satsi_<SAT:code>_shift): Likewise.
21300         (arm_shiftsi3): Add alternative for 16-bit encoding.
21301         (arm32_movhf): Disable for arm_restrict_it.
21302         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
21303         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
21305 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
21307         * config/arm/arm.md (attribute "insn"): Delete.
21308         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
21309         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
21310         (not_shiftsi): Update for attribute change.
21311         (not_shiftsi_compare0): Likewise.
21312         (not_shiftsi_compare0_scratch): Likewise.
21313         (arm_one_cmplsi2): Likewise.
21314         (thumb1_one_cmplsi2): Likewise.
21315         (notsi_compare0): Likewise.
21316         (notsi_compare0_scratch): Likewise.
21317         (thumb1_movdi_insn): Likewise.
21318         (arm_movsi_insn): Likewise.
21319         (movhi_insn_arch4): Likewise.
21320         (movhi_bytes): Likewise.
21321         (arm_movqi_insn): Likewise.
21322         (thumb1_movqi_insn): Likewise.
21323         (arm32_movhf): Likewise.
21324         (thumb1_movhf): Likewise.
21325         (arm_movsf_soft_insn): Likewise.
21326         (thumb1_movsf_insn): Likewise.
21327         (thumb_movdf_insn): Likewise.
21328         (movsicc_insn): Likewise.
21329         (movsfcc_soft_insn): Likewise.
21330         (and_scc): Likewise.
21331         (cond_move): Likewise.
21332         (if_move_not): Likewise.
21333         (if_not_move): Likewise.
21334         (if_shift_move): Likewise.
21335         (if_move_shift): Likewise.
21336         (if_shift_shift): Likewise.
21337         (if_not_arith): Likewise.
21338         (if_arith_not): Likewise.
21339         (cond_move_not): Likewise.
21340         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
21341         (neon_mov<mode>): Likewise.
21342         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
21343         (thumb2_movsi_vfp): Likewise.
21344         (movsf_vfp): Likewise.
21345         (thumb2_movsf_vfp): Likewise.
21346         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21347         change.
21348         (cortexa7_older_only): Likewise.
21349         (cortexa7_younger): Likewise.
21350         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
21351         (1020alu_shift_op): Likewise.
21352         (1020alu_shift_reg_op): Likewise.
21353         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
21354         (alu_shift_op): Likewise.
21355         (alu_shift_reg_op): Likewise.
21356         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
21357         (11_alu_shift_op): Likewise.
21358         (11_alu_shift_reg_op): Likewise.
21359         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
21360         (9_alu_shift_reg_op): Likewise.
21361         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21362         change.
21363         (cortex_a15_alu_shift): Likewise.
21364         (cortex_a15_alu_shift_reg): Likewise.
21365         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
21366         (cortex_a5_alu_shift): Likewise.
21367         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
21368         change.
21369         (cortex_a53_alu_shift): Likewise.
21370         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21371         change.
21372         (cortex_a7_alu_reg): Likewise.
21373         (cortex_a7_alu_shift): Likewise.
21374         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21375         (cortex_a8_alu_shift): Likewise.
21376         (cortex_a8_alu_shift_reg): Likewise.
21377         (cortex_a8_mov): Likewise.
21378         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
21379         (cortex_a9_dp_shift): Likewise.
21380         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
21381         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
21382         (cortex_r4_mov): Likewise.
21383         (cortex_r4_alu_shift): Likewise.
21384         (cortex_r4_alu_shift_reg): Likewise.
21385         * config/arm/fa526.md (526_alu_op): Update for attribute change.
21386         (526_alu_shift_op): Likewise.
21387         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
21388         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
21389         (626te_alu_shift_op): Likewise.
21390         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
21391         (726te_alu_op): Likewise.
21392         (726te_alu_shift_op): Likewise.
21393         (726te_alu_shift_reg_op): Likewise.
21394         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
21395         (mp626_alu_shift_op): Likewise.
21396         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
21397         (pj4_alu_e1_conds): Likewise.
21398         (pj4_alu): Likewise.
21399         (pj4_alu_conds): Likewise.
21400         (pj4_shift): Likewise.
21401         (pj4_shift_conds): Likewise.
21402         (pj4_alu_shift): Likewise.
21403         (pj4_alu_shift_conds): Likewise.
21405 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21407         * config/arm/predicates.md (shiftable_operator_strict_it):
21408         New predicate.
21409         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
21410         Disable cond_exec version for arm_restrict_it.
21411         (thumb2_smaxsi3): Convert to generate cond_exec.
21412         (thumb2_sminsi3): Likewise.
21413         (thumb32_umaxsi3): Likewise.
21414         (thumb2_uminsi3): Likewise.
21415         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
21416         (thumb2_neg_abssi2): Likewise.
21417         (thumb2_mov_scc): Add alternative for 16-bit encoding.
21418         (thumb2_movsicc_insn): Adjust alternatives.
21419         (thumb2_mov_negscc): Disable for arm_restrict_it.
21420         (thumb2_mov_negscc_strict_it): New pattern.
21421         (thumb2_mov_notscc_strict_it): New pattern.
21422         (thumb2_mov_notscc): Disable for arm_restrict_it.
21423         (thumb2_ior_scc): Likewise.
21424         (thumb2_ior_scc_strict_it): New pattern.
21425         (thumb2_cond_move): Adjust for arm_restrict_it.
21426         (thumb2_cond_arith): Disable for arm_restrict_it.
21427         (thumb2_cond_arith_strict_it): New pattern.
21428         (thumb2_cond_sub): Adjust for arm_restrict_it.
21429         (thumb2_movcond): Likewise.
21430         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
21431         (thumb2_zero_extendhisi2_v6): Likewise.
21432         (thumb2_zero_extendqisi2_v6): Likewise.
21433         (orsi_notsi_si): Likewise.
21434         (orsi_not_shiftsi_si): Likewise.
21436 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
21438         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
21439         instruction sequence is 1 byte shorter.
21441 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
21443         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
21444         it is not needed after split.
21446 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
21448         PR target/51784
21449         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
21450         second label for nonlocal goto receivers. Don't output pic base labels
21451         unless we're producing PIC; mark that action unreachable().
21452         (ix86_save_reg): If the function contains a nonlocal label, save the
21453         PIC base reg.
21454         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
21455         * config/darwin.c (emitted_pic_label_num): New GTY.
21456         (update_pic_label_number_if_needed): New.
21457         (machopic_output_function_base_name): Adjust for nonlocal receiver
21458         case.
21459         (machopic_should_output_picbase_label): New.
21460         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
21461         (nonlocal_goto_receiver): New insn and split.
21463 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
21465         * config/aarch64/aarch64-builtins.c
21466         (aarch64_fold_builtin): Fold abs in all modes.
21467         * config/aarch64/aarch64-simd-builtins.def
21468         (abs): Enable for all modes.
21469         * config/aarch64/arm_neon.h
21470         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
21471         (vabs_f64): Add missing intrinsic.
21473 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
21475         * config/aarch64/arm_neon.h (vabs_s64): New function
21477 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
21479         PR target/57516
21480         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
21481         * config/avr/avr.md (adjust_len): Add `round'.
21482         * config/avr/avr-protos.h (avr_out_round): New prototype.
21483         (avr_out_plus): Add `out_label' argument.
21484         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
21485         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
21486         Handle the case where `insn' is just a pattern.
21487         (avr_out_bitop): Handle the case where `insn' is just a pattern.
21488         (avr_out_round): New function.
21489         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
21491 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
21493         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21494         Add check for flag_stack_usage to handle -fstack-usage support
21496 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
21498         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
21499         interaction for new Power8 flags and VSX.
21501 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
21503         PR middle-end/57698
21504         * tree-inline.c (expand_call_inline): Emit errors during
21505         early_inlining only if optimization is not turned on.
21507 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21509         * passes.def: New.
21511         * passes.c (init_optimization_passes): Move the construction of
21512         the pass hierarchy into a new passes.def file.
21514         * Makefile.in (passes.o): Add dependency on passes.def.
21516 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21518         * passes.c (init_optimization_passes): Introduce macros for
21519         constructing the tree of passes (INSERT_PASSES_AFTER,
21520         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
21521         TERMINATE_PASS_LIST).
21523 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
21524             Wei Mi  <wmi@google.com>
21526         PR rtl-optimization/57878
21527         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
21528         top.
21529         (reload_pseudo_compare_func): Check nregs first for reload
21530         pseudos.
21532 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21534         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
21536 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
21538         * read-rtl.c (validate_const_int): Once an invalid character is
21539         seen, quit the loop.
21541         * gengtype.c (write_roots): Similarly once we find the "deletable"
21542         or "if_marked" option.
21544 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
21546         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
21547         "xtab" and "sat".  Move value "clz" from here to ...
21548         (attriubte "type"): ... here.
21549         (satsi_<SAT:code>): Delete "insn" attribute.
21550         (satsi_<SAT:code>_shift): Likewise.
21551         (arm_zero_extendqisi2addsi): Likewise.
21552         (arm_extendqisi2addsi): Likewise.
21553         (clzsi2): Update for attribute changes.
21554         (rbitsi2): Likewise.
21555         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
21556         attribute.
21557         (arm_usatsihi): Likewise.
21558         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21560 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
21562         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
21563         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
21564         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
21565         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
21566         in alphabetical order.
21567         (attribute "core_cycles"): Update for attribute changes.
21568         (arm_addsi3): Likewise.
21569         (addsi3_compare0): Likewise.
21570         (addsi3_compare0_scratch): Likewise.
21571         (addsi3_compare_op1): Likewise.
21572         (addsi3_compare_op2): Likewise.
21573         (compare_addsi2_op0): Likewise.
21574         (compare_addsi2_op1): Likewise.
21575         (addsi3_carryin_shift_<optab>): Likewise.
21576         (subsi3_carryin_shift): Likewise.
21577         (rsbsi3_carryin_shift): Likewise.
21578         (arm_subsi3_insn): Likewise.
21579         (subsi3_compare0): Likewise.
21580         (subsi3_compare): Likewise.
21581         (arm_andsi3_insn): Likewise.
21582         (thumb1_andsi3_insn): Likewise.
21583         (andsi3_compare0): Likewise.
21584         (andsi3_compare0_scratch): Likewise.
21585         (zeroextractsi_compare0_scratch
21586         (andsi_not_shiftsi_si): Likewise.
21587         (iorsi3_insn): Likewise.
21588         (iorsi3_compare0): Likewise.
21589         (iorsi3_compare0_scratch): Likewise.
21590         (arm_xorsi3): Likewise.
21591         (thumb1_xorsi3_insn): Likewise.
21592         (xorsi3_compare0): Likewise.
21593         (xorsi3_compare0_scratch): Likewise.
21594         (satsi_<SAT:code>_shift): Likewise.
21595         (rrx): Likewise.
21596         (arm_shiftsi3): Likewise.
21597         (shiftsi3_compare0): Likewise.
21598         (not_shiftsi): Likewise.
21599         (not_shiftsi_compare0): Likewise.
21600         (not_shiftsi_compare0_scratch): Likewise.
21601         (arm_one_cmplsi2): Likewise.
21602         (thumb_one_complsi2): Likewise.
21603         (notsi_compare0): Likewise.
21604         (notsi_compare0_scratch): Likewise.
21605         (thumb1_zero_extendhisi2): Likewise.
21606         (arm_zero_extendhisi2): Likewise.
21607         (arm_zero_extendhisi2_v6): Likewise.
21608         (arm_zero_extendhisi2addsi): Likewise.
21609         (thumb1_zero_extendqisi2): Likewise.
21610         (thumb1_zero_extendqisi2_v6): Likewise.
21611         (arm_zero_extendqisi2): Likewise.
21612         (arm_zero_extendqisi2_v6): Likewise.
21613         (arm_zero_extendqisi2addsi): Likewise.
21614         (thumb1_extendhisi2): Likewise.
21615         (arm_extendhisi2): Likewise.
21616         (arm_extendhisi2_v6): Likewise.
21617         (arm_extendqisi): Likewise.
21618         (arm_extendqisi_v6): Likewise.
21619         (arm_extendqisi2addsi): Likewise.
21620         (thumb1_extendqisi2): Likewise.
21621         (thumb1_movdi_insn): Likewise.
21622         (arm_movsi_insn): Likewise.
21623         (movsi_compare0): Likewise.
21624         (movhi_insn_arch4): Likewise.
21625         (movhi_bytes): Likewise.
21626         (arm_movqi_insn): Likewise.
21627         (thumb1_movqi_insn): Likewise.
21628         (arm32_movhf): Likewise.
21629         (thumb1_movhf): Likewise.
21630         (arm_movsf_soft_insn): Likewise.
21631         (thumb1_movsf_insn): Likewise.
21632         (movdf_soft_insn): Likewise.
21633         (thumb_movdf_insn): Likewise.
21634         (arm_cmpsi_insn): Likewise.
21635         (cmpsi_shiftsi): Likewise.
21636         (cmpsi_shiftsi_swp): Likewise.
21637         (arm_cmpsi_negshiftsi_si): Likewise.
21638         (movsicc_insn): Likewise.
21639         (movsfcc_soft_insn): Likewise.
21640         (arith_shiftsi): Likewise.
21641         (arith_shiftsi_compare0
21642         (arith_shiftsi_compare0_scratch
21643         (sub_shiftsi): Likewise.
21644         (sub_shiftsi_compare0
21645         (sub_shiftsi_compare0_scratch
21646         (and_scc): Likewise.
21647         (cond_move): Likewise.
21648         (if_plus_move): Likewise.
21649         (if_move_plus): Likewise.
21650         (if_move_not): Likewise.
21651         (if_not_move): Likewise.
21652         (if_shift_move): Likewise.
21653         (if_move_shift): Likewise.
21654         (if_shift_shift): Likewise.
21655         (if_not_arith): Likewise.
21656         (if_arith_not): Likewise.
21657         (cond_move_not): Likewise.
21658         (thumb1_ashlsi3): Set type attribute.
21659         (thumb1_ashrsi3): Likewise.
21660         (thumb1_lshrsi3): Likewise.
21661         (thumb1_rotrsi3): Likewise.
21662         (shiftsi3_compare0_scratch): Likewise.
21663         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
21664         (neon_mov<mode>): Likewise.
21665         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
21666         attribute changes.
21667         (thumb2_movsi_insn): Likewise.
21668         (thumb2_cmpsi_neg_shiftsi): Likewise.
21669         (thumb2_extendqisi_v6): Likewise.
21670         (thumb2_zero_extendhisi2_v6): Likewise.
21671         (thumb2_zero_extendqisi2_v6): Likewise.
21672         (thumb2_shiftsi3_short): Likewise.
21673         (thumb2_addsi3_compare0_scratch): Likewise.
21674         (orsi_not_shiftsi_si): Likewise.
21675         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
21676         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
21677         changes.
21678         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
21679         (1020alu_shift_op): Likewise.
21680         (1020alu_shift_reg_op): Likewise.
21681         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
21682         (alu_shift_op): Likewise.
21683         (alu_shift_reg_op): Likewise.
21684         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
21685         (11_alu_shift_op): Likewise.
21686         (11_alu_shift_reg_op): Likewise.
21687         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
21688         (9_alu_shift_reg_op): Likewise.
21689         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21690         changes.
21691         (cortex_a15_alu_shift): Likewise.
21692         (cortex_a15_alu_shift_reg): Likewise.
21693         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
21694         changes.
21695         (cortex_a5_alu_shift): Likewise.
21696         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
21697         changes.
21698         (cortex_a53_alu_shift): Likewise.
21699         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21700         changes.
21701         (cortex_a7_alu_reg): Likewise.
21702         (cortex_a7_alu_shift): Likewise.
21703         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
21704         changes.
21705         (cortex_a8_alu_shift): Likewise.
21706         (cortex_a8_alu_shift_reg): Likewise.
21707         (cortex_a8_mov): Likewise.
21708         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
21709         (cortex_a9_dp_shift): Likewise.
21710         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
21711         changes.
21712         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
21713         changes.
21714         (cortex_r4_mov): Likewise.
21715         (cortex_r4_alu_shift): Likewise.
21716         (cortex_r4_alu_shift_reg): Likewise.
21717         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
21718         (526_alu_shift_op): Likewise.
21719         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
21720         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
21721         (626te_alu_shift_op): Likewise.
21722         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
21723         (726te_alu_op): Likewise.
21724         (726te_alu_shift_op): Likewise.
21725         (726te_alu_shift_reg_op): Likewise.
21726         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
21727         (mp626_alu_shift_op): Likewise.
21728         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
21729         (pj4_alu_e1_conds): Likewise.
21730         (pj4_alu): Likewise.
21731         (pj4_alu_conds): Likewise.
21732         (pj4_shift): Likewise.
21733         (pj4_shift_conds): Likewise.
21734         (pj4_alu_shift): Likewise.
21735         (pj4_alu_shift_conds): Likewise.
21736         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21737         changes.
21738         (cortexa7_older_only): Likewise.
21739         (cortexa7_younger): Likewise.
21741 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21743         * ipa-pure-const.c (generate_summary): Rename to...
21744         (pure_const_generate_summary): ... this.
21746 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
21748         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
21750 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
21752         PR target/57909
21753         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
21754         usage in HI mode.
21756 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21758         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
21759         enabled without -march=zEC12.
21760         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
21761         flags to be set.
21763 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
21765         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
21766         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
21767         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
21768         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
21769         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
21770         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
21771         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
21772         ISA_HAS_FP4.
21773         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
21774         and ISA_HAS_NMADD3_NMSUB3.
21775         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
21776         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
21777         (nmsub4<mode>, nmsub3<mode>): Likewise.
21778         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
21780 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
21782         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
21783         TARGET_MIPS5400 checking.
21785 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
21786             Peter Bergner  <bergner@vnet.ibm.com>
21788         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
21789         registers in the comment.
21790         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
21791         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
21792         rather than FIRST_PSEUDO_REGISTERS.
21794 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
21796         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
21797         enable extra ISA flags with TARGET_HTM.
21799 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
21801         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
21802         Fix comment typos.
21804 2013-07-15  Cong Hou  <congh@google.com>
21806         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
21807         in compare function for sorting.
21809 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
21811         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
21812         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
21813         * config/rs6000/rs6000.opt: Add -mhtm option.
21814         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
21815         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
21816         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
21817         __HTM__ if the HTM instructions are available.
21818         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
21819         htm_spr_reg_operand): New define_predicates.
21820         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
21821         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
21822         Include htm.md.
21823         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
21824         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
21825         HTM builtin functions.
21826         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
21827         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
21828         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
21829         (rs6000_builtin_mask_calculate): Likewise.
21830         (rs6000_option_override_internal): Likewise.
21831         (bdesc_htm): Add new HTM builtin support.
21832         (htm_spr_num): New function.
21833         (htm_spr_regno): Likewise.
21834         (rs6000_htm_spr_icode): Likewise.
21835         (htm_expand_builtin): Likewise.
21836         (htm_init_builtins): Likewise.
21837         (rs6000_expand_builtin): Add support for HTM builtin functions.
21838         (rs6000_init_builtins): Likewise.
21839         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
21840         option.
21841         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
21842         (TARGET_HTM, MASK_HTM): Define macros.
21843         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
21844         (FIXED_REGISTERS): Likewise.
21845         (CALL_USED_REGISTERS): Likewise.
21846         (CALL_REALLY_USED_REGISTERS): Likewise.
21847         (REG_ALLOC_ORDER): Likewise.
21848         (enum reg_class): Likewise.
21849         (REG_CLASS_NAMES): Likewise.
21850         (REG_CLASS_CONTENTS): Likewise.
21851         (REGISTER_NAMES): Likewise.
21852         (ADDITIONAL_REGISTER_NAMES): Likewise.
21853         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
21854         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
21855         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
21856         * config/rs6000/htm.md: New file.
21857         * config/rs6000/htmintrin.h: New file.
21858         * config/rs6000/htmxlintrin.h: New file.
21860 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21862         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
21863         Define SYMBOL_TINY_GOT, update comment.
21864         * config/aarch64/aarch64.c
21865         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
21866         (aarch64_expand_mov_immediate): Likewise.
21867         (aarch64_print_operand): Likewise.
21868         (aarch64_classify_symbol): Likewise.
21869         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
21870         (ldr_got_tiny): Define.
21872 2013-07-13  Tobias Grosser  <tobias@grosser.es>
21874         PR tree-optimization/54094
21875         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
21876           scheduling dimension for the parallelism check from the polyhedral
21877           information in the AST.
21878         * graphite-dependences.c (carries_deps): Do not assume the schedule is
21879           in 2D + 1 form.
21881 2013-07-13  Jason Merrill  <jason@redhat.com>
21883         * print-tree.c (debug_vec_tree): Use debug_raw.
21884         (debug_raw (vec<tree, va_gc> &)): New.
21885         (debug_raw (vec<tree, va_gc> *)): New.
21886         * tree.h: Declare them.
21888 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
21890         * ifcvt.c (ifcvt_after_combine): New static variable.
21891         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
21892         for size.
21893         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
21894         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
21895         rest_of_handle_if_after_reload): Pass new argument for if_convert.
21897 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
21899         * config/mips/mips.c (mips_expand_call): Remove empty statement.
21901 2013-07-12  Michael Matz  <matz@suse.de>
21903         PR middle-end/55771
21904         * convert.c (convert_to_real): Reject non-float inner types.
21906 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
21908         * config/aarch64/aarch64-protos.h
21909         (aarch64_simd_immediate_valid_for_move): Remove.
21910         * config/aarch64/aarch64.c (simd_immediate_info): New member.
21911         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
21912         cases.
21913         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
21915 2013-07-11  Steve Ellcey  <sellcey@mips.com>
21917         * config/mips/mips.c (mips_conditional_register_usage): Do not
21918         use t[0-7] registers in MIPS16 mode when optimizing for size.
21920 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
21922         * config/i386/i386.c (dispatch_function_versions): Fix array
21923         indexing of function_version_info to match actual_versions.
21925 2013-07-11  Teresa Johnson  <tejohnson@google.com>
21927         * vec.h (struct va_gc): Move release out-of-line.
21928         (va_gc::release): Call ggc_free on released vec.
21930 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21932         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
21933         Require GOT register as additional operand in UNSPEC.
21934         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
21935         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
21936         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
21937         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
21938         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
21939         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
21940         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
21942 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
21944         PR target/57631
21945         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
21946         name seen by assembler/linker rather if available.
21948 2013-07-11  Andreas Schwab  <schwab@suse.de>
21950         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
21952 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
21954         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21956 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
21958         * doc/tm.texi.in: Move hook documentation to ....
21959         * target.def: ... here.
21961         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
21962         text on @hook line.
21963         * doc/tm.texi: Regenerate.
21965 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
21967         PR c++/57869
21968         * doc/invoke.texi: Document -Wconditionally-supported.
21970 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21972         PR target/57844
21973         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
21974         of my_fp.
21976 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21978         PR target/57506
21979         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
21980         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
21981         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
21982         Remove duplicate devices.
21983         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
21984         * config/avr/t-multilib: Regenerate.
21985         * config/avr/avr-tables.opt: Regenerate.
21986         * doc/avr-mmcu.texi: Regenerate.
21988 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21990         PR target/56987
21991         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
21993 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
21995         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
21996         the cost of MULT when optimizing for size.
21998 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22000         * config/cr16/cr16-protos.h: Don't include target.h.
22002 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
22004         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22005         adjust register size for TDmode and TFmode for VSX registers.
22007 2013-07-08  Kai Tietz  <ktietz@redhat.com>
22009         PR target/56892
22010         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22011         hook_bool_const_tree_true.
22013 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22015         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22016         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22017         * config/s390/s390.md: Define FPR*_REGNUM constants.
22018         Fix FPR2_REGNUM constant (18 -> 17).
22019         ("*trunc<BFP:mode><DFP_ALL:mode>2")
22020         ("*trunc<DFP_ALL:mode><BFP:mode>2")
22021         ("trunc<BFP:mode><DFP_ALL:mode>2")
22022         ("trunc<DFP_ALL:mode><BFP:mode>2")
22023         ("*extend<BFP:mode><DFP_ALL:mode>2")
22024         ("*extend<DFP_ALL:mode><BFP:mode>2")
22025         ("extend<BFP:mode><DFP_ALL:mode>2")
22026         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22027         FPR4_REGNUM.
22029 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
22031         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22033 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22035         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22036         and cfun_fpr_bit_p to cfun_fpr_save_p.
22037         (s390_frame_area, s390_register_info, s390_frame_info)
22038         (s390_emit_prologue, s390_emit_epilogue)
22039         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22040         register numbers.
22041         * config/s390/s390.h: Define *_REGNUM macros for floating point
22042         register numbers.
22044 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
22046         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22048 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
22050         PR rtl-optimization/57786
22051         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22052         and break out of the loop when it is set to false.
22054 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
22056         PR target/57819
22057         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22058         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22059         (const_int 63)) 0)).
22060         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22061         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22062         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22064         PR rtl-optimization/57829
22065         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22066         mask bits outside of mode are just sign-extension from mode to HWI.
22068 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
22070         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22071         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22072         adjust_address instead of change_address to keep info about alignment.
22073         (emit_strmov): Remove.
22074         (emit_memmov): New function.
22075         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22076         (expand_movmem_epilogue): Likewise and return updated rtx for
22077         destination.
22078         (expand_constant_movmem_prologue): Likewise and return updated rtx for
22079         destination and source.
22080         (decide_alignment): Refactor, handle vector_loop.
22081         (ix86_expand_movmem): Likewise.
22082         (ix86_expand_setmem): Likewise.
22083         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22085 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
22087         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22088         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22090 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22092         * config/i386/sse.md (sse_movlhps): Change alternative 3
22093         of operand 2 to "m".
22095 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22097         PR target/57807
22098         * config/i386/sse.md (iptr): New mode attribute.
22099         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22100         (<sse>_vm<plusminus_insn><mode>3): Ditto.
22101         (<sse>_vmmul<mode>3): Ditto.
22102         (<sse>_vmdiv<mode>3): Ditto.
22103         (sse_vmrcpv4sf2): Ditto.
22104         (<sse>_vmsqrt<mode>2): Ditto.
22105         (sse_vmrsqrtv4sf2): Ditto.
22106         (<sse>_vm<code><mode>3): Ditto.
22107         (avx_vmcmp<mode>3): Ditto.
22108         (<sse>_vmmaskcmp<mode>3): Ditto.
22109         (<sse>_comi): Ditto.
22110         (<sse>_ucomi): Ditto.
22111         (*xop_vmfrcz_<mode>): Ditto.
22112         (*fmai_fmadd_<mode>): Ditto.
22113         (*fmai_fmsub_<mode>): Ditto.
22114         (*fmai_fnmadd_<mode>): Ditto.
22115         (*fmai_fnmsub_<mode>): Ditto.
22116         (*fma4i_vmfmadd_<mode>): Ditto.
22117         (*fma4i_vmfmsub_<mode>): Ditto.
22118         (*fma4i_vmfnmadd_<mode>): Ditto.
22119         (*fma4i_vmfnmsub_<mode>): Ditto.
22120         (*xop_vmfrcz_<mode>): Ditto.
22121         (sse_cvtps2pi): Ditto.
22122         (sse_cvttps2pi): Ditto.
22123         (sse_cvtss2si): Ditto.
22124         (sse_cvtss2si_2): Ditto.
22125         (sse_cvtss2siq_2): Ditto.
22126         (sse_cvttss2si): Ditto.
22127         (sse_cvttss2siq): Ditto.
22128         (sse_cvtsd2si): Ditto.
22129         (sse_cvtsd2si_2): Ditto.
22130         (sse_cvtsd2siq_2): Ditto.
22131         (sse_cvttsd2si): Ditto.
22132         (sse_cvttsd2siq): Ditto.
22133         (sse_cvtsd2ss): Ditto.
22134         (sse_cvtss2sd): Ditto.
22135         (avx2_pbroadcast<mode>): Ditto.
22136         (avx2_pbroadcast<mode>_1): Ditto.
22137         (*avx_vperm_broadcast_v4sf): Ditto.
22139         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22140         (sse_movlhps): Ditto.
22141         (sse_storehps): Ditto.
22142         (sse_loadhps): Ditto.
22143         (sse_storelps): Ditto.
22144         (sse_loadlps): Ditto.
22145         (*vec_concatv4sf): Ditto.
22146         (*vec_interleave_highv2df): Ditto.
22147         (*vec_interleave_lowv2df): Ditto.
22148         (*vec_extractv2df_1_sse): Ditto.
22149         (*vec_extractv2df_0_sse): Ditto.
22150         (sse2_storelpd): Ditto.
22151         (sse2_loadlpd): Ditto.
22152         (sse2_movsd): Ditto.
22153         (*vec_concatv4si): Ditto.
22154         (vec_concatv2di): Ditto.
22156         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22157         for Intel asm dialect.
22158         (mmx_punpcklwd): Ditto.
22159         (mmx_punpckldq): Ditto.
22161         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22162         for intel assembler dialect.
22164 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
22166         PR target/29776
22167         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22168         for BUILT_IN_C{LZ,LRSB}*.
22169         * tree.h (CASE_INT_FN): Add FN##IMAX case.
22170         * tree-vrp.c (extract_range_basic): Handle
22171         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
22172         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22173         fall thru to code calling set_value*.
22174         * builtins.c (expand_builtin): Remove *IMAX cases.
22175         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22176         if width is bigger than 2*HWI.
22178 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
22180         PR rtl-optimization/55342
22181         * lra-int.h (lra_subreg_reload_pseudos): New.
22182         * lra.c: Add undoing optional reloads to the block diagram.
22183         (lra_subreg_reload_pseudos): New.
22184         (lra_optional_reload_pseudos): Change comments.
22185         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
22186         lra_optional_reload_pseudos after undo transformations.
22187         * lra-assigns.c (pseudo_prefix_title): New.
22188         (lra_setup_reg_renumber): Use it.
22189         (spill_for): Ditto.  Check subreg reload pseudos too.
22190         (assign_by_spills): Consider subreg reload pseudos too.
22191         * lra-constraints.c (simplify_operand_subreg): Use
22192         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22193         (curr_insn_transform): Recognize and do optional reloads.
22194         (undo_optional_reloads): New.
22195         (lra_undo_inheritance): Call undo_optional_reloads.
22197 2013-07-05  Thomas Quinot  <quinot@adacore.com>
22199         * tree-complex.c (expand_complex_operations_1): Fix typo.
22201 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
22203         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22204         (tune_params): New member 'const vec_costs'.
22205         * config/aarch64/aarch64.c (generic_vector_cost): New.
22206         (generic_tunings): New member 'generic_vector_cost'.
22207         (aarch64_builtin_vectorization_cost): New.
22208         (aarch64_add_stmt_cost): New.
22209         (TARGET_VECTORIZE_ADD_STMT_COST): New.
22210         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22212 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
22214         PR target/57777
22215         * config/i386/predicates.md (vsib_address_operand): Disallow
22216         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
22218 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
22220         PR middle-end/55030
22221         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
22222         expand_builtin_setjmp_receiver.
22223         (expand_label): Adjust, call expand_builtin_setjmp_receiver
22224         with NULL for the label parameter.
22225         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
22226         the frame-pointer.  Adjust comments.
22227         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
22228         only if LABEL is non-NULL.
22230 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
22232         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22233         (ARM_ABI_AAPCS64): Ditto.
22234         (arm_abi): Ditto.
22235         (ARM_DEFAULT_ABI): Ditto.
22237 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22239         * config/aarch64/aarch64-builtins.c
22240         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22241         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22242         (st1): Likewise.
22243         * config/aarch64/aarch64-simd.md
22244         (aarch64_ld1<VALL:mode>): New.
22245         (aarch64_st1<VALL:mode>): Likewise.
22246         * config/aarch64/arm_neon.h
22247         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22249 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
22251         * config/i386/i386.c (gate_insert_vzeroupper): Check if
22252         target ISA is AVX.
22253         (ix86_option_override_internal):Turn on all -mavx target flags by
22254         default as they are dependent on AVX anyway.
22256 2013-07-02  Cary Coutant  <ccoutant@google.com>
22258         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22259         deterministic hash.
22260         (loc_checksum_ordered): Likewise.
22261         (hash_loc_operands): Remove inline keyword.
22263 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
22265         PR tree-optimization/57741
22266         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22267         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22268         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22269         Allow REAL_CST step_exprs if flag_associative_math.
22270         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22272 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22274         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22276 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22278         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
22280 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22282         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
22283         encoding.
22284         (iorsi3_insn): Likewise.
22285         (arm_xorsi3): Likewise.
22287 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
22289         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
22290         to ...
22291         (attribute "type"): ... here, and prefix with "wmmx_".
22292         (attribute "core_cycles"): Update for attribute changes.
22293         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
22294         (tbcstv4hi): Likewise.
22295         (tbcstv2si): Likewise.
22296         (iwmmxt_iordi3): Likewise.
22297         (iwmmxt_xordi3): Likewise.
22298         (iwmmxt_anddi3): Likewise.
22299         (iwmmxt_nanddi3): Likewise.
22300         (iwmmxt_arm_movdi): Likewise.
22301         (iwmmxt_movsi_insn): Likewise.
22302         (mov<mode>_internal): Likewise.
22303         (and<mode>3_iwmmxt): Likewise.
22304         (ior<mode>3_iwmmxt): Likewise.
22305         (xor<mode>3_iwmmxt): Likewise.
22306         (add<mode>3_iwmmxt): Likewise.
22307         (ssaddv8qi3): Likewise.
22308         (ssaddv4hi3): Likewise.
22309         (ssaddv2si3): Likewise.
22310         (usaddv8qi3): Likewise.
22311         (usaddv4hi3): Likewise.
22312         (usaddv2si3): Likewise.
22313         (sub<mode>3_iwmmxt): Likewise.
22314         (sssubv8qi3): Likewise.
22315         (sssubv4hi3): Likewise.
22316         (sssubv2si3): Likewise.
22317         (ussubv8qi3): Likewise.
22318         (ussubv4hi3): Likewise.
22319         (ussubv2si3): Likewise.
22320         (mulv4hi3_iwmmxt): Likewise.
22321         (smulv4hi3_highpart): Likewise.
22322         (umulv4hi3_highpart): Likewise.
22323         (iwmmxt_wmacs): Likewise.
22324         (iwmmxt_wmacsz): Likewise.
22325         (iwmmxt_wmacu): Likewise.
22326         (iwmmxt_wmacuz): Likewise.
22327         (iwmmxt_clrdi): Likewise.
22328         (iwmmxt_clrv8qi): Likewise.
22329         (iwmmxt_clr4hi): Likewise.
22330         (iwmmxt_clr2si): Likewise.
22331         (iwmmxt_uavgrndv8qi3): Likewise.
22332         (iwmmxt_uavgrndv4hi3): Likewise.
22333         (iwmmxt_uavgv8qi3): Likewise.
22334         (iwmmxt_uavgv4hi3): Likewise.
22335         (iwmmxt_tinsrb): Likewise.
22336         (iwmmxt_tinsrh): Likewise.
22337         (iwmmxt_tinsrw): Likewise.
22338         (iwmmxt_textrmub): Likewise.
22339         (iwmmxt_textrmsb): Likewise.
22340         (iwmmxt_textrmuh): Likewise.
22341         (iwmmxt_textrmsh): Likewise.
22342         (iwmmxt_textrmw): Likewise.
22343         (iwmxxt_wshufh): Likewise.
22344         (eqv8qi3): Likewise.
22345         (eqv4hi3): Likewise.
22346         (eqv2si3): Likewise.
22347         (gtuv8qi3): Likewise.
22348         (gtuv4hi3): Likewise.
22349         (gtuv2si3): Likewise.
22350         (gtv8qi3): Likewise.
22351         (gtv4hi3): Likewise.
22352         (gtv2si3): Likewise.
22353         (smax<mode>3_iwmmxt): Likewise.
22354         (umax<mode>3_iwmmxt): Likewise.
22355         (smin<mode>3_iwmmxt): Likewise.
22356         (umin<mode>3_iwmmxt): Likewise.
22357         (iwmmxt_wpackhss): Likewise.
22358         (iwmmxt_wpackwss): Likewise.
22359         (iwmmxt_wpackdss): Likewise.
22360         (iwmmxt_wpackhus): Likewise.
22361         (iwmmxt_wpackwus): Likewise.
22362         (iwmmxt_wpackdus): Likewise.
22363         (iwmmxt_wunpckihb): Likewise.
22364         (iwmmxt_wunpckihh): Likewise.
22365         (iwmmxt_wunpckihw): Likewise.
22366         (iwmmxt_wunpckilb): Likewise.
22367         (iwmmxt_wunpckilh): Likewise.
22368         (iwmmxt_wunpckilw): Likewise.
22369         (iwmmxt_wunpckehub): Likewise.
22370         (iwmmxt_wunpckehuh): Likewise.
22371         (iwmmxt_wunpckehuw): Likewise.
22372         (iwmmxt_wunpckehsb): Likewise.
22373         (iwmmxt_wunpckehsh): Likewise.
22374         (iwmmxt_wunpckehsw): Likewise.
22375         (iwmmxt_wunpckelub): Likewise.
22376         (iwmmxt_wunpckeluh): Likewise.
22377         (iwmmxt_wunpckeluw): Likewise.
22378         (iwmmxt_wunpckelsb): Likewise.
22379         (iwmmxt_wunpckelsh): Likewise.
22380         (iwmmxt_wunpckelsw): Likewise.
22381         (ror<mode>3): Likewise.
22382         (ashr<mode>3_iwmmxt): Likewise.
22383         (lshr<mode>3_iwmmxt): Likewise.
22384         (ashl<mode>3_iwmmxt): Likewise.
22385         (ror<mode>3_di): Likewise.
22386         (ashr<mode>3_di): Likewise.
22387         (lshr<mode>3_di): Likewise.
22388         (ashl<mode>3_di): Likewise.
22389         (iwmmxt_wmadds): Likewise.
22390         (iwmmxt_wmaddu): Likewise.
22391         (iwmmxt_tmia): Likewise.
22392         (iwmmxt_tmiaph): Likewise.
22393         (iwmmxt_tmiabb): Likewise.
22394         (iwmmxt_tmiatb): Likewise.
22395         (iwmmxt_tmiabt): Likewise.
22396         (iwmmxt_tmiatt): Likewise.
22397         (iwmmxt_tmovmskb): Likewise.
22398         (iwmmxt_tmovmskh): Likewise.
22399         (iwmmxt_tmovmskw): Likewise.
22400         (iwmmxt_waccb): Likewise.
22401         (iwmmxt_wacch): Likewise.
22402         (iwmmxt_waccw): Likewise.
22403         (iwmmxt_waligni): Likewise.
22404         (iwmmxt_walignr): Likewise.
22405         (iwmmxt_walignr0): Likewise.
22406         (iwmmxt_walignr1): Likewise.
22407         (iwmmxt_walignr2): Likewise.
22408         (iwmmxt_walignr3): Likewise.
22409         (iwmmxt_wsadb): Likewise.
22410         (iwmmxt_wsadh): Likewise.
22411         (iwmmxt_wsadbz): Likewise.
22412         (iwmmxt_wsadhz): Likewise.
22413         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
22414         (iwmmxt_wabsdiffb): Likewise.
22415         (iwmmxt_wabsdiffh): Likewise.
22416         (iwmmxt_wabsdiffw): Likewise.
22417         (iwmmxt_waddsubhx): Likewise
22418         (iwmmxt_wsubaddhx): Likewise.
22419         (addc<mode>3): Likewise.
22420         (iwmmxt_avg4): Likewise.
22421         (iwmmxt_avg4r): Likewise.
22422         (iwmmxt_wmaddsx): Likewise.
22423         (iwmmxt_wmaddux): Likewise.
22424         (iwmmxt_wmaddsn): Likewise.
22425         (iwmmxt_wmaddun): Likewise.
22426         (iwmmxt_wmulwsm): Likewise.
22427         (iwmmxt_wmulwum): Likewise.
22428         (iwmmxt_wmulsmr): Likewise.
22429         (iwmmxt_wmulumr): Likewise.
22430         (iwmmxt_wmulwsmr): Likewise.
22431         (iwmmxt_wmulwumr): Likewise.
22432         (iwmmxt_wmulwl): Likewise.
22433         (iwmmxt_wqmulm): Likewise.
22434         (iwmmxt_wqmulwm): Likewise.
22435         (iwmmxt_wqmulmr): Likewise.
22436         (iwmmxt_wqmulwmr): Likewise.
22437         (iwmmxt_waddbhusm): Likewise.
22438         (iwmmxt_waddbhusl): Likewise.
22439         (iwmmxt_wqmiabb): Likewise.
22440         (iwmmxt_wqmiabt): Likewise.
22441         (iwmmxt_wqmiatb): Likewise.
22442         (iwmmxt_wqmiatt): Likewise.
22443         (iwmmxt_wqmiabbn): Likewise.
22444         (iwmmxt_wqmiabtn): Likewise.
22445         (iwmmxt_wqmiatbn): Likewise.
22446         (iwmmxt_wqmiattn): Likewise.
22447         (iwmmxt_wmiabb): Likewise.
22448         (iwmmxt_wmiabt): Likewise.
22449         (iwmmxt_wmiatb): Likewise.
22450         (iwmmxt_wmiatt): Likewise.
22451         (iwmmxt_wmiabbn): Likewise.
22452         (iwmmxt_wmiabtn): Likewise.
22453         (iwmmxt_wmiatbn): Likewise.
22454         (iwmmxt_wmiattn): Likewise.
22455         (iwmmxt_wmiawbb): Likewise.
22456         (iwmmxt_wmiawbt): Likewise.
22457         (iwmmxt_wmiawtb): Likewise.
22458         (iwmmxt_wmiawtt): Likewise.
22459         (iwmmxt_wmiawbbn): Likewise.
22460         (iwmmxt_wmiawbtn): Likewise.
22461         (iwmmxt_wmiawtbn): Likewise.
22462         (iwmmxt_wmiawttn): Likewise.
22463         (iwmmxt_wmerge): Likewise.
22464         (iwmmxt_tandc<mode>3): Likewise.
22465         (iwmmxt_torc<mode>3): Likewise.
22466         (iwmmxt_torvsc<mode>3): Likewise.
22467         (iwmmxt_textrc<mode>3): Likewise.
22468         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
22469         (wmmxt_pack): Likewise.
22470         (wmmxt_mult_c1): Likewise.
22471         (wmmxt_mult_c2): Likewise.
22472         (wmmxt_alu_c1): Likewise.
22473         (wmmxt_alu_c2): Likewise.
22474         (wmmxt_alu_c3): Likewise.
22475         (wmmxt_transfer_c1): Likewise.
22476         (wmmxt_transfer_c2): Likewise.
22477         (wmmxt_transfer_c3): Likewise.
22478         (marvell_f_iwmmxt_wstr): Likewise.
22479         (marvell_f_iwmmxt_wldr): Likewise.
22481 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
22483         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
22485 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22487         Revert:
22488         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22489         * lra-constraints.c (need_for_split_p): Check call used hard regs
22490         living through calls.
22492         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
22493         call used regs for call insn.
22495 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
22497         PR target/57736
22498         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
22499         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
22501 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
22503         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
22505 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22507         * lra-constraints.c (need_for_split_p): Check call used hard regs
22508         living through calls.
22510 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
22512         PR target/57744
22513         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
22514         to tie with any other modes.  Eliminate Altivec vector mode tests,
22515         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
22516         code, to return 0 if testing MODE2 for a condition, if we've
22517         already tested MODE1 for the same condition.
22519 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22521         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
22522         layout.
22524 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22526         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22527         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
22529 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22531         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
22532         Define.
22533         (aarch64_symbolic_constant_p): Remove.
22534         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
22535         static.  Fix line length and white space.
22536         (aarch64_symbolic_constant_p): Remove.
22537         * config/aarch64/predicates.md (aarch64_valid_symref):
22538         Use aarch64_classify_symbol_expression.
22540 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22542         * config/arm/constraints.md (Ts): New constraint.
22543         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
22544         16-bit encodings.
22545         (compare_scc): Use "Ts" constraint for operand 0.
22546         (ior_scc_scc): Likewise.
22547         (and_scc_scc): Likewise.
22548         (and_scc_scc_nodom): Likewise.
22549         (ior_scc_scc_cmp): Likewise for operand 7.
22550         (and_scc_scc_cmp): Likewise.
22551         * config/arm/thumb2.md (thumb2_movsi_insn):
22552         Add alternatives for 16-bit encodings.
22553         (thumb2_movhi_insn): Likewise.
22554         (thumb2_movsicc_insn): Likewise.
22555         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
22556         (thumb2_negscc): Use "Ts" constraint.
22557         Move mvn instruction outside cond_exec block.
22558         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
22559         for 16-bit encodings.
22561 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22563         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
22564         encoding.
22565         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
22566         (mulsi3subsi): Likewise.
22567         (mulsidi3adddi): Likewise.
22568         (mulsidi3_v6): Likewise.
22569         (umulsidi3_v6): Likewise.
22570         (umulsidi3adddi_v6): Likewise.
22571         (smulsi3_highpart_v6): Likewise.
22572         (umulsi3_highpart_v6): Likewise.
22573         (mulhisi3tb): Likewise.
22574         (mulhisi3bt): Likewise.
22575         (mulhisi3tt): Likewise.
22576         (maddhisi4): Likewise.
22577         (maddhisi4tb): Likewise.
22578         (maddhisi4tt): Likewise.
22579         (maddhidi4): Likewise.
22580         (maddhidi4tb): Likewise.
22581         (maddhidi4tt): Likewise.
22582         (zeroextractsi_compare0_scratch): Likewise.
22583         (insv_zero): Likewise.
22584         (insv_t2): Likewise.
22585         (anddi_notzesidi_di): Likewise.
22586         (anddi_notsesidi_di): Likewise.
22587         (andsi_notsi_si): Likewise.
22588         (iordi_zesidi_di): Likewise.
22589         (xordi_zesidi_di): Likewise.
22590         (andsi_iorsi3_notsi): Likewise.
22591         (smax_0): Likewise.
22592         (smax_m1): Likewise.
22593         (smin_0): Likewise.
22594         (not_shiftsi): Likewise.
22595         (unaligned_loadsi): Likewise.
22596         (unaligned_loadhis): Likewise.
22597         (unaligned_loadhiu): Likewise.
22598         (unaligned_storesi): Likewise.
22599         (unaligned_storehi): Likewise.
22600         (extv_reg): Likewise.
22601         (extzv_t2): Likewise.
22602         (divsi3): Likewise.
22603         (udivsi3): Likewise.
22604         (arm_zero_extendhisi2addsi): Likewise.
22605         (arm_zero_extendqisi2addsi): Likewise.
22606         (compareqi_eq0): Likewise.
22607         (arm_extendhisi2_v6): Likewise.
22608         (arm_extendqisi2addsi): Likewise.
22609         (arm_movt): Likewise.
22610         (thumb2_ldrd): Likewise.
22611         (thumb2_ldrd_base): Likewise.
22612         (thumb2_ldrd_base_neg): Likewise.
22613         (thumb2_strd): Likewise.
22614         (thumb2_strd_base): Likewise.
22615         (thumb2_strd_base_neg): Likewise.
22616         (arm_negsi2): Add alternative for 16-bit encoding.
22617         (arm_one_cmplsi2): Likewise.
22619 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22621         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
22622         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
22623         (movdfcc): Likewise.
22624         * config/arm/vfp.md (*thumb2_movsf_vfp):
22625         Disable predication for arm_restrict_it.
22626         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
22627         (*thumb2_movdfcc_vfp): Likewise.
22628         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
22629         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
22630         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
22631         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
22632         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
22633         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
22634         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
22635         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
22636         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
22637         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
22638         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
22639         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
22640         Disable predication for arm_restrict_it.
22642 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
22644         * config/i386/bmiintrin.h (_bextr_u32): New.
22645         (_bextr_u64): Ditto.
22647 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
22649         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
22650         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
22651         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
22652         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
22653         * config/mips/n32-elf.h: ...this new file.
22655 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
22657         PR target/57224
22658         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
22659         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
22661 2013-06-27  Catherine Moore  <clm@codesourcery.com>
22663         * config/mips/mips-tables.opt: Regenerate.
22664         * config/mips/mips-cpus.def: Add m14ke and m14kec.
22665         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
22666         * doc/invoke.texi: Add -m14kc.
22668 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
22670         PR target/57623
22671         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
22672         constraints of operand 1 and 2.
22674         PR target/57623
22675         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
22676         to match RTL canonicalization.  Swap predicates and
22677         constraints of operand 1 and 2.
22679 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
22681         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
22682         Process OP_INOUT regs for splitting too.
22684 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
22686         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
22687         decl before the loop, initialize to NULL.
22688         (vectorizable_load): Initialize ptr_incr to NULL.
22690 2013-06-27  Martin Jambor  <mjambor@suse.cz>
22692         PR lto/57208
22693         * ipa-ref.h (ipa_maybe_record_reference): Declare.
22694         * ipa-ref.c (ipa_maybe_record_reference): New function.
22695         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
22696         * ipa-cp.c (create_specialized_node): Record potential references from
22697         aggvals.
22698         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
22700 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
22702         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
22703         parameter 'mode' of type 'enum machine_mode mode'; change to pass
22704         'mode' to force_reg.
22705         (aarch64_add_offset): Update calls to aarch64_force_temporary.
22706         (aarch64_expand_mov_immediate): Likewise.
22708 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
22710         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
22711         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
22713 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22715         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
22716         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
22717         (struct machine_function): Add tbegin_p.
22718         (s390_canonicalize_comparison): Fold CC mode compares to
22719         conditional jump if possible.
22720         (s390_emit_jump): Return the emitted jump.
22721         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
22722         Handle CCRAWmode compares.
22723         (s390_option_override): Default to -mhtm if available.
22724         (s390_reg_clobbered_rtx): Handle floating point regs as well.
22725         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
22726         FPRs instead of df_regs_ever_live_p.
22727         (s390_optimize_nonescaping_tx): New function.
22728         (s390_init_frame_layout): Extend clobbered_regs array to cover
22729         FPRs as well.
22730         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
22731         (s390_expand_tbegin): New function.
22732         (enum s390_builtin): New enum definition.
22733         (code_for_builtin): New array definition.
22734         (s390_init_builtins): New function.
22735         (s390_expand_builtin): New function.
22736         (TARGET_INIT_BUILTINS): Define.
22737         (TARGET_EXPAND_BUILTIN): Define.
22738         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
22739         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
22740         (s390_alc_comparison): Likewise.
22741         * config/s390/s390-modes.def: Add CCRAWmode.
22742         * config/s390/s390.h (processor_flags): Add PF_TX.
22743         (TARGET_CPU_HTM): Define macro.
22744         (TARGET_HTM): Define macro.
22745         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
22746         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
22747         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
22748         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
22749         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
22750         (TBEGIN_MASK, TBEGINC_MASK): New constants.
22751         ("*cc_to_int"): Move up.
22752         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
22753         constants other than 0.
22754         ("*ccraw_to_int"): New insn and splitter definition.
22755         ("tbegin", "tbegin_nofloat", "tbegin_retry")
22756         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
22757         ("tx_assist"): New expander.
22758         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
22759         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
22760         * config/s390/s390.opt: Add -mhtm option.
22761         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
22762         * config/s390/htmxlintrin.h: New file.
22763         * config/s390/htmintrin.h: New file.
22764         * config/s390/s390intrin.h: New file.
22765         * doc/extend.texi: Document htm builtins.
22766         * config.gcc: Add the new header files to extra_headers.
22768 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
22770         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
22771         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
22773 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
22774             Pat Haugen  <pthaugen@us.ibm.com>
22775             Peter Bergner  <bergner@vnet.ibm.com>
22777         * config/rs6000/power8.md: New.
22778         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
22779         setting for power8 entry.
22780         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
22781         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
22782         test for Power4/Power5 only.
22783         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
22784         support.
22785         (force_new_group): Adjust comment.
22786         * config/rs6000/rs6000.md: Include power8.md.
22788 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
22790         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
22791         * config/arm/arm-protos.h (arm_max_conditional_execute): New
22792         declaration.
22793         (tune_params): Update comment.
22794         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
22795         (arm_max_conditional_execute): New function.
22796         (thumb2_final_prescan_insn): Use max_insn_skipped and
22797         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
22799 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
22801         PR tree-optimization/57705
22802         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
22803         SSA_NAME step, provided that it is not defined inside the loop.
22804         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
22805         (get_initial_def_for_induction): Handle SSA_NAME IV step.
22807 2013-06-25  Martin Jambor  <mjambor@suse.cz>
22809         PR middle-end/57670
22810         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
22811         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
22812         calls in the dump.
22813         (ipa_note_param_call): Initialize member_ptr flag.
22814         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
22815         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
22816         (ipa_write_indirect_edge_info): Stream member_ptr flag.
22817         (ipa_read_indirect_edge_info): Likewise.
22819 2013-06-25  Richard Biener  <rguenther@suse.de>
22821         PR middle-end/56977
22822         * passes.c (init_optimization_passes): Move pass_fold_builtins
22823         and pass_dce earlier with -Og.
22825 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
22827         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
22828         <BIT_FIELD_REF>: Remove trailing TAB.
22829         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
22830         remove blank line.
22832 2013-06-24  Martin Jambor  <mjambor@suse.cz>
22834         PR tree-optimization/57358
22835         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
22836         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
22837         (ipa_analyze_params_uses): Generate pessimistic info when true.
22839 2013-06-24  Martin Jambor  <mjambor@suse.cz>
22841         PR tree-optimization/57539
22842         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
22843         global.inlined_to of the new node to it.  All callers changed.
22844         * ipa-inline-transform.c (clone_inlined_nodes): New variable
22845         inlining_into, pass it to cgraph_clone_node.
22846         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
22847         ipa_free_edge_args_substructures.
22848         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
22849         rdesc linked list.  Do not assert rdesc edges have inlined caller.
22850         Assert we have found an rdesc in the rdesc list.
22852 2013-06-24  Richard Biener  <rguenther@suse.de>
22854         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
22855         (pointer_set_lookup): Declare.
22856         (class pointer_map): New template class implementing a
22857         generic pointer to T map.
22858         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
22859         pointer_map<T>::contains, pointer_map<T>::insert,
22860         pointer_map<T>::traverse): New functions.
22861         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
22862         (pointer_set_lookup): New function.
22863         (pointer_set_contains): Use pointer_set_lookup.
22864         (pointer_set_insert): Likewise.
22865         (insert_aux): Remove.
22866         (struct pointer_map_t): Embed a pointer_set_t.
22867         (pointer_map_create): Adjust.
22868         (pointer_map_destroy): Likewise.
22869         (pointer_map_contains): Likewise.
22870         (pointer_map_insert): Likewise.
22871         (pointer_map_traverse): Likewise.
22872         * tree-streamer.h (struct streamer_tree_cache_d): Use a
22873         pointer_map<unsigned> instead of a pointer_map_t.
22874         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
22875         (streamer_tree_cache_lookup): Likewise.
22876         (streamer_tree_cache_create): Likewise.
22877         (streamer_tree_cache_delete): Likewise.
22878         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
22879         pointer_map<unsigned> instead of a pointer_map_t.
22880         (lto_init_tree_ref_encoder): Adjust.
22881         (lto_destroy_tree_ref_encoder): Likewise.
22882         * lto-section-out.c (lto_output_decl_index): Likewise.
22883         (lto_record_function_out_decl_state): Likewise.
22884         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
22886 2013-06-24  Richard Biener  <rguenther@suse.de>
22888         PR tree-optimization/57488
22889         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
22891 2013-06-24  Alan Modra  <amodra@gmail.com>
22893         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
22894         (gen_easy_altivec_constant): Likewise.
22895         * config/rs6000/predicates.md (easy_vector_constant_add_self,
22896         easy_vector_constant_msb): Likewise.
22898 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
22900         PR target/57688
22901         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
22902         add missing return true.
22904 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
22906         PR target/52483
22907         * config/sh/predicates.md (general_extend_operand): Invoke
22908         general_movsrc_operand for memory operands.
22909         (general_movsrc_operand): Allow reg+reg addressing, do not use
22910         general_operand for memory operands.
22912 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
22914         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
22915         when current target options does not apply.
22916         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
22917         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
22918         * config/i386/bmiintrin.h: Pass appropriate target
22919         attributes to header.
22920         * config/i386/mmintrin.h: Ditto.
22921         * config/i386/nmmintrin.h: Ditto.
22922         * config/i386/avx2intrin.h: Ditto.
22923         * config/i386/fxsrintrin.h: Ditto.
22924         * config/i386/tbmintrin.h: Ditto.
22925         * config/i386/xsaveintrin.h: Ditto.
22926         * config/i386/f16cintrin.h: Ditto.
22927         * config/i386/xtestintrin.h: Ditto.
22928         * config/i386/xsaveoptintrin.h: Ditto.
22929         * config/i386/bmi2intrin.h: Ditto.
22930         * config/i386/lzcntintrin.h: Ditto.
22931         * config/i386/smmintrin.h: Ditto.
22932         * config/i386/wmmintrin.h: Ditto.
22933         * config/i386/x86intrin.h: Remove all header include guards.
22934         * config/i386/prfchwintrin.h: Ditto.
22935         * config/i386/pmmintrin.h: Ditto.
22936         * config/i386/tmmintrin.h: Ditto.
22937         * config/i386/xmmintrin.h: Ditto.
22938         * config/i386/popcntintrin.h: Ditto.
22939         * config/i386/rdseedintrin.h: Ditto.
22940         * config/i386/ammintrin.h: Ditto.
22941         * config/i386/emmintrin.h: Ditto.
22942         * config/i386/immintrin.h: Remove all header include guards.
22943         * config/i386/fma4intrin.h: Ditto.
22944         * config/i386/lwpintrin.h: Ditto.
22945         * config/i386/xopintrin.h: Ditto.
22946         * config/i386/ia32intrin.h: Ditto.
22947         * config/i386/avxintrin.h: Ditto.
22948         * config/i386/rtmintrin.h: Ditto.
22949         * config/i386/fmaintrin.h: Ditto.
22950         * config/i386/mm3dnow.h: Ditto.
22952 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
22954         * common/config/i386/i386-common.c: Handle LZCNT.
22956 2013-06-22  Andi Kleen  <ak@linux.intel.com>
22958         * doc/extend.texi: Use __atomic_store_n instead of
22959         __atomic_store in HLE example.
22961 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
22963         * config/sh/sh.c: Remove <cstdlib> workaround.
22965 2013-06-21  Andi Kleen  <ak@linux.intel.com>
22967         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
22969 2013-06-21  Andi Kleen  <ak@linux.intel.com>
22971         * doc/extend.texi: Document that __atomic_clear and
22972           __atomic_test_and_set should only be used with bool.
22974 2013-06-20  Jan Hubicka  <jh@suse.cz>
22976         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
22977         types_same_for_odr.
22978         * tree.c (decls_same_for_odr): New function.
22979         (same_for_edr): New function.
22980         (types_same_for_odr): New function.
22981         (get_binfo_at_offset): Use it.
22982         * tree.h (types_same_for_odr): Declare.
22984 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
22985             Jason Merrill  <jason@redhat.com>
22987         * system.h: Include <cstdlib> as well as <stdlib.h>.
22989 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
22991         PR target/57655
22992         * config/i386/i386.c (construct_container): Report error if
22993         long double is used with disabled x87 float returns.
22995 2013-06-20  Jan Hubicka  <jh@suse.cz>
22997         * lto-cgraph.c (input_symtab): Do not set cgraph state.
22999 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
23001         PR rtl-optimization/57425
23002         PR rtl-optimization/57569
23003         * alias.c (write_dependence_p): Remove parameters mem_mode and
23004         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
23005         Changed all callers.
23006         (canon_anti_dependence): Get comments and semantics in sync.
23007         Add parameter mem_canonicalized.  Changed all callers.
23008         * rtl.h (canon_anti_dependence): Update prototype.
23010 2013-06-20  Richard Biener  <rguenther@suse.de>
23012         * data-streamer-in.c (streamer_read_uhwi): Optimize single
23013         byte case, inline streamer_read_uchar and defer section
23014         overrun check.
23016 2013-06-20  Richard Biener  <rguenther@suse.de>
23018         PR tree-optimization/57584
23019         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23020         SSA names into the expanded expression that take part in
23021         abnormal coalescing.
23023 2013-06-19  Sharad Singhai  <singhai@google.com>
23025         * gcov.c (print_usage): Handle new option.
23026         (process_args): Ditto.
23027         (get_gcov_intermediate_filename): New function.
23028         (output_intermediate_file): New function.
23029         (output_gcov_file): New function
23030         (generate_results): Handle new option.
23031         (release_function): Relase demangled name.
23032         (read_graph_file): Handle demangled name.
23033         (output_lines): Ditto.
23034         * doc/gcov.texi: Document gcov intermediate format.
23036 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
23038         PR bootstrap/57604
23039         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23040         (lra_emit_add): Use the functions.  Add comment about Y as an
23041         address segment.
23043 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
23045         PR driver/57652
23046         * collect2.c (collect_atexit): New.
23047         (collect_exit): Delete.
23048         (main): Register collect_atexit with atexit.
23049         (collect_wait): Change collect_exit to exit.
23050         (do_wait): Same.
23051         * collect2.h (collect_exit): Delete.
23052         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23054 2013-06-19  Wei Mi  <wmi@google.com>
23056         PR rtl-optimization/57518
23057         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23058         if regno is used in paradoxical subreg.
23059         (update_equiv_regs): Check pdx_subregs[regno] before
23060         set a reg to be equivalent with a mem.
23062 2013-06-19  Matthias Klose  <doko@ubuntu.com>
23064         PR driver/57651
23065         * file-find.h (find_a_file): Add a mode parameter.
23066         * file-find.c (find_a_file): Likewise.
23067         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23068         with X_OK for the executables.
23069         * collect2.c (main): Call find_a_file with X_OK.
23071 2013-06-19  Steve Ellcey  <sellcey@mips.com>
23073         PR target/56942
23074         * config/mips/mips.md (casesi_internal_mips16_<mode>):
23075         Use NEXT_INSN instead of next_real_insn.
23077 2013-06-19  Jan Hubicka  <jh@suse.cz>
23079         * cgraph.h (const_value_known_p): Replace by ...
23080         (ctor_for_folding): .. this one.
23081         * cgraphunit.c (process_function_and_variable_attributes): Use it.
23082         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23083         * expr.c (expand_expr_real_1): Likewise.
23084         (string_constant): Likewise.
23085         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23086         * ipa.c (process_references): Likewise.
23087         (symtab_remove_unreachable_nodes): Likewise.
23088         * ipa-inline-analysis.c (param_change_prob): Likewise.
23089         * gimple-fold.c (canonicalize_constructor_val): Likewise.
23090         (get_base_constructor): Likwise.
23091         * varpool.c (varpool_remove_node): Likewise.
23092         (varpool_remove_initializer): LIkewise.
23093         (dump_varpool_node): LIkwise.
23094         (const_value_known_p): Rewrite to ...
23095         (ctor_for_folding): ... this one.
23097 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
23099         PR driver/57651
23100         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23101         PERSONALITY in $PATH derived prefixes.
23103 2013-06-19  Jeff Law  <law@redhat.com>
23105         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23106         in comment.
23108         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23109         (simplify_bitwise_binary): Use it to simpify certain binary ops on
23110         booleans.
23112 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
23114         * config/arm/vfp.md: Move VFP instruction classification documentation
23115         to ...
23116         * config/arm/arm.md: ... here.  Update instruction classification
23117         documentation.
23119 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
23121         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23122         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23123         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
23125 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
23127         PR target/57609
23128         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23129         with NEXT_INSN.  Use tablejump_p to check for jump table data
23130         insns.
23132 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
23134         PR c++/56544
23135         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23136         that now in C++ the value is correct per the C++ standards.
23138 2013-06-19  Richard Biener  <rguenther@suse.de>
23140         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23141         for global context.
23143 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23145         Revert:
23146         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23148         PR target/57609
23149         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23150         with next_active_insn.
23152 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
23154         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23155         functions are inlined during failures to flag an error.
23156         * tree-inline.c (expand_call_inline): Allow the error to be flagged
23157         in early inline pass.
23159 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
23161         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23162         in comments.
23164 2013-06-18  Julian Brown  <julian@codesourcery.com>
23166         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23167         Permit virtual register pre-reload if !strict.
23168         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23169         change.
23170         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23171         prototype.
23172         * config/arm/neon.md (movmisalign<mode>): Use
23173         neon_perm_struct_or_reg_operand instead of
23174         neon_struct_or_register_operand.
23175         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23176         neon_permissive_struct_operand instead of neon_struct_operand.
23177         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23178         neon_vector_mem_operand.
23179         * config/arm/predicates.md (neon_struct_operand): Adjust call to
23180         neon_vector_mem_operand.
23181         (neon_permissive_struct_operand): New.
23182         (neon_struct_or_register_operand): Rename to...
23183         (neon_perm_struct_or_reg_operand): This. Adjust call to
23184         neon_vector_mem_operand.
23186 2013-06-18  Richard Biener  <rguenther@suse.de>
23188         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23189         * lto-streamer.h: Include pointer-set.h.
23190         (struct lto_decl_slot): Remove.
23191         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23192         Remove next_index entry.
23193         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23194         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23195         (lto_init_tree_ref_encoder): Adjust.
23196         (lto_destroy_tree_ref_encoder): Likewise.
23197         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23198         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23199         (lto_output_decl_index): Adjust.
23200         (lto_new_out_decl_state): Likewise.
23201         (lto_record_function_out_decl_state): Likewise.
23202         * lto-streamer-out.c (copy_function): Likewise.
23204 2013-06-18  Richard Biener  <rguenther@suse.de>
23206         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23207         * cgraphunit.c: Include cfgloop.h.
23208         (init_lowered_empty_function): Initialize the loop tree.
23209         (assemble_thunk): Insert new BBs into loops.
23211 2013-06-18  Richard Biener  <rguenther@suse.de>
23213         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23214         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
23215         the map from cache entry to cache index optional.
23216         (streamer_tree_cache_replace_tree): Adjust accordingly.
23217         (streamer_tree_cache_append): Likewise.
23218         (streamer_tree_cache_delete): Likewise.
23219         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
23220         streamer cache map from cache entry to cache index.
23221         * lto-streamer-out.c (create_output_block): Adjust.
23223 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
23225         * config/arm/arm.md (attribute "insn"): Move multiplication and
23226         division attributes to...
23227         (attribute "type"): ... here.  Remove mult.
23228         (attribute "mul32"): New attribute.
23229         (attribute "mul64"): Add umaal.
23230         (*arm_mulsi3): Update attributes.
23231         (*arm_mulsi3_v6): Likewise.
23232         (*thumb_mulsi3): Likewise.
23233         (*thumb_mulsi3_v6): Likewise.
23234         (*mulsi3_compare0): Likewise.
23235         (*mulsi3_compare0_v6): Likewise.
23236         (*mulsi_compare0_scratch): Likewise.
23237         (*mulsi_compare0_scratch_v6): Likewise.
23238         (*mulsi3addsi): Likewise.
23239         (*mulsi3addsi_v6): Likewise.
23240         (*mulsi3addsi_compare0): Likewise.
23241         (*mulsi3addsi_compare0_v6): Likewise.
23242         (*mulsi3addsi_compare0_scratch): Likewise.
23243         (*mulsi3addsi_compare0_scratch_v6): Likewise.
23244         (*mulsi3subsi): Likewise.
23245         (*mulsidi3adddi): Likewise.
23246         (*mulsi3addsi_v6): Likewise.
23247         (*mulsidi3adddi_v6): Likewise.
23248         (*mulsidi3_nov6): Likewise.
23249         (*mulsidi3_v6): Likewise.
23250         (*umulsidi3_nov6): Likewise.
23251         (*umulsidi3_v6): Likewise.
23252         (*umulsidi3adddi): Likewise.
23253         (*umulsidi3adddi_v6): Likewise.
23254         (*smulsi3_highpart_nov6): Likewise.
23255         (*smulsi3_highpart_v6): Likewise.
23256         (*umulsi3_highpart_nov6): Likewise.
23257         (*umulsi3_highpart_v6): Likewise.
23258         (mulhisi3): Likewise.
23259         (*mulhisi3tb): Likewise.
23260         (*mulhisi3bt): Likewise.
23261         (*mulhisi3tt): Likewise.
23262         (maddhisi4): Likewise.
23263         (*maddhisi4tb): Likewise.
23264         (*maddhisi4tt): Likewise.
23265         (maddhidi4): Likewise.
23266         (*maddhidi4tb): Likewise.
23267         (*maddhidi4tt): Likewise.
23268         (divsi3): Likewise.
23269         (udivsi3): Likewise.
23270         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23271         (thumb2_mulsi_short_compare0): Likewise.
23272         (thumb2_mulsi_short_compare0_scratch): Likewise.
23273         * config/arm/arm1020e.md (1020mult1): Update attribute change.
23274         (1020mult2): Likewise.
23275         (1020mult3): Likewise.
23276         (1020mult4): Likewise.
23277         (1020mult5): Likewise.
23278         (1020mult6): Likewise.
23279         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
23280         change.
23281         (cortex_a15_mult64): Likewise.
23282         (cortex_a15_sdiv): Likewise.
23283         (cortex_a15_udiv): Likewise.
23284         * config/arm/arm1026ejs.md (mult1): Update attribute change.
23285         (mult2): Likewise.
23286         (mult3): Likewise.
23287         (mult4): Likewise.
23288         (mult5): Likewise.
23289         (mult6): Likewise.
23290         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
23291         (pj4_ir_div): Likewise.
23292         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
23293         (11_mult2): Likewise.
23294         (11_mult3): Likewise.
23295         (11_mult4): Likewise.
23296         (11_mult5): Likewise.
23297         (11_mult6): Likewise.
23298         (11_mult7): Likewise.
23299         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
23300         (cortex_a8_mla): Likewise.
23301         (cortex_a8_mull): Likewise.
23302         (cortex_a8_smulwy): Likewise.
23303         (cortex_a8_smlald): Likewise.
23304         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
23305         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
23306         (cortex_r4_mul_3): Likewise.
23307         (cortex_r4_mla_4): Likewise.
23308         (cortex_r4_mla_3): Likewise.
23309         (cortex_r4_smlald): Likewise.
23310         (cortex_r4_mull): Likewise.
23311         (cortex_r4_sdiv): Likewise.
23312         (cortex_r4_udiv): Likewise.
23313         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
23314         (cortex_a7_idiv): Likewise.
23315         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
23316         (9_mult2): Likewise.
23317         (9_mult3): Likewise.
23318         (9_mult4): Likewise.
23319         (9_mult5): Likewise.
23320         (9_mult6): Likewise.
23321         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
23322         (cortex_a53_sdiv): Likewise.
23323         (cortex_a53_udiv): Likewise.
23324         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
23325         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
23326         (mp626_mult2): Likewise.
23327         (mp626_mult3): Likewise.
23328         (mp626_mult4): Likewise.
23329         * config/arm/fa526.md (526_mult1): Update attribute change.
23330         (526_mult2): Likewise.
23331         * config/arm/arm-generic.md (mult): Update attribute change.
23332         (mult_ldsched_strongarm): Likewise.
23333         (mult_ldsched): Likewise.
23334         (multi_cycle): Likewise.
23335         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
23336         * config/arm/fa606te.md (606te_mult1): Update attribute change.
23337         (606te_mult2): Likewise.
23338         (606te_mult3): Likewise.
23339         (606te_mult4): Likewise.
23340         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
23341         (cortex_a9_mac16): Likewise.
23342         (cortex_a9_multiply): Likewise.
23343         (cortex_a9_mac): Likewise.
23344         (cortex_a9_multiply_long): Likewise.
23345         * config/arm/fa626te.md (626te_mult1): Update attribute change.
23346         (626te_mult2): Likewise.
23347         (626te_mult3): Likewise.
23348         (626te_mult4): Likewise.
23350 2013-06-18  Richard Biener  <rguenther@suse.de>
23352         PR lto/57334
23353         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
23355 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23357         PR target/57609
23358         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23359         with next_active_insn.
23361 2013-06-18  Alan Modra  <amodra@gmail.com>
23363         * config/rs6000/rs6000.h (enum data_align): New.
23364         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
23365         (DATA_ABI_ALIGNMENT): Define.
23366         (CONSTANT_ALIGNMENT): Correct comment.
23367         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
23368         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
23370 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
23372         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
23373         ATTRIBUTE_UNUSED marking.
23375 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
23377         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
23378         alternative and update.
23379         (aarch64_dup_lanedi): Delete.
23380         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
23381         * config/aarch64/aarch64-simd-builtins.def: Update.
23383 2013-06-17  Richard Biener  <rguenther@suse.de>
23385         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
23386         (lto_input_scc): Declare.
23387         (lto_input_tree_1): Likewise.
23388         (struct lto_stats_d): Add num_tree_bodies_output and
23389         num_pickle_refs_output.
23390         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
23391         (lto_read_tree_1): Split out from ...
23392         (lto_read_tree): ... this.
23393         (lto_input_scc): New function.
23394         (lto_input_tree_1): Split out from ...
23395         (lto_input_tree): ... this.  Handle LTO_tree_scc.
23396         (lto_data_in_create): Create the streamer cache without hashes.
23397         * lto-streamer-out.c (create_output_block): Create the streamer
23398         cache with hashes when not doing WPA.
23399         (lto_write_tree_1): Split out from ...
23400         (lto_write_tree): ... this.
23401         (get_symbol_initial_value): New function.
23402         (lto_output_tree_1): Split out from ...
23403         (lto_output_tree): ... this.  Write trees as series of SCCs
23404         using a DFS walk via DFS_write_tree.
23405         (struct sccs, struct scc_entry): New types.
23406         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
23407         (DFS_write_tree_body): New function.
23408         (DFS_write_tree): Likewise.
23409         (hash_tree): Likewise.
23410         (scc_entry_compare): Likewise.
23411         (hash_scc): Likewise.
23412         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
23413         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
23414         TREE_CHAIN as regular reference.
23415         (streamer_read_integer_cst): Remove.
23416         (streamer_get_pickled_tree): Adjust.
23417         * tree-streamer-out.c (streamer_write_chain): Disable streaming
23418         of DECL_EXTERNALs in BLOCK_VARS for now.
23419         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
23420         reference.
23421         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
23422         Add hash value argument and record that if hashes are recorded
23423         in the cache.
23424         (streamer_tree_cache_insert_1): Adjust.
23425         (streamer_tree_cache_insert): Likewise.
23426         (streamer_tree_cache_insert_at): Rename to ...
23427         (streamer_tree_cache_replace_tree): ... this and adjust.
23428         (streamer_tree_cache_append): Adjust.
23429         (record_common_node): Likewise.
23430         (streamer_tree_cache_create): Add argument whether to
23431         record hash values together with trees.
23432         (streamer_tree_cache_delete): Adjust.
23433         * tree-streamer.h (struct streamer_tree_cache_d): Add
23434         vector of hashes.
23435         (streamer_read_integer_cst): Remove.
23436         (streamer_tree_cache_insert): Adjust.
23437         (streamer_tree_cache_append): Likewise.
23438         (streamer_tree_cache_insert_at): Rename to ...
23439         (streamer_tree_cache_replace_tree): ... this and adjust.
23440         (streamer_tree_cache_create): Add argument whether to record hashes.
23441         (streamer_tree_cache_get): Rename to ...
23442         (streamer_tree_cache_get_tree): ... this.
23443         (streamer_tree_cache_get_hash): New function.
23444         * tree.c (cache_integer_cst): New function.
23445         * tree.h (cache_integer_cst): Declare.
23446         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
23447         * lto-symtab.c (lto_varpool_replace_node): Only release
23448         DECL_INITIAL of non-prevailing decls.
23449         * varpool.c (varpool_remove_initializer): Do not release
23450         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
23452 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
23454         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
23455         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
23456         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
23457         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
23458         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
23459         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
23460         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
23461         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
23462         instead of TARGET_64BIT.
23463         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
23464         Require ISA_HAS_<D>DIV.
23466 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
23468         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
23469         (mips*-*-linux*): Move default with_llsc setting to where other
23470         defaults are set.
23471         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
23472         with_arch block.
23473         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
23474         Likewise.  Remove default with_tune setting.  Move default float
23475         setting to its own block.  Handle with_llsc in the same block as above.
23477 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
23479         PR rtl-optimization/57425
23480         PR rtl-optimization/57569
23481         * alias.c (write_dependence_p): Add new parameters mem_mode,
23482         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
23483         Changed all callers.
23484         (canon_anti_dependence): New function.
23485         * cse.c (check_dependence): Use canon_anti_dependence.
23486         * cselib.c (cselib_invalidate_mem): Likewise.
23487         * rtl.h (canon_anti_dependence): Declare.
23489 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
23491         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
23492         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
23493         ".set mips3" for 64-bit targets.
23495 2013-06-15  Dehao Chen  <dehao@google.com>
23497         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
23498         * gimple-low.c (gimple_check_call_matching_types): Likewise.
23499         (gimple_check_call_args): Likewise.
23500         * value-prof.c (check_ic_target): Likewise.
23501         * ipa-inline.c (early_inliner): Likewise.
23502         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
23503         * cgraph.c (cgraph_create_edge_1): Likewise.
23504         (cgraph_make_edge_direct): Likewise.
23506 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23508         PR target/57615
23509         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
23510         rs6000_output_move_128bit to handle emitting quad memory
23511         operations.  Set attribute length to 8 bytes.
23513 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
23515         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
23516         New pattern.
23517         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
23518         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
23519         (aarch64_<su>mlsl<mode>): Likewise.
23521 2013-06-14  Mike Stump  <mikestump@comcast.net>
23523         * Makefile.in (TARGET_H): Add insn-codes.h.
23525 2013-06-14  Alan Modra  <amodra@gmail.com>
23527         PR middle-end/57134
23528         PR middle-end/57586
23529         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
23530         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
23531         bitfield expansion when EXPAND_MEMORY.
23532         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
23534 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
23536         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23537         test for clearing quad memory on 32-bit later.
23539 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
23541         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
23542         (fold_negate_expr): Likewise.
23543         (fold_real_zero_addition_p): Handle vectors.
23544         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
23546 2013-06-14  Alan Modra  <amodra@gmail.com>
23548         * varasm.c (force_const_mem): Revert 2013-06-07 change.
23550 2013-06-13  Jan Hubicka  <jh@suse.cz>
23552         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
23553         Local comdats are not externally visible.
23554         * symtab.c (dump_symtab_base): Dump externally visible.
23555         (verify_symtab_base): Verify back links in the symtab hash.
23557 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
23559         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
23560         CONVERT_EXPR as equal nodes.
23562 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
23564         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
23566 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
23568         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
23569         Generalize to complex and vector.
23570         * tree.c (build_all_ones_cst): New function.
23571         * tree.h (build_all_ones_cst): Declare it.
23573 2013-06-13  Alan Modra  <amodra@gmail.com>
23575         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
23576         * config/rs6000/rs6000.md (signbittf2): New insn.
23577         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
23578         (abstf2_internal, cmptf_internal2): Likewise.
23579         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
23581 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
23582             Pat Haugen  <pthaugen@us.ibm.com>
23583             Peter Bergner  <bergner@vnet.ibm.com>
23585         * config/rs6000/rs6000.c (emit_load_locked): Add support for
23586         power8 byte, half-word, and quad-word atomic instructions.
23587         (emit_store_conditional): Likewise.
23588         (rs6000_expand_atomic_compare_and_swap): Likewise.
23589         (rs6000_expand_atomic_op): Likewise.
23591         * config/rs6000/sync.md (larx): Add new modes for power8.
23592         (stcx): Likewise.
23593         (AINT): New mode iterator to include TImode as well as normal
23594         integer modes on power8.
23595         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
23596         that VSX registers are not considered.  Use AINT mode iterator
23597         instead of INT1 to allow inclusion of quad word atomic operations
23598         on power8.
23599         (load_locked<mode>): Likewise.
23600         (store_conditional<mode>): Likewise.
23601         (atomic_compare_and_swap<mode>): Likewise.
23602         (atomic_exchange<mode>): Likewise.
23603         (atomic_nand<mode>): Likewise.
23604         (atomic_fetch_<fetchop_name><mode>): Likewise.
23605         (atomic_nand_fetch<mode>): Likewise.
23606         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
23607         each type.
23608         (ATOMIC): On power8, add QImode, HImode modes.
23609         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
23610         modes that promote to SImode.
23611         (load_lockedti): Convert TImode arguments to PTImode, so that we
23612         get a guaranteed even/odd register pair.
23613         (load_lockedpti): Likewise.
23614         (store_conditionalti): Likewise.
23615         (store_conditionalpti): Likewise.
23617         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
23618         atomic load/store instructions.
23619         (HSI): Likewise.
23621 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
23623         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
23624         loads.
23625         (insn_count): New attribute, with most cases extracted from...
23626         (length): ...here.  Redefine most cases in terms of insn_count.
23627         (single_insn): Delete.
23628         (can_delay): Use insn_count to check for single instructions.
23629         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
23630         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
23631         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
23632         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
23633         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
23634         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
23635         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
23636         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
23637         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
23638         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
23639         rather than "length".
23640         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
23641         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
23642         Use "insn_count" rather than "length".
23643         * config/mips/mips-dsp.md
23644         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
23645         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
23646         length attributes.
23648 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
23650         PR tree-optimization/57361
23651         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
23653 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
23655         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
23656         to split.
23657         (aarch64_simd_combine<mode>): New instruction expansion.
23658         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
23659         function prototype.
23660         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
23661         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
23663 2013-06-12  Jan Hubicka  <jh@suse.cz>
23665         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
23666         decl has when in streaming stage.
23667         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
23668         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
23670 2013-06-12  Roland Stigge  <stigge@antcom.de>
23672         PR target/57578
23673         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
23675 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
23677         PR tree-optimization/57537
23678         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
23679         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
23681 2013-06-12  Richard Biener  <rguenther@suse.de>
23683         * data-streamer.h (streamer_write_char_stream): CSE
23684         obs->current_pointer.
23685         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
23686         streamer_write_char_stream manually and optimize the resulting loop.
23687         (streamer_write_hwi_stream): Likewise.
23689 2013-06-12  Jan Hubicka  <jh@suse.cz>
23691         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
23692         * cgraph.h (varpool_create_empty_node): Declare.
23693         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
23694         duplicated nodes.
23695         * symtab.c (symtab_unregister_node): Be lax about missin entries
23696         in node hash.
23697         (symtab_get_node): Update comment.
23698         * varpool.c (varpool_create_empty_node): Break out from ...
23699         (varpool_node_for_decl): ... here.
23700         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
23702 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
23704         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
23705         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
23706         part.  Use straight-line flow at the end.
23707         <COMPONENT_REF>: Remove superfluous else.
23708         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
23710 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
23712         PR target/56564
23713         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
23714         target hook even for !TREE_PUBLIC decls.  If no resolution info
23715         is available, return false for common and external decls.
23717 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23719         * config/rl78/constraints.md (U): New constraint.
23720         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
23721         valloc attribute.
23723 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
23725         PR target/57589
23726         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
23727         to allow returning address to AT_PLATFORM name.
23729 2013-06-11  Jan Hubicka  <jh@suse.cz>
23731         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
23732         * cgraph.h (symtab_node_base): Add weakref flag.
23733         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
23734         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
23735         (output_weakrefs): Use weakref flag.
23736         * fold-const.c (simple_operand_p): Handle WEAK.
23737         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
23738         * ipa.c (varpool_externally_visible_p): Drop weakref.
23739         (function_and_variable_visibility): Update comment; fix weakref
23740         sanity checks; do not clear DECL_WEAK on them.
23741         * lto-cgraph.c (lto_output_node): update.
23742         (lto_output_varpool_node): Update.
23743         (input_overwrite_node): Update.
23744         (input_node): Update.
23745         (input_varpool_node): Update.
23746         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
23747         (lto_symtab_merge_symbols): Add sanity check.
23748         (lto_symtab_prevailing_decl): Do not special case weakrefs.
23749         * passes.c (rest_of_decl_compilation): Set static flag, too.
23750         * symtab.c (dump_symtab_base): Dump weakref.
23751         (verify_symtab_base): Sanity check weakrefs.
23752         (symtab_make_decl_local): Remove duplicated code.
23753         (symtab_alias_ultimate_target): Simplify.
23754         * varpool.c (varpool_create_variable_alias): Set weakref flag.
23756 2013-06-11  Tom de Vries  <tom@codesourcery.com>
23758         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
23759         sequence_vect == NULL.
23761 2013-06-11  DJ Delorie  <dj@redhat.com>
23763         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
23764         (rl78_unwind_word_mode): New.
23766 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
23768         * final.c (debug_prefix_maps): Make static.
23770 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
23772         * function.c (initial_trampoline): Remove stray copy.
23774 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
23776         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
23778 2013-06-11  Martin Jambor  <mjambor@suse.cz>
23780         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
23781         within bounds at the beginning of the function.
23783 2013-06-11  Alan Modra  <amodra@gmail.com>
23785         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
23786         reporting.
23787         (get_named_section): Don't NULL !DECL_P decl.
23789 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
23791         * doc/invoke.texi (core-avx2): Document.
23792         (slm): Likewise.
23793         (atom): Updated with MOVBE.
23795 2013-06-11  Richard Biener  <rguenther@suse.de>
23797         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
23799 2013-06-11  Anton Blanchard  <anton@samba.org>
23801         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
23802         correct shift value in little-endian mode.
23804 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
23806         PR target/56564
23807         * varasm.c (get_variable_align): Move #endif to the right place.
23809 2013-06-10  Cary Coutant  <ccoutant@google.com>
23811         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
23812         for hash so that hash table traversal order is deterministic.
23814 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
23815             Pat Haugen  <pthaugen@us.ibm.com>
23816             Peter Bergner  <bergner@vnet.ibm.com>
23818         * config/rs6000/vector.md (GPR move splitter): Do not split moves
23819         of vectors in GPRS if they are direct moves or quad word load or
23820         store moves.
23822         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
23823         declaration.
23824         (direct_move_p): Likewise.
23825         (quad_load_store_p): Likewise.
23827         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
23828         classes into bins based on the physical register type.
23829         (reg_class_to_reg_type): Likewise.
23830         (IS_STD_REG_TYPE): Likewise.
23831         (IS_FP_VECT_REG_TYPE): Likewise.
23832         (reload_fpr_gpr): Arrays to determine what insn to use if we can
23833         use direct move instructions.
23834         (reload_gpr_vsx): Likewise.
23835         (reload_vsx_gpr): Likewise.
23836         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
23837         information that is a simplification of register classes.  Also
23838         precalculate direct move reload helpers.
23839         (direct_move_p): New function to return true if the operation can
23840         be done as a direct move instruciton.
23841         (quad_load_store_p): New function to return true if the operation
23842         is a quad memory operation.
23843         (rs6000_legitimize_address): If quad memory, only allow register
23844         indirect for TImode addresses.
23845         (rs6000_legitimate_address_p): Likewise.
23846         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
23847         (rs6000_reload_register_type): Likewise.
23848         (register_to_reg_type): Return register type.
23849         (rs6000_secondary_reload_simple_move): New helper function for
23850         secondary reload and secondary memory needed to identify anything
23851         that is a simple move, and does not need reloading.
23852         (rs6000_secondary_reload_direct_move): New helper function for
23853         secondary reload to identify cases that can be done with several
23854         instructions via the direct move instructions.
23855         (rs6000_secondary_reload_move): New helper function for secondary
23856         reload to identify moves between register types that can be done.
23857         (rs6000_secondary_reload): Add support for quad memory operations
23858         and for direct move.
23859         (rs6000_secondary_memory_needed): Likewise.
23860         (rs6000_debug_secondary_memory_needed): Change argument names.
23861         (rs6000_output_move_128bit): New function to return the move to
23862         use for 128-bit moves, including knowing about the various
23863         limitations of quad memory operations.
23865         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
23866         memory operations.  call rs6000_output_move_128bit for the actual
23867         instruciton(s) to generate.
23868         (vsx_movti_64bit): Likewise.
23870         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
23871         (UNSPEC_P8V_MTVSRWZ): Likewise.
23872         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
23873         (UNSPEC_P8V_MTVSRD): Likewise.
23874         (UNSPEC_P8V_XXPERMDI): Likewise.
23875         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
23876         (UNSPEC_FUSION_GPR): Likewise.
23877         (FMOVE128_GPR): New iterator for direct move.
23878         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
23879         (f32_sv): Likewise.
23880         (f32_dm): Likewise.
23881         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
23882         loads and direct move instructions.
23883         (zero_extendsidi2_lfiwzx): Likewise.
23884         (extendsidi2_lfiwax): Likewise.
23885         (extendsidi2_nocell): Likewise.
23886         (floatsi<mode>2_lfiwax): Likewise.
23887         (lfiwax): Likewise.
23888         (floatunssi<mode>2_lfiwzx): Likewise.
23889         (lfiwzx): Likewise.
23890         (fix_trunc<mode>_stfiwx): Likewise.
23891         (fixuns_trunc<mode>_stfiwx): Likewise.
23892         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
23893         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
23894         (parity<mode>2_cmpb): Set length/type attr.
23895         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
23896         for 'mr.' to fast_compare.
23897         (bpermd_<mode>): Change type attr to popcnt.
23898         (p8_fmrgow_<mode>): New insns for power8 direct move support.
23899         (p8_mtvsrwz_1): Likewise.
23900         (p8_mtvsrwz_2): Likewise.
23901         (reload_fpr_from_gpr<mode>): Likewise.
23902         (p8_mtvsrd_1): Likewise.
23903         (p8_mtvsrd_2): Likewise.
23904         (p8_xxpermdi_<mode>): Likewise.
23905         (reload_vsx_from_gpr<mode>): Likewise.
23906         (reload_vsx_from_gprsf): Likewise.
23907         (p8_mfvsrd_3_<mode>): LIkewise.
23908         (reload_gpr_from_vsx<mode>): Likewise.
23909         (reload_gpr_from_vsxsf): Likewise.
23910         (p8_mfvsrd_4_disf): Likewise.
23911         (multi-word GPR splits): Do not split direct moves or quad memory
23912         operations.
23914 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
23916         * tree-into-ssa.c (interesting_blocks): Make static.
23918 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
23920         PR target/56564
23921         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
23922         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
23923         Use DATA_ABI_ALIGNMENT for that case instead if defined.
23924         (get_variable_align): New function.
23925         (get_variable_section, emit_bss, emit_common,
23926         assemble_variable_contents, place_block_symbol): Use
23927         get_variable_align instead of DECL_ALIGN.
23928         (assemble_noswitch_variable): Add align argument, use it
23929         instead of DECL_ALIGN.
23930         (assemble_variable): Adjust caller.  Use get_variable_align
23931         instead of DECL_ALIGN.
23932         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
23933         caller.
23934         (DATA_ABI_ALIGNMENT): Define.
23935         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
23936         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
23937         opt is false, only return the psABI mandated alignment increase.
23938         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
23939         (DATA_ABI_ALIGNMENT): ... this.
23940         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
23941         (DATA_ABI_ALIGNMENT): ... this.
23942         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
23943         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
23944         (DATA_ABI_ALIGNMENT): ... this.
23945         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
23946         * doc/tm.texi: Regenerated.
23948 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
23950         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
23951         cmp_code to construct REG_EQUAL note.
23953 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
23955         PR target/57568
23956         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
23957         that operands[2] doesn't overlap with operands[0].
23959 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
23960             Jan Hubicka  <jh@suse.cz>
23962         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
23963         hack to mark symbols as used.
23965 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
23967         PR rtl-optimization/57559
23968         * lra-constraints.c (process_alt_operands): Don't discourage
23969         memory with known offset for offsetable memory constraint.
23970         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
23972 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
23974         * varasm.c (struct oc_local_state): Reorder fields.
23975         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
23976         and adjust accordingly.
23977         (output_constructor): Reorder initialization code and adjust call to
23978         output_constructor_bitfield.
23980 2013-06-07  Jan Hubicka  <jh@suse.cz>
23982         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
23984 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
23986         * tree-object-size.c (unknown): Make const.
23988 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23990         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
23991         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
23992         for last alternative in the cpu_facility attribute.
23994 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23996         PR target/56315
23997         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
23998         (xordi3): Change operand 2 constraint to arm_xordi_operand.
23999         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24000         * config/arm/constraints.md (Dg): New constraint.
24001         * config/arm/neon.md (xordi3_neon): Remove.
24002         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24003         * config/arm/predicates.md (arm_xordi_operand): New predicate.
24005 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24007         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24008         Clean up alternatives.
24010 2013-06-07  Alan Modra  <amodra@gmail.com>
24012         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24013         va_list_gpr_size.
24015 2013-06-07  Alan Modra  <amodra@gmail.com>
24017         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24019 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24021         * config/arm/constraints.md (Df): New constraint.
24022         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24023         Correct length attribute for last two alternatives.
24025 2013-06-07  Alan Modra  <amodra@gmail.com>
24027         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24028         override user -mfp-in-toc.
24029         (offsettable_ok_by_alignment): Consider just the current access
24030         rather than the whole object, unless BLKmode.  Handle
24031         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24032         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24033         for -mcmodel=medium.
24034         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24035         override user -mfp-in-toc or -msum-in-toc.  Default to
24036         -mno-fp-in-toc for -mcmodel=medium.
24038 2013-06-06  DJ Delorie  <dj@redhat.com>
24040         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24041         TARGET_VALID_POINTER_MODE.
24043 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
24044             Pat Haugen  <pthaugen@us.ibm.com>
24045             Peter Bergner  <bergner@vnet.ibm.com>
24047         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24048         Document new power8 builtins.
24050         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24051         condition code register, to allow 128-bit logical operations to be
24052         done in the VSX or GPR registers.
24053         (nor<mode>3): Use the canonical form for nor.
24054         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24055         vclz*, and vpopcnt* vector instructions.
24056         (nand<mode>3): Likewise.
24057         (orc<mode>3): Likewise.
24058         (clz<mode>2): LIkewise.
24059         (popcount<mode>2): Likewise.
24061         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24062         that only the GPRs are recognized.
24064         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24065         support for new power8 builtins.
24067         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24068         builtin functions.
24069         (xscvdpspn): Likewise.
24070         (vclz): Likewise.
24071         (vclzb): Likewise.
24072         (vclzh): Likewise.
24073         (vclzw): Likewise.
24074         (vclzd): Likewise.
24075         (vpopcnt): Likewise.
24076         (vpopcntb): Likewise.
24077         (vpopcnth): Likewise.
24078         (vpopcntw): Likewise.
24079         (vpopcntd): Likewise.
24080         (vgbbd): Likewise.
24081         (vmrgew): Likewise.
24082         (vmrgow): Likewise.
24083         (eqv): Likewise.
24084         (eqv_v16qi3): Likewise.
24085         (eqv_v8hi3): Likewise.
24086         (eqv_v4si3): Likewise.
24087         (eqv_v2di3): Likewise.
24088         (eqv_v4sf3): Likewise.
24089         (eqv_v2df3): Likewise.
24090         (nand): Likewise.
24091         (nand_v16qi3): Likewise.
24092         (nand_v8hi3): Likewise.
24093         (nand_v4si3): Likewise.
24094         (nand_v2di3): Likewise.
24095         (nand_v4sf3): Likewise.
24096         (nand_v2df3): Likewise.
24097         (orc): Likewise.
24098         (orc_v16qi3): Likewise.
24099         (orc_v8hi3): Likewise.
24100         (orc_v4si3): Likewise.
24101         (orc_v2di3): Likewise.
24102         (orc_v4sf3): Likewise.
24103         (orc_v2df3): Likewise.
24105         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24106         allow power8 quad mode in 64-bit.
24107         (rs6000_builtin_vectorized_function): Add support to vectorize
24108         ISA 2.07 count leading zeros, population count builtins.
24109         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24110         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24111         (builtin_function_type): Add vgbbd builtin function which takes an
24112         unsigned argument.
24113         (altivec_expand_vec_perm_const): Add support for new power8 merge
24114         instructions.
24116         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24117         that does not include TImdoe for use with 32-bit.
24118         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24119         instructions.
24120         (UNSPEC_VSX_CVDPSPN): Likewise.
24121         (vsx_xscvdpspn): Likewise.
24122         (vsx_xscvspdpn): Likewise.
24123         (vsx_xscvdpspn_scalar): Likewise.
24124         (vsx_xscvspdpn_directmove): Likewise.
24125         (vsx_and<mode>3): Split logical operations into 32-bit and
24126         64-bit. Add support to do logical operations on TImode as well as
24127         VSX vector types.  Allow logical operations to be done in either
24128         VSX registers or in general purpose registers in 64-bit mode.  Add
24129         splitters if GPRs were used. For AND, add clobber of CCmode to
24130         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
24131         encoding.
24132         (vsx_and<mode>3_32bit): Likewise.
24133         (vsx_and<mode>3_64bit): Likewise.
24134         (vsx_ior<mode>3): Likewise.
24135         (vsx_ior<mode>3_32bit): Likewise.
24136         (vsx_ior<mode>3_64bit): Likewise.
24137         (vsx_xor<mode>3): Likewise.
24138         (vsx_xor<mode>3_32bit): Likewise.
24139         (vsx_xor<mode>3_64bit): Likewise.
24140         (vsx_one_cmpl<mode>2): Likewise.
24141         (vsx_one_cmpl<mode>2_32bit): Likewise.
24142         (vsx_one_cmpl<mode>2_64bit): Likewise.
24143         (vsx_nor<mode>3): Likewise.
24144         (vsx_nor<mode>3_32bit): Likewise.
24145         (vsx_nor<mode>3_64bit): Likewise.
24146         (vsx_andc<mode>3): Likewise.
24147         (vsx_andc<mode>3_32bit): Likewise.
24148         (vsx_andc<mode>3_64bit): Likewise.
24149         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24150         and xxlorc instructions.
24151         (vsx_eqv<mode>3_64bit): Likewise.
24152         (vsx_nand<mode>3_32bit): Likewise.
24153         (vsx_nand<mode>3_64bit): Likewise.
24154         (vsx_orc<mode>3_32bit): Likewise.
24155         (vsx_orc<mode>3_64bit): Likewise.
24157         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24159         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24160         instruction.
24161         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24162         (p8_vmrgow): Likewise.
24163         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24164         GPRs to be split under VSX.
24165         (p8v_clz<mode>2): Add power8 count leading zero support.
24166         (p8v_popcount<mode>2): Add power8 population count support.
24167         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24168         support.
24170         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24171         instruction.
24173         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24174         builtin functions.
24175         (vec_nand): Likewise.
24176         (vec_vclz): Likewise.
24177         (vec_vclzb): Likewise.
24178         (vec_vclzd): Likewise.
24179         (vec_vclzh): Likewise.
24180         (vec_vclzw): Likewise.
24181         (vec_vgbbd): Likewise.
24182         (vec_vmrgew): Likewise.
24183         (vec_vmrgow): Likewise.
24184         (vec_vpopcnt): Likewise.
24185         (vec_vpopcntb): Likewise.
24186         (vec_vpopcntd): Likewise.
24187         (vec_vpopcnth): Likewise.
24188         (vec_vpopcntw): Likewise.
24190 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24192         PR rtl-optimization/57468
24193         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24194         spilled pseudos.
24196 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24198         PR rtl-optimization/57459
24199         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24200         type when setting live regs.
24202 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24204         * config/s390/s390.opt (mlra): New option.
24205         * config/s390/s390.c (s390_decompose_address): Check displacement
24206         for all registers for LRA.
24207         (s390_secondary_reload): Don't used secondary reloads for LRA.
24208         (s390_lra_p): New function.
24209         (TARGET_LRA_P): Define.
24210         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24211         of attribute cpu_facility to zarch for the last alternative.
24212         (*cmpmem_short): Ditto.
24214 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
24216         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
24217         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
24218         (arm_expand_prologue): Likewise.
24220 2013-06-06  Teresa Johnson  <tejohnson@google.com>
24222         PR c++/53743
24223         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
24224         as this is now done by redirect_edge_and_branch_force.
24225         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
24226         barriers, and fix interaction with splitting.
24227         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
24228         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
24229         reflect changes made in the routine.
24230         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
24231         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
24232         since this is called in cfglayout mode, and replace partition fixup
24233         with assert as that is now done by force_nonfallthru_and_redirect.
24234         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24235         already be marked with region crossing note.
24236         (insert_section_boundary_note): Make non-static, gate on flag
24237         has_bb_partition, rewrite to also check for multiple partitions.
24238         (rest_of_handle_reorder_blocks): Remove call to
24239         insert_section_boundary_note, now done later during free_cfg.
24240         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24241         * bb-reorder.h (insert_section_boundary_note): Declare.
24242         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24243         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24244         invoke insert_section_boundary_note.
24245         (try_redirect_by_replacing_jump): Remove unnecessary
24246         check for region crossing note.
24247         (fixup_partition_crossing): New function.
24248         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24249         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24250         in non-cfglayout mode.
24251         (force_nonfallthru_and_redirect): Fixup partition boundaries,
24252         remove old code that tried to do this. Emit barrier correctly
24253         when we are in cfglayout mode.
24254         (last_bb_in_partition): New function.
24255         (rtl_split_edge): Correctly fixup partition boundaries.
24256         (commit_one_edge_insertion): Remove old code that tried to
24257         fixup region crossing edge since this is now handled in
24258         split_block, and set up insertion point correctly since
24259         block may now end in a jump.
24260         (verify_hot_cold_block_grouping): Guard against checking when not in
24261         linearized RTL mode.
24262         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24263         notes.
24264         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24265         rtl_verify_flow_info, so not called in cfglayout mode.
24266         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24267         (fixup_reorder_chain): Remove old code that attempted to fixup region
24268         crossing note as this is now handled in force_nonfallthru_and_redirect.
24269         (duplicate_insn_chain): Don't duplicate switch section notes.
24270         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24271         note.
24272         * basic-block.h (emit_barrier_after_bb): Declare.
24274 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24276         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
24277         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
24278         arm_usatsihi): Adjust alternatives for arm_restrict_it.
24280 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24282         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
24283         where appropriate.
24284         * config/arm/ldmstm.md: Regenerate.
24286 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24288         * config/arm/sync.md (atomic_loaddi_1):
24289         Disable predication for arm_restrict_it.
24290         (arm_load_exclusive<mode>): Likewise.
24291         (arm_load_exclusivesi): Likewise.
24292         (arm_load_exclusivedi): Likewise.
24293         (arm_load_acquire_exclusive<mode>): Likewise.
24294         (arm_load_acquire_exclusivesi): Likewise.
24295         (arm_load_acquire_exclusivedi): Likewise.
24296         (arm_store_exclusive<mode>): Likewise.
24297         (arm_store_exclusive<mode>): Likewise.
24298         (arm_store_release_exclusivedi): Likewise.
24299         (arm_store_release_exclusive<mode>): Likewise.
24301 2013-06-06  Richard Biener  <rguenther@suse.de>
24303         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
24304         after LTO_null.
24305         (lto_tag_is_tree_code_p): Adjust.
24306         (lto_tag_is_gimple_code_p): Likewise.
24307         (lto_gimple_code_to_tag): Likewise.
24308         (lto_tag_to_gimple_code): Likewise.
24309         (lto_tree_code_to_tag): Likewise.
24310         (lto_tag_to_tree_code): Likewise.
24311         * data-streamer.h (streamer_write_hwi_in_range): Use
24312         uhwi streaming to stream the normalized range.
24313         (streamer_read_hwi_in_range): Likewise.
24315 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24317         * config/arm/arm.md (enabled_for_depr_it): New attribute.
24318         (predicable_short_it): Likewise.
24319         (predicated): Likewise.
24320         (enabled): Handle above.
24321         (define_cond_exec): Set predicated attribute to yes.
24323 2013-06-05  Mike Stump  <mikestump@comcast.net>
24325         * gdbinit.in (__FUNCTION__): Add.
24327 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
24329         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
24330         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
24332 2013-06-05  Jan Hubicka  <jh@suse.cz>
24334         * varasm.c (mark_decl_referenced): Revert the removal until targets
24335         are fixed.
24337 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
24339         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
24340         instead of mark_decl_referenced.
24342 2013-06-05  Jan Hubicka  <jh@suse.cz>
24344         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
24345         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
24346         and symtab_used_from_object_file_p.
24347         (cgraph_make_node_local_1): Clear forced_by_abi.
24348         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
24349         * cgraph.h (symtab_node_base): Add forced_by_abi.
24350         (decide_is_variable_needed): Remove.
24351         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
24352         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
24353         (decide_is_symbol_needed): ... this one; handle symbols in general;
24354         always analyze virtuals; honnor forced_by_abi.
24355         (cgraph_finalize_function): Update.
24356         (varpool_finalize_decl): Update.
24357         (symbol_defined_and_needed): Remove.
24358         (analyze_functions): Update.
24359         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24360         output_refs, input_overwrite_node): Handle forced_by_abi.
24361         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
24362         (address_taken_from_non_vtable_p): ... this one.
24363         (comdat_can_be_unshared_p_1): New function.
24364         (cgraph_comdat_can_be_unshared_p): Rename to ...
24365         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
24366         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
24367         (function_and_variable_visibility): Clear forced_by_abi as needed.
24368         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
24369         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
24370         * symtab.c (dump_symtab_base): Dump forced_by_abi.
24371         * varpool.c (decide_is_variable_needed): Remove.
24373 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24375         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
24376         (arm_option_override): Override arm_restrict_it where appropriate.
24377         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
24378         * config/arm/arm.opt (mrestrict-it): New command-line option.
24379         * doc/invoke.texi: Document -mrestrict-it.
24381 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24383         * tsan.c (tsan_atomic_table): Make const.
24385 2013-06-05  Richard Biener  <rguenther@suse.de>
24387         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
24388         index associated with the tree we are supposed to replace.
24389         * tree-streamer-out.c (pack_ts_base_value_fields): Output
24390         TREE_ASM_WRITTEN as zero for everything but SSA names.
24392 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24394         * tree-ssa-structalias.c (call_stmt_vars): Make static.
24396 2013-06-04  Jan Hubicka  <jh@suse.cz>
24398         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
24399         (input_node, input_varpool_node): Handle correctly external same
24400         body aliases.
24401         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
24402         nodes at ltrans stage.
24404 2013-06-04  Jan Hubicka  <jh@suse.cz>
24406         * ipa-inline.c (update_caller_keys): Fix availability test.
24407         (update_callee_keys): Likewise.
24408         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
24409         to follow ELF standard.
24411 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
24413         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
24414         (mips64r5900el-*-elf*): New configurations.
24415         * config/mips/mips-cpus.def (r5900): New processor.
24416         * config/mips/mips-tables.opt: Regenerate.
24417         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
24418         (mips_issue_rate): Handle PROCESSOR_R5900.
24419         (mips_reorg_process_insns): Force reorder mode for the R5900.
24420         * config/mips/mips.h (TARGET_MIPS5900): Define.
24421         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
24422         TARGET_MIPS5900.
24423         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
24424         TARGET_MIPS5900.
24425         * config/mips/mips.md (processor): Add r5900.
24426         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
24428 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24430         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
24431         into function to generate MOVI instruction.
24432         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
24433         (aarch64_preferred_simd_mode): Turn into wrapper.
24434         (aarch64_output_scalar_simd_mov_immediate): New function.
24435         * config/aarch64/aarch64-protos.h: Add prototype for above.
24437 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24439         * config/aarch64/aarch64.c (simd_immediate_info): Remove
24440         element_char member.
24441         (sizetochar): Return signed char.
24442         (aarch64_simd_valid_immediate): Remove elchar and other
24443         unnecessary variables.
24444         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
24445         Calculate element_char as required.
24446         * config/aarch64/aarch64-protos.h: Update and move prototype
24447         for aarch64_output_simd_mov_immediate.
24448         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
24449         Update arguments.
24451 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24453         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
24454         information completed by aarch64_simd_valid_immediate.
24455         (aarch64_legitimate_constant_p): Update arguments.
24456         (aarch64_simd_valid_immediate): Work with struct rather than many
24457         pointers.
24458         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
24459         (aarch64_simd_make_constant): Update arguments.
24460         (aarch64_output_simd_mov_immediate): Work with struct rather than
24461         many pointers.  Output immediate directly rather than as operand.
24462         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24463         Update prototype.
24464         * config/aarch64/constraints.md (Dn): Update arguments.
24466 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24468         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
24469         longer static.
24470         (aarch64_simd_immediate_valid_for_move): Remove.
24471         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
24472         (aarch64_simd_make_constant): Update call.
24473         (aarch64_output_simd_mov_immediate): Update call.
24474         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24475         Add prototype.
24476         * config/aarch64/constraints.md (Dn): Update call.
24478 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24480         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
24481         return type to bool for prototype.
24482         (aarch64_legitimate_constant_p): Check for true instead of not -1.
24483         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
24484         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
24486 2013-06-04  Catherine Moore  <clm@codesourcery.com>
24488         * config/mips/mips.opt (meva): New.
24489         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
24490         (ASM_SPEC): Handle -meva.
24491         * doc/invoke.texi (meva):  Document.
24493 2013-06-04  Alan Modra  <amodra@gmail.com>
24495         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
24496         constant output.
24498 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24500         * rtl.def: Add extra fourth optional field to define_cond_exec.
24501         * gensupport.c (process_one_cond_exec): Process attributes from
24502         define_cond_exec.
24503         * doc/md.texi: Document fourth field in define_cond_exec.
24505 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
24507         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
24508         out the processing order as in store_bit_field_1.
24510 2013-06-04  Jan Hubicka  <jh@suse.cz>
24512         PR middle-end/57500
24513         * cgraphunit.c (cgraph_process_same_body_aliases): Create
24514         non-VAR_DECL node if it does not exist yet.
24516 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
24518         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
24519         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
24520         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
24521         target_cpu_default setting.
24523 2013-06-03  Teresa Johnson  <tejohnson@google.com>
24525         * dumpfile.c (opt_info_switch_p): Change -fopt-info
24526         default to -fopt-info=optimized instead of all.
24527         * doc/invoke.texi: Ditto.
24528         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
24529         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
24530         (execute_vect_slp): Emit BB vectorization success under
24531         MSG_OPTIMIZED_LOCATIONS.
24532         * tree-vect-slp.c (vect_slp_transform_bb): Change
24533         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
24534         * tree-vect-loop.c (vect_transform_loop): Ditto.
24536 2013-06-03  Jason Merrill  <jason@redhat.com>
24538         PR c++/57415
24539         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24540         Use TARGET_EXPR for C++.
24542 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
24544         PR rtl-optimization/57268
24545         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
24546         if DEBUG_INSN_P (insn).
24548         Reapply
24549         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
24551         PR rtl-optimization/57268
24552         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24553         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24555 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24557         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
24558         (ix86_avoid_lea_for_addr): Likewise.
24559         (exact_dependency_1): Likewise.
24560         (ix86_adjust_cost): Likewise.
24561         (swap_top_of_ready_list): Fix formatting and !reload_completed check
24562         removed.
24563         (do_reorder_for_imul): Fix typo, formatting and
24564         !reload_completed check removed.
24565         (ix86_sched_reorder): Fix typo and formatting.
24566         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
24567         list.
24569 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
24571         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
24573 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
24575         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
24576         <STRING_CST>: Likewise.
24577         <VECTOR_CST>: Likewise.
24579 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
24580             Mikael Morin  <mikael@gcc.gnu.org>
24582         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
24583         * config.in: Regenerated.
24584         * configure: Regenerated.
24586 2013-06-01  Jan Hubicka  <jh@suse.cz>
24588         PR middle-end/57366
24589         * cgraphunit.c (compile): When weakref is not supported,
24590         set up transparent aliases before final output pass.
24591         * varasm.c (assemble_alias): Do not try to do it here.
24593 2013-06-01  Jan Hubicka  <jh@suse.cz>
24595         PR middle-end/57467
24596         * passes.c (for_per_function): Skip unanalyzed functions.
24598 2013-06-01  Jan Hubicka  <jh@suse.cz>
24600         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
24601         (lto_symtab_merge_symbols_1): ... this one.
24602         (lto_symtab_merge_cgraph_nodes): Rename to ...
24603         (lto_symtab_merge_symbols): ... this one; simplify.
24604         * cgraph.c (same_body_aliases_done): Rename to ...
24605         (cpp_implicit_aliases_done): ... this one.
24606         (cgraph_create_function_alias): Update.
24607         (cgraph_same_body_alias): Update.
24608         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
24609         (verify_edge_corresponds_to_fndecl): Simplify.
24610         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
24611         (cgraph_node): Remove same_body_alias.
24612         (varpool_node): Remove alias_of and extra_name_alias.
24613         (same_body_aliases_done): Rename to ..
24614         (cpp_implicit_aliases_done): ... this one.
24615         (symtab_alias_ultimate_target): Add default parameter.
24616         (symtab_resolve_alias): New function.
24617         (fixup_same_cpp_alias_visibility): Declare.
24618         (cgraph_function_node): Add default parameter.
24619         (cgraph_node_asm_name): Likewise.
24620         (cgraph_function_or_thunk_node): Add default parameter; do
24621         not ICE when it is NULL.
24622         (varpool_variable_node): Likewise.
24623         * tree-emutls.c (create_emultls_var): Update.
24624         (ipa_lower_emutls): Update.
24625         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
24626         (cgraph_reset_node): Reset alias info.
24627         (cgraph_finalize_function): Update.
24628         (fixup_same_cpp_alias_visibility): Move to symtab.c.
24629         (analyze_function): Simplify.
24630         (cgraph_process_same_body_aliases): Simplify.
24631         (analyze_functions): Fixup same body aliases.
24632         (handle_alias_pairs): Simplify.
24633         (assemble_thunk): Update.
24634         (assemble_thunks_and_aliases): Update.
24635         (output_weakrefs): Rewrite.
24636         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
24637         (lto_output_varpool_node): Likewise.
24638         (compute_ltrans_boundary): Remve assert.
24639         (get_alias_symbol): New functoin.
24640         (input_node): Rewrite alias handling.
24641         (input_varpool_node): Likewise.
24642         * ipa-pure-const.c (propagate_pure_const): Fix formating.
24643         * ipa.c (process_references): Handle weakrefs correctly.
24644         (symtab_remove_unreachable_nodes): Likewise.
24645         * trans-mem.c (get_cg_data): Update.
24646         (ipa_tm_create_version_alias): Update.
24647         (ipa_tm_execute): Update.
24648         * symtab.c (dump_symtab_base): Dump aliases.
24649         (verify_symtab_base): Verify aliases.
24650         (symtab_node_availability): New function.
24651         (symtab_alias_ultimate_target): Simplify.
24652         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
24653         handle all the fixup cases.
24654         (symtab_resolve_alias): New function.
24655         * passes.c (ipa_write_summaries): Handle weakrefs.
24656         * varpool.c (varpool_analyze_node): Simplify.
24657         (assemble_aliases): Update.
24658         (varpool_create_variable_alias): Simplify.
24659         (varpool_extra_name_alias): Simplify.
24660         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
24661         (lto_symtab_merge_symbols): ... this one.
24663 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
24665         Revert
24666         PR rtl-optimization/57268
24667         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24668         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24670 2013-06-01  Tobias Burnus  <burnus@net-b.de>
24672         Partially reverted:
24673         2013-05-31  Tobias Burnus  <burnus@net-b.de>
24675         PR middle-end/57073
24676         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
24677         further up.
24679 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
24681         PR rtl-optimization/57268
24682         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24683         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24685 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
24687         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
24688         unordered comparison operators when -fno-trapping-math is in effect
24689         on the e500.
24690         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
24691         and implement unordered comparison operators properly on the e500.
24693 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
24695         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
24696         for constant scalar integers.
24697         (simplify_relational_operation_1): Likewise.
24699 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
24701         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
24702         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
24703         Fix comment.
24705 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24706             Igor Zamyatin  <igor.zamyatin@intel.com>
24708         Silvermont (SLM) architecture performance tuning.
24709         * config/i386/i386.h (enum ix86_tune_indices): Add
24710         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
24711         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
24713         * config/i386/i386.c (initial_ix86_tune_features)
24714         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
24715         (ix86_lea_outperforms): Handle Silvermont tuning.
24716         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
24717         call.
24718         (ix86_use_lea_for_mov): Likewise.
24719         (ix86_avoid_lea_for_addr): Likewise.
24720         (ix86_lea_for_add_ok): Likewise.
24721         (exact_dependency_1): New function.
24722         (exact_store_load_dependency): Likewise.
24723         (ix86_adjust_cost): Handle Silvermont tuning.
24724         (do_reoder_for_imul): Likewise.
24725         (swap_top_of_ready_list): New function.
24726         (ix86_sched_reorder): Changed to handle Silvermont tuning.
24728         * config/i386/i386.md (peepholes that split memory operand in fp
24729         converts): New.
24731 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24733         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24734         Remove un-necessary braces.
24736 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24738         * config/aarch64/aarch64.c (aarch64_classify_symbol):
24739         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
24741 2013-05-31  Tobias Burnus  <burnus@net-b.de>
24743         PR middle-end/57073
24744         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
24746 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24748         PR target/56315
24749         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
24750         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
24751         * config/arm/neon.md (iordi3_neon): Remove.
24752         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
24753         * config/arm/predicates.md (imm_for_neon_logic_operand):
24754         Move to earlier in the file.
24755         (neon_logic_op2): Likewise.
24756         (arm_iordi_operand_neon): New predicate.
24758 2013-05-31  Richard Biener  <rguenther@suse.de>
24760         PR tree-optimization/57478
24761         PR tree-optimization/57453
24762         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
24763         are life as well.
24765 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24767         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
24768         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
24770 2013-05-30  Tobias Burnus  <burnus@net-b.de>
24771             Thomas Koenig  <tkoenig@gcc.gnu.org>
24773         PR middle-end/57073
24774         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
24775         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
24777 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
24779         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
24781 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
24783         * target.def (register_usage_leveling_p): New hook.
24784         * targhooks.c (default_register_usage_leveling_p): New.
24785         * targhooks.h (default_register_usage_leveling_p): New prototype.
24786         * lra-assigns.c (register_usage_leveling_p): Use the hook.
24787         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
24788         * doc/tm.texi: Update.
24789         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
24791 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
24793         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
24794         (*insv_reg<mode>): New define_insn.
24796 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
24798         PR rtl-optimization/57439
24799         * postreload.c (move2add_valid_value_p): Check that we have
24800         a zero subreg_regno_offset when accessing the register in
24801         the requested mode.
24803 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24804             Igor Zamyatin  <igor.zamyatin@intel.com>
24806         Silvermont (SLM) architecture pipeline model, tuning and
24807         insn selection.
24808         * config.gcc: Add slm config options and target.
24810         * config/i386/slm.md: New.
24812         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
24814         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
24815         PROCESSOR_SLM.
24816         (ix86_target_macros_internal): Likewise.
24818         * config/i386/i386.c (slm_cost): New cost.
24819         (m_SLM): New macro flag.
24820         (initial_ix86_tune_features): Set m_SLM.
24821         (x86_accumulate_outgoing_args): Likewise.
24822         (x86_arch_always_fancy_math_387): Likewise.
24823         (processor_target_table): Add slm cost.
24824         (cpu_names): Add slm cpu name.
24825         (x86_option_override_internal): Set SLM ISA.
24826         (ix86_issue_rate): New case PROCESSOR_SLM.
24827         (ia32_multipass_dfa_lookahead): Likewise.
24828         (fold_builtin_cpu): Add slm.
24830         * config/i386/i386.h (TARGET_SLM): New target macro.
24831         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
24832         (processor_type): Add PROCESSOR_SLM.
24834         * config/i386/i386.md (cpu): Add new value "slm".
24835         (slm.md): Include slm.md.
24837 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
24838             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24840         * config/arm/arm-protos.h: Add and update function protos.
24841         * config/arm/arm.c (use_simple_return_p): New added.
24842         (thumb2_expand_return): Check simple_return flag.
24843         * config/arm/arm.md: Add simple_return and conditional simple_return.
24844         * config/arm/iterators.md: Add iterator for return and simple_return.
24846 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24848         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
24849         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
24850         (arm_emit_vfp_multi_reg_pop): Likewise.
24851         (thumb2_emit_ldrd_pop): Likewise.
24852         (arm_expand_epilogue): Add misc REG_CFA notes.
24853         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
24855 2013-05-29  Lawrence Crowl  <crowl@google.com>
24857         * config/arm/t-arm: Update for below.
24859         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
24860         Change type to hash_table.  Update dependent calls and types.
24862         * config/i386/t-cygming: Update for below.
24864         * config/i386/t-interix: Update for below.
24866         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
24867         Change type to hash_table.  Update dependent calls and types.
24868         (i386_find_on_wrapper_list::wrappers): Likewise.
24870         * config/ia64/t-ia64: Update for below.
24872         * config/ia64/ia64.c (bundle_state_table):
24873         Change type to hash_table.  Update dependent calls and types.
24875         * config/mips/mips.c (mips_reorg_process_insns::htab):
24876         Change type to hash_table.  Update dependent calls and types.
24878         * config/sol2.c (solaris_comdat_htab):
24879         Change type to hash_table.  Update dependent calls and types.
24881         * config/t-sol2: Update for above.
24883 2013-05-29  Teresa Johnson  <tejohnson@google.com>
24885         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
24886         functions are not yet marked as defined.
24888 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
24889             Pat Haugen  <pthaugen@us.ibm.com>
24890             Peter Bergner  <bergner@vnet.ibm.com>
24892         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
24893         instructions.
24894         (VEC_A): Likewise.
24895         (VEC_C): Likewise.
24896         (vrotl<mode>3): Likewise.
24897         (vashl<mode>3): Likewise.
24898         (vlshr<mode>3): Likewise.
24899         (vashr<mode>3): Likewise.
24901         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24902         support for power8 V2DI builtins.
24904         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
24905         power8 V2DI builtins.
24906         (vupkhsw): Likewise.
24907         (vupklsw): Likewise.
24908         (vaddudm): Likewise.
24909         (vminsd): Likewise.
24910         (vmaxsd): Likewise.
24911         (vminud): Likewise.
24912         (vmaxud): Likewise.
24913         (vpkudum): Likewise.
24914         (vpksdss): Likewise.
24915         (vpkudus): Likewise.
24916         (vpksdus): Likewise.
24917         (vrld): Likewise.
24918         (vsld): Likewise.
24919         (vsrd): Likewise.
24920         (vsrad): Likewise.
24921         (vsubudm): Likewise.
24922         (vcmpequd): Likewise.
24923         (vcmpgtsd): Likewise.
24924         (vcmpgtud): Likewise.
24925         (vcmpequd_p): Likewise.
24926         (vcmpgtsd_p): Likewise.
24927         (vcmpgtud_p): Likewise.
24928         (vupkhsw): Likewise.
24929         (vupklsw): Likewise.
24930         (vaddudm): Likewise.
24931         (vmaxsd): Likewise.
24932         (vmaxud): Likewise.
24933         (vminsd): Likewise.
24934         (vminud): Likewise.
24935         (vpksdss): Likewise.
24936         (vpksdus): Likewise.
24937         (vpkudum): Likewise.
24938         (vpkudus): Likewise.
24939         (vrld): Likewise.
24940         (vsld): Likewise.
24941         (vsrad): Likewise.
24942         (vsrd): Likewise.
24943         (vsubudm): Likewise.
24945         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
24946         support for power8 V2DI instructions.
24948         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
24949         power8 V2DI instructions.  Combine pack and unpack insns to use an
24950         iterator for each mode.  Check whether a particular mode supports
24951         Altivec instructions instead of just checking TARGET_ALTIVEC.
24952         (UNSPEC_VPKUWUM): Likewise.
24953         (UNSPEC_VPKSHSS): Likewise.
24954         (UNSPEC_VPKSWSS): Likewise.
24955         (UNSPEC_VPKUHUS): Likewise.
24956         (UNSPEC_VPKSHUS): Likewise.
24957         (UNSPEC_VPKUWUS): Likewise.
24958         (UNSPEC_VPKSWUS): Likewise.
24959         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
24960         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
24961         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
24962         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
24963         (UNSPEC_VUPKHSB): Likewise.
24964         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
24965         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
24966         (UNSPEC_VUPKHSH): Likewise.
24967         (UNSPEC_VUPKLSB): Likewise.
24968         (UNSPEC_VUPKLSH): Likewise.
24969         (VI2): Likewise.
24970         (VI_char): Likewise.
24971         (VI_scalar): Likewise.
24972         (VI_unit): Likewise.
24973         (VP): Likewise.
24974         (VP_small): Likewise.
24975         (VP_small_lc): Likewise.
24976         (VU_char): Likewise.
24977         (add<mode>3): Likewise.
24978         (altivec_vaddcuw): Likewise.
24979         (altivec_vaddu<VI_char>s): Likewise.
24980         (altivec_vadds<VI_char>s): Likewise.
24981         (sub<mode>3): Likewise.
24982         (altivec_vsubcuw): Likewise.
24983         (altivec_vsubu<VI_char>s): Likewise.
24984         (altivec_vsubs<VI_char>s): Likewise.
24985         (altivec_vavgs<VI_char>): Likewise.
24986         (altivec_vcmpbfp): Likewise.
24987         (altivec_eq<mode>): Likewise.
24988         (altivec_gt<mode>): Likewise.
24989         (altivec_gtu<mode>): Likewise.
24990         (umax<mode>3): Likewise.
24991         (smax<mode>3): Likewise.
24992         (umin<mode>3): Likewise.
24993         (smin<mode>3): Likewise.
24994         (altivec_vpkuhum): Likewise.
24995         (altivec_vpkuwum): Likewise.
24996         (altivec_vpkshss): Likewise.
24997         (altivec_vpkswss): Likewise.
24998         (altivec_vpkuhus): Likewise.
24999         (altivec_vpkshus): Likewise.
25000         (altivec_vpkuwus): Likewise.
25001         (altivec_vpkswus): Likewise.
25002         (altivec_vpks<VI_char>ss): Likewise.
25003         (altivec_vpks<VI_char>us): Likewise.
25004         (altivec_vpku<VI_char>us): Likewise.
25005         (altivec_vpku<VI_char>um): Likewise.
25006         (altivec_vrl<VI_char>): Likewise.
25007         (altivec_vsl<VI_char>): Likewise.
25008         (altivec_vsr<VI_char>): Likewise.
25009         (altivec_vsra<VI_char>): Likewise.
25010         (altivec_vsldoi_<mode>): Likewise.
25011         (altivec_vupkhsb): Likewise.
25012         (altivec_vupkhs<VU_char>): Likewise.
25013         (altivec_vupkls<VU_char>): Likewise.
25014         (altivec_vupkhsh): Likewise.
25015         (altivec_vupklsb): Likewise.
25016         (altivec_vupklsh): Likewise.
25017         (altivec_vcmpequ<VI_char>_p): Likewise.
25018         (altivec_vcmpgts<VI_char>_p): Likewise.
25019         (altivec_vcmpgtu<VI_char>_p): Likewise.
25020         (abs<mode>2): Likewise.
25021         (vec_unpacks_hi_v16qi): Likewise.
25022         (vec_unpacks_hi_v8hi): Likewise.
25023         (vec_unpacks_lo_v16qi): Likewise.
25024         (vec_unpacks_hi_<VP_small_lc>): Likewise.
25025         (vec_unpacks_lo_v8hi): Likewise.
25026         (vec_unpacks_lo_<VP_small_lc>): Likewise.
25027         (vec_pack_trunc_v8h): Likewise.
25028         (vec_pack_trunc_v4si): Likewise.
25029         (vec_pack_trunc_<mode>): Likewise.
25031         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25032         V2DI builtins.
25033         (vec_vmaxsd): Likewise.
25034         (vec_vmaxud): Likewise.
25035         (vec_vminsd): Likewise.
25036         (vec_vminud): Likewise.
25037         (vec_vpksdss): Likewise.
25038         (vec_vpksdus): Likewise.
25039         (vec_vpkudum): Likewise.
25040         (vec_vpkudus): Likewise.
25041         (vec_vrld): Likewise.
25042         (vec_vsld): Likewise.
25043         (vec_vsrad): Likewise.
25044         (vec_vsrd): Likewise.
25045         (vec_vsubudm): Likewise.
25046         (vec_vupkhsw): Likewise.
25047         (vec_vupklsw): Likewise.
25049 2013-05-29  Jan Hubicka  <jh@suse.cz>
25051         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25052         flags; reorder rest of fields in more consistent way.
25053         (varpool_node): Remove analyzed, finalized and alias.
25054         (cgraph_ndoe): Likewise.
25055         (symtab_alias_ultimate_target): New function.
25056         (cgraph_function_node): Move offline.
25057         (cgraph_reset_node): Declare.
25058         (cgraph_comdat_can_be_unshared_p): Remove.
25059         (varpool_remove_initializer): Declare.
25060         (varpool_first_defined_variable, varpool_next_defined_variable
25061         cgraph_first_defined_function, cgraph_next_defined_function): Update.
25062         (cgraph_function_with_gimple_body_p): Update.
25063         (varpool_all_refs_explicit_p): Update.
25064         (symtab_alias_target): New function.
25065         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25066         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25067         (cgraph_function_or_thunk_node): Simplify using
25068         symtab_alias_ultimate_target.
25069         (varpool_variable_node): Likewise.
25070         * cgraph.c (cgraph_create_function_alias): Update.
25071         (cgraph_add_thunk): Update.
25072         (cgraph_remove_node): Update.
25073         (dump_cgraph_node): Do not dump removed flags.
25074         (cgraph_function_body_availability): Update.
25075         (cgraph_propagate_frequency): Update.
25076         (verify_cgraph_node): Check sanity of local flag.
25077         (cgraph_function_node): Move here from cgraph.h; revamp for
25078         cgraph_function_or_thunk_node.
25079         * lto-symtab.c (lto_varpool_replace_node): Update.
25080         (lto_symtab_resolve_can_prevail_p): Update.
25081         (lto_symtab_merge_cgraph_nodes): Update.
25082         * ipa-cp.c (determine_versionability, initialize_node_lattices,
25083         propagate_constants_accross_call, devirtualization_time_bonus,
25084         ipcp_propagate_stage): Update.
25085         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25086         * ipa-inline-transform.c (clone_inlined_nodes,
25087         preserve_function_body_p): Update.
25088         * ipa-reference.c (propagate): Update.
25089         (write_node_summary_p): Update.
25090         * toplev.c (wrapup_global_declaration_2): Update.
25091         * cgraphunit.c (cgraph_analyze_function): Rename to ...
25092         (analyze_function) ... this one.
25093         (cgraph_process_new_functions): Update.
25094         (cgraph_reset_node): Export.
25095         (cgraph_finalize_function): Update.
25096         (cgraph_add_new_function): Update.
25097         (process_function_and_variable_attributes): Update.
25098         (varpool_finalize_decl): Update.
25099         (symbol_finalized): Remove.
25100         (symbol_finalized_and_needed): Rename to ...
25101         (symbol_defined_and_needed): ... update.
25102         (cgraph_analyze_functions): Update.
25103         (handle_alias_pairs): Update.
25104         (mark_functions_to_output): Update.
25105         (assemble_thunk): Update.
25106         (output_in_order): Update.
25107         (output_weakrefs): Update.
25108         (finalize_compilation_unit): Update.
25109         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25110         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25111         input_node, input_varpool_node): Update.
25112         * dbxout.c (dbxout_expand_expr): Update.
25113         * cgraphclones.c (cgraph_clone_node): Update.
25114         (cgraph_copy_node_for_versioning): Update.
25115         (cgraph_materialize_clone): Update.
25116         (cgraph_materialize_all_clones): Update.
25117         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25118         propagate_pure_const, propagate_nothrow): Update.
25119         * lto-streamer-out.c (lto_output, write_symbol): Update.
25120         * ipa-utils.c (ipa_reverse_postorder): Update.
25121         * ipa-inline.c (can_inline_edge_p): Update.
25122         (update_caller_keys, ipa_inline): Update.
25123         * dwarf2out.c (reference_to_unused,
25124         premark_types_used_by_global_vars_helper): Update.
25125         * tree-eh.c (tree_could_trap_p): Update.
25126         * ipa-split.c (consider_split, execute_split_functions): Update.
25127         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25128         has_addr_references_p): Update; move ahead in file for better
25129         readability.
25130         (process_references): Simplify.
25131         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25132         bodies are removed.
25133         (cgraph_comdat_can_be_unshared_p): Make static.
25134         (cgraph_externally_visible_p): Update.
25135         (varpool_externally_visible_p): Update.
25136         (function_and_variable_visibility): Update.
25137         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25138         ipa_tm_mark_force_output_node): Update.
25139         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25140         estimate_edge_devirt_benefit, inline_generate_summary,
25141         inline_write_summary): Update.
25142         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25143         * ipa-prop.c (ipa_compute_jump_functions): Update.
25144         (ipa_print_node_params, ipa_prop_read_section,
25145         ipa_update_after_lto_read, read_replacements_section): Update.
25146         * varasm.c (mark_decl_referenced): Update.
25147         (assemble_alias, dump_tm_clone_pairs): Update.
25148         * tree-inline.c (copy_bb): Update.
25149         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25150         Update.
25151         * symtab.c (dump_symtab_base): Print new flags.
25152         (verify_symtab_base): Verify new flags.
25153         (symtab_alias_ultimate_target): New function.
25154         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25155         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25156         Update.
25157         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25158         Update.
25159         * i386.c (ix86_get_function_versions_dispatcher,
25160         ix86_generate_version_dispatcher_body): Update.
25161         (fold_builtin_cpu): Use varpool_add_new_variable.
25162         * varpool.c (varpool_remove_initializer): Break out from ...
25163         (varpool_remove_node): ... this one.
25164         (dump_varpool_node, varpool_node_for_asm,
25165         cgraph_variable_initializer_availability, varpool_analyze_node,
25166         varpool_assemble_decl, varpool_remove_unreferenced_decls,
25167         varpool_finalize_named_section_flags, varpool_create_variable_alias):
25168         Update.
25170 2013-05-29  Jan Hubicka  <jh@suse.cz>
25172         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25174 2013-05-29  Easwaran Raman  <eraman@google.com>
25176         PR tree-optimization/57442
25177         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25178         when control exits the main loop.
25180 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
25182         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25183         and RX600.
25184         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25185         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25186         * rx/t-rx: Add rx100 under multi library matches option for nofpu
25187         option.
25189 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25191         PR tree-optimization/57441
25192         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25193         Don't limit size of incr_vec to number of candidates.
25195 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
25197         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25198         and mips16 directories.
25199         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25200         (MULTILIB_DIRNAMES): Ditto.
25201         (MULTILIB_EXCEPTIONS): Add new exceptions.
25202         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25203         (MULTILIB_DIRNAMES): Ditto.
25204         (MULTILIB_EXCEPTIONS): Add new exceptions.
25206 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25207             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25209         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25210         SYMBOL_TINY_ABSOLUTE.
25211         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25212         SYMBOL_TINY_ABSOLUTE.
25213         (aarch64_expand_mov_immediate): Likewise.
25214         (aarch64_classify_symbol): Likewise.
25215         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
25216         Permit SYMBOL_TINY_ABSOLUTE.
25217         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
25219 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25220             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25222         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
25223         Refactor if/switch.  Replace gcc_assert with if.
25225 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25227         * config/i386/i386.c (initial_ix86_tune_features): Enable
25228         FP Reassociation for AMD bdver1 and bdver2.
25230 2013-05-29  Martin Jambor  <mjambor@suse.cz>
25232         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25233         and IMAGPART_EXPR do not occur within other handled_components.
25235 2013-05-29  Richard Biener  <rguenther@suse.de>
25237         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25238         access on whether the use is in the BB we currently try to
25239         vectorize.
25240         (vect_bb_vectorization_profitable_p): Pass the BB we currently
25241         vectorize to vect_bb_slp_scalar_cost.
25243 2013-05-29  Richard Biener  <rguenther@suse.de>
25245         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25246         computing scalar cost offsetted by stmts that are kept live
25247         by scalar uses.
25248         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25249         for computation of scalar cost.
25251 2013-05-28  Steve Ellcey  <sellcey@mips.com>
25253         * config/mips/mips-cpus.def (mips32r2): Change processor type.
25255 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
25257         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25258         array notation built-in reduction functions.
25259         * doc/passes.texi (Passes): Added documentation about changes done
25260         for Cilk Plus.
25261         * doc/invoke.texi (C Dialect Options): Added documentation about
25262         the -fcilkplus flag.
25263         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25264         (BUILTINS_DEF): Depend on cilkplus.def.
25265         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
25266         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25267         * cilkplus.def: New file.
25269 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
25271         PR rtl-optimization/57439
25272         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25274 2013-05-28  Easwaran Raman  <eraman@google.com>
25276         PR tree-optimization/57337
25277         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
25278         (find_insert_point): Correctly identify the insertion point
25279         when two statements with the same UID is compared.
25281 2013-05-28  Richard Biener  <rguenther@suse.de>
25283         PR tree-optimization/56787
25284         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
25285         from the list of data references.
25286         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
25287         clobbers.
25288         (vect_analyze_loop_operations): Likewise.
25289         (vect_transform_loop): Remove clobbers.
25291 2013-05-28  Martin Jambor  <mjambor@suse.cz>
25293         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
25294         and REALPART_EXPRs have scalar type.
25296 2013-05-28  Richard Biener  <rguenther@suse.de>
25298         PR tree-optimization/57411
25299         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
25300         virtual operands.
25301         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
25302         virtual operand propagation.
25304 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25306         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
25307         destination register for bmasksi_vis.
25308         (vector_init_bshuffle): Likewise.
25309         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
25311 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25313         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
25314         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
25315         mode if the instruction isn't available in the original mode.
25316         * config/sparc/sparc.opt (mfix-ut699): New option.
25317         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
25318         (divdf3): Turn into expander.
25319         (divdf3_nofix): New insn.
25320         (divdf3_fix): Likewise.
25321         (divsf3): Disable if -mfix-ut699.
25322         (sqrtdf2): Turn into expander.
25323         (sqrtdf2_nofix): New insn.
25324         (sqrtdf2_fix): Likewise.
25325         (sqrtsf2): Disable if -mfix-ut699.
25327 2013-05-27  Richard Biener  <rguenther@suse.de>
25329         PR middle-end/57412
25330         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
25331         block for the new loop.
25333 2013-05-27  Richard Biener  <rguenther@suse.de>
25335         PR tree-optimization/57343
25336         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
25337         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
25338         (number_of_iterations_cond): Do not build the folded tree.
25340 2013-05-27  Richard Biener  <rguenther@suse.de>
25342         Revert
25343         PR middle-end/57381
25344         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25345         OEP_CONSTANT_ADDRESS_OF retained.
25347         PR tree-optimization/57417
25348         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
25349         for unchanged base.
25350         (set_ssa_val_to): Compare addresses using
25351         get_addr_base_and_unit_offset.
25353 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
25355         PR rtl-optimization/56833
25356         * postreload.c (move2add_record_mode): New function.
25357         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
25358         (move2add_use_add2_insn): Use move2add_record_sym_value.
25359         (move2add_use_add3_insn): Likewise.
25360         (reload_cse_move2add): Use move2add_valid_value_p and
25361         move2add_record_mode.  Invalidate call-clobbered and REG_INC
25362         affected regs by setting reg_mode to VOIDmode.
25363         (move2add_note_store): Don't pretend the inside of a SUBREG is
25364         the actual destination.  Invalidate single/leading registers by
25365         setting reg_mode to VOIDmode.
25366         Use move2add_record_sym_value, move2add_valid_value_p and
25367         move2add_record_mode.
25369 2013-05-27  Richard Biener  <rguenther@suse.de>
25371         PR tree-optimization/57396
25372         * tree-affine.c (double_int_constant_multiple_p): Properly
25373         return false for val == 0 and div != 0.
25375 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25377         * config/mips/mips.h: Use #elif in preprocessor conditions.
25379 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25381         PR target/53916
25382         * config/mips/constraints.md (kl): New constraint.
25383         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
25384         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
25385         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
25386         from LO for MIPS16.
25387         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
25389 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25391         PR target/55777
25392         * config/mips/mips.c (mips_can_inline_p): New function.
25393         (TARGET_CAN_INLINE_P): Define.
25395 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
25397         * sched-int.h (ds_t, dw_t): Make unsigned int.
25398         Fix documentation that describes how all the ds_t bits are used.
25399         Reserve the last bit for delayed-branch scheduling.
25400         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
25401         (BITS_PER_DEP_WEAK): Fix definition and documentation.
25402         (gen_dep_weak_1): Remove prototype.
25403         * sched-deps.c (get_dep_weak_1): Make static.
25404         * target.def (speculate_insn, needs_block_p, gen_spec_check,
25405         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
25406         * doc/tm.texi: Regenerate.
25407         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
25409 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
25411         PR debug/56950
25412         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
25414 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
25415             Sandra Loosemore  <sandra@codesourcery.com>
25417         * config.gcc (powerpc-*): Allow native for with-cpu.
25419 2013-05-24  Jeff Law  <law@redhat.com>
25421         PR tree-optimization/57124
25422         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
25423         conversion feeding a condition if the range has an overflow
25424         if -fstrict-overflow.  Add warnings for when we do make the
25425         transformation.
25427 2013-05-24  Dehao Chen  <dehao@google.com>
25429         * tree-cfg.c (locus_discrim_map): Fix the typo.
25430         (locus_discrim_hasher): Likewise.
25431         (locus_discrim_hasher::hash): Likewise.
25432         (locus_discrim_hasher::equal): Likewise.
25434 2013-05-24  Martin Jambor  <mjambor@suse.cz>
25436         PR tree-optimization/57294
25437         * cgraph.h (ipa_record_stmt_references): Declare.
25438         * cgraphbuild.c (ipa_record_stmt_references): New function.
25439         (build_cgraph_edges): Use ipa_record_stmt_references.
25440         (rebuild_cgraph_edges): Likewise.
25441         (cgraph_rebuild_references): Likewise.
25442         * ipa-prop.c (ipa_modify_call_arguments): Discard references
25443         associated with the old statement and build references from the
25444         newly built statements.
25445         * ipa-ref.c (ipa_remove_stmt_references): New function.
25446         * ipa-ref.h (ipa_remove_stmt_references): Declare.
25448 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
25450         * lra-constraints.c (emit_spill_move): Use smaller mode for
25451         mem-mem moves.
25452         (check_and_process_move): Consider mem-reg moves for secondary
25453         too.
25454         (curr_insn_transform): Don't lose insns emitted before for
25455         secondary memory moves.
25456         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
25457         reg set up in the current insn.
25459 2013-05-24  Dehao Chen  <dehao@google.com>
25461         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25462         hash function.
25463         (locus_descrim_hasher::equal): Likewise.
25464         (build_gimple_cfg): New discriminator assignment algorithm.
25465         (make_edges): Likewise.
25466         (next_discriminator_for_locus): Likewise.
25467         (same_line_p): Likewise.
25468         (assign_discriminators): Likewise.
25469         (make_cond_expr_edges): Likewise.
25470         (make_gimple_switch_edges): Likewise.
25471         (make_goto_expr_edges): Likewise.
25472         (make_gimple_asm_edges): Likewise.
25474 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
25476         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
25477         X format specifier to only display bottom 16 bits.
25478         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
25479         immediate to match for operand 2, since it will be masked.
25481 2013-05-24  Richard Biener  <rguenther@suse.de>
25483         PR tree-optimization/57287
25484         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
25485         all SSA names that occur in abnormal PHIs.
25487 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25489         PR tree-ssa/57385
25490         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
25491         that index is not negative.
25493 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
25495         PR rtl-optimization/55177
25496         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
25497         (simplify_byte_swapping_operation): New.
25498         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
25499         (simplify_relational_operation_1): Deal with BSWAP.
25501 2013-05-23  Richard Henderson  <rth@redhat.com>
25503         PR target/56742
25504         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
25505         (ix86_reorg): Call it.
25507 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
25509         PR target/57379
25510         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
25511         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
25512         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
25514 2013-05-23  Christian Bruel  <christian.bruel@st.com>
25516         PR debug/57351
25517         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
25519 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25520             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25522         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
25523         * config/aarch64/constraints.md (Usa): Remove.
25524         * doc/md.texi (AArch64 Usa): Remove.
25526 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25527             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25529         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
25530         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
25531         * config/aarch64/predicates.md (aarch64_const_address): Remove.
25532         (aarch64_mov_operand): Use aarch64_mov_operand_p.
25534 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
25536         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
25537         instruction (AdvSIMD).
25538         * config/aarch64/aarch64-builtins.c
25539         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
25540         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
25542 2013-05-23  Martin Jambor  <mjambor@suse.cz>
25544         PR middle-end/57347
25545         * tree.h (contains_bitfld_component_ref_p): Declare.
25546         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
25547         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
25548         caller.
25549         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
25550         not access a bit-field.  Assert all final offsets are byte-aligned.
25552 2013-05-23  Richard Biener  <rguenther@suse.de>
25554         PR tree-optimization/57380
25555         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
25556         least one invariant or re-used load.
25557         * passes.c (init_optimization_passes): Move pass_phiprop before
25558         pass_forwprop.
25560 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
25562         * config/aarch64/aarch64-simd.md
25563         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
25565 2013-05-23  Richard Biener  <rguenther@suse.de>
25567         PR middle-end/57381
25568         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25569         OEP_CONSTANT_ADDRESS_OF retained.
25571 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
25573         PR middle-end/57344
25574         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
25575         don't lower unit.  Handle unit not being always BITS_PER_WORD.
25577 2013-05-23  Richard Biener  <rguenther@suse.de>
25579         PR rtl-optimization/57341
25580         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
25581         instead of true_dependence.
25583 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
25585         * bb-reorder.c (branch_threshold): Make const.
25586         (exec_threshold): Ditto.
25588 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
25589             Pat Haugen  <pthaugen@us.ibm.com>
25590             Peter Bergner  <bergner@vnet.ibm.com>
25592         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
25593         documentation for the power8 crypto builtins.
25595         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
25597         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
25598         macros for defining power8 builtin functions.
25599         (BU_P8V_AV_2): Likewise.
25600         (BU_P8V_AV_P): Likewise.
25601         (BU_P8V_VSX_1): Likewise.
25602         (BU_P8V_OVERLOAD_1): Likewise.
25603         (BU_P8V_OVERLOAD_2): Likewise.
25604         (BU_CRYPTO_1): Likewise.
25605         (BU_CRYPTO_2): Likewise.
25606         (BU_CRYPTO_3): Likewise.
25607         (BU_CRYPTO_OVERLOAD_1): Likewise.
25608         (BU_CRYPTO_OVERLOAD_2): Likewise.
25609         (XSCVSPDP): Fix typo, point to the correct instruction.
25610         (VCIPHER): Add power8 crypto builtins.
25611         (VCIPHERLAST): Likewise.
25612         (VNCIPHER): Likewise.
25613         (VNCIPHERLAST): Likewise.
25614         (VPMSUMB): Likewise.
25615         (VPMSUMH): Likewise.
25616         (VPMSUMW): Likewise.
25617         (VPERMXOR_V2DI): Likewise.
25618         (VPERMXOR_V4SI: Likewise.
25619         (VPERMXOR_V8HI: Likewise.
25620         (VPERMXOR_V16QI: Likewise.
25621         (VSHASIGMAW): Likewise.
25622         (VSHASIGMAD): Likewise.
25623         (VPMSUM): Likewise.
25624         (VPERMXOR): Likewise.
25625         (VSHASIGMA): Likewise.
25627         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25628         __CRYPTO__ if the crypto instructions are available.
25629         (altivec_overloaded_builtins): Add support for overloaded power8
25630         builtins.
25632         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
25633         support for power8 crypto builtins.
25634         (builtin_function_type): Likewise.
25635         (altivec_init_builtins): Add support for builtins that take vector
25636         long long (V2DI) arguments.
25638         * config/rs6000/crypto.md: New file, define power8 crypto
25639         instructions.
25641 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
25642             Pat Haugen  <pthaugen@us.ibm.com>
25643             Peter Bergner  <bergner@vnet.ibm.com>
25645         * doc/invoke.texi (Option Summary): Add power8 options.
25646         (RS/6000 and PowerPC Options): Likewise.
25648         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
25649         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
25650         wm, wn, wr documentation.
25652         * config/rs6000/constraints.md (wm): New constraint for VSX
25653         registers if direct move instructions are enabled.
25654         (wn): New constraint for no registers.
25655         (wq): New constraint for quad word even GPR registers.
25656         (wr): New constraint if 64-bit instructions are enabled.
25657         (wv): New constraint if power8 vector instructions are enabled.
25658         (wQ): New constraint for quad word memory locations.
25660         * config/rs6000/predicates.md (const_0_to_15_operand): New
25661         constraint for 0..15 for crypto instructions.
25662         (gpc_reg_operand): If VSX allow registers in VSX registers as well
25663         as GPR and floating point registers.
25664         (int_reg_operand): New predicate to match only GPR registers.
25665         (base_reg_operand): New predicate to match base registers.
25666         (quad_int_reg_operand): New predicate to match even GPR registers
25667         for quad memory operations.
25668         (vsx_reg_or_cint_operand): New predicate to allow vector logical
25669         operations in both GPR and VSX registers.
25670         (quad_memory_operand): New predicate for quad memory operations.
25671         (reg_or_indexed_operand): New predicate for direct move support.
25673         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
25674         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
25675         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
25676         (POWERPC_MASKS): Add power8 options.
25677         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
25678         various options.
25680         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25681         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
25683         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
25684         (-mpower8-fusion): New power8 options.
25685         (-mpower8-fusion-sign): Likewise.
25686         (-mpower8-vector): Likewise.
25687         (-mcrypto): Likewise.
25688         (-mdirect-move): Likewise.
25689         (-mquad-memory): Likewise.
25691         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
25692         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
25693         registers.
25694         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
25695         (rs6000_debug_vector_unit): Add p8_vector.
25696         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
25697         definitions.  Also print fusion state.
25698         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
25699         (rs6000_builtin_mask_calculate): Add power8 builtin support.
25700         (rs6000_option_override_internal): Add support for power8.
25701         (rs6000_common_init_builtins): Add debugging for skipped builtins
25702         if -mdebug=builtin.
25703         (rs6000_adjust_cost): Add power8 support.
25704         (rs6000_issue_rate): Likewise.
25705         (insn_must_be_first_in_group): Likewise.
25706         (insn_must_be_last_in_group): Likewise.
25707         (force_new_group): Likewise.
25708         (rs6000_register_move_cost): Likewise.
25709         (rs6000_opt_masks): Likewise.
25711         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
25712         power8 capable assembler, default to power7 options.
25713         (TARGET_DIRECT_MOVE): Likewise.
25714         (TARGET_CRYPTO): Likewise.
25715         (TARGET_P8_VECTOR): Likewise.
25716         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
25717         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
25718         (VECTOR_MEM_P8_VECTOR_P): Likewise.
25719         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
25720         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
25721         (TARGET_XSCVDPSPN): Likewise.
25722         (TARGET_XSCVSPDPN): Likewsie.
25723         (TARGET_SYNC_HI_QI): Likewise.
25724         (TARGET_SYNC_TI): Likewise.
25725         (MASK_CRYPTO): Likewise.
25726         (MASK_DIRECT_MOVE): Likewise.
25727         (MASK_P8_FUSION): Likewise.
25728         (MASK_P8_VECTOR): Likewise.
25729         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
25730         temporary used by some of the direct move instructions to get two FP
25731         temporary registers does not force creation of a stack frame.
25732         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
25733         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
25734         that any VSX registers are tieable, even if they are also an
25735         Altivec vector mode.
25736         (r6000_reg_class_enum): Add wm, wr, wv constraints.
25737         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
25738         (RS6000_BTM_CRYPTO): Likewise.
25739         (RS6000_BTM_COMMON): Likewise.
25741         * config/rs6000/rs6000.md (cpu attribute): Add power8.
25742         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
25743         (enum rs6000_vector): Add power8 vector support.
25745 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25747         PR target/19599
25748         PR target/57340
25749         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
25750         (any_sibcall_could_use_r3): this and handle indirect calls.
25751         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
25753 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25755         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
25757 2013-05-22  Richard Biener  <rguenther@suse.de>
25759         PR middle-end/57349
25760         * profile.c (branch_prob): Do not split blocks that are
25761         abnormally receiving from ECF_RETURNS_TWICE functions.
25763 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25765         * recog.c (offsettable_address_addr_space_p): Fix calculation of
25766         address mode.  Move pointer mode initialization to the same place.
25768 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25770         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
25771         while it has any effect.
25773 2013-05-21  Easwaran Raman  <eraman@google.com>
25775         PR tree-optimization/57322
25776         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
25777         UID of the statement added to the BB to be 1.
25779 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
25781         PR tree-optimization/57331
25782         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
25783         of conversion from pointer type to integral type with integer.
25785 2013-05-21  Martin Jambor  <mjambor@suse.cz>
25787         PR lto/57289
25788         * ipa-prop.c (ipa_read_node_info): Process param_used and
25789         controlled_uses in the same order as when writing.
25791 2013-05-21  Magnus Granberg  <baldrick@free.fr>
25793         PR plugins/56754
25794         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
25796 2013-05-21  Richard Biener  <rguenther@suse.de>
25798         PR tree-optimization/57318
25799         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
25800         estimate stmts with side-effects as likely eliminated.
25802 2013-05-21  Richard Biener  <rguenther@suse.de>
25804         PR tree-optimization/57330
25805         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
25806         preserve the call stmts fntype.
25808 2013-05-21  Richard Biener  <rguenther@suse.de>
25810         PR tree-optimization/57303
25811         * tree-ssa-sink.c (statement_sink_location): Improve killing
25812         stmt detection and properly handle self-assignments.
25814 2013-05-21  Christian Bruel  <christian.bruel@st.com>
25816         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
25817         spanning registers. LEAF_REG_REMAP is supported only for contiguous
25818         registers. Set register size out of the PARALLEL loop.
25820 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
25822         PR target/56547
25823         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
25824         (*fmasf4, *fmasf4_media): New insns.
25826 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25828         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
25829         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
25830         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
25831         (mips_idiv_insns): Update the comments to say that the returned
25832         instruction counts are in units of BASE_INSN_LENGTH.
25833         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
25834         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
25835         using 2 rather than 4 as the length of indirect MIPS16 and
25836         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
25837         length of a NOP.  Don't divide MIPS16 lengths by 2.
25838         (mips16_split_long_branches): Assume a branch is long if the
25839         length is greater than 4 rather than 8.
25840         * config/mips/mips.md (length): Give MIPS16 lengths directly,
25841         rather than multiplying them by 2.  Multiply instruction counts
25842         by BASE_INSN_LENGTH rather than 4.
25843         (*jump_mips16, tls_get_tp_mips16_<mode>)
25844         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
25846 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25848         * config/mips/mips.md (extended_mips16): Remove branch case.
25849         (length): Remove duplicated extended_mips16 test.
25851 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25853         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
25855 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
25857         * recog.h (Recog_data): Rename to...
25858         (recog_data_d): ...this.
25859         (recog_data): Update accordingly.
25860         * recog.c (recog_data): Likewise.
25861         * reload.c (save_recog_data): Likewise.
25862         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
25863         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
25865 2013-05-17  Julian Brown  <julian@codesourcery.com>
25867         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
25868         found in a REG_EQUAL note, invalidate it.
25870 2013-05-17  Easwaran Raman  <eraman@google.com>
25872         * tree-ssa-reassoc.c (find_insert_point): New function.
25873         (insert_stmt_after): Likewise.
25874         (get_def_stmt): Likewise.
25875         (ensure_ops_are_available): Likewise.
25876         (not_dominated_by): Likewise.
25877         (rewrite_expr_tree): Do not move statements beyond what is
25878         necessary. Remove call to swap_ops_for_binary_stmt...
25879         (reassociate_bb): ... and move it here.
25880         (build_and_add_sum): Assign UIDs for new statements.
25881         (linearize_expr): Likewise.
25882         (do_reassoc): Renumber gimple statement UIDs.
25884 2013-05-17  Jan Hubicka  <jh@suse.cz>
25886         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
25887         weakrefs.
25888         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
25889         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
25890         weakrefs.
25891         (output_weakrefs): Update.
25893 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
25894             Martin Jambor  <mjambor@suse.cz>
25896         PR middle-end/57276
25897         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
25898         value that corresponds to the given aggval is found in values vector.
25900 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
25902         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
25903         sse, sse2, sse3, ssse3 and sse4a flags to options.
25905 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
25907         * gengtype-state.c: (s_expr_writer): New class, to handle
25908         prettifying of output layout of s-expressions.
25909         (state_writer): New class, to write out gtype.state.
25910         (state_written_type_count): Move this variable into member data of
25911         state_writer.
25912         (s_expr_writer::s_expr_writer): New code: constructor for new class
25913         (state_writer::state_writer(): ditto
25914         (s_expr_writer::write_new_line): New function
25915         (s_expr_writer::write_any_indent): ditto
25916         (s_expr_writer::begin_s_expr): ditto
25917         (s_expr_writer::end_s_expr): ditto
25918         (write_state_fileloc): convert to method of state_writer...
25919         (state_writer:: write_state_fileloc): ...and use methods of
25920         s_expr_writer to write indentation into the gtype.state output file
25921         to visually represent the hierarchical structure of the list
25922         structures
25923         (write_state_fields): ditto, renaming to...
25924         (state_writer::write_state_fields)
25925         (write_state_a_string): ditto, renaming to...
25926         (state_writer::write_state_a_string)
25927         (write_state_string_option): ditto, renaming to...
25928         (state_writer::write_state_string_option)
25929         (write_state_type_option): ditto, renaming to...
25930         (state_writer::write_state_type_option)
25931         (write_state_nested_option): ditto, renaming to...
25932         (state_writer::write_state_nested_option)
25933         (write_state_option): ditto, renaming to...
25934         (state_writer::write_state_option)
25935         (write_state_options): ditto, renaming to...
25936         (state_writer::write_state_options)
25937         (write_state_lang_bitmap): ditto, renaming to...
25938         (state_writer::write_state_lang_bitmap)
25939         (write_state_version): ditto, renaming to...
25940         (state_writer::write_state_version)
25941         (write_state_scalar_type): ditto, renaming to...
25942         (state_writer::write_state_scalar_type)
25943         (write_state_string_type): ditto, renaming to...
25944         (state_writer::write_state_string_type)
25945         (write_state_undefined_type): ditto, renaming to...
25946         (state_writer::write_state_undefined_type)
25947         (write_state_struct_union_type): ditto, renaming to...
25948         (state_writer::write_state_struct_union_type)
25949         (write_state_struct_type): ditto, renaming to...
25950         (state_writer::write_state_struct_type)
25951         (write_state_user_struct_type): ditto, renaming to...
25952         (state_writer::write_state_user_struct_type)
25953         (write_state_lang_struct_type): ditto, renaming to...
25954         (state_writer::write_state_lang_struct_type)
25955         (write_state_param_struct_type): ditto, renaming to...
25956         (state_writer::write_state_param_struct_type)
25957         (write_state_pointer_type): ditto, renaming to...
25958         (state_writer::write_state_pointer_type)
25959         (write_state_array_type): ditto, renaming to...
25960         (state_writer::write_state_array_type)
25961         (write_state_gc_used): ditto, renaming to...
25962         (state_writer::write_state_gc_used)
25963         (write_state_common_type_content): ditto, renaming to...
25964         (state_writer::write_state_common_type_content)
25965         (write_state_type): ditto, renaming to...
25966         (state_writer::write_state_type)
25967         (write_state_pair_list): ditto, renaming to...
25968         (state_writer::write_state_pair_list)
25969         (write_state_pair): ditto, renaming to...
25970         (state_writer::write_state_pair)
25971         (write_state_typedefs): ditto, renaming to...
25972         (state_writer::write_state_typedefs)
25973         (write_state_structures): ditto, renaming to...
25974         (state_writer::write_state_structures)
25975         (write_state_param_structs): ditto, renaming to...
25976         (state_writer::write_state_param_structs)
25977         (write_state_variables): ditto, renaming to...
25978         (state_writer::write_state_variables)
25979         (write_state_srcdir): ditto, renaming to...
25980         (state_writer::write_state_srcdir)
25981         (write_state_files_list): ditto, renaming to...
25982         (state_writer::write_state_files_list)
25983         (write_state_languages): ditto, renaming to...
25984         (state_writer::write_state_languages)
25985         (write_state): create a state_writer instance and use it when
25986         writing out the state file
25988 2013-05-17  Mike Stump  <mikestump@comcast.net>
25990         PR rtl-optimization/57304
25991         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
25992         accessing DF_REF_REAL_LOC.
25994 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
25996         PR rtl-optimization/57281
25997         PR rtl-optimization/57300
25998         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
25999         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26000         what the other splitter did if the registers are dead.
26002 2013-05-17  Richard Biener  <rguenther@suse.de>
26004         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26005         MEM_REF offsets.
26007 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26009         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26010         linking.
26012 2013-05-17  Marek Polacek  <polacek@redhat.com>
26014         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26015         length when doing non-zero store of storing '\0' to '\0'.
26017 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26019         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26020         vect_external_def oprnd1 with loop_vinfo, try to emit
26021         optional cast, negation and and stmts on the loop preheader
26022         edge instead of into the pattern def seq.
26024         PR tree-optimization/57051
26025         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26026         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26028 2013-05-16  Nick Clifton  <nickc@redhat.com>
26030         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26031         (rl78_is_naked_func): New function.
26032         (rl78_expand_prologue): Skip prologue generation for naked functions.
26033         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26034         * doc/extend.texi (naked): Add RL78 to the list of processors
26035         that supports this attribute.
26037 2013-05-16  Jeff Law  <law@redhat.com>
26039         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26041 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26043         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26044         cache parameters using detect_caches_amd also for CYRIX,
26045         NSC and TM2 signatures.
26047 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26048             Dzianis Kahanovich  <mahatma@eu.by>
26050         PR target/45359
26051         PR target/46396
26052         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26053         VIA/Centaur processors and determine their cache parameters
26054         using detect_caches_amd.
26056 2013-05-16  Teresa Johnson  <tejohnson@google.com>
26058         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26059         (rtl_verify_edges): New function.
26060         (rtl_verify_bb_insns): Ditto.
26061         (rtl_verify_bb_pointers): Ditto.
26062         (rtl_verify_bb_insn_chain): Ditto.
26063         (rtl_verify_fallthru): Ditto.
26064         (rtl_verify_bb_layout): Ditto.
26065         (rtl_verify_flow_info_1): Outline checks into new functions.
26066         (rtl_verify_flow_info): Ditto.
26068 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
26070         * cfghooks.c (copy_bbs): Add update_dominance argument.
26071         * cfghooks.h (copy_bbs): Update prototype.
26072         * tree-cfg.c (gimple_duplicate_sese_region):
26073         Add update_dominance argument.
26074         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26075         * tree-ssa-loop-ch.c (copy_loop_headers): Update
26076         gimple_duplicate_sese_region call.
26077         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26078         Update copy_bbs call.
26079         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26080         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26082 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26084         * tree-vectorizer.h (NUM_PATTERNS): Increment.
26085         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26086         vect_recog_rotate_pattern.
26087         (vect_recog_rotate_pattern): New function.
26089 2013-05-16  Jason Merrill  <jason@redhat.com>
26091         * Makefile.in (LLINKER): New variable.
26092         (mostlyclean): Remove link mutex.
26093         * configure.ac: Handle --enable-link-mutex.
26094         * lock-and-run.sh: New script.
26096 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26098         PR target/19599
26099         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26100         for NULL decl.
26102 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26104         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26106 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
26108         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26109         * config/arm/arm.c (next_consecutive_mem): New function.
26110         (gen_movmem_ldrd_strd): Likewise.
26111         * config/arm/arm.md (movmemqi): Update condition and code.
26112         (unaligned_loaddi, unaligned_storedi): New patterns.
26114 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26116         * config.gcc: Obsolete *-*-solaris2.9*.
26117         * doc/install.texi (Specific, *-*-solaris2*): Document it.
26119 2013-05-16  Richard Biener  <rguenther@suse.de>
26121         * passes.c (init_optimization_passes): Move pass_parallelize_loops
26122         earlier, after GRAPHITE transforms and IV canonicalization.
26124 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26126         * omp-low.c (extract_omp_for_data): For collapsed loops,
26127         if at least one of the loops is known at compile time to
26128         iterate zero times, set count to 0.
26129         (expand_omp_regimplify_p): New function.
26130         (expand_omp_for_generic): For collapsed loops, if at least
26131         one of the loops isn't known to iterate at least once,
26132         add runtime check with setting count to 0.
26133         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26134         For unsigned types if it isn't known at compile time that
26135         the loop will iterate at least once, add runtime check to bypass
26136         the whole loop if initial condition isn't true.
26138 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
26140         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26142 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
26144         PR middle-end/57286
26145         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26146         transformations to avoid an infinite loop.
26148 2013-05-16  Marek Polacek  <polacek@redhat.com>
26150         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26152 2013-05-15  Leif Ekblad  <leif@rdos.net>
26154         * config/i386/i386.c (ix86_decompose_address): Use
26155         DEFAULT_TLS_SEG_REG to access TLS segment register.
26156         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26157         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26158         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26160 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
26162         PR target/57260
26163         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26164         sibling calls to functions that would normally be lazily bound,
26165         unless $gp is call-clobbered.
26167 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
26169         * config/i386/i386.c (ix86_option_override_internal): Update
26170         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
26171         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26172         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26173         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26174         of TARGET_3DNOW.
26175         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26177 2013-05-15  Andreas Schwab  <schwab@suse.de>
26179         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26180         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
26181         third operand.
26183 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26185         * loop-unroll.c (report_unroll_peel): Check decision before
26186         emitting unroll/peel message.
26188 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26190         * function.h (has_bb_partition): New rtl_data flag.
26191         (bb_reorder_complete): Ditto.
26192         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26193         instead of flag_reorder_blocks_and_partition.
26194         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26195         with some enhancements.
26196         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26197         * bb-reorder.c (connect_traces): Check for has_bb_partition
26198         instead of flag_reorder_blocks_and_partition.
26199         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26200         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26201         verify_hot_cold_block_grouping.
26202         (partition_hot_cold_basic_blocks): Set has_bb_partition.
26204 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26206         PR target/19599
26207         * config/arm/predicates.md (call_insn_operand): New predicate.
26208         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
26209         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26210         if insn is not a tail call.
26211         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26212         registers.
26213         * config/arm/arm.h (enum reg_class): New caller save register class.
26214         (REG_CLASS_NAMES): Likewise.
26215         (REG_CLASS_CONTENTS): Likewise.
26216         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
26217         without decls.
26219 2013-05-15  Richard Biener  <rguenther@suse.de>
26221         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
26222         of MSG_OPTIMIZED_LOCATIONS.
26223         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
26224         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
26225         message.
26226         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
26227         of MSG_OPTIMIZED_LOCATIONS.
26228         (execute_vect_slp): Likewise.
26229         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26230         (vect_create_cond_for_alias_checks): Likewise.
26231         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
26232         (vect_recog_widen_mult_pattern): Likewise.
26233         (vect_recog_widen_sum_pattern): Likewise.
26234         (vect_recog_over_widening_pattern): Likewise.
26235         (vect_recog_widen_shift_pattern): Likewise.
26236         (vect_recog_vector_vector_shift_pattern): Likewise.
26237         (vect_recog_divmod_pattern): Likewise.
26238         (vect_recog_mixed_size_cond_pattern): Likewise.
26239         (vect_recog_bool_pattern): Likewise.
26240         (vect_pattern_recog_1): Likewise.
26242 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26244         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26245         non-functions to builtin_unreachable.
26246         * ipa-inline-transform.c (inline_call): Do not assert estimates were
26247         correct when new direct edges were discovered.
26249 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26251         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26252         header, print symbol order instead of node uid, print more information
26253         about indirect edge targets.
26254         (ipa_make_edge_direct_to_target): Print symbol order instead of node
26255         uids.
26256         (ipa_make_edge_direct_to_target): Likewise.
26257         (remove_described_reference): Likewise.
26258         (propagate_controlled_uses): Likewise.
26259         (ipa_print_node_params): Also print symbol order.
26260         (ipcp_transform_function): Print symbol order instead of node uids.
26261         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26262         (cgraph_get_create_real_symbol_node): Likewise.
26263         * ipa-cp.c (print_lattice): Likewise.
26264         (print_all_lattices): Likewise.
26265         (determine_versionability): Likewise.
26266         (initialize_node_lattices): Likewise.
26267         (estimate_local_effects): Likewise.
26268         (update_profiling_info): Likewise.
26269         (create_specialized_node): Likewise.
26270         (perhaps_add_new_callers): Likewise.
26271         (decide_about_value): Likewise.
26272         (decide_whether_version_node): Likewise.
26273         (identify_dead_nodes): Likewise.
26274         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26275         (dump_inline_summary): Likewise.
26276         (estimate_node_size_and_time): Likewise.
26277         (inline_analyze_function): Likewise.
26278         * ipa-inline.c (report_inline_failed_reason): Likewise.
26279         (want_early_inline_function_p): Likewise.
26280         (edge_badness): Likewise.
26281         (update_edge_key): Likewise.
26282         (inline_small_functions): Likewise.  Add dumping of order to two other
26283         dumps.
26284         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
26285         instead of node uids.
26286         (propagate_pure_const): Likewise.
26287         (propagate_pure_const): Likewise.
26288         * ipa-utils.c (dump_cgraph_node_set): Likewise.
26289         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
26290         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
26291         of node uids.
26292         * tree-pretty-print.c (dump_function_header): Likewise.
26293         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
26294         Print symbol order instead of node uids.
26296 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26298         * config/s390/s390.c (s390_register_move_cost): Don't impose the
26299         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
26301 2013-05-15  Richard Biener  <rguenther@suse.de>
26303         PR tree-optimization/57275
26304         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
26305         return value for fail to do runtime alias checks for gather loads.
26307 2013-05-15  Jan Hubicka  <jh@suse.cz>
26309         PR lto/57038
26310         PR lto/47375
26311         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
26312         weakrefs are not external.
26313         (lto_symtab_merge_decls): Fix thinko when dealing with
26314         non-lto_symtab decls.
26315         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
26316         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
26317         * varpool.c (dump_varpool_node): Dump more flags.
26319 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26321         * config/i386/i386.c (processor_alias_table): Add instruction
26322         FSGSBASE for AMD bdver3 architecture.
26324 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26326         * tree.c (warn_deprecated_use): Print file:line using locus color.
26327         * diagnostic.c (diagnostic_report_current_module): Print file:line
26328         and file:line:column using locus color.
26330 2013-05-14  Mike Stump  <mikestump@comcast.net>
26332         * gdbinit.in: Add __null.
26334 2013-05-14  Mike Stump  <mikestump@comcast.net>
26336         * recog.h: Rename struct recog_data to Recog_data.
26337         * recog.c: Likewise.
26338         * reload.c (can_reload_into): Likewise.
26339         * config/picochip/picochip.c: Likewise.
26341 2013-05-14  Mike Stump  <mikestump@comcast.net>
26343         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
26345 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
26347         * resource.h (struct resources): Remove unch_memory member.
26348         (CLEAR_RESOURCE): Don't clear unch_memory.
26349         * resource.c (mark_referenced_resources): Don't set it.
26350         (mark_set_resources): Likewise.
26351         (mark_target_live_regs): Don't clear it.
26352         (init_resource_info): Likewise.
26353         * reorg.c (resource_conflicts_p): Don't compare it.
26354         (redundant_insn): Don't set it.
26356         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
26357         Remove prototypes.
26358         * emit-rtl.c (next_label): Remove unused function.
26359         (skip_consecutive_labels, link_cc0_insns): Move to ...
26360         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
26361         only place where these functions are used, and make them static.
26363 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26365         * fold-const.c (fold_negate_expr): Handle vectors.
26366         (fold_truth_not_expr): Make it static.
26367         (fold_invert_truthvalue): New static function.
26368         (invert_truthvalue_loc): Handle vectors. Do not call
26369         fold_truth_not_expr directly.
26370         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
26371         <TRUTH_NOT_EXPR>: Do not cast to boolean.
26372         (fold_comparison): Handle vector constants.
26373         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
26374         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
26375         * tree.h (fold_truth_not_expr): Remove declaration.
26377 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
26379         * config/aarch64/aarch64-simd.md
26380         (aarch64_vcond_internal<mode>): Rename to...
26381         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
26382         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
26383         float modes. Clarify all iterator modes.
26384         (vcond<mode><mode>): Use new name for vcond expanders.
26385         (vcond<v_cmp_result><mode>): Likewise.
26386         (vcondu<mode><mode>: Likewise.
26387         * config/aarch64/iterators.md (VDQF_COND): New.
26389 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26391         PR bootstrap/57266
26392         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
26393         variable for the shift amount. Check that we shift by non-negative
26394         amounts.
26396 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
26398         PR target/42017
26399         * config/arm/arm.h (EPILOGUE_USES): Only return true
26400         for LR_REGNUM after epilogue_completed.
26402 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
26404         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
26405         is error_mark_node.
26407 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26409         PR target/57261
26410         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
26411         and Solaris 11+/x86 with gld.
26412         * configure: Regenerate.
26414 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26416         * expmed.c (expand_shift_1): Canonicalize rotates by
26417         constant bitsize / 2 to bitsize - 1.
26418         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
26419         case ROTATERT>: Likewise.
26421         Revert:
26422         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
26424         * config/i386/i386.md (rotateinv): New code attr.
26425         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26426         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26427         roll $31, %eax, etc.
26429 2013-05-14  Richard Biener  <rguenther@suse.de>
26431         PR middle-end/57235
26432         * tree-eh.c (sink_clobbers): Give up for successors with
26433         multiple predecessors and no virtual uses.
26435 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
26437         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
26438         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
26440 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26442         PR middle-end/57251
26443         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
26444         the case when both op0 and op1 have VOIDmode.
26446 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
26448         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
26449         in multiply-accumulate mode.
26451 2013-05-13  Guozhi Wei  <carrot@google.com>
26453         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
26455 2013-05-13  Kai Tietz  <ktietz@redhat.com>
26457         PR target/56975
26458         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
26459         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
26460         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
26461         * config/i386/i386.c (ix86_option_override_internal): Likewise.
26462         (ix86_expand_prologue): Likewise.
26463         (ix86_expand_split_stack_prologue): Likewise.
26464         (legitimate_pic_address_disp_p): Likewise.
26465         (legitimize_pic_address): Likewise.
26466         (legitimize_tls_address): Likewise.
26467         (legitimize_pe_coff_symbol): Likewise.
26468         (output_pic_addr_const): Likewise.
26469         (construct_plt_address): Likewise.
26470         (ix86_expand_call): Likewise.
26471         (x86_output_mi_thunk): Likewise.
26472         (x86_function_profiler): Likewise.
26474 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
26476         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
26477         similar switch cases.
26478         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
26479         (aarch64_simd_mov_to_<mode>low): Delete.
26480         (aarch64_simd_mov_to_<mode>high): Delete.
26481         (move_lo_quad_<mode>): Add w<-r alternative.
26482         (aarch64_simd_move_hi_quad_<mode>): Likewise.
26483         (aarch64_simd_mov_from_*): Update type attribute.
26484         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
26485         statement.
26487 2013-05-13  Jan Hubicka  <jh@suse.cz>
26489         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
26490         * config/i386/i386.c (ix86_compute_frame_layout,
26491         ix86_expand_epilogue, emit_i387_cw_initialization,
26492         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
26493         ix86_local_alignment): Fix use of size/speed predicates.
26495 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
26497         PR tree-optimization/45216
26498         PR tree-optimization/57157
26499         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
26500         the (-Y) & (B - 1) variant if OP is |.
26501         * expmed.c (expand_shift_1): For rotations by const0_rtx just
26502         return shifted.  Use (-op1) & (prec - 1) as other_amount
26503         instead of prec - op1.
26505 2013-05-13  Martin Jambor  <mjambor@suse.cz>
26507         PR middle-end/42371
26508         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
26509         (ipa_constant_data): New type.
26510         (ipa_jump_func): Use ipa_constant_data to hold information about
26511         constant jump functions.
26512         (ipa_get_jf_constant): Adjust to jump function type changes.
26513         (ipa_get_jf_constant_rdesc): New function.
26514         (ipa_param_descriptor): New field controlled_uses.
26515         (ipa_get_controlled_uses): New function.
26516         (ipa_set_controlled_uses): Likewise.
26517         * ipa-ref.h (ipa_find_reference): Declare.
26518         * ipa-prop.c (ipa_cst_ref_desc): New type.
26519         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
26520         changes.
26521         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
26522         New parameter cs.  Adjust all callers.
26523         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
26524         (remove_described_reference): New function.
26525         (jfunc_rdesc_usable): Likewise.
26526         (try_make_edge_direct_simple_call): Decrement controlled use count,
26527         attempt to remove reference if it hits zero.
26528         (combine_controlled_uses_counters): New function.
26529         (propagate_controlled_uses): Likewise.
26530         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
26531         (ipa_edge_duplication_hook): Duplicate reference descriptions.
26532         (ipa_print_node_params): Print described use counter.
26533         (ipa_write_jump_function): Adjust to jump function type changes.
26534         (ipa_read_jump_function): New parameter CS, pass it to
26535         ipa_set_jf_constant.  Adjust caller.
26536         (ipa_write_node_info): Stream controlled use count
26537         (ipa_read_node_info): Likewise.
26538         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
26539         asserting.
26540         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
26541         count.  Remove cloning-added reference if it reaches zero.
26542         * ipa-ref.c (ipa_find_reference): New function.
26544 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26546         * config/i386/i386.c (processor_target_table): Modified default
26547         alignment values for AMD BD and BT architectures.
26549 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
26551         * tree-vect-generic.c (uniform_vector_p): Move ...
26552         * tree.c (uniform_vector_p): ... here.
26553         * tree.h (uniform_vector_p): Declare it.
26554         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
26555         into a scalar.
26557 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
26559         PR tree-optimization/57230
26560         * tree-ssa-strlen.c (handle_char_store): Record length for
26561         array store from STRING_CST.
26563         PR tree-optimization/57230
26564         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
26565         check.
26567 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
26569         * config/epiphany/epiphany.c (epiphany_init): Check size of
26570         NUM_MODES_FOR_MODE_SWITCHING.
26571         (epiphany_expand_prologue):
26572         Remove CONFIG_REGNUM initial value handling code.
26573         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
26574         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
26575         (emit_set_fp_mode, epiphany_mode_after): Likewise.
26576         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
26577         Don't return 1 for FP_MODE_NONE.
26578         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
26579         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
26580         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
26581         * config/epiphany/epiphany.md (save_config): New pattern.
26583 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
26585         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
26587 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
26589         * config/i386/i386.md (memory): Handle sseishft1.
26590         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
26591         (*vec_extractv2di_1): Ditto.
26593 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
26595         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
26596         saved registers.
26598 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26600         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
26601         Add mthumb/march=armv7-a multilib.
26602         Add mthumb/march=armv7-r multilib.
26603         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
26605 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
26607         * config/v850/t-rtems: Add more multilibs.
26609 2013-05-10  Richard Biener  <rguenther@suse.de>
26611         PR tree-optimization/57214
26612         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
26613         not propagate from SSA names that occur in abnormal PHI nodes.
26615 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
26617         * stor-layout.c (element_precision): New function.
26618         * machmode.h (element_precision): Declare it.
26619         * tree.c (build_minus_one_cst): New function.
26620         (element_precision): Likewise.
26621         * tree.h (build_minus_one_cst): Declare new function.
26622         (element_precision): Likewise.
26623         * fold-const.c (operand_equal_p): Use element_precision.
26624         (fold_binary_loc): Handle vector types.
26625         * convert.c (convert_to_integer): Use element_precision.
26626         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
26627         separately.
26629 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
26631         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
26632         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
26633         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
26634         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26635         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
26636         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
26637         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
26638         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26639         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
26640         (Uuw8): New constraints.
26641         (Usb4): Move into alphabetical order.
26642         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
26643         (sd8_operand, ub8_operand, uw8_operand): New predicates.
26644         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
26645         previously unnamed patterns.
26646         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
26647         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
26648         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
26649         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
26650         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
26651         of specific lengths.
26653 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
26655         * config/i386/i386.md (rotateinv): New code attr.
26656         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26657         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26658         roll $31, %eax, etc.
26660         PR tree-optimization/45216
26661         PR tree-optimization/57157
26662         * tree-ssa-forwprop.c (simplify_rotate): New function.
26663         (ssa_forward_propagate_and_combine): Call it.
26665 2013-05-10  Richard Biener  <rguenther@suse.de>
26667         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
26668         disable peeling when we version for aliasing.
26669         (vector_alignment_reachable_p): Honor explicit user alignment.
26670         (vect_supportable_dr_alignment): Likewise.
26671         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
26672         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
26673         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
26674         then peeling to arrange for the cost-model check to come first.
26676 2013-05-10  Alan Modra  <amodra@gmail.com>
26678         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
26679         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
26680         * configure: Regenerate.
26682 2013-05-10  Alan Modra  <amodra@gmail.com>
26684         PR target/55033
26685         * varasm.c (default_elf_select_section): Move !DECL_P check..
26686         (get_named_section): ..to here before calling get_section_name.
26687         Adjust assertion.
26688         (default_section_type_flags): Add DECL_P check.
26689         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
26690         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
26692 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
26694         * config/epiphany/epiphany.c (epiphany_expand_prologue):
26695         When using gen_stack_adjust_str with a register offset, add a
26696         REG_FRAME_RELATED_EXPR note.
26698 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
26700         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
26701         (*vec_extractv4si_zext_mem): Ditto.
26702         (*vec_extractv2di): Add 0->x and x->x alternatives.
26703         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
26704         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
26706 2013-05-09  Jason Merrill  <jason@redhat.com>
26708         N3639 C++1y VLA support
26709         * gimplify.c (gimplify_vla_decl): Don't touch an existing
26710         DECL_VALUE_EXPR.
26712         * tree.c (build_constructor_va): New.
26713         * tree.h: Declare it.
26715 2013-05-09  Martin Jambor  <mjambor@suse.cz>
26717         PR lto/57084
26718         * gimple-fold.c (canonicalize_constructor_val): Call
26719         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
26721 2013-05-09  Jan Hubicka  <jh@suse.cz>
26722             Richard Biener  <rguenther@suse.de>
26724         PR lto/54095
26725         * symtab.c (symtab_make_decl_local): Do not add private names.
26727 2013-05-09  Jan Hubicka  <jh@suse.cz>
26729         PR lto/54095
26730         * symtab.c (insert_to_assembler_name_hash): Handle clones.
26731         (unlink_from_assembler_name_hash): Likewise.
26732         (symtab_prevail_in_asm_name_hash, symtab_register_node,
26733         symtab_unregister_node, symtab_initialize_asm_name_hash,
26734         change_decl_assembler_name): Update.
26736 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
26738         * config/aarch64/aarch64.md: New movtf split.
26739         (*movtf_aarch64): Update.
26740         (aarch64_movdi_tilow): Handle TF modes and rename to
26741         aarch64_movdi_<mode>low.
26742         (aarch64_movdi_tihigh): Handle TF modes and rename to
26743         aarch64_movdi_<mode>high
26744         (aarch64_movtihigh_di): Handle TF modes and rename to
26745         aarch64_mov<mode>high_di
26746         (aarch64_movtilow_di): Handle TF modes and rename to
26747         aarch64_mov<mode>low_di
26748         (aarch64_movtilow_tilow): Remove spurious whitespace.
26749         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
26750         splits.
26751         (aarch64_print_operand): Update.
26753 2013-05-09  Alan Modra  <amodra@gmail.com>
26755         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
26756         powerpc64le.
26757         * configure: Regenerate.
26759 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
26761         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
26762         splitter preparation statements.
26763         * config/i386/sse.md (*vec_extract* splitters): Ditto.
26764         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
26765         adjust_address_nv.
26767 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26769         * gimple-ssa-strength-reduction.c (count_candidates): Change
26770         return value to int.
26771         (analyze_candidates_and_replace): Change type of length to int.
26773 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
26775         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
26776         (*vec_extract<mode>): Use VI12_128 mode iterator.
26777         (*vec_extract<mode>_mem): Ditto.
26778         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
26779         attribute.
26781 2013-05-08  Diego Novillo  <dnovillo@google.com>
26783         PR bootstrap/54659
26785         Revert:
26786         2012-08-17  Diego Novillo  <dnovillo@google.com>
26788         PR bootstrap/54281
26789         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
26790         * config.in: Regenerate.
26791         * configure: Regenerate.
26792         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
26794 2013-05-08  Jan Hubicka  <jh@suse.cz>
26796         PR lto/54095
26797         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
26798         * cgraph.h (symtab_node_base): Add unique_name.
26799         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
26800         input_overwrite_node, input_varpool_node): Stream unique_name.
26801         * cgraphclones.c (cgraph_create_virtual_clone,
26802         cgraph_function_versioning): Set unique_name.
26803         * ipa.c (function_and_variable_visibility): Set unique_name.
26805 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26807         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
26808         (alloc_cand_and_find_basis): Restrict conditional candidate
26809         processing to CAND_MULTs.
26811 2013-05-08  Jan Hubicka  <jh@suse.cz>
26813         PR lto/54095
26814         lto-symtab.c (lto_symtab_symbol_p): New function.
26815         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
26816         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
26817         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
26818         Skip static symbols.
26820 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
26822         PR tree-optimization/57200
26823         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
26824         Only call inform if the preceding warning_at returns true.
26826 2013-05-07  Han Shen  <shenhan@google.com>
26828         * cfgexpand.c (record_or_union_type_has_array_p): New function.
26829         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
26830         * common.opt (fstack-protector-strong): New option.
26831         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
26832         * doc/invoke.texi (Optimization Options): Document
26833         "-fstack-protector-strong".
26834         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
26836 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
26838         * config/mips/mips.c (mips_machine_reorg2): Return 0.
26840 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
26842         * ira.c (update_equiv_regs): Add insn having equiv memory even if
26843         it is not lhs of the insn.
26844         (setup_reg_equiv): Remove insn having equiv memory which it is not
26845         lhs of the insn.
26846         * lra-constraints.c (process_address): Try to improve generation
26847         code for address base + disp.
26848         (lra_constraints): Make correct the code for checking insn setting
26849         up backward equivalence.  Remove insn only if it is in the init
26850         insn list.
26851         * lra-eliminations.c (update_reg_eliminate): Change return value.
26852         (lra_eliminate): Use the result.
26854 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
26856         * config/i386/sse.md (ssescalarnummask): New mode attribute.
26857         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
26858         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
26859         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
26860         register target operands.
26861         (*vec_extractv8hi_sse2): New pattern.
26862         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
26863         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
26864         (*vec_extract<mode>_mem): New insn and split pattern.
26866 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
26868         * config/arm/arm.c (arm_asan_shadow_offset): New function.
26869         (TARGET_ASAN_SHADOW_OFFSET): Define.
26870         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
26871         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
26873 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26875         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
26876         (incr_vec_index): Return -1 if increment not found.
26877         (create_add_on_incoming_edge): Assert if increment not found.
26878         (record_increment): Limit number of increments recorded.
26879         (all_phi_incrs_profitable): Return false if an increment not found.
26880         (replace_profitable_candidates): Don't process increments that were
26881         not recorded.
26882         (analyze_candidates_and_replace): Limit size of incr_vec.
26884 2013-05-07  Richard Biener  <rguenther@suse.de>
26886         * calls.c (special_function_p): setjmp-like functions are leaf.
26887         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
26888         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
26890 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
26892         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
26893         (aarch64_simd_mov<mode>): New expander.
26894         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
26895         (aarch64_simd_mov_to_<mode>high): Likewise.
26896         (aarch64_simd_mov_from_<mode>low): Likewise.
26897         (aarch64_simd_mov_from_<mode>high): Likewise.
26898         (aarch64_dup_lane<mode>): Update.
26899         (aarch64_dup_lanedi): New instruction pattern.
26900         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
26901         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
26903 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26905         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
26906         (replace_mult_candidate): Remove unnecessary argument; remove
26907         unnecessary parameter from call to introduce_cast_before_cand.
26908         (replace_unconditional_candidate): Remove unnecessary parameter
26909         from call to replace_mult_candidate.
26910         (replace_conditional_candidate): Likewise.
26911         (insert_initializers): Use make_temp_ssa_name.
26912         (introduce_cast_before_cand): Remove unnecessary argument; use
26913         make_temp_ssa_name.
26914         (replace_one_candidate): Remove unnecessary argument; remove
26915         unnecessary parameter from calls to introduce_cast_before_cand.
26916         (replace_profitable_candidates): Remove unnecessary parameters
26917         from calls to replace_one_candidate.
26919 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26921         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
26922         phi def as possibly hiding a basis for a CAND_ADD whose operands
26923         have been commuted in the analysis.
26924         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
26926 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26928         * config/aarch64/aarch64.md
26929         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
26930         shift value between 0-4.
26932 2013-05-07  Richard Biener  <rguenther@suse.de>
26934         * double-int.h (rshift): New overload.
26935         * double-int.c (rshift): New function.
26936         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
26937         (create_reference_ops_from_ref): Remove.
26938         (vn_reference_insert): Use shared ops for constructing the
26939         reference and copy it.
26941 2013-05-07  Richard Biener  <rguenther@suse.de>
26943         PR middle-end/57190
26944         * tree-eh.c (sink_clobbers): Properly propagate
26945         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
26947 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
26949         PR tree-optimization/57149
26950         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
26951         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
26952         collect_phi_def_edges, execute_late_warn_uninitialized): Use
26953         uninit_undefined_value_p instead of ssa_undefined_value_p.
26955         PR debug/57184
26956         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
26957         for modifier == EXPAND_INITIALIZER.
26959 2013-05-07  Anton Blanchard  <anton@samba.org>
26961         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
26962         for powerpc64 little endian.
26963         * configure: Regenerate.
26965 2013-05-06  Graham Stott  <grahams@btinternet.com>
26967         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
26968         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
26969         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
26970         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
26972 2013-05-06  Graham Stott  <grahams@btinternet.com>
26974         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
26975         codes which allow non-lvalues.
26977 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
26979         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
26980         components are all 1s.
26981         (integer_minus_onep): New function.
26982         * tree.h (integer_minus_onep): Declare it.
26983         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
26984         integer_minus_onep instead of integer_all_onesp.
26986 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
26988         PR target/52933
26989         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
26990         variations of these patterns.
26992 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
26994         * config/i386/i386.md (isa): Add x64_sse4 member.
26995         (enabled): Handle x64_sse4.
26996         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
26997         instruction for 64bit SSE4_1 targets.  Update insn attributes.
26998         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
26999         instruction for SSE4_1 targets.  Update insn attributes.
27000         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27001         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27002         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27003         const_1 selector.
27004         (*vec_extractv4si): Rename from *sse4_1_pextrd.
27005         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27006         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27008 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27010         PR target/57108
27011         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27013 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
27015         * final.c (do_assembler_dialects): Don't handle curly braces and
27016         vertical bar escaped by % as dialect delimiters.
27017         (output_asm_insn): Print curly braces and vertical bar if escaped
27018         by % and ASSEMBLER_DIALECT defined.
27019         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27020         * doc/tm.texi: Regenerated.
27022 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27024         * config/mips/mips.c: Include tree-pass.h.
27025         (mips_reorg): Split in pre- and post-dbr_schedule parts.
27026         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27027         (pass_mips_machine_reorg2): New machine specific pass.
27028         (insert_pass_mips_machine_reorg2): New pass plugin definition.
27029         (mips_option_override): Register the new pass.
27030         * rtl.h (cleanup_barriers): Remove prototype.
27031         (dbr_schedule): Likewise.
27032         * jump.c (cleanup_barriers): Make static.
27033         * reorg.c (dbr_schedule): Likewise.
27035 2013-05-06  Richard Biener  <rguenther@suse.de>
27037         PR tree-optimization/57185
27038         * tree-parloops.c (add_field_for_reduction): Handle anonymous
27039         SSA names properly.
27041 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27043         PR target/57106
27044         * config/i386/i386.c (add_parameter_dependencies): Add dependence
27045         between "first_arg" and "insn", not "last" and "insn".
27047 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27049         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27050         (find_candidates_in_block): Re-enable slsr_process_phi.
27051         (create_phi_basis): Fix double counting of candidate adjustment.
27053 2013-05-06  Richard Biener  <rguenther@suse.de>
27055         PR middle-end/57147
27056         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27057         the edge is also fallthru, preserve it and just clear the
27058         abnormal flag.
27059         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27060         also complex, preserve that and just clear the fallthru flag.
27061         * tree-inline.c (update_ssa_across_abnormal_edges): Also
27062         update virtual operands.
27064 2013-05-06  Alan Modra  <amodra@gmail.com>
27066         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27067         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27068         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27069         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27070         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27071         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27073 2013-05-06  Alan Modra  <amodra@gmail.com>
27075         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27076         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
27077         (DEFAULT_ASM_ENDIAN): Define.
27078         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27079         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27080         Update -K PIC clause from sysv4.h.
27081         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27082         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27084 2013-05-06  Alan Modra  <amodra@gmail.com>
27086         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27087         twice for little-endian.
27088         (ashrdi3_no_power, ashrdi3): Support little-endian.
27090 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27092         PR target/55303
27093         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27094         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27095         related expanders.
27096         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27097         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27098         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27099         New predicates.
27101 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
27102             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27104         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27105         * config/pa/pa.opt: Make mbig-switch a no-op.
27106         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27107         (CASE_VECTOR_MODE): Always return SImode.
27108         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27109         for the !TARGET_BIG_SWITCH case.
27110         * config/pa/pa-linux.h: Likewise.
27111         * config/pa/pa-openbsd.h: Likewise.
27112         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27113         * config/pa/pa.md (short_jump): Remove define_insn.
27114         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27115         (casesi0): Remove define_insn.
27116         (type): Remove btable_branch.
27117         (pa_combine_type): Likewise.
27118         (in_nullified_branch_delay): Likewise.
27119         (in_call_delay): Likewise.
27120         (define_delay): Likewise.
27121         (define_insn_reservation "Z3"): Likewise.
27122         (define_insn_reservation "Z4"): Likewise.
27123         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27124         (pa_adjust_insn_length): Remove adjustment for btable branches.
27125         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27126         and mno-big-switch
27128 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
27130         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27131         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27132         Add m->r,x alternatives.
27133         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27134         splitters using SWI48x mode iterator.
27135         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
27136         TARGET_64BIT.  Add m->x alternative.
27137         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27138         Add o->x alternative.  Enable for TARGET_SSE.
27139         (sse_storeq): Remove expander.
27140         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27141         with memory input operand.
27142         (*vec_extractv2di_1 splitter): New.
27143         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27144         * config/i386/i386.md (ssevecmodelower): New mode attribute.
27146 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27148         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
27149         (INT_LOWPART): Delete.
27150         (extract_MB): Adjust.
27151         (extract_ME): Adjust.
27152         (print_operand): Adjust.
27154 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27156         * config/rs6000/predicates.md (reg_or_add_cint_operand,
27157         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27158         (reg_or_logical_cint_operand, easy_fp_constant,
27159         logical_const_operand): Delete "CONST_DOUBLE" case.
27160         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27161         "HOST_BITS_PER_WIDE_INT == 64" test.
27162         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
27163         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27164         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27165         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27166         test.
27167         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27168         CONST_DOUBLE DImode/VOIDmode case.
27169         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27170         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27171         CONST_DOUBLE VOIDmode case.
27172         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27173         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27174         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27175         Delete CONST_DOUBLE case.
27176         (splitters for mov FMOVE64 const_double): Delete
27177         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27178         "HOST_BITS_PER_WIDE_INT >= 64" test.
27179         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27180         case.
27181         (mov DI const_double): Delete.
27183 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
27185         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27186         on op shows all bits zero in mode of a lowpart subreg, return zero.
27188 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27190         PR target/57150
27191         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27192         to save TFmode registers and DImode to save TImode registers for
27193         caller save operations.
27194         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27195         mark being partially clobbered since they only use the first
27196         double word.
27198         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27199         and TDmode only use the upper 64-bits of each VSX register.
27201 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27203         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27204         (find_candidates_in_block): Disable slsr_process_phi.
27206 2013-05-03  Guozhi Wei  <carrot@google.com>
27208         * coverage.c (coverage_obj_init): Move the construction of gcov
27209         constructor to ...
27210         (build_init_ctor): ... here.
27212 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27214         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
27215         (slsr_cand_d): Redefine def_phi.
27216         (stride_status, phi_adjust_status, count_phis_status): New enums.
27217         (find_phi_def): New.
27218         (find_basis_for_base_expr): New.
27219         (find_basis_for_candidate): Handle hidden bases.
27220         (alloc_cand_and_find_basis): Handle phi candidates.
27221         (slsr_process_phi): New.
27222         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
27223         (create_mul_imm_cand): Likewise.
27224         (create_add_ssa_cand): Exclude phi base candidates.
27225         (create_add_imm_cand): Likewise.
27226         (slsr_process_cast): Likewise.
27227         (slsr_process_copy): Likewise.
27228         (find_candidates_in_block): Handle phi candidates.
27229         (dump_candidate): Likewise.
27230         (unconditional_cands): Delete.
27231         (unconditional_cands_with_known_stride_p): Delete.
27232         (phi_dependent_cand_p): New.
27233         (cand_increment): Handle phi-dependent candidates.
27234         (replace_dependent): Delete.
27235         (replace_mult_candidate): New.
27236         (replace_unconditional_candidate): New.
27237         (incr_vec_index): Move to avoid forward reference.
27238         (create_add_on_incoming_edge): New.
27239         (create_phi_basis): New.
27240         (replace_dependents): Delete.
27241         (replace_conditional_candidate): New.
27242         (phi_add_costs): New.
27243         (replace_uncond_cands_and_profitable_phis): New.
27244         (record_increment): Handle phi adjustments.
27245         (record_phi_increments): New.
27246         (record_increments): Handle phi adjustments.
27247         (phi_incr_cost): New.
27248         (lowest_cost_path): Handle phis.
27249         (total_savings): Likewise.
27250         (analyze_increments): Likewise.
27251         (ncd_with_phi): New.
27252         (ncd_of_cand_and_phis): New.
27253         (nearest_common_dominator_for_cands): Handle phi increments.
27254         (all_phi_incrs_profitable): New.
27255         (replace_profitable_candidates): Handle phi-dependent candidates.
27256         (analyze_candidates_and_replace): Likewise.
27258 2013-05-03  Teresa Johnson  <tejohnson@google.com>
27260         PR bootstrap/57154
27261         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27262         do not exceed REG_BR_PROB_BASE.
27264 2013-05-03  Jeff Law  <law@redhat.com>
27266         PR tree-optimization/57144
27267         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27268         operand of the condition will bit into the new type when eliminating
27269         a cast feeding a condition.
27271 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
27273         PR rtl-optimization/57130
27274         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27275         of COMPARE as in_code to the recursive call if needed.
27277 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
27279         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
27280         (enabled): Handle new members.
27281         * config/i386/sse.md (*vec_concatv2si): Merge from
27282         *vec_concatv2si_sse2 and vec_concatv2si_sse.
27283         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
27285 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27287         PR tree-optimization/57027
27288         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
27289         for fnms opportunity, check we got the prerequisite kind
27290         of tree / gimple before using accessor functions.
27292 2013-05-03  Richard Biener  <rguenther@suse.de>
27294         * double-int.h (lshift): New overload without precision
27295         and arith argument.
27296         (operator *=, operator +=, operator -=): Move ...
27297         * double-int.c (operator *=, operator +=, operator -=): ... here
27298         and implement more efficiently.
27299         (mul_double_with_sign): Remove.
27300         (lshift_double): Adjust to take unsinged shift argument, push
27301         dispatching code to callers.
27302         (mul_double_wide_with_sign): Add early out for callers that
27303         are not interested in high parts or overflow.
27304         (lshift): New function.
27305         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
27306         dispatch code here.
27307         (lrotate, rrotate): Use logical shifts.
27308         * expr.c (get_inner_reference): Use lshift.
27309         * fixed-value.c (do_fixed_divide): Likewise.
27310         * tree-dfa.c (get_ref_base_and_extent): Likewise.
27311         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27312         (indirect_refs_may_alias_p): Likewise.
27313         (stmt_kills_ref_p_1): Likewise.
27315 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27317         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
27319 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27321         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
27322         scalar form of FABD instruction.
27324 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
27326         * lra-constraints.c (process_alt_operands): Add checking alt
27327         number to choose the best alternative.
27329 2013-05-02  Richard Biener  <rguenther@suse.de>
27331         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
27332         bitmap and its handling.
27333         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
27335 2013-05-02  Richard Biener  <rguenther@suse.de>
27337         PR middle-end/57140
27338         * tree-inline.c (copy_loops): Properly handle removed loops.
27339         (copy_cfg_body): Mark destination loops for fixup if source
27340         loops needed fixup.
27342 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
27344         PR target/56732
27345         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
27346         generating simple_return for naked functions.
27348 2013-05-02  Martin Jambor  <mjambor@suse.cz>
27350         PR middle-end/56988
27351         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
27352         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
27353         flags match.
27354         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
27355         ipa_agg_replacement_value structures.
27356         (known_aggs_to_agg_replacement_list): Likewise.
27357         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
27358         (read_agg_replacement_chain): Likewise.
27359         (ipcp_transform_function): Also check that by_ref flags match.
27361 2013-05-02  Richard Biener  <rguenther@suse.de>
27363         * graphds.h (struct graph): Add obstack member.
27364         * graphds.c (new_graph): Initialize obstack and allocate
27365         vertices from it.
27366         (add_edge): Allocate edge from the obstack.
27367         (free_graph): Free the obstack instead of all edges and vertices.
27369 2013-05-02  Teresa Johnson  <tejohnson@google.com>
27371         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
27372         divides.
27373         * cfg.c (update_bb_profile_for_threading): Ditto.
27374         * tree-inline.c (copy_bb): Ditto.
27375         (copy_edges_for_bb): Ditto.
27376         (initialize_cfun): Ditto.
27377         (copy_cfg_body): Ditto.
27378         (expand_call_inline): Ditto.
27379         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
27380         (estimate_node_size_and_time): Ditto.
27381         (inline_merge_summary): Ditto.
27382         * cgraphclones.c (cgraph_clone_edge): Ditto.
27383         (cgraph_clone_node): Ditto.
27384         * sched-rgn.c (compute_dom_prob_ps): Ditto.
27385         (compute_trg_info): Ditto.
27387 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27389         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
27390         S reg when fp attribute set.
27391         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
27393 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27395         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
27396         New pattern.
27397         (*and_one_cmplsi3_compare0_uxtw): Likewise.
27398         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
27399         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
27401 2013-05-02  Richard Biener  <rguenther@suse.de>
27403         * tree-scalar-evolution.c (scev_info_hasher): Remove.
27404         (struct instantiate_cache_entry): New type.
27405         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
27406         (struct instantiate_cache_type): New type.
27407         (set_instantiated_value, get_instantiated_value): Remove.
27408         (get_instantiated_value_entry): New function.
27409         (instantiate_scev_name): Use the new cache and adjust.
27410         (instantiate_scev_poly): Adjust.
27411         (instantiate_scev_binary): Likewise.
27412         (instantiate_array_ref): Likewise.
27413         (instantiate_scev_convert): Likewise.
27414         (instantiate_scev_not): Likewise.
27415         (instantiate_scev_3): Likewise.
27416         (instantiate_scev_2): Likewise.
27417         (instantiate_scev_r): Likewise.
27418         (instantiate_scev): Likewise.
27419         (resolve_mixers): Likewise.
27421 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
27423         PR target/57091
27424         * lra-constraints.c (best_small_class_operands_num): Remove.
27425         (process_alt_operands): Remove small_class_operands_num.  Take
27426         small classes operands into losers and only if the operand is not
27427         matched.  Modify debugging output.
27428         (curr_insn_transform): Remove best_small_class_operands_num.
27429         Print insn name.
27431 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27433         * config/aarch64/aarch64-builtins.c
27434         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
27435         * config/aarch64/aarch64-simd-builtins.def
27436         (reduc_splus_): Add new modes.
27437         (reduc_uplus_): New.
27438         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
27439         (reduc_uplus_v4sf): Likewise.
27440         (reduc_splus_v4sf): Likewise.
27441         (aarch64_addv<mode>): Likewise.
27442         (reduc_uplus_<mode>): Likewise.
27443         (reduc_splus_<mode>): Likewise.
27444         (aarch64_addvv2di): Likewise.
27445         (reduc_uplus_v2di): Likewise.
27446         (reduc_splus_v2di): Likewise.
27447         (aarch64_addvv2si): Likewise.
27448         (reduc_uplus_v2si): Likewise.
27449         (reduc_splus_v2si): Likewise.
27450         (reduc_<sur>plus_<mode>): New.
27451         (reduc_<sur>plus_v2di): Likewise.
27452         (reduc_<sur>plus_v2si): Likewise.
27453         (reduc_<sur>plus_v4sf): Likewise.
27454         (aarch64_addpv4sf): Likewise.
27455         * config/aarch64/arm_neon.h
27456         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
27457         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
27458         add UNSPEC_SADDV, UNSPEC_UADDV.
27459         (SUADDV): New.
27460         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
27462 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27464         * config/aarch64/arm_neon.h
27465         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
27467 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27469         * config/aarch64/aarch64-builtins
27470         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
27472 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27474         * config/aarch64/aarch64-simd-builtins.def
27475         (reduc_smax_): New.
27476         (reduc_smin_): Likewise.
27477         (reduc_umax_): Likewise.
27478         (reduc_umin_): Likewise.
27479         (reduc_smax_nan_): Likewise.
27480         (reduc_smin_nan_): Likewise.
27481         (fmax): Remove.
27482         (fmin): Likewise.
27483         (smax): Update for V2SF, V4SF and V2DF modes.
27484         (smin): Likewise.
27485         (smax_nan): New.
27486         (smin_nan): Likewise.
27487         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
27488         (<su><maxmin><mode>3): ...This, refactor.
27489         (s<maxmin><mode>3): New.
27490         (<maxmin_uns><mode>3): Likewise.
27491         (reduc_<maxmin_uns>_<mode>): Refactor.
27492         (reduc_<maxmin_uns>_v4sf): Likewise.
27493         (reduc_<maxmin_uns>_v2si): Likewise.
27494         (aarch64_<fmaxmin><mode>: Remove.
27495         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
27496         new builtin names.
27497         (vmin<q>_f<32,64>): Likewise.
27498         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27499         (FMAXMIN): New.
27500         (su): Add mappings for smax, smin, umax, umin.
27501         (maxmin): New.
27502         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27503         (FMAXMIN): Rename as...
27504         (FMAXMIN_UNS): ...This.
27505         (maxminv): Remove.
27506         (fmaxminv): Likewise.
27507         (fmaxmin): Likewise.
27508         (maxmin_uns): New.
27509         (maxmin_uns_op): Likewise.
27511 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27513         * config/aarch64/arm_neon.h
27514         (vac<ge, gt><sd>_f<32, 64>): Rename to...
27515         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
27516         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
27518 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27520         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
27521         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
27523 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27525         * config/aarch64/aarch64-simd.md
27526         (vcond<mode>_internal): Handle special cases for constant masks.
27527         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
27528         (vcondu<mode><mode>): Likewise.
27529         (vcond<v_cmp_result><mode>): New.
27531 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27533         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
27534         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
27535         * config/aarch64/aarch64-simd-builtins.def
27536         (cmeq): Update to BUILTIN_VALLDI.
27537         (cmgt): Likewise.
27538         (cmge): Likewise.
27539         (cmle): Likewise.
27540         (cmlt): Likewise.
27541         * config/aarch64/arm_neon.h
27542         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
27543         to builtins or C as appropriate.
27545 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27547         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
27548         (cmgeu): ...This.
27549         (cmhi): Rename to...
27550         (cmgtu): ...This.
27551         * config/aarch64/aarch64-simd.md
27552         (simd_mode): Add SF.
27553         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
27554         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
27555         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
27556         (cstore<mode>_neg): ...This.
27557         * config/aarch64/iterators.md
27558         (VALLF): new.
27559         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
27560         (COMPARISONS): New.
27561         (UCOMPARISONS): Likewise.
27562         (optab): Add missing comparisons.
27563         (n_optab): New.
27564         (cmp_1): Likewise.
27565         (cmp_2): Likewise.
27566         (CMP): Likewise.
27567         (cmp): Remove.
27568         (VCMP_S): Likewise.
27569         (VCMP_U): Likewise.
27570         (V_cmp_result): Add DF, SF modes.
27571         (v_cmp_result): Likewise.
27572         (v): Likewise.
27573         (vmtype): Likewise.
27574         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
27576 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
27578         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
27579         define_insn to define_insn_and_split.
27580         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
27581         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
27582         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
27583         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
27584         (thumb2_negscc): Likewise.
27586 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
27588         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
27590 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
27592         * config/arm/thumb2.md: Remove trailing whitespaces.
27594 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27596         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
27597         Use gen_int_mode rather than GEN_INT.
27599 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
27601         * value-prof.c (stream_in_histogram_value): Remove the strayed
27602         debug_gimple_stmt.
27604 2013-04-30  Richard Biener  <rguenther@suse.de>
27606         PR middle-end/57122
27607         * cfghooks.c (split_edge): Properly check for the loop latch edge.
27609 2013-04-30  Richard Biener  <rguenther@suse.de>
27611         PR middle-end/57107
27612         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
27614 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
27616         PR rtl-optimization/56957
27617         PR rtl-optimization/57105
27618         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
27619         variable.  Use just INSN_UID for determining whether an insn
27620         should be only disconnected from the insn stream.
27621         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
27623 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
27625         PR tree-optimization/57104
27626         * tsan.c (instrument_expr): Don't instrument accesses to
27627         DECL_HARD_REGISTER VAR_DECLs.
27629 2013-04-30  Richard Biener  <rguenther@suse.de>
27631         * function.h (loops_for_fn): New inline function.
27632         (set_loops_for_fn): Likewise.
27633         * cfgloop.h (place_new_loop): Add struct function parameter.
27634         (get_loop): Likewise.
27635         (get_loops): Likewise.
27636         (number_of_loops): Likewise.
27637         (fel_next): Adjust.
27638         (fel_init): Likewise.
27639         * cfg.c (get_loop_copy): Adjust.
27640         * cfgloop.c (flow_loops_dump): Likewise.
27641         (record_loop_exits): Likewise.
27642         (verify_loop_structure): Likewise.
27643         * cfgloopanal.c (mark_irreducible_loops): Likewise.
27644         (estimate_reg_pressure_cost): Likewise.
27645         (mark_loop_exit_edges): Likewise.
27646         * cfgloopmanip.c (place_new_loop): Likewise.
27647         (add_loop): Likewise.
27648         (duplicate_loop): Likewise.
27649         * graph.c (draw_cfg_nodes): Likewise.
27650         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
27651         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
27652         (extract_affine_chrec): Likewise.
27653         (build_scop_iteration_domain): Likewise.
27654         * graphite.c (graphite_initialize): Likewise.
27655         * ira-build.c (create_loop_tree_nodes): Likewise.
27656         (more_one_region_p): Likewise.
27657         (rebuild_regno_allocno_maps): Likewise.
27658         (mark_loops_for_removal): Likewise.
27659         (mark_all_loops_for_removal): Likewise.
27660         (remove_unnecessary_regions): Likewise.
27661         (ira_build): Likewise.
27662         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
27663         * loop-init.c (fix_loop_structure): Likewise.
27664         (gate_rtl_move_loop_invariants): Likewise.
27665         (gate_rtl_unswitch): Likewise.
27666         (gate_rtl_unroll_and_peel_loops): Likewise.
27667         (rtl_doloop): Likewise.
27668         * lto-streamer-in.c (input_cfg): Likewise.
27669         * lto-streamer-out.c (output_cfg): Likewise.
27670         * modulo-sched.c (sms_schedule): Likewise.
27671         * predict.c (tree_estimate_probability): Likewise.
27672         (tree_estimate_probability_driver): Likewise.
27673         (estimate_loops): Likewise.
27674         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
27675         (move_sese_region_to_fn): Likewise.
27676         (debug_loop_num): Likewise.
27677         * tree-chrec.c (chrec_evaluate): Likewise.
27678         (hide_evolution_in_other_loops_than_loop): Likewise.
27679         (chrec_component_in_loop_num): Likewise.
27680         (reset_evolution_in_loop): Likewise.
27681         (evolution_function_is_invariant_rec_p): Likewise.
27682         * tree-if-conv.c (main_tree_if_conversion): Likewise.
27683         * tree-inline.c (copy_loops): Likewise.
27684         (copy_cfg_body): Likewise.
27685         (tree_function_versioning): Likewise.
27686         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
27687         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
27688         Likewise.
27689         (add_to_evolution_1): Likewise.
27690         (scev_const_prop): Likewise.
27691         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
27692         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
27693         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
27694         (tree_ssa_lim_initialize): Likewise.
27695         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
27696         (verify_loop_closed_ssa): Likewise.
27697         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
27698         (tree_ssa_loop_im): Likewise.
27699         (tree_ssa_loop_unswitch): Likewise.
27700         (tree_vectorize): Likewise.
27701         (check_data_deps): Likewise.
27702         (tree_ssa_loop_ivcanon): Likewise.
27703         (tree_ssa_loop_bounds): Likewise.
27704         (tree_complete_unroll): Likewise.
27705         (tree_complete_unroll_inner): Likewise.
27706         (tree_parallelize_loops): Likewise.
27707         (tree_ssa_loop_prefetch): Likewise.
27708         (tree_ssa_loop_ivopts): Likewise.
27709         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
27710         * tree-vectorizer.c (vectorize_loops): Likewise.
27712 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
27714         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
27715         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
27716         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
27717         with EABI_LINK_SPEC.
27719 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
27721         PR target/44578
27722         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
27723         alternative.
27725 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
27727         PR target/57097
27728         * lra-constraints.c (process_alt_operands): Discourage a bit more
27729         using memory for pseudos.  Print cost dump for alternatives.
27730         Modify cost values for conflicts with early clobbers.
27731         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
27733 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
27735         PR target/57098
27736         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
27738 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
27740         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
27741         from/to S register.
27742         (movdi_aarch64): Support LDR/STR from/to D register.
27744 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
27746         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
27747         or higher by default.
27749 2013-04-29  Richard Biener  <rguenther@suse.de>
27751         PR middle-end/57075
27752         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
27753         even if not adding abnormal edges for calls that can make
27754         abnormal gotos.
27756 2013-04-29  Richard Biener  <rguenther@suse.de>
27758         PR middle-end/57103
27759         * tree-cfg.c (move_stmt_op): Fix condition under which to update
27760         TREE_BLOCK.
27761         (move_stmt_r): Remove redundant checking.
27763 2013-04-29  Teresa Johnson  <tejohnson@google.com>
27765         PR bootstrap/57077
27766         * basic-block.h (apply_scale): New function.
27767         (apply_probability): Use apply_scale.
27768         * gimple-streamer-in.c (input_bb): Ditto.
27769         * lto-streamer-in.c (input_cfg): Ditto.
27770         * lto-cgraph.c (merge_profile_summaries): Ditto.
27771         * tree-optimize.c (execute_fixup_cfg): Ditto.
27772         * tree-inline.c (copy_bb): Update comment to use apply_scale.
27773         (copy_edges_for_bb): Ditto.
27774         (copy_cfg_body): Ditto.
27776 2013-04-29  Tom de Vries  <tom@codesourcery.com>
27778         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
27779         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
27780         (tail_merge_optimize): Handle current_loops == NULL.
27782 2013-04-26  Jeff Law  <law@redhat.com>
27784         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
27785         (simplify_cond_using_ranges): Generalize code to simplify
27786         COND_EXPRs where one argument is a constant and the other
27787         is an SSA_NAME created by an integral type conversion.
27789 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27791         * config/arm/arm.md (store_minmaxsi): Use only when
27792         optimize_insn_for_size_p.
27794 2013-04-29  Christian Bruel  <christian.bruel@st.com>
27796         PR target/57108
27797         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
27799 2013-04-29  Richard Biener  <rguenther@suse.de>
27801         PR middle-end/57089
27802         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
27803         loop tree make sure to schedule a fixup for the child as well.
27804         (expand_omp_for_generic): Properly add loops.
27805         (expand_omp_for_static_nochunk): Likewise.
27806         (expand_omp_for_static_chunk): Likewise.
27807         (expand_omp_for): For the degenerate case fixup loops.
27808         (expand_omp_sections): Fix default bb placement in loops.
27809         (expand_omp_atomic_pipeline): Properly add loops.
27811 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27813         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
27815 2013-04-29  Tom de Vries  <tom@codesourcery.com>
27817         * tree-ssa-tail-merge.c: Update header comment.
27819 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27821         * config/aarch64/arm_neon.h
27822         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
27823         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
27824         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
27825         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
27826         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
27827         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
27828         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
27829         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
27831 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27833         * config/aarch64/aarch64-simd.md
27834         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
27835         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
27836         fix_trunc, fixuns_trunc.
27837         (ftrunc<VDQF:mode>2): New.
27838         * config/aarch64/iterators.md (optab): Add fix, fixuns.
27839         (fix_trunc_optab): New.
27841 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27843         * config/aarch64/aarch64-builtins.c
27844         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
27845         iceilf, lround, iroundf.
27847 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
27849         PR target/54349
27850         * config/i386/i386.h (enum ix86_tune_indices)
27851         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
27852         New, split from X86_TUNE_INTER_UNIT_MOVES.
27853         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
27854         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
27855         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
27856         (TARGET_INTER_UNIT_MOVES): Remove.
27857         * config/i386/i386.c (initial_ix86_tune_features): Update.
27858         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
27859         (ix86_expand_convert_uns_didf_sse): Use
27860         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
27861         (ix86_expand_vector_init_one_nonzero): Ditto.
27862         (ix86_expand_vector_init_interleave): Ditto.
27863         (inline_secondary_memory_needed): Return true for moves from SSE class
27864         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
27865         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
27866         * config/i386/constraints.md (Yi, Ym): Depend on
27867         TARGET_INTER_UNIT_MOVES_TO_VEC.
27868         (Yj, Yn): New constraints.
27869         * config/i386/i386.md (*movdi_internal): Change constraints of
27870         operand 1 from Yi to Yj and from Ym to Yn.
27871         (*movsi_internal): Ditto.
27872         (*movdf_internal): Ditto.
27873         (*movsf_internal): Ditto.
27874         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
27875         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
27876         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
27877         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
27878         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
27879         * config/i386/sse.md (movdi_to_sse): Ditto.
27880         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
27881         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
27882         TARGET_INTER_UNIT_MOVES.
27883         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
27884         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
27885         instead of TARGET_INTER_UNIT_MOVES.
27886         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
27887         operand 1 from Yi to Yj and from Ym to Yn.
27889 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27891         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
27892         (float_truncate_hi_): Likewise.
27893         (float_extend_lo_): Likewise.
27894         (float_truncate_lo_): Likewise.
27895         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
27896         (aarch64_float_extend_lo_v2df): Likewise.
27897         (vec_unpacks_hi_v4sf): Likewise.
27898         (aarch64_float_truncate_lo_v2sf): Likewise.
27899         (aarch64_float_truncate_hi_v4sf): Likewise.
27900         (vec_pack_trunc_v2df): Likewise.
27901         (vec_pack_trunc_df): Likewise.
27903 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27905         * config/aarch64/aarch64-builtins.c
27906         (aarch64_fold_builtin): Fold float conversions.
27907         * config/aarch64/aarch64-simd-builtins.def
27908         (floatv2si, floatv4si, floatv2di): New.
27909         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
27910         * config/aarch64/aarch64-simd.md
27911         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
27912         * config/aarch64/iterators.md (FLOATUORS): New.
27913         (optab): Add float, floatuns.
27914         (su_optab): Likewise.
27916 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27918         * config/aarch64/aarch64-builtins.c
27919         (aarch64_builtin_vectorized_function): Use new names for
27920         fcvt builtins.
27921         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
27922         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
27923         (fcvtzu): Split as...
27924         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
27925         (fcvtas): Split as...
27926         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
27927         (fcvtau): Split as...
27928         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
27929         (fcvtps): Split as...
27930         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
27931         (fcvtpu): Split as...
27932         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
27933         (fcvtms): Split as...
27934         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
27935         (fcvtmu): Split as...
27936         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
27937         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
27938         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
27939         (lfrintnusf, lfrintnudf): Likewise.
27940         * config/aarch64/aarch64-simd.md
27941         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
27942         define_insn.
27943         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
27944         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
27945         (fcvt_pattern): Likewise.
27947 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27949         * config/aarch64/aarch64-simd.md
27950         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
27951         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
27953 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27955         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
27956         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
27957         (vrnd<a,m,n,p>_f32): Implement using builtins.
27958         (vrnd<i,x><q>_f<32, 64>): New.
27960 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27962         * config/aarch64/aarch64-builtins.c
27963         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
27964         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
27965         (frintz): Rename to...
27966         (btrunc): ...this.
27967         (frintp): Rename to...
27968         (ceil): ...this.
27969         (frintm): Rename to...
27970         (floor): ...this.
27971         (frinti): Rename to...
27972         (nearbyint): ...this.
27973         (frintx): Rename to...
27974         (rint): ...this.
27975         (frinta): Rename to...
27976         (round): ...this.
27977         * config/aarch64/aarch64-simd.md
27978         (aarch64_frint<frint_suffix><mode>): Delete.
27979         (<frint_pattern><mode>2): Convert to insn.
27980         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
27981         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
27982         (frint_pattern): Likewise.
27983         (frint_suffix): Likewise.
27985 2013-04-29  Richard Biener  <rguenther@suse.de>
27987         PR tree-optimization/57081
27988         * loop-init.c: Include tree-flow.h.
27989         (loop_optimizer_finalize): Free number of iteration estimates.
27990         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
27992 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
27994         PR tree-optimization/57083
27995         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
27996         non-singleton shift count range, zero extend low_bound for uns case.
27998         * config/i386/predicates.md (general_vector_operand): New predicate.
27999         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28000         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28001         if they aren't nonimmediate operands.  If their original values
28002         satisfy const_vector_equal_evenodd_p, don't shift them.
28003         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28004         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
28005         if not nonimmediate_operand.
28006         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28007         instead of register_operand.
28008         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28010 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28012         * stor-layout.c (finalize_size_functions): Allocate a structure and
28013         reset cfun before dumping the functions.
28015 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
28017         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28019         PR target/56866
28020         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28021         use xop_pmacsdqh if uns_p.
28022         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28023         the immediate rotate count.
28025 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
28027         * rtl.h (struct rtx_def): Add comment for field jump.
28028         (LRA_SUBREG_P): New macro.
28029         * recog.c (register_operand): Check LRA_SUBREG_P.
28030         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28031         stack frame.
28032         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28033         (lra_final_code_change): Skip subreg change for operators.
28034         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28035         if there are no operand changes.
28036         * lra-constraints.c (curr_insn_set): New.
28037         (match_reload): Set LRA_SUBREG_P.
28038         (emit_spill_move): Ditto.
28039         (check_and_process_move): Use curr_insn_set. Process only single
28040         set insns.  Don't initialize sec_mem_p and change_p.
28041         (simplify_operand_subreg): Use LRA_SUBREG_P.
28042         (reg_in_class_p): New function.
28043         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28044         of #ifdef.  Add code to remove cycling.
28045         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28046         non-null disp.  Reload inner instead of disp when base and index
28047         are null.  Try to put lo_sum into register.
28048         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28049         (check_and_process_move): Move code for move cost check to
28050         simple_move_p.  Remove equiv_substitution.
28051         (simple_move_p): New function.
28052         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
28053         curr_insn_set.  Call check_and_process_move only for single set
28054         insns.  Use the new function.  Move call of check_and_process_move
28055         after operand equiv substitution and address process.
28057 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28059         PR go/57045
28060         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28061         with nonlocal goto receivers or returns twice calls, ignore
28062         unininitialized values from abnormal edges to nl goto receiver
28063         or returns twice call.
28065 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28067         PR tree-optimization/57051
28068         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28069         and VEC_RSHIFT_EXPR if shift count is a multiple of element
28070         bitsize.
28072 2013-04-26  Richard Biener  <rguenther@suse.de>
28074         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28075         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
28076         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28077         (fixup_loop_arrays_after_move): New function.
28078         (move_sese_region_to_fn): Properly outline the loop tree parts
28079         of the SESE region.
28081 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
28083         * config/i386/i386.md (type, unit): Fix long lines.
28085 2013-04-26  Richard Biener  <rguenther@suse.de>
28087         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28088         (lto-streamer-out.o): Likewise.
28089         * cfgloop.c (init_loops_structure): Export, add struct function
28090         argument and adjust.
28091         (flow_loops_find): Adjust.
28092         * cfgloop.h (enum loop_estimation): Add EST_LAST.
28093         (init_loops_structure): Declare.
28094         * lto-streamer-in.c: Include cfgloop.h.
28095         (input_cfg): Input the loop tree.
28096         * lto-streamer-out.c: Include cfgloop.h.
28097         (output_cfg): Output the loop tree.
28098         (output_struct_function_base): Do not drop PROP_loops.
28100 2013-03-26  Richard Biener  <rguenther@suse.de>
28102         * tree-cfg.c (execute_build_cfg): Build the loop tree.
28103         (pass_build_cfg): Provide PROP_loops.
28104         (move_sese_region_to_fn): Remove loops that are outlined into fn
28105         for now.
28106         * tree-inline.c: Include cfgloop.h.
28107         (initialize_cfun): Do not drop PROP_loops.
28108         (copy_loops): New function.
28109         (copy_cfg_body): Copy loop structure.
28110         (tree_function_versioning): Initialize destination loop tree.
28111         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28112         (pass_parallelize_loops): Do IL verification.
28113         * loop-init.c (loop_optimizer_init): Fixup loops if required.
28114         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28115         the CFG make sure we fixup loops as well.
28116         * tree-ssa-tail-merge.c: Include cfgloop.h.
28117         (replace_block_by): When merging loop latches mark loops for fixup.
28118         * lto-streamer-out.c (output_struct_function_base): Drop
28119         PROP_loops for now.
28120         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28121         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28122         * ipa-split.c: Include cfgloop.h.
28123         (split_function): Add the new return block to the loop tree root.
28124         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28125         whether we have removed the forwarder block.
28126         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28127         * cfgloop.h (place_new_loop): Declare.
28128         * cfgloopmanip.c (place_new_loop): Export.
28129         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28130         (tree-switch-conversion.o): Likewise.
28131         (tree-complex.o): Likewise.
28132         (tree-inline.o): Likewise.
28133         (tree-ssa-tailmerge.o): Likewise.
28134         (ipa-split.o): Likewise.
28135         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28136         (tree-ssa-copy.o): Likewise.
28137         * tree-switch-conversion.c: Include cfgloop.h
28138         (process_switch): If we emit a bit-test cascade, schedule loops
28139         for fixup.
28140         * tree-complex.c: Include cfgloop.h.
28141         (expand_complex_div_wide): Properly add new basic-blocks to loops.
28142         * asan.c: Include cfgloop.h.
28143         (create_cond_insert_point): Properly add new basic-blocks to
28144         loops, schedule loop fixup.
28145         * cfgloop.c (verify_loop_structure): Check that looks are not
28146         marked for fixup.
28147         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28148         to loops.
28149         (expand_omp_for_generic): Likewise.
28150         (expand_omp_sections): Likewise.
28151         (expand_omp_atomic_pipeline): Schedule loops for fixup.
28152         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28153         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28154         is initialized, not when loops are present.
28155         * tree-parloops.c (parallelize_loops): Remove checking here.
28156         * passes.c (init_optimization_passes): Schedule a copy-propagation
28157         pass before complete unrolling of inner loops.
28159 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28161         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28162         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28163         (colorize_init): Add argument to _WIN32 version.
28164         * toplev.c: Include diagnostic-color.h.
28165         (process_options): Default to -fdiagnostics-color=auto if
28166         GCC_COLORS env var is in the environment.
28167         * common.opt (fdiagnostics-color=): Add Var and Init.
28168         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28169         env var is in the environment, the default is auto rather than never.
28171         * diagnostic.h (file_name_as_prefix): Add context argument.
28172         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
28173         the string as locus.
28174         * langhooks.c (lhd_print_error_function): Adjust caller.
28176 2013-04-25  Lawrence Crowl  <crowl@google.com>
28178         * var-tracking.c (shared_hash_def::htab):
28179         Change type to hash_table.  Update dependent calls and types.
28181 2013-04-25  Lawrence Crowl  <crowl@google.com>
28183         * Makefile.in: Update as needed below.
28185         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28186         Move declaration to after the type's method definitons.
28188         * attribs.c (htab_t scoped_attributes::attribute_hash):
28189         Change type to hash_table.  Update dependent calls and types.
28191         * bitmap.c (htab_t bitmap_desc_hash):
28192         Change type to hash_table.  Update dependent calls and types.
28194         * cselib.c (htab_t cselib_hash_table):
28195         Change type to hash_table.  Update dependent calls and types.
28197         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28198         (hash_string_slot_node): Move implementation into lto-streamer.h
28199         struct string_slot_hasher.
28200         (eq_string_slot_node): Likewise.
28202         * data-streamer-out.c: Update output_block::string_hash_table
28203         dependent calls and types.
28205         * dwarf2cfi.c (htab_t trace_index):
28206         Change type to hash_table.  Update dependent calls and types.
28208         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28209         Change type to hash_table.  Update dependent calls and types.
28210         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28211         (htab_t optimize_external_refs::map): Likewise.
28212         (htab_t output_comp_unit::extern_map): Likewise.
28213         (htab_t output_comdat_type_unit::extern_map): Likewise.
28214         (htab_t output_macinfo::macinfo_htab): Likewise.
28215         (htab_t optimize_location_lists::htab): Likewise.
28216         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
28218         * except.c (htab_t ehspec_hash_type):
28219         Change type to hash_table.  Update dependent calls and types.
28220         (assign_filter_values::ttypes): Likewise.
28221         (assign_filter_values::ehspec): Likewise.
28222         (sjlj_assign_call_site_values::ar_hash): Likewise.
28223         (convert_to_eh_region_ranges::ar_hash): Likewise.
28225         * gcse.c (htab_t pre_ldst_table):
28226         Change type to hash_table.  Update dependent calls and types.
28228         * ggc-common.c (htab_t saving_htab):
28229         Change type to hash_table.  Update dependent calls and types.
28230         (htab_t loc_hash): Likewise.
28231         (htab_t ptr_hash): Likewise.
28232         (call_count): Rename ggc_call_count.
28233         (call_alloc): Rename ggc_call_alloc.
28234         (loc_descriptor): Rename make_loc_descriptor.
28235         (add_statistics): Rename ggc_add_statistics.
28237         * ggc-common.c (saving_htab):
28238         Change type to hash_table.  Update dependent calls and types.
28240         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28241         (push_gimplify_context): Likewise.
28242         (pop_gimplify_context): Likewise.
28243         (struct gimple_temp_hash_elt): Added.
28244         (struct gimplify_hasher): Likewise.
28245         (struct gimplify_ctx.temp_htab):
28246         Change type to hash_table.  Update dependent calls and types.
28248         * gimple-fold.c: Include gimplify-ctx.h.
28250         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28251         Change type to hash_table.  Update dependent calls and types.
28252         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28253         avoid potential global name collision.
28255         * gimplify.c: Include gimplify-ctx.h.
28256         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28257         (htab_t gimplify_ctx::temp_htab):
28258         Update dependent calls and types for new type hash_table.
28259         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28260         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28262         * gimplify-ctx.h: New.
28263         (struct gimple_temp_hash_elt): Move from gimplify.c.
28264         (class gimplify_hasher): New.
28265         (struct gimplify_ctx): Move from gimple.h.
28266         (htab_t gimplify_ctx::temp_htab):
28267         Change type to hash_table.  Update dependent calls and types.
28269         * graphite-clast-to-gimple.c: Include graphite-htab.h.
28270         (htab_t ivs_params::newivs_index):
28271         Change type to hash_table.  Update dependent calls and types.
28272         (htab_t ivs_params::params_index): Likewise.
28273         (htab_t print_generated_program::params_index): Likewise.
28274         (htab_t gloog::newivs_index): Likewise.
28275         (htab_t gloog::params_index): Likewise.
28277         * graphite.c: Include graphite-htab.h.
28278         4htab_t graphite_transform_loops::bb_pbb_mapping):
28279         Change type to hash_table.  Update dependent calls and types.
28281         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
28282         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
28283         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
28285         * graphite-dependences.c: Include graphite-htab.h.
28286         (loop_is_parallel_p): Change hash table type of parameter.
28288         * graphite-htab.h: New.
28289         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
28290         (extern find_pbb_via_hash): Move from graphite-poly.h.
28291         (extern loop_is_parallel_p): Move from graphite-poly.h.
28292         (extern get_loop_body_pbbs): Move from graphite-poly.h.
28294         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
28295         (extern loop_is_parallel_p): Move to graphite-htab.h.
28296         (extern get_loop_body_pbbs): Move to graphite-htab.h.
28298         * haifa-sched.c (htab_t delay_htab):
28299         Change type to hash_table.  Update dependent calls and types.
28300         (htab_t delay_htab_i2): Likewise.
28302         * ira-color.c (htab_t allocno_hard_regs_htab):
28303         Change type to hash_table.  Update dependent calls and types.
28305         * ira-costs.c (htab_t cost_classes_htab):
28306         Change type to hash_table.  Update dependent calls and types.
28308         * loop-invariant.c (htab_t merge_identical_invariants::eq):
28309         Change type to hash_table.  Update dependent calls and types.
28311         * loop-iv.c (htab_t bivs):
28312         Change type to hash_table.  Update dependent calls and types.
28314         * loop-unroll.c (htab_t opt_info::insns_to_split):
28315         Change type to hash_table.  Update dependent calls and types.
28316         (htab_t opt_info::insns_with_var_to_expand): Likewise.
28318         * lto-streamer.h (struct string_slot): Move from data-streamer.h
28319         (struct string_slot_hasher): New.
28320         (htab_t output_block::string_hash_table):
28321         Change type to hash_table.  Update dependent calls and types.
28323         * lto-streamer-in.c (freeing_string_slot_hasher): New.
28324         (htab_t file_name_hash_table):
28325         Change type to hash_table.  Update dependent calls and types.
28327         * lto-streamer-out.c: Update output_block::string_hash_table dependent
28328         calls and types.
28330         * lto-streamer.c (htab_t tree_htab):
28331         Change type to hash_table.  Update dependent calls and types.
28333         * omp-low.c: Include gimplify-ctx.h.
28335         * passes.c (htab_t name_to_pass_map):
28336         Change type to hash_table.  Update dependent calls and types.
28337         (pass_traverse): Rename to passes_pass_traverse.
28339         * plugin.c (htab_t event_tab):
28340         Change type to hash_table.  Update dependent calls and types.
28342         * postreload-gcse.c (htab_t expr_table):
28343         Change type to hash_table.  Update dependent calls and types.
28344         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
28346         * sese.c (debug_rename_map_1): Make extern.
28347         (htab_t copy_bb_and_scalar_dependences::rename_map):
28348         Change type to hash_table.  Update dependent calls and types.
28350         * sese.h (extern debug_rename_map): Move to .c file.
28352         * store-motion.c (htab_t store_motion_mems_table):
28353         Change type to hash_table.  Update dependent calls and types.
28355         * trans-mem.c (htab_t tm_new_mem_hash):
28356         Change type to hash_table.  Update dependent calls and types.
28358         * tree-browser.c (htab_t TB_up_ht):
28359         Change type to hash_table.  Update dependent calls and types.
28361         * tree-cfg.c (htab_t discriminator_per_locus):
28362         Change type to hash_table.  Update dependent calls and types.
28364         * tree-complex.c: Include tree-hasher.h
28365         (htab_t complex_variable_components):
28366         Change type to hash_table.  Update dependent calls and types.
28368         * tree-eh.c (htab_t finally_tree):
28369         Change type to hash_table.  Update dependent calls and types.
28371         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
28372         struct int_tree_hasher.
28373         (extern int_tree_map_eq): Likewise.
28374         (uid_decl_map_hash): Removed.
28375         (extern decl_tree_map_eq): Likewise.
28377         * tree-hasher.h: New.
28378         (struct int_tree_hasher): New.
28379         (typedef int_tree_htab_type): New.
28381         * tree-inline.c: Include gimplify-ctx.h.
28383         * tree-mudflap.c: Include gimplify-ctx.h.
28385         * tree-parloops.c: Include tree-hasher.h.
28386         (htab_t eliminate_local_variables_stmt::decl_address):
28387         Change type to hash_table.  Update dependent calls and types.
28388         (htab_t separate_decls_in_region::decl_copies): Likewise.
28390         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
28391         Change type to hash_table.  Update dependent calls and types.
28393         * tree-sra.c (candidates):
28394         Change type to hash_table.  Update dependent calls and types.
28396         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
28397         in tree-flow.h.
28398         (int_tree_map_hash): Likewise.
28400         * tree-ssa-dom.c (htab_t avail_exprs):
28401         Change type to hash_table.  Update dependent calls and types.
28403         * tree-ssa-live.c (var_map_base_init::tree_to_index):
28404         Change type to hash_table.  Update dependent calls and types.
28406         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
28407         Change type to hash_table.  Update dependent calls and types.
28409         * tree-ssa-phiopt.c (seen_ssa_names):
28410         Change type to hash_table.  Update dependent calls and types.
28412         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
28413         Change type to hash_table.  Update dependent calls and types.
28415         * tree-ssa-uncprop.c (equiv):
28416         Change type to hash_table.  Update dependent calls and types.
28418 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
28420         PR rtl-optimization/57003
28421         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
28422         call note_stores with kill_clobbered_value callback again after
28423         killing regs_invalidated_by_call.
28425 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28427         * config/aarch64/aarch64-simd.md
28428         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
28429         (aarch64_simd_bsl<mode>): Likewise.
28430         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
28432 2013-04-25  Marek Polacek  <polacek@redhat.com>
28434         PR tree-optimization/57066
28435         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
28437 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28439         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
28441 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28443         * config/aarch64/aarch64-builtins.c
28444         (aarch64_fold_builtin): New.
28445         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
28446         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
28447         * config/aarch64/aarch64-simd-builtins.def (abs): New.
28448         * config/aarch64/arm_neon.h
28449         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
28451 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28452             Tejas Belagod  <tejas.belagod@arm.com>
28454         * config/aarch64/aarch64-builtins.c
28455         (aarch64_gimple_fold_builtin): New.
28456         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
28457         * config/aarch64/aarch64-simd-builtins.def (addv): New.
28458         * config/aarch64/aarch64-simd.md (addpv4sf): New.
28459         (addvv4sf): Update.
28460         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
28462 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28464         * config/aarch64/aarch64.md
28465         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
28467 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28469         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
28470         (*ngcsi_uxtw): New pattern.
28472 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28473             Julian Brown  <julian@codesourcery.com>
28475         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
28476         (TB_DREG): Add T_V4HF.
28477         (v4hf_UP): New macro.
28478         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28479         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28480         Handle initialisation of V4HF. Adjust initialisation of reinterpret
28481         built-ins.
28482         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28483         (arm_vector_mode_supported_p): Handle V4HF.
28484         (arm_mangle_map): Handle V4HFmode.
28485         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
28486         * config/arm/arm_neon_builtins.def: Add entries for
28487         vcvtv4hfv4sf, vcvtv4sfv4hf.
28488         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
28489         (neon_vcvtv4hfv4sf): Likewise.
28490         * config/arm/neon-gen.ml: Handle half-precision floating point
28491         features.
28492         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
28493         * config/arm/arm_neon.h: Regenerate.
28494         * config/arm/neon.ml (type elts): Add F16.
28495         (type vectype): Add T_float16x4, T_floatHF.
28496         (type vecmode): Add V4HF.
28497         (type features): Add Requires_FP_bit feature.
28498         (elt_width): Handle F16.
28499         (elt_class): Likewise.
28500         (elt_of_class_width): Likewise.
28501         (mode_of_elt): Refactor.
28502         (type_for_elt): Handle F16, fix error messages.
28503         (vectype_size): Handle T_float16x4.
28504         (vcvt_sh): New function.
28505         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
28506         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
28507         (string_of_mode): Handle V4HF.
28508         * doc/arm-neon-intrinsics.texi: Regenerate.
28510 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28512         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
28513         format specifier in 'X' case.
28515 2013-04-25  Alan Modra  <amodra@gmail.com>
28517         PR target/57052
28518         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
28519         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
28520         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
28521         Repeat for many other rotate/shift and mask patterns using subregs.
28522         Name lshiftrt insns.
28523         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
28524         on WORDS_BIG_ENDIAN.
28526 2013-04-25  Alan Modra  <amodra@gmail.com>
28528         * config.gcc: Support little-endian powerpc-linux targets.
28529         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
28530         (LINK_OS_LINUX_SPEC): Define.
28531         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
28532         Preserve MASK_LITTLE_ENDIAN.
28533         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
28534         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
28535         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
28536         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
28537         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
28538         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
28539         Correct fp word order for little-endian.  Don't shift toc entries
28540         smaller than a word for little-endian.
28541         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
28542         (bswapdi2 splits): Correct low-part subreg for little-endian.
28543         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
28544         low/high where such is correct only for be.
28545         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
28546         little-endian for -mcall-aixdesc.
28548 2013-04-25  Alan Modra  <amodra@gmail.com>
28550         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
28551         replace_equiv_address_nv.
28553 2013-04-25  Alan Modra  <amodra@gmail.com>
28555         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
28557 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28559         Revert:
28560         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28561         * rtl.h (struct rtx_def): ...
28563 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28565         PR rtl-optimizations/57046
28566         * lra-constraints (split_reg): Set up lra_risky_transformations_p
28567         for multi-reg splits.
28569 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
28571         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
28573 2013-04-24  Sterling Augustine  <saugustine@google.com>
28575         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
28576         (comp_dir_string, debug_str_dwo_section): New.
28577         (DEBUG_STR_DWO_SECTION): Rename to ...
28578         (DEBUG_DWO_STR_SECTION): ... this.
28579         (DEBUG_NORM_STR_SECTION): Delete.
28580         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
28581         (DEBUG_STR_DWO_SECTION_FLAGS): New.
28582         (find_AT_string): Move most logic to ...
28583         (find_AT_string_in_table): ... here.  New.
28584         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
28585         add_skeleton_AT_string.  Delete logic.
28586         (output_skeleton_debug_sections): Remove call to
28587         add_top_level_skeleton_die_attrs.
28588         (add_comp_dir_attribute): Move logic to comp_dir_string.
28589         (dwarf2out_init): Initialize debug_str_dwo_section.
28590         (output_indirect_string): Call find_string_form.
28591         (output_indirect_strings): Rewrite.
28592         (prune_unused_types): Empty skeleton_debug_str_hash.
28593         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
28594         (dwarf2out_finish):  Call output_indirect_strings.
28596 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
28598         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
28600 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28602         * rtl.h (struct rtx_def): Add comment for field jump.
28603         (LRA_SUBREG_P): New macro.
28604         * recog.c (register_operand): Check LRA_SUBREG_P.
28605         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28606         stack frame.
28607         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28608         (lra_final_code_change): Skip subreg change for operators.
28609         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28610         if there are no operand changes.
28611         * lra-constraints.c (curr_insn_set): New.
28612         (match_reload): Set LRA_SUBREG_P.
28613         (emit_spill_move): Ditto.
28614         (check_and_process_move): Use curr_insn_set. Process only single
28615         set insns.  Don't initialize sec_mem_p and change_p.
28616         (simplify_operand_subreg): Use LRA_SUBREG_P.
28617         (reg_in_class_p): New function.
28618         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28619         of #ifdef.  Add code to remove cycling.
28620         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28621         non-null disp.  Reload inner instead of disp when base and index
28622         are null.  Try to put lo_sum into register.
28623         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28624         (check_and_process_move): Move code for move cost check to
28625         simple_move_p.  Remove equiv_substitution.
28626         (simple_move_p): New function.
28627         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
28628         curr_insn_set.  Call check_and_process_move only for single set
28629         insns.  Use the new function.  Move call of check_and_process_move
28630         after operand equiv substitution and address process.
28632 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
28634         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
28635         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
28636         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
28638 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
28640         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
28642 2013-04-24  Marek Polacek  <polacek@redhat.com>
28644         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
28645         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
28646         (select_loops_exit_conditions): Likewise.
28647         (number_of_iterations_for_all_loops): Likewise.
28648         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
28649         (scev_analysis): Likewise.
28651 2013-04-02  Catherine Moore  <clm@codesourcery.com>
28652             Chao-ying Fu  <fu@mips.com>
28654         * config/mips/micromips.md (jraddiusp): New pattern.
28655         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
28656         instruction if possible.
28658 2013-04-24  Alan Modra  <amodra@gmail.com>
28660         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
28662 2013-04-24  Julian Brown  <julian@codesourcery.com>
28663             Chung-Lin Tang  <cltang@codesourcery.com>
28665         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
28666         dependency behavior in enumeration type DIE generation. Add TODO note
28667         to comments about future DW_FORM_sdata/udata re-work of related code.
28669 2013-04-23  Lawrence Crowl  <crowl@google.com>
28671         * Makefile.in: Update as needed below.
28673         * hash-table.h (class hash_table):
28674         Correct many methods with parameter types compare_type to the correct
28675         value_type.  (Correct code was unlikely to notice the change.)
28676         (hash_table::elements_with_deleted) New.
28677         (class hashtable::iterator): New.
28678         (hashtable::begin()): New.
28679         (hashtable::end()): New.
28680         (FOR_EACH_HASH_TABLE_ELEMENT): New.
28682         * statistics.c (statistics_hashes):
28683         Change type to hash_table.  Update dependent calls and types.
28685         * tree-into-ssa.c (var_infos):
28686         Change type to hash_table.  Update dependent calls and types.
28688         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
28689         Change type to hash_table.  Update dependent calls and types.
28691         * tree-ssa-loop-im.c (struct mem_ref.refs):
28692         Change type to hash_table.  Update dependent calls and types.
28694         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
28695         Change type to hash_table.  Update dependent calls and types.
28697         * tree-ssa-sccvn.c (vn_tables_s::nary):
28698         Change type to hash_table.  Update dependent calls and types.
28699         (vn_tables_s::phis): Likewise.
28700         (vn_tables_s::references): Likewise.
28702         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
28703         (vn_reference_eq): Update parameter and return types.
28705         * tree-ssa-structalias.c (pointer_equiv_class_table):
28706         Change type to hash_table.  Update dependent calls and types.
28707         (location_equiv_class_table): Likewise.
28709         * tree-vect-data-refs.c: Consequential changes for making
28710         peeling a hash_table.
28712         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
28713         (destroy_loop_vec_info): Dependent hash_table update.
28715         * tree-vectorizer.h (peeling_htab):
28716         Change type to hash_table.  Update dependent calls and types.
28718 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
28720         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
28721         to check the register content is equal or not.
28722         * lra-constraints.c (match_reload): Use lra_assign_reg_val
28723         to assign register content record.
28724         * lra-eliminations.c (update_reg_eliminate): Use
28725         lra_update_reg_val_offset to update register content offset.
28726         * lra-int.h (struct lra_reg): Add offset member.
28727         (lra_reg_val_equal_p): New static inline function.
28728         (lra_update_reg_val_offset): New static inline function.
28729         (lra_assign_reg_val): New static inline function.
28730         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
28731         to assign register content record.
28732         (initialize_lra_reg_info_element): Initial offset to zero.
28734 2013-04-23  Catherine Moore  <clm@codesourcery.com>
28736         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
28737         operands.  Record compression.
28739 2013-04-23  Xinliang David Li  <davidxl@google.com>
28741         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
28743 2013-04-23  Richard Biener  <rguenther@suse.de>
28745         PR middle-end/57036
28746         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
28747         parameter, only add abnormal goto edges from the copied body
28748         if the call could perform abnormal gotos.
28749         (copy_cfg_body): Adjust.
28751 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
28753         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
28755 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
28757         * coretypes.h (gimple_stmt_iterator): Add struct to make
28758         compatible with C.
28760 2013-04-23  Richard Biener  <rguenther@suse.de>
28762         PR tree-optimization/57026
28763         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
28764         from SSA names occuring in abnormal PHI nodes.
28766 2013-04-22  Andi Kleen  <ak@linux.intel.com>
28768         * lto/lto.c (print_lto_report_1): Fix LTO report names.
28770 2013-04-22  Andi Kleen  <ak@linux.intel.com>
28772         * lto/lto.c (print_lto_report_1): Declare early.
28773         (read_cgraph_and_symbols): Call print_lto_report_1 early.
28775 2013-04-22  Andi Kleen  <ak@linux.intel.com>
28777         * common.opt (-flto-report-wpa): Add.
28778         * doc/invoke.texi (-flto-report-wpa): Add.
28779         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
28780         (lto_main): dito.
28782 2013-04-22  Xinliang David Li  <davidxl@google.com>
28784         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
28785         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
28786         * Makefile.in: New dependency
28788             David Daney <ddaney.cavm@gmail.com>
28790         * configure.ac (gcc_cv_as_micromips_support):  Use the
28791         --fatal-warnings option.
28792         * configure: Regenerate.
28794 2013-04-22  Marek Polacek  <polacek@redhat.com>
28796         PR sanitizer/56990
28797         * tsan.c (instrument_expr): Don't instrument expression
28798         in case its size is zero.
28800 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
28802         PR target/57032
28803         Revert:
28804         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
28806         * config/alpha/alpha.c (TARGET_LRA_P): New define.
28808 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28810         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
28811         (gimple_stmt_iterator): New typedef.
28812         * gimple.h (gimple_stmt_iterator): Rename to...
28813         (gimple_stmt_iterator_d): ... This.
28814         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
28815         trees be valid for GIMPLE and GENERIC.
28816         (TARGET_GIMPLE_FOLD_BUILTIN): New.
28817         * gimple-fold.c (gimple_fold_call): Call target hook
28818         gimple_fold_builtin.
28819         * hooks.c (hook_bool_gsiptr_false): New.
28820         * hooks.h (hook_bool_gsiptr_false): New.
28821         * target.def (fold_stmt): New.
28822         * doc/tm.texi: Regenerate.
28824 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
28826         PR target/57018
28827         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
28828         a set sp if no stack realignment.
28830 2013-04-22  Nick Clifton  <nickc@redhat.com>
28832         * config.gcc (tilegx-linux): Extend extra_objs rather than
28833         overwriting it.
28834         (tilepro-linux): Likewise.
28836 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28838         * config/aarch64/aarch64-builtins.c
28839         (CF): Remove.
28840         (CF0, CF1, CF2, CF3, CF4, CF10): New.
28841         (VAR<1-12>): Add MAP parameter.
28842         (BUILTIN_*): Likewise.
28843         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
28844         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
28845         (aarch64_ushl_n<mode>): Likewise.
28846         (aarch64_sshr_n<mode>): Likewise.
28847         (aarch64_ushr_n<mode>): Likewise.
28848         (aarch64_<maxmin><mode>): Likewise.
28849         (aarch64_sqrt<mode>): Likewise.
28850         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
28851         (vshr<q>_n_*): Likewise.
28853 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28855         * config/aarch64/aarch64-builtins.c
28856         (aarch64_simd_builtin_type_mode): Handle SF types.
28857         (sf_UP): Define.
28858         (BUILTIN_GPF): Define.
28859         (aarch64_init_simd_builtins): Handle SF types.
28860         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
28861         (frecps): Likewise.
28862         (frecpx): Likewise.
28863         * config/aarch64/aarch64-simd.md
28864         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
28865         (aarch64_frecpe<mode>): New.
28866         (aarch64_frecps<mode>): Likewise.
28867         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
28868         (v8type): Add frecp<esx>.
28869         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
28870         (aarch64_frecps<mode>): Likewise.
28871         * config/aarch64/iterators.md (FRECP): New.
28872         (frecp_suffix): Likewise.
28873         * config/aarch64/arm_neon.h
28874         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
28876 2013-04-22  Christian Bruel  <christian.bruel@st.com>
28878         PR target/56995
28879         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
28880         (REG_CLASS_NAMES): Idem.
28881         (REG_CLASS_CONTENTS): Idem.
28882         (REGCLASS_HAS_FP_REG): Idem.
28883         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
28884         (sh_conditional_register_usage): Idem.
28886 2013-04-21  Jeff Law  <law@redhat.com>
28888         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
28889         (ssa_forward_propagate_and_combine): Use it.
28891 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28893         * lra.c: Update the flow chart diagram.
28895 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28897         PR rtl-optimization/56847
28898         * lra-constraints.c (process_alt_operands): Discourage alternative
28899         with non-matche doffsettable memory constraint fro memory with
28900         known offset.
28902 2013-04-19  Richard Biener  <rguenther@suse.de>
28904         PR tree-optimization/56982
28905         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
28906         function.
28907         * gimplify.c (gimplify_call_expr): Notice special calls.
28908         (gimplify_modify_expr): Likewise.
28909         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
28910         abnormal control flow receivers.
28911         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
28912         in the same way as cfun->has_nonlocal_labels.
28913         (gimple_purge_dead_abnormal_call_edges): Likewise.
28914         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
28915         receivers start a basic-block.
28917 2013-04-19  Richard Biener  <rguenther@suse.de>
28919         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
28920         member ...
28921         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
28922         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
28923         (SLP_TREE_LOAD_PERMUTATION): Add.
28924         (vect_transform_slp_perm_load): Adjust prototype.
28925         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
28926         (vect_free_slp_instance): Likewise.
28927         (vect_create_new_slp_node): Likewise.
28928         (vect_supported_slp_permutation_p): Remove.
28929         (vect_slp_rearrange_stmts): Adjust.
28930         (vect_supported_load_permutation_p): Likewise.  Inline
28931         vect_supported_slp_permutation_p here.
28932         (vect_analyze_slp_instance): Compute load permutations per
28933         slp node instead of per instance.
28934         (vect_get_slp_defs): Adjust.
28935         (vect_transform_slp_perm_load): Likewise.
28936         (vect_schedule_slp_instance): Remove redundant code.
28937         (vect_schedule_slp): Remove hack for PR56270, add it ...
28938         * tree-vect-stmts.c (vectorizable_load): ... here, do not
28939         CSE loads for SLP.  Adjust.
28941 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
28943         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
28944         spelling in two comments.
28946 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
28948         PR target/56797
28949         * config/arm/arm.c (load_multiple_sequence): Require SP
28950         as base register for loads if SP is in the register list.
28952 2013-04-19  Martin Jambor  <mjambor@suse.cz>
28954         PR tree-optimization/56718
28955         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
28956         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
28957         and made public.  Adjusted all callers.
28958         (ipa_intraprocedural_devirtualization): New function.
28959         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
28960         (ipa_intraprocedural_devirtualization): Likewise.
28961         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
28963 2013-04-19  Richard Biener  <rguenther@suse.de>
28965         PR tree-optimization/57000
28966         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
28968 2013-04-19  Terry Guo  <terry.guo@arm.com>
28970         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
28971         Replace with ...
28972         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
28973         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
28974         (cortex_m4_fmacs): Use new reservations.
28975         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
28977 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
28979         PR rtl-optimization/56999
28980         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
28981         related code.
28982         (lra_coalesce): Remove split_origin_bitmap and related code.
28983         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
28984         ranges if necessary.
28986 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
28988         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
28989         New array.
28990         (ix86_expand_call): Remove clobbered_registers array and use
28991         x86_64_ms_sysv_extra_clobbered_registers instead.
28992         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
28993         Declare here.
28994         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
28995         predicate.
28996         * config/i386/i386.md (*call_rex64_ms_sysv): Use
28997         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
28998         (*call_value_rex64_ms_sysv): Ditto.
29000 2013-04-18  Cary Coutant  <ccoutant@google.com>
29002         * dwarf2out.c (output_pubnames): Check die_perennial_p of
29003         parent instead of die_mark.
29005 2013-04-18  Diego Novillo  <dnovillo@google.com>
29007         * gimple.c (create_gimple_tmp): New.
29008         (get_expr_type): New.
29009         (build_assign): New.
29010         (build_type_cast): New.
29011         * gimple.h (enum ssa_mode): Define.
29012         (gimple_seq_set_location): New.
29013         * asan.c (build_check_stmt): Change some gimple_build_* calls
29014         to use build_assign and build_type_cast.
29016 2013-04-18  Richard Biener  <rguenther@suse.de>
29018         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29019         handle negative step.  Remove redundant checks.
29020         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29021         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29022         for negative step and grouped loads fail to vectorize.
29024 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29026         * emit-rtl.c (reset_insn_used_flags): New function.
29027         (reset_all_used_flags): Use it.
29028         (verify_insn_sharing): New function.
29029         (verify_rtl_sharing): Fix verification for SEQUENCEs.
29031 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
29033         PR tree-optimization/56984
29034         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29035         and (x >> M) >= N don't register any assertion if N << M is the
29036         minimum value.
29038 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29040         * lower-subreg.c (resolve_simple_move): If called self-recursive,
29041         do not delete_insn insns that have not yet been emitted, only
29042         unlink them with remove_insn.
29043         * df-scan.c (df_insn_delete): Revert r197492.
29045 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
29047         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29048         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29050 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29052         * config/arm/arm.md (movsicc_insn): Convert define_insn into
29053         define_insn_and_split.
29054         (and_scc,ior_scc,negscc): Likewise.
29055         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29057 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29059         * config/arm/arm.c (use_return_insn): Return 0 for targets that
29060         can benefit from using a sequence of LDRD instructions in epilogue
29061         instead of a single LDM instruction.
29063 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29065         PR 45688
29066         * doc/extend.texi: Fix typo.
29068 2013-04-17  Richard Biener  <rguenther@suse.de>
29070         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29071         (vect_build_slp_tree): ... here.
29072         (vect_build_slp_tree_1): Compute which stmts of the SLP group
29073         match.  Remove special-casing of mismatched complex loads.
29074         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29075         re-try the match with swapped commutative operands.
29076         (vect_supported_load_permutation_p): Remove special-casing of
29077         mismatched complex loads.
29078         (vect_analyze_slp_instance): Adjust.
29080 2013-04-17  Richard Biener  <rguenther@suse.de>
29082         PR rtl-optimization/56921
29083         * cfgloop.h (struct loop): Add simple_loop_desc member.
29084         (struct niter_desc): Mark with GTY(()).
29085         (simple_loop_desc): Do not use aux field but simple_loop_desc.
29086         * loop-iv.c (get_simple_loop_desc): Likewise.
29087         (free_simple_loop_desc): Likewise.
29089         Revert
29090         2013-04-16  Richard Biener  <rguenther@suse.de>
29092         PR rtl-optimization/56921
29093         * loop-init.c (pass_rtl_move_loop_invariants): Add
29094         TODO_do_not_ggc_collect to todo_flags_finish.
29095         (pass_rtl_unswitch): Same.
29096         (pass_rtl_unroll_and_peel_loops): Same.
29097         (pass_rtl_doloop): Same.
29099 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
29101         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29102         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29103         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29104         references.
29105         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29106         * tree-streamer.c (record_common_node): Adjust reference in comment.
29108 2013-04-17  Terry Guo  <terry.guo@arm.com>
29110         * config/arm/cortex-m4.md: Add a new bypass.
29112 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29114         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29115         New pattern.
29116         (*subs_<optab><mode>_multp2): New pattern.
29117         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29118         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29120 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29122         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29123         (*subs_mul_imm_<mode>): New pattern.
29125 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
29127         PR target/56948
29128         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29129         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
29130         (vsx_movti_32bit): Change j->wa to O->wa.
29132 2013-04-16  Richard Biener  <rguenther@suse.de>
29134         PR rtl-optimization/56921
29135         * loop-init.c (pass_rtl_move_loop_invariants): Add
29136         TODO_do_not_ggc_collect to todo_flags_finish.
29137         (pass_rtl_unswitch): Same.
29138         (pass_rtl_unroll_and_peel_loops): Same.
29139         (pass_rtl_doloop): Same.
29141 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
29143         * config/arm/arm.c (emit_multi_reg_push): New declaration
29144         for an existing function.
29145         (arm_emit_strd_push): New function.
29146         (arm_expand_prologue): Used here.
29147         (arm_emit_ldrd_pop): New function.
29148         (arm_expand_epilogue): Used here.
29149         (arm_get_frame_offsets): Update condition.
29150         (arm_emit_multi_reg_pop): Add a special case for load of a single
29151         register with writeback.
29153 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
29155         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29156         description.
29158 2013-04-16  Richard Biener  <rguenther@suse.de>
29160         PR tree-optimization/56756
29161         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29162         (first_mem_ref_loc): New.
29163         (execute_sm): Place the load temporarily before a previous
29164         access instead of in the latch edge to ensure its SSA dependencies
29165         are defined at points dominating the load.
29167 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
29169         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29170         correct fix by moving header and footer insn to the footer of
29171         the merged basic block.  Clear BB_END of the merged-away block.
29173         PR middle-end/43631
29174         * emit-rtl.c (make_note_raw): New function.
29175         (link_insn_into_chain): New static inline function.
29176         (add_insn): Use it.
29177         (add_insn_before, add_insn_after): Factor insn chain linking code...
29178         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29179         using link_insn_into_chain.
29180         (note_outside_basic_block_p): New helper function for emit_note_after
29181         and emit_note_before.
29182         (emit_note_after): Use nobb variant of add_insn_after if the note
29183         should not be contained in a basic block.
29184         (emit_note_before): Use nobb variant of add_insn_before if the note
29185         should not be contained in a basic block.
29186         (emit_note_copy): Use make_note_raw.
29187         (emit_note): Likewise.
29188         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29189         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29190         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29191         the moved barrier the tail of the basic block it follows.
29192         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29194 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
29196         PR tree-optimization/56962
29197         * gimple-ssa-strength-reduction.c (record_increment): Only set
29198         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29199         either rhs1 or rhs2 is equal to c->base_expr.
29201 2013-04-15  Richard Biener  <rguenther@suse.de>
29203         PR tree-optimization/56933
29204         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29205         member.
29206         (GROUP_READ_WRITE_DEPENDENCE): Remove.
29207         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29208         * tree-vect-data-refs.c (vect_analyze_group_access): Move
29209         dependence check ...
29210         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29211         ... here.
29212         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29213         GROUP_READ_WRITE_DEPENDENCE.
29215 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29217         * emit-rtl.c (reset_all_used_flags): New function.
29218         (verify_rtl_sharing): Call reset_all_used_flags before and after
29219         performing the checks.
29221 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29223         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
29224         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
29225         * config/arm/constraints.md (De): New constraint.
29226         * config/arm/neon.md (anddi3_neon): Delete.
29227         (neon_vand<mode>): Expand to standard anddi3 pattern.
29228         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
29229         Move earlier in the file.
29230         (neon_inv_logic_op2): Likewise.
29231         (arm_anddi_operand_neon): New predicate.
29233 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29235         * configure.ac (gcc_cv_ld_as_needed): Set
29236         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29237         Use -z ignore, -z record on *-*-solaris2*.
29238         (HAVE_LD_AS_NEEDED): Update comment.
29239         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29240         * configure: Regenerate.
29241         * config.in: Regenerate.
29242         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29243         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29244         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29245         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29246         equivalents.  Fix markup.
29247         * doc/tm.texi: Regenerate.
29249 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
29251         * config/i386/i386.opt: New option mstack-protector-guard=.
29252         * config/i386/i386-opts.h: Add enum stack_protector_guard.
29253         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29254         TARGET_SSP_TLS_GUARD.
29255         * config/i386/i386.c (ix86_option_override_internal): Set
29256         ix86_stack_protector_guard.
29257         * config/i386/i386.md (stack_protect_set): Enable for
29258         TARGET_SSP_TLS_GUARD only.
29259         (stack_protect_set_<mode>): Ditto.
29260         (stack_protect_test): Ditto.
29261         (stack_protect_test_<mode>): Ditto.
29262         * doc/invoke.texi (i386 Option): Document.
29264 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
29266         PR target/56890
29267         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29268         (S_MODES): Set H_MODE bit.
29269         (SF_MODES): Set only S_MODE and SF_MODE bits.
29270         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29271         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29272         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29273         <MODE_FLOAT>: Likewise.
29275 2013-04-15  Joey Ye  <joey.ye@arm.com>
29277         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
29279 2013-04-15  Joey Ye  <joey.ye@arm.com>
29281         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
29282         for real far jump.
29283         (thumb_far_jump_used_p): Count instruction size and set
29284         far_jump_used.
29286 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29288         * reorg.c (fill_simple_delay_slots): Reindent block of code.
29289         * resource.c (mark_target_live_regs): Reformat conditional block.
29291 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29293         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
29294         notes, they are emitted only just before final.
29295         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
29297 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29299         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
29300         * cfgrtl.c (delete_insn): Call it here instead.
29301         * lra-spills.c (lra_final_code_change): Use delete_insn.
29302         * haifa-sched.c (sched_remove_insn): Likewise.
29303         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
29304         returning to the nop pool.
29305         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
29306         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
29308 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29310         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
29311         * doc/tm.texi: Regenerated.
29313 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
29315         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
29316         QImode checks.
29318 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29320         * df-core.c (df_find_def): Compare register numbers.
29321         (df_find_use): Likewise.
29323 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
29325         PR target/56903
29326         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
29327         lra_in_progress for return.
29329 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29331         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
29332         define_insn into define_insn_and_split and emit movsicc patterns.
29334 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29336         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
29338 2013-04-12  Richard Biener  <rguenther@suse.de>
29340         * tree-pass.h (TODO_do_not_ggc_collect): New.
29341         * passes.c (execute_one_ipa_transform_pass): Honor
29342         TODO_do_not_ggc_collect.
29343         (execute_one_pass): Likewise.
29345         Revert
29346         2013-04-10  Richard Biener  <rguenther@suse.de>
29348         * passes.c (init_optimization_passes): Remove reload pass.
29349         * ira.c (do_reload): Merge into ...
29350         (ira): ... this.
29351         (rest_of_handle_reload): Remove.
29352         (pass_reload): Likewise.
29353         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29354         of reload for vzeroupper pass placement.
29356 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
29358         PR tree-optimization/56918
29359         PR tree-optimization/56920
29360         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
29361         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
29362         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
29363         use wide_mul_with_sign method.
29365 2013-04-12  Richard Biener  <rguenther@suse.de>
29367         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
29368         not be considered a gimple constant.
29370 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
29372         * fold-const.c (const_binop): Handle vector shifts by a scalar.
29373         (fold_binary_loc): Call const_binop also for mixed vector-scalar
29374         operations.
29376 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29377             Jakub Jelinek  <jakub@redhat.com>
29379         * opts.c: Include diagnostic-color.h.
29380         (common_handle_option): Handle OPT_fdiagnostics_color_.
29381         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
29382         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
29383         (diagnostic-color.o): New.
29384         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
29385         (diagnostic_color_rule): New enum.
29386         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
29387         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
29388         the location string.
29389         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
29390         either NULL, or color kind.
29391         * diagnostic-color.c: New file.
29392         * diagnostic-color.h: New file.
29393         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
29394         arguments.
29395         * doc/invoke.texi (-fdiagnostics-color): Document.
29396         * pretty-print.h (pp_show_color): Define.
29397         (struct pretty_print_info): Add show_color field.
29398         * diagnostic.c: Include diagnostic-color.h.
29399         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
29400         macros.  Colorize error:, warning: etc. strings and also the location
29401         string.
29402         (diagnostic_show_locus): Colorize the caret line.
29403         * pretty-print.c: Include diagnostic-color.h.
29404         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
29405         inside of %< %> quotes or quoted through q format modifier.
29407 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29409         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
29411 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29413         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
29414         code in CC_NZ mode.
29415         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
29416         pattern.
29418 2013-04-11  Marek Polacek  <polacek@redhat.com>
29420         PR tree-optimization/48184
29421         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
29423 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
29425         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
29426         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
29427         (skip_simple_arithmetic): Tidy up.
29428         * tree.h (skip_simple_constant_arithmetic): Declare.
29430 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29432         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
29434 2013-04-11  Richard Biener  <rguenther@suse.de>
29436         * tree-vect-loop.c (get_initial_def_for_induction): Properly
29437         generate vector constants.
29439 2013-04-11  Richard Biener  <rguenther@suse.de>
29441         PR tree-optimization/56878
29442         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
29443         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
29444         New function.
29445         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29446         Prefer to align the DR with the most invariant base address.
29448 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29450         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
29451         comment.
29453 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
29455         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
29456         floating-point vector comparisons against 0.
29458 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
29460         PR tree-optimization/56899
29461         * fold-const.c (extract_muldiv_1): Apply distributive law
29462         only if TYPE_OVERFLOW_WRAPS (ctype).
29464 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
29466         PR target/56124
29467         * ira-costs.c (scan_one_insn): Check whether the source rtx of
29468         loading has side effect.
29470 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
29472         * config/sparc/sparc.c: Include tree-pass.h.
29473         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
29474         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
29475         head of file.  Change return type.  Split off gate function.
29476         (sparc_gate_work_around_errata): New function.
29477         (pass_work_around_errata): New pass definition.
29478         (insert_pass_work_around_errata) New pass insert definition to
29479         insert pass_work_around_errata just after delayed-branch scheduling.
29480         (sparc_option_override): Insert the pass.
29481         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
29483 2013-04-10  David S. Miller  <davem@davemloft.net>
29485         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
29486         or -mcpu=hypersparc.
29488         * target.def (cstore_mode): New hook.
29489         * target.h: Include insn-codes.h
29490         * targhooks.c: Likewise.
29491         (default_cstore_mode): New function.
29492         * targhooks.h: Declare it.
29493         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
29494         * doc/tm.texi: Rebuild.
29495         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
29496         target hook, rather than inspecting the insn_data.
29497         * config/sparc/sparc.c (sparc_cstore_mode): New function.
29498         (TARGET_CSTORE_MODE): Redefine.
29499         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
29500         result patterns.
29501         * config/sparc/predicates.md (cstore_result_operand): New special
29502         predicate.
29503         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
29504         Use it for operand 0.
29505         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
29506         (*snesi_special): Likewise.
29507         (*snesi_zero): Likewise.
29508         (*seqsi_zero): Likewise.
29509         (*sltu_insn): Likewise.
29510         (*sgeu_insn): Likewise.
29511         (*seqdi_special): Make operand 0 and comparison operation be of
29512         DImode.
29513         (*snedi_special): Likewise.
29514         (*snedi_special_vis3): Likewise.
29515         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
29516         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
29517         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
29518         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
29519         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
29520         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
29521         (*sltu_extend_sp64): Likewise.
29522         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
29523         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
29524         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
29525         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
29526         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
29528 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
29530         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
29531         (aarch64_start_file): Use the new function.
29533 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29534             Jason Merrill  <jason@redhat.com>
29536         * common.opt: Add -gdwarf.
29537         * opts.c (common_handle_option): Handle it.
29538         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
29540 2013-04-10  Richard Biener  <rguenther@suse.de>
29542         * passes.c (execute_todo): Do not call ggc_collect conditional here.
29543         (execute_one_ipa_transform_pass): But unconditionally here.
29544         (execute_one_pass): And here.
29545         (init_optimization_passes): Remove reload pass.
29546         * tree-pass.h (TODO_ggc_collect): Remove.
29547         (pass_reload): Likewise.
29548         * ira.c (do_reload): Merge into ...
29549         (ira): ... this.
29550         (rest_of_handle_reload): Remove.
29551         (pass_reload): Likewise.
29552         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29553         of reload for vzeroupper pass placement.
29554         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
29555         and todo_flags_finish of all passes.
29557 2013-04-10  Richard Biener  <rguenther@suse.de>
29559         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
29560         first_const_oprnd field, rename first_def_type to first_op_type.
29561         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
29562         (vect_get_and_check_slp_defs): Always use the type of the
29563         operand.  Allow mixed vect_external_def, vect_constant_def types.
29564         (vect_get_constant_vectors): Handle mixed vect_external_def,
29565         vect_constant_def types.
29567 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
29569         PR tree-optimization/55524
29570         * tree-ssa-math-opts.c
29571         (convert_mult_to_fma): Don't use an fms construct
29572         when we don't have an fms operation, but fnma, and it looks
29573         likely that we'll be able to use the latter.
29575 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29577         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
29578         function.
29579         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
29580         inline fail caused by overwritable functions.
29582 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
29584         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
29585         unnecessary bits in the constant power of two case.
29587 2013-04-10  Richard Biener  <rguenther@suse.de>
29589         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
29590         broken code swapping operands.
29591         (vect_build_slp_tree): Do not compute load permutations here.
29592         (vect_analyze_slp_instance): Compute load permutations here,
29593         after building the SLP tree.
29595 2013-04-09  Christian Bruel  <christian.bruel@st.com>
29597         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
29598         of next/prev_real_insn.
29600 2013-04-09  Jan Hubicka  <jh@suse.cz>
29602         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
29603         Drop aliased parameter.
29604         (function_and_variable_visibility): Do not handle alias pairs.
29605         * cgraph.c (varpool_externally_visible_p): Update prototype.
29606         * varpool.c (varpool_add_new_variable): Update.
29608 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29610         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
29612 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
29614         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
29616         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
29618 2013-04-09  Marek Polacek  <polacek@redhat.com>
29620         PR tree-optimization/48762
29621         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
29623 2013-04-09  Richard Biener  <rguenther@suse.de>
29625         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
29626         dealing with cost.
29627         (vect_build_slp_tree): Likewise.
29628         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
29629         calculating the cost of a SLP instance.
29630         (vect_analyze_slp_instance): Use it from here, after building
29631         the SLP tree.
29633 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
29635         PR middle-end/56883
29636         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
29637         expand_omp_for_static_chunk): Use simple_p = true in
29638         force_gimple_operand_gsi calls when assigning to addressable decls.
29640 2013-04-09  Jeff Law  <law@redhat.com>
29642         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
29643         when the boolean was created by converting a wider object which
29644         had a boolean range.
29646 2013-04-09  Richard Biener  <rguenther@suse.de>
29648         * tree-vectorizer.h (slp_void_p): Remove.
29649         (slp_tree): Typedef before _slp_tree declaration.
29650         (struct _slp_tree): Use a vector of slp_tree as children.
29651         (vect_get_place_in_interleaving_chain): Remove.
29652         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
29653         Move ...
29654         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
29655         and make static.
29656         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
29657         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
29658         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
29659         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
29660         Use slp_node instead of slp_void_p and adjust.
29662 2013-04-09  Richard Biener  <rguenther@suse.de>
29664         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
29665         work that is not necessary.
29667 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
29669         PR tree-optimization/56854
29670         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
29671         forward into clobber stmts if it would change MEM_REF lhs into
29672         non-MEM_REF.
29674 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
29676         * tree.c (type_hash_lookup, type_hash_add): Make static.
29677         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
29679 2013-04-09  Richard Biener  <rguenther@suse.de>
29681         * tree.h (unsave_expr_now): Remove.
29682         * tree-inline.c (mark_local_for_remap_r): Remove.
29683         (unsave_expr_1): Likewise.
29684         (unsave_r): Likewise.
29685         (unsave_expr_now): Likewise.
29686         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
29687         (propagate_tree_value): Likewise.
29689 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
29691         * doc/rtl.texi (sequence): Rewrite documentation to match the
29692         current use of SEQUENCE rtl objects.
29693         * rtl.def (SEQUENCE): Likewise.
29695         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
29696         Update documentation.
29697         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
29698         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
29700         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
29702 2013-04-08  Teresa Johnson  <tejohnson@google.com>
29704         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
29705         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
29706         methods.
29707         (estimate_edge_size_and_time): Add comment to suggest using rounding
29708         methods.
29709         (estimate_node_size_and_time): Ditto.
29710         (remap_edge_change_prob): Use helper rounding divide methods.
29711         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
29712         (gimple_mod_pow2_value_transform): Ditto.
29713         (gimple_mod_subtract_transform): Ditto.
29714         (gimple_ic_transform): Ditto.
29715         (gimple_stringops_transform): Ditto.
29716         * stmt.c (conditional_probability): Ditto.
29717         (emit_case_dispatch_table): Ditto.
29718         * lto-cgraph.c (merge_profile_summaries): Ditto.
29719         * tree-optimize.c (execute_fixup_cfg): Ditto.
29720         * cfgcleanup.c (try_forward_edges): Ditto.
29721         * cfgloopmanip.c (scale_loop_profile): Ditto.
29722         (loopify): Ditto.
29723         (duplicate_loop_to_header_edge): Ditto.
29724         (lv_adjust_loop_entry_edge): Ditto.
29725         * tree-vect-loop.c (vect_transform_loop): Ditto.
29726         * profile.c (compute_branch_probabilities): Ditto.
29727         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
29728         * lto-streamer-in.c (input_cfg): Ditto.
29729         * gimple-streamer-in.c (input_bb): Ditto.
29730         * ipa-cp.c (update_profiling_info): Ditto.
29731         (update_specialized_profile): Ditto.
29732         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
29733         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
29734         rounding methods.
29735         * sched-rgn.c (compute_dom_prob_ps): Ditto.
29736         (compute_trg_info): Ditto.
29737         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
29738         (purge_dead_edges): Ditto.
29739         * loop-unswitch.c (unswitch_loop): Ditto.
29740         * cgraphclones.c (cgraph_clone_edge): Ditto.
29741         (cgraph_clone_node): Ditto.
29742         * tree-inline.c (copy_bb): Ditto.
29743         (copy_edges_for_bb): Ditto.
29744         (initialize_cfun): Ditto.
29745         (copy_cfg_body): Ditto.
29746         (expand_call_inline): Ditto.
29748 2013-04-08  Kai Tietz  <ktietz@redhat.com>
29750         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
29751         TARGET_CYGWIN64 by TARGET_64BIT.
29753 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
29755         * config/epiphany/epiphany.md (GPR_1): New constant.
29756         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
29757         * config/epiphany/epiphany.c (gen_compare_reg):
29758         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
29759         is already in place.
29760         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
29761         Don't require being called during rtl expansion; If y operlaps r0,
29762         return 0.
29763         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
29764         (epiphany_expand_epilogue): Likewise.
29766         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
29767         Don't use CC_FPmode for ORDERED / UNORDERED.
29768         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
29770         * config/epiphany/constraints.md (CnL): New constraint.
29771         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
29772         * config/epiphany/predicates.md (add_operand): Allow 1024.
29774         * config/epiphany/epiphany.md (logical_op): New code iterator.
29775         (op_mnc): New code attribute.
29776         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
29777         (mov_f+1, mov_f+2): New peephole2 patterns.
29779         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
29780         (cstoresi4): Also allow re-use of zero result when doing a NE
29781         comparison to a non-zero operand.
29782         Use (clobber (scratch)) for first insn if the gpr output is not needed.
29784         * config/epiphany/epiphany.md (<insn_opname>v2si3):
29785         Use gen_addsi3_i / gen_subsi3_i.
29787 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
29789         PR c++/34949
29790         PR c++/50243
29791         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
29792         contain anything but clobbers, at most one __builtin_stack_restore,
29793         optionally debug stmts and final resx, and if it has at least one
29794         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
29795         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
29796         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
29797         which isn't defaut definition, remove them.
29798         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
29799         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
29800         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
29801         with MEM_REF LHS with SSA_NAME address.
29803 2013-04-08  Jeff Law  <law@redhat.com>
29805         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
29807 2013-04-08  Richard Biener  <rguenther@suse.de>
29809         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
29810         extra newline.
29811         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
29812         determined vector type.
29813         (vect_analyze_data_refs): Likewise.
29814         (vect_get_new_vect_var): Adjust.
29815         (vect_create_destination_var): Preserve SSA name versions.
29816         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
29817         not dump anything here.
29819 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
29821         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
29822         Add member lr_slot_known.
29823         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
29824         if necessary.
29825         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
29826         Remove code that sets lr_slot_offset according to what a previous
29827         version of epiphany_emit_save_restore used to do.
29828         (epiphany_emit_save_restore): When doing an lr save or restore,
29829         set/verify lr_slot_known and lr_slot_offset.
29831 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
29833         PR target/54338
29834         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
29835         in ALL_REGS.
29837 2013-04-08  Richard Biener  <rguenther@suse.de>
29839         * alias.c (find_base_term): Fix thinko in previous change.
29841 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
29843         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
29844         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
29845         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
29846         if possible to compute val.
29847         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
29848         For QImode integers don't require anything about precision.  Use
29849         const_with_all_bytes_same to find out if the constant doesn't have
29850         repeated bytes in it.
29852 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29854         * config/s390/s390.c (s390_expand_insv): Only accept insertions
29855         within mode size.
29857 2013-04-08  Marek Polacek  <polacek@redhat.com>
29859         PR rtl-optimization/48182
29860         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
29861         value to 1.
29863 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29865         PR target/55487
29866         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
29867         nuses, make sure we have a label.
29869 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29871         PR target/56843
29872         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
29873         (rs6000_emit_swdiv_low_precision): Remove.
29874         (rs6000_emit_swdiv): Rewrite to handle between one and four
29875         iterations of Newton-Raphson generally; modify required number of
29876         iterations for some cases.
29877         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
29879 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
29881         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
29882         set-but-unused variable.
29884         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
29885         basic blocks of released function bodies garbage-collectable.
29887         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
29888         (struct rtl_opt_pass): Add TODO_df_finish.
29890         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
29892 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29894         * config/arm/constraints.md (q): New constraint.
29895         * config/arm/ldrdstrd.md: New file.
29896         * config/arm/arm.md (ldrdstrd.md) New include.
29897         (arm_movdi): Use "q" instead of "r" constraint
29898         for double-word memory access.
29899         (movdf_soft_insn): Likewise.
29900         * config/arm/vfp.md (movdi_vfp): Likewise.
29901         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
29902         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
29903         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
29904         (mem_ok_for_ldrd_strd): Likewise.
29905         (output_move_double): Update assertion.
29907 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29909         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
29911 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29913         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
29914         define_insn_and_split.
29915         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
29917 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29919         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
29920         define_insn_and_split.
29921         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
29922         (shiftsi3_compare): New pattern.
29923         (rrx): New pattern.
29924         * config/arm/unspecs.md (UNSPEC_RRX): New.
29926 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29928         * config/arm/arm.md (negdi_extendsidi): New pattern.
29929         (negdi_zero_extendsidi): Likewise.
29931 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29933         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
29934         define_insn_and_split.
29935         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
29936         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
29938 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29940         * config/arm/arm.md (arm_subdi3): Convert define_insn into
29941         define_insn_and_split.
29942         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
29943         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
29945 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29947         * config/arm/arm.md (subsi3_carryin): New pattern.
29948         (subsi3_carryin_const): Likewise.
29949         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
29950         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
29952 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29954         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
29956 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29958         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
29959         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
29961 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29963         * config/arm/arm.c (arm_expand_builtin): Change fcode
29964         type to unsigned int.
29966 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29968         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
29970 2013-04-04  Ian Lance Taylor  <iant@google.com>
29972         * doc/standards.texi (Standards): The Go frontend supports the Go 1
29973         language standard.
29975 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
29977         PR middle-end/56729
29978         * df-scan.c (df_insn_delete): Disable failing assert.
29980 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29982         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
29983         New function prototype.
29984         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
29985         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
29986         (arm_builtin_vectorized_function): New function.
29988 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29990         * config/arm/arm_neon_builtins.def: New file.
29991         * config/arm/arm.c (neon_builtin_data): Move contents to
29992         arm_neon_builtins.def.
29993         (enum arm_builtins): Include neon builtin definitions.
29994         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
29995         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
29997 2013-04-04  Marek Polacek  <polacek@redhat.com>
29999         PR tree-optimization/48186
30000         * predict.c (maybe_hot_frequency_p): Return false if
30001         HOT_BB_FREQUENCY_FRACTION is 0.
30002         (cgraph_maybe_hot_edge_p): Likewise.
30004 2013-04-04  Richard Biener  <rguenther@suse.de>
30006         PR tree-optimization/56826
30007         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30008         more accurately.
30010 2013-04-04  Richard Biener  <rguenther@suse.de>
30012         PR tree-optimization/56213
30013         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30014         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30016 2013-04-04  Richard Biener  <rguenther@suse.de>
30018         PR tree-optimization/56837
30019         * tree-loop-distribution.c (classify_partition): For non-zero
30020         values require that the value has the same precision as its
30021         mode to be useful as memset value.
30023 2013-04-03  Nick Clifton  <nickc@redhat.com>
30025         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30026         (fmssf4): Use fmsf.s on E3V5 architectures.
30027         (fnmasf4): Use fnmaf.s on E3V5 architectures.
30028         (fnmssf4): Use fnmsf.s on E3V5 architectures.
30030 2013-04-03  Jeff Law  <law@redhat.com>
30032         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30033         (lra-eliminations.o): Likewise.
30035 2013-04-03  Teresa Johnson  <tejohnson@google.com>
30037         * gcov-io.c (compute_working_sets): Moved most of body of old
30038         compute_working_sets here from profile.c.
30039         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30040         (gcov_working_set_t): Moved typedef here from basic-block.h
30041         (compute_working_set): Declare.
30042         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30043         (get_working_sets): Renamed from compute_working_set,
30044         replace most of body with call to new compute_working_sets.
30045         (get_exec_counts): Replace call to compute_working_sets
30046         to get_working_sets.
30047         * profile.h (get_working_sets): Renamed from compute_working_set.
30048         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30049         to get_working_sets.
30050         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30051         * gcov-dump.c (dump_working_sets): New function.
30053 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
30055         * hwint.c (sext_hwi, zext_hwi): New functions.
30056         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30057         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30058         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30059         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30060         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30061         (sext_hwi, zext_hwi): New functions.
30063 2013-04-03  Jeff Law  <law@redhat.com>
30065         PR tree-optimization/56799
30066         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30067         back test for widening conversion erroneously dropped in prior change.
30069 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30071         PR target/56809
30072         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30073         instead of next_real_insn.
30075 2013-04-03  Marek Polacek  <polacek@redhat.com>
30077         PR sanitizer/55702
30078         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30080 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30082         PR target/56809
30083         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30084         next_real_insn.
30085         (thumb1_output_casesi): Likewise.
30086         (thumb2_output_casesi): Likewise.
30088 2013-04-03  Richard Biener  <rguenther@suse.de>
30090         PR tree-optimization/56817
30091         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30092         Split out ...
30093         (tree_unroll_loops_completely_1): ... new function to manually
30094         walk the loop tree, properly defering outer loops of unrolled
30095         loops to later iterations.
30097 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30099         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30100         (vectorizable_load): Likewise.
30101         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30102         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30104 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30106         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30107         BIT_FIELD_REF.
30109 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30111         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30113 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
30115         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30117 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30119         PR tree-optimization/56790
30120         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30121         folding.
30123 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30125         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30126         Handle VEC_MERGE.
30127         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30128         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30129         equal arguments.
30131 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
30133         PR c/19449
30134         * tree.h (force_folding_builtin_constant_p): New decl.
30135         * builtins.c (force_folding_builtin_constant_p): New variable.
30136         (fold_builtin_constant_p): Fold immediately also if
30137         force_folding_builtin_constant_p.
30139 2013-04-03  Richard Biener  <rguenther@suse.de>
30141         PR tree-optimization/56812
30142         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30143         DRs of the same interleaving chain are independent.
30145 2013-04-02  Jason Merrill  <jason@redhat.com>
30147         * gdbinit.in (pbb): Use debug fn.
30149 2013-04-02  Lawrence Crowl  <crowl@google.com>
30151         * sese.h (struct ivtype_map_elt_s): Remove unused.
30152         (extern debug_ivtype_map): Remove unused.
30153         (extern eq_ivtype_map_elts): Remove unused.
30154         * sese.c (debug_ivtype_map): Removed unused.
30155         (debug_ivtype_map_1): Removed unused.
30156         (debug_ivtype_elt): Remove unused.
30157         (eq_ivtype_map_elts): Remove unused.
30159 2013-04-02  Kai Tietz  <ktietz@redhat.com>
30161         PR target/52790
30162         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30163         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30164         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30165         function.
30166         (legitimize_pe_coff_symbol): Likewise.
30167         (is_imported_p): New helper-function.
30168         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30169         for Windows x64 targets.
30170         (ix86_expand_prologue): Optimize for pe-coff targets.
30171         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30172         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30173         medium/large code-model.
30174         (legitimize_pic_address): Likewise.
30175         (legitimize_tls_address): Likewise.
30176         (ix86_expand_call): Likewise.
30177         (x86_output_mi_thunk): Likewise.
30178         (get_dllimport_decl): Add new beimport argument.
30179         (construct_plt_address): Don't assert for x64 pe-coff targets.
30180         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30181         targets.
30182         (SYMBOL_FLAG_STUBVAR): New macro.
30183         (SYMBOL_REF_STUBVAR_P): Likewise.
30184         * config/i386/winnt.c (stub_list): New structure.
30185         (stub_head): New local variable.
30186         (i386_pe_record_stub): New function.
30187         (i386_pe_file_end): Emit refptr-stubs.
30189 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
30191         PR rtl-optimization/56745
30192         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30193         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30195         PR c++/34949
30196         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30197         and both of them are MEM_REFs, just compare first argument for
30198         equality and attempt to deal even with differing offsets.
30200         PR c++/34949
30201         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30202         of gimple_clobber_p to be MEM_REF.
30203         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30204         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
30205         after gimplification.
30206         * asan.c (get_mem_ref_of_assignment): Don't instrument
30207         gimple_clobber_p stmts.
30208         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30209         gimple_clobber_p stmt if they have MEM_REF lhs and
30210         are dead because of another gimple_clobber_p stmt.
30211         * tree-ssa-live.c (clear_unused_block_pointer): Treat
30212         gimple_clobber_p stmts like debug stmts.
30213         (remove_unused_locals): Remove clobbers with MEM_REF lhs
30214         that refer to unused VAR_DECLs or uninitialized values.
30215         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
30216         gimple_clobber_p stmts if they refer to removed parameters.
30217         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
30218         formatting.
30220 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
30222         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
30223         using SWI48 mode attribute.
30225 2013-04-02  Wei Mi  <wmi@google.com>
30227         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
30228         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
30229         *<rotate_insn><mode>3_mask in i386.md.
30231 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
30233         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30235 2013-04-02  Richard Biener  <rguenther@suse.de>
30237         PR tree-optimization/56778
30238         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30239         Runtime alias tests are not supported for gather loads.
30240         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30241         stmts referenced from SSA operands before updating SSA form.
30243 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
30244             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30246         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30247         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30248         * config/arm/cortex-a53.md: New file.
30249         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30250         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30251         * config/arm/arm.c (arm_issue_rate): Likewise.
30252         * config/arm/arm-tune.md: Regenerate
30253         * config/arm/arm-tables.opt: Regenerate.
30254         * config/arm/arm-cores.def: Add cortex-a53.
30256 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30258         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30259         non-static link.
30261 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30263         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30264         scalar load/store operations using B/H registers.
30265         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30267 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30269         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30270         scalar move.
30271         * config/aarch64/aarch64.c
30272         (aarch64_simd_scalar_immediate_valid_for_move): New.
30273         * config/aarch64/aarch64-protos.h
30274         (aarch64_simd_scalar_immediate_valid_for_move): New.
30275         * config/aarch64/constraints.md (Dh, Dq): New.
30276         * config/aarch64/iterators.md (hq): New.
30278 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
30280         * reorg.c (get_branch_condition): Deal with conditional returns.
30281         (fill_simple_delay_slots): Remove dead code dealing with jumps.
30283 2013-04-01  Wei Mi  <wmi@google.com>
30285         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
30286         Truncate operand 2 using %b asm operand modifier.
30287         (*<shift_insn><mode>3_mask): Ditto.
30288         (*<rotate_insn><mode>3_mask): Ditto.
30290 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
30292         PR middle-end/56798
30293         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
30295 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
30297         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
30298         of next_real_insn.
30299         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
30301 2013-03-30  Lawrence Crowl  <crowl@google.com>
30303         * dse.c (clear_alias_sets): Remove never set.
30304         (disqualified_clear_alias_sets): Remove never set.
30305         (clear_alias_mode_pool): Remove never set.
30306         (dse_step0): Remove condition that is never true.
30307         (canon_address): Remove condition that is never true.
30308         (dse_step7): Remove condition that is never true.
30309         (rest_of_handle_dse): Remove condition that is never true.
30310         (rest_of_handle_dse::did_global): Remove never read from above.
30311         (dse_step2_spill): Remove never called from above.
30312         (dse_step5_spill): Remove never called from above.
30314 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
30316         * doc/md.texi (Standard Names) <casesi>: Update documentation for
30317         JUMP_TABLE_DATA changes.
30318         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
30319         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
30320         (Insns) <jump_table_data>: New entry.
30321         * doc/tm.texi: Regenerate.
30323         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
30325         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
30326         for table jump at the end of a basic block using tablejump_p.
30327         * targhooks.c (default_invalid_within_doloop): Likewise.
30328         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
30329         target hook implementation that is identical to the default hook.
30330         (rs6000_invalid_within_doloop): Remove.
30332         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
30333         unused variable from tablejump_p call.
30335         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
30336         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
30337         (INSN_DELETED_P): Likewise.
30338         (emit_jump_table_data): New prototype.
30339         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
30340         after 4th as unused.
30341         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
30342         * sched-vis.c (print_insn): Likewise.
30343         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
30344         insn for compatibility with back ends that use next_active_insn to
30345         identify jump table data.
30346         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
30347         (remove_insn): Likewise.
30348         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
30349         to be emitted.
30350         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
30351         (emit_jump_table_data): New function.
30353         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
30354         basic block, a JUMP_TABLE_DATA never is.
30355         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
30356         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
30357         off from code handling real insns.
30358         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
30359         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
30360         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
30361         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
30362         is not a NONDEBUG_INSN_P.
30363         * ira-costs.c (scan_one_insn): Likewise.
30364         * jump.c (mark_all_labels): Likewise.
30365         (mark_jump_label_1): Likewise.
30366         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30367         * lra.c (get_insn_freq): Expect all insns reaching here to be in
30368         a basic block.
30369         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
30370         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
30371         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
30372         JUMP_TABLE_DATA_P insns.
30373         (calculate_elim_costs_all_insns): Likewise.
30374         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
30375         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
30376         (delete_output_reload): Code style fixups.
30377         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
30378         insn flags on this non-insn.
30379         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
30380         as scheduling barriers, for pre-change compatibility.
30381         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
30382         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
30384         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
30385         redundant JUMP_TABLE_DATA_P test.
30386         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
30387         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30388         (frv_for_each_packet): Likewise.
30389         * config/i386/i386.c (min_insn_size): Likewise.
30390         (ix86_avoid_jump_mispredicts): Likewise.
30391         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30392         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
30393         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30394         (mips16_insn_length): Robustify.
30395         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
30396         (mips16_split_long_branches): Likewise.
30397         * config/pa/pa.c (pa_combine_instructions): Likewise.
30398         * config/rs6000/rs6000.c (get_next_active_insn): Treat
30399         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
30400         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
30401         as contributing to pool range lengths.
30402         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
30403         Remove redundant JUMP_TABLE_DATA_P test.
30404         (sh_loop_align): Likewise.
30405         (split_branches): Likewise.
30406         (sh_insn_length_adjustment): Likewise.
30407         * config/spu/spu.c (get_branch_target): Likewise.
30409 2013-03-29  Jan Hubicka  <jh@suse.cz>
30411         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
30412         gcov streaming; stream hot bb threshold to ltrans.
30413         * predict.c (get_hot_bb_threshold): Break out from ....
30414         (maybe_hot_count_p): ... here.
30415         (set_hot_bb_threshold): New function.
30416         * lto-section-in.c (lto_section_name): Add profile.
30417         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
30418         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
30419         and data-streamer.h
30420         (histogram_entry): New structure.
30421         (histogram, histogram_pool): New global vars.
30422         (histogram_hash): New structure.
30423         (histogram_hash::hash): New method.
30424         (histogram_hash::equal): Likewise.
30425         (account_time_size): New function.
30426         (cmp_counts): New function.
30427         (dump_histogram): New function.
30428         (ipa_profile_generate_summary): New function.
30429         (ipa_profile_write_summary): New function.
30430         (ipa_profile_read_summary): New function.
30431         (ipa_profile): Decide on threshold.
30432         (pass_ipa_profile): Add ipa_profile_write_summary and
30433         ipa_profile_read_summary.
30434         * Makefile.in (ipa.o): Update dependencies.
30435         * lto-streamer.h (LTO_section_ipa_profile): New section.
30437 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
30439         * tree.h (VAR_P): New.
30441 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
30443         PR lto/56777
30444         * doc/invoke.texi ([-fwhole-program]): Fix typo.
30446 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
30448         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
30449         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30450         (control_flow_insn_p): Likewise.
30451         * cfgrtl.c (duplicate_insn_chain): Likewise.
30452         * final.c (get_attr_length_1): Likewise.
30453         (shorten_branches): Likewise.
30454         (final_scan_insn): Likewise.
30455         * function.c (instantiate_virtual_regs): Likewise.
30456         * gcse.c (insert_insn_end_basic_block): Likewise.
30457         * ira-costs.c (scan_one_insn): Likewise.
30458         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30459         * lra.c (check_rtl): Likewise.
30460         * reload1.c (elimination_costs_in_insn): Likewise.
30461         * reorg.c (follow_jumps): Likewise.
30463         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
30464         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30465         (thumb_far_jump_used_p): Likewise.
30466         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
30467         (workaround_speculation): Likewise.
30468         (add_sched_insns_for_speculation): Likewise.
30469         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
30470         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30471         (frv_for_each_packet): Likewise.
30472         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
30473         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
30474         (final_emit_insn_group_barriers): Likewise.
30475         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30476         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30477         (mips16_insn_length): Likewise.
30478         * config/pa/pa.c (pa_reorg): Likewise.
30479         (pa_combine_instructions): Likewise.
30480         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
30481         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
30482         (sh_reorg): Likewise.
30483         (split_branches): Likewise.
30484         * config/spu/spu.c (get_branch_target): Likewise.
30486         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
30487         JUMP_TABLE_DATA_P.
30489 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
30491         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
30492         Fix declaration name.
30494 2013-03-28  Lawrence Crowl  <crowl@google.com>
30496         * graphds.h (struct graph.indicies): Remove unused.
30497         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
30498         (SCOP_ORIGINAL_PDDRS): Remove unused.
30499         * sese.h (extern insert_loop_close_phis): Removed unused.
30500         (extern insert_guard_phis): Removed unused.
30501         (extern ivtype_map_elt_info): Removed unused.
30502         (new_ivtype_map_elt): Removed unused.
30503         * sese.c (ivtype_map_elt_info): Removed unused.
30505 2013-03-28  Lawrence Crowl  <crowl@google.com>
30507         * Makefile.in: Add several missing include dependences.
30508         (DUMPFILE_H): New.
30509         (test-dump.o): New.  This object is not added to any executable,
30510         but is present for ad-hoc testing.
30511         * bitmap.c
30512         (debug (const bitmap_head_def &)): New.
30513         (debug (const bitmap_head_def *)): New.
30514         * bitmap.h
30515         (extern debug (const bitmap_head_def &)): New.
30516         (extern debug (const bitmap_head_def *)): New.
30517         * cfg.c
30518         (debug (edge_def &)): New.
30519         (debug (edge_def *)): New.
30520         * cfghooks.c
30521         (debug (basic_block_def &)): New.
30522         (debug (basic_block_def *)): New.
30523         * dumpfile.h
30524         (dump_node (const_tree, int, FILE *)): Correct source file.
30525         * dwarf2out.c
30526         (debug (die_struct &)): New.
30527         (debug (die_struct *)): New.
30528         * dwarf2out.h
30529         (extern debug (die_struct &)): New.
30530         (extern debug (die_struct *)): New.
30531         * gimple-pretty-print.c
30532         (debug (gimple_statement_d &)): New.
30533         (debug (gimple_statement_d *)): New.
30534         * gimple-pretty-print.h
30535         (extern debug (gimple_statement_d &)): New.
30536         (extern debug (gimple_statement_d *)): New.
30537         * ira-build.c
30538         (debug (ira_allocno_copy &)): New.
30539         (debug (ira_allocno_copy *)): New.
30540         (debug (ira_allocno &)): New.
30541         (debug (ira_allocno *)): New.
30542         * ira-int.h
30543         (extern debug (ira_allocno_copy &)): New.
30544         (extern debug (ira_allocno_copy *)): New.
30545         (extern debug (ira_allocno &)): New.
30546         (extern debug (ira_allocno *)): New.
30547         * ira-lives.c
30548         (debug (live_range &)): New.
30549         (debug (live_range *)): New.
30550         * lra-int.h
30551         (debug (lra_live_range &)): New.
30552         (debug (lra_live_range *)): New.
30553         * lra-lives.c
30554         (debug (lra_live_range &)): New.
30555         (debug (lra_live_range *)): New.
30556         * omega.c
30557         (debug (omega_pb_d &)): New.
30558         (debug (omega_pb_d *)): New.
30559         * omega.h
30560         (extern debug (omega_pb_d &)): New.
30561         (extern debug (omega_pb_d *)): New.
30562         * print-rtl.c
30563         (debug (const rtx_def &)): New.
30564         (debug (const rtx_def *)): New.
30565         * print-tree.c
30566         (debug_tree (tree): Move within file.
30567         (debug_raw (const tree_node &)): New.
30568         (debug_raw (const tree_node *)): New.
30569         (dump_tree_via_hooks (const tree_node *, int)): New.
30570         (debug (const tree_node &)): New.
30571         (debug (const tree_node *)): New.
30572         (debug_verbose (const tree_node &)): New.
30573         (debug_verbose (const tree_node *)): New.
30574         (debug_head (const tree_node &)): New.
30575         (debug_head (const tree_node *)): New.
30576         (debug_body (const tree_node &)): New.
30577         (debug_body (const tree_node *)): New.
30578         (debug_vec_tree (tree): Move and reimplement in terms of dump.
30579         (debug (vec<tree, va_gc> &)): New.
30580         (debug (vec<tree, va_gc> *)): New.
30581         * rtl.h
30582         (extern debug (const rtx_def &)): New.
30583         (extern debug (const rtx_def *)): New.
30584         * sbitmap.c
30585         (debug_raw (simple_bitmap_def &)): New.
30586         (debug_raw (simple_bitmap_def *)): New.
30587         (debug (simple_bitmap_def &)): New.
30588         (debug (simple_bitmap_def *)): New.
30589         * sbitmap.h
30590         (extern debug (simple_bitmap_def &)): New.
30591         (extern debug (simple_bitmap_def *)): New.
30592         (extern debug_raw (simple_bitmap_def &)): New.
30593         (extern debug_raw (simple_bitmap_def *)): New.
30594         * sel-sched-dump.c
30595         (debug (vinsn_def &)): New.
30596         (debug (vinsn_def *)): New.
30597         (debug_verbose (vinsn_def &)): New.
30598         (debug_verbose (vinsn_def *)): New.
30599         (debug (expr_def &)): New.
30600         (debug (expr_def *)): New.
30601         (debug_verbose (expr_def &)): New.
30602         (debug_verbose (expr_def *)): New.
30603         (debug (vec<rtx> &)): New.
30604         (debug (vec<rtx> *)): New.
30605         * sel-sched-dump.h
30606         (extern debug (vinsn_def &)): New.
30607         (extern debug (vinsn_def *)): New.
30608         (extern debug_verbose (vinsn_def &)): New.
30609         (extern debug_verbose (vinsn_def *)): New.
30610         (extern debug (expr_def &)): New.
30611         (extern debug (expr_def *)): New.
30612         (extern debug_verbose (expr_def &)): New.
30613         (extern debug_verbose (expr_def *)): New.
30614         (extern debug (vec<rtx> &)): New.
30615         (extern debug (vec<rtx> *)): New.
30616         * sel-sched-ir.h
30617         (_list_iter_cond_expr): Make inline instead of static.
30618         * sreal.c
30619         (debug (sreal &)): New.
30620         (debug (sreal *)): New.
30621         * sreal.h
30622         (extern debug (sreal &)): New.
30623         (extern debug (sreal *)): New.
30624         * tree.h
30625         (extern debug_raw (const tree_node &)): New.
30626         (extern debug_raw (const tree_node *)): New.
30627         (extern debug (const tree_node &)): New.
30628         (extern debug (const tree_node *)): New.
30629         (extern debug_verbose (const tree_node &)): New.
30630         (extern debug_verbose (const tree_node *)): New.
30631         (extern debug_head (const tree_node &)): New.
30632         (extern debug_head (const tree_node *)): New.
30633         (extern debug_body (const tree_node &)): New.
30634         (extern debug_body (const tree_node *)): New.
30635         (extern debug (vec<tree, va_gc> &)): New.
30636         (extern debug (vec<tree, va_gc> *)): New.
30637         * tree-cfg.c
30638         (debug (struct loop &)): New.
30639         (debug (struct loop *)): New.
30640         (debug_verbose (struct loop &)): New.
30641         (debug_verbose (struct loop *)): New.
30642         * tree-dump.c: Add header dependence.
30643         * tree-flow.h
30644         (extern debug (struct loop &)): New.
30645         (extern debug (struct loop *)): New.
30646         (extern debug_verbose (struct loop &)): New.
30647         (extern debug_verbose (struct loop *)): New.
30648         * tree-data-ref.c
30649         (debug (data_reference &)): New.
30650         (debug (data_reference *)): New.
30651         (debug (vec<data_reference_p> &)): New.
30652         (debug (vec<data_reference_p> *)): New.
30653         (debug (vec<ddr_p> &)): New.
30654         (debug (vec<ddr_p> *)): New.
30655         * tree-data-ref.h
30656         (extern debug (data_reference &)): New.
30657         (extern debug (data_reference *)): New.
30658         (extern debug (vec<data_reference_p> &)): New.
30659         (extern debug (vec<data_reference_p> *)): New.
30660         (extern debug (vec<ddr_p> &)): New.
30661         (extern debug (vec<ddr_p> *)): New.
30662         * tree-ssa-alias.c
30663         (debug (pt_solution &)): New.
30664         (debug (pt_solution *)): New.
30665         * tree-ssa-alias.h
30666         (extern debug (pt_solution &)): New.
30667         (extern debug (pt_solution *)): New.
30668         * tree-ssa-alias.c
30669         (debug (_var_map &)): New.
30670         (debug (_var_map *)): New.
30671         (debug (tree_live_info_d &)): New.
30672         (debug (tree_live_info_d *)): New.
30673         * tree-ssa-alias.h
30674         (extern debug (_var_map &)): New.
30675         (extern debug (_var_map *)): New.
30676         (extern debug (tree_live_info_d &)): New.
30677         (extern debug (tree_live_info_d *)): New.
30679 2013-03-28  Jan Hubicka  <jh@suse.cz>
30681         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
30683 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
30685         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
30686         record only when desired or required.
30688 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
30690         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
30691         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
30693 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30695         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
30696         (*andsi3_compare0_uxtw): New pattern.
30697         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
30698         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
30700 2013-03-28  Jan Hubicka  <jh@suse.cz>
30702         * data-streamer-in.c (streamer_read_gcov_count): New function.
30703         * gimple-streamer-out.c: Include value-prof.h.
30704         (output_gimple_stmt): Output histogram.
30705         (output_bb): Use streamer_write_gcov_count.
30706         * value-prof.c: Include data-streamer.h
30707         (dump_histogram_value): Add HIST_TYPE_MAX.
30708         (stream_out_histogram_value): New function.
30709         (stream_in_histogram_value): New function.
30710         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
30711         (stream_out_histogram_value, stream_in_histogram_value): Declare.
30712         * data-streamer-out.c (streamer_write_gcov_count): New function.
30713         (streamer_write_gcov_count_stream): New function.
30714         * lto-cgraph.c (lto_output_edge): Update counter streaming.
30715         (lto_output_node): Likewise.
30716         (input_node, input_edge): Likewise.
30717         * lto-streamer-out.c (output_cfg): Update streaming.
30718         * lto-streamer-in.c (input_cfg): Likewise.
30719         * data-streamer.h (streamer_write_gcov_count,
30720         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
30721         * gimple-streamer-in.c: Include value-prof.h
30722         (input_gimple_stmt): Input histograms.
30723         (input_bb): Update profile streaming.
30725 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
30727         * genmodes.c (emit_max_int): New function.
30728         (emit_insn_modes_h): Added call to emit_max_function.
30729         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
30730         Added doc.
30731         * machmode.def: Fixed comment.
30733 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
30735         * combine.c (try_combine): Removed useless assert.
30736         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
30738 2013-03-28  Marek Polacek  <polacek@redhat.com>
30739             Richard Biener  <rguenther@suse.de>
30741         PR tree-optimization/56695
30742         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
30743         build signed result of a vector comparison.
30744         * tree-cfg.c (verify_gimple_comparison): Check that a result
30745         of a vector comparison has signed type.
30747 2013-03-28  Richard Biener  <rguenther@suse.de>
30749         PR tree-optimization/37021
30750         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
30751         do not restrict gaps between groups.
30752         * tree-vect-stmts.c (vectorizable_load): Properly account for
30753         a gap between groups.
30755 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30757         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
30758         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
30759         is not enabled.
30761 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
30763         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
30764         * doc/extend.texi (Named Address Spaces): Ditto.
30765         (Variable Attributes): Ditto.
30767 2013-03-27  Kai Tietz  <ktietz@redhat.com>
30769         * config.build: Add support for cygwin x64 target.
30770         * config.gcc: Likewise.
30771         * config.host: Likewise.
30772         * configure.ac: Likewise
30773         * configure: Regenerated.
30775 2013-03-27  Kai Tietz  <ktietz@redhat.com>
30777         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
30778         * config/i386/t-cygwin-w64: New file.
30779         * config/i386/cygwin-w64.h: New file.
30780         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
30781         and add support for x64-cygwin target.
30782         (CPP_SPEC): Likewise.
30783         (CXX_WRAP_SPEC_LIST): Undefine before define.
30784         (LIBGCJ_SONAME): Use 15 as version.
30786 2013-03-27  Richard Biener  <rguenther@suse.de>
30788         PR tree-optimization/56716
30789         * tree-ssa-structalias.c (perform_var_substitution): Adjust
30790         dumping for ref nodes.
30792 2013-03-27  Martin Jambor  <mjambor@suse.cz>
30794         PR tree-optimization/55334
30795         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
30796         restricted pointers to arrays.
30798 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
30800         * Makefile.in (.SUFFIXES): Add .cc.
30801         (.c.o): Apply same recipe for implicit rule .cc.o.
30803 2013-03-27  Richard Biener  <rguenther@suse.de>
30805         PR tree-optimization/37021
30806         * tree-vect-data-refs.c (vect_check_strided_load): Allow
30807         REALPART/IMAGPART_EXPRs around the supported refs.
30808         * tree-ssa-structalias.c (find_func_aliases): Assume that
30809         floating-point values are not used to transfer pointers.
30811 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
30813         * target.def (TARGET_HAS_IFUNC_P): New target hook.
30814         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
30815         * doc/tm.texi: Regenerate.
30816         * targhooks.h (default_has_ifunc_p): New.
30817         * targhooks.c (default_has_ifunc_p): Ditto.
30818         * config/linux-protos.h: New file.
30819         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
30820         hook for linux which disables support of indirect functions in android.
30821         * config/linux-android.c: New file.
30822         * config/t-linux-android.c: Ditto.
30823         * config.gcc: Added new object file linux-android.o.
30824         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
30825         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
30826         * varasm.c (do_assemble_alias): Likewise.
30827         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
30828         doesn't support indirect functions.
30829         * configure: Regenerate.
30831 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
30833         PR target/56102
30834         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
30835         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
30836         mult-word mode.
30838 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30840         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
30842 2013-03-27  Terry Guo  <terry.guo@arm.com>
30844         * config/arm/arm-cores.def: Added core cortex-r7.
30845         * config/arm/arm-tune.md: Regenerated.
30846         * config/arm/arm-tables.opt: Regenerated.
30847         * doc/invoke.texi: Added entry for core cortex-r7.
30849 2013-03-27  Walter Lee  <walt@tilera.com>
30851         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
30852         double-decrement of next_scratch_regno.
30854 2013-03-27  Walter Lee  <walt@tilera.com>
30856         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
30857         input operands.
30858         (insn_v1mulus): Ditto.
30859         (insn_v2muls): Ditto.
30861 2013-03-27  Walter Lee  <walt@tilera.com>
30863         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
30864         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
30866 2013-03-27  Walter Lee  <walt@tilera.com>
30868         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
30869         (*sibcall_value): Ditto.
30871 2013-03-27  Walter Lee  <walt@tilera.com>
30873         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
30874         (insn_mnz_v8qi): ... this ...
30875         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
30876         vector equivalent.
30877         (insn_v<n>mnz): Replaced by ...
30878         (insn_v1mnz): ... this ...
30879         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
30880         equivalent.
30881         (insn_mz_<mode>): Replaced by ...
30882         (insn_mz_v8qi): ... this ...
30883         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
30884         vector equivalent.
30885         (insn_v<n>mz): Replaced by ...
30886         (insn_v1mz): ... this ...
30887         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
30888         equivalent.
30890 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
30892         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
30894 2013-03-26  Roland McGrath  <mcgrathr@google.com>
30896         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
30897         than fprintf with a non-constant, non-format string.
30899 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
30901         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
30902         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
30903         operand 0 predicate.
30904         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
30905         attribute.  Use general_x64nomem_operand as operand 1 predicate.
30906         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
30907         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
30908         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
30909         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
30910         (mov<mode>_insv_1): Remove expander.  Merge insn with
30911         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
30912         Use general_x64nomem_operand as operand 1 predicate.
30913         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
30914         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
30915         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
30916         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
30917         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
30918         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
30919         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
30920         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
30921         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
30922         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
30923         (general_x64nomem_operand): Ditto.
30925 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30927         * config/rtems.opt: Add -pthread option.
30929 2013-03-26  Richard Biener  <rguenther@suse.de>
30931         * alias.c (find_base_term): Avoid redundant and not used recursion.
30932         (base_alias_check): Get the initial base term from the caller.
30933         (true_dependence_1): Compute and pass base terms to base_alias_check.
30934         (write_dependence_p): Likewise.
30935         (may_alias_p): Likewise.
30937 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
30939         * config/aarch64/aarch64.c (aarch64_classify_address): Support
30940         PC-relative load in SI modes and above only.
30942 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
30944         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
30945         * config/arm/iwmmxt.md (WCGR0): Update.
30946         (WCGR1, WCGR2, WCGR3): Likewise.
30948 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
30950         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
30951         Use x64 and nox64 isa attributes.
30953 2013-03-26  Richard Biener  <rguenther@suse.de>
30955         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
30956         alignment computations and rely on get_object_alignment_1
30957         for the !TYPE_P case.
30958         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
30960 2013-03-26  Walter Lee  <walt@tilera.com>
30962         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
30963         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
30965 2013-03-25  Jeff Law  <law@redhat.com>
30967         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
30968         check for INTEGRAL_TYPE_P that was missing due to checking in
30969         wrong version of prior patch.
30971 2013-03-25  Walter Lee  <walt@tilera.com>
30973         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
30974         TILEGX_INSN_SHUFFLEBYTES1.
30975         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
30976         shufflebytes1.
30977         (tilegx_builtins): Ditto.
30978         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
30980 2013-03-25  Walter Lee  <walt@tilera.com>
30982         * config/tilegx/tilegx.md (floatsisf2): New pattern.
30983         (floatunssisf2): New pattern.
30984         (floatsidf2): New pattern.
30985         (floatunssidf2): New pattern.
30987 2013-03-25  Walter Lee  <walt@tilera.com>
30989         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
30990         tests for constraint J, K, N, P.
30992 2013-03-25  Walter Lee  <walt@tilera.com>
30994         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
30995         Use indirect/pcrel encoding.
30996         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
30997         Ditto.
30999 2013-03-25  Steve Ellcey  <sellcey@mips.com>
31001         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31002         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31003         * config/mips/mips.c (mips_option_override): Set IMADD default.
31004         * config/mips/mips.h (PTF_AVOID_IMADD): New.
31005         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31006         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31007         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31008         * doc/invoke.texi (-mimadd/-mno-imadd): New.
31010 2013-03-25  Jeff Law  <law@redhat.com>
31012         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31013         slightly to avoid creating and folding useless trees.  Simplify
31014         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31016 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
31018         * config/i386/i386.md (*zero_extendsidi2): Merge with
31019         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
31020         * config/i386/predicates.md (x86_64_zext_operand): Rename from
31021         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
31022         targets.  Clarify comment.
31024 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31026         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31027         pass-through jump functions differently.
31028         (ipa_read_jump_function): Likewise.  Also use setter functions to set
31029         up jump functions.
31031 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31033         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31034         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31035         process it.
31036         (ipa_get_indirect_edge_target): New function.
31037         (devirtualization_time_bonus): New parameter known_aggs, pass it to
31038         ipa_get_indirect_edge_target.  Update all callers.
31039         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
31040         ipa_get_indirect_edge_target_1 instead of calling
31041         ipa_get_indirect_edge_target.
31042         (create_specialized_node): Pass aggvlas to
31043         ipcp_discover_new_direct_edges.
31045 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31047         * config/arm/arm.md (f_sels, f_seld): New types.
31048         (*cmov<mode>): New pattern.
31049         * config/arm/predicates.md (arm_vsel_comparison_operator): New
31050         predicate.
31052 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31054         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31055         POSIX-printf for mingw-hosted  builds.
31057 2013-03-25  Richard Biener  <rguenther@suse.de>
31059         PR middle-end/56694
31060         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31061         must-not-throw stmt location.
31063 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31065         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31066         Emit load-acquire versions when acq is true.
31067         (arm_emit_store_exclusive): Add rel parameter.
31068         Emit store-release versions when rel is true.
31069         (arm_split_compare_and_swap): Use acquire-release instructions
31070         instead.
31071         of barriers when appropriate.
31072         (arm_split_atomic_op): Likewise.
31073         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31074         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31075         (VUNSPEC_SLX): Likewise.
31076         (VUNSPEC_LDA): Likewise.
31077         (VUNSPEC_STL): Likewise.
31078         * config/arm/sync.md (atomic_load<mode>): New pattern.
31079         (atomic_store<mode>): Likewise.
31080         (arm_load_acquire_exclusive<mode>): Likewise.
31081         (arm_load_acquire_exclusivesi): Likewise.
31082         (arm_load_acquire_exclusivedi): Likewise.
31083         (arm_store_release_exclusive<mode>): Likewise.
31085 2013-03-25  Catherine Moore  <clm@codesourcery.com>
31087         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31088         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31089         * config/mip/predicates.md (lwsp_swsp_operand,
31090         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31091         sb16_operand, db4_operand, db7_operand, ib3_operand,
31092         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31093         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31094         andi16_operand): New predicates.
31095         * config/mips/mips.md (compression): New attribute.
31096         (enabled): New attribute.
31097         (length): Consider compression in computing length.
31098         (shift_compression): New code attribute.
31099         (*add<mode>3): New operands. Record compression.
31100         (sub<mode>3): Likewise.
31101         (one_cmpl<mode>2): Likewise.
31102         (*and<mode>3): Likewise.
31103         (*ior<mode>3): Likewise.
31104         (unnamed pattern for xor): Likewise.
31105         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31106         (*<optab><mode>3): Likewise.
31107         (*mov<mode>_internal: Likewise.
31108         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31109         (mips_unsigned_immediate_p): New.
31110         (umips_lwsp_swsp_address_p): New.
31111         (m16_based_address_p): New.
31112         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31113         (mips_unsigned_immediate_p): New prototype.
31114         (lwsp_swsp_address_p): New prototype.
31115         (m16_based_address_p): New prototype.
31116         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31117         (mips_signed_immediate_p): New function.
31118         (m16_based_address_p): New function.
31119         (lwsp_swsp_address_p): New function.
31120         (mips_print_operand_punctuation): Recognize short delay slot insns
31121         for microMIPS.add<mode>3"
31123 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31125         PR target/56720
31126         * config/arm/iterators.md (v_cmp_result): New mode attribute.
31127         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31129 2013-03-25  Richard Biener  <rguenther@suse.de>
31131         PR tree-optimization/56689
31132         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31133         any edge.
31135 2013-03-25  Richard Biener  <rguenther@suse.de>
31137         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31138         of bitmap.
31139         (memory_references): Likewise.
31140         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31141         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31142         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31143         (gather_mem_refs_in_loops): Fold into ...
31144         (analyze_memory_references): ... this.  Move initialization
31145         to tree_ssa_lim_initialize.
31146         (fill_always_executed_in): Rename to ...
31147         (fill_always_executed_in_1): ... this.
31148         (fill_always_executed_in): Move contains_call computation to
31149         this new function from ...
31150         (tree_ssa_lim_initialize): ... here.
31151         (tree_ssa_lim): Call fill_always_executed_in.
31153 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31155         * postreload.c (reload_combine): Fix code detecting returns.
31157 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31159         * function.c (emit_use_return_register_into_block): On cc0 targets,
31160         do not emit the sequence between cc0 setter and user.
31162 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31164         * config/i386/predicates.md (local_symbolic_operand): Interpret
31165         dll-imported symbols as none-local.
31167 2013-03-25  Richard Biener  <rguenther@suse.de>
31169         * tree-ssa-loop-im.c (struct depend): Remove.
31170         (struct lim_aux_data): Make depends a vec of gimples.
31171         (free_lim_aux_data): Adjust.
31172         (add_dependency): Likewise.
31173         (set_level): Likewise.
31175 2013-03-25  Richard Biener  <rguenther@suse.de>
31177         PR middle-end/56434
31178         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31179         the pointer returned by calls with ECF_MALLOC set.
31181 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31183         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31185 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31187         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31188         using MMXMODE mode iterator.
31189         (*move<mode>_internal): Merge with *movv2sf_internal and
31190         *movv2sf_internal_rex64 using MMXMODE mode iterator.
31192 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31194         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31195         (record_last_mem_set_info): Likewise.
31197         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31198         of XNEWVEC followed by memset.
31199         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31201 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31203         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31204         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31205         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31206         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31207         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31208         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31209         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31210         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31211         BARRIER_P instead of GET_CODE.
31213 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31215         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
31216         inaccuracy in the probing code.
31218         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
31219         (ctrapdi4): Likewise.
31221 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31223         * calls.c (expand_call): Add missing guard to code handling return
31224         of non-BLKmode structures in MSB.
31225         * function.c (expand_function_end): Likewise.
31227 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31229         * combine.c (try_combine): Adjust comment.  Do not add the set of
31230         insn #0 if the destination indirectly is set or dies in insn #2.
31231         Tidy up code to distribute a new note.
31233 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31235         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31236         also for alternatives 16 and 17.
31238 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31240         * config/i386/sse.md (*mov<mode>_internal): Merge with
31241         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
31242         Emit insn template depending on type attribute.  Use
31243         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31244         movd instead of movq mnemonic for interunit moves.  Rewrite mode
31245         attribute calculation.  Remove unit attribute calculation.
31246         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31247         Set prefix_data16 attribute for DImode ssemov types.
31248         Use Ym instead of y for SSE-MMX conversion alternatives.
31249         Reorder operand constraints.
31251 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
31253         * df.h (df_insn_delete): Adjust prototype.
31254         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31255         and let it decide whether mark the basic block dirty.
31256         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31257         * df-scan.c (df_insn_info_delete): New helper function, split
31258         off from df_insn_delete.
31259         (df_scan_free_bb_info): Use it.
31260         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31261         Likewise.
31262         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
31263         that the insn is actually an insn and it has a non-NULL basic block.
31264         Do not mark basic block dirty if only deleting a DEBUG_INSN.
31266 2013-03-22  Richard Biener  <rguenther@suse.de>
31268         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31269         dep_ref members.
31270         (mem_ref_alloc): Do not allocate them.
31271         (refs_independent_p): Do not query or maintain a cache.
31273 2013-03-22  Richard Biener  <rguenther@suse.de>
31275         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31276         (gather_mem_refs_in_loops): Do not compute it.
31277         (analyze_memory_references): Do not allocate it.
31278         (tree_ssa_lim_finalize): Do not free it.
31279         (for_all_locs_in_loop): Do not query all_refs_in_loop.
31281 2013-03-22  Richard Biener  <rguenther@suse.de>
31283         * is-a.h (as_a): Use gcc_checking_assert.
31285 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
31287         * config/aarch64/aarch64.c (aarch64_print_operand): New
31288         format specifier for printing a constant in hex.
31289         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
31290         format specifier for printing second operand.
31292 2013-03-22  Richard Biener  <rguenther@suse.de>
31294         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
31295         bitmaps.
31296         (gather_mem_refs_in_loops): Perform store accumulation here.
31297         (create_vop_ref_mapping_loop): Remove.
31298         (create_vop_ref_mapping): Likewise.
31299         (analyze_memory_references): Initialize refs_stored_in_loop.
31300         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
31301         (record_indep_loop): Remove.
31302         (record_dep_loop): New function.
31303         (ref_indep_loop_p_1): Adjust to only walk over references
31304         in the loop, not its subloops.
31305         (ref_indep_loop_p): Rename to ...
31306         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
31307         maintaining a more fine-grained cache.
31308         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
31309         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
31311 2013-03-22  Richard Biener  <rguenther@suse.de>
31313         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
31314         (struct mem_ref): Make accesses_in_loop a vec of a vec of
31315         aggregate mem_ref_loc.
31316         (free_mem_ref_locs): Inline into ...
31317         (memref_free): ... this and adjust.
31318         (mem_ref_alloc): Adjust.
31319         (mem_ref_locs_alloc): Remove.
31320         (record_mem_ref_loc): Adjust.
31321         (get_all_locs_in_loop): Rewrite into ...
31322         (for_all_locs_in_loop): ... this iterator.
31323         (rewrite_mem_ref_loc): New functor.
31324         (rewrite_mem_refs): Use for_all_locs_in_loop.
31325         (sm_set_flag_if_changed): New functor.
31326         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
31327         (ref_always_accessed): New functor.
31328         (ref_always_accessed_p): Use for_all_locs_in_loop.
31330 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31332         * tree-pass.h (PROP_gimple_lvec): New.
31333         * passes.c (dump_properties): Handle PROP_gimple_lvec.
31334         (init_optimization_passes): Move pass_lower_vector.
31335         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
31336         PROP_gimple_lvec.
31337         (pass_lower_vector): Provide PROP_gimple_lvec.
31338         (pass_lower_vector_ssa): Likewise.
31339         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
31341 2013-03-21  Mark Wielaard  <mjw@redhat.com>
31343         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
31345 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31347         * config/i386/i386.md (*movdi_internal): Disparage slightly
31348         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
31349         conversion alternatives.
31351 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
31353         PR middle-end/48087
31354         * diagnostic.def (DK_WERROR): New kind.
31355         * diagnostic.h (werrorcount): Define.
31356         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
31357         promoted to DK_ERROR, increment DK_WERROR counter instead of
31358         DK_ERROR counter.
31359         * toplev.c (toplev_main): Call print_ignored_options even if
31360         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
31361         even if just werrorcount is non-zero.
31363         PR debug/55608
31364         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
31365         on failure.
31366         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
31367         (string_cst_pool_decl): New function.
31368         (optimize_one_addr_into_implicit_ptr): New function.
31369         (resolve_addr_in_expr): Optimize DWARF location expression
31370         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
31371         which doesn't live in memory, but has DW_AT_location or
31372         DW_AT_const_value, or refers to a string literal, into
31373         DW_OP_GNU_implicit_pointer.
31374         (optimize_location_into_implicit_ptr): New function.
31375         (resolve_addr): If removing DW_AT_location of a variable because
31376         it was DW_OP_addr of address of the variable, but the variable doesn't
31377         live in memory, try to emit const value attribute for the initializer.
31379 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31381         * tree.h (VECTOR_TYPE_P): New macro.
31382         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
31383         TYPE_MODE): Use it.
31384         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
31385         VEC_COND_EXPR cannot be lvalues.
31386         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
31388 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31390         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
31391         Restrict the transformation to equal modes.
31393 2013-03-21  Richard Biener  <rguenther@suse.de>
31395         PR tree-optimization/39326
31396         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
31397         (MEM_ANALYZABLE): Adjust.
31398         (record_mem_ref_loc): Move bitmap ops ...
31399         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
31400         unanalyzable refs, do not record locations for it.
31401         (analyze_memory_references): Allocate ref zero as shared
31402         unanalyzable ref.
31403         (refs_independent_p): Do not test for unanalyzed mems here.
31404         (ref_indep_loop_p_1): Special-case disambiguation against
31405         the unanalyzed ref.
31406         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
31408 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
31410         * config/arm/arm-protos.h (tune_params): Add
31411         prefer_neon_for_64bits field.
31412         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
31413         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
31414         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31415         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31416         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
31417         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31418         (arm_option_override): Handle -mneon-for-64bits new option.
31419         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
31420         (prefer_neon_for_64bits): Declare new variable.
31421         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
31422         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
31423         (arch_enabled): Handle new arch types. Remove support for onlya8
31424         and nota8.
31425         (one_cmpldi2): Use new arch names.
31426         (zero_extend<mode>di2, extend<mode>di2): Ditto.
31427         * config/arm/arm.opt (mneon-for-64bits): Add option.
31428         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
31429         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
31430         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
31431         of onlya8.
31432         * doc/invoke.texi (-mneon-for-64bits): Document.
31434 2013-03-21  Richard Biener  <rguenther@suse.de>
31436         PR tree-optimization/39326
31437         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
31438         (sort_bbs_in_loop_postorder_cmp): New function.
31439         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
31441 2013-03-21  Richard Biener  <rguenther@suse.de>
31443         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
31444         (vect_insert_into_interleaving_chain): Likewise.
31445         (vect_drs_dependent_in_basic_block): Inline ...
31446         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
31447         split out from ...
31448         (vect_analyze_data_ref_dependence): ... here.  Simplify.
31449         (vect_check_interleaving): Simplify.
31450         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
31451         (vect_slp_analyze_data_ref_dependences): ... this new function.
31452         (dr_group_sort_cmp): New function.
31453         (vect_analyze_data_ref_accesses): Compute data-reference groups
31454         here instead of in vect_analyze_data_ref_dependence.  Use
31455         a more efficient algorithm.
31456         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
31457         vect_slp_analyze_data_ref_dependences.  Call
31458         vect_analyze_data_ref_accesses earlier.
31459         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
31460         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
31461         (vect_slp_analyze_data_ref_dependences): New prototype.
31463 2013-03-21  Richard Biener  <rguenther@suse.de>
31465         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
31466         ref is stored in the loop.
31467         (find_refs_for_sm): Walk only over all stores.
31468         (store_motion_loop): Allocate from lim_bitmap_obstack.
31469         (store_motion): Likewise.
31471 2013-03-21  Richard Biener  <rguenther@suse.de>
31473         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
31474         Update virtual SSA form.
31476 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31478         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
31479         * configure: Regenerate.
31480         * config.in: Regenerate.
31481         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
31482         if !HAVE_LD_EH_FRAME_CIEV3.
31484 2013-03-21  Richard Biener  <rguenther@suse.de>
31486         * tree-cfg.c (verify_expr_no_block): New function.
31487         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
31488         nor DECL_VALUE_EXPR have locations with associated blocks.
31489         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
31490         (clear_unused_block_pointer): Remove code dealing with
31491         blocks in DECL_DEBUG_EXPR locations.
31493 2013-03-21  Richard Biener  <rguenther@suse.de>
31495         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
31496         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
31497         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
31498         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
31499         instead of DECL_DEBUG_EXPR_IS_FROM.
31500         * gimplify.c (gimplify_modify_expr): Likewise.
31501         * tree-cfg.c (verify_expr_location_1): Likewise.
31502         * tree-complex.c (create_one_component_var): Likewise.
31503         * tree-sra.c (create_access_replacement): Likewise.
31504         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
31505         (clear_unused_block_pointer): Likewise.
31506         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
31507         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
31508         * var-tracking.c (var_debug_decl): Likewise.
31509         (track_expr_p): Likewise.
31510         * tree-inline.c (add_local_variables): Likewise.  Set
31511         DECL_HAS_DEBUG_EXPR_P after copying it.
31512         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
31513         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
31515 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31517         PR bootstrap/56656
31518         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
31519         * configure: Regenerate.
31520         * config.in: Regenerate.
31521         * config/i386/i386.md (*movdf_internal): Use
31522         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31523         movd instead of movq mnemonic for interunit moves.
31524         (*movdi_internal): Ditto.
31526 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31528         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
31529         (abd<mode>_3): New pattern.
31530         (aba<mode>_3): New pattern.
31531         (fabd<mode>_3): New pattern.
31533 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31535         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
31536         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
31537         occurrence of REGISTER_PREFIX as its empty string.
31539 2013-03-20  Jeff Law  <law@redhat.com>
31541         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
31542         addititional equivalences for equality comparisons between an SSA_NAME
31543         and a constant where the SSA_NAME was set from a widening conversion.
31545 2013-03-20  Walter Lee  <walt@tilera.com>
31547         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
31549 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31551         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
31552         depending on type attribute.
31553         (*movti_internal): Ditto.
31554         (*movtf_internal): Ditto.
31555         (*movxf_internal): Ditto.
31556         (*movdf_internal): Ditto.
31557         (*movsf_internal): Ditto.
31559 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31561         * config/i386/i386.md (*movti_internal): Set prefix attribute to
31562         maybe_vex for sselog1 and ssemov types.
31563         (*movdi_internal): Reorder operand constraints.
31564         (*movsi_internal): Ditto.  Set prefix attribute to
31565         maybe_vex for sselog1 and ssemov types.
31566         (*movtf_internal): Set prefix attribute to maybe_vex
31567         for sselog1 and ssemov types.
31568         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
31569         DImode ssemov types.  Reorder operand constraints.
31570         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
31571         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
31572         attribute for SImode ssemov types.  Reorder operand constraints.
31574 2013-03-20  Martin Jambor  <mjambor@suse.cz>
31576         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
31577         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
31579 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
31581         * config/rs6000/predicates.md (indexed_address, update_address_mem
31582         update_indexed_address_mem): New predicates.
31583         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
31584         attribute for load/store instructions.
31585         * config/rs6000/dfp.md (movsd_store): Likewise.
31586         (movsd_load): Likewise.
31587         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
31588         (unnamed HI->DI extend define_insn): Likewise.
31589         (unnamed SI->DI extend define_insn): Likewise.
31590         (unnamed QI->SI extend define_insn): Likewise.
31591         (unnamed QI->HI extend define_insn): Likewise.
31592         (unnamed HI->SI extend define_insn): Likewise.
31593         (unnamed HI->SI extend define_insn): Likewise.
31594         (extendsfdf2_fpr): Likewise.
31595         (movsi_internal1): Likewise.
31596         (movsi_internal1_single): Likewise.
31597         (movhi_internal): Likewise.
31598         (movqi_internal): Likewise.
31599         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
31600         attribute for load/store instructions.
31601         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
31602         instructions.
31603         (mov<mode>_softfloat): Likewise.
31604         (mov<mode>_hardfloat32): Likewise.
31605         (mov<mode>_hardfloat64): Likewise.
31606         (mov<mode>_softfloat64): Likewise.
31607         (movdi_internal32): Likewise.
31608         (movdi_internal64): Likewise.
31609         (probe_stack_<mode>): Likewise.
31611 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
31613         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
31614         floating point, and decimal floating point to reload iterator.
31616         * config/rs6000/constraints.md (wl constraint): New constraints to
31617         return FLOAT_REGS if certain options are used to reduce the number
31618         of separate patterns that exist in the file.
31619         (wx constraint): Likewise.
31620         (wz constraint): Likewise.
31622         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31623         -mdebug=reg, print wg, wl, wx, and wz constraints.
31624         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31625         Initialize the reload functions for 64-bit binary/decimal floating
31626         point types.
31627         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31628         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31629         create the buffer on the stack to overcome not having a 32-bit
31630         load and store.
31631         (rs6000_emit_move): Likewise.
31632         (rs6000_secondary_memory_needed_rtx): Likewise.
31633         (rs6000_alloc_sdmode_stack_slot): Likewise.
31634         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31635         via xxlxor, just like DFmode 0.0.
31637         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
31638         define as 1 if we are running on a power7 or newer.
31639         (enum r6000_reg_class_enum): Add new constraints.
31641         * config/rs6000/dfp.md (movsd): Delete, combine with binary
31642         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
31643         with other moves by using conditional constraits (wg).  Use LFIWZX
31644         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
31645         (movsd splitter): Likewise.
31646         (movsd_hardfloat): Likewise.
31647         (movsd_softfloat): Likewise.
31649         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
31650         binary and decimal floating point moves.
31651         (fmove_ok): New attributes to combine binary and decimal floating
31652         point moves, and to combine power6x (mfpgpr) moves along normal
31653         floating moves.
31654         (real_value_to_target): Likewise.
31655         (f32_lr): Likewise.
31656         (f32_lm): Likewise.
31657         (f32_li): Likewise.
31658         (f32_sr): Likewise.
31659         (f32_sm): Likewise.
31660         (f32_si): Likewise.
31661         (movsf): Combine binary and decimal floating point moves.  Combine
31662         power6x (mfpgpr) moves with other moves by using conditional
31663         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
31664         (mov<mode> for SFmode/SDmode); Likewise.
31665         (SFmode/SDmode splitters): Likewise.
31666         (movsf_hardfloat): Likewise.
31667         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
31668         (movsf_softfloat): Likewise.
31669         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
31671         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
31672         wx and wz constraints.
31674         * config/rs6000/constraints.md (wg constraint): New constraint to
31675         return FLOAT_REGS if -mmfpgpr (power6x) was used.
31677         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
31678         constraint.
31680         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31681         -mdebug=reg, print wg, wl, wx, and wz constraints.
31682         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31683         Initialize the reload functions for 64-bit binary/decimal floating
31684         point types.
31685         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31686         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31687         create the buffer on the stack to overcome not having a 32-bit
31688         load and store.
31689         (rs6000_emit_move): Likewise.
31690         (rs6000_secondary_memory_needed_rtx): Likewise.
31691         (rs6000_alloc_sdmode_stack_slot): Likewise.
31692         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31693         via xxlxor, just like DFmode 0.0.
31695         * config/rs6000/dfp.md (movdd): Delete, combine with binary
31696         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
31697         with other moves by using conditional constraits (wg).  Use LFIWZX
31698         and STFIWX for loading SDmode on power7.
31699         (movdd splitters): Likewise.
31700         (movdd_hardfloat32): Likewise.
31701         (movdd_softfloat32): Likewise.
31702         (movdd_hardfloat64_mfpgpr): Likewise.
31703         (movdd_hardfloat64): Likewise.
31704         (movdd_softfloat64): Likewise.
31706         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
31707         64-bit binary and decimal floating point moves.
31708         (FMOVE64X): Likewise.
31709         (movdf): Combine 64-bit binary and decimal floating point moves.
31710         Combine power6x (mfpgpr) moves with other moves by using
31711         conditional constraits (wg).
31712         (mov<mode> for DFmode/DDmode): Likewise.
31713         (DFmode/DDmode splitters): Likewise.
31714         (movdf_hardfloat32): Likewise.
31715         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
31716         (movdf_softfloat32): Likewise.
31717         (movdf_hardfloat64_mfpgpr): Likewise.
31718         (movdf_hardfloat64): Likewise.
31719         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
31720         (movdf_softfloat64): Likewise.
31721         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
31722         (reload_<mode>_load): Move to later in the file so they aren't in
31723         the middle of the floating point move insns.
31724         (reload_<mode>_store): Likewise.
31726         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
31727         constraint.
31729         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
31730         constraint if -mdebug=reg.
31731         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
31732         Enable using dd reload support if needed.
31734         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
31735         binary and decimal floating point moves in rs6000.md.
31736         (movtd_internal): Likewise.
31738         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
31739         decimal floating point moves.
31740         (movtf): Likewise.
31741         (movtf_internal): Likewise.
31742         (mov<mode>_internal, TDmode/TFmode): Likewise.
31743         (movtf_softfloat): Likewise.
31744         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
31746         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
31747         movdi_internal64, using wg constraint for move direct operations.
31748         (movdi_internal64): Likewise.
31750         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
31751         MODES_TIEABLE_P for selected modes.  Print the numerical value of
31752         the various virtual registers. Use GPR/FPR first/last values,
31753         instead of hard coding the register numbers.  Print which modes
31754         have reload functions registered.
31755         (rs6000_option_override_internal): If -mdebug=reg, trace the options
31756         settings before/after setting cpu, target and subtarget settings.
31757         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
31758         and for secondary reload failures in rs6000_secondary_reload_inner.
31759         (rs6000_secondary_reload_fail): Likewise.
31760         (rs6000_secondary_reload_inner): Likewise.
31762         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
31763         macros for first/last GPR and FPR registers.
31764         (LAST_GPR_REGNO): Likewise.
31765         (FIRST_FPR_REGNO): Likewise.
31766         (LAST_FPR_REGNO): Likewise.
31768         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
31769         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
31770         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
31771         (vcond<mode><mode>): Likewise.
31772         (vcondu<mode><mode>): Likewise.
31773         (vector_gtu<mode>): Likewise.
31774         (vector_gte<mode>): Likewise.
31775         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
31776         to prevent the compiler from converting DImode operations to TImode.
31777         (ior<mode>3): Likewise.
31778         (and<mode>3): Likewise.
31779         (one_cmpl<mode>2): Likewise.
31780         (nor<mode>3): Likewise.
31781         (andc<mode>3): Likewise.
31783         * config/rs6000/constraints.md (wt constraint): New constraint
31784         that returns VSX_REGS if TImode is allowed in VSX registers.
31786         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
31787         constant under VSX.
31789         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
31790         similar to TImode, but it is restricted to being in the GPRs.
31792         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
31793         TImode to occupy a single VSX register.
31795         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
31796         -mvsx-timode for power7/power8.
31797         (power7 cpu): Likewise.
31798         (power8 cpu): Likewise.
31800         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
31801         sure that TFmode/TDmode take up two registers if they are ever
31802         allowed in the upper VSX registers.
31803         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
31804         registers.
31805         (rs6000_init_hard_regno_mode_ok): Likewise.
31806         (rs6000_debug_reg_global): Add debugging for PTImode and wt
31807         constraint.  Print if LRA is turned on.
31808         (rs6000_option_override_internal): Give an error if -mvsx-timode
31809         and VSX is not enabled.
31810         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
31811         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
31812         to reg+offset addressing.  Use PTImode when checking offset
31813         addresses for validity.
31814         (reg_offset_addressing_ok_p): Likewise.
31815         (rs6000_legitimate_offset_address_p): Likewise.
31816         (rs6000_legitimize_address): Likewise.
31817         (rs6000_legitimize_reload_address): Likewise.
31818         (rs6000_legitimate_address_p): Likewise.
31819         (rs6000_eliminate_indexed_memrefs): Likewise.
31820         (rs6000_emit_move): Likewise.
31821         (rs6000_secondary_reload): Likewise.
31822         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
31823         reloads to fpr registers to continue to use reg+offset addressing,
31824         but 64-bit reloads to altivec registers need reg+reg addressing.
31825         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
31826         it.  Treat LO_SUM like a PLUS operation.
31827         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
31828         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
31829         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
31830         registers to share a register with a smaller sized type, since VSX
31831         puts scalars in the upper 64-bits.
31832         (print_operand): Add support for PTImode.
31833         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
31834         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
31835         registers, but don't have arithmetic support.
31836         (rs6000_memory_move_cost): Add test for VSX.
31837         (rs6000_opt_masks): Add -mvsx-timode.
31839         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
31840         for TImode.
31841         (VSs): Likewise.
31842         (VSr): Use wt constraint for TImode.
31843         (VSv): Drop TImode support.
31844         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
31845         (vsx_movti_64bit): Likewise.
31846         (vsx_movti_32bit): Likewise.
31847         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
31848         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
31849         one '?' on the appropriate output constraint.  Do not allow TImode
31850         logical operations on 32-bit systems.
31851         (vsx_ior<mode>3): Likewise.
31852         (vsx_xor<mode>3): Likewise.
31853         (vsx_one_cmpl<mode>2): Likewise.
31854         (vsx_nor<mode>3): Likewise.
31855         (vsx_andc<mode>3): Likewise.
31856         (vsx_concat_<mode>): Likewise.
31857         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
31859         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
31860         OPTION_MASK_VSX_TIMODE.
31861         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
31862         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
31864         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
31865         (TI2 iterator): New iterator for TImode, PTImode.
31866         (wd mode attribute): Add values for vector types.
31867         (movti_string): Replace TI move operations with operations for TImode
31868         and PTImode.  Add support for TImode being allowed in VSX registers.
31869         (mov<mode>_string, TImode/PTImode): Likewise.
31870         (movti_ppc64): Likewise.
31871         (mov<mode>_ppc64, TImode/PTImode): Likewise.
31872         (TI mode splitters): Likewise.
31874         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
31875         constraint.
31877 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
31879         PR tree-optimization/56355
31880         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
31881         Also handle integers with undefined overflow.
31883 2013-03-20  Catherine Moore  <clm@codesourcery.com>
31884             Maciej W. Rozycki  <macro@codesourcery.com>
31885             Tom de Vries  <tom@codesourcery.com>
31886             Nathan Sidwell  <nathan@codesourcery.com>
31887             Iain Sandoe  <iain@codesourcery.com>
31888             Nathan Froyd  <froydnj@codesourcery.com>
31889             Chao-ying Fu  <fu@mips.com>
31891         * doc/extend.texi: (micromips, nomicromips, nocompression):
31892         Document new function attributes.
31893         * doc/invoke.texi (minterlink-compressed, mmicromips,
31894         m14k, m14ke, m14kec): Document new options.
31895         (minterlink-mips16): Update documentation.
31896         * doc/md.texi (ZC, ZD): Document new constraints.
31897         * configure.ac (gcc_cv_as_micromips): Check if linker
31898         supports the .set micromips directive.
31899         * configure: Regenerate.
31900         * config.in: Regenerate.
31901         * config/mips/mips-tables.opt: Regenerate.
31902         * config/mips/micromips.md: New file.
31903         * constraints.md (ZC, ZD): New constraints.
31904         * config/mips/predicates.md (movep_src_register): New predicate.
31905         (movep_src_operand): New predicate.
31906         (non_volatile_mem_operand): New predicate.
31907         * config/mips/mips.md (multimem): New type.
31908         (length): Differentiate between 17-bit and 18-bit branch offsets.
31909         (MOVEP1, MOVEP2): New mode iterator.
31910         (mov_<load>l): Use ZC constraint.
31911         (mov_<load>r): Likewise.
31912         (mov_<store>l): Likewise.
31913         (mov_<store>r): Likewise.
31914         (*branch_equality<mode>_inverted): Add microMIPS support.
31915         (*branch_equality<mode>): Likewise.
31916         (*jump_absolute): Likewise.
31917         (indirect_jump_<mode>): Likewise.
31918         (tablejump_<mode>): Likewise.
31919         (<optab>_internal): Likewise.
31920         (sibcall_internal): Likewise.
31921         (sibcall_value_internal): Likewise.
31922         (prefetch): Use constraint ZD.
31923         * config/mips/mips.opt (minterlink-compressed): New option.
31924         (minterlink-mips16): Now an alias for minterlink-compressed.
31925         (mmicromips): New option.
31926         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31927         (compare_and_swap_12): Likewise.
31928         (sync_add<mode>): Likewise.
31929         (sync_<optab>_12): Likewise.
31930         (sync_old_<optab>_12): Likewise.
31931         (sync_new_<optab>_12): Likewise.
31932         (sync_nand_12): Likewise.
31933         (sync_old_nand_12): Likewise.
31934         (sync_new_nand_12): Likewise.
31935         (sync_sub<mode>): Likewise.
31936         (sync_old_add<mode>): Likewise.
31937         (sync_old_sub<mode>): Likewise.
31938         (sync_new_add<mode>): Likewise.
31939         (sync_new_sub<mode>): Likewise.
31940         (sync_<optab><mode>): Likewise.
31941         (sync_old_<optab><mode>): Likewise.
31942         (sync_new_<optab><mode>): Likewise.
31943         (sync_nand<mode>): Likewise.
31944         (sync_old_nand<mode>): Likewise.
31945         (sync_new_nand<mode>): Likewise.
31946         (sync_lock_test_and_set<mode>): Likewise.
31947         (test_and_set_12): Likewise.
31948         (atomic_compare_and_swap<mode>): Likewise.
31949         (atomic_exchange<mode>_llsc): Likewise.
31950         (atomic_fetch_add<mode>_llsc): Likewise.
31951         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31952         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31953         (umips_save_restore_pattern_p): Likewise.
31954         (umips_load_store_pair_p): Likewise.
31955         (umips_output_load_store_pair): Likewise.
31956         (umips_movep_target_p): Likewise.
31957         (umips_12bit_offset_address_p): Likewise.
31958         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31959         (mips_base_mips16): Rename this...
31960         (mips_base_compression_flags): ...to this. Update all uses.
31961         (mips_attribute_table): Add micromips, nomicromips and nocompression.
31962         (mips_mips16_decl_p): Delete.
31963         (mips_nomips16_decl_p): Delete.
31964         (mips_get_compress_on_flags): New function.
31965         (mips_get_compress_off_flags): New function.
31966         (mips_get_compress_mode): New function.
31967         (mips_get_compress_on_name): New function.
31968         (mips_get_compress_off_name): New function.
31969         (mips_insert_attributes): Support multiple compression types.
31970         (mips_merge_decl_attributes): Likewise.
31971         (umips_12bit_offset_address_p): New function.
31972         (mips_start_function_definition): Emit .set micromips directive.
31973         (mips_call_may_need_jalx_p): New function.
31974         (mips_function_ok_for_sibcall): Add microMIPS support.
31975         (mips_print_operand_punctuation): Support short delay slots and
31976         compact jumps.
31977         (umips_swm_mask, umips_swm_encoding): New.
31978         (umips_build_save_restore): New function.
31979         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31980         (was_mips16_p): Remove.
31981         (old_compression_mode): New.
31982         (mips_set_compression_mode): New function.
31983         (mips_set_current_function): Add microMIPS support.
31984         (mips_option_override): Likewise.
31985         (umips_save_restore_pattern_p): New function.
31986         (umips_output_save_restore): New function.
31987         (umips_load_store_pair_p_1): New function.
31988         (umips_load_store_pair_p): New function.
31989         (umips_output_load_store_pair_1): New function.
31990         (umips_output_load_store_pair): New function.
31991         (umips_movep_target_p) New function.
31992         (mips_prepare_pch_save): Add microMIPS support.
31993         * config/mips/mips.h (TARGET_COMPRESSION): New.
31994         (TARGET_CPU_CPP_BUILTINS): Update macro
31995         to use new compression flags and to support microMIPS.
31996         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31997         (MIPS_ARCH_FLOAT_SPEC): Likewise.
31998         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31999         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32000         (ASM_SPEC): Support mmicromips and mno-micromips.
32001         (M16STORE_REG_P): New macro.
32002         (MIPS_CALL): Support TARGET_MICROMIPS.
32003         (MICROMIPS_J): New macro.
32004         (mips_base_mips16): Rename this...
32005         (mips_base_compression_flags): ...to this.
32006         (UMIPS_12BIT_OFFSET_P): New macro.
32007         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32008         (MULTILIB_DIRNAMES): Likewise.
32009 2013-03-20  Richard Biener  <rguenther@suse.de>
32011         PR tree-optimization/56661
32012         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32013         the result does not have to be distinct.
32015 2013-03-20  Richard Biener  <rguenther@suse.de>
32017         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32018         remap_gimple_op_r.
32020 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32021             Steven Bosscher  <steven@gcc.gnu.org>
32023         PR rtl-optimization/56605
32024         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32026 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32028         PR bootstrap/56656
32029         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32030         that require movd instead of movq.
32032 2013-03-20  Richard Biener  <rguenther@suse.de>
32034         * tree-ssa-structalias.c (struct variable_info): Add pointer
32035         to the first field of an aggregate with sub-vars.  Make
32036         this and the pointer to the next subfield its ID.
32037         (vi_next): New function.
32038         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32039         storedanything_id, integer_id): Increment by one.
32040         (new_var_info, get_call_vi, lookup_call_clobber_vi,
32041         get_call_clobber_vi): Adjust.
32042         (solution_set_expand): Simplify and speedup.
32043         (solution_set_add): Inline into ...
32044         (set_union_with_increment): ... this.  Adjust accordingly.
32045         (do_sd_constraint): Likewise.
32046         (do_ds_constraint): Likewise.
32047         (do_complex_constraint): Simplify.
32048         (build_pred_graph): Adjust.
32049         (solve_graph): Likewise.  Simplify and speedup.
32050         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32051         get_constraint_for_component_ref, get_constraint_for_1,
32052         first_vi_for_offset, first_or_preceding_vi_for_offset,
32053         create_function_info_for, create_variable_info_for_1,
32054         create_variable_info_for, intra_create_variable_infos): Adjust.
32055         (init_base_vars): Push NULL for ID zero.
32056         (compute_points_to_sets): Adjust.
32058 2013-03-20  Richard Biener  <rguenther@suse.de>
32060         * cfgloop.c (verify_loop_structure): Streamline and avoid
32061         ICEing on corrupt loop tree.
32062         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32063         loop tree.
32065 2013-03-20  Richard Biener  <rguenther@suse.de>
32067         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32068         check whether an SSA update is needed.
32070 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
32072         * config/mips/constraints.md (T): Rename to...
32073         (Yf): ...this.
32074         (U): Rename to...
32075         (Yd): ...this.
32076         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32077         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32079 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32081         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32082         (*subsi3_carryin_uxtw): Likewise.
32084 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32086         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32087         (*rorsi3_insn_uxtw): Likewise.
32089 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32091         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32092         (*extrsi5_insn_uxtw): Likewise.
32094 2013-03-19  Richard Biener  <rguenther@suse.de>
32096         PR tree-optimization/56273
32097         * passes.c (init_optimization_passes): Move second VRP after DOM.
32099 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
32101         * config/i386/i386.md (*movti_internal): Merge from
32102         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
32103         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
32104         nox64 isa attributes.
32106 2013-03-18  Richard Biener  <rguenther@suse.de>
32108         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32109         (unite): Likewise.
32110         (merge_node_constraints): Likewise.
32111         (build_succ_graph): Likewise.
32112         (valid_graph_edge): Inline into single caller.
32113         (unify_nodes): Likewise.  Use bitmap_set_bit return value
32114         and cache varinfo.
32115         (scc_visit): Fix formatting and variable use.
32116         (do_sd_constraint): Use gcc_checking_assert.
32117         (do_ds_constraint): Likewise.
32118         (do_complex_constraint): Likewise.
32119         (condense_visit): Likewise.  Cleanup.
32120         (dump_pred_graph): New function.
32121         (perform_var_substitution): Dump the pred-graph before
32122         variable substitution.
32123         (find_equivalent_node): Use gcc_checking_assert.
32124         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32126 2013-03-18  Richard Biener  <rguenther@suse.de>
32128         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32129         Remove cond_expr_stmt_list argument and do not gimplify the
32130         built expression.
32131         (vect_loop_versioning): Adjust.
32132         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32133         Cleanup to use less temporaries.
32134         (vect_create_data_ref_ptr): Cleanup.
32136 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32138         PR tree-optimization/56635
32139         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32140         require types_compatible_p types.
32142 2013-03-18  Nick Clifton  <nickc@redhat.com>
32144         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32145         spurious backslash.
32147         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32148         Add missing line to comment describing function.
32150 2013-03-18  Richard Biener  <rguenther@suse.de>
32152         PR tree-optimization/56210
32153         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32154         Handle string / character search functions.
32155         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32157 2013-03-18  Richard Biener  <rguenther@suse.de>
32159         PR middle-end/56483
32160         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32161         and implement properly.
32162         * gimple.h (gimple_cond_single_var_p): Remove.
32164 2013-03-18  Richard Biener  <rguenther@suse.de>
32166         * tree-data-ref.h (find_data_references_in_loop): Declare.
32167         * tree-data-ref.c (get_references_in_stmt): Use a stack
32168         vector pre-allocated in the callers.
32169         (find_data_references_in_stmt): Adjust.
32170         (graphite_find_data_references_in_stmt): Likewise.
32171         (create_rdg_vertices): Likewise.
32172         (find_data_references_in_loop): Export.
32173         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32174         Compute dependences here...
32175         (vect_analyze_data_refs): ...not here.  When we encounter
32176         a non-vectorizable data reference in basic-block vectorization
32177         truncate the data reference vector.  Do not bother to
32178         fixup data-dependence information for gather loads.
32179         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32180         of data references, as reported.
32182 2013-03-18  Richard Biener  <rguenther@suse.de>
32184         PR tree-optimization/3713
32185         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
32186         has_constants and expr.
32187         (stmt_has_constants): Properly valueize SSA names when deciding
32188         whether the stmt has constants.
32190 2013-03-18  Richard Biener  <rguenther@suse.de>
32192         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32193         whole function when there is nothing to do.
32194         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32195         * tree-vectorizer.c (vectorize_loops): Update virtual and
32196         loop-closed SSA once.
32197         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32199 2013-03-18  Richard Biener  <rguenther@suse.de>
32201         PR middle-end/56113
32202         * domwalk.c (bb_postorder): New global static.
32203         (cmp_bb_postorder): New function.
32204         (walk_dominator_tree): Replace scheme imposing an order for
32205         visiting dominator sons by one sorting them at the time they
32206         are pushed on the stack.
32208 2013-03-18  Richard Biener  <rguenther@suse.de>
32210         PR tree-optimization/39326
32211         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32212         (struct mem_ref): Replace mem member with ao_ref typed member.
32213         (MEM_ANALYZABLE): Adjust.
32214         (memref_eq): Likewise.
32215         (mem_ref_alloc): Likewise.
32216         (gather_mem_refs_stmt): Likewise.
32217         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
32218         (execute_sm_if_changed_flag_set): Adjust.
32219         (execute_sm): Likewise.
32220         (ref_always_accessed_p): Likewise.
32221         (refs_independent_p): Likewise.
32222         (can_sm_ref_p): Likewise.
32224 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32226         PR c/56566
32227         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
32228         return 1 even for !unsignedp.
32230 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32232         * config/i386/i386.md (isa): Add x64 and nox64.
32233         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32234         (*pushtf): Enable *roF alternative for x64 isa only.
32235         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
32236         mode attribute of integer alternatives to DImode for TARGET_64BIT.
32237         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
32238         (*movtf_internal): Merge from *movtf_internal_rex64 and
32239         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
32240         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
32241         nox64 isa attributes.
32242         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
32243         nox64 isa attributes.
32244         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32246 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32248         * config/alpha/alpha.c (TARGET_LRA_P): New define.
32250 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
32252         PR target/56640
32253         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32254         class names.  Remove trailing comma after "ALL_REGS".
32256 2013-03-16  Jan Hubicka  <jh@suse.cz>
32258         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32259         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32260         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32261         of cgraph_get_create_node.
32262         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32264 2013-03-16  Jason Merrill  <jason@redhat.com>
32266         PR debug/49090
32267         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32268         with DW_AT_default_value.
32270 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
32272         * BASE-VER: Set to 4.9.0.
32274 2013-03-14  Andi Kleen  <ak@linux.intel.com>
32276         PR target/56619
32277         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
32278         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
32279         Document _x* TSX intrinsics.
32281 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
32282             David Holsgrove  <david.holsgrove@xilinx.com>
32284         * configure.ac: Add MicroBlaze TLS support detection.
32285         * configure: Regenerate.
32286         * config/microblaze/microblaze-protos.h
32287         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
32288         symbol_mentioned_p, label_mentioned_p): Add prototypes.
32289         * config/microblaze/microblaze.c (microblaze_address_type): Add
32290         ADDRESS_TLS and tls_reloc address types.
32291         (microblaze_address_info): Add tls_reloc.
32292         (TARGET_HAVE_TLS): Define.
32293         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
32294          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
32295          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
32296         load_tls_operand,  microblaze_call_tls_get_addr,
32297         microblaze_legitimize_tls_address): New functions.
32298         (microblaze_classify_unspec): Handle UNSPEC_TLS.
32299         (get_base_reg): Use microblaze_tls_symbol_p.
32300         (microblaze_classify_address): Handle TLS.
32301         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
32302         label_mentioned_p and microblaze_tls_referenced_p.
32303         (microblaze_legitimize_address): Handle TLS.
32304         (microblaze_address_insns): Handle ADDRESS_TLS.
32305         (pic_address_needs_scratch): Handle TLS.
32306         (print_operand_address): Handle TLS.
32307         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
32308         (microblaze_expand_move): Handle TLS.
32309         (microblaze_legitimate_constant_p): Check
32310         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
32311         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
32312         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
32313         (PIC_OFFSET_TABLE_REGNUM): Set.
32314         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
32315         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
32316         (addsi3, movsi_internal2, movdf_internal): Update constraints
32317         * config/microblaze/predicates.md (arith_plus_operand): Define
32318         (move_operand): Redefine as move_src_operand,
32319         check microblaze_tls_referenced_p.
32321 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32323         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
32324         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
32326 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32328         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
32329         CC mode for AND.
32331 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
32333         PR tree-optimization/53265
32334         * common.opt (Waggressive-loop-optimizations): New option.
32335         * tree-ssa-loop-niter.c: Include tree-pass.h.
32336         (do_warn_aggressive_loop_optimizations): New function.
32337         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
32338         if number_of_latch_executions returned constant.
32339         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
32340         early.  If number_of_latch_executions returned constant, set
32341         nb_iterations_upper_bound back to it.
32342         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
32343         field.
32344         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
32345         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
32347         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
32348         (MULTILIB_OSDIRNAMES): Set.
32349         * genmultilib: If defaultosdirname doesn't start with :: , set
32350         defaultosdirname2 instead, clear it and emit two . multilib_raw
32351         entries instead of just one.
32353 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
32355         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32356         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
32357         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32358         (SUBTARGET_OVERRIDE_OPTIONS): New.
32360 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
32362         PR target/49880
32363         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
32364         (musermode): Convert to Var(TARGET_USERMODE).
32365         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
32366         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
32367         * config/sh/sh.c (sh_option_override): Use
32368         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
32369         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
32370         condition.
32371         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
32372         TARGET_SH4.
32373         (udivsi3_i4_single, divsi3_i4_single): Use
32374         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
32376 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
32378         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
32379         default setting.
32381 2013-03-13  Richard Biener  <rguenther@suse.de>
32383         PR tree-optimization/56608
32384         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
32385         calls when vectorizing basic-blocks.
32387 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
32389         PR plugins/45078
32390         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
32391         tm_file.
32393 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
32395         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
32397 2013-03-11  Jan Hubicka  <jh@suse.cz>
32399         PR lto/56557
32400         * lto-streamer-out.c (output_symbol_p): Skip references from
32401         constructors of external variables.
32403 2013-03-11  Jan Hubicka  <jh@suse.cz>
32405         PR middle-end/56571
32406         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
32407         from pseudos.
32408         * emit-rtl.c (verify_rtx_sharing): Likewise.
32409         (copy_insn_1): Likewise.
32410         * rtl.c (copy_rtx): Likewise.
32412 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
32414         PR target/56591
32415         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
32416         output_operand_lossage message.
32418 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
32420         PR target/56470
32421         * arm.c (shift_op): Validate RTL pattern on the fly.
32422         (arm_print_operand, case 'S'): Don't use shift_operator to validate
32423         the RTL.
32425 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32427         PR target/56347
32428         * config/pa/pa.md (call_value): Check for calls to powf and direct to
32429         new call patterns that clobber %fr12.
32430         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
32431         split and postreload patterns.
32432         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
32433         registers %fr12 and %fr12R as call used.
32435 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
32437         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
32438         (canon_address, record_store, replace_read, check_mem_read_rtx,
32439         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
32440         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
32441         rest_of_handle_dse): Likewise.
32443 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
32445         PR middle-end/56524
32446         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
32447         Add base_optabs.
32448         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
32449         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
32450         (save_optabs_if_changed): Replace with...
32451         (init_tree_optimization_optabs): ...this.
32452         * optabs.c (save_optabs_if_changed): Rename to...
32453         (init_tree_optimization_optabs): ...this.  Take the optimization node
32454         as argument.  Do nothing if the base optabs are already correct.
32455         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
32456         to recompute optabs.
32457         * function.h (function): Remove optabs field.
32458         * function.c (invoke_set_current_function_hook): Call
32459         init_tree_optimization_optabs.  Use the result to initialize
32460         this_fn_optabs.
32462 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
32464         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
32465         if GTMA_HAS_NO_INSTRUMENTATION.
32466         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
32467         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
32468         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
32469         * gimple-pretty-print.c (dump_gimple_transaction): Handle
32470         GTMA_HAS_NO_INSTRUMENTATION.
32472 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
32474         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
32475         libasan_preinit.o.
32477 2013-03-08  Marek Polacek  <polacek@redhat.com>
32478             Jakub Jelinek  <jakub@redhat.com>
32480         PR tree-optimization/56478
32481         * predict.c (is_comparison_with_loop_invariant_p): Change the
32482         type of loop_step to tree.
32483         (predict_loops): Adjust.
32484         (predict_iv_comparison): Perform the computations on double_ints.
32486 2013-03-08  Richard Biener  <rguenther@suse.de>
32488         PR tree-optimization/56570
32489         * tree-cfg.c (verify_expr_location_1): Verify locations for
32490         DECL_DEBUG_EXPR.
32491         * tree-sra.c (create_access_replacement): Strip locations
32492         from DECL_DEBUG_EXPRs.
32494 2013-03-08  Richard Biener  <rguenther@suse.de>
32496         * tree-inline.c (expand_call_inline): Do not associate
32497         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
32498         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
32500 2013-03-08  Richard Biener  <rguenther@suse.de>
32502         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
32503         or block changes with -Og.  Fix for location / block encoding
32504         changes and PHI arguments with locations.
32506 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
32508         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
32509         for all counters.
32510         (struct output_info): Likewise.
32511         (register_overhead): Remove bad gcc_assert.
32512         (bitmap_find_bit): If there is only a single bitmap element, do not
32513         count a miss as a search.
32514         (print_statistics): Update for counter type changes.
32515         (dump_bitmap_statistics): Likewise.  Print headers such that they
32516         are properly lined up with the printed counters.
32518 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
32520         PR tree-optimization/56559
32521         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
32522         check that it has only a single use.
32524 2013-03-07  Richard Biener  <rguenther@suse.de>
32526         * doc/invoke.texi (fwhole-program): Discourage use in combination
32527         with -flto.
32529 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
32531         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
32533         PR tree-optimization/56539
32534         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
32535         instead of GSI_CONTINUE_LINKING as last argument to
32536         force_gimple_operand_gsi.  Adjust function comment.
32538         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
32539         aarch64-cores.def.
32541         PR middle-end/56548
32542         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
32543         promoted mode, convert the result back to the original mode.
32545 2013-03-06  Richard Biener  <rguenther@suse.de>
32547         PR middle-end/56294
32548         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
32549         (insert_updated_phi_nodes_compare_uids): New function.
32550         (update_ssa): Sort symbols_to_rename after UID before
32551         traversing it to insert PHI nodes.
32553 2013-03-06  Richard Biener  <rguenther@suse.de>
32555         PR middle-end/50494
32556         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
32557         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
32559         Revert
32560         2013-02-13  Richard Biener  <rguenther@suse.de>
32562         PR lto/50494
32563         * varasm.c (output_constant_def_1): Get the decl representing
32564         the constant as argument.
32565         (output_constant_def): Wrap output_constant_def_1.
32566         (make_decl_rtl): Use output_constant_def_1 with the decl
32567         representing the constant.
32568         (build_constant_desc): Optionally re-use a decl already
32569         representing the constant.
32570         (tree_output_constant_def): Adjust.
32572 2013-03-06  Joey Ye  <joey.ye@arm.com>
32574         PR lto/50293
32575         * gcc.c (convert_white_space): New function.
32576         (main): Handles white space in function name.
32578 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
32580         PR target/56529
32581         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
32582         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
32583         to SH_DIV_CALL_TABLE for TARGET_SH2.
32584         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
32585         list.
32586         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
32587         call-table options.
32589 2013-03-05  Sterling Augustine  <saugustine@google.com>
32590             Cary Coutant  <ccoutant@google.com>
32592         PR debug/55364
32593         * dwarf2out.c (resolve_addr): Don't call
32594         remove_loc_list_addr_table_entries a second time for the same
32595         expression.
32597 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32599         PR debug/56510
32600         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
32601         (avoid_complex_debug_insns): New function.
32602         (expand_debug_locations): Call it.
32604         PR rtl-optimization/56484
32605         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
32606         lifetimes of hard registers on small register class machines.
32608 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
32610         * config/microblaze/microblaze-protos.h: Rename
32611         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
32612         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
32613         fast_interrupt.
32614         (microblaze_fast_interrupt_function_p): New function.
32615         (microblaze_is_interrupt_handler): Rename to
32616         microblaze_is_interrupt_variant and add fast_interrupt check.
32617         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
32618         (save_restore_insns): Likewise.
32619         (compute_frame_size): Likewise.
32620         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
32621         (microblaze_globalize_label): Likewise.
32622         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
32623         * config/microblaze/microblaze.md: Use wrapper
32624         microblaze_is_interrupt_variant.
32626 2013-03-05  Kai Tietz  <ktietz@redhat.com>
32628         * sdbout.c (sdbout_one_type): Switch to current function's section
32629         supporting cold/hot.
32631 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
32633         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
32634         -mxl-reorder.
32636 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32638         PR middle-end/56461
32639         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
32640         if VALGRIND_GET_VBITS is defined, temporarily make object
32641         memory all defined, and restore previous valgrind addressability
32642         and definability afterwards.  Free this_object at the end.
32644         PR middle-end/56461
32645         * lra.c (lra): Call lra_clear_live_ranges if live_p,
32646         right before calling lra_create_live_ranges, also call it
32647         when clearing live_p.  Only call lra_clear_live_ranges
32648         at the end if live_p.
32650         PR middle-end/56461
32651         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
32653 2013-03-05  Richard Biener  <rguenther@suse.de>
32655         PR tree-optimization/56521
32656         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
32657         value-id.
32659 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
32661         PR c++/55135
32662         * except.h (remove_unreachable_eh_regions): New prototype.
32663         * except.c (remove_eh_handler_splicer): New function, split out
32664         of remove_eh_handler.
32665         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
32666         warning about running it on many EH regions one at a time.
32667         (remove_unreachable_eh_regions_worker): New function, walk the
32668         EH tree in depth-first order and remove non-marked regions.
32669         (remove_unreachable_eh_regions): New function.
32670         * tree-eh.c (mark_reachable_handlers): New function, split out
32671         from remove_unreachable_handlers.
32672         (remove_unreachable_handlers): Use mark_reachable_handlers and
32673         remove_unreachable_eh_regions.
32674         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
32675         and remove_unreachable_eh_regions.
32677 2013-03-05  Richard Biener  <rguenther@suse.de>
32679         PR middle-end/56525
32680         * loop-init.c (fix_loop_structure): Remove loops in two stages,
32681         not freeing them until the end.
32683 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32685         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
32687 2013-03-05  Richard Biener  <rguenther@suse.de>
32689         PR tree-optimization/56270
32690         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
32691         of loads after scheduling an SLP instance.
32693 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32695         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
32696         tic6x.exp.
32697         (check_gcc_parallelize): Run guality.exp as a separate job from
32698         vect.exp with unsorted.exp and $(dg_target_exps) separately from
32699         struct-layout-1.exp with stackalign.exp.
32701         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
32703         PR middle-end/56461
32704         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
32705         load_index sbitmap even if some bit in it isn't set.
32707         PR middle-end/56461
32708         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
32709         (discover_iteration_bound_by_body_walk): Change queues to
32710         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
32711         spelling in comment.  Call safe_push on queues[bound_index] directly.
32712         Release queues[queue_index] in every iteration unconditionally.
32713         Release bounds vector.
32715         PR middle-end/56461
32716         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
32717         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
32718         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
32719         inner_phis vector.
32721 2013-03-05  Richard Biener  <rguenther@suse.de>
32723         PR lto/56515
32724         * tree-inline.c (remap_blocks_to_null): New function.
32725         (expand_call_inline): When expanding a call stmt without
32726         an associated block inline remap all callee blocks to NULL.
32728 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32730         PR rtl-optimization/56494
32731         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
32732         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
32733         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
32735         PR middle-end/56461
32736         * sel-sched-ir.c (free_sched_pools): Release
32737         succs_info_pool.stack[succs_info_pool.max_top] vectors too
32738         if succs_info_pool.max_top isn't -1.
32740         PR bootstrap/56509
32741         * opts.c (opts_obstack, opts_concat): Moved to...
32742         * opts-common.c (opts_obstack, opts_concat): ... here.
32744 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
32746         PR middle-end/56461
32747         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
32749 2013-03-04  Martin Jambor  <mjambor@suse.cz>
32751         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
32752         all appropriate places.
32754 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32756         PR tree-optimization/56424
32757         * ipa-split.c (split_function): Do not set the RSO flag if result is
32758         not by reference and its type is a register type.
32760 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
32762         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
32763         (microblaze_legitimate_pic_operand): Likewise
32764         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
32765         new function microblaze_legitimate_pic_operand
32766         * config/microblaze/microblaze-protos.h
32767         (microblaze_legitimate_pic_operand): Declare.
32769 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32771         * config/microblaze/predicates.md (call_insn_simple_operand):
32772         New predicate for supported rtx code types.
32773         * config/microblaze/microblaze.md (call_internal1): Use
32774         call_insn_simple_operand predicate.
32776 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
32778         PR middle-end/56461
32779         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
32780         partitions.ordered_remove.
32782         PR middle-end/56461
32783         * tree-vect-stmts.c (vectorizable_conversion): Don't call
32784         vec_oprnds0.create (1) for modifier == NONE.
32786         PR middle-end/56461
32787         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
32788         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
32789         vec_oprnds1 right before pushing anything to it for
32790         scalar_shift_arg.
32792         PR middle-end/56461
32793         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
32794         set nbbs to 0 instead of having separate code path.
32795         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
32796         instead of false as last argument if returning NULL.
32798 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
32800         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
32801         the attribute is now called "target" instead of "option".
32802         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
32803         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
32804         attribute/pragma name for TARGET_OPTION_VALID_P and
32805         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
32806         * doc/tm.texi: Regenerated.
32808 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
32810         * config/microblaze/microblaze.c:
32811         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
32812         * config/microblaze/microblaze.h: Add -mxl-reorder to
32813         DRIVER_SELF_SPECS.
32814         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
32815         instructions emitted if TARGET_REORDER.
32816         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
32817         or 0 for -m/-mno case, but initialises as 2 to detect default use case
32818         separately.
32820 2013-03-01  Xinliang David Li  <davidxl@google.com>
32822         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
32823         walk length.
32825 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
32827         PR middle-end/56461
32828         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
32829         vector even when returning true.  Fix up function comment formatting.
32831         PR middle-end/56461
32832         * ira-build.c (ira_loop_nodes_count): New variable.
32833         (create_loop_tree_nodes): Initialize it.
32834         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
32836         PR middle-end/56461
32837         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
32838         method on dr_chain and result_chain.
32839         * tree-vect-stmts.c (vectorizable_store): Only call
32840         result_chain.create if j == 0.
32842         PR middle-end/56461
32843         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
32844         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
32845         before overwriting it.
32847 2013-03-01  Tobias Burnus  <burnus@net-b.de>
32849         * doc/extended.texi (C Extensions): Change order in @menu
32850         to match @node.
32851         (Other MIPS Built-in Functions): Move last MIPS entry before
32852         "picoChip Built-in Functions".
32853         (SH Built-in Functions): Move after RX Built-in Functions.
32854         * doc/gcc.texi (Introduction): Change order in @menu
32855         to match @node.
32856         * doc/md.texi (Constraints): Ditto.
32857         * gty.texi (Type Information): Ditto.
32858         (User-provided marking routines for template types): Make
32859         subsection.
32860         * doc/invoke.texi (AArch64 Options): Move before
32861         "Adapteva Epiphany Options".
32863 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
32864             Jakub Jelinek  <jakub@redhat.com>
32866         PR sanitizer/56454
32867         * asan.c (gate_asan): Lookup no_sanitize_address instead of
32868         no_address_safety_analysis attribute.
32869         * doc/extend.texi (no_address_safety_attribute): Rename to
32870         no_sanitize_address attribute, mention no_address_safety_analysis
32871         attribute as deprecated alias.
32873 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
32875         PR middle-end/56461
32876         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
32877         type to vec<vec<tree> > *.
32878         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
32879         to be vec<tree> instead of vec<tree> *, set vec_defs
32880         to vNULL and call vec_defs.create (number_of_vects), adjust other
32881         uses of vec_defs.
32882         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
32883         vectorizable_condition): Adjust vect_get_slp_defs callers.
32885 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32887         * config/aarch64/aarch64.c
32888         (aarch64_float_const_representable): Remove unused variable.
32890 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32892         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
32894 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32896         * config/aarch64/aarch64-builtins.c
32897         (aarch64_init_simd_builtins): Make static.
32899 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32901         * config/aarch64/aarch64.c
32902         (aarch64_simd_make_constant): Make static.
32904 2013-02-28  Martin Jambor  <mjambor@suse.cz>
32906         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
32907         with no initialization to the RHS of debug statements.
32909 2013-02-28  Martin Jambor  <mjambor@suse.cz>
32911         PR tree-optimization/56294
32912         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
32913         Adjust dumping.
32914         (get_access_replacement): Do not call create_access_replacement.
32915         Assert a replacement exists.
32916         (get_repl_default_def_ssa_name): Create the replacement declaration
32917         itself.
32919 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32921         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
32922         final_end_function.
32924 2013-02-28  Marek Polacek  <polacek@redhat.com>
32926         PR rtl-optimization/56466
32927         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
32928         if we're changing a loop.
32929         (peel_loops_completely): Likewise.
32931 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
32933         PR c++/55813
32934         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
32936 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32938         PR target/56445
32939         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
32940         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
32941         INTX_FTYPE_FX, FX_FTYPE_INTX.
32942         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
32944 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32946         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
32947         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
32948         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
32949         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
32950         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
32951         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
32952         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
32953         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
32954         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
32955         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
32956         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
32957         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
32958         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
32959         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
32960         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
32961         (avrxmega6): Increase max flash segments from 5 to 6.
32962         * config/avr/t-multilib: Regenerate.
32963         * config/avr/avr-tables.opt: Regenerate.
32964         * doc/avr-mmcu.texi: Regenerate.
32966 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32968         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
32969         (avr_device_to_arch): Rename to avr_device_to_ld.
32970         (avr_device_to_as): New prototype.
32971         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
32972         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
32973         * config/avr/driver-avr.c (avr_device_to_as): New.
32974         (avr_device_to_arch): Rename to avr_device_to_ld.
32976 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
32978         PR middle-end/56461
32979         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
32980         method on dr_chain and result_chain.
32982         PR middle-end/56461
32983         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
32984         pointer_set_destroy on not_executed_last_iteration.
32986         PR middle-end/56461
32987         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
32989         PR middle-end/56461
32990         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
32991         FOR_EACH_DEFINED_FUNCTION when freeing state.
32993         PR middle-end/56461
32994         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
32995         pool_free.
32996         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
32997         overwriting it.
32999         PR middle-end/56461
33000         * ipa-cp.c (decide_whether_version_node): Call vec_free on
33001         known_aggs[i].items and release known_aggs vector.
33003         PR middle-end/56461
33004         * ipa-reference.c (propagate): Free node_info even for alias nodes.
33006 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33008         * config/microblaze/microblaze.c (microblaze_emit_compare):
33009         Use xor for EQ/NE comparisions.
33010         * config/microblaze/microblaze.md (cstoresf4): Add constraints
33011         (cbranchsf4): Adjust operator to comparison_operator.
33013 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33015         PR middle-end/56461
33016         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33017         vector.
33018         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33019         vec_safe_push, always update *slot.
33020         (redirect_edge_var_map_clear): Use vec_free.
33021         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33022         (free_var_map_entry): Use vec_free.
33023         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33024         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33026 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
33028         PR middle-end/45472
33029         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33030         when the may_trap_p bit of the exprs being merged differs.
33031         Reorder tests for speculativeness in the logical and operator.
33033 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33035         * incpath.c (add_standard_paths): Use reconcat instead of concat
33036         where appropriate and avoid leaking memory.
33038         * opts.h: Include obstack.h.
33039         (opts_concat): New prototype.
33040         (opts_obstack): New declaration.
33041         * opts.c (opts_concat): New function.
33042         (opts_obstack): New variable.
33043         (init_options_struct): Call gcc_init_obstack on opts_obstack.
33044         (finish_options): Use opts_concat instead of concat
33045         and XOBNEWVEC instead of XNEWVEC.
33046         * opts-common.c (generate_canonical_option, decode_cmdline_option,
33047         generate_option): Likewise.
33048         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33049         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33051         PR target/56455
33052         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33053         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33055 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33057         PR middle-end/56461
33058         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33060 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33062         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33063         (arm_block_move_unaligned_straight): Likewise.
33064         (arm_adjust_block_mem): Likewise.
33066 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33068         PR target/48901
33069         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33070         temp, cond and label.
33071         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33073         PR target/52500
33074         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33075         * config/c6x/c6x.h (dbx_register_map): Update declaration.
33077         PR target/52501
33078         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33079         of prologue/epilogue functions.
33081         PR target/52550
33082         * config/tilegx/tilegx.c (tilegx_expand_prologue):
33083         Remove unused variable cfa_offset.
33084         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33086         PR target/54639
33087         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33088         type promotion to unsigned.
33090         PR target/54640
33091         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33092         for HOST_WIDE_INT of 32 bit / same size as int.
33093         (arm_block_move_unaligned_straight): Likewise.
33094         (arm_adjust_block_mem): Likewise.
33096         PR target/54662
33097         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33098         ALL_CFLAGS.
33100 2013-02-26  Marek Polacek  <polacek@redhat.com>
33102         PR tree-optimization/56426
33103         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33105 2013-02-26  Richard Biener  <rguenther@suse.de>
33107         PR target/56444
33108         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33109         unused variable loops.
33111 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33113         PR tree-optimization/56448
33114         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33115         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33116         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33117         later operands of the references, or even first operand for
33118         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33120         PR tree-optimization/56443
33121         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33122         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33123         to type_for_mode langhook.
33125 2013-02-25  Matt Turner  <mattst88@gmail.com>
33127         * doc/invoke.texi: Document r4700.
33129 2013-02-25  Richard Biener  <rguenther@suse.de>
33131         PR tree-optimization/56175
33132         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33133         split out from ...
33134         (simplify_bitwise_binary): ... here.  Also guard the conversion
33135         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33137 2013-02-25  Catherine Moore  <clm@codesourcery.com>
33139         Revert:
33140         2013-02-24  Catherine Moore  <clm@codesourcery.com>
33141             Maciej W. Rozycki  <macro@codesourcery.com>
33142             Tom de Vries  <tom@codesourcery.com>
33143             Nathan Sidwell  <nathan@codesourcery.com>
33144             Iain Sandoe  <iain@codesourcery.com>
33145             Nathan Froyd  <froydnj@codesourcery.com>
33146             Chao-ying Fu  <fu@mips.com>
33148         * doc/extend.texi: (micromips, nomicromips, nocompression):
33149         Document new function attributes.
33150         * doc/invoke.texi (minterlink-compressed, mmicromips,
33151         m14k, m14ke, m14kec): Document new options.
33152         (minterlink-mips16): Update documentation.
33153         * doc/md.texi (ZC, ZD): Document new constraints.
33154         * configure.ac (gcc_cv_as_micromips): Check if linker
33155         supports the .set micromips directive.
33156         * configure: Regenerate.
33157         * config.in: Regenerate.
33158         * config/mips/mips-tables.opt: Regenerate.
33159         * config/mips/micromips.md: New file.
33160         * constraints.md (ZC, AD): New constraints.
33161         * config/mips/predicates.md (movep_src_register): New predicate.
33162         (movep_src_operand): New predicate.
33163         (non_volatile_mem_operand): New predicate.
33164         * config/mips/mips.md (multimem): New type.
33165         (length): Differentiate between 17-bit and 18-bit branch offsets.
33166         (MOVEP1, MOVEP2): New mode iterator.
33167         (mov_<load>l): Use ZC constraint.
33168         (mov_<load>r): Likewise.
33169         (mov_<store>l): Likewise.
33170         (mov_<store>r): Likewise.
33171         (*branch_equality<mode>_inverted): Add microMIPS support.
33172         (*branch_equality<mode>): Likewise.
33173         (*jump_absolute): Likewise.
33174         (indirect_jump_<mode>): Likewise.
33175         (tablejump_<mode>): Likewise.
33176         (<optab>_internal): Likewise.
33177         (sibcall_internal): Likewise.
33178         (sibcall_value_internal): Likewise.
33179         (prefetch): Use constraint ZD.
33180         * config/mips/mips.opt (minterlink-compressed): New option.
33181         (minterlink-mips16): Now an alias for minterlink-compressed.
33182         (mmicromips): New option.
33183         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33184         (compare_and_swap_12): Likewise.
33185         (sync_add<mode>): Likewise.
33186         (sync_<optab>_12): Likewise.
33187         (sync_old_<optab>_12): Likewise.
33188         (sync_new_<optab>_12): Likewise.
33189         (sync_nand_12): Likewise.
33190         (sync_old_nand_12): Likewise.
33191         (sync_new_nand_12): Likewise.
33192         (sync_sub<mode>): Likewise.
33193         (sync_old_add<mode>): Likewise.
33194         (sync_old_sub<mode>): Likewise.
33195         (sync_new_add<mode>): Likewise.
33196         (sync_new_sub<mode>): Likewise.
33197         (sync_<optab><mode>): Likewise.
33198         (sync_old_<optab><mode>): Likewise.
33199         (sync_new_<optab><mode>): Likewise.
33200         (sync_nand<mode>): Likewise.
33201         (sync_old_nand<mode>): Likewise.
33202         (sync_new_nand<mode>): Likewise.
33203         (sync_lock_test_and_set<mode>): Likewise.
33204         (test_and_set_12): Likewise.
33205         (atomic_compare_and_swap<mode>): Likewise.
33206         (atomic_exchange<mode>_llsc): Likewise.
33207         (atomic_fetch_add<mode>_llsc): Likewise.
33208         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33209         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33210         (umips_save_restore_pattern_p): Likewise.
33211         (umips_load_store_pair_p): Likewise.
33212         (umips_output_load_store_pair): Likewise.
33213         (umips_movep_target_p): Likewise.
33214         (umips_12bit_offset_address_p): Likewise.
33215         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33216         (mips_base_mips16): Rename this...
33217         (mips_base_compression_flags): ...to this. Update all uses.
33218         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33219         (mips_mips16_decl_p): Delete.
33220         (mips_nomips16_decl_p): Delete.
33221         (mips_get_compress_on_flags): New function.
33222         (mips_get_compress_off_flags): New function.
33223         (mips_get_compress_mode): New function.
33224         (mips_get_compress_on_name): New function.
33225         (mips_get_compress_off_name): New function.
33226         (mips_insert_attributes): Support multiple compression types.
33227         (mips_merge_decl_attributes): Likewise.
33228         (umips_12bit_offset_address_p): New function.
33229         (mips_start_function_definition): Emit .set micromips directive.
33230         (mips_call_may_need_jalx_p): New function.
33231         (mips_function_ok_for_sibcall): Add microMIPS support.
33232         (mips_print_operand_punctuation): Support short delay slots and
33233         compact jumps.
33234         (umips_swm_mask, umips_swm_encoding): New.
33235         (umips_build_save_restore): New function.
33236         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33237         (was_mips16_p): Remove.
33238         (old_compression_mode): New.
33239         (mips_set_compression_mode): New function.
33240         (mips_set_current_function): Add microMIPS support.
33241         (mips_option_override): Likewise.
33242         (umips_save_restore_pattern_p): New function.
33243         (umips_output_save_restore): New function.
33244         (umips_load_store_pair_p_1): New function.
33245         (umips_load_store_pair_p): New function.
33246         (umips_output_load_store_pair_1): New function.
33247         (umips_output_load_store_pair): New function.
33248         (umips_movep_target_p) New function.
33249         (mips_prepare_pch_save): Add microMIPS support.
33250         * config/mips/mips.h (TARGET_COMPRESSION): New.
33251         (TARGET_CPU_CPP_BUILTINS): Update macro
33252         to use new compression flags and to support microMIPS.
33253         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33254         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33255         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33256         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33257         (ASM_SPEC): Support mmicromips and mno-micromips.
33258         (M16STORE_REG_P): New macro.
33259         (MIPS_CALL): Support TARGET_MICROMIPS.
33260         (MICROMIPS_J): New macro.
33261         (mips_base_mips16): Rename this...
33262         (mips_base_compression_flags): ...to this.
33263         (UMIPS_12BIT_OFFSET_P): New macro.
33264         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33265         (MULTILIB_DIRNAMES): Likewise.
33267 2013-02-25  Tom de Vries  <tom@codesourcery.com>
33269         PR rtl-optimization/56131
33270         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33271         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33272         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33274 2013-02-25  Tobias Burnus  <burnus@net-b.de>
33276         * doc/invoke.texi (-fsanitize=): Move from optimization
33277         to debugging options.
33279 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33281         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
33283 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33284             Alexander Monakov  <amonakov@ispras.ru>
33286         PR middle-end/56077
33287         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
33288         flush pending lists also on non-jumps.  Adjust comment.
33290 2013-02-24  Catherine Moore  <clm@codesourcery.com>
33291             Maciej W. Rozycki  <macro@codesourcery.com>
33292             Tom de Vries  <tom@codesourcery.com>
33293             Nathan Sidwell  <nathan@codesourcery.com>
33294             Iain Sandoe  <iain@codesourcery.com>
33295             Nathan Froyd  <froydnj@codesourcery.com>
33296             Chao-ying Fu  <fu@mips.com>
33298         * doc/extend.texi: (micromips, nomicromips, nocompression):
33299         Document new function attributes.
33300         * doc/invoke.texi (minterlink-compressed, mmicromips,
33301         m14k, m14ke, m14kec): Document new options.
33302         (minterlink-mips16): Update documentation.
33303         * doc/md.texi (ZC, ZD): Document new constraints.
33304         * configure.ac (gcc_cv_as_micromips): Check if linker
33305         supports the .set micromips directive.
33306         * configure: Regenerate.
33307         * config.in: Regenerate.
33308         * config/mips/mips-tables.opt: Regenerate.
33309         * config/mips/micromips.md: New file.
33310         * constraints.md (ZC, AD): New constraints.
33311         * config/mips/predicates.md (movep_src_register): New predicate.
33312         (movep_src_operand): New predicate.
33313         (non_volatile_mem_operand): New predicate.
33314         * config/mips/mips.md (multimem): New type.
33315         (length): Differentiate between 17-bit and 18-bit branch offsets.
33316         (MOVEP1, MOVEP2): New mode iterator.
33317         (mov_<load>l): Use ZC constraint.
33318         (mov_<load>r): Likewise.
33319         (mov_<store>l): Likewise.
33320         (mov_<store>r): Likewise.
33321         (*branch_equality<mode>_inverted): Add microMIPS support.
33322         (*branch_equality<mode>): Likewise.
33323         (*jump_absolute): Likewise.
33324         (indirect_jump_<mode>): Likewise.
33325         (tablejump_<mode>): Likewise.
33326         (<optab>_internal): Likewise.
33327         (sibcall_internal): Likewise.
33328         (sibcall_value_internal): Likewise.
33329         (prefetch): Use constraint ZD.
33330         * config/mips/mips.opt (minterlink-compressed): New option.
33331         (minterlink-mips16): Now an alias for minterlink-compressed.
33332         (mmicromips): New option.
33333         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33334         (compare_and_swap_12): Likewise.
33335         (sync_add<mode>): Likewise.
33336         (sync_<optab>_12): Likewise.
33337         (sync_old_<optab>_12): Likewise.
33338         (sync_new_<optab>_12): Likewise.
33339         (sync_nand_12): Likewise.
33340         (sync_old_nand_12): Likewise.
33341         (sync_new_nand_12): Likewise.
33342         (sync_sub<mode>): Likewise.
33343         (sync_old_add<mode>): Likewise.
33344         (sync_old_sub<mode>): Likewise.
33345         (sync_new_add<mode>): Likewise.
33346         (sync_new_sub<mode>): Likewise.
33347         (sync_<optab><mode>): Likewise.
33348         (sync_old_<optab><mode>): Likewise.
33349         (sync_new_<optab><mode>): Likewise.
33350         (sync_nand<mode>): Likewise.
33351         (sync_old_nand<mode>): Likewise.
33352         (sync_new_nand<mode>): Likewise.
33353         (sync_lock_test_and_set<mode>): Likewise.
33354         (test_and_set_12): Likewise.
33355         (atomic_compare_and_swap<mode>): Likewise.
33356         (atomic_exchange<mode>_llsc): Likewise.
33357         (atomic_fetch_add<mode>_llsc): Likewise.
33358         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33359         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33360         (umips_save_restore_pattern_p): Likewise.
33361         (umips_load_store_pair_p): Likewise.
33362         (umips_output_load_store_pair): Likewise.
33363         (umips_movep_target_p): Likewise.
33364         (umips_12bit_offset_address_p): Likewise.
33365         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33366         (mips_base_mips16): Rename this...
33367         (mips_base_compression_flags): ...to this. Update all uses.
33368         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33369         (mips_mips16_decl_p): Delete.
33370         (mips_nomips16_decl_p): Delete.
33371         (mips_get_compress_on_flags): New function.
33372         (mips_get_compress_off_flags): New function.
33373         (mips_get_compress_mode): New function.
33374         (mips_get_compress_on_name): New function.
33375         (mips_get_compress_off_name): New function.
33376         (mips_insert_attributes): Support multiple compression types.
33377         (mips_merge_decl_attributes): Likewise.
33378         (umips_12bit_offset_address_p): New function.
33379         (mips_start_function_definition): Emit .set micromips directive.
33380         (mips_call_may_need_jalx_p): New function.
33381         (mips_function_ok_for_sibcall): Add microMIPS support.
33382         (mips_print_operand_punctuation): Support short delay slots and
33383         compact jumps.
33384         (umips_swm_mask, umips_swm_encoding): New.
33385         (umips_build_save_restore): New function.
33386         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33387         (was_mips16_p): Remove.
33388         (old_compression_mode): New.
33389         (mips_set_compression_mode): New function.
33390         (mips_set_current_function): Add microMIPS support.
33391         (mips_option_override): Likewise.
33392         (umips_save_restore_pattern_p): New function.
33393         (umips_output_save_restore): New function.
33394         (umips_load_store_pair_p_1): New function.
33395         (umips_load_store_pair_p): New function.
33396         (umips_output_load_store_pair_1): New function.
33397         (umips_output_load_store_pair): New function.
33398         (umips_movep_target_p) New function.
33399         (mips_prepare_pch_save): Add microMIPS support.
33400         * config/mips/mips.h (TARGET_COMPRESSION): New.
33401         (TARGET_CPU_CPP_BUILTINS): Update macro
33402         to use new compression flags and to support microMIPS.
33403         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33404         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33405         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33406         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33407         (ASM_SPEC): Support mmicromips and mno-micromips.
33408         (M16STORE_REG_P): New macro.
33409         (MIPS_CALL): Support TARGET_MICROMIPS.
33410         (MICROMIPS_J): New macro.
33411         (mips_base_mips16): Rename this...
33412         (mips_base_compression_flags): ...to this.
33413         (UMIPS_12BIT_OFFSET_P): New macro.
33414         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33415         (MULTILIB_DIRNAMES): Likewise.
33417 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
33419         PR target/52555
33420         * target-globals.c (save_target_globals): For init_reg_sets and
33421         target_reinit remporarily set this_fn_optabs to this_target_optabs.
33423 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
33425         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
33426         * config/aarch64/t-aarch64
33427         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
33429 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
33431         PR inline-asm/56148
33432         * lra-constraints.c (process_alt_operands): Reload operand
33433         conflicting with earlier clobber only if no more other conflicting
33434         operands.
33436 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
33438         PR sanitizer/56393
33439         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
33440         if not linking a shared library.
33442 2013-02-22  Seth LaForge  <sethml@google.com>
33444         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
33446 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
33448         * config/arm/arm.md (split for extendsidi): Update condition.
33449         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
33450         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
33451         (qhs_zextenddi_cstr): Likewise.
33453 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
33455         PR middle-end/56420
33456         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
33457         avoid signed wrapping.
33458         (expand_mult): Handle properly multiplication by
33459         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
33460         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
33461         in the compiler if coeff is HOST_WIDE_INT_MIN.
33462         (expand_divmod): Don't make ext_op1 static, change it's type to
33463         uhwi.  Avoid undefined behavior in -INTVAL (op1).
33465         PR rtl-optimization/50339
33466         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
33467         field.
33468         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
33469         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
33470         into splitting_ashiftrt field.
33471         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
33472         ASHIFTRT.
33473         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
33474         choices.
33476 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
33478         PR middle-end/56108
33479         * trans-mem.c (execute_tm_mark): Do not expand transactions that
33480         are sure to go irrevocable.
33482 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
33484         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
33485         scalars are valid operands.
33487 2013-02-21  Martin Jambor  <mjambor@suse.cz>
33489         PR tree-optimization/56310
33490         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
33491         only matching indices and non-negative final offsets.
33492         (intersect_aggregates_with_edge): Pass src_idx to
33493         agg_replacements_to_vector.  Pass src_idx insstead of index to
33494         intersect_with_agg_replacements.
33496 2013-02-21  Martin Jambor  <mjambor@suse.cz>
33498         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
33499         instead of hard-wired defaults.
33501 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
33503         * doc/invoke.texi (MIPS Options): Update documentation of the
33504         floating-point multiply-accumulate instruction restrictions.
33506 2013-02-21  Kostya Serebryany  <kcc@google.com>
33508         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
33509         asan_shadow_offset on x86_64 linux.
33511 2013-02-21  Richard Biener  <rguenther@suse.de>
33513         PR tree-optimization/56415
33514         Revert
33515         2013-02-11  Richard Biener  <rguenther@suse.de>
33517         PR tree-optimization/56273
33518         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33519         first VRP run.
33521 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
33523         PR bootstrap/56258
33524         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
33525         instead of @itemx.
33527         PR inline-asm/56405
33528         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
33529         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
33531 2013-02-20  Jan Hubicka  <jh@suse.cz>
33533         PR tree-optimization/56265
33534         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
33535         when target is referenced for first time.
33537 2013-02-20  Richard Biener  <rguenther@suse.de>
33539         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
33540         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
33541         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
33542         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
33543         not return anything.
33544         (rename_ssa_copies): Do not remove unused locals.
33545         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
33546         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
33547         * passes.c (execute_function_todo): Do not schedule unused locals
33548         removal if cleanup_tree_cfg did something.
33549         * tree-ssa-live.c (remove_unused_locals): Dump statistics
33550         about the number of removed locals.
33552 2013-02-20  Richard Biener  <rguenther@suse.de>
33554         PR tree-optimization/56398
33555         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
33557 2013-02-20  Martin Jambor  <mjambor@suse.cz>
33559         PR tree-optimization/55334
33560         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
33561         restricted pointers to arrays.
33563 2013-02-20  Richard Biener  <rguenther@suse.de>
33564             Jakub Jelinek  <jakub@redhat.com>
33566         PR tree-optimization/56396
33567         * tree-ssa-ccp.c (n_const_val): New static variable.
33568         (get_value): Return NULL for SSA names we don't have a lattice
33569         entry for.
33570         (ccp_initialize): Initialize n_const_val.
33571         * tree-ssa-copy.c (n_copy_of): New static variable.
33572         (init_copy_prop): Initialize n_copy_of.
33573         (get_value): Return NULL_TREE for SSA names we don't have a
33574         lattice entry for.
33576 2013-02-20  Martin Jambor  <mjambor@suse.cz>
33578         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
33580 2013-02-20  Richard Biener  <rguenther@suse.de>
33582         * genpreds.c (write_lookup_constraint): Do not compare first
33583         letter of the constraint again.
33585 2013-02-20  Richard Biener  <rguenther@suse.de>
33587         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
33588         and ceil_log2.
33589         (get_use_iv_cost): Terminate hashtable walk when coming across
33590         an empty entry.
33592 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
33594         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
33595         reassociation for avx2 targets.
33597 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33599         * config/microblaze/microblaze.c: microblaze_has_clz = 0
33600         Add version check for v8.10.a to enable microblaze_has_clz
33601         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
33602         version and TARGET_PATTERN_COMPARE check
33603         * config/microblaze/microblaze.md: New clzsi2 instruction
33605 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33607         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
33608         function before branching.
33610 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
33612         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
33613         DUMP_INSN_RTX_UID.
33614         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
33616 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
33618         PR middle-end/55889
33619         * sel-sched.c: Include ira.h.
33620         (implicit_clobber_conflict_p): New function.
33621         (moveup_expr): Use it.
33622         * Makefile.in (sel-sched.o): Depend on ira.h.
33624 2013-02-19  Richard Biener  <rguenther@suse.de>
33626         PR tree-optimization/56384
33627         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
33628         (vn_hash_type): Split out from ...
33629         (vn_hash_constant_with_type): ... here.
33630         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
33631         (vn_phi_eq): Compare types from vn_phi_s structure.
33632         (vn_phi_lookup): Populate vn_phi_s type.
33633         (vn_phi_insert): Likewise.
33635 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
33637         PR tree-optimization/56350
33638         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
33639         if haven't found reduction or nested cycle operand, rather than
33640         asserting we must find it.
33642         PR tree-optimization/56381
33643         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
33644         to fold_build3.
33646 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
33647             Jakub Jelinek  <jakub@redhat.com>
33649         PR target/52555
33650         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
33651         (swap_optab_enable): Same.
33652         (init_all_optabs): Use argument instead of global.
33653         * tree.h (struct tree_optimization_option): New field target_optabs.
33654         * expr.h (init_all_optabs): Add argument to prototype.
33655         (TREE_OPTIMIZATION_OPTABS): New.
33656         (save_optabs_if_changed): Protoize.
33657         * optabs.h: Declare this_fn_optabs.
33658         * optabs.c (save_optabs_if_changed): New.
33659         Declare this_fn_optabs.
33660         (init_optabs): Add argument to init_all_optabs() call.
33661         * function.c (invoke_set_current_function_hook): Handle per
33662         function optabs.
33663         * function.h (struct function): New field optabs.
33664         * config/mips/mips.c (mips_set_mips16_mode): Handle when
33665         optimization_current_node has changed.
33666         * target-globals.h (save_target_globals_default_opts): Protoize.
33667         * target-globals.c (save_target_globals_default_opts): New.
33669 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33671         PR target/56347
33672         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
33673         registers %fr12 and %fr12R as call used.
33675         PR target/56214
33676         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
33677         and HImode, require all displacements to be an integer multiple of
33678         their mode size.
33679         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
33680         only allow QImode and HImode when reload is in progress and strict is
33681         true.  Likewise for symbolic addresses.  Use base14_operand to check
33682         displacements in REG+BASE addresses.
33684 2013-02-18  Richard Biener  <rguenther@suse.de>
33686         PR tree-optimization/56366
33687         * tree-vect-loop.c (get_initial_def_for_induction): Properly
33688         handle sign-conversion of outer-loop initial induction value.
33690 2013-02-18  Richard Biener  <rguenther@suse.de>
33692         PR middle-end/56349
33693         * cfghooks.c (merge_blocks): If we merge a latch into another
33694         block adjust references to it.
33695         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
33696         (verify_loop_structure): Verify that a recorded latch is in fact
33697         a latch.
33699 2013-02-18  Richard Biener  <rguenther@suse.de>
33701         PR tree-optimization/56321
33702         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
33703         order SSA name release and virtual operand unlinking.
33705 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33707         * config/microblaze/microblaze.md (save_stack_block): Define.
33708         (restore_stack_block): Likewise.
33710 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33712         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
33713         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
33714         * config/microblaze/microblaze.c (microblaze_option_override):
33715         Bail out early for PIC modes when target does not support PIC.
33717 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33719         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
33720         Replace with a microblaze version.
33721         (microblaze_trampoline_init): Adapt for microblaze.
33722         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
33723         microblaze.
33725 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
33726             Dodji Seketeli  <dodji@redhat.com>
33728         PR asan/56330
33729         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
33730         (instrument_mem_region_access): Do not forget to always put
33731         instrumentation of the of 'base' and 'base + len' in a "if (len !=
33732         0) statement, even for cases where either 'base' or 'base + len'
33733         are not instrumented -- because they have been previously
33734         instrumented.  Simplify the logic by putting all the statements
33735         instrument 'base + len' inside a sequence, and then insert that
33736         sequence right before the current insertion point.  Then, to
33737         instrument 'base + len', just get an iterator on that statement.
33738         And do not forget to update the pointer to iterator the function
33739         received as argument.
33741 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
33743         PR rtl-optimization/56348
33744         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
33746 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
33748         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
33749         (clean_graph_dump_file): Pass base to start_graph_dump.
33751 2013-02-14  Richard Henderson  <rth@redhat.com>
33753         PR target/55941
33754         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
33756 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
33758         * collect2-aix.h: Define F_LOADONLY.
33760 2013-02-14  Richard Biener  <rguenther@suse.de>
33762         PR lto/50494
33763         * varasm.c (output_constant_def_1): Get the decl representing
33764         the constant as argument.
33765         (output_constant_def): Wrap output_constant_def_1.
33766         (make_decl_rtl): Use output_constant_def_1 with the decl
33767         representing the constant.
33768         (build_constant_desc): Optionally re-use a decl already
33769         representing the constant.
33770         (tree_output_constant_def): Adjust.
33772 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
33774         Fix an asan crash
33775         * asan.c (instrument_builtin_call):  Really put the length of the
33776         second source argument into src1_len.
33778 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
33780         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
33781         argument.  If it is false, don't create edge from then_bb to
33782         fallthru_bb.
33783         (insert_if_then_before_iter): Pass true to it.
33784         (build_check_stmt): Pass false to it.
33785         (transform_statements): Flush hash table only on extended basic
33786         block boundaries, rather than at the beginning of every bb.
33787         Don't flush hash table on nonfreeing_call_p calls.
33788         * tree-flow.h (nonfreeing_call_p): New prototype.
33789         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
33791 2013-02-13  David S. Miller  <davem@davemloft.net>
33793         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
33795 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
33797         PR target/56184
33798         * ira.c (max_regno_before_ira): Move from ...
33799         (ira): ... here.
33800         (fix_reg_equiv_init): Use max_regno_before_ira instead of
33801         vec_safe_length.
33803 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
33805         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
33807 2013-02-13  Richard Biener  <rguenther@suse.de>
33809         PR lto/56295
33810         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
33811         globals in MEM_REFs.
33813 2013-02-13  Richard Biener  <rguenther@suse.de>
33815         * loop-init.c (loop_optimizer_init): Clear loop state when
33816         re-initializing preserved loops.
33817         * loop-unswitch.c (unswitch_single_loop): Return whether
33818         we unswitched the loop.  Do not verify loop state here.
33819         (unswitch_loops): When we unswitched a loop discover new loops.
33821 2013-02-13  Kostya Serebryany  <kcc@google.com>
33823         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
33824         on x86_64 linux.
33825         * sanitizer.def: Rename __asan_init to __asan_init_v1.
33827 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
33829         Avoid instrumenting duplicated memory access in the same basic block
33830         * Makefile.in (asan.o): Add new dependency on hash-table.h
33831         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
33832         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
33833         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
33834         (free_mem_ref_resources, has_mem_ref_been_instrumented)
33835         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
33836         (get_mem_ref_of_assignment): New functions.
33837         (get_mem_refs_of_builtin_call): Extract from
33838         instrument_builtin_call and tweak a little bit to make it fit with
33839         the new signature.
33840         (instrument_builtin_call): Use the new
33841         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
33842         of is_gimple_builtin_call.
33843         (instrument_derefs, instrument_mem_region_access): Insert the
33844         instrumented memory reference into the hash table.
33845         (maybe_instrument_assignment): Renamed instrument_assignment into
33846         this, and change it to advance the iterator when instrumentation
33847         actually happened and return true in that case.  This makes it
33848         homogeneous with maybe_instrument_assignment, and thus give a
33849         chance to callers to be more 'regular'.
33850         (transform_statements): Clear the memory reference hash table
33851         whenever we enter a new BB, when we cross a function call, or when
33852         we are done transforming statements.  Use
33853         maybe_instrument_assignment instead of instrumentation.  No more
33854         need to special case maybe_instrument_assignment and advance the
33855         iterator after calling it; it's now handled just like
33856         maybe_instrument_call.  Update comment.
33858 2013-02-13  Richard Biener  <rguenther@suse.de>
33860         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
33861         Fix loop discovery code.
33863 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
33865         PR inline-asm/56148
33866         * lra-constraints.c (process_alt_operands): Match early clobber
33867         operand with itself.  Check conflicts with earlyclobber only if
33868         the operand is not reloaded.  Prefer to reload conflicting operand
33869         if earlyclobber and matching operands are the same.
33871 2013-02-12  Richard Biener  <rguenther@suse.de>
33873         PR lto/56297
33874         * lto-streamer-out.c (write_symbol): Do not output symbols
33875         for hard register variables.
33877 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
33879         PR target/54222
33880         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
33881         (umulsidi3_insn, mulsidi3_insn): New insns.
33883 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
33885         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
33886         (struct tune_params): Add vec_costs field.
33887         * config/arm/arm.c (arm_builtin_vectorization_cost)
33888         (arm_add_stmt_cost): New functions.
33889         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
33890         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
33891         (arm_default_vec_cost): New struct of type cpu_vec_costs.
33892         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
33893         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
33894         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
33895         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
33897 2013-02-12  Richard Biener  <rguenther@suse.de>
33899         PR lto/56295
33900         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
33901         decls again if possible.
33903 2013-02-12  Richard Biener  <rguenther@suse.de>
33905         PR middle-end/56288
33906         * tree-ssa.c (verify_ssa_name): Fix check, move
33907         SSA_NAME_IN_FREE_LIST check up.
33909 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
33910             Steven Bosscher   <steven@gcc.gnu.org>
33912         PR rtl-optimization/56151
33913         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
33914         equal to op0 or op1, and last_insn pattern is CODE operation
33915         with MEM dest and one of the operands matches that MEM.
33917 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
33919         * doc/extend.texi: Document Function Multiversioning and "default"
33920         parameter string to target attribute.
33921         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
33922         target attribute parameter is "default".
33923         (ix86_compare_version_priority): Remove checks for target attribute.
33924         (ix86_mangle_function_version_assembler_name): Change error to sorry.
33925         Remove check for target attribute equal to NULL. Add assert.
33926         (ix86_generate_version_dispatcher_body): Change error to sorry.
33928 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
33929             Jack Howarth  <howarth@bromo.med.uc.edu>
33930             Patrick Marlier  <patrick.marlier@gmail.com>
33932         PR libitm/55693
33933         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
33934         define ENDFILE_SPEC as TM_DESTRUCTOR.
33935         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
33937 2013-02-11  Alexander Potapenko  <glider@google.com>
33938             Jack Howarth  <howarth@bromo.med.uc.edu>
33939             Jakub Jelinek  <jakub@redhat.com>
33941         PR sanitizer/55617
33942         * config/darwin.c (cdtor_record): Rename ctor_record.
33943         (sort_cdtor_records): Rename sort_ctor_records.
33944         (finalize_dtors): New routine to sort destructors by
33945         priority before use in assemble_integer.
33946         (machopic_asm_out_destructor): Use finalize_dtors if needed.
33948 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
33950         PR rtl-optimization/56275
33951         * simplify-rtx.c (avoid_constant_pool_reference): Check that
33952         offset is non-negative and less than cmode size before
33953         calling simplify_subreg.
33955 2013-02-11  Richard Biener  <rguenther@suse.de>
33957         PR tree-optimization/56264
33958         * cfgloop.h (fix_loop_structure): Adjust prototype.
33959         * loop-init.c (fix_loop_structure): Return the number of
33960         newly discovered loops.
33961         * tree-cfgcleanup.c (repair_loop_structures): When new loops
33962         are discovered, do a full loop-closed SSA rewrite.
33964 2013-02-11  Richard Biener  <rguenther@suse.de>
33966         PR tree-optimization/56273
33967         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33968         first VRP run.
33969         (check_array_ref): Fix missing newline in dumps.
33970         (search_for_addr_array): Likewise.
33972 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
33974         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
33976 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
33978         PR target/56256
33979         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
33981 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
33983         PR rtl-optimization/56246
33984         * lra-constraints.c (simplify_operand_subreg): Try to reuse
33985         reload pseudo.
33986         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
33987         constraints are satisfied.
33989 2013-02-08  Jeff Law  <law@redhat.com>
33991         PR debug/53948
33992         * emit-rtl.c (reg_is_parm_p): New function.
33993         * regs.h (reg_is_parm_p): New prototype.
33994         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
33995         callee-clobbered registers.
33997 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
33999         PR target/56043
34000         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34001         If there is no implicit builtin declaration, just return NULL.
34003 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34005         * config/i386/sse.md (FMAMODEM): New mode iterator.
34006         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34007         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34009 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34011         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34012         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34013         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34015 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34017         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34018         (microblaze*-*-elf): Likewise.
34019         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34020         LINK_SPEC.
34021         * config/microblaze/microblaze-c.c: Add builtin defines for
34022         _LITTLE_ENDIAN and _BIG_ENDIAN.
34023         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34024         add to TARGET_DEFAULT flags.
34025         Expand ASM_SPEC and LINK_SPEC.
34026         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34027         * config/microblaze/microblaze.md: Update extendsidi2 and
34028         movdi_internal instructions to use low-order / high-order reg
34029         print_operands.
34030         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34031         options and inversemask / mask of LITTLE_ENDIAN.
34032         * config/microblaze/t-microblaze: Expand multilib options to
34033         include mlittle-endian (le) and update exceptions patterns.
34035 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
34037         PR rtl-optimization/56195
34038         * lra-constraints.c (get_reload_reg): Don't reuse regs
34039         if they have smaller mode than requested, if they have
34040         wider mode than requested, try to return a SUBREG.
34042         PR tree-optimization/56250
34043         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34044         if type is unsigned and code isn't MULT_EXPR.
34046 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34048         PR tree-optimization/56064
34049         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34050         bits according to mode.
34051         * fixed-value.h (fixed_from_double_int)
34052         (const_fixed_from_double_int): Adjust comments.
34054 2013-02-08  Richard Biener  <rguenther@suse.de>
34056         PR lto/56231
34057         * lto-streamer.h (struct data_in): Remove current_file, current_line
34058         and current_col members.
34059         * lto-streamer-out.c (lto_output_location): Stream changed bits
34060         en-block for efficiency.
34061         * lto-streamer-in.c (clear_line_info): Remove.
34062         (lto_input_location): Cache current file, line and column
34063         globally via local statics.  Read changed bits en-block.
34064         (input_function): Do not call clear_line_info.
34065         (lto_read_body): Likewise.
34066         (lto_input_toplevel_asms): Likewise.
34068 2013-02-08  Michael Matz  <matz@suse.de>
34070         PR tree-optimization/52448
34071         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34072         (nt_call_phase): New static.
34073         (add_or_mark_expr): Only mark accesses with newer phase than any
34074         call seen.
34075         (nonfreeing_call_p): New.
34076         (nt_init_block): Update nt_call_phase, mark blocks as visited.
34077         (nt_fini_block): Keep blocks marked as visited.
34078         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34080 2013-02-08  Richard Biener  <rguenther@suse.de>
34082         * ira.c (ira): Free broken dominator information.
34084 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34086         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34088 2013-02-08  Marek Polacek  <polacek@redhat.com>
34090         * cfgloop.c (verify_loop_structure): Add more checking of headers.
34092 2013-02-08  Richard Biener  <rguenther@suse.de>
34094         PR middle-end/56181
34095         * cfgloop.h (flow_loops_find): Adjust.
34096         (bb_loop_header_p): Declare.
34097         * cfgloop.c (bb_loop_header_p): New function split out from ...
34098         (flow_loops_find): ... here.  Adjust function signature,
34099         support incremental loop structure update.
34100         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
34101         * cfgloopmanip.c (fix_loop_structure): Move ...
34102         * loop-init.c (fix_loop_structure): ... here.
34103         (apply_loop_flags): Split out from ...
34104         (loop_optimizer_init): ... here.
34105         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
34106         in incremental mode, only remove dead loops here.
34108 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34110         PR target/54222
34111         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34112         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34113         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34114         (*round<mode>3.libgcc): New insns for fixed-modes.
34115         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34116         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34117         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34118         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34119         implementations.  Define to __builtin_avr_absFX,
34120         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34121         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34122         __builtin_avr_countlsFX, respectively.
34123         * config/avr/avr-c.c (target.h): Include it.
34124         (enum avr_builtin_id): New enum.
34125         (avr_resolve_overloaded_builtin): New static function.
34126         (avr_register_target_pragmas): Use it to set
34127         targetm.resolve_overloaded_builtin.
34128         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34129         tree nodes used by DEF_BUILTIN.
34130         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34131         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34132         <AVR_BUILTIN_xxBITS>: Same.
34134 2013-02-08  Richard Biener  <rguenther@suse.de>
34136         * cfgloop.c (verify_loop_structure): Properly handle
34137         a loop exiting to another loop header.
34138         * ira-int.h (ira_loops): Remove.
34139         * ira.c (ira_loops): Remove.
34140         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34141         (do_reload): Use loop_optimizer_finalize.
34142         * ira-build.c (create_loop_tree_nodes): Use get_loops and
34143         number_of_loops to access the loop tree.
34144         (more_one_region_p): Likewise.
34145         (finish_loop_tree_nodes): Likewise.
34146         (rebuild_regno_allocno_maps): Likewise.
34147         (mark_loops_for_removal): Likewise.
34148         (mark_all_loops_for_removal): Likewise.
34149         (remove_unnecessary_regions): Likewise.
34150         (ira_build): Likewise.
34151         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34153 2013-02-08  Richard Biener  <rguenther@suse.de>
34155         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34156         * ipa-pure-const.c (analyze_function): Avoid calling
34157         mark_irreducible_loops twice.
34158         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34160 2013-02-07  David S. Miller  <davem@davemloft.net>
34162         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34163         on 'reg'.
34164         * var-tracking.c (vt_add_function_parameter): Test the presence of
34165         HAVE_window_save properly and do not remap argument registers when
34166         we have a leaf function.
34168 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
34170         PR bootstrap/56227
34171         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34172         instead of "ll".
34173         * config/i386/i386.c (ix86_print_operand): Ditto.
34175 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34177         * lra-constraints.c (process_alt_operands): Fix recently added comment.
34179 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34181         PR rtl-optimization/56225
34182         * lra-constraints.c (process_alt_operands): Check that reload hard
34183         reg can hold value for strict_low_part.
34185 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34187         PR debug/56154
34188         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34189         dwarf2out_end_function.
34190         (in_first_function_p, maybe_at_text_label_p,
34191         first_loclabel_num_not_at_text_label): New variables.
34192         (dwarf2out_var_location): In the first function find out
34193         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34194         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34195         functions.
34197 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
34199         PR rtl-optimization/56178
34200         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34201         SUBREG of a register.  Tidy up related block of code.
34202         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34203         note if the source is a register or a SUBREG of a register.
34205 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34207         PR target/56228
34208         * config/rs6000/rs6000.md (ptrm): New mode attr.
34209         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34210         call_value_indirect_aix<pttrsize>,
34211         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34212         m in constraints.
34214 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34216         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
34217         if -bnortl. Convert to strcmp and strncmp.
34219 2013-02-07  Alan Modra  <amodra@gmail.com>
34221         PR target/54009
34222         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
34223         addresses won't wrap when offsetting.
34224         (rs6000_secondary_reload): Provide secondary reloads needed for
34225         wrapping LO_SUM addresses.
34227 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
34229         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
34230         MACH, just __MACH__.
34232 2013-02-06  Richard Biener  <rguenther@suse.de>
34234         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34235         instead of calling fix_loop_structure.
34237 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
34239         PR middle-end/56217
34240         * omp-low.c (use_pointer_for_field): Return false if
34241         lower_send_shared_vars doesn't generate any copy-out code.
34243 2013-02-06  Tom de Vries  <tom@codesourcery.com>
34245         PR rtl-optimization/56131
34246         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34247         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
34248         of the label is NULL.  Add comment.
34250 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
34252         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34254         PR sanitizer/55374
34255         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34256         (STATIC_LIBTSAN_LIBS): Likewise.
34257         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34258         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34259         is defined, don't add anything else beyond that.
34260         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34261         (LINK_COMMAND_SPEC): Use them.
34263         PR tree-optimization/56205
34264         * tree-stdarg.c (check_all_va_list_escapes): Return true if
34265         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34266         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34268 2013-02-05  Richard Biener  <rguenther@suse.de>
34270         PR tree-optimization/53342
34271         PR tree-optimization/53185
34272         * tree-vectorizer.h (vect_check_strided_load): Remove.
34273         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34274         not disallow peeling for vectorized strided loads.
34275         (vect_check_strided_load): Make static and simplify.
34276         (vect_analyze_data_refs): Adjust.
34277         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
34278         correctly when vectorizing strided loads.
34280 2013-02-05  Richard Biener  <rguenther@suse.de>
34282         * doc/install.texi: Refer to ISL, not PPL.
34284 2013-02-05  Jan Hubicka  <jh@suse.cz>
34286         PR tree-optimization/55789
34287         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
34289 2013-02-05  Jan Hubicka  <jh@suse.cz>
34291         PR tree-optimization/55789
34292         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
34293         the dead call anyway.
34295 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
34297         PR sanitizer/55374
34298         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
34300 2013-02-04  Alexander Potapenko  <glider@google.com>
34301             Jack Howarth  <howarth@bromo.med.uc.edu>
34302             Jakub Jelinek  <jakub@redhat.com>
34304         PR sanitizer/55617
34305         * config/darwin.c (sort_ctor_records): Stabilized qsort
34306         on constructor priority by using original position.
34307         (finalize_ctors): New routine to sort constructors by
34308         priority before use in assemble_integer.
34309         (machopic_asm_out_constructor): Use finalize_ctors if needed.
34311 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
34313         PR libstdc++/54314
34314         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
34315         about visibility on artificial decls.
34316         * config/sol2.c (solaris_assemble_visibility): Likewise.
34318 2013-02-04  Kai Tietz  <ktietz@redhat.com>
34320         PR target/56186
34321         * config/i386/i386.c (function_value_ms_64): Add additional valtype
34322         argument and improve checking of return-argument types for 16-byte
34323         modes.
34324         (ix86_function_value_1): Add additional valtype argument on call
34325         of function_value_64.
34326         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
34327         handling infunction_value_64 function.
34329 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
34331         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
34333 2013-02-04  Richard Biener  <rguenther@suse.de>
34335         PR tree-optimization/56188
34336         * tree-ssa-structalias.c (label_visit): Consider case with
34337         initially non-empty points-to set.
34338         (perform_var_substitution): Dump node mapping and clean up.
34340 2013-02-04  Richard Guenther  <rguenther@suse.de>
34342         PR lto/56168
34343         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
34344         node prevail as last resort.
34345         (lto_symtab_merge_decls): Remove guard on LTRANS here.
34346         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
34348 2013-02-04  Richard Biener  <rguenther@suse.de>
34350         PR tree-optimization/56113
34351         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
34352         Merge into ...
34353         (equiv_class_lookup_or_add): ... this.
34354         (label_visit): Adjust and fix error in previous patch.
34355         (perform_var_substitution): Adjust.
34357 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
34359         * config/sh/divtab.c: Fix formatting and comments throughout the file.
34360         * config/sh/sh4-300.md: Likewise.
34361         * config/sh/sh4a.md: Likewise.
34362         * config/sh/constraints.md: Likewise.
34363         * config/sh/sh.md: Likewise.
34364         * config/sh/netbsd-elf.h: Likewise.
34365         * config/sh/predicates.md: Likewise.
34366         * config/sh/sh-protos.h: Likewise.
34367         * config/sh/ushmedia.h: Likewise.
34368         * config/sh/linux.h: Likewise.
34369         * config/sh/sh.c: Likewise.
34370         * config/sh/superh.h: Likewise.
34371         * config/sh/elf.h: Likewise.
34372         * config/sh/sh4.md: Likewise.
34373         * config/sh/sh.h: Likewise.
34375 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34377         * config/pa/constraints.md: Adjust unused letters.  Change "T"
34378         constraint to match_test floating_point_store_memory_operand().
34379         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
34380         (base14_operand): New.
34381         (floating_point_store_memory_operand): New.
34382         (integer_store_memory_operand): Revise to use base14_operand and
34383         reg_plus_base_memory_operand.
34384         (move_dest_operand): Allow symbolic_memory_operands.
34385         (symbolic_memory_operand): Check for LO_SOM.
34386         (symbolic_operand): Change default case to break.
34387         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
34388         CONST_DOUBLE values to be reloaded by putting them into memory when
34389         the destination is a floating point register.
34390         (movdf): Remove code to handle CONST_DOUBLE.
34391         (movsf): Likewise.
34392         (reload_indf_r1): New.
34393         (reload_insf_r1): New.
34394         Consistently use "Q" and "T" constraints with integer and floating
34395         point move instructions, respectively.
34396         (movdi): Remove FAIL.
34397         Change predicate for source operand unamed DImode move from
34398         general_operand to move_src_operand.
34399         (umulsidi3): Change predicate for destination operand to
34400         register_operand.
34401         Likewise for similar unamed patterns.
34402         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
34403         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
34404         (hppa_legitimize_address): Simplify mask calculation.
34405         (pa_emit_move_sequence): Revised handling of secondary reloads from
34406         REG+D addresses for floating point loads and stores.  Directly handle
34407         loading CONST0_RTX (mode) to a floating point register.
34408         (pa_secondary_reload): Handle reloading DF and SFmode constant values
34409         to floating point registers.  Don't restrict secondary reloads to
34410         floating point registers to integer modes.  Revise some comments and
34411         cleanup some code.
34412         (TARGET_LEGITIMATE_ADDRESS_P): Define.
34413         (pa_legitimate_address_p): New.
34414         (pa_legitimize_reload_address): New.
34415         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
34416         (STRICT_REG_OK_FOR_BASE_P): New.
34417         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
34418         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
34420 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
34421             Andrew Dixie  <andrewd@gentrack.com>
34423         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
34424         flag set.
34426 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
34428         * expmed.c (extract_bit_field_1): Pass the full width of the
34429         structure to get_best_reg_extraction_insn.
34431 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
34433         PR target/54601
34434         * configure.ac (use_cxa_atexit): Add AIX.
34435         * configure: Regenerate.
34437         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
34439 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
34441         PR debug/54793
34442         * final.c (need_profile_function): New variable.
34443         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
34444         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
34445         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
34446         notes, targetm.asm_out.function_prologue doesn't emit anything,
34447         HAVE_prologue and profiler should be emitted before prologue,
34448         set need_profile_function instead of emitting it.
34449         (final_scan_insn): If need_profile_function, emit
34450         profile_function on the first NOTE_INSN_BASIC_BLOCK or
34451         NOTE_INSN_FUNCTION_BEG note.
34453 2013-02-01  Richard Henderson  <rth@redhat.com>
34455         * config/rs6000/rs6000.md (smulditi3): New.
34456         (umulditi3): New.
34458         * config/alpha/alpha.md (umulditi3): New.
34460 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
34462         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
34463         (ASM_OUTPUT_ALIGNED_LOCAL): New.
34465 2013-02-01  Richard Biener  <rguenther@suse.de>
34467         PR tree-optimization/56113
34468         * tree-ssa-structalias.c (label_visit): Reduce work for
34469         single-predecessor nodes.
34471 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
34473         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
34474         range isn't testing for zero.
34476 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
34478         PR middle-end/56113
34479         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
34481 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
34482             Nick Clifton  <nickc@redhat.com>
34484         * config/v850/constraints.md (Q): Define as a memory constraint.
34485         * config/v850/predicates.md (label_ref_operand): New predicate.
34486         (e3v5_shift_operand): New predicate.
34487         (ior_operator): New predicate.
34488         * config/v850/t-v850: Add e3v5 multilib.
34489         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
34490         (v850_gen_movdi): Prototype.
34491         * config/v850/v850.c: Add support for e3v5 architecture.
34492         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
34493         TARGET_V850E_UP.
34494         (construct_save_jarl): Add e3v5 long JARL support.
34495         (v850_adjust_insn_length): New function.  Adjust length of call
34496         insns when using e3v5 instructions.
34497         (v850_gen_movdi): New function: Generate instructions to move a
34498         DImode value.
34499         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
34500         (CPP_SPEC): Define __v850e3v5__ as appropriate.
34501         (TARGET_USE_FPU): Enable for e3v5.
34502         (CONST_OK_FOR_W): New macro.
34503         (ADJUST_INSN_LENGTH): Define.
34504         * config/v850/v850.md (UNSPEC_LOOP): Define.
34505         (attr cpu): Add v850e3v5.
34506         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
34507         (movdi): New pattern.
34508         (movdi_internal): New pattern.
34509         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
34510         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
34511         (cstoresf4): Likewise.
34512         (cstoredf4): Likewise.
34513         (insv): New pattern.
34514         (rotlso3_a): New pattern.
34515         (rotlsi3_b): New pattern
34516         (rotlsi3_v850e3v5): New pattern.
34517         (doloop_begin): New pattern.
34518         (fix_loop_counter): New pattern.
34519         (doloop_end): New pattern.
34520         (branch_normal): Add e3v5 long branch support.
34521         (branch_invert): Likewise.
34522         (branch_z_normal): Likewise.
34523         (branch_z_invert): Likewise.
34524         (branch_nz_normal): Likewise.
34525         (branch_nz_invert): Likewise.
34526         (call_internal_short): Add e3v5 register-indirect JARL support.
34527         (call_internal_long): Likewise.
34528         (call_value_internal_short): Likewise.
34529         (call_value_internal_long): Likewise.
34530         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
34531         (mloop): New option.
34532         * config.gcc: Add support for configuring v840e3v5 target.
34533         * doc/invoke.texi: Document new v850 specific command line options.
34535 2013-01-31  Paul Koning  <ni1d@arrl.net>
34537         PR debug/55059
34538         PR debug/54508
34539         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
34540         children if parent is a class.
34541         (prune_unused_types_prune): Don't add DW_AT_declaration.
34543 2013-01-31  Richard Biener  <rguenther@suse.de>
34545         PR tree-optimization/56157
34546         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
34547         match up operand with SLP child.
34549 2013-01-31  Jason Merrill  <jason@redhat.com>
34551         PR debug/54410
34552         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
34553         parameters the first time.
34554         (gen_scheduled_generic_parms_dies): Check completeness here.
34556 2013-01-31  Richard Biener  <rguenther@suse.de>
34558         PR middle-end/53073
34559         * common.opt (faggressive-loop-optimizations): New flag,
34560         enabled by default.
34561         * doc/invoke.texi (faggressive-loop-optimizations): Document.
34562         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
34563         infer_loop_bounds_from_undefined by it.
34565 2013-01-31  Richard Biener  <rguenther@suse.de>
34567         PR tree-optimization/56150
34568         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
34569         visit virtual operands.
34570         (find_uses_to_rename_bb): Likewise.
34572 2013-01-31  Richard Biener  <rguenther@suse.de>
34574         PR tree-optimization/56150
34575         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
34576         mixed store non-store stmts.
34578 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
34580         PR sanitizer/55374
34581         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
34582         LIBASAN_EARLY_SPEC is defined.
34583         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
34584         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
34585         before %o.
34586         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
34588         PR c++/55742
34589         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
34590         invalid args instead of ICEing on it.
34591         (ix86_valid_target_attribute_tree): Return error_mark_node if
34592         ix86_valid_target_attribute_inner_p failed.
34593         (ix86_valid_target_attribute_p): Return false only if
34594         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
34595         target("default") attribute.
34596         (sorted_attr_string): Change argument from const char * to tree,
34597         merge in all target attribute arguments rather than just one.
34598         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
34599         instead of free.  Avoid using strcat.
34600         (ix86_mangle_function_version_assembler_name): Mangle
34601         target("default") as if no target attribute is present.  Adjust
34602         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
34603         instead of xmalloc and XDELETEVEC instead of free.
34604         (ix86_function_versions): Don't return true if one of the decls
34605         doesn't have target attribute.  If they don't and one of the decls
34606         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
34607         sorted_attr_string caller.  Use XDELETEVEC instead of free.
34608         (ix86_supports_function_versions): Remove.
34609         (make_name): Fix up formatting.
34610         (make_dispatcher_decl): Remove resolver_name and its initialization.
34611         Avoid leaking memory.
34612         (is_function_default_version): Return true if there is
34613         target("default") attribute rather than no target attribute at all.
34614         (make_resolver_func): Avoid leaking memory.
34615         (ix86_generate_version_dispatcher_body): Likewise.
34616         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
34617         * target.def (supports_function_versions): Remove.
34618         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
34619         * doc/tm.texi: Regenerated.
34621 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34623         PR rtl-optimization/56144
34624         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
34625         for values with side effects.
34627 2013-01-30  Richard Biener  <rguenther@suse.de>
34629         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
34630         (sparseset_pop): Likewise.
34631         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
34632         to be able to use quick_push in the worker loop.
34634 2013-01-30  Marek Polacek  <polacek@redhat.com>
34636         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
34638 2013-01-30  Richard Biener  <rguenther@suse.de>
34640         PR lto/56147
34641         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
34643 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
34645         PR tree-optimization/56064
34646         * fixed-value.c (fixed_from_double_int): New function.
34647         * fixed-value.h (fixed_from_double_int): New prototype.
34648         (const_fixed_from_double_int): New static inline function.
34649         * fold-const.c (native_interpret_fixed): New static function.
34650         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
34651         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
34652         (native_encode_fixed): New static function.
34653         (native_encode_expr) <FIXED_CST>: Use it.
34654         (native_interpret_int): Move double_int worker code to...
34655         * double-int.c (double_int::from_buffer): ...this new static method.
34656         * double-int.h (double_int::from_buffer): Prototype it.
34658 2013-01-30  Richard Biener  <rguenther@suse.de>
34660         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
34661         New pointer-map and obstack.
34662         (init_alias_vars): Allocate pointer-map and obstack.
34663         (delete_points_to_sets): Free them.
34664         (find_what_var_points_to): Cache result.
34665         (find_what_p_points_to): Adjust for changed interface of
34666         find_what_var_points_to.
34667         (compute_points_to_sets): Likewise.
34668         (ipa_pta_execute): Likewise.
34670 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34672         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
34673         * configure: Regenerate.
34674         * config.in: Regenerate.
34675         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
34676         #nobits/#progbits if supported.
34678 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
34680         PR target/56121
34681         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
34682         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
34683         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
34685 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34687         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
34688         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
34690 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34692         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
34693         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
34695 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34697         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
34698         declaration.
34699         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
34700         * config/arm/cortex-a7.md: New bypasses using
34701         arm_mac_accumulator_is_result.
34703 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34705         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
34706         (cortex_a7_neon_mla): Likewise.
34707         (cortex_a7_fpfmad): New reservation.
34708         (cortex_a7_fpmacs): Use ffmas and update required units.
34709         (cortex_a7_fpmuld): Update required units and latency.
34710         (cortex_a7_fpmacd): Likewise.
34711         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
34712         (cortex_a7_neon). Likewise.
34713         (bypass) Update participating units.
34715 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34717         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
34718         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
34719         from fmac to ffma.
34720         * config/arm/vfp11.md (vfp_farith): Use ffmas.
34721         (vfp_fmul): Use ffmad.
34722         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
34723         (cortex_r4_fmacd): Use ffmad.
34724         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
34725         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
34726         (cortex_a9_fmacd): Use ffmad.
34727         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
34728         (cortex_a8_vfp_macd): Use ffmad.
34729         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
34730         (cortex_a5_fpmacd): Use ffmad.
34731         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
34732         (cortex_a15_vfp_macd): Use ffmad.
34733         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
34735 2013-01-29  Jason Merrill  <jason@redhat.com>
34737         PR libstdc++/54314
34738         * varasm.c (default_assemble_visibility): Don't warn about
34739         visibility on artificial decls.
34741 2013-01-29  Richard Biener  <rguenther@suse.de>
34743         PR tree-optimization/56113
34744         * tree-ssa-structalias.c (equiv_class_lookup): Also return
34745         the bitmap leader.
34746         (label_visit): Free duplicate bitmaps and record the leader instead.
34747         (perform_var_substitution): Adjust.
34749 2013-01-29  Richard Biener  <rguenther@suse.de>
34751         PR tree-optimization/55270
34752         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
34753         the CFG, schedule loops for fixup.
34755 2013-01-29  Nick Clifton  <nickc@redhat.com>
34757         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
34758         SP_REG.
34760 2013-01-28  Leif Ekblad  <leif@rdos.net>
34762         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
34763         * config/i386/i386.h (TARGET_RDOS): New macro.
34764         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
34765         * config/i386/i386.c (ix86_option_override_internal): For 64bit
34766         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
34767         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
34768         DEFAULT_LARGE_SECTION_THRESHOLD.
34769         * config/i386/i386.md (R14_REG, R15_REG): New constants.
34770         * config/i386/rdos.h: New file.
34771         * config/i386/rdos64.h: New file.
34773 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
34775         PR other/54814
34776         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
34777         TEST_HARD_REG_BIT.
34779 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
34781         PR rtl-optimization/56117
34782         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
34783         call cselib_lookup_from_insn on the MEM before calling
34784         add_insn_mem_dependence.
34786 2013-01-28  Richard Biener  <rguenther@suse.de>
34788         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
34789         to a stmt that didn't have one.
34790         (copy_phis_for_bb): Likewise for PHI arguments.
34791         (copy_debug_stmt): Likewise for debug stmts.
34793 2013-01-28  Richard Biener  <rguenther@suse.de>
34795         PR tree-optimization/56034
34796         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
34797         (partition_builtin_p): Adjust.
34798         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
34799         it is the last partition.
34800         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
34801         up the vertex for the definition.
34802         (classify_partition): Classify whether a partition is a
34803         PKIND_REDUCTION, thus has uses outside of the loop.
34804         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
34805         Merge all PKIND_REDUCTION partitions into the last partition.
34806         (tree_loop_distribution): Seed partitions from reductions as well.
34808 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
34810         PR tree-optimization/56125
34811         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
34812         pow(x,c) into sqrt(x) * powi(x, n/2) or
34813         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
34814         optimizing for size.
34815         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
34816         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
34817         integer.
34819         PR tree-optimization/56094
34820         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
34821         to UNKNOWN_LOCATION while gimplifying expr.
34823 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
34825         PR target/56114
34826         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
34827         operand 0 in movabs insn template for -masm=intel asm alternative.
34828         (*movabs<mode>_2): Ditto for operand 1.
34830 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
34832         PR target/54663
34833         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
34834         of microblaze-c.o
34836 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34838         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
34839         tm_file.
34841 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34843         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
34844         Undef to avoid warning.
34846 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34848         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
34849         * configure: Regenerate.
34851 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
34853         PR tree-optimization/56098
34854         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
34855         for stmts with volatile ops.
34856         (cond_store_replacement): Don't optimize if assign has volatile ops.
34857         (cond_if_else_store_replacement_1): Don't optimize if either
34858         then_assign or else_assign have volatile ops.
34859         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
34860         volatile ops.
34862 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34864         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
34866 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34868         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
34869         missing ':' in asm example.
34871 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
34873         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
34874         entries into lane and laneq entries.
34875         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
34876         Remove AdvSIMD scalar modes.
34877         (aarch64_sq<r>dmulh_laneq<mode>): New.
34878         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
34879         modes.
34880         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
34881         builtin implementations to relfect changes in RTL in aarch64-simd.md.
34882         * config/aarch64/iterators.md (VCOND): New.
34883         (VCONQ): New.
34885 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34887         PR target/54222
34888         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
34889         Add NULL LIBNAME argument to existing definitions.
34890         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
34891         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
34892         * config/avr/avr.c (DEF_BUILTIN): Same.
34893         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
34894         (avr_expand_builtin): Expand to a vanilla call if a libgcc
34895         implementation is available (DECL_ASSEMBLER_NAME is set).
34896         (avr_fold_absfx): New static function.
34897         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
34898         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
34899         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
34900         AVR_BUILTIN_ABSLLK.
34901         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
34902         (abshk, absk, abslk, absllk): Provide as static inline functions.
34904 2013-01-25  Marek Polacek  <polacek@redhat.com>
34906         PR tree-optimization/56035
34907         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
34909 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
34911         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
34912         (*movtf_internal_rex64): Add (!o,C) alternative
34913         (*movxf_internal_rex64): Ditto.
34914         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
34916 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
34918         * doc/invoke.texi: fix typo.
34919         * doc/objc.texi: fix typo.
34921 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
34923         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
34924         for the first two alternatives.
34926 2013-01-24  Diego Novillo  <dnovillo@google.com>
34928         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
34929         (ggc-zone.o): Remove.
34930         * configure.ac: Remove option --with-gc.
34931         * configure: Re-generate.
34932         * doc/install.texi: Remove documentation for --with-gc.
34933         * gengtype.c (write_enum_defn): Remove.  Update all users.
34934         (write_Types_process_field): Remove generation of gt_e_* argument.
34935         (output_type_enum): Remove.  Update all users.
34936         (write_enum_defn): Remove.  Update all users.
34937         (enum alloc_zone): Remove.  Update all users.
34938         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
34939         * ggc-common.c (ggc_splay_alloc): Remove first argument.
34940         Update all callers.
34941         (struct ptr_data): Remove field TYPE.  Update all users.
34942         (gt_pch_note_object): Remove argument TYPE.  Update all users.
34943         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
34944         Update all users.
34945         * ggc-none.c (ggc_alloc_typed_stat): Remove.
34946         (struct alloc_zone): Remove.
34947         (ggc_internal_alloc_zone_stat): Remove.
34948         (ggc_internal_cleared_alloc_zone_stat): Remove.
34949         * ggc-page.c (ggc_alloc_typed_stat): Remove.
34950         (ggc_pch_count_object): Remove last argument.  Update all users.
34951         (ggc_pch_alloc_object): Remove last argument.  Update all users.
34952         (struct alloc_zone): Remove.
34953         * ggc-zone.c: Remove.
34954         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
34955         (struct alloc_zone): Remove.
34956         (ggc_alloc_typed_stat): Remove.
34957         (ggc_alloc_typed): Remove.
34958         (ggc_splay_alloc): Remove first argument.
34959         (rtl_zone): Remove.  Update all users.
34960         (tree_zone): Remove.  Update all users.
34961         (tree_id_zone): Remove.  Update all users.
34962         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
34963         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
34964         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
34965         * tree-ssanames.c: Remove references to zone allocator in comments.
34967 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
34969         * config/avr/avr.c (avr_out_fract): Make register numbers that
34970         might be outside of source operand signed.
34972 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
34974         * config/i386/constraints.md (Yf): New constraint.
34975         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
34976         of f constraint to conditionaly disable x87 register preferences.
34977         (*movdf_internal): Ditto.
34978         (*movsf_internal): Ditto.
34980 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
34982         PR inline-asm/55934
34983         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
34984         that have operands with impossible constraints.
34985         Add a FIXME for a speed-up opportunity.
34986         * lra-constraints.c (process_alt_operands): Verify that a class
34987         selected from constraints on asms is valid for the operand mode.
34988         (curr_insn_transform): Remove incorrect comment.
34990 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
34992         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
34993         TOC operand is a valid symbol ref in the constant pool.
34995 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34997         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
34999 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
35001         PR target/54222
35002         * config/avr/stdfix.h: New file.
35003         * t-avr (stdfix-gcc.h): New rule to build it.
35004         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35006 2013-01-23  Kostya Serebryany  <kcc@google.com>
35008         * config/darwin.h: remove dependency on
35009         CoreFoundation (asan on Mac OS).
35011 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
35013         PR target/49069
35014         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35015         instead of cmpdi_operand for first comparison operand.
35016         Don't assert that comparison operands aren't both constants.
35018 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35020         * doc/install.texi (Downloading the Source): Update references to
35021         downloading separate components.
35023 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35025         * doc/extend.texi (__int128): Improve grammar.
35027 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
35029         PR target/56028
35030         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35031         alternative to (o,r).
35032         (*movdi_internal_rex64): Remove (!o,n) alternative.
35033         (DImode immediate->memory splitter): Remove.
35034         (DImode immediate->memory peephole2): Remove.
35035         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35036         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35037         alternative to (!o,*r).
35038         (*movtf_internal_sse): New pattern.
35039         (*movxf_internal_rex64): New pattern.
35040         (*movxf_internal): Disable for TARGET_64BIT.
35041         (*movdf_internal_rex64): Remove (!o,F) alternative.
35043 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
35045         PR middle-end/56074
35046         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35047         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35048         * tree-vect-loop-manip.c (find_loop_location): Also ignore
35049         stmt locations where LOCATION_LOCUS of the stmt location is
35050         UNKNOWN_LOCATION or BUILTINS_LOCATION.
35052         PR target/55686
35053         * config/i386/i386.md (UNSPEC_STOS): New.
35054         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35055         *strsetqi_1): Add UNSPEC_STOS.
35057 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
35059         PR c++/56067
35060         * doc/invoke.texi: Remove left over -Wsynth example.
35062 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35064         PR tree-optimization/56051
35065         * fold-const.c (fold_binary_loc): Don't fold
35066         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35067         a narrowing conversion, or widening conversion from signed
35068         to unsigned.
35070 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35072         PR rtl-optimization/56023
35073         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35074         dependent on debug instruction.
35076 2013-01-21  Martin Jambor  <mjambor@suse.cz>
35078         PR middle-end/56022
35079         * function.c (allocate_struct_function): Call
35080         invoke_set_current_function_hook earlier.
35082 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35084         * reload1.c (init_reload): Only initialize reload_obstack
35085         during the first call.
35087 2013-01-21  Marek Polacek  <polacek@redhat.com>
35089         * cfgloop.c (verify_loop_structure): Fix up grammar.
35091 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
35093         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35094         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35096 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35098         PR target/56058
35099         * config/arm/marvell-pj4.md: Update copyright year.
35100         Fix up use of alu to alu_reg and simple_alu_imm.
35102 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35104         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35106 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
35108         PR target/55433
35109         * lra-constraints.c (curr_insn_transform): Don't reuse original
35110         insn for secondary memory move when memory mode should be different.
35112 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35114         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35115         atomic_storedi_1): New patterns.
35117 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
35119         btver2 pipeline descriptions.
35120         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35121         descriptions.
35122         * config/i386/i386.md (btver2_decode): New type attributes.
35123         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35124         type attributes.
35125         * config/i386/btver2.md: New file describing btver2 pipelines.
35127 2013-01-19  Andrew Pinski  <apinski@cavium.com>
35129         PR tree-optimization/52631
35130         * tree-ssa-sccvn (visit_use): Before looking up the original
35131         statement, try looking up the simplified expression.
35133 2013-01-19  Anthony Green  <green@moxielogic.com>
35135         * config/moxie/moxie.c (moxie_expand_prologue): Set
35136         current_function_static_stack_size.
35138 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35140         PR tree-optimization/56029
35141         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35142         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35144 2013-01-18  Sharad Singhai  <singhai@google.com>
35146         PR tree-optimization/55995
35147         * dumpfile.c (dump_loc): Print location only if available.
35148         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35150 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
35152         PR target/55433
35153         * lra-constraints.c (curr_insn_transform): Reuse original insn for
35154         secondary memory move.
35155         (inherit_reload_reg): Use rclass instead of cl for
35156         check_secondary_memory_needed_p.
35158 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35160         PR middle-end/56015
35161         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35162         the case where writing real complex part of target modifies op1.
35164 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
35166         * config/aarch64/aarch64-simd.md
35167         (aarch64_vcond_internal<mode>): Handle unordered cases.
35168         * config/aarch64/iterators.md (v_cmp_result): New.
35170 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
35171             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35173         * config/arm/marvell-pj4.md: New file.
35174         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35175         * config/arm/arm.md (generic_sched): Add marvell_pj4.
35176         (generic_vfp): Likewise.
35177         * config/arm/arm-cores.def: Add marvell-pj4.
35178         * config/arm/arm-tune.md: Regenerate.
35179         * config/arm/arm-tables.opt: Regenerate.
35180         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35181         * doc/invoke.texi: Document marvell-pj4.
35183 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
35185         * config/aarch64/arm_neon.h: Map scalar types to standard types.
35187 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35189         PR debug/54114
35190         PR debug/54402
35191         PR debug/49888
35192         * var-tracking.c (negative_power_of_two_p): New.
35193         (global_get_addr_cache, local_get_addr_cache): New.
35194         (get_addr_from_global_cache, get_addr_from_local_cache): New.
35195         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
35196         heading comment.
35197         (vt_stack_offset_p): Remove.
35198         (vt_canon_true_dep): Always canonicalize loc's address.
35199         (clobber_overlapping_mems): Make sure we have a MEM.
35200         (local_get_addr_clear_given_value): New.
35201         (val_reset): Clear local cached entries.
35202         (compute_bb_dataflow): Create and release the local cache.
35203         Disable duplicate MEMs clobbering.
35204         (emit_notes_in_bb): Clobber MEMs likewise.
35205         (vt_emit_notes): Create and release the local cache.
35206         (vt_initialize, vt_finalize): Create and release the global
35207         cache, respectively.
35208         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35210 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35212         PR libmudflap/53359
35213         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35214         not found in the symtab.
35216 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35218         PR debug/56006
35219         PR rtl-optimization/55547
35220         PR rtl-optimization/53827
35221         PR debug/53671
35222         PR debug/49888
35223         * alias.c (offset_overlap_p): New, factored out of...
35224         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
35225         the conservative special case for symbolic constants.  Don't
35226         adjust zero sizes on alignment.
35228 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
35230         PR rtl-optimization/52573
35231         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
35232         REG_UNUSED for the same register.
35234 2013-01-17  Richard Biener  <rguenther@suse.de>
35235             Marek Polacek  <polacek@redhat.com>
35237         PR rtl-optimization/55833
35238         * loop-unswitch.c (unswitch_loops): Move loop verification...
35239         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
35240         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35241         Set it to true when we're removing a loop from hierarchy tree in
35242         an irreducible region.
35243         (fix_bb_placements): Adjust caller.
35244         (fix_loop_placements): Likewise.
35246 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
35248         * config/avr/builtins.def (DEF_BUILTIN): Factor out
35249         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35250         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35251         Remove ID.  Adjust comments.
35252         * config/avr/avr-c.c (avr_builtin_name): Remove.
35253         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35254         * config/avr/avr.c (avr_tolower): New static function.
35255         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
35256         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35257         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35258         default expansion.
35260 2013-01-17  Jan Hubicka  <jh@suse.cz>
35262         PR tree-optimization/55273
35263         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35265 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
35267         PR target/55981
35268         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35269         store through atomic_store<mode>_1.
35270         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35272 2013-01-17  Martin Jambor  <mjambor@suse.cz>
35274         PR tree-optimizations/55264
35275         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35276         for virtual methods.
35277         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
35278         virtual methods before inlining is over.
35279         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
35280         virtual functions.
35281         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
35282         non-virtual.
35284 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35286         PR rtl-optimization/56005
35287         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
35288         pending reads for prefetch.
35290 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
35292         * config/aarch64/aarch64.md
35293         (*cstoresi_neg_uxtw): New pattern.
35294         (*cmovsi_insn_uxtw): New pattern.
35295         (*<optab>si3_uxtw): New pattern.
35296         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
35297         (*<optab>si3_insn_uxtw): New pattern.
35298         (*bswapsi2_uxtw): New pattern.
35300 2013-01-16  Richard Biener  <rguenther@suse.de>
35302         * tree-inline.c (tree_function_versioning): Remove set but
35303         never used variable.
35305 2013-01-16  Richard Biener  <rguenther@suse.de>
35307         PR tree-optimization/55964
35308         * tree-flow.h (rename_variables_in_loop): Remove.
35309         (rename_variables_in_bb): Likewise.
35310         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
35311         (copy_loop_before): Adjust and delete update-ssa status.
35312         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
35313         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
35314         (rename_variables_in_loop): Remove.
35315         (slpeel_update_phis_for_duplicate_loop): Likewise.
35316         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
35317         use available cfg machinery instead of duplicating it.
35318         Update PHI nodes and perform poor-mans SSA update here.
35319         (slpeel_tree_peel_loop_to_edge): Adjust.
35321 2013-01-16  Richard Biener  <rguenther@suse.de>
35323         PR tree-optimization/54767
35324         PR tree-optimization/53465
35325         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
35326         (vrp_visit_phi_node): For PHI arguments coming via backedges
35327         drop all symbolical range information.
35328         (execute_vrp): Compute backedges.
35330 2013-01-16  Richard Biener  <rguenther@suse.de>
35332         * doc/install.texi: Update CLooG and ISL requirements to
35333         0.18.0 and 0.11.1.
35335 2013-01-16  Christian Bruel  <christian.bruel@st.com>
35337         PR target/55301
35338         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
35339         (broken_move): Handle UNSPECV_SP_SWITCH_B.
35340         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
35342 2013-01-16  DJ Delorie  <dj@redhat.com>
35344         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
35345         (UNSPECV_SP_SWITCH_E): New.
35346         (sp_switch_1): Change to an unspec.
35347         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
35348         replace $r15.
35350 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
35352         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
35353         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
35354         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
35355         (expand_mem_thread_fence): Ditto.
35356         (expand_mem_signal_fence): Ditto.
35357         (expand_atomic_load): Ditto.
35358         (expand_atomic_store): Ditto.
35360 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
35362         PR rtl-optimization/55547
35363         PR rtl-optimization/53827
35364         PR debug/53671
35365         PR debug/49888
35366         * alias.c (memrefs_conflict_p): Set sizes to negative after
35367         AND adjustments.
35369 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35371         PR target/55940
35372         * function.c (thread_prologue_and_epilogue_insns): Always
35373         add crtl->drap_reg to set_up_by_prologue.set, even if
35374         stack_realign_drap is false.
35376 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35378         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
35379         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
35380         *call): Fix indention.
35382 2013-01-15  Tom de Vries  <tom@codesourcery.com>
35384         PR target/55876
35385         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
35386         Update comment.
35388 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35390         PR rtl-optimization/55153
35391         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
35393 2013-01-15  Martin Jambor  <mjambor@suse.cz>
35395         PR tree-optimization/55920
35396         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
35397         accesses as grp_to_be_debug_replaced.
35399 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35401         PR tree-optimization/55920
35402         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
35403         there is non-useless type conversion needed from debug rhs to lhs,
35404         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
35406 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
35407             Mikael Pettersson  <mikpe@it.uu.se>
35409         PR target/43961
35410         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
35411         Thumb.
35412         (ASM_OUTPUT_CASE_LABEL): Remove.
35413         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
35414         * final.c (shorten_branches): Update alignment of labels before
35415         jump tables if CASE_VECTOR_SHORTEN_MODE.
35417 2013-01-15  Richard Biener  <rguenther@suse.de>
35419         PR bootstrap/55961
35420         * system.h: Do not include gmp.h for building host tools.
35422 2013-01-15  Richard Biener  <rguenther@suse.de>
35424         PR middle-end/55882
35425         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
35426         account for bitpos when computing alignment.
35428 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
35430         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
35431         (ix86_target_macros_internal): Likewise.
35433         * config/i386/i386.c (m_CORE2I7): Removed.
35434         (m_CORE_HASWELL): New macro.
35435         (m_CORE_ALL): Likewise.
35436         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
35437         (initial_ix86_arch_features): Likewise.
35438         (processor_target_table): Initializations for Core avx2.
35439         (cpu_names): New names "core-avx2".
35440         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
35441         PROCESSOR_CORE_HASWELL.
35442         (ix86_issue_rate): New case.
35443         (ia32_multipass_dfa_lookahead): Likewise.
35444         (ix86_sched_init_global): Likewise.
35446         * config/i386/i386.h (TARGET_HASWELL): New macro.
35447         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
35448         (processor_type): New PROCESSOR_HASWELL.
35450 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35452         PR tree-optimization/55955
35453         * tree-vect-loop.c (vectorizable_reduction): Give up early on
35454         *SHIFT_EXPR and *ROTATE_EXPR codes.
35456         PR tree-optimization/48766
35457         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
35458         -ftrapv disable -fwrapv.
35460 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35462         PR target/55974
35463         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
35464         etc. to 1 and not to __flash.
35465         Use LL suffix for __INT24_MAX__ with -mint8.
35466         Use ULL suffix for __UINT24_MAX__ with -mint8.
35468 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35470         * config/avr/avr-arch.h
35471         (struct base_arch_s): Use typedef avr_arch_t instead.
35472         (struct arch_info_s): Use typedef avr_arch_info_t instead.
35473         (struct mcu_type_s): Use typedef avr_mcu_t instead.
35474         * config/avr/avr.c: Same.
35475         * config/avr/avr-devices.c: Same.
35476         * config/avr/driver-avr.c: Same.
35477         * config/avr/gen-avr-mmcu-texi.c: Same.
35478         * config/avr/avr-mcus.def: Adjust comment.
35480 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
35482         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
35483         * config/aarch64/iterators.md (VALLDI): New.
35485 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
35486             Andi Kleen  <ak@linux.intel.com>
35488         PR target/55948
35489         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
35490         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
35491         memmodel flag.
35493 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35495         * config/avr/avr-stdint.h: Remove trailing blanks.
35496         * config/avr/avr-log.h: Same.
35497         * config/avr/avr-arch.h: Same.
35498         * config/avr/avr-devices.c: Same.
35499         * config/avr/avr-dimode.md: Same.
35500         * config/avr/predicates.md: Same.
35501         * config/avr/avr-c.c: Same.  And fix typo.
35503         * config/avr/avr-protos.h: Same.  And:
35504         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
35505         (init_cumulative_args): Rename to avr_init_cumulative_args.
35506         (expand_prologue): Rename to avr_expand_prologue.
35507         (expand_epilogue): Rename to avr_expand_epilogue.
35508         (adjust_insn_length): Rename to avr_adjust_insn_length.
35509         (notice_update_cc): Rename to avr_notice_update_cc.
35510         (final_prescan_insn): Rename to avr_final_prescan_insn.
35511         * config/avr/avr.c: Same.
35512         * config/avr/avr.h: Same.
35513         * config/avr/avr.md: Remove trailing blanks.
35514         (prologue): Use avr_expand_prologue.
35515         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
35517 2013-01-14  Richard Biener  <rguenther@suse.de>
35519         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
35520         verify_location, collect_subblocks): New functions.
35521         (verify_gimple_in_cfg): Verify that locations only reference
35522         BLOCKs in the functions BLOCK tree.
35524 2013-01-14  Richard Biener  <rguenther@suse.de>
35526         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
35527         PHI argument.
35528         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
35529         unshare reference.
35530         (insert_out_of_ssa_copy_on_edge): Likewise.
35531         (rewrite_close_phi_out_of_ssa): Likewise.
35532         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
35533         debug expressions.
35534         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
35535         propagated constants.
35536         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
35537         can not be shared.
35539 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35541         * config/avr/avr-modes.def: Add GPL copyright notice.
35543 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
35545         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
35546         MEMMODEL_MASK to determine memory model.
35547         (atomic_store<mode>): Ditto from operands[2].
35548         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
35550 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
35552         PR fortran/55935
35553         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
35554         (fold_gimple_assign): Don't call unshare_expr here.
35555         (fold_ctor_reference): Call unshare_expr.
35557 2013-01-13  Terry Guo  <terry.guo@arm.com>
35559         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
35560         * doc/fragments.texi: Document MULTILIB_REUSE.
35561         * gcc.c (multilib_reuse): New internal spec.
35562         (set_multilib_dir): Also search multilib from multilib_reuse.
35563         * genmultilib (tmpmultilib3): Refactor code.
35564         (tmpmultilib4): Ditto.
35565         (multilib_reuse): New multilib argument.
35567 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
35569         * Makefile.in: Update copyright.
35571 2013-01-12  Tom de Vries  <tom@codesourcery.com>
35573         PR middle-end/55890
35574         * calls.c (expand_call): Check if arg_nr is valid.
35576 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
35578         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
35579         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
35580         documentation.  Add missing '__' in front of
35581         __builtin_ia32_packssdw256.
35583 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35585         PR target/55719
35586         * config/s390/s390.c (s390_preferred_reload_class): Do not return
35587         NO_REGS for larl operands.
35588         (s390_reload_larl_operand): Use s390_load_address instead of
35589         emit_move_insn.
35591 2013-01-11  Richard Biener  <rguenther@suse.de>
35593         * tree-cfg.c (verify_node_sharing_1): Split out from ...
35594         (verify_node_sharing): ... here.
35595         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
35597 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
35599         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
35600         Substitute TREECHECKING.
35601         * configure: Regenerate.
35602         * Makefile.in (TREECHECKING): New.
35604 2013-01-11  Richard Guenther  <rguenther@suse.de>
35606         PR tree-optimization/44061
35607         * tree-vrp.c (extract_range_basic): Compute zero as
35608         value-range for __builtin_constant_p of function parameters.
35610 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
35612         Update copyright years.
35614 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
35616         PR rtl-optimization/55672
35617         * lra-eliminations.c (mark_not_eliminable): Permit addition with
35618         const to be eliminable.
35620 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
35622         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
35623         * configure: Regenerate.
35625 2013-01-10  Richard Biener  <rguenther@suse.de>
35627         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
35629 2013-01-10  Richard Biener  <rguenther@suse.de>
35631         PR bootstrap/55792
35632         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
35633         locations for virtual PHI arguments.
35634         (rewrite_update_phi_arguments): Likewise.
35636 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
35638         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
35639         on to assembler.
35641 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
35643         PR tree-optimization/55921
35644         * tree-complex.c (expand_complex_asm): New function.
35645         (expand_complex_operations_1): Call it for GIMPLE_ASM.
35647 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35649         PR target/55718
35650         * config/s390/s390.c (s390_symref_operand_p)
35651         (s390_loadrelative_operand_p): Merge the two functions.
35652         (s390_check_qrst_address, print_operand_address): Add parameters
35653         to s390_loadrelative_operand_p invokation.
35654         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
35655         (s390_reload_larl_operand, s390_secondary_reload): Use
35656         s390_loadrelative_operand_p instead of s390_symref_operand_p.
35657         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
35659 2013-01-09  Mike Stump  <mikestump@comcast.net>
35661         * dse.c (record_store): Remove unnecessary assert.
35663 2013-01-09  Jan Hubicka  <jh@suse.cz>
35665         PR tree-optimization/55569
35666         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
35667         * cfgloop.h (scale_loop_profile): Likewise.
35669 2013-01-09  Jan Hubicka  <jh@suse.cz>
35671         PR lto/45375
35672         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
35673         functions.
35674         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
35676 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
35678         PR middle-end/55114
35679         * expr.h (maybe_emit_group_store): Declare.
35680         * expr.c (maybe_emit_group_store): New function.
35681         * builtins.c (expand_builtin_int_roundingfn): Call it.
35682         (expand_builtin_int_roundingfn_2): Likewise.
35684 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
35686         PR rtl-optimization/55829
35687         * lra-constraints.c (match_reload): Add code for absent output.
35688         (curr_insn_transform): Add code for reloads of matched inputs
35689         without output.
35691 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
35693         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
35694         attribute of movddup insn to DF.
35695         (*vec_interleave_lowv2df): Ditto.
35696         (vec_dupv2df): Ditto.
35698 2013-01-09  Jan Hubicka  <jh@suse.cz>
35700         PR tree-optimiation/55875
35701         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
35702         EVERY_ITERATION parameter.
35703         (number_of_iterations_exit): Check if exit is executed every iteration.
35704         (idx_infer_loop_bounds): Similarly here.
35705         (n_of_executions_at_most): Simplify
35706         to only test for cases where statement is dominated by the
35707         particular bound; handle correctly the "postdominance" test.
35708         (scev_probably_wraps_p): Use max loop iterations info
35709         as a global bound first.
35711 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
35712             Nick Clifton  <nickc@redhat.com>
35714         * config/v850/v850.md (cbranchsf4): New pattern.
35715         (cstoresf4): New pattern.
35716         (cbranchdf4): New pattern.
35717         (cstoredf4): New pattern.
35718         (movsicc): Disallow floating point comparisons.
35719         (cmpsf_le_insn): Fix order of operators.
35720         (cmpsf_lt_insn): Likewise.
35721         (cmpsf_eq_insn): Likewise.
35722         (cmpdf_le_insn): Likewise.
35723         (cmpdf_lt_insn): Likewise.
35724         (cmpdf_eq_insn): Likewise.
35725         (cmpsf_ge_insn): Use LE comparison.
35726         (cmpdf_ge_insn): Likewise.
35727         (cmpsf_gt_insn): Use LT comparison.
35728         (cmpdf_gt_insn): Likewise.
35729         (cmpsf_ne_insn): Delete pattern.
35730         (cmpdf_ne_insn): Delete pattern.
35731         * config/v850/v850.c (v850_gen_float_compare): Use
35732         gen_cmpdf_eq_insn for NE comparison.
35733         (v850_float_z_comparison_operator)
35734         (v850_float_nz_comparison_operator): Move from here ...
35735         * config/v850/predicates.md: ... to here.  Move GT and GE
35736         comparisons into v850_float_z_comparison_operator.
35737         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
35738         Delete prototype.
35739         (v850_float_nz_comparison_operator): Likewise.
35741 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35743         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
35744         with calls to gen_insvsi/gen_insvdi.
35746 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
35748         * config/i386/i386.c (initial_ix86_tune_features): Set up
35749         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
35751 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
35752             Jakub Jelinek  <jakub@redhat.com>
35754         PR tree-optimization/48189
35755         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
35756         If nitercst is 0, don't predict the exit edge.
35758 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35760         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
35761         in asm_fprintf with reg_names.
35762         (aarch64_print_operand_address): Likewise.
35763         (aarch64_return_addr): Likewise.
35764         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
35766 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35768         * config/pa/pa.h (VAL_U6_BITS_P): Define.
35769         (INT_U6_BITS): Likewise.
35770         * config/pa/predicates.md (uint6_operand): New predicate.
35771         (shift5_operand, shift6_operand): Likewise.
35772         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
35773         arith32_operand.
35774         (lshrdi3): Use shift6_operand.
35775         (shrpsi4, shrpdi4): New insn patterns.
35776         (extzv): Delete expander.
35777         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
35778         predicates in unamed zero extract patterns.  Tighten common constraint.
35779         (extv): Delete expander.
35780         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
35781         predicates in unamed sign extract patterns.  Tighten common constraint.
35782         (insv): Delete expander.
35783         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
35784         predicates in unamed insert patterns.  Tighten common constraint.
35785         Change uint32_operand predicate to uint6_operand predicate in unamed
35786         DImode pattern to insert constant values of type 1...1xxxx.
35788 2013-01-04  Jan Hubicka  <jh@suse.cz>
35790         PR tree-optimization/55823
35791         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
35792         issue.
35794 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35795             Uros Bizjak  <ubizjak@gmail.com>
35797         PR rtl-optimization/55845
35798         * df-problems.c (can_move_insns_across): Stop scanning at
35799         volatile_insn_p source instruction or give up if
35800         across_from .. across_to range contains any volatile_insn_p
35801         instructions.
35803 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
35805         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
35806         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
35807         Declare.
35808         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
35809         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
35811 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35813         PR fortran/55341
35814         * asan.c (asan_clear_shadow): New function.
35815         (asan_emit_stack_protection): Use it.
35817 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
35819         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
35820         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
35821         with tab instead of space.
35823 2013-01-08  Nick Clifton  <nickc@redhat.com>
35825         * config/rl78/rl78.c (rl78_expand_prologue): Always select
35826         register bank 0 at the start of an interrupt handler.
35827         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
35828         MDBH registers.
35830 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
35832         * config/aarch64/aarch64-simd.md
35833         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
35834         (aarch64_simd_bsl): Likewise.
35835         (aarch64_vcond_internal<mode>): Likewise.
35836         (vcond<mode><mode>): Likewise.
35837         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
35838         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
35840 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
35842         * config/aarch64/aarch64-builtins.c
35843         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
35845 2013-01-08  Martin Jambor  <mjambor@suse.cz>
35847         PR debug/55579
35848         * tree-sra.c (analyze_access_subtree): Return true also after
35849         potentially creating a debug-only replacement.
35851 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35853         PR middle-end/55890
35854         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
35856         PR tree-optimization/54120
35857         * tree-vrp.c (range_fits_type_p): Don't allow
35858         src_precision < precision from signed vr to unsigned_p
35859         if vr->min or vr->max is negative.
35860         (simplify_float_conversion_using_ranges): Test can_float_p
35861         against CODE_FOR_nothing.
35863 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35864             Richard Biener  <rguenther@suse.de>
35866         PR middle-end/55851
35867         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
35868         types instead of just INTEGER_TYPE types.
35870 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
35872         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
35873         TF_SIZE): Define.
35875 2013-01-07  Steve Ellcey  <sellcey@mips.com>
35877         PR target/42661
35878         * config/mips/mips.opt: Change mad to mmad to match documentation.
35880 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35882         PR target/55897
35883         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
35884         .progmemx.data now.
35886 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35888         PR target/55897
35889         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
35890         (avr_addrspace_t): Add .section_name field.
35891         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
35892         array size.
35893         (avr_addrspace): Same.  Initialize .section_name.  Remove last
35894         NULL entry.  Put __memx into .progmemx.data.
35895         (progmem_section_prefix): Remove.
35896         (avr_asm_init_sections): No need to initialize progmem_section.
35897         (avr_asm_named_section): Use avr_addrspace[].section_name to get
35898         section name prefix.
35899         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
35900         retrieve the progmem section.
35901         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
35902         boundary to run over avr_addrspace[].
35903         (avr_register_target_pragmas): Ditto.
35905 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
35907         * varasm.c (output_constant_def_contents): For asan_protect_global
35908         protected strings, adjust DECL_ALIGN if needed, before testing for
35909         anchored symbols.
35910         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
35911         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
35912         normal decls.
35913         (output_object_block): For asan protected decls, emit asan padding
35914         after their contents.
35915         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
35916         (asan_finish_file): Test it here instead.
35918 2013-01-07  Nick Clifton  <nickc@redhat.com>
35919             Matthias Klose  <doko@debian.org>
35920             Doug Kwan  <dougkwan@google.com>
35921             H.J. Lu  <hongjiu.lu@intel.com>
35923         PR driver/55470
35924         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
35926         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
35928         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
35930         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
35932         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
35934 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35936         PR target/54461
35937         * doc/install.texi (Cross-Compiler-Specific Options): Document
35938         --with-avrlibc.
35940 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
35942         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
35943         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
35944         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
35945         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
35946         vqmovun_high_s64): Fix source operand number and update copyright.
35948 2013-01-07  Richard Biener  <rguenther@suse.de>
35950         PR middle-end/55890
35951         * gimple.h (gimple_call_builtin_p): New overload.
35952         * gimple.c (validate_call): New function.
35953         (gimple_call_builtin_p): Likewise.
35954         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35955         Use gimple_call_builtin_p.
35956         (find_func_clobbers): Likewise.
35957         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
35958         (strlen_optimize_stmt): Likewise.
35960 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
35962         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
35963         (vld1q_dup_*): Likewise.
35964         (vld1_*): Likewise.
35965         (vld1q_*): Likewise.
35966         (vld1_lane_*): Likewise.
35967         (vld1q_lane_*): Likewise.
35969 2013-01-07  Richard Biener  <rguenther@suse.de>
35971         * lto-streamer.h (LTO_minor_version): Bump to 2.
35973 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
35975         * config/aarch64/aarch64-protos.h
35976         (aarch64_const_double_zero_rtx_p): Rename to...
35977         (aarch64_float_const_zero_rtx_p): ...this.
35978         (aarch64_float_const_representable_p): New.
35979         (aarch64_output_simd_mov_immediate): Likewise.
35980         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
35981         move immediate case.
35982         * config/aarch64/aarch64.c
35983         (aarch64_const_double_zero_rtx_p): Rename to...
35984         (aarch64_float_const_zero_rtx_p): ...this.
35985         (aarch64_print_operand): Allow printing of new constants.
35986         (aarch64_valid_floating_const): New.
35987         (aarch64_legitimate_constant_p): Check for valid floating-point
35988         constants.
35989         (aarch64_simd_valid_immediate): Likewise.
35990         (aarch64_vect_float_const_representable_p): New.
35991         (aarch64_float_const_representable_p): Likewise.
35992         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
35993         (aarch64_output_simd_mov_immediate): New.
35994         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
35995         (*movdf_aarch64): Likewise.
35996         * config/aarch64/constraints.md (Ufc): New.
35997         (Y): call aarch64_float_const_zero_rtx.
35998         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36000 2013-01-07  Richard Biener  <rguenther@suse.de>
36002         PR tree-optimization/55888
36003         PR tree-optimization/55862
36004         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36005         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36006         not if it is contained therein.
36008 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36010         * config/avr/t-avr: Typo.
36012 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36014         PR55243
36015         * config/avr/t-avr: Don't automatically rebuild
36016         $(srcdir)/config/avr/t-multilib
36017         $(srcdir)/config/avr/avr-tables.opt
36018         $(srcdir)/doc/avr-mmcu.texi
36019         (avr-mcus): New phony target to build them on request.
36020         (s-avr-mlib, s-avr-mmcu-texi): Remove.
36021         * avr/avr-mcus.def: Adjust comments.
36023 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
36025         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36027 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36029         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36031 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36033         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36035 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
36037         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36038         to generate profiling.
36039         * config/rs6000/aix64.h (LIB_SPEC): Same.
36041 2013-01-04  Andrew Pinski  <apinski@cavium.com>
36043         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36044         New function.
36045         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36047 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
36049         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36050         unconditionally.
36051         (ix86_expand_move): Ditto.
36052         (ix86_zero_extend_to_Pmode): Ditto.
36053         (ix86_expand_call): Ditto.
36054         (ix86_expand_special_args_builtin): Ditto.
36055         (ix86_expand_builtin): Ditto.
36057 2013-01-04  Richard Biener  <rguenther@suse.de>
36059         PR tree-optimization/55862
36060         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36061         translating them through PHI nodes.
36063 2013-01-04  Martin Jambor  <mjambor@suse.cz>
36065         PR tree-optimization/55755
36066         * tree-sra.c (sra_modify_assign): Do not check that an access has no
36067         children when trying to avoid producing a VIEW_CONVERT_EXPR.
36069 2013-01-04  Marek Polacek  <polacek@redhat.com>
36071         PR middle-end/55859
36072         * opts.c (default_options_optimization): Clarify error message.
36074 2013-01-04  Richard Biener  <rguenther@suse.de>
36076         PR middle-end/55863
36077         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36078         reassociation.
36080 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36082         PR target/53789
36083         * config/pa/pa.md (movsi): Revert previous change.
36084         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36085         references.
36087 2013-01-03  Richard Henderson  <rth@redhat.com>
36089         * config/i386/i386.c (ix86_expand_move): Always assign to op1
36090         after eliminating TLS symbols.
36092 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
36094         PR bootstrap/50167
36095         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36096         * graphite-poly.c (debug_gmp_value): Likewise.
36098 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
36100         PR target/55712
36101         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36102         selected code model, define __code_mode_small__, __code_model_medium__,
36103         __code_model_large__, __code_model_32__ or __code_model_kernel__.
36104         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36105         xchg temporary register with %k.  Declare temporary register as
36106         early clobbered.
36107         [__x86_64__]: For medium and large code models, preserve %rbx register.
36109 2013-01-03  Richard Biener  <rguenther@suse.de>
36111         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36112         (dump_subscript): Adjust.
36113         (finalize_ddr_dependent): Do not dump redundant info.
36114         (analyze_siv_subscript): Adjust.
36115         (subscript_dependence_tester): Likewise.
36116         (compute_affine_dependence): Likewise.
36118 2013-01-03  Richard Biener  <rguenther@suse.de>
36120         Revert
36121         2013-01-03  Richard Biener  <rguenther@suse.de>
36123         PR tree-optimization/55857
36124         * tree-vect-stmts.c (vectorizable_load): Do not setup
36125         re-alignment for invariant loads.
36127         2013-01-02  Richard Biener  <rguenther@suse.de>
36129         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36130         invariant load do not generate a vector load from the scalar location.
36132 2013-01-03  Richard Biener  <rguenther@suse.de>
36134         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36135         for not vectorizing.
36136         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36137         not build INDIRECT_REFs, call get_name once only.
36138         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
36139         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36141 2013-01-03  Richard Biener  <rguenther@suse.de>
36143         PR tree-optimization/55857
36144         * tree-vect-stmts.c (vectorizable_load): Do not setup
36145         re-alignment for invariant loads.
36147 2013-01-03  Richard Biener  <rguenther@suse.de>
36149         PR lto/55848
36150         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36151         prefer a built-in decl.
36153 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36155         * gcc.c (process_command): Update copyright notice dates.
36156         * gcov.c (print_version): Likewise.
36157         * gcov-dump.c (print_version): Likewise.
36159         PR rtl-optimization/55838
36160         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36161         iv0.step, iv1.step and step.
36163 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36164             Marc Glisse  <marc.glisse@inria.fr>
36166         PR tree-optimization/55832
36167         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36168         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36169         integer_{one,zero}_node.
36171 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36173         PR debug/54402
36174         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36175         * var-tracking.c (reverse_op): Don't add reverse ops to
36176         VALUEs that have already
36177         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36179 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
36181         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36183 2013-01-02  Teresa Johnson  <tejohnson@google.com>
36185         * dumpfile.c (dump_loc): Print filename with location.
36186         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36187         new location_t parameter to emit complete unroll message with
36188         new dump framework.
36189         (canonicalize_loop_induction_variables): Compute loops location
36190         and pass to try_unroll_loop_completely.
36191         * loop-unroll.c (report_unroll_peel): New function.
36192         (peel_loops_completely): Use new dump format with location
36193         for main dumpfile message, and invoke report_unroll_peel on success.
36194         (decide_unrolling_and_peeling): Ditto.
36195         (decide_peel_once_rolling): Remove old dumpfile message subsumed
36196         by report_unroll_peel.
36197         (decide_peel_completely): Ditto.
36198         (decide_unroll_constant_iterations): Ditto.
36199         (decide_unroll_runtime_iterations): Ditto.
36200         (decide_peel_simple): Ditto.
36201         (decide_unroll_stupid): Ditto.
36202         * cfgloop.c (get_loop_location): New function.
36203         * cfgloop.h (get_loop_location): Declare.
36205 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36207         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36208         NULL.
36210 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36212         PR middle-end/55198
36213         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36214         BLKmode objects when EXPAND_MEMORY is specified.
36216 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36218         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
36219         in loop predicate.
36220         (fold_builtin_cpu): Do not share cpu model decls across statements.
36222 2013-01-02  Jason Merrill  <jason@redhat.com>
36224         PR c++/55804
36225         * tree.c (build_array_type_1): Revert earlier change.
36227 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
36229         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
36230         "cortex-a57".
36231         * config/aarch64/aarch64-tune.md: Re-generate.
36233 2013-01-02  Richard Biener  <rguenther@suse.de>
36235         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36236         invariant load do not generate a vector load from the scalar location.
36238 2013-01-02  Richard Biener  <rguenther@suse.de>
36240         PR bootstrap/55784
36241         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36242         * configure: Regenerate.
36244 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36246         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36247         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36248         (expand_builtin_int_roundingfn_2): Keep the original target around
36249         for the fallback case.
36251 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36253         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36254         to be clear for sign changes.
36256 2013-01-01  Jan Hubicka  <jh@suse.cz>
36258         * ipa-inline-analysis.c: Fix formatting.
36260 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
36262         PR tree-optimization/55831
36263         * tree-vect-loop.c (get_initial_def_for_induction): Use
36264         gsi_after_labels instead of gsi_start_bb.
36266 Copyright (C) 2013 Free Software Foundation, Inc.
36268 Copying and distribution of this file, with or without modification,
36269 are permitted in any medium without royalty provided the copyright
36270 notice and this notice are preserved.