PR rtl-optimization/55950
[official-gcc.git] / gcc / ChangeLog
bloba16ae684f91467382d2dd68bbdc08845a2ad9909
1 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
3         PR rtl-optimization/55950
4         * real.c (real_sqrt): Remove function.
5         * real.h (real_sqrt): Remove prototype.
6         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
7         SQRT using real_sqrt.
9 2013-11-21  Richard Biener  <rguenther@suse.de>
11         PR tree-optimization/59058
12         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
13         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
14         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
15         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
16         (NITERS_KNOWN_P): Fold into ...
17         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
18         (LOOP_VINFO_PEELING_FOR_NITER): Add.
19         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
20         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
21         (vect_do_peeling_for_alignment): Re-use precomputed niter
22         instead of re-emitting it.
23         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
24         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
25         * tree-vect-loop.c (vect_get_loop_niters): Use
26         number_of_latch_executions.
27         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
28         (vect_analyze_loop_form): Simplify.
29         (vect_analyze_loop_operations): Move epilogue peeling code ...
30         (vect_analyze_loop_2): ... here and adjust it to compute
31         LOOP_VINFO_PEELING_FOR_NITER.
32         (vect_estimate_min_profitable_iters): Use
33         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
34         (vect_build_loop_niters): Emit on the preheader.
35         (vect_generate_tmps_on_preheader): Likewise.
36         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
37         of recomputing it.  Adjust.
39 2013-11-21  Richard Biener  <rguenther@suse.de>
41         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
42         LOC_LINE): Remove wrappers and fix all users.
43         (struct _loop_vec_info): Remove loop_line_number member.
44         (LOOP_VINFO_LOC): Remove.
45         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
46         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
47         and LOC_LINE.
49 2013-11-21  Richard Biener  <rguenther@suse.de>
51         * tree-ssa-forwprop.c (simplify_vce): New function.
52         (ssa_forward_propagate_and_combine): Call it.
54 2013-11-21  Richard Biener  <rguenther@suse.de>
56         * tree-vect-loop-manip.c (vect_build_loop_niters,
57         vect_generate_tmps_on_preheader): Move ...
58         * tree-vect-loop.c (vect_build_loop_niters,
59         vect_generate_tmps_on_preheader): ... here and simplify.
60         (vect_transform_loop): Call them here and pass down results
61         to consumers.
62         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
63         Get niter variables from caller.
64         (vect_do_peeling_for_alignment): Likewise.
65         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
66         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
67         Adjust prototypes.
69 2013-11-21  Richard Biener  <rguenther@suse.de>
71         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
72         nb_iterations_upper_bound by one.
74 2013-11-21  Richard Biener  <rguenther@suse.de>
76         PR tree-optimization/59058
77         * tree-loop-distribution.c (struct partition_s): Add plus_one
78         member.
79         (build_size_arg_loc): Apply niter adjustment here.
80         (generate_memset_builtin): Adjust.
81         (generate_memcpy_builtin): Likewise.
82         (classify_partition): Do not use number_of_exit_cond_executions
83         but record whether niter needs to be adjusted.
85 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
87         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
88         could throw.
90 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
92         PR target/53976
93         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
94         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
95         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
96         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
97         sh_optimize_sett_clrt pass.o to extra_objs.
99 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
101         * cfg.c (dump_edge_info): Remove redundant comment.
102         * cfgcleanup.c (outgoing_edges_match): Reword reference to
103         EXIT_BLOCK_PTR in comment.
104         (try_optimize_cfg): Likewise.
105         * cfgrtl.c (last_bb_in_partition): Likewise.
106         * cgraph.c (cgraph_node_cannot_return): Likewise.
107         * function.c (thread_prologue_and_epilogue_insns): Likewise.
108         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
109         * ipa-split.c (consider_split): Likewise.
110         * profile.c (find_spanning_tree): Likewise.
111         * sched-int.h (common_sched_info_def.add_block): Likewise.
112         * dominance.c (calc_dfs_tree_nonrec): Reword references in
113         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
114         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
115         in comments to now removed ENTRY_BLOCK_PTR macro.
116         (tree_forwarder_block_p): Reword reference in comment to
117         EXIT_BLOCK_PTR.
118         * tree-inline.c (copy_cfg_body): Reword references in comments to
119         now removed ENTRY_BLOCK_PTR macro.
120         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
121         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
122         a comma to the comment to clarify the meaning.
124 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
126         * gimplify.h (gimplify_hasher : typed_free_remove, struct gimplify_ctx):
127         Move to gimplify.c.
128         (free_gimplify_stack): Add prototype.
129         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
130         (struct gimplify_ctx): Relocate here.
131         (gimplify_ctxp): Make static.
132         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a 
133         list of struct gimplify_ctx.
134         (push_gimplify_context): Add default parameters and allocate a struct
135         from the pool.
136         (pop_gimplify_context): Free a struct back to the pool.
137         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
138         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
139         use a local 'struct gimplify_ctx'.
140         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
141         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
142         Likewise.
143         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
144         lower_omp_ordered, lower_omp_critical, lower_omp_for,
145         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
146         lower_omp_teams, execute_lower_omp): Likewise.
147         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
148         * tree-inline.c (optimize_inline_calls): Likewise.
150 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
152         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
153         (vsx_extract_<mode>): Likewise.
154         (*vsx_extract_<mode>_one_le): New LE variant on
155         *vsx_extract_<mode>_zero.
156         (vsx_extract_v4sf): Adjust for little endian.
158 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
160         PR rtl-optimization/59133
161         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
162         new pseudos.
163         (lra_create_new_reg_with_unique_value): Pass new argument value.
164         (lra_emit_add, lra_emit_move): Ditto.
165         * lra-constraints.c (in_class_p): Add check for move for a new
166         insn.
167         (change_class): Rename to lra_change_class.  Move to lra-int.h.
168         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
169         change_class.
170         (process_addr_reg, process_addr): Ditto.
171         (curr_insn_transform): Ditto.  Add check on old pseudo for
172         optional reload.
173         * lra-int.h (lra_get_regno_hard_regno): Move below.
174         (lra_change_class): Renamed change_class from lra.c.
176 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
178         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
179         the children of a NULL pointer.
181 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
183         * lra.c (lra): Set lra_in_progress before check_rtl call.
184         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
185         adding clobber regs when LRA is running.
187 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
189         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
190         restriction for ISA_MIPS32R2.
191         (ISA_HAS_LXC1_SXC1): New macro.
192         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
193         (ISA_HAS_NMADD4_NMSUB4): Likewise.
194         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
195         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
196         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
197         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
198         (*<ANYF:storex>_<P:mode>): Likewise.
200 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
202         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
203         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
204         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
205         * config/mips/mips.md (recip_condition): Remove mode attribute.
206         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
207         <recip_condition>.
208         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
210 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
212         PR target/59207
213         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
214         Make sure neg2_ovf is set before being used.
216 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
218         * plugin.def: Add comment about register_callback and
219         invoke_plugin_callbacks_full.
221         * plugin.c (register_callback, invoke_plugin_callbacks_full):
222         Handle PLUGIN_INCLUDE_FILE event.
224 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
226         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
227         allow subregs of TDmode in FPRs of smaller size in little-endian.
228         (rs6000_split_multireg_move): When splitting an access to TDmode
229         in FPRs, do not use simplify_gen_subreg.
231 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
233         PR middle-end/21718
234         * real.c: Remove comment about decimal string conversion and
235         rounding errors.
236         (real_from_string): Use MPFR to convert nonzero decimal constant
237         to REAL_VALUE_TYPE.
239 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
241         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
242         endianness of the D registers for the legacy encodings.
244 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
246         PR rtl-optimization/54300
247         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
248         outputs in a single-set are killed from the value chains.
250 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
252         * cgraph.h (varpool_node): Add need_bounds_init field.
253         * lto-cgraph.c (lto_output_varpool_node): Output
254         need_bounds_init value.
255         (input_varpool_node): Read need_bounds_init value.
256         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
258 2013-11-20  Jan Hubicka  <jh@suse.cz>
260         * opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker-plugin.
261         * common.opt (fuse-linker-plugin): Add var.
263 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
265         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
266         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
267         (gen_type_die_with_usage): Skip pointer bounds.
268         (dwarf2out_global_decl): Likewise.
270 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
272         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
273         from all insns.
275 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
277         PR target/57756
278         * config/i386/i386.c (ix86_option_override_internal): Add missed
279         argument prefix for 'ix86_fpmath'.
280         * config/i386/ssemath.h: Add missed definition of
281         TARGET_FPMATH_DEFAULT_P macros.
283 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
284             Mike Stump  <mikestump@comcast.net>
285             Richard Sandiford  <rdsandiford@googlemail.com>
287         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
288         instead of TREE_INT_CST_LOW, in cases where there is a protecting
289         tree_fits_shwi_p or tree_fits_uhwi_p.
290         * builtins.c (fold_builtin_powi): Likewise.
291         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
292         Likewise.
293         * dbxout.c (dbxout_symbol): Likewise.
294         * expr.c (expand_expr_real_1): Likewise.
295         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
296         (fold_binary_loc): Likewise.
297         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
298         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
299         * omp-low.c (lower_omp_for_lastprivate): Likewise.
300         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
301         * stor-layout.c (compute_record_mode): Likewise.
302         * tree-cfg.c (verify_expr): Likewise.
303         * tree-dfa.c (get_ref_base_and_extent): Likewise.
304         * tree-pretty-print.c (dump_array_domain): Likewise.
305         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
306         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
307         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
308         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
309         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
310         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
311         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
312         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
313         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
314         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
315         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
316         (create_variable_info_for_1): Likewise.
317         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
318         (vect_verify_datarefs_alignment): Likewise.
319         (vect_analyze_data_ref_accesses): Likewise.
320         (vect_prune_runtime_alias_test_list): Likewise.
321         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
323 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
325         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
326         overflow.  Use tree_to_shwi.
328 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
330         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
331         HOST_WIDE_INTs when folding (x >> c) << c.
333 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
334             Dominik Vogt  <vogt@linux.vnet.ibm.com>
336         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
337         int comparisons with an out of range condition code.
338         (s390_optimize_nonescaping_tx): Skip empty BBs.
339         Generate the new tbegin RTX when removing the FPR clobbers (with
340         two SETs).
341         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
342         result before doing the retry calculations.
343         (s390_init_builtins): Make tbegin "returns_twice" and tabort
344         "noreturn".
345         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
346         the TDB setting part of an tbegin.
347         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
348         ("tx_assist"): Set unused argument to an immediate zero instead of
349         loading zero into a GPR and pass it as argument.
350         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
351         Remove inline and related attributes.
352         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
353         (__TM_is_illegal, __TM_is_footprint_exceeded)
354         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value
355         check.
357 2013-11-20  Richard Biener  <rguenther@suse.de>
359         PR lto/59035
360         * lto-opts.c (lto_write_options): Write defaults only if
361         they were not explicitely specified.  Also write
362         -ffp-contract default.
363         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
364         conservatively.
365         (run_gcc): Pass through -ffp-contract.
367 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
369         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
371 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
373         * gcc/config/aarch64/aarch64-builtins.c
374         (aarch64_simd_itype): Remove.
375         (aarch64_simd_builtin_datum): Remove itype, add
376         qualifiers pointer.
377         (VAR1): Use qualifiers.
378         (aarch64_build_scalar_type): New.
379         (aarch64_build_vector_type): Likewise.
380         (aarch64_build_type): Likewise.
381         (aarch64_init_simd_builtins): Refactor, remove special cases,
382         consolidate main loop.
383         (aarch64_simd_expand_args): Likewise.
385 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
387         PR c/53001
388         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
390 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
392         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
394 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
396         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
397         to "vec<>" instances.
398         (build_pretty_printer): Register the vec<>* prettyprinter.
400 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
402         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
403         (GdbSubprinter.handles_type): New.
404         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
405         (GdbSubprinterRegex): New subclass of GdbSubprinter.
406         (GdbPrettyPrinters.add_printer): Remove in favor of...
407         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
408         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
409         (GdbPrettyPrinters.__call__): Update search for subprinter
410         to use handles_type method.
411         (build_pretty_printer): Update registration of subprinters to
412         use the new API above, supporting multiple spelling of each type,
413         and allowing for future regex-based subprinters.
415 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
417         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
418         V16QI vector splat case for little endian.
420 2013-11-19  Jeff Law  <law@redhat.com>
422         * tree-ssa-threadedge.c (thread_across_edge): After threading
423         through a joiner, allow threading a normal block requiring duplication.
425         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
426         jump threading requests that would muck up the loop structures.
428         * tree-ssa-threadupdate.c: Fix trailing whitespace.
429         * tree-ssa-threadupdate.h: Likewise.
431 2013-11-19  Mike Stump  <mikestump@comcast.net>
433         * gdbinit.in: Add pmz to print out mpz values.
435 2013-11-20  Jan Hubicka  <jh@suse.cz>
437         * common.opt (ffat-lto-objects): Disable by default.
438         * doc/invoke.texi (fat-lto-objects): Update documentation.
439         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
441 2013-11-19  Martin Jambor  <mjambor@suse.cz>
443         PR rtl-optimization/59099
444         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
445         here.
446         (ira): Move init_reg_equiv and call to
447         split_live_ranges_for_shrink_wrap up, remove analyses around call
448         to find_moveable_pseudos.
450 2013-11-20  Alan Modra  <amodra@gmail.com>
452         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
453         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
454         to strict alignment on older processors when little-endian.
455         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
456         for ELFv2.
458 2013-11-19  Teresa Johnson  <tejohnson@google.com>
460         * common/config/i386/i386-common.c: Enable
461         -freorder-blocks-and-partition at -O2 and up for x86.
462         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
463         * opts.c (finish_options): Only warn if
464         -freorder-blocks-and-partition was set on command line.
466 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
468         * final.c (final_scan_insn): Emit a label for the split
469         cold function part.  Label name is formed by suffixing
470         the original function name with "cold".
472 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
474         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
475         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
476         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
477         (EXIT_BLOCK_PTR_FOR_FN): ...this.
478         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
479         cfun be explicit.
480         (EXIT_BLOCK_PTR): Likewise.
481         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
482         (FOR_ALL_BB_FN): Update for renaming of
483         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
485         * cfg.c (init_flow): Likewise.
486         (check_bb_profile): Likewise.
487         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
488         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
489         * cfghooks.c (account_profile_record): Likewise.
490         * cfgloop.c (init_loops_structure): Likewise.
491         * cgraphbuild.c (record_eh_tables): Likewise.
492         (compute_call_stmt_bb_frequency): Likewise.
493         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
494         * lto-streamer-in.c (input_cfg): Likewise.
495         * predict.c (maybe_hot_frequency_p): Likewise.
496         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
497         * tree-inline.c (initialize_cfun): Likewise.
498         (copy_cfg_body): Likewise.
499         (copy_body): Likewise.
500         (tree_function_versioning): Likewise.
502         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
503         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
504         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
505         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
506         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
507         (connect_traces): Likewise.
508         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
509         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
510         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
511         macro.
512         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
513         EXIT_BLOCK_PTR.
514         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
515         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
516         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
517         (rotate_loop): Likewise.
518         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
519         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
520         EXIT_BLOCK_PTR.
521         (alloc_aux_for_edges): Likewise.
522         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
523         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
524         EXIT_BLOCK_PTR.
525         (compact_blocks): Likewise.
526         (clear_edges): Likewise.
527         * cfganal.c (single_pred_before_succ_order): Remove usage of
528         ENTRY_BLOCK_PTR macro.
529         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
530         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
531         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
532         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
533         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
534         EXIT_BLOCK_PTR.
535         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
536         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
537         EXIT_BLOCK_PTR.
538         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
539         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
540         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
541         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
542         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
543         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
544         EXIT_BLOCK_PTR.
545         (print_edge_list): Likewise.
546         (create_edge_list): Likewise.
547         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
548         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
549         EXIT_BLOCK_PTR.
550         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
551         macro.
552         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
553         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
554         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
555         (try_optimize_cfg): Likewise.
556         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
557         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
558         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
559         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
560         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
561         (try_forward_edges): Likewise.
562         (try_simplify_condjump): Likewise.
563         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
564         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
565         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
566         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
567         EXIT_BLOCK_PTR.
568         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
569         (expand_gimple_tailcall): Likewise.
570         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
571         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
572         (tidy_fallthru_edges): Likewise.
573         (verify_flow_info): Likewise.
574         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
575         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
576         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
577         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
578         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
579         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
580         (get_loop_body_in_dom_order): Likewise.
581         (get_loop_body): Likewise.
582         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
583         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
584         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
585         macro.
586         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
587         (fix_bb_placement): Likewise.
588         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
589         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
590         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
591         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
592         EXIT_BLOCK_PTR.
593         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
594         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
595         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
596         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
597         macro.
598         (fixup_fallthru_exit_predecessor): Remove uses of macros:
599         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
600         (fixup_reorder_chain): Likewise.
601         (relink_block_chain): Likewise.
602         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
603         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
604         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
605         (force_one_exit_fallthru): Likewise.
606         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
607         EXIT_BLOCK_PTR.
608         (rtl_verify_edges): Likewise.
609         (commit_edge_insertions): Likewise.
610         (commit_one_edge_insertion): Likewise.
611         (rtl_split_edge): Likewise.
612         (force_nonfallthru_and_redirect): Likewise.
613         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
614         (skip_insns_after_block): Likewise.
615         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
616         EXIT_BLOCK_PTR.
617         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
618         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
619         EXIT_BLOCK_PTR.
620         (contains_no_active_insn_p): Likewise.
621         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
622         (entry_of_function): Likewise.
623         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
624         (fixup_new_cold_bb): Likewise.
625         (patch_jump_insn): Likewise.
626         (try_redirect_by_replacing_jump): Likewise.
627         (block_label): Likewise.
628         (could_fall_through): Likewise.
629         (can_fallthru): Likewise.
630         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
631         ENTRY_BLOCK_PTR macro.
632         (rebuild_cgraph_edges): Likewise.
633         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
634         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
635         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
636         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
637         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
638         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
639         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
640         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
641         macro.
642         (reg_nonzero_bits_for_combine): Likewise.
643         (set_nonzero_bits_and_sign_copies): Likewise.
644         (combine_instructions): Likewise.
645         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
646         EXIT_BLOCK_PTR.
647         (bypass_conditional_jumps): Likewise.
648         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
649         (find_implicit_sets): Likewise.
650         (cprop_jump): Likewise.
651         * cse.c (cse_cc_succs): Likewise.
652         (cse_find_path): Likewise.
653         * df-problems.c (df_lr_confluence_0): Likewise.
654         * df-scan.c (df_entry_block_defs_collect): Remove usage of
655         ENTRY_BLOCK_PTR macro.
656         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
657         * dominance.c (iterate_fix_dominators): Remove usage of
658         ENTRY_BLOCK_PTR macro.
659         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
660         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
661         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
662         EXIT_BLOCK_PTR.
663         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
664         macro.
665         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
666         EXIT_BLOCK_PTR.
667         * domwalk.c (cmp_bb_postorder): Likewise.
668         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
669         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
670         macro.
671         (sjlj_emit_function_enter): Likewise.
672         * final.c (compute_alignments): Likewise.
673         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
674         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
675         (reposition_prologue_and_epilogue_notes): Remove usage of
676         EXIT_BLOCK_PTR macro.
677         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
678         EXIT_BLOCK_PTR.
679         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
680         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
681         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
682         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
683         (compute_code_hoist_vbeinout): Likewise.
684         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
685         (pre_expr_reaches_here_p_work): Likewise.
686         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
687         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
688         EXIT_BLOCK_PTR.
689         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
690         ENTRY_BLOCK_PTR macro.
691         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
692         macro.
693         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
694         ENTRY_BLOCK_PTR macro.
695         * graphite-scop-detection.c (build_scops): Likewise.
696         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
697         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
698         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
699         macro.
700         (unlink_bb_notes): Likewise.
701         (create_check_block_twin): Likewise.
702         (init_before_recovery): Likewise.
703         (sched_extend_bb): Likewise.
704         (priority): Likewise.
705         * hw-doloop.c (reorder_loops): Likewise.
706         (discover_loop): Likewise.
707         * ifcvt.c (dead_or_predicable): Remove uses of macros:
708         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
709         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
710         (block_has_only_trap): Likewise.
711         (cond_exec_find_if_block): Likewise.
712         (merge_if_block): Likewise.
713         * ipa-inline-analysis.c (param_change_prob): Remove usage of
714         ENTRY_BLOCK_PTR macro.
715         (record_modified): Likewise.
716         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
717         EXIT_BLOCK_PTR macro.
718         (local_pure_const): Likewise.
719         * ipa-split.c (split_function): Remove uses of macros:
720         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
721         (find_split_points): Likewise.
722         (consider_split): Likewise.
723         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
724         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
725         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
726         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
727         * ira-emit.c (entered_from_non_parent_p): Remove usage of
728         ENTRY_BLOCK_PTR macro.
729         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
730         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
731         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
732         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
733         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
734         macro.
735         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
736         EXIT_BLOCK_PTR.
737         (compute_farthest): Likewise.
738         (compute_available): Likewise.
739         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
740         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
741         EXIT_BLOCK_PTR.
742         (compute_earliest): Likewise.
743         (compute_antinout_edge): Likewise.
744         * loop-iv.c (simplify_using_initial_values): Remove usage of
745         ENTRY_BLOCK_PTR macro.
746         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
747         macro.
748         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
749         macro.
750         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
751         macro.
752         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
753         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
754         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
755         macro.
756         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
757         macro.
758         * lto-streamer-out.c (output_cfg): Likewise.
759         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
760         EXIT_BLOCK_PTR.
761         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
762         * mode-switching.c (optimize_mode_switching): Likewise.
763         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
764         * modulo-sched.c (rest_of_handle_sms): Likewise.
765         (canon_loop): Likewise.
766         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
767         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
768         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
769         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
770         macro.
771         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
772         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
773         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
774         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
775         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
776         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
777         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
778         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
779         (gimple_predict_edge): Likewise.
780         (probably_never_executed): Likewise.
781         * profile.c (find_spanning_tree): Remove uses of macros:
782         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
783         (branch_prob): Likewise.
784         (compute_branch_probabilities): Likewise.
785         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
786         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
787         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
788         (set_bb_counts): Likewise.
789         (correct_negative_edge_counts): Likewise.
790         (get_exec_counts): Likewise.
791         (instrument_values): Likewise.
792         (instrument_edges): Likewise.
793         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
794         EXIT_BLOCK_PTR.
795         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
796         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
797         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
798         (reg_to_stack): Likewise.
799         * regs.h (REG_N_SETS): Likewise.
800         * reload.c (find_dummy_reload): Likewise.
801         (combine_reloads): Likewise.
802         (push_reload): Likewise.
803         * reload1.c (has_nonexceptional_receiver): Remove usage of
804         EXIT_BLOCK_PTR macro.
805         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
806         macro.
807         (find_basic_block): Likewise.
808         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
809         (schedule_ebbs): Likewise.
810         * sched-int.h (sel_sched_p): Likewise.
811         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
812         macro.
813         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
814         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
815         EXIT_BLOCK_PTR.
816         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
817         (extend_rgns): Likewise.
818         (find_single_block_region): Likewise.
819         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
820         ENTRY_BLOCK_PTR macro.
821         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
822         (sel_create_recovery_block): Likewise.
823         (bb_ends_ebb_p): Likewise.
824         (sel_bb_end): Likewise.
825         (sel_bb_head): Likewise.
826         (free_lv_sets): Likewise.
827         (init_lv_sets): Likewise.
828         (tidy_control_flow): Likewise.
829         (maybe_tidy_empty_bb): Likewise.
830         * sel-sched-ir.h (_succ_iter_cond): Likewise.
831         (_succ_iter_start): Likewise.
832         (sel_bb_empty_or_nop_p): Likewise.
833         (get_loop_exit_edges_unique_dests): Likewise.
834         (inner_loop_header_p): Likewise.
835         * sel-sched.c (create_block_for_bookkeeping): Likewise.
836         (find_block_for_bookkeeping): Likewise.
837         * store-motion.c (remove_reachable_equiv_notes): Likewise.
838         (insert_store): Likewise.
839         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
840         ENTRY_BLOCK_PTR macro.
841         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
842         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
843         (gate_tm_init): Likewise.
844         (tm_region_init): Likewise.
845         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
846         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
847         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
848         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
849         EXIT_BLOCK_PTR.
850         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
851         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
852         EXIT_BLOCK_PTR.
853         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
854         macro.
855         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
856         EXIT_BLOCK_PTR.
857         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
858         macro.
859         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
860         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
861         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
862         (build_gimple_cfg): Likewise.
863         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
864         (gimple_can_merge_blocks_p): Likewise.
865         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
866         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
867         * tree-complex.c (update_parameter_components): Remove usage of
868         ENTRY_BLOCK_PTR macro.
869         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
870         EXIT_BLOCK_PTR macro.
871         * tree-inline.c (tree_function_versioning): Remove uses of macros:
872         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
873         (delete_unreachable_blocks_update_callgraph): Likewise.
874         (initialize_cfun): Likewise.
875         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
876         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
877         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
878         * tree-into-ssa.c (update_ssa): Likewise.
879         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
880         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
881         (rewrite_into_ssa): Likewise.
882         (rewrite_debug_stmt_uses): Likewise.
883         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
884         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
885         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
886         ENTRY_BLOCK_PTR macro.
887         * tree-scalar-evolution.h (block_before_loop): Likewise.
888         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
889         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
890         EXIT_BLOCK_PTR.
891         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
892         macro.
893         (propagate_dereference_distances): Remove uses of macros:
894         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
895         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
896         macro.
897         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
898         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
899         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
900         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
901         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
902         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
903         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
904         (mark_control_dependent_edges_necessary): Remove uses of macros:
905         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
906         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
907         ENTRY_BLOCK_PTR macro.
908         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
909         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
910         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
911         (calculate_live_on_exit): Likewise.
912         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
913         (loe_visit_block): Likewise.
914         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
915         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
916         (live_on_entry): Likewise.
917         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
918         EXIT_BLOCK_PTR macro.
919         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
920         ENTRY_BLOCK_PTR macro.
921         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
922         (bound_difference): Likewise.
923         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
924         of EXIT_BLOCK_PTR macro.
925         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
926         of ENTRY_BLOCK_PTR macro.
927         * tree-ssa-math-opts.c (register_division_in): Likewise.
928         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
929         * tree-ssa-pre.c (compute_avail): Likewise.
930         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
931         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
932         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
933         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
934         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
935         EXIT_BLOCK_PTR.
936         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
937         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
938         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
939         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
940         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
941         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
942         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
943         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
944         (find_pdom): Likewise.
945         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
946         * tree-stdarg.c (reachable_at_most_once): Likewise.
947         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
948         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
949         (eliminate_tail_call): Likewise.
950         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
951         macro.
952         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
953         * var-tracking.c (vt_initialize): Remove uses of macros:
954         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
955         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
956         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
957         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
958         EXIT_BLOCK_PTR.
959         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
960         macro.
961         * config/bfin/bfin.c (hwloop_optimize): Likewise.
962         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
963         of EXIT_BLOCK_PTR macro.
964         * config/arm/arm.c (require_pic_register): Remove usage of
965         ENTRY_BLOCK_PTR macro.
966         (arm_r3_live_at_start_p): Likewise.
967         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
968         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
969         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
970         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
971         ENTRY_BLOCK_PTR macro.
972         * config/i386/i386.c (ix86_count_insn): Likewise.
973         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
974         (ix86_pad_short_function): Likewise.
975         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
976         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
977         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
978         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
979         (ix86_expand_epilogue): Likewise.
980         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
981         (ia64_expand_prologue): Likewise.
983 2013-11-19  Catherine Moore  <clm@codesourcery.com>
985         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
986         * config/mips/mips.opt (mfix-rm7000): New option.
987         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
988         * config/mips/mips.c (mips_reorg_process_insns): Disable
989         noreorder for TARGET_FIX_RM7000.
991 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
993         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
995 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
997         * config/arm/arm.c (arm_new_rtx_costs):
998         Handle narrow mode add-shifts properly.
999         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
1000         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
1001         Declare extern.
1003 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
1005         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
1007 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1009         * config/rs6000/vector.md ("mov<mode>"): Do not call
1010         rs6000_emit_le_vsx_move to move into or out of GPRs.
1011         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
1012         source and destination are not GPR hard regs.
1014 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1016         * basic-block.h (n_edges_for_function): Rename macro to...
1017         (n_edges_for_fn): ...this.
1018         (n_edges): Eliminate macro as work towards making uses of
1019         cfun be explicit.
1021         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
1022         to "n_edges_for_fn".
1024         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
1025         (clear_edges): Likewise.
1026         (free_edge): Likewise.
1027         * cfghooks.c (dump_flow_info): Likewise.
1028         * cprop.c (is_too_expensive): Likewise.
1029         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
1030         * gcse.c (is_too_expensive): Likewise.
1031         (prune_insertions_deletions): Likewise.
1032         * mcf.c (create_fixup_graph): Likewise.
1033         * sched-rgn.c (haifa_find_rgns): Likewise.
1034         * tree-cfg.c (gimple_dump_cfg): Likewise.
1035         * var-tracking.c (variable_tracking_main_1): Likewise.
1037 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1039         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
1040         length lines.
1042 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1044         * config/aarch64/aarch64.md
1045         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
1047 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1049         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
1051 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
1053         * varasm.c (align_variable): Give error instead of warning for
1054         unsupported alignment.
1055         (assemble_noswitch_variable): Likewise.
1057 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1059         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
1060         cb_file_change.
1062 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
1064         * loop-doloop.c (doloop_optimize_loops): Remove unused
1065         loop iterator argument from FOR_EACH_LOOP.
1067 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1069         Convert gimple types from a union to C++ inheritance.
1070         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
1071         * coretypes.h (union gimple_statement_d): Remove declaration.
1072         (gimple): Convert from being a "union gimple_statement_d *"
1073         to a "struct gimple_statement_base *".
1074         (const_gimple): Likewise (with "const").
1075         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
1076         (ggc_alloc_cleared_gimple_statement_stat): ...this.
1077         * gimple-pretty-print.c (debug): Change parameter from a
1078         "gimple_statement_d &" to a "gimple_statement_base &".
1079         (debug): Change parameter from a "gimple_statement_d *" to
1080         a "gimple_statement_base *".
1081         * gimple-pretty-print.h (debug): Update declarations as above.
1082         * gimple.c (gimple_alloc_stat): Update for renaming of
1083         ggc_alloc_cleared_gimple_statement_d_stat to
1084         ggc_alloc_cleared_gimple_statement_stat.
1085         * gimple.h: Include "is-a.h" for use by is_a_helper
1086         specializations in followup autogenerated patch.
1087         (struct gimple statement_base): Make this type usable as a base
1088         class by adding "desc", "tag" and "variable_size" to GTY, thus
1089         using opting-in to gengtype's support for simple inheritance.
1090         (gimple_statement_with_ops_base): Convert to a subclass of
1091         gimple_statement_base, dropping initial "gsbase" field.  Note that
1092         this type is abstract, with no GSS_ value, and thus no GTY tag value.
1093         (gimple_statement_with_ops): Convert to a subclass of
1094         gimple_statement_with_ops_base, dropping initial "opbase" field.
1095         Add tag value to GTY marking.  Update marking of op field to
1096         reflect how num_ops field is accessed via inheritance.
1097         (gimple_statement_with_memory_ops_base): Convert to a subclass of
1098         gimple_statement_with_ops_base, dropping initial "opbase" field.
1099         Add tag value to GTY marking.
1100         (gimple_statement_with_memory_ops): Convert to a subclass of
1101         public gimple_statement_with_memory_ops_base, dropping initial
1102         "membase" field.  Add tag value to GTY marking.  Update marking
1103         of op field to reflect how num_ops field is accessed via inheritance.
1104         (gimple_statement_call): Analogous changes that also update the
1105         marking of the "u" union.
1106         (gimple_statement_omp): Convert to a subclass of
1107         gimple_statement_base, dropping initial "gsbase" field, adding
1108         tag value to GTY marking.
1109         (gimple_statement_bind): Likewise.
1110         (gimple_statement_catch): Likewise.
1111         (gimple_statement_eh_filter): Likewise.
1112         (gimple_statement_eh_else): Likewise.
1113         (gimple_statement_eh_mnt): Likewise.
1114         (gimple_statement_phi): Likewise.
1115         (gimple_statement_eh_ctrl): Likewise.
1116         (gimple_statement_try): Likewise.
1117         (gimple_statement_wce): Likewise.
1118         (gimple_statement_asm): Convert to a subclass of
1119         gimple_statement_with_memory_ops_base, dropping initial
1120         "membase" field, adding tag value to GTY marking, and updating
1121         marking of op field.
1122         (gimple_statement_omp_critical): Convert to a subclass of
1123         gimple_statement_omp, dropping initial "omp" field, adding tag
1124         value to GTY marking.
1125         (gimple_statement_omp_for): Likewise.
1126         (gimple_statement_omp_parallel): Likewise.
1127         (gimple_statement_omp_task): Convert to a subclass of
1128         gimple_statement_omp_parallel, dropping initial "par" field,
1129         adding tag value to GTY marking.
1130         (gimple_statement_omp_sections): Convert to a subclass of
1131         gimple_statement_omp, dropping initial "omp" field, adding
1132         tag value to GTY marking.
1133         (gimple_statement_omp_continue): Convert to a subclass of
1134         gimple_statement_base, dropping initial "gsbase" field, adding
1135         tag value to GTY marking.
1136         (gimple_statement_omp_single): Convert to a subclass of
1137         gimple_statement_omp, dropping initial "omp" field, adding
1138         tag value to GTY marking.
1139         (gimple_statement_omp_atomic_load): Convert to a subclass of
1140         gimple_statement_base, dropping initial "gsbase" field, adding
1141         tag value to GTY marking.
1142         (gimple_statement_omp_atomic_store): Convert to a subclass of
1143         gimple_statement_base, dropping initial "gsbase" field, adding
1144         tag value to GTY marking.
1145         (gimple_statement_transaction): Convert to a subclass of
1146         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
1147         field, adding tag value to GTY marking.
1148         (union gimple_statement_d): Remove.
1149         * system.h (CONST_CAST_GIMPLE): Update to use
1150         "struct gimple_statement_base *" rather than
1151         "union gimple_statement_d *".
1152         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
1153         gimple_statement_d to gimple_statement_base.
1155         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
1156         (gimple_set_use_ops): Port from union to usage of as_a.
1157         (gimple_set_vuse): Likewise.
1158         (gimple_set_vdef): Likewise.
1159         (gimple_call_internal_fn): Port from union to a static_cast,
1160         given that the type has already been asserted.
1161         (gimple_omp_body_ptr): Port from unchecked union usage to
1162         a static_cast.
1163         (gimple_omp_set_body): Likewise.
1165         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
1166         gimple types to a true class hierarchy.
1167         (update_call_edge_frequencies): Likewise.
1168         (gsi_insert_seq_nodes_before): Likewise.
1169         (gsi_insert_seq_nodes_after): Likewise.
1170         (gsi_split_seq_after): Likewise.
1171         (gsi_set_stmt): Likewise.
1172         (gsi_split_seq_before): Likewise.
1173         (gsi_remove): Likewise.
1174         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
1175         (gsi_next): Likewise.
1176         (gsi_prev): Likewise.
1177         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
1178         * gimple-ssa.h (gimple_vuse_op): Likewise.
1179         (gimple_vdef_op): Likewise.
1180         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
1181         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1182         * gimple.c (gimple_set_code): Likewise.
1183         (gimple_alloc_stat): Likewise.
1184         (gimple_set_subcode): Likewise.
1185         (gimple_build_call_internal_1): Likewise.
1186         (gimple_check_failed): Likewise.
1187         (gimple_call_flags): Likewise.
1188         (gimple_set_bb): Likewise.
1189         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
1190         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
1191         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
1192         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
1193         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
1194         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
1195         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
1196         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
1197         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
1198         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
1199         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
1200         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
1201         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
1202         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
1203         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
1204         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
1205         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
1206         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
1207         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
1208         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
1209         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
1210         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
1211         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
1212         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
1213         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
1214         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
1215         Likewise.
1216         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
1217         Likewise.
1218         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
1219         Likewise.
1220         (is_a_helper <const gimple_statement_omp_atomic_store>
1221         (const_gimple)): Likewise.
1222         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
1223         Likewise.
1224         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
1225         Likewise.
1226         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
1227         Likewise.
1228         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
1229         Likewise.
1230         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
1231         Likewise.
1232         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
1233         Likewise.
1234         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
1235         Likewise.
1236         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
1237         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
1238         Likewise.
1239         (gimple_seq_last): Update for conversion of gimple types to a true
1240         class hierarchy.
1241         (gimple_seq_set_last): Likewise.
1242         (gimple_code): Likewise.
1243         (gimple_bb): Likewise.
1244         (gimple_block): Likewise.
1245         (gimple_set_block): Likewise.
1246         (gimple_location): Likewise.
1247         (gimple_location_ptr): Likewise.
1248         (gimple_set_location): Likewise.
1249         (gimple_no_warning_p): Likewise.
1250         (gimple_set_no_warning): Likewise.
1251         (gimple_set_visited): Likewise.
1252         (gimple_visited_p): Likewise.
1253         (gimple_set_plf): Likewise.
1254         (gimple_plf): Likewise.
1255         (gimple_set_uid): Likewise.
1256         (gimple_uid): Likewise.
1257         (gimple_init_singleton): Likewise.
1258         (gimple_modified_p): Likewise.
1259         (gimple_set_modified): Likewise.
1260         (gimple_expr_code): Likewise.
1261         (gimple_has_volatile_ops): Likewise.
1262         (gimple_set_has_volatile_ops): Likewise.
1263         (gimple_omp_subcode): Likewise.
1264         (gimple_omp_set_subcode): Likewise.
1265         (gimple_omp_return_set_nowait): Likewise.
1266         (gimple_omp_section_set_last): Likewise.
1267         (gimple_omp_parallel_set_combined_p): Likewise.
1268         (gimple_omp_atomic_set_need_value): Likewise.
1269         (gimple_omp_atomic_set_seq_cst): Likewise.
1270         (gimple_num_ops): Likewise.
1271         (gimple_set_num_ops): Likewise.
1272         (gimple_assign_nontemporal_move_p): Likewise.
1273         (gimple_assign_set_nontemporal_move): Likewise.
1274         (gimple_assign_rhs_code): Likewise.
1275         (gimple_assign_set_rhs_code): Likewise.
1276         (gimple_call_internal_p): Likewise.
1277         (gimple_call_with_bounds_p): Likewise.
1278         (gimple_call_set_with_bounds): Likewise.
1279         (gimple_call_set_tail): Likewise.
1280         (gimple_call_tail_p): Likewise.
1281         (gimple_call_set_return_slot_opt): Likewise.
1282         (gimple_call_return_slot_opt_p): Likewise.
1283         (gimple_call_set_from_thunk): Likewise.
1284         (gimple_call_from_thunk_p): Likewise.
1285         (gimple_call_set_va_arg_pack): Likewise.
1286         (gimple_call_va_arg_pack_p): Likewise.
1287         (gimple_call_set_nothrow): Likewise.
1288         (gimple_call_set_alloca_for_var): Likewise.
1289         (gimple_call_alloca_for_var_p): Likewise.
1290         (gimple_call_copy_flags): Likewise.
1291         (gimple_cond_code): Likewise.
1292         (gimple_cond_set_code): Likewise.
1293         (gimple_cond_make_false): Likewise.
1294         (gimple_cond_make_true): Likewise.
1295         (gimple_asm_volatile_p): Likewise.
1296         (gimple_asm_set_volatile): Likewise.
1297         (gimple_asm_set_input): Likewise.
1298         (gimple_asm_input_p): Likewise.
1299         (gimple_try_kind): Likewise.
1300         (gimple_try_set_kind): Likewise.
1301         (gimple_try_catch_is_cleanup): Likewise.
1302         (gimple_try_set_catch_is_cleanup): Likewise.
1303         (gimple_wce_cleanup_eh_only): Likewise.
1304         (gimple_wce_set_cleanup_eh_only): Likewise.
1305         (gimple_debug_bind_p): Likewise.
1306         (gimple_debug_source_bind_p): Likewise.
1307         (gimple_omp_for_set_kind): Likewise.
1308         (gimple_omp_for_set_combined_p): Likewise.
1309         (gimple_omp_for_set_combined_into_p): Likewise.
1310         (gimple_omp_target_set_kind): Likewise.
1311         (gimple_transaction_subcode): Likewise.
1312         (gimple_transaction_set_subcode): Likewise.
1313         (gimple_predict_predictor): Likewise.
1314         (gimple_predict_set_predictor): Likewise.
1315         (gimple_predict_outcome): Likewise.
1316         (gimple_predict_set_outcome): Likewise.
1317         (gimple_transaction_set_label): Likewise.
1318         (gimple_transaction_set_body): Likewise.
1319         (gimple_transaction_label_ptr): Likewise.
1320         (gimple_transaction_label): Likewise.
1321         (gimple_transaction_body_ptr): Likewise.
1322         (gimple_omp_continue_set_control_use): Likewise.
1323         (gimple_omp_continue_control_use_ptr): Likewise.
1324         (gimple_omp_continue_control_use): Likewise.
1325         (gimple_omp_continue_set_control_def): Likewise.
1326         (gimple_omp_continue_control_def_ptr): Likewise.
1327         (gimple_omp_continue_control_def): Likewise.
1328         (gimple_omp_atomic_load_rhs_ptr): Likewise.
1329         (gimple_omp_atomic_load_rhs): Likewise.
1330         (gimple_omp_atomic_load_set_rhs): Likewise.
1331         (gimple_omp_atomic_load_lhs_ptr): Likewise.
1332         (gimple_omp_atomic_load_lhs): Likewise.
1333         (gimple_omp_atomic_load_set_lhs): Likewise.
1334         (gimple_omp_atomic_store_val_ptr): Likewise.
1335         (gimple_omp_atomic_store_val): Likewise.
1336         (gimple_omp_atomic_store_set_val): Likewise.
1337         (gimple_omp_for_cond): Likewise.
1338         (gimple_omp_for_set_cond): Likewise.
1339         (gimple_omp_sections_set_control): Likewise.
1340         (gimple_omp_sections_control_ptr): Likewise.
1341         (gimple_omp_sections_control): Likewise.
1342         (gimple_omp_sections_set_clauses): Likewise.
1343         (gimple_omp_sections_clauses_ptr): Likewise.
1344         (gimple_omp_sections_clauses): Likewise.
1345         (gimple_omp_teams_set_clauses): Likewise.
1346         (gimple_omp_teams_clauses_ptr): Likewise.
1347         (gimple_omp_teams_clauses): Likewise.
1348         (gimple_omp_target_set_data_arg): Likewise.
1349         (gimple_omp_target_data_arg_ptr): Likewise.
1350         (gimple_omp_target_data_arg): Likewise.
1351         (gimple_omp_target_set_child_fn): Likewise.
1352         (gimple_omp_target_child_fn_ptr): Likewise.
1353         (gimple_omp_target_child_fn): Likewise.
1354         (gimple_omp_target_set_clauses): Likewise.
1355         (gimple_omp_target_clauses_ptr): Likewise.
1356         (gimple_omp_target_clauses): Likewise.
1357         (gimple_omp_single_set_clauses): Likewise.
1358         (gimple_omp_single_clauses_ptr): Likewise.
1359         (gimple_omp_single_clauses): Likewise.
1360         (gimple_omp_task_set_arg_align): Likewise.
1361         (gimple_omp_task_arg_align_ptr): Likewise.
1362         (gimple_omp_task_arg_align): Likewise.
1363         (gimple_omp_task_set_arg_size): Likewise.
1364         (gimple_omp_task_arg_size_ptr): Likewise.
1365         (gimple_omp_task_arg_size): Likewise.
1366         (gimple_omp_task_set_copy_fn): Likewise.
1367         (gimple_omp_task_copy_fn_ptr): Likewise.
1368         (gimple_omp_task_copy_fn): Likewise.
1369         (gimple_omp_task_set_data_arg): Likewise.
1370         (gimple_omp_task_data_arg_ptr): Likewise.
1371         (gimple_omp_task_data_arg): Likewise.
1372         (gimple_omp_task_set_child_fn): Likewise.
1373         (gimple_omp_task_child_fn_ptr): Likewise.
1374         (gimple_omp_task_child_fn): Likewise.
1375         (gimple_omp_task_set_clauses): Likewise.
1376         (gimple_omp_task_clauses_ptr): Likewise.
1377         (gimple_omp_task_clauses): Likewise.
1378         (gimple_omp_parallel_set_data_arg): Likewise.
1379         (gimple_omp_parallel_data_arg_ptr): Likewise.
1380         (gimple_omp_parallel_data_arg): Likewise.
1381         (gimple_omp_parallel_set_child_fn): Likewise.
1382         (gimple_omp_parallel_child_fn_ptr): Likewise.
1383         (gimple_omp_parallel_child_fn): Likewise.
1384         (gimple_omp_parallel_set_clauses): Likewise.
1385         (gimple_omp_parallel_clauses_ptr): Likewise.
1386         (gimple_omp_parallel_clauses): Likewise.
1387         (gimple_omp_for_set_pre_body): Likewise.
1388         (gimple_omp_for_pre_body_ptr): Likewise.
1389         (gimple_omp_for_set_incr): Likewise.
1390         (gimple_omp_for_incr_ptr): Likewise.
1391         (gimple_omp_for_incr): Likewise.
1392         (gimple_omp_for_set_final): Likewise.
1393         (gimple_omp_for_final_ptr): Likewise.
1394         (gimple_omp_for_final): Likewise.
1395         (gimple_omp_for_set_initial): Likewise.
1396         (gimple_omp_for_initial_ptr): Likewise.
1397         (gimple_omp_for_initial): Likewise.
1398         (gimple_omp_for_set_index): Likewise.
1399         (gimple_omp_for_index_ptr): Likewise.
1400         (gimple_omp_for_index): Likewise.
1401         (gimple_omp_for_collapse): Likewise.
1402         (gimple_omp_for_set_clauses): Likewise.
1403         (gimple_omp_for_clauses_ptr): Likewise.
1404         (gimple_omp_for_clauses): Likewise.
1405         (gimple_omp_critical_set_name): Likewise.
1406         (gimple_omp_critical_name_ptr): Likewise.
1407         (gimple_omp_critical_name): Likewise.
1408         (gimple_eh_dispatch_set_region): Likewise.
1409         (gimple_eh_dispatch_region): Likewise.
1410         (gimple_resx_set_region): Likewise.
1411         (gimple_resx_region): Likewise.
1412         (gimple_phi_set_arg): Likewise.
1413         (gimple_phi_arg): Likewise.
1414         (gimple_phi_set_result): Likewise.
1415         (gimple_phi_result_ptr): Likewise.
1416         (gimple_phi_result): Likewise.
1417         (gimple_phi_num_args): Likewise.
1418         (gimple_phi_capacity): Likewise.
1419         (gimple_wce_set_cleanup): Likewise.
1420         (gimple_wce_cleanup_ptr): Likewise.
1421         (gimple_try_set_cleanup): Likewise.
1422         (gimple_try_set_eval): Likewise.
1423         (gimple_try_cleanup_ptr): Likewise.
1424         (gimple_try_eval_ptr): Likewise.
1425         (gimple_eh_else_set_e_body): Likewise.
1426         (gimple_eh_else_set_n_body): Likewise.
1427         (gimple_eh_else_e_body_ptr): Likewise.
1428         (gimple_eh_else_n_body_ptr): Likewise.
1429         (gimple_eh_must_not_throw_set_fndecl): Likewise.
1430         (gimple_eh_must_not_throw_fndecl): Likewise.
1431         (gimple_eh_filter_set_failure): Likewise.
1432         (gimple_eh_filter_set_types): Likewise.
1433         (gimple_eh_filter_failure_ptr): Likewise.
1434         (gimple_eh_filter_types_ptr): Likewise.
1435         (gimple_eh_filter_types): Likewise.
1436         (gimple_catch_set_handler): Likewise.
1437         (gimple_catch_set_types): Likewise.
1438         (gimple_catch_handler_ptr): Likewise.
1439         (gimple_catch_types_ptr): Likewise.
1440         (gimple_catch_types): Likewise.
1441         (gimple_asm_string): Likewise.
1442         (gimple_asm_set_label_op): Likewise.
1443         (gimple_asm_label_op): Likewise.
1444         (gimple_asm_set_clobber_op): Likewise.
1445         (gimple_asm_clobber_op): Likewise.
1446         (gimple_asm_set_output_op): Likewise.
1447         (gimple_asm_output_op_ptr): Likewise.
1448         (gimple_asm_output_op): Likewise.
1449         (gimple_asm_set_input_op): Likewise.
1450         (gimple_asm_input_op_ptr): Likewise.
1451         (gimple_asm_input_op): Likewise.
1452         (gimple_asm_nlabels): Likewise.
1453         (gimple_asm_nclobbers): Likewise.
1454         (gimple_asm_noutputs): Likewise.
1455         (gimple_asm_ninputs): Likewise.
1456         (gimple_bind_set_block): Likewise.
1457         (gimple_bind_block): Likewise.
1458         (gimple_bind_add_seq): Likewise.
1459         (gimple_bind_add_stmt): Likewise.
1460         (gimple_bind_set_body): Likewise.
1461         (gimple_bind_body_ptr): Likewise.
1462         (gimple_bind_append_vars): Likewise.
1463         (gimple_bind_set_vars): Likewise.
1464         (gimple_bind_vars): Likewise.
1465         (gimple_call_clobber_set): Likewise.
1466         (gimple_call_use_set): Likewise.
1467         (gimple_call_set_internal_fn): Likewise.
1468         (gimple_call_set_fntype): Likewise.
1469         (gimple_call_fntype): Likewise.
1470         (gimple_omp_return_lhs_ptr): Likewise.
1471         (gimple_omp_return_lhs): Likewise.
1472         (gimple_omp_return_set_lhs): Likewise.
1473         (gimple_omp_taskreg_set_data_arg): Likewise.
1474         (gimple_omp_taskreg_data_arg_ptr): Likewise.
1475         (gimple_omp_taskreg_data_arg): Likewise.
1476         (gimple_omp_taskreg_set_child_fn): Likewise.
1477         (gimple_omp_taskreg_child_fn_ptr): Likewise.
1478         (gimple_omp_taskreg_child_fn): Likewise.
1479         (gimple_omp_taskreg_set_clauses): Likewise.
1480         (gimple_omp_taskreg_clauses_ptr): Likewise.
1481         (gimple_omp_taskreg_clauses): Likewise.
1482         (gimple_vuse): Likewise.
1483         (gimple_vdef): Likewise.
1484         (gimple_vuse_ptr): Likewise.
1485         (gimple_vdef_ptr): Likewise.
1486         * tree-inline.c (copy_debug_stmt): Likewise.
1487         * tree-phinodes.c (make_phi_node): Likewise.
1489         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
1490         (is_a_helper <gimple_statement_with_ops>::test): New.
1491         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
1492         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
1494         * gimple-streamer-in.c (input_gimple_stmt): Port from union
1495         access to use of as_a.
1496         * gimple.c (gimple_build_asm_1): Likewise.
1497         (gimple_build_try): Likewise.  Also, return a specific subclass
1498         rather than just gimple.
1499         (gimple_build_resx): Port from union access to use of as_a.
1500         (gimple_build_eh_dispatch): Likewise.
1501         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
1502         now that gengtype no longer provides a typed allocator function.
1503         (gimple_copy): Likewise.
1504         * gimple.h (gimple_build_try): Return a specific subclass rather
1505         than just gimple.
1506         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
1507         with subclass access by making use of new return type of
1508         gimple_build_try.
1509         * tree-phinodes.c: (allocate_phi_node): Return a
1510         "gimple_statement_phi *" rather than just a gimple.
1511         (resize_phi_node): Likewise.
1512         (make_phi_node): Replace union access with subclass access by
1513         making use of new return type of allocate_phi_node.
1514         (reserve_phi_args_for_new_edge): Replace union access with as_a.
1515         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
1516         than just a gimple.
1517         (remove_phi_args): Update for change to remove_phi_arg_num.
1519         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
1520         code field to reflect inheritance, rather than embedding of
1521         the base gimple type.
1523 2013-11-19  Richard Biener  <rguenther@suse.de>
1525         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
1526         and destructor and make fel_next a member function.
1527         (fel_next): Transform into ...
1528         (loop_iterator::next): ... this.
1529         (fel_init): Transform into ...
1530         (loop_iterator::loop_iterator): ... this.
1531         (loop_iterator::~loop_iterator): New.
1532         (FOR_EACH_LOOP): Remove loop-iterator argument.
1533         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
1534         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
1535         graphite-clast-to-gimple.c, graphite-scop-detection.c,
1536         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
1537         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
1538         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
1539         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
1540         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
1541         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
1542         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
1543         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
1544         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
1545         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
1546         FOR_EACH_LOOP_BREAK with break.
1548 2013-11-19  Richard Biener  <rguenther@suse.de>
1550         PR tree-optimization/59164
1551         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1552         Uncomment assert.
1553         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
1554         whether we can create an epilogue loop to reflect thecases where
1555         we create one.
1557 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
1559         * graphite-sese-to-poly.c: Include expr.h.
1561 2013-11-19  Richard Biener  <rguenther@suse.de>
1563         PR middle-end/58956
1564         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
1565         loads into stmts that may clobber it.
1567 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
1569         * cgraphunit.c (symtab_terminator): New variable.
1570         (queued_nodes): Renamed from first.  Use symtab_terminator as
1571         initializer.
1572         (analyze_functions): Adjust accordingly.
1573         (cgraph_process_new_functions): Return void.
1574         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
1576 2013-11-19  Marek Polacek  <polacek@redhat.com>
1578         * opts.c (common_handle_option): Add -fsanitize=null option.
1579         Turn off -fdelete-null-pointer-checks option when doing the
1580         NULL pointer checking.
1581         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
1582         * tree-pass.h (make_pass_ubsan): Declare.
1583         (make_pass_sanopt): Declare.
1584         * timevar.def (TV_TREE_UBSAN): New timevar.
1585         * passes.def: Add pass_sanopt and pass_ubsan.
1586         * ubsan.h (ubsan_null_ckind): New enum.
1587         (ubsan_mismatch_data): New struct.
1588         (ubsan_expand_null_ifn): Declare.
1589         (ubsan_create_data): Adjust declaration.
1590         (ubsan_type_descriptor): Likewise.
1591         * asan.c: Include "ubsan.h".
1592         (pass_data_sanopt): New pass.
1593         (execute_sanopt): New function.
1594         (gate_sanopt): Likewise.
1595         (make_pass_sanopt): Likewise.
1596         (class pass_sanopt): New class.
1597         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
1598         gimple-iterator.h and cfgloop.h.
1599         (PROB_VERY_UNLIKELY): Define.
1600         (tree_type_map_hash): New function.
1601         (ubsan_type_descriptor): Add new parameter.
1602         Improve type name generation.
1603         (ubsan_create_data): Add new parameter.  Add pointer data into
1604         ubsan structure.
1605         (ubsan_expand_null_ifn): New function.
1606         (instrument_member_call): Likewise.
1607         (instrument_mem_ref): Likewise.
1608         (instrument_null): Likewise.
1609         (ubsan_pass): Likewise.
1610         (gate_ubsan): Likewise.
1611         (make_pass_ubsan): Likewise.
1612         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
1613         (class pass_ubsan): New class.
1614         (pass_data_ubsan): New pass.
1615         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
1616         * internal-fn.c (expand_UBSAN_NULL): New function.
1617         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
1618         even when !flag_toplevel_reorder.
1619         * internal-fn.def (UBSAN_NULL): New.
1621 2013-11-19  Jan Hubicka  <jh@suse.cz>
1623         * cgraph.c (cgraph_create_indirect_edge): Use
1624         get_polymorphic_call_info.
1625         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
1626         maybe_in_construction and maybe_derived_type.
1627         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
1628         (ipa_dummy_polymorphic_call_context): New global var.
1629         (possible_polymorphic_call_targets): Add context paramter.
1630         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
1631         (possible_polymorphic_call_target_p): Likewise.
1632         (get_polymorphic_call_info): New function.
1633         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
1634         (add_type_duplicate): Remove forgotten debug output.
1635         (method_class_type): Add sanity check.
1636         (maybe_record_node): Add FINALP parameter.
1637         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
1638         by info by get_binfo_at_offset.
1639         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
1640         parameters; pass them to record-binfo.
1641         (polymorphic_call_target_d): Add context and FINAL.
1642         (polymorphic_call_target_hasher::hash): Hash context.
1643         (polymorphic_call_target_hasher::equal): Compare context.
1644         (free_polymorphic_call_targets_hash):
1645         (get_class_context): New function.
1646         (contains_type_p): New function.
1647         (get_polymorphic_call_info): New function.
1648         (walk_bases): New function.
1649         (possible_polymorphic_call_targets): Add context parameter; honnor it.
1650         (dump_possible_polymorphic_call_targets): Dump context.
1651         (possible_polymorphic_call_target_p): Add context.
1652         (update_type_inheritance_graph): Update comment.s
1653         (ipa_set_jf_known_type): Assert that compoentn type is known.
1654         (ipa_note_param_call): Do not tamper with offsets.
1655         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
1656         outer type.
1657         (update_indirect_edges_after_inlining): Likewise.
1658         (ipa_write_indirect_edge_info): Stream new fields.
1659         (ipa_read_indirect_edge_info): Stream in new fields.
1661 2013-11-19  Jan Hubicka  <jh@suse.cz>
1663         * tree-pretty-print.c (dump_generic_node): Print class type of
1664         OBJ_TYPE_REF.
1666 2013-11-19  Joey Ye  <joey.ye@arm.com>
1668         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
1669         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
1670         for new option.
1671         * config/arm/arm.c (arm_option_override): By default disable
1672         -marm-pic-data-is-text-relative.
1673         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
1674         (arm_assemble_integer): Likewise.
1675         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
1676         New macro to initialize -marm-pic-data-is-text-relative.
1678 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
1680         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
1681         (address_cost_data): New field.
1682         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
1683         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
1685 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
1687         * config/aarch64/aarch64.md: Remove v8type from all insns.
1689 2013-11-19  Richard Biener  <rguenther@suse.de>
1691         PR tree-optimization/57517
1692         * tree-predcom.c (combinable_refs_p): Verify the combination
1693         is always executed when the refs are.
1695 2013-11-19  Jeff Law  <law@redhat.com>
1697         * tree-ssa-threadupdate.c: Include ssa-iterators.h
1698         (copy_phi_arg_into_existing_phi): New function.
1699         (any_remaining_duplicated_blocks): Likewise.
1700         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
1701         blocks on a jump threading path.
1703         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
1704         thread through a joiner which has the latch edge.
1706 2013-11-19  Jan Hubicka  <jh@suse.cz>
1708         * md.texi (setmem): Document new parameter.
1709         * optabs.c (maybe_gen_insn): Support 9 operands.
1710         * builtins.c (determine_block_size): Add probable_max_size;
1711         support anti-ranges.
1712         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
1713         probable_max_size.
1714         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
1715         emit_block_move, clear_storage_hints, set_storage_via_setmem):
1716         Likewise.
1717         * expr.h (emit_block_move_hints, clear_storage_hints,
1718         set_storage_via_setmem): Update prototype.
1719         * i386.md (setmem, movmem patterns): Add 9th operand.
1720         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
1721         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
1722         argument; pass it to decide_alg.
1724 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1726         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
1727         (n_basic_blocks_for_fn): ...this.
1729         (n_basic_blocks): Eliminate macro as work towards making uses of
1730         cfun be explicit.
1732         * cfgloop.c (init_loops_structure): Update for renaming of
1733         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
1734         * graph.c (draw_cfg_nodes_no_loops): Likewise.
1735         * ipa-utils.c (ipa_merge_profiles): Likewise.
1736         * lto-streamer-in.c (make_new_block): Likewise.
1737         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1738         (dump_function_to_file): Likewise.
1740         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
1741         macro with "n_basic_blocks_for_fn (cfun)".
1742         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
1743         (duplicate_computed_gotos): Likewise.
1744         (reorder_basic_blocks): Likewise.
1745         * bt-load.c (augment_live_range): Likewise.
1746         * cfg.c (expunge_block): Likewise.
1747         (compact_blocks): Likewise.
1748         * cfganal.c (single_pred_before_succ_order): Likewise.
1749         (compute_idf): Likewise.
1750         (flow_dfs_compute_reverse_init): Likewise.
1751         (pre_and_rev_post_order_compute): Likewise.
1752         (pre_and_rev_post_order_compute_fn): Likewise.
1753         (inverted_post_order_compute): Likewise.
1754         (post_order_compute): Likewise.
1755         (print_edge_list): Likewise.
1756         (find_unreachable_blocks): Likewise.
1757         (mark_dfs_back_edges): Likewise.
1758         * cfgcleanup.c (try_optimize_cfg): Likewise.
1759         (try_forward_edges): Likewise.
1760         * cfghooks.c (dump_flow_info): Likewise.
1761         * cfgloop.c (verify_loop_structure): Likewise.
1762         (get_loop_body): Likewise.
1763         (flow_loops_find): Likewise.
1764         * cfgloopmanip.c (add_loop): Likewise.
1765         (remove_path): Likewise.
1766         (find_path): Likewise.
1767         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1768         (rtl_verify_bb_layout): Likewise.
1769         (entry_of_function): Likewise.
1770         (rtl_create_basic_block): Likewise.
1771         * coverage.c (coverage_compute_cfg_checksum): Likewise.
1772         * cprop.c (one_cprop_pass): Likewise.
1773         (is_too_expensive): Likewise.
1774         * df-core.c (df_compute_cfg_image): Likewise.
1775         (df_compact_blocks): Likewise.
1776         (df_worklist_dataflow_doublequeue): Likewise.
1777         * dominance.c (calculate_dominance_info): Likewise.
1778         (calc_dfs_tree): Likewise.
1779         (calc_dfs_tree_nonrec): Likewise.
1780         (init_dom_info): Likewise.
1781         * domwalk.c (cmp_bb_postorder): Likewise.
1782         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1783         (generate_setjmp_warnings): Likewise.
1784         * fwprop.c (build_single_def_use_links): Likewise.
1785         * gcse.c (is_too_expensive): Likewise.
1786         (one_code_hoisting_pass): Likewise.
1787         (one_pre_gcse_pass): Likewise.
1788         * graphite.c (graphite_initialize): Likewise.
1789         * haifa-sched.c (haifa_sched_init): Likewise.
1790         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
1791         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
1792         * ira-build.c (ira_build): Likewise.
1793         * lcm.c (compute_nearerout): Likewise.
1794         (compute_available): Likewise.
1795         (compute_laterin): Likewise.
1796         (compute_antinout_edge): Likewise.
1797         * lra-lives.c (lra_create_live_ranges): Likewise.
1798         * lra.c (has_nonexceptional_receiver): Likewise.
1799         * mcf.c (create_fixup_graph): Likewise.
1800         * profile.c (branch_prob): Likewise.
1801         * reg-stack.c (convert_regs_2): Likewise.
1802         * regrename.c (regrename_analyze): Likewise.
1803         * reload1.c (has_nonexceptional_receiver): Likewise.
1804         * reorg.c (dbr_schedule): Likewise.
1805         * sched-deps.c (sched_deps_init): Likewise.
1806         * sched-ebb.c (schedule_ebbs): Likewise.
1807         * sched-rgn.c (extend_regions): Likewise.
1808         (schedule_insns): Likewise.
1809         (sched_rgn_init): Likewise.
1810         (extend_rgns): Likewise.
1811         (haifa_find_rgns): Likewise.
1812         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
1813         (sel_recompute_toporder): Likewise.
1814         * sel-sched.c (run_selective_scheduling): Likewise.
1815         * store-motion.c (one_store_motion_pass): Likewise.
1816         (remove_reachable_equiv_notes): Likewise.
1817         * tracer.c (tracer): Likewise.
1818         (tail_duplicate): Likewise.
1819         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
1820         (dump_cfg_stats): Likewise.
1821         (gimple_dump_cfg): Likewise.
1822         (create_bb): Likewise.
1823         (build_gimple_cfg): Likewise.
1824         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
1825         * tree-inline.c (optimize_inline_calls): Likewise.
1826         (fold_marked_statements): Likewise.
1827         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
1828         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1829         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1830         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
1831         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1832         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
1833         * tree-ssa-pre.c (do_pre): Likewise.
1834         (init_pre): Likewise.
1835         (compute_avail): Likewise.
1836         * tree-ssa-reassoc.c (init_reassoc): Likewise.
1837         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1838         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
1839         (init_worklist): Likewise.
1840         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1841         * var-tracking.c (variable_tracking_main_1): Likewise.
1842         (vt_find_locations): Likewise.
1843         (vt_stack_adjustments): Likewise.
1844         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1845         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1847 2013-11-18  Jan Hubicka  <jh@suse.cz>
1849         * profile.c (compute_branch_probabilities): Do not sanity check
1850         run_max.
1852 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
1854         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
1855         GET_MODE_PRECISION.
1856         * fold-const.c (fold_single_bit_test_into_sign_test)
1857         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
1859 2013-11-18  Teresa Johnson  <tejohnson@google.com>
1861         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
1862         cfglayout after bb reordering.
1863         * passes.def: Move compgotos before bb reordering since it goes into
1864         cfglayout.
1866 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
1868         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
1869         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
1870         static.
1871         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
1872         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
1873         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
1874         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
1875         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
1876         Remove all_lto_gen_passes.
1877         * passes.c (pass_manager::dump_passes): Remove its use.
1878         (pass_manager::register_pass): Likewise.
1879         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
1880         (pass_manager::pass_manager): Don't initialize or use it.
1881         (write_lto): New static function.
1882         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
1883         instead of using all_lto_gen_passes.
1884         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
1885         pass_ipa_lto_finish_out): Delete.
1886         * tree-pass.h (make_pass_ipa_lto_gimple_out,
1887         make_pass_ipa_lto_finish_out): Don't declare.
1889 2013-11-18  Jeff Law  <law@redhat.com>
1891         * tree-ssa-threadupdate.c (redirection_data): Record two
1892         duplicated blocks instead of just one.
1893         (local_info): Explain why we don't create a template for the
1894         second duplicated block in a thread path.
1895         (create_block_for_threading): Accept argument indicating array
1896         index into redirection_data to store its result.
1897         (lookup_redirection_data): Initialize both duplicate blocks.
1898         (ssa_create_duplicates): If a jump threading path needs multiple
1899         blocks duplicated, then duplicate them.
1900         (ssa_fix_duplicate_block_edges): Corresponding changes.
1901         (ssa_fixup_template_block, thread_single_edge):  Likewise.
1903 2013-11-18  Marek Polacek  <polacek@redhat.com>
1905         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
1907 2013-11-18  Andrew Pinski <apinski@cavium.com>
1908             Steve Ellcey  <sellcey@mips.com>
1910         PR target/56552
1911         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
1912         type restriction from equality_operator on conditonal move.
1913         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
1914         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
1916 2013-11-18  Jeff Law  <law@redhat.com>
1918         * tree-ssa-threadupdate.c: Fix file block comment.
1919         Fix minor indention issue.
1921 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
1923         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
1924         ix86_address_subreg_operand.  Move subreg checks to
1925         ix86_validate_address_register.  Move address override check to
1926         ix86_legitimate_address_p.
1927         (ix86_validate_address_register): New function.
1928         (ix86_legitimate_address_p): Call ix86_validate_address_register
1929         to validate base and index registers.  Add address override check
1930         from ix86_decompose_address.
1931         (ix86_decompose_address): Remove.
1933 2013-11-18  Richard Biener  <rguenther@suse.de>
1935         PR tree-optimization/59125
1936         PR tree-optimization/54570
1937         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
1938         is not complete do not treat component-references with offset zero
1939         but different fields as equal.
1940         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
1941         (compute_object_sizes): Apply TLC.  Propagate the constant
1942         results into all uses and fold their stmts.
1943         * passes.def (pass_all_optimizations): Move pass_object_sizes
1944         after the first pass_forwprop and before pass_fre.
1946 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1948         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
1949         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
1950         (tree_ctz): Remove cast to unsigned type.
1951         * builtins.c (fold_builtin_memory_op): Likewise.
1952         * dwarf2out.c (descr_info_loc): Likewise.
1953         * godump.c (go_output_typedef): Likewise.
1954         * omp-low.c (expand_omp_simd): Likewise.
1955         * stor-layout.c (excess_unit_span): Likewise.
1956         * tree-object-size.c (addr_object_size): Likewise.
1957         * tree-sra.c (analyze_all_variable_accesses): Likewise.
1958         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
1959         (simplify_rotate): Likewise.
1960         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
1961         (handle_pointer_plus): Likewise.
1962         * tree-switch-conversion.c (check_range): Likewise.
1963         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
1964         * tsan.c (instrument_builtin_call): Likewise.
1965         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
1966         * trans-mem.c (tm_log_add): Likewise.
1967         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
1968         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
1969         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
1970         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
1972 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1974         * tree.h (host_integerp, tree_low_cst): Delete.
1975         * tree.c (host_integerp, tree_low_cst): Delete.
1977 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1979         * expr.h: Update comments to refer to tree_to_[su]hwi rather
1980         than tree_low_cst.
1981         * fold-const.c (fold_binary_loc): Likewise.
1982         * expr.c (store_constructor): Use tree_to_uhwi rather than
1983         tree_low_cst.
1984         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
1985         * stmt.c (emit_case_dispatch_table): Likewise.
1986         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
1988 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1990         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
1991         config/aarch64/aarch64.c, config/alpha/predicates.md,
1992         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
1993         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
1994         config/mep/mep-pragma.c, config/mips/mips.c,
1995         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
1996         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
1997         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
1998         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
1999         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
2000         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
2001         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
2002         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
2003         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
2004         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
2006 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2008         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
2009         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
2010         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
2011         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
2012         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
2013         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
2014         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
2015         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
2016         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
2017         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
2018         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
2020 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2022         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
2023         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
2025 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2027         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
2028         than host_integerp.
2030 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2032         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
2033         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
2034         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
2035         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
2036         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
2037         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
2038         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
2039         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
2040         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
2041         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
2042         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
2043         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
2044         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
2045         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
2046         tree_fits_uhwi_p throughout.
2048 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2050         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
2051         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
2052         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
2053         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
2054         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
2055         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
2056         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
2057         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
2058         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
2059         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
2060         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
2061         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
2062         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
2063         throughout.
2065 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2067         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
2068         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
2070 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
2072         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
2073         flag if it kills its address, not its post-increment.
2075 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
2077         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2078         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2079         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2080         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2081         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2082         (gimple_call_with_bounds_p): New.
2083         (gimple_call_set_with_bounds): New.
2084         (gimple_call_num_nobnd_args): Remove.
2085         (gimple_call_nobnd_arg): Remove.
2086         * tree.h (CALL_WITH_BOUNDS_P): New.
2087         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2089 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
2091         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
2092         (symtab_node_name): Rename to symtab_node::name.
2093         (cgraph_node_asm_name): Remove.
2094         (varpool_node_asm_name): Remove.
2095         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
2096         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
2097         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
2098         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
2099         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
2101 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2103         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
2104         * config/arm/arm.c (arm_cortex_a53_tune): New.
2105         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
2107 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2109         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
2110         (case ${target}): Add bdver4.
2111         * config/i386/bdver3.md: Add bdver4.
2112         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2113         -march=native recognize bdver4 processors.
2114         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2115         bdver4 def_and_undef
2116         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
2117         (m_BDVER4): New definition.
2118         (m_AMD_MULTIPLE): Includes m_BDVER4.
2119         (processor_target_table): Add bdver4 entry.
2120         (static const char *const cpu_names): Add bdver4 entry.
2121         (software_prefetching_beneficial_p): Add bdver3.
2122         (ix86_option_override_internal): Add bdver4 instruction sets.
2123         (ix86_issue_rate): Add bdver4.
2124         (ix86_adjust_cost): Add bdver4.
2125         (ia32_multipass_dfa_lookahead): Add bdver4.
2126         (enum processor_model): Add M_AMDFAM15H_BDVER4.
2127         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
2128         (has_dispatch): Add bdver4.
2129         * config/i386/i386.h (TARGET_BDVER4): New definition.
2130         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
2131         (enum processor_type): Add PROCESSOR_BDVER4.
2132         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
2133         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
2134         * doc/extend.texi: Add details about bdver4.
2135         * doc/invoke.texi: Add details about bdver4. Add
2136         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
2138 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2140         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
2141         sdmode_stack_slot also in little-endian mode.
2143 2013-11-17  Jan Hubicka  <jh@suse.cz>
2145         * doc/md.texi (setmem, movstr): Update documentation.
2146         * builtins.c (determine_block_size): New function.
2147         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
2148         (expand_builtin_memset_args): Use it and pass it to
2149         set_storage_via_setmem.
2150         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
2151         parameters; update call to expander.
2152         (emit_block_move_hints): Add min_size/max_size parameters.
2153         (clear_storage_hints): Likewise.
2154         (set_storage_via_setmem): Likewise.
2155         (clear_storage): Update.
2156         * expr.h (emit_block_move_hints, clear_storage_hints,
2157         set_storage_via_setmem): Update prototypes.
2158         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
2159         (ix86_expand_movmem, ix86_expand_setmem): Remove.
2160         (ix86_expand_movmem, ix86_expand_setmem): Remove.
2161         * i386.md (movmem, setmem): Pass parameters.
2163 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
2165         PR target/59153
2166         * config/i386/i386.c (ix86_address_subreg_operand): Do not
2167         reject non-integer subregs.
2168         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
2169         Move check for invalid x32 constant addresses ...
2170         (ix86_legitimate_address_p): ... here.
2172 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2174         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
2175         parameter and use it in REG_FRAME_RELATED_EXPR note.
2176         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
2177         parameter.
2178         (rs6000_emit_prologue): Likewise, but for little endian VSX
2179         stores, pass the source register of the store instead.
2181 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
2183         * gimple.h: Reorder prototypes to match .c declaration order, and
2184         remove protyotypes for functions not in gimple.c.
2185         (LABEL): Move to tree-into-ssa.c.
2186         * gimple.c: Remove unused prototypes.
2187         (get_base_address): Move to tree.c.
2188         * tree.c (get_base_address): Relocate from gimple.c.
2189         * builtins.h (validate_gimple_arglist): Add prototype.
2190         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
2191         * cfgexpand.h: New File.
2192         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
2193         * tree.h (build_addr): Move to tree-nested.h.
2194         * tree-nested.h: New File.
2195         (build_addr, lower_nested_functions, insert_field_into_struct): Add
2196         prototypes.
2197         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
2198         * ipa-inline-analysis.c: Include cfgexpand.h.
2199         * cgraphunit.c: Include tree-nested.h.
2200         * omp-low.c: Likewise.
2201         * tree-parloops.c: Likewise.
2202         * gimple-low.h: Likewise.
2203         * tree-profile.h: Likewise.
2204         * expr.c: Include cfgexpand.h.
2205         * tree-affine.c: Likewise.
2206         * tree-ssa.c: Likewise.
2207         * tree-ssa-loop-im.c: Include trans-mem.h.
2208         * tree-ssa-tail-merge.c: Likewise.
2209         * value-prof.c: Include builtins.h and tree-nested.h.
2210         * tree-into-ssa.c (LABEL): Define here.
2212 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
2214         * config/arc/arc.c (arc_predicate_delay_insns): New function.
2215         (pass_data_arc_predicate_delay_insns): New pass_data instance.
2216         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
2217         (make_pass_arc_predicate_delay_insns): New function.
2218         (arc_init): Register pass_arc_predicate_delay_insns if
2219         flag_delayed_branch is active.
2221 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
2223         * config/arc/constraints.md (Rcq): Simplify register number test.
2225 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
2227         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
2229 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2231         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
2232         is null.
2234 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
2236         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
2237         * gimple-pretty-print.c (dump_omp_for): Add case for
2238         GF_OMP_FOR_KIND_CILKSIMD.
2239         * gimple.h (enum gf_mask): Restructure entries to add
2240         GF_OMP_FOR_KIND_CILKSIMD.
2241         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
2242         (gimplify_omp_for): Handle CILK_SIMD.
2243         (gimplify_expr): Add ccase for CILK_SIMD.
2244         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
2245         (build_outer_var_ref): Same.
2246         (check_omp_nesting_restrictions): Same.
2247         (lower_rec_input_clauses): Same.
2248         (lower_lastprivate_clauses): Same.
2249         (expand_omp_for): Same.
2250         (execute_expand_omp): Check flag_enable_cilkplus.
2251         (execute_lower_omp): Same.
2252         (diagnose_sb_0): Handle CILK_SIMD.
2253         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
2254         (setjmp_or_longjmp_p): New.
2255         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
2256         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
2257         * tree.def: Add tree code for CILK_SIMD.
2259 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2261         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
2262         Remove.
2263         (altivec_vperm_<mode>): Revert earlier little endian change.
2264         (*altivec_vperm_<mode>_internal): Remove.
2265         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
2266         (*altivec_vperm_<mode>_uns_internal): Remove.
2267         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
2269 2013-11-15  Jeff Law  <law@redhat.com>
2271         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
2272         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
2273         * gimple-ssa-isolate-paths.c
2274         (find_implicit_erroneous_behaviour): Corresponding changes.
2275         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
2276         (find_explicit_erroneous_behaviour): Likewise.
2278 2013-11-15  Jeff Law  <law@redhat.com>
2280         * ifcvt.c (find_cond_trap): Properly handle case where
2281         trap_bb == else_bb.
2283 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
2285         * configure: Regenerate.
2287 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
2289         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
2290         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
2291         where it is incorrect or missing.
2293 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
2295         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
2296         host_integerp test.
2297         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
2298         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
2299         constant.
2300         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
2301         pair with a TREE_CODE test and TREE_INT_CST_LOW.
2302         * tree-vect-generic.c (expand_vector_divmod): Likewise.
2304 2013-11-15  Richard Biener  <rguenther@suse.de>
2306         PR tree-optimization/50262
2307         * tree-ssa-alias.h (struct pt_solution): Split
2308         vars_contains_global into vars_contains_nonlocal,
2309         vars_contains_escaped and vars_contains_escaped_heap.
2310         * tree-ssa-structalias.c (label_visit): Expand comment.
2311         (handle_lhs_call): Adjust comment.
2312         (set_uids_in_ptset): Set the new flags appropriately.
2313         (pt_solution_set): Adjust.
2314         (pt_solution_set_var): Likewise.
2315         (pt_solution_ior_into): Likewise.
2316         (pt_solution_includes_global): Likewise.
2317         (pt_solutions_intersect_1): Optimize escaped handling.
2318         (compute_points_to_sets): Remove heap variable globalization.
2319         (ipa_escaped_pt): Adjust initializer.
2320         (pass_data_ipa_pta): Do not run TODO_update_ssa.
2321         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
2322         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
2324 2013-11-15  Richard Biener  <rguenther@suse.de>
2326         * tree-loop-distribution.c (tree_loop_distribution): Make sure
2327         to distribute all stores.
2329 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2331         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
2333 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
2335         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
2336         * configure.ac: Determine target_header_dir earlier.
2337         (--with-glibc-version): New configure option.
2338         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
2339         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
2340         * configure: Regenerate.
2341         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
2342         native toolchains for default.
2343         (--with-glibc-version): Document.
2345 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
2347         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
2349 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
2351         * lto-streamer-in.c (input function): Call cgraph_create_node if
2352         cgraph_get_node failed.
2354 2013-11-14   Olivier Hainque  <hainque@adacore.com>
2356         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
2357         defer allocation of DECL_IGNORED_P variables at toplevel unless really
2358         small.  Factorize size threshold computation from the existing one.
2359         (expand_used_vars): Refine comment.
2361 2013-11-14  Cong Hou  <congh@google.com>
2363         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
2364         address field as it can be obtained from dr.  Rename the struct.
2365         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
2366         steps of data references during sort.
2367         (vect_prune_runtime_alias_test_list): Adjust with the change to
2368         struct dr_with_seg_len.
2369         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2370         Adjust with the change to struct dr_with_seg_len.
2372 2013-11-14  Jeff Law  <law@redhat.com>
2374         PR middle-end/59127
2375         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
2376         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
2377         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
2378         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
2379         edges, then ignore it.  If the statement exhibiting erroneous
2380         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
2381         then we can not optimize.
2382         (find_explicit_erroneous_behaviour): Likewise.
2384 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
2386         * gimplify-me.h:  New file.  Add prototypes.
2387         * gimplify.h: Don't include gimple.h.
2388         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
2389         Relocate from gimple.h.
2390         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
2391         is_gimple_sizepos): Move to gimplify.h.
2392         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
2393         (enum gsi_iterator_update): Move to gimple-iterator.h.
2394         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
2395         * gimplify-me.c: New File.
2396         (force_gimple_operand_1, force_gimple_operand,
2397         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2398         gimple_regimplify_operands): Relocate from gimplify.c.
2399         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
2400         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2401         gimple_regimplify_operands): Move to gimplify-me.c.
2402         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
2403         from gimple.h.
2404         * Makefile.in (OBJS): Add gimplify-me.o
2405         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
2406         required.
2407         * cfgloopmanip.c: Likewise.
2408         * cgraphunit.c: Likewise.
2409         * cilk-common.c: Likewise.
2410         * fold-const.c: Likewise.
2411         * function.c: Likewise.
2412         * gimple-expr.c: Likewise.
2413         * gimple-fold.c: Likewise.
2414         * gimple-ssa-strength-reduction.c: Likewise.
2415         * gimple.c: Likewise.
2416         * graphite-clast-to-gimple.c: Likewise.
2417         * graphite-sese-to-poly.c: Likewise.
2418         * ipa-prop.c: Likewise.
2419         * ipa-split.c: Likewise.
2420         * ipa.c: Likewise.
2421         * langhooks.c: Likewise.
2422         * omp-low.c: Likewise.
2423         * sese.c: Likewise.
2424         * stor-layout.c: Likewise.
2425         * targhooks.c: Likewise.
2426         * trans-mem.c: Likewise.
2427         * tree-affine.c: Likewise.
2428         * tree-cfg.c: Likewise.
2429         * tree-cfgcleanup.c: Likewise.
2430         * tree-complex.c: Likewise.
2431         * tree-if-conv.c: Likewise.
2432         * tree-inline.c: Likewise.
2433         * tree-loop-distribution.c: Likewise.
2434         * tree-nested.c: Likewise.
2435         * tree-parloops.c: Likewise.
2436         * tree-predcom.c: Likewise.
2437         * tree-profile.c: Likewise.
2438         * tree-scalar-evolution.c: Likewise.
2439         * tree-sra.c: Likewise.
2440         * tree-ssa-address.c: Likewise.
2441         * tree-ssa-ccp.c: Likewise.
2442         * tree-ssa-dce.c: Likewise.
2443         * tree-ssa-forwprop.c: Likewise.
2444         * tree-ssa-ifcombine.c: Likewise.
2445         * tree-ssa-loop-im.c: Likewise.
2446         * tree-ssa-loop-ivopts.c: Likewise.
2447         * tree-ssa-loop-manip.c: Likewise.
2448         * tree-ssa-loop-niter.c: Likewise.
2449         * tree-ssa-loop-prefetch.c: Likewise.
2450         * tree-ssa-loop-unswitch.c: Likewise.
2451         * tree-ssa-math-opts.c: Likewise.
2452         * tree-ssa-phiopt.c: Likewise.
2453         * tree-ssa-phiprop.c: Likewise.
2454         * tree-ssa-pre.c: Likewise.
2455         * tree-ssa-propagate.c: Likewise.
2456         * tree-ssa-reassoc.c: Likewise.
2457         * tree-ssa-sccvn.c: Likewise.
2458         * tree-ssa-strlen.c: Likewise.
2459         * tree-ssa.c: Likewise.
2460         * tree-switch-conversion.c: Likewise.
2461         * tree-tailcall.c: Likewise.
2462         * tree-vect-data-refs.c: Likewise.
2463         * tree-vect-generic.c: Likewise.
2464         * tree-vect-loop-manip.c: Likewise.
2465         * tree-vect-loop.c: Likewise.
2466         * tree-vect-patterns.c: Likewise.
2467         * tree-vect-stmts.c: Likewise.
2468         * tree.c: Likewise.
2469         * tsan.c: Likewise.
2470         * value-prof.c: Likewise.
2471         * config/aarch64/aarch64.c: Likewise.
2472         * config/alpha/alpha.c: Likewise.
2473         * config/darwin.c: Likewise.
2474         * config/i386/i386.c: Likewise.
2475         * config/ia64/ia64.c: Likewise.
2476         * config/mep/mep.c: Likewise.
2477         * config/mips/mips.c: Likewise.
2478         * config/rs6000/rs6000.c: Likewise.
2479         * config/s390/s390.c: Likewise.
2480         * config/sh/sh.c: Likewise.
2481         * config/sparc/sparc.c: Likewise.
2482         * config/spu/spu.c: Likewise.
2483         * config/stormy16/stormy16.c: Likewise.
2484         * config/tilegx/tilegx.c: Likewise.
2485         * config/tilepro/tilepro.c: Likewise.
2486         * config/xtensa/xtensa.c: Likewise.
2488 2013-11-14  Diego Novillo  <dnovillo@google.com>
2490         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
2492 2013-11-14  Diego Novillo  <dnovillo@google.com>
2494         * tree.h: Include fold-const.h.
2495         (aggregate_value_p): Moved to function.h.
2496         (alloca_call_p): Moved to calls.h.
2497         (allocate_struct_function): Moved to function.h.
2498         (apply_tm_attr): Moved to attribs.h.
2499         (array_at_struct_end_p): Moved to expr.h.
2500         (array_ref_element_size): Moved to tree-dfa.h.
2501         (array_ref_low_bound): Moved to tree-dfa.h.
2502         (array_ref_up_bound): Moved to tree.h.
2503         (assemble_alias): Moved to cgraph.h.
2504         (bit_from_pos): Moved to stor-layout.h.
2505         (build_addr): Moved to tree-nested.h.
2506         (build_duplicate_type): Moved to tree-inline.h.
2507         (build_fold_addr_expr): Moved to fold-const.h.
2508         (build_fold_addr_expr_with_type): Moved to fold-const.h.
2509         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
2510         (build_fold_indirect_ref): Moved to fold-const.h.
2511         (build_fold_indirect_ref_loc): Moved to fold-const.h.
2512         (build_personality_function): Moved to tree.h.
2513         (build_range_check): Moved to fold-const.h.
2514         (build_simple_mem_ref): Moved to fold-const.h.
2515         (build_simple_mem_ref_loc): Moved to fold-const.h.
2516         (build_tm_abort_call): Moved to trans-mem.h.
2517         (byte_from_pos): Moved to stor-layout.h.
2518         (call_expr_flags): Moved to calls.h.
2519         (can_move_by_pieces): Moved to expr.h.
2520         (categorize_ctor_elements): Moved to expr.h.
2521         (change_decl_assembler_name): Moved to gcc-symtab.h.
2522         (combine_comparisons): Moved to fold-const.h.
2523         (complete_ctor_at_level_p): Moved to tree.h.
2524         (component_ref_field_offset): Moved to tree-dfa.h.
2525         (compute_builtin_object_size): Moved to tree-object-size.h.
2526         (compute_record_mode): Moved to stor-layout.h.
2527         (constant_boolean_node): Moved to fold-const.h.
2528         (constructor_static_from_elts_p): Moved to varasm.h.
2529         (cxx11_attribute_p): Moved to attribs.h.
2530         (debug_body): Moved to print-tree.h.
2531         (debug_find_tree): Moved to tree-inline.h.
2532         (debug_fold_checksum): Moved to fold-const.h.
2533         (debug_head): Moved to print-tree.h.
2534         (debug_head): Moved to print-tree.h.
2535         (debug_raw): Moved to print-tree.h.
2536         (debug_tree): Moved to print-tree.h.
2537         (debug_vec_tree): Moved to print-tree.h.
2538         (debug_verbose): Moved to print-tree.h.
2539         (debug_verbose): Moved to print-tree.h.
2540         (decl_attributes): Moved to attribs.h.
2541         (decl_binds_to_current_def_p): Moved to varasm.h.
2542         (decl_default_tls_model): Moved to varasm.h.
2543         (decl_replaceable_p): Moved to varasm.h.
2544         (div_if_zero_remainder): Moved to fold-const.h.
2545         (double_int mem_ref_offset): Moved to fold-const.h.
2546         (dump_addr): Moved to print-tree.h.
2547         (element_precision): Moved to machmode.h.
2548         (expand_dummy_function_end): Moved to function.h.
2549         (expand_function_end): Moved to function.h.
2550         (expand_function_start): Moved to function.h.
2551         (expand_label): Moved to stmt.h.
2552         (expr_first): Moved to tree-iterator.h.
2553         (expr_last): Moved to tree-iterator.h.
2554         (finalize_size_functions): Moved to stor-layout.h.
2555         (finish_builtin_struct): Moved to stor-layout.h.
2556         (finish_record_layout): Moved to stor-layout.h.
2557         (fixup_signed_type): Moved to stor-layout.h.
2558         (fixup_unsigned_type): Moved to stor-layout.h.
2559         (flags_from_decl_or_type): Moved to calls.h.
2560         (fold): Moved to fold-const.h.
2561         (fold_abs_const): Moved to fold-const.h.
2562         (fold_binary): Moved to fold-const.h.
2563         (fold_binary_loc): Moved to fold-const.h.
2564         (fold_binary_to_constant): Moved to fold-const.h.
2565         (fold_build1): Moved to fold-const.h.
2566         (fold_build1_initializer_loc): Moved to fold-const.h.
2567         (fold_build1_loc): Moved to fold-const.h.
2568         (fold_build1_stat_loc): Moved to fold-const.h.
2569         (fold_build2): Moved to fold-const.h.
2570         (fold_build2_initializer_loc): Moved to fold-const.h.
2571         (fold_build2_loc): Moved to fold-const.h.
2572         (fold_build2_stat_loc): Moved to fold-const.h.
2573         (fold_build3): Moved to fold-const.h.
2574         (fold_build3_loc): Moved to fold-const.h.
2575         (fold_build3_stat_loc): Moved to fold-const.h.
2576         (fold_build_call_array): Moved to fold-const.h.
2577         (fold_build_call_array_initializer): Moved to fold-const.h.
2578         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
2579         (fold_build_call_array_loc): Moved to fold-const.h.
2580         (fold_build_cleanup_point_expr): Moved to fold-const.h.
2581         (fold_convert): Moved to fold-const.h.
2582         (fold_convert_loc): Moved to fold-const.h.
2583         (fold_convertible_p): Moved to fold-const.h.
2584         (fold_defer_overflow_warnings): Moved to fold-const.h.
2585         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
2586         (fold_fma): Moved to fold-const.h.
2587         (fold_ignored_result): Moved to fold-const.h.
2588         (fold_indirect_ref): Moved to fold-const.h.
2589         (fold_indirect_ref_1): Moved to fold-const.h.
2590         (fold_indirect_ref_loc): Moved to fold-const.h.
2591         (fold_read_from_constant_string): Moved to fold-const.h.
2592         (fold_real_zero_addition_p): Moved to fold-const.h.
2593         (fold_single_bit_test): Moved to fold-const.h.
2594         (fold_strip_sign_ops): Moved to fold-const.h.
2595         (fold_ternary): Moved to fold-const.h.
2596         (fold_ternary_loc): Moved to fold-const.h.
2597         (fold_unary): Moved to tree-data-ref.h.
2598         (fold_unary_ignore_overflow): Moved to fold-const.h.
2599         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
2600         (fold_unary_loc): Moved to fold-const.h.
2601         (fold_unary_to_constant): Moved to fold-const.h.
2602         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
2603         (fold_undefer_overflow_warnings): Moved to fold-const.h.
2604         (folding_initializer): Moved to fold-const.h.
2605         (free_temp_slots): Moved to function.h.
2606         (generate_setjmp_warnings): Moved to function.h.
2607         (get_attribute_name): Moved to attribs.h.
2608         (get_identifier): Moved to stringpool.h.
2609         (get_identifier_with_length): Moved to stringpool.h.
2610         (get_inner_reference): Moved to tree.h.
2611         (gimple_alloca_call_p): Moved to calls.h.
2612         (gimplify_parameters): Moved to function.h.
2613         (highest_pow2_factor): Moved to expr.h.
2614         (indent_to): Moved to print-tree.h.
2615         (init_attributes): Moved to attribs.h.
2616         (init_dummy_function_start): Moved to function.h.
2617         (init_function_start): Moved to function.h.
2618         (init_inline_once): Moved to tree-inline.h.
2619         (init_object_sizes): Moved to tree-object-size.h.
2620         (init_temp_slots): Moved to function.h.
2621         (init_tree_optimization_optabs): Moved to optabs.h.
2622         (initialize_sizetypes): Moved to stor-layout.h.
2623         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
2624         (initializer_constant_valid_p): Moved to varasm.h.
2625         (int_const_binop): Moved to fold-const.h.
2626         (internal_reference_types): Moved to stor-layout.h.
2627         (invert_tree_comparison): Moved to fold-const.h.
2628         (invert_truthvalue): Moved to fold-const.h.
2629         (invert_truthvalue_loc): Moved to fold-const.h.
2630         (is_tm_ending_fndecl): Moved to trans-mem.h.
2631         (is_tm_may_cancel_outer): Moved to trans-mem.h.
2632         (is_tm_pure): Moved to trans-mem.h.
2633         (is_tm_safe): Moved to trans-mem.h.
2634         (layout_decl): Moved to stor-layout.h.
2635         (layout_type): Moved to stor-layout.h.
2636         (lookup_attribute_spec): Moved to attribs.h.
2637         (make_accum_type): Moved to stor-layout.h.
2638         (make_decl_one_only): Moved to varasm.h.
2639         (make_decl_rtl): Moved to tree.h.
2640         (make_decl_rtl_for_debug): Moved to varasm.h.
2641         (make_fract_type): Moved to stor-layout.h.
2642         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
2643         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
2644         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
2645         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
2646         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
2647         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
2648         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
2649         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
2650         (make_range): Moved to fold-const.h.
2651         (make_range_step): Moved to fold-const.h.
2652         (make_sat_signed_accum_type): Moved to stor-layout.h.
2653         (make_sat_signed_fract_type): Moved to stor-layout.h.
2654         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
2655         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
2656         (make_signed_accum_type): Moved to stor-layout.h.
2657         (make_signed_fract_type): Moved to stor-layout.h.
2658         (make_signed_type): Moved to stor-layout.h.
2659         (make_unsigned_accum_type): Moved to stor-layout.h.
2660         (make_unsigned_fract_type): Moved to stor-layout.h.
2661         (make_unsigned_type): Moved to stor-layout.h.
2662         (mark_decl_referenced): Moved to varasm.h.
2663         (mark_referenced): Moved to varasm.h.
2664         (may_negate_without_overflow_p): Moved to fold-const.h.
2665         (maybe_get_identifier): Moved to stringpool.h.
2666         (merge_ranges): Moved to fold-const.h.
2667         (merge_weak): Moved to varasm.h.
2668         (mode_for_size_tree): Moved to stor-layout.h.
2669         (multiple_of_p): Moved to fold-const.h.
2670         (must_pass_in_stack_var_size): Moved to calls.h.
2671         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
2672         (native_encode_expr): Moved to fold-const.h.
2673         (native_interpret_expr): Moved to fold-const.h.
2674         (non_lvalue): Moved to fold-const.h.
2675         (non_lvalue_loc): Moved to fold-const.h.
2676         (normalize_offset): Moved to stor-layout.h.
2677         (normalize_rli): Moved to stor-layout.h.
2678         (notice_global_symbol): Moved to varasm.h.
2679         (omit_one_operand): Moved to fold-const.h.
2680         (omit_one_operand_loc): Moved to fold-const.h.
2681         (omit_two_operands): Moved to fold-const.h.
2682         (omit_two_operands_loc): Moved to fold-const.h.
2683         (operand_equal_p): Moved to tree-data-ref.h.
2684         (parse_input_constraint): Moved to stmt.h.
2685         (parse_output_constraint): Moved to stmt.h.
2686         (place_field): Moved to stor-layout.h.
2687         (pop_function_context): Moved to function.h.
2688         (pop_temp_slots): Moved to function.h.
2689         (pos_from_bit): Moved to stor-layout.h.
2690         (preserve_temp_slots): Moved to function.h.
2691         (print_node): Moved to print-tree.h.
2692         (print_node_brief): Moved to print-tree.h.
2693         (print_rtl): Moved to rtl.h.
2694         (process_pending_assemble_externals): Moved to varasm.h.
2695         (ptr_difference_const): Moved to fold-const.h.
2696         (push_function_context): Moved to function.h.
2697         (push_struct_function): Moved to function.h.
2698         (push_temp_slots): Moved to function.h.
2699         (record_tm_replacement): Moved to trans-mem.h.
2700         (relayout_decl): Moved to stor-layout.h.
2701         (resolve_asm_operand_names): Moved to stmt.h.
2702         (resolve_unique_section): Moved to varasm.h.
2703         (rli_size_so_far): Moved to stor-layout.h.
2704         (rli_size_unit_so_far): Moved to stor-layout.h.
2705         (round_down): Moved to fold-const.h.
2706         (round_down_loc): Moved to fold-const.h.
2707         (round_up): Moved to fold-const.h.
2708         (round_up_loc): Moved to fold-const.h.
2709         (set_decl_incoming_rtl): Moved to emit-rtl.h.
2710         (set_decl_rtl): Moved to tree.h.
2711         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
2712         (set_user_assembler_name): Moved to varasm.h.
2713         (setjmp_call_p): Moved to calls.h.
2714         (size_binop): Moved to fold-const.h.
2715         (size_binop_loc): Moved to fold-const.h.
2716         (size_diffop): Moved to fold-const.h.
2717         (size_diffop_loc): Moved to fold-const.h.
2718         (size_int_kind): Moved to fold-const.h.
2719         (stack_protect_epilogue): Moved to function.h.
2720         (start_record_layout): Moved to stor-layout.h.
2721         (supports_one_only): Moved to varasm.h.
2722         (swap_tree_comparison): Moved to fold-const.h.
2723         (tm_malloc_replacement): Moved to trans-mem.h.
2724         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
2725         (tree build_invariant_address): Moved to fold-const.h.
2726         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
2727         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
2728         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
2729         (tree_expr_nonnegative_p): Moved to fold-const.h.
2730         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
2731         (tree_output_constant_def): Moved to varasm.h.
2732         (tree_overlaps_hard_reg_set): Moved to stmt.h.
2733         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
2734         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
2735         (tree_swap_operands_p): Moved to fold-const.h.
2736         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
2737         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
2738         (update_alignment_for_field): Moved to stor-layout.h.
2739         (use_register_for_decl): Moved to function.h.
2740         (variable_size): Moved to rtl.h.
2741         (vector_type_mode): Moved to stor-layout.h.
2742         * cgraph.h: Corresponding changes.
2743         * emit-rtl.h: Corresponding changes.
2744         * expr.h: Corresponding changes.
2745         * function.h: Corresponding changes.
2746         * optabs.h: Corresponding changes.
2747         * trans-mem.h: Corresponding changes.
2748         Protect against multiple inclusion.
2749         * tree-inline.h: Corresponding changes.
2750         * tree-iterator.h: Corresponding changes.
2751         * tree-dfa.h: Include expr.h.
2752         * tree-ssanames.h: Include stringpool.h.
2753         * attribs.h: New file.
2754         * calls.h: New file.
2755         * fold-const.h: New file.
2756         * gcc-symtab.h: New file.
2757         * print-rtl.h: New file.
2758         * print-tree.h: New file.
2759         * stmt.h: New file.
2760         * stor-layout.h: New file.
2761         * strinpool.h: New file.
2762         * tree-nested.h: New file
2763         * tree-object-size.h: New file.
2764         * varasm.h: New file.
2766 2013-11-14  Diego Novillo  <dnovillo@google.com>
2768         * alias.c: Include varasm.h.
2769         Include expr.h.
2770         * asan.c: Include calls.h.
2771         Include stor-layout.h.
2772         Include varasm.h.
2773         * attribs.c: Include stringpool.h.
2774         Include attribs.h.
2775         Include stor-layout.h.
2776         * builtins.c: Include stringpool.h.
2777         Include stor-layout.h.
2778         Include calls.h.
2779         Include varasm.h.
2780         Include tree-object-size.h.
2781         * calls.c: Include stor-layout.h.
2782         Include varasm.h.
2783         Include stringpool.h.
2784         Include attribs.h.
2785         * cfgexpand.c: Include stringpool.h.
2786         Include varasm.h.
2787         Include stor-layout.h.
2788         Include stmt.h.
2789         Include print-tree.h.
2790         * cgraph.c: Include varasm.h.
2791         Include calls.h.
2792         Include print-tree.h.
2793         * cgraphclones.c: Include stringpool.h.
2794         Include function.h.
2795         Include emit-rtl.h.
2796         Move inclusion of rtl.h earlier in the file.
2797         * cgraphunit.c: Include varasm.h.
2798         Include stor-layout.h.
2799         Include stringpool.h.
2800         * cilk-common.c: Include stringpool.h.
2801         Include stor-layout.h.
2802         * combine.c: Include stor-layout.h.
2803         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
2804         Include stringpool.h.
2805         Include calls.h.
2806         * config/aarch64/aarch64.c: Include stringpool.h.
2807         Include stor-layout.h.
2808         Include calls.h.
2809         Include varasm.h.
2810         * config/alpha/alpha.c: Include stor-layout.h.
2811         Include calls.h.
2812         Include varasm.h.
2813         * config/arc/arc.c: Include varasm.h.
2814         Include stor-layout.h.
2815         Include stringpool.h.
2816         Include calls.h.
2817         * config/arm/arm.c: Include stringpool.h.
2818         Include stor-layout.h.
2819         Include calls.h.
2820         Include varasm.h.
2821         * config/avr/avr-c.c: Include stor-layout.h.
2822         * config/avr/avr-log.c: Include print-tree.h.
2823         * config/avr/avr.c: Include print-tree.h.
2824         Include calls.h.
2825         Include stor-layout.h.
2826         Include stringpool.h.
2827         * config/bfin/bfin.c: Include varasm.h.
2828         Include calls.h.
2829         * config/c6x/c6x.c: Include stor-layout.h.
2830         Include varasm.h.
2831         Include calls.h.
2832         Include stringpool.h.
2833         * config/cr16/cr16.c: Include stor-layout.h.
2834         Include calls.h.
2835         * config/cris/cris.c: Include varasm.h.
2836         Include stor-layout.h.
2837         Include calls.h.
2838         Include stmt.h.
2839         * config/darwin.c: Include stringpool.h.
2840         Include varasm.h.
2841         Include stor-layout.h.
2842         * config/epiphany/epiphany.c: Include stor-layout.h.
2843         Include varasm.h.
2844         Include calls.h.
2845         Include stringpool.h.
2846         * config/fr30/fr30.c: Include stor-layout.h.
2847         Include varasm.h.
2848         * config/frv/frv.c: Include varasm.h.
2849         Include stor-layout.h.
2850         Include stringpool.h.
2851         * config/h8300/h8300.c: Include stor-layout.h.
2852         Include varasm.h.
2853         Include calls.h.
2854         Include stringpool.h.
2855         * config/i386/i386.c: Include stringpool.h.
2856         Include attribs.h.
2857         Include calls.h.
2858         Include stor-layout.h.
2859         Include varasm.h.
2860         * config/i386/winnt-cxx.c: Include stringpool.h.
2861         Include attribs.h.
2862         * config/i386/winnt.c: Include stringpool.h.
2863         Include varasm.h.
2864         * config/ia64/ia64-c.c: Include stringpool.h.
2865         * config/ia64/ia64.c: Include stringpool.h.
2866         Include stor-layout.h.
2867         Include calls.h.
2868         Include varasm.h.
2869         * config/iq2000/iq2000.c: Include stor-layout.h.
2870         Include calls.h.
2871         Include varasm.h.
2872         * config/lm32/lm32.c: Include calls.h.
2873         * config/m32c/m32c.c: Include stor-layout.h.
2874         Include varasm.h.
2875         Include calls.h.
2876         * config/m32r/m32r.c: Include stor-layout.h.
2877         Include varasm.h.
2878         Include stringpool.h.
2879         Include calls.h.
2880         * config/m68k/m68k.c: Include calls.h.
2881         Include stor-layout.h.
2882         Include varasm.h.
2883         * config/mcore/mcore.c: Include stor-layout.h.
2884         Include varasm.h.
2885         Include stringpool.h.
2886         Include calls.h.
2887         * config/mep/mep.c: Include varasm.h.
2888         Include calls.h.
2889         Include stringpool.h.
2890         Include stor-layout.h.
2891         * config/microblaze/microblaze.c: Include varasm.h.
2892         Include stor-layout.h.
2893         Include calls.h.
2894         * config/mips/mips.c: Include varasm.h.
2895         Include stringpool.h.
2896         Include stor-layout.h.
2897         Include calls.h.
2898         * config/mmix/mmix.c: Include varasm.h.
2899         Include stor-layout.h.
2900         Include calls.h.
2901         * config/mn10300/mn10300.c: Include stor-layout.h.
2902         Include varasm.h.
2903         Include calls.h.
2904         * config/moxie/moxie.c: Include stor-layout.h.
2905         Include varasm.h.
2906         Include calls.h.
2907         * config/msp430/msp430.c: Include stor-layout.h.
2908         Include calls.h.
2909         * config/nds32/nds32.c: Include stor-layout.h.
2910         Include varasm.h.
2911         Include calls.h.
2912         * config/pa/pa.c: Include stor-layout.h.
2913         Include stringpool.h.
2914         Include varasm.h.
2915         Include calls.h.
2916         * config/pdp11/pdp11.c: Include stor-layout.h.
2917         Include varasm.h.
2918         Include calls.h.
2919         * config/picochip/picochip.c: Include calls.h.
2920         Include stor-layout.h.
2921         Include stringpool.h.
2922         Include varasm.h.
2923         * config/rl78/rl78.c: Include varasm.h.
2924         Include stor-layout.h.
2925         Include calls.h.
2926         * config/rs6000/rs6000-c.c: Include stor-layout.h.
2927         Include stringpool.h.
2928         * config/rs6000/rs6000.c: Include stringpool.h.
2929         Include stor-layout.h.
2930         Include calls.h.
2931         Include print-tree.h.
2932         Include varasm.h.
2933         * config/rx/rx.c: Include varasm.h.
2934         Include stor-layout.h.
2935         Include calls.h.
2936         * config/s390/s390.c: Include print-tree.h.
2937         Include stringpool.h.
2938         Include stor-layout.h.
2939         Include varasm.h.
2940         Include calls.h.
2941         * config/score/score.c: Include stringpool.h.
2942         Include calls.h.
2943         Include varasm.h.
2944         Include stor-layout.h.
2945         * config/sh/sh-c.c: Include stringpool.h.
2946         Include attribs.h.h.
2947         * config/sh/sh.c: Include stringpool.h.
2948         Include stor-layout.h.
2949         Include calls.h.
2950         Include varasm.h.
2951         * config/sol2-c.c: Include stringpool.h.
2952         Include attribs.h.
2953         * config/sol2-cxx.c: Include stringpool.h.
2954         * config/sol2.c: Include stringpool.h.
2955         Include varasm.h.
2956         * config/sparc/sparc.c: Include stringpool.h.
2957         Include stor-layout.h.
2958         Include calls.h.
2959         Include varasm.h.
2960         * config/spu/spu-c.c: Include stringpool.h.
2961         * config/spu/spu.c: Include stringpool.h.
2962         Include stor-layout.h.
2963         Include calls.h.
2964         Include varasm.h.
2965         * config/stormy16/stormy16.c: Include stringpool.h.
2966         Include stor-layout.h.
2967         Include varasm.h.
2968         Include calls.h.
2969         * config/tilegx/tilegx.c: Include stringpool.h.
2970         Include stor-layout.h.
2971         Include varasm.h.
2972         Include calls.h.
2973         * config/tilepro/tilepro.c: Include stringpool.h.
2974         Include stor-layout.h.
2975         Include varasm.h.
2976         Include calls.h.
2977         * config/v850/v850-c.c: Include stringpool.h.
2978         Include attribs.h.
2979         * config/v850/v850.c: Include stringpool.h.
2980         Include stor-layout.h.
2981         Include varasm.h.
2982         Include calls.h.
2983         * config/vax/vax.c: Include calls.h.
2984         Include varasm.h.
2985         * config/vms/vms.c: Include stringpool.h.
2986         * config/vxworks.c: Include stringpool.h.
2987         * config/xtensa/xtensa.c: Include stringpool.h.
2988         Include stor-layout.h.
2989         Include calls.h.
2990         Include varasm.h.
2991         * convert.c: Include stor-layout.h.
2992         * coverage.c: Include stringpool.h.
2993         Include stor-layout.h.
2994         * dbxout.c: Include varasm.h.
2995         Include stor-layout.h.
2996         * dojump.c: Include stor-layout.h.
2997         * dse.c: Include stor-layout.h.
2998         * dwarf2asm.c: Include stringpool.h.
2999         Include varasm.h.
3000         * dwarf2cfi.c: Include stor-layout.h.
3001         * dwarf2out.c: Include rtl.h.
3002         Include stringpool.h.
3003         Include stor-layout.h.
3004         Include varasm.h.
3005         Include function.h.
3006         Include emit-rtl.h.
3007         Move inclusion of rtl.h earlier in the file.
3008         * emit-rtl.c: Include varasm.h.
3009         * except.c: Include stringpool.h.
3010         Include stor-layout.h.
3011         * explow.c: Include stor-layout.h.
3012         * expmed.c: Include stor-layout.h.
3013         * expr.c: Include stringpool.h.
3014         Include stor-layout.h.
3015         Include attribs.h.
3016         Include varasm.h.
3017         * final.c: Include varasm.h.
3018         * fold-const.c: Include stor-layout.h.
3019         Include calls.h.
3020         Include tree-iterator.h.
3021         * function.c: Include stor-layout.h.
3022         Include varasm.h.
3023         Include stringpool.h.
3024         * genattrtab.c (write_header): Emit includes for varasm.h,
3025         stor-layout.h and calls.h.
3026         * genautomata.c (main): Likewise.
3027         * genemit.c: Likewise.
3028         * genopinit.c: Likewise.
3029         * genoutput.c (output_prologue): Likewise.
3030         * genpeep.c: Likewise.
3031         * genpreds.c (write_insn_preds_c): Likewise.
3032         * gengtype.c (open_base_files): Add stringpool.h.
3033         * gimple-expr.c: Include stringpool.h.
3034         Include stor-layout.h.
3035         * gimple-fold.c: Include stringpool.h.
3036         Include expr.h.
3037         Include stmt.h.
3038         Include stor-layout.h.
3039         * gimple-low.c: Include tree-nested.h.
3040         Include calls.h.
3041         * gimple-pretty-print.c: Include stringpool.h.
3042         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
3043         Include expr.h.
3044         * gimple-walk.c: Include stmt.h.
3045         * gimple.c: Include calls.h.
3046         Include stmt.h.
3047         Include stor-layout.h.
3048         * gimplify.c: Include stringpool.h.
3049         Include calls.h.
3050         Include varasm.h.
3051         Include stor-layout.h.
3052         Include stmt.h.
3053         Include print-tree.h.
3054         Include expr.h.
3055         * gimplify-me.c: Include stmt.h
3056         Include stor-layout.h
3057         * internal-fn.c: Include stor-layout.h.
3058         * ipa-devirt.c: Include print-tree.h.
3059         Include calls.h.
3060         * ipa-inline-analysis.c: Include stor-layout.h.
3061         Include stringpool.h.
3062         Include print-tree.h.
3063         * ipa-inline.c: Include trans-mem.h.
3064         Include calls.h.
3065         * ipa-prop.c: Include expr.h.
3066         Include stor-layout.h.
3067         Include print-tree.h.
3068         * ipa-pure-const.c: Include print-tree.h.
3069         Include calls.h.
3070         * ipa-reference.c: Include calls.h.
3071         * ipa-split.c: Include stringpool.h.
3072         Include expr.h.
3073         Include calls.h.
3074         * ipa.c: Include calls.h.
3075         Include stringpool.h.
3076         * langhooks.c: Include stringpool.h.
3077         Include attribs.h.
3078         * lto-cgraph.c: Include stringpool.h.
3079         * lto-streamer-in.c: Include stringpool.h.
3080         * lto-streamer-out.c: Include stor-layout.h.
3081         Include stringpool.h.
3082         * omp-low.c: Include stringpool.h.
3083         Include stor-layout.h.
3084         Include expr.h.
3085         * optabs.c: Include stor-layout.h.
3086         Include stringpool.h.
3087         Include varasm.h.
3088         * passes.c: Include varasm.h.
3089         * predict.c: Include calls.h.
3090         * print-rtl.c: Include print-tree.h.
3091         * print-tree.c: Include varasm.h.
3092         Include print-rtl.h.
3093         Include stor-layout.h.
3094         * realmpfr.c: Include stor-layout.h.
3095         * reg-stack.c: Include varasm.h.
3096         * sdbout.c: Include varasm.h.
3097         Include stor-layout.h.
3098         * simplify-rtx.c: Include varasm.h.
3099         * stmt.c: Include varasm.h.
3100         Include stor-layout.h.
3101         * stor-layout.c: Include stor-layout.h.
3102         Include stringpool.h.
3103         Include varasm.h.
3104         Include print-tree.h.
3105         * symtab.c: Include rtl.h.
3106         Include print-tree.h.
3107         Include varasm.h.
3108         Include function.h.
3109         Include emit-rtl.h.
3110         * targhooks.c: Include stor-layout.h.
3111         Include varasm.h.
3112         * toplev.c: Include varasm.h.
3113         Include tree-inline.h.
3114         * trans-mem.c: Include calls.h.
3115         Include function.h.
3116         Include rtl.h.
3117         Include emit-rtl.h.
3118         * tree-affine.c: Include expr.h.
3119         * tree-browser.c: Include print-tree.h.
3120         * tree-call-cdce.c: Include stor-layout.h.
3121         * tree-cfg.c: Include trans-mem.h.
3122         Include stor-layout.h.
3123         Include print-tree.h.
3124         * tree-complex.c: Include stor-layout.h.
3125         * tree-data-ref.c: Include expr.h.
3126         * tree-dfa.c: Include stor-layout.h.
3127         * tree-eh.c: Include expr.h.
3128         Include calls.h.
3129         * tree-emutls.c: Include stor-layout.h.
3130         Include varasm.h.
3131         * tree-if-conv.c: Include stor-layout.h.
3132         * tree-inline.c: Include stor-layout.h.
3133         Include calls.h.
3134         * tree-loop-distribution.c: Include stor-layout.h.
3135         * tree-nested.c: Include stringpool.h.
3136         Include stor-layout.h.
3137         * tree-object-size.c: Include tree-object-size.h.
3138         * tree-outof-ssa.c: Include stor-layout.h.
3139         * tree-parloops.c: Include stor-layout.h.
3140         Include tree-nested.h.
3141         * tree-pretty-print.c: Include stor-layout.h.
3142         Include expr.h.
3143         * tree-profile.c: Include varasm.h.
3144         Include tree-nested.h.
3145         * tree-scalar-evolution.c: Include expr.h.
3146         * tree-sra.c: Include stor-layout.h.
3147         * tree-ssa-address.c: Include stor-layout.h.
3148         * tree-ssa-ccp.c: Include stor-layout.h.
3149         * tree-ssa-dce.c: Include calls.h.
3150         * tree-ssa-dom.c: Include stor-layout.h.
3151         * tree-ssa-forwprop.c: Include stor-layout.h.
3152         * tree-ssa-ifcombine.c: Include stor-layout.h.
3153         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
3154         * tree-ssa-loop-niter.c: Include calls.h.
3155         Include expr.h.
3156         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
3157         * tree-ssa-math-opts.c: Include stor-layout.h.
3158         * tree-ssa-operands.c: Include stmt.h.
3159         Include print-tree.h.
3160         * tree-ssa-phiopt.c: Include stor-layout.h.
3161         * tree-ssa-reassoc.c: Include stor-layout.h.
3162         * tree-ssa-sccvn.c: Include stor-layout.h.
3163         * tree-ssa-sink.c: Include stor-layout.h.
3164         * tree-ssa-strlen.c: Include stor-layout.h.
3165         * tree-ssa-structalias.c: Include stor-layout.h.
3166         Include stmt.h.
3167         * tree-ssa-tail-merge.c: Include stor-layout.h.
3168         Include trans-mem.h.
3169         * tree-ssa-uncprop.c: Include stor-layout.h.
3170         * tree-ssa.c: Include stor-layout.h.
3171         * tree-ssanames.c: Include stor-layout.h.
3172         * tree-streamer-in.c: Include stringpool.h.
3173         * tree-streamer-out.c: Include stor-layout.h.
3174         * tree-switch-conversion.c: Include varasm.h.
3175         Include stor-layout.h.
3176         * tree-tailcall.c: Include stor-layout.h.
3177         * tree-vect-data-refs.c: Include stor-layout.h.
3178         * tree-vect-generic.c: Include stor-layout.h.
3179         * tree-vect-loop.c: Include stor-layout.h.
3180         * tree-vect-patterns.c: Include stor-layout.h.
3181         * tree-vect-slp.c: Include stor-layout.h.
3182         * tree-vect-stmts.c: Include stor-layout.h.
3183         * tree-vectorizer.c: Include stor-layout.h.
3184         * tree-vrp.c: Include stor-layout.h.
3185         Include calls.h.
3186         * tree.c: Include stor-layout.h.
3187         Include calls.h.
3188         Include attribs.h.
3189         Include varasm.h.
3190         * tsan.c: Include expr.h.
3191         * ubsan.c: Include stor-layout.h.
3192         Include stringpool.h.
3193         * value-prof.c: Include tree-nested.h.
3194         Include calls.h.
3195         * var-tracking.c: Include varasm.h.
3196         Include stor-layout.h.
3197         * varasm.c: Include stor-layout.h.
3198         Include stringpool.h.
3199         Include gcc-symtab.h.
3200         Include varasm.h.
3201         * varpool.c: Include varasm.h.
3202         * vmsdbgout.c: Include varasm.h.
3203         * xcoffout.c: Include varasm.h.
3205 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
3207         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
3208         use (.&-4) idiom.
3210 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3212         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
3214 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3215             Alan Modra  <amodra@gmail.com>
3217         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
3218         (RS6000_SAVE_TOC): Remove.
3219         (RS6000_TOC_SAVE_SLOT): New macro.
3220         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
3221         (rs6000_parm_start): Use it.
3222         (rs6000_function_arg_advance_1): Likewise.
3223         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
3224         (rs6000_emit_epilogue): Likewise.
3225         (rs6000_call_aix): Likewise.
3226         (rs6000_output_function_prologue): Do not save/restore r11
3227         around calling _mcount for ABI_ELFv2.
3229 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3230             Alan Modra  <amodra@gmail.com>
3232         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
3233         Add prototype.
3234         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
3235         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
3236         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
3237         (rs6000_function_parms_need_stack): Likewise.
3238         (rs6000_reg_parm_stack_space): Likewise.
3239         (rs6000_function_arg): Do not replace BLKmode by Pmode when
3240         returning a register argument.
3242 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3243             Michael Gschwind  <mkg@us.ibm.com>
3245         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
3246         (ALTIVEC_ARG_MAX_RETURN): Likewise.
3247         (FUNCTION_VALUE_REGNO_P): Use them.
3248         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
3249         (rs6000_return_in_msb): New function.
3250         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
3251         Handle aggregates of up to 16 bytes for ELFv2.
3252         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
3254 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3255             Michael Gschwind  <mkg@us.ibm.com>
3257         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3258         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3259         (rs6000_discover_homogeneous_aggregate): Likewise.
3260         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3261         (rs6000_function_arg_advance_1): Likewise.
3262         (rs6000_function_arg): Likewise.
3263         (rs6000_arg_partial_bytes): Likewise.
3264         (rs6000_psave_function_arg): Handle BLKmode arguments.
3266 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3267             Michael Gschwind  <mkg@us.ibm.com>
3269         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3270         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3271         (rs6000_discover_homogeneous_aggregate): Likewise.
3272         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3273         (rs6000_function_arg_advance_1): Likewise.
3274         (rs6000_function_arg): Likewise.
3275         (rs6000_arg_partial_bytes): Likewise.
3276         (rs6000_psave_function_arg): Handle BLKmode arguments.
3278 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3280         * config/rs6000/rs6000.c (machine_function): New member
3281         r2_setup_needed.
3282         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
3283         (rs6000_output_mi_thunk): Set r2_setup_needed.
3284         (rs6000_output_function_prologue): Output global entry point
3285         prologue and local entry point marker if needed for ABI_ELFv2.
3286         Output -mprofile-kernel code here.
3287         (output_function_profiler): Do not output -mprofile-kernel
3288         code here; moved to rs6000_output_function_prologue.
3289         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
3291         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
3292         (rs6000_output_function_entry): Likewise.
3293         (rs6000_assemble_integer): Likewise.
3294         (rs6000_elf_encode_section_info): Likewise.
3295         (rs6000_elf_declare_function_name): Do not create dot symbols
3296         or .opd section for ABI_ELFv2.
3298         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
3299         (rs6000_trampoline_init): Likewise.
3300         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
3302         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
3303         for function descriptors in ABI_ELFv2.
3305         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
3306         on ABI_AIX only, not ABI_ELFv2.
3307         ("*call_value_indirect_aix<mode>"): Likewise.
3308         ("*call_indirect_elfv2<mode>"): New pattern.
3309         ("*call_value_indirect_elfv2<mode>"): Likewise.
3311         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
3312         check for function descriptors in ABI_ELFv2.
3313         ("current_file_function_operand"): Likewise.
3315         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
3316         (toc): Undefine.
3317         (FUNC_NAME): Define ELFv2 variant.
3318         (JUMP_TARGET): Likewise.
3319         (FUNC_START): Likewise.
3320         (HIDDEN_FUNC): Likewise.
3321         (FUNC_END): Likeiwse.
3323 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3325         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
3326         and --with-abi=elfv2.
3327         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
3328         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
3329         (mabi=elfv2): Likewise.
3330         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
3331         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
3332         if !RS6000_BI_ARCH.
3333         (ELFv2_ABI_CHECK): New macro.
3334         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
3335         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
3336         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
3337         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
3338         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
3340         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
3341         (debug_stack_info): Likewise.
3342         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
3343         (rs6000_legitimize_tls_address): Likewise.
3344         (rs6000_conditional_register_usage): Likewise.
3345         (rs6000_emit_move): Likewise.
3346         (init_cumulative_args): Likewise.
3347         (rs6000_function_arg_advance_1): Likewise.
3348         (rs6000_function_arg): Likewise.
3349         (rs6000_arg_partial_bytes): Likewise.
3350         (rs6000_output_function_entry): Likewise.
3351         (rs6000_assemble_integer): Likewise.
3352         (rs6000_savres_strategy): Likewise.
3353         (rs6000_stack_info): Likewise.
3354         (rs6000_function_ok_for_sibcall): Likewise.
3355         (rs6000_emit_load_toc_table): Likewise.
3356         (rs6000_savres_routine_name): Likewise.
3357         (ptr_regno_for_savres): Likewise.
3358         (rs6000_emit_prologue): Likewise.
3359         (rs6000_emit_epilogue): Likewise.
3360         (rs6000_output_function_epilogue): Likewise.
3361         (output_profile_hook): Likewise.
3362         (output_function_profiler): Likewise.
3363         (rs6000_trampoline_size): Likewise.
3364         (rs6000_trampoline_init): Likewise.
3365         (rs6000_elf_output_toc_section_asm_op): Likewise.
3366         (rs6000_elf_encode_section_info): Likewise.
3367         (rs6000_elf_reloc_rw_mask): Likewise.
3368         (rs6000_elf_declare_function_name): Likewise.
3369         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
3370         except that rs6000_compat_align_parm is always assumed false.
3371         (rs6000_gimplify_va_arg): Likewise.
3372         (rs6000_call_aix): Update comment.
3373         (rs6000_sibcall_aix): Likewise.
3374         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
3375         Treat ABI_ELFv2 the same as ABI_AIX.
3376         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3377         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
3378         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3379         ("load_toc_aix_si"): Likewise.
3380         ("load_toc_aix_di"): Likewise.
3381         ("call"): Likewise.
3382         ("call_value"): Likewise.
3383         ("*call_local_aix<mode>"): Likewise.
3384         ("*call_value_local_aix<mode>"): Likewise.
3385         ("*call_nonlocal_aix<mode>"): Likewise.
3386         ("*call_value_nonlocal_aix<mode>"): Likewise.
3387         ("*call_indirect_aix<mode>"): Likewise.
3388         ("*call_value_indirect_aix<mode>"): Likewise.
3389         ("sibcall"): Likewise.
3390         ("sibcall_value"): Likewise.
3391         ("*sibcall_aix<mode>"): Likewise.
3392         ("*sibcall_value_aix<mode>"): Likewise.
3393         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
3394         ("current_file_function_operand"): Likewise.
3396 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3398         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
3399         by making use of the fact that for vector / floating point arguments
3400         passed both in VRs/FPRs and in the fixed parameter area, the partial
3401         bytes mechanism is in fact not used.
3403 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3405         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
3406         (rs6000_finish_function_arg): Likewise.
3407         (rs6000_function_arg): Use rs6000_psave_function_arg and
3408         rs6000_finish_function_arg to handle both vector and floating
3409         point arguments that are also passed in GPRs / the stack.
3411 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3413         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
3414         (USE_ALTIVEC_FOR_ARG_P): Likewise.
3415         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
3416         (rs6000_function_arg_advance_1):Likewise.
3417         (rs6000_darwin64_record_arg_recurse): Likewise.
3418         (rs6000_function_arg): Likewise.
3419         (rs6000_arg_partial_bytes): Likewise.
3421 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3423         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
3424         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
3425         (rs6000_savres_strategy): Likewise.
3426         (rs6000_return_addr): Likewise.
3427         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
3428         testing for ABI_V4 (since ABI_DARWIN is impossible here).
3429         (rs6000_emit_prologue): Likewise.
3430         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
3431         (rs6000_elf_declare_function_name): Remove duplicated test.
3432         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
3433         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
3434         ("load_toc_v4_PIC_1_normal"): Likewise.
3435         ("load_toc_v4_PIC_1_476"): Likewise.
3436         ("load_toc_v4_PIC_1b"): Likewise.
3437         ("load_toc_v4_PIC_1b_normal"): Likewise.
3438         ("load_toc_v4_PIC_1b_476"): Likewise.
3439         ("load_toc_v4_PIC_2"): Likewise.
3440         ("load_toc_v4_PIC_3b"): Likewise.
3441         ("load_toc_v4_PIC_3c"): Likewise.
3442         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
3443         (RS6000_SAVE_AREA): Likewise.
3444         (FP_ARG_MAX_REG): Likewise.
3445         (RETURN_ADDRESS_OFFSET): Likewise.
3446         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
3447         of ABI_AIX.
3448         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
3449         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3451 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3453         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
3454         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
3455         Create call insn directly instead of via various gen_... routines.
3456         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
3457         (rs6000_sibcall_aix): New function.
3458         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
3459         (TOC_SAVE_OFFSET_64BIT): Likewise.
3460         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
3461         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
3462         (AIX_FUNC_DESC_SC_32BIT): Likewise.
3463         (AIX_FUNC_DESC_SC_64BIT): Likewise.
3464         ("call" expander): Call rs6000_call_aix.
3465         ("call_value" expander): Likewise.
3466         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
3467         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3468         ("*call_indirect_aix<mode>"): ... by this insn pattern.
3469         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
3470         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3471         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
3472         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
3473         ("*call_nonlocal_aix<mode>"): ... this pattern.
3474         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
3475         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
3476         ("*call_local_aix<mode>"): New insn pattern.
3477         ("*call_value_local_aix<mode>"): Likewise.
3478         ("sibcall" expander): Call rs6000_sibcall_aix.
3479         ("sibcall_value" expander): Likewise.  Move earlier in file.
3480         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
3481         ("*sibcall_aix<mode>"): ... this pattern.
3482         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
3483         ("*sibcall_value_aix<mode>"): ... this pattern.
3484         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
3485         (rs6000_call_aix): Add prototype.
3486         (rs6000_sibcall_aix): Likewise.
3488 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
3490         PR sanitizer/59122
3491         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
3492         isn't confused by the artificial decl.
3494 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3496         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
3497         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
3498         Instead, add USEs of all modified call-saved CR fields to the
3499         insn storing the result to the stack slot, and provide an
3500         appropriate REG_FRAME_RELATED_EXPR for that insn.
3501         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
3502         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
3504 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3505             Alan Modra  <amodra@gmail.com>
3507         * function.c (assign_parms): Use all.reg_parm_stack_space instead
3508         of re-evaluating REG_PARM_STACK_SPACE target macro.
3509         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
3510         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
3511         (assign_parm_find_entry_rtl): Update call.
3512         * calls.c (initialize_argument_information): Update call.
3513         (emit_library_call_value_1): Likewise.
3514         * expr.h (locate_and_pad_parm): Update prototype.
3516 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3518         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
3519         arguments.
3521 2013-11-14  DJ Delorie  <dj@redhat.com>
3523         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
3524         to 16 bits.
3526 2013-11-14  Jeff Law  <law@redhat.com>
3528         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
3529         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
3531 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3533         * doc/invoke.texi: Update documentation for AArch64's -mcpu
3534         and -mtune options.
3536 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3538         * config/aarch64/aarch64-cores.def (example-1): Remove.
3539         (example-2): Likewise.
3540         * config/aarch64/aarch64-tune.md: Regenerate.
3541         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
3542         (generic_sched): Remove "large", "small".
3543         * config/aarch64/large.md: Delete.
3544         * config/aarch64/small.md: Delete.
3546 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3548         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
3549         * config/aarch64/aarch64-tune.md: Regenerate.
3550         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
3551         (generic_sched): "no" if we are tuning for cortexa15.
3552         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
3553         relative path.
3555 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3557         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
3558         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
3559         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
3560         (all_cores): Use cortexa53 when tuning for "generic".
3561         (aarch64_override_options): Fix comment.
3562         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
3563         * config/aarch64/aarch64-generic.md: Delete.
3565 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3567         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
3569 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3571         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
3572         (generic_rtx_cost_table): Remove.
3573         (aarch64_rtx_costs): Use fields from cpu_cost_table.
3574         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
3575         insn_extra_cost.
3576         (cpu_rtx_cost_table): Remove.
3578 2013-11-14  Julian Brown  <julian@codesourcery.com>
3579             Joey Ye  <joey.ye@arm.com>
3581         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
3582         (arm_v7m_tune): New.
3583         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
3584         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
3585         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
3586         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
3588 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
3590         PR target/57491
3591         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
3592         flag setting.
3594 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
3595             Uros Bizjak  <ubizjak@gmail.com>
3597         PR target/59101
3598         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
3599         operands[2] satisfies_constraint_Z that might have bit 31 set.
3601 2013-11-13  Jeff Law  <law@redhat.com>
3603         PR tree-optimization/59102
3604         * gimple-ssa-isolate-paths.c
3605         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
3606         gimple assignment before looking at gimple_assign_lhs.
3608 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
3610         * ira.c: Add comment about threads at the top of file.
3612 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
3614         * ira-color.c (coalesce_allocnos): Don't allocate and free
3615         sorted_copies.
3617 2013-11-14  Tom de Vries  <tom@codesourcery.com>
3619         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
3620         equality for GIMPLE_ASSIGN.
3622 2013-11-14  Tom de Vries  <tom@codesourcery.com>
3624         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
3625         function out of ...
3626         (gimple_equal_p): ... here.
3628 2013-11-14  Tom de Vries  <tom@codesourcery.com>
3630         * trans-mem.c (is_tm_ending): New function.
3631         * gimple.h (is_tm_ending): Declare.
3632         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
3633         BUILT_IN_TM_COMMIT.
3634         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
3636 2013-11-14  Tom de Vries  <tom@codesourcery.com>
3638         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
3640 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
3642         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
3643         (struct walk_stmt_info):  Relocate here from gimple.h.
3644         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
3645         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
3646         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
3647         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
3648         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
3649         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
3650         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
3651         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
3652         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
3653         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
3654         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
3655         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
3656         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
3657         (struct walk_stmt_info): Move to gimple-walk.h.
3658         (gimple_seq_set_location): Move to gimple.c
3659         * gimple-walk.c: New File.
3660         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
3661         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
3662         walk_stmt_load_store_ops): Relocate here from gimple.c.
3663         * gimple-iterator.c: Include gimple-iterator.h.
3664         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
3665         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
3666         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
3667         gimple-walk.c.
3668         (gimple_seq_set_location): Relocate from gimple.h.
3669         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
3670         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
3671         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
3672         * Makefile.in (OBJS): Add gimple-walk.o
3673         * asan.c: Update Include list as required for gimple-iterator.h and
3674         gimple-walk.h.
3675         * cfgexpand.c: Likewise.
3676         * cfgloop.c: Likewise.
3677         * cfgloopmanip.c: Likewise.
3678         * cgraph.c: Likewise.
3679         * cgraphbuild.c: Likewise.
3680         * cgraphunit.c: Likewise.
3681         * gimple-fold.c: Likewise.
3682         * gimple-low.c: Likewise.
3683         * gimple-pretty-print.c: Likewise.
3684         * gimple-ssa-isolate-paths.c: Likewise.
3685         * gimple-ssa-strength-reduction.c: Likewise.
3686         * gimple-streamer-in.c: Likewise.
3687         * gimple-streamer-out.c: Likewise.
3688         * gimplify.c: Likewise.
3689         * graphite-blocking.c: Likewise.
3690         * graphite-clast-to-gimple.c: Likewise.
3691         * graphite-dependences.c: Likewise.
3692         * graphite-interchange.c: Likewise.
3693         * graphite-optimize-isl.c: Likewise.
3694         * graphite-poly.c: Likewise.
3695         * graphite-scop-detection.c: Likewise.
3696         * graphite-sese-to-poly.c: Likewise.
3697         * graphite.c: Likewise.
3698         * ipa-inline-analysis.c: Likewise.
3699         * ipa-profile.c: Likewise.
3700         * ipa-prop.c: Likewise.
3701         * ipa-pure-const.c: Likewise.
3702         * ipa-split.c: Likewise.
3703         * lto-streamer-in.c: Likewise.
3704         * lto-streamer-out.c: Likewise.
3705         * omp-low.c: Likewise.
3706         * predict.c: Likewise.
3707         * profile.c: Likewise.
3708         * sese.c: Likewise.
3709         * tracer.c: Likewise.
3710         * trans-mem.c: Likewise.
3711         * tree-call-cdce.c: Likewise.
3712         * tree-cfg.c: Likewise.
3713         * tree-cfgcleanup.c: Likewise.
3714         * tree-complex.c: Likewise.
3715         * tree-data-ref.c: Likewise.
3716         * tree-dfa.c: Likewise.
3717         * tree-eh.c: Likewise.
3718         * tree-emutls.c: Likewise.
3719         * tree-if-conv.c: Likewise.
3720         * tree-inline.c: Likewise.
3721         * tree-into-ssa.c: Likewise.
3722         * tree-loop-distribution.c: Likewise.
3723         * tree-nested.c: Likewise.
3724         * tree-nrv.c: Likewise.
3725         * tree-object-size.c: Likewise.
3726         * tree-outof-ssa.c: Likewise.
3727         * tree-parloops.c: Likewise.
3728         * tree-predcom.c: Likewise.
3729         * tree-profile.c: Likewise.
3730         * tree-scalar-evolution.c: Likewise.
3731         * tree-sra.c: Likewise.
3732         * tree-ssa-ccp.c: Likewise.
3733         * tree-ssa-coalesce.c: Likewise.
3734         * tree-ssa-copy.c: Likewise.
3735         * tree-ssa-copyrename.c: Likewise.
3736         * tree-ssa-dce.c: Likewise.
3737         * tree-ssa-dom.c: Likewise.
3738         * tree-ssa-dse.c: Likewise.
3739         * tree-ssa-forwprop.c: Likewise.
3740         * tree-ssa-ifcombine.c: Likewise.
3741         * tree-ssa-live.c: Likewise.
3742         * tree-ssa-loop-ch.c: Likewise.
3743         * tree-ssa-loop-im.c: Likewise.
3744         * tree-ssa-loop-ivcanon.c: Likewise.
3745         * tree-ssa-loop-ivopts.c: Likewise.
3746         * tree-ssa-loop-manip.c: Likewise.
3747         * tree-ssa-loop-niter.c: Likewise.
3748         * tree-ssa-loop-prefetch.c: Likewise.
3749         * tree-ssa-loop.c: Likewise.
3750         * tree-ssa-math-opts.c: Likewise.
3751         * tree-ssa-phiopt.c: Likewise.
3752         * tree-ssa-phiprop.c: Likewise.
3753         * tree-ssa-pre.c: Likewise.
3754         * tree-ssa-propagate.c: Likewise.
3755         * tree-ssa-reassoc.c: Likewise.
3756         * tree-ssa-sink.c: Likewise.
3757         * tree-ssa-strlen.c: Likewise.
3758         * tree-ssa-structalias.c: Likewise.
3759         * tree-ssa-tail-merge.c: Likewise.
3760         * tree-ssa-ter.c: Likewise.
3761         * tree-ssa-threadedge.c: Likewise.
3762         * tree-ssa-threadupdate.c: Likewise.
3763         * tree-ssa-uncprop.c: Likewise.
3764         * tree-ssa-uninit.c: Likewise.
3765         * tree-ssa.c: Likewise.
3766         * tree-stdarg.c: Likewise.
3767         * tree-switch-conversion.c: Likewise.
3768         * tree-tailcall.c: Likewise.
3769         * tree-vect-data-refs.c: Likewise.
3770         * tree-vect-generic.c: Likewise.
3771         * tree-vect-loop-manip.c: Likewise.
3772         * tree-vect-loop.c: Likewise.
3773         * tree-vect-patterns.c: Likewise.
3774         * tree-vect-slp.c: Likewise.
3775         * tree-vect-stmts.c: Likewise.
3776         * tree-vectorizer.c: Likewise.
3777         * tree-vrp.c: Likewise.
3778         * tree.c: Likewise.
3779         * tsan.c: Likewise.
3780         * value-prof.c: Likewise.
3781         * vtable-verify.c: Likewise.
3783 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
3785         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
3786         fix.
3788 2013-11-13  Jeff Law  <law@redhat.com>
3790         * PR middle-end/59119
3791         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
3792         function, extracted from gimple_ssa_isolate_erroneous_paths.
3793         (find_explicit_erroneous_behaviour): Similarly.
3794         (insert_trap_and_remove_trailing_statements): Remove statements
3795         in reverse order.
3797 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
3799         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
3800         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
3801         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
3802         looking at INSN_CODE.
3803         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
3804         active_insn_p object, respect basic block boundaries.
3805         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
3806         follows immediately after the jump table data label.
3807         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
3808         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
3809         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
3811 2013-11-13  Teresa Johnson  <tejohnson@google.com>
3813         PR ipa/58862
3814         * predict.c (drop_profile): Error is currently too strict.
3815         (handle_missing_profiles): Pass call_count to drop_profile.
3817 2013-11-13  Teresa Johnson  <tejohnson@google.com>
3819         PR ipa/58862
3820         * ipa-inline.c (edge_badness): Fix overflow.
3822 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
3824         PR rtl-optimization/59036
3825         * ira-color.c (struct allocno_color_data): Add new members
3826         first_thread_allocno, next_thread_allocno, thread_freq.
3827         (sorted_copies): New static var.
3828         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
3829         (allocno_thread_conflict_p, merge_threads)
3830         (form_threads_from_copies, form_threads_from_bucket)
3831         (form_threads_from_colorable_allocno, init_allocno_threads): New
3832         functions.
3833         (bucket_allocno_compare_func): Add comparison by thread frequency
3834         and threads.
3835         (add_allocno_to_ordered_bucket): Rename to
3836         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
3837         (push_only_colorable): Call form_threads_from_bucket.
3838         (color_pass): Call init_allocno_threads.  Use
3839         consideration_allocno_bitmap instead of coloring_allocno_bitmap
3840         for nuillify allocno color data.
3841         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
3842         (coalesce_allocnos): Use static sorted copies.
3844 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
3846         * passes.c (execute_todo): Don't call do_per_function if
3847         flags are zero.
3848         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
3849         execute_function_dump if dump_file is NULL.
3851 2013-11-13  Martin Jambor  <mjambor@suse.cz>
3853         * cgraph.c (cgraph_get_create_node): Do what
3854         cgraph_get_create_real_symbol_node used to do.
3855         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
3856         call cgraph_get_create_node.
3857         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
3858         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
3859         cgraph_get_create_node.  Assert we get a node.
3861 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
3863         * config/aarch64/aarch64-simd.md (vec_extract): New.
3865 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
3867         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
3868         the constraint.
3870 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3872         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
3873         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
3874         or if optimization is enabled.
3875         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
3876         require that all the names based on a PARM_DECL or a RESULT_DECL that
3877         isn't ignored for debug info be coalesced.
3879 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3881         * config/c6x/c6x.c: Include "gimple-expr.h".
3883 2013-11-13  Richard Biener  <rguenther@suse.de>
3885         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
3886         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
3887         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
3888         dealing with type mismatches inside component reference chains.
3890 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
3892         PR tree-optimization/59077
3893         * ipa-pure-const.c (better_state): Update *state.
3895 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
3897         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
3898         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
3899         Update offset calculations.
3901 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3903         PR ada/35998
3904         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
3905         for fields.  Do not add the attribute if the size is negative.
3907 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3909         * config/arm/arm.c: Include aarch-cost-tables.h.
3910         (generic_extra_costs): Move from here...
3911         * config/arm/aarch-cost-tables.h: ... To here.  New file.
3913 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3914             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3915             Sergey Lega  <sergey.s.lega@intel.com>
3916             Anna Tikhonova  <anna.tikhonova@intel.com>
3917             Ilya Tocar  <ilya.tocar@intel.com>
3918             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3919             Ilya Verbin  <ilya.verbin@intel.com>
3920             Kirill Yukhin  <kirill.yukhin@intel.com>
3921             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3923         * config/i386/i386.c (ix86_print_operand): Support z-masking.
3924         * config/i386/predicate.md (const_0_to_4_operand): New.
3925         (const_0_to_5_operand): Ditto.
3926         * config/i386/sse.md (UNSPEC_COMPRESS): New.
3927         (UNSPEC_COMPRESS_STORE): Ditto.
3928         (UNSPEC_EXPAND): Ditto.
3929         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
3930         (define_mode_attr ssescalarsize): Ditto.
3931         (avx512f_load<mode>_mask): Ditto.
3932         (avx512f_store<mode>_mask): Ditto.
3933         (avx512f_storedqu<mode>_mask): Ditto.
3934         (avx512f_vmcmp<mode>3_mask): Ditto.
3935         (avx512f_fmadd_<mode>_mask): Ditto.
3936         (avx512f_fmadd_<mode>_mask3): Ditto.
3937         (avx512f_fmsub_<mode>_mask): Ditto.
3938         (avx512f_fmsub_<mode>_mask3): Ditto.
3939         (avx512f_fnmadd_<mode>_mask): Ditto.
3940         (avx512f_fnmadd_<mode>_mask3): Ditto.
3941         (avx512f_fnmsub_<mode>_mask): Ditto.
3942         (avx512f_fnmsub_<mode>_mask3): Ditto.
3943         (avx512f_fmaddsub_<mode>_mask): Ditto.
3944         (avx512f_fmaddsub_<mode>_mask3): Ditto.
3945         (avx512f_fmsubadd_<mode>_mask): Ditto.
3946         (avx512f_fmsubadd_<mode>_mask3): Ditto.
3947         (vec_unpacku_float_lo_v16si): Ditto.
3948         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
3949         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
3950         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
3951         (vec_extract_lo_<mode>_maskm): Ditto.
3952         (vec_extract_hi_<mode>_maskm): Ditto.
3953         (avx512f_vternlog<mode>_mask): Ditto.
3954         (avx512f_shufps512_mask): Ditto.
3955         (avx512f_fixupimm<mode>_mask): Ditto.
3956         (avx512f_shufpd512_mask): Ditto.
3957         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
3958         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
3959         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
3960         (ashr<mode>3<mask_name>): Ditto.
3961         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
3962         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
3963         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
3964         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
3965         (avx512f_pshufdv3_mask): Ditto.
3966         (avx512f_perm<mode>_mask): Ditto.
3967         (avx512f_vpermi2var<mode>3_mask): Ditto.
3968         (avx512f_vpermt2var<mode>3_mask): Ditto.
3969         (avx512f_compress<mode>_mask): Ditto.
3970         (avx512f_compressstore<mode>_mask): Ditto.
3971         (avx512f_expand<mode>_mask): Ditto.
3972         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
3973         to support masking.
3974         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
3975         (<plusminus_insn><mode>3<mask_name>): Ditto.
3976         (*<plusminus_insn><mode>3<mask_name>): Ditto.
3977         (mul<mode>3<mask_name>): Ditto.
3978         (*mul<mode>3<mask_name>): Ditto.
3979         (<sse>_div<mode>3<mask_name>): Ditto.
3980         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
3981         (<sse>_sqrt<mode>2<mask_name>): Ditto.
3982         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
3983         (<code><mode>3<mask_name>/smaxmin): Ditto.
3984         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
3985         (*<code><mode>3<mask_name>/smaxmin): Ditto.
3986         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
3987         (ufloatv16siv16sf2<mask_name>): Ditto.
3988         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
3989         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
3990         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
3991         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
3992         (ufloatv8siv8df<mask_name>): Ditto.
3993         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
3994         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
3995         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
3996         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
3997         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
3998         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
3999         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
4000         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
4001         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
4002         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4003         (vec_extract_lo_<mode><mask_name>): Ditto.
4004         (vec_extract_hi_<mode><mask_name>): Ditto.
4005         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
4006         (avx512f_movddup512<mask_name>): Ditto.
4007         (avx512f_unpcklpd512<mask_name>): Ditto.
4008         (*avx512f_unpcklpd512<mask_name>): Ditto.
4009         (*avx512f_vmscalef<mode>): Ditto.
4010         (avx512f_scalef<mode><mask_name>): Ditto.
4011         (avx512f_getexp<mode><mask_name>): Ditto.
4012         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
4013         (avx512f_rndscale<mode><mask_name>): Ditto.
4014         (avx512f_shufps512_1<mask_name>): Ditto.
4015         (avx512f_shufpd512_1<mask_name>): Ditto.
4016         (<plusminus_insn><mode>3<mask_name>): Ditto.
4017         (*<plusminus_insn><mode>3<mask_name>): Ditto.
4018         (vec_widen_umult_even_v16si<mask_name>): Ditto.
4019         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
4020         (vec_widen_smult_even_v16si<mask_name>): Ditto.
4021         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
4022         (mul<mode>3<mask_name>): Ditto.
4023         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
4024         (<shift_insn><mode>3<mask_name>): Ditto.
4025         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
4026         (avx512f_<rotate><mode><mask_name>): Ditto.
4027         (<code><mode>3<mask_name>/maxmin): Ditto.
4028         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
4029         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
4030         (*andnot<mode>3<mask_name>): Ditto.
4031         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
4032         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
4033         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
4034         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
4035         (vec_set_lo_<mode><mask_name>): Ditto.
4036         (vec_set_hi_<mode><mask_name>): Ditto.
4037         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
4038         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
4039         (avx512f_pshufd_1<mask_name>): Ditto.
4040         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
4041         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
4042         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
4043         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
4044         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
4045         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
4046         (avx512er_exp2<mode><mask_name>): Ditto.
4047         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
4048         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
4049         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
4050         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
4051         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
4052         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
4053         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
4054         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
4055         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
4056         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
4057         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
4058         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
4059         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
4060         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
4061         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
4062         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
4063         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
4064         (avx512f_getmant<mode><mask_name>): Ditto.
4065         (clz<mode>2<mask_name>): Ditto.
4066         (<mask_codefor>conflict<mode><mask_name>): Ditto.
4067         (*srcp14<mode>): Remove visibility.
4068         (*rsqrt14<mode>): Ditto.
4069         (*fma_fmsub_<mode>): Ditto.
4070         (*fma_fnmadd_<mode>): Ditto.
4071         (*avx512f_rndscale<mode>): Ditto.
4072         * config/i386/subst.md: New file.
4074 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
4076         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
4077         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
4078         (atomic_load_explicit, atomic_exchange_explicit)
4079         (atomic_compare_exchange_strong_explicit)
4080         (atomic_compare_exchange_weak_explicit): Use __auto_type to
4081         declare variable initialized with PTR argument.
4083 2013-11-12  Jeff Law  <law@redhat.com>
4085         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
4086         backedge_seen_p.  Set, use and pass it to children appropriately.
4087         (thread_through_normal_block): Similarly.
4088         (thread_across_edge): Similarly.
4090         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
4091         memory references as volatile.
4092         (insert_trap_and_remove_trailing_statements): Fix comment.
4094 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
4096         PR other/58712
4097         * ira-costs.c (record_operand_costs): Check operands number for
4098         the single set.
4100 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4102         PR target/59054
4103         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
4104         constraints that would allow DImode into the traditional Altivec
4105         registers, but cause undesirable code generation when loading 0 as
4106         a constant.
4107         (movdi_internal64): Likewise.
4108         (cmp<mode>_fpr): Do not use %x for CR register output.
4109         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
4110         -mallow-upper-sf debug switches are used.
4112 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
4114         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
4115         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
4116         Relocate prototypes from gimple.h.
4117         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
4118         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
4119         from gimple.h.
4120         * gimple.h: Move some prototypes to gimplify.h.
4121         (gimple_predicate, enum fallback, enum gimplify_status): Move to
4122         gimplify.h.
4123         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
4124         Relocate from gimpify.c.
4125         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
4126         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
4127         is_gimple_reg_rhs) Relocate from gimplify.c.
4128         * gimplify.c (mark_addressable): Move to gimple-expr.c.
4129         (gimple_seq_add_stmt_without_update): Move to gimple.c.
4130         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
4131         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
4132         is_gimple_reg_rhs): Move to gimple-expr.c.
4133         (should_carry_location_p): Move to gimple.c.
4134         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
4135         to gimple.h.
4136         (annotate_one_with_location, annotate_all_with_location_after,
4137         annotate_all_with_location): Move to gimple.c.
4138         (compare_case_labels, sort_case_labels,
4139         preprocess_case_label_vec_for_gimple): Move to gimple.c.
4140         (rhs_predicate_for): Make static.
4141         (gimplify_assign): Relocate from gimple.c.
4142         * gimple.c (gimplify_assign): Move to gimplify.c.
4143         (gimple_seq_add_stmt_without_update, should_carry_location_p,
4144         annotate_one_with_location, annotate_all_with_location_after,
4145         annotate_all_with_location, compare_case_labels, sort_case_labels,
4146         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
4147         * tree.h (unshare_expr, unshare_expr_without_location,
4148         mark_addressable): Move prototypes to gimplify.h.
4149         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
4150         tmp_var_id_num
4151         * asan.c: Include gimplify.h rather than gimple.h.
4152         * cfgloopmanip.c: Likewise.
4153         * cgraphunit.c: Likewise.
4154         * cilk-common.c: Likewise.
4155         * dwarf2out.c: Dont include gimple.h.
4156         * fold-const.c: Include gimplify.h rather than gimple.h.
4157         * function.c: Likewise.
4158         * gimple-fold.c: Likewise.
4159         * gimple-ssa-strength-reduction.c: Likewise.
4160         * graphite-clast-to-gimple.c: Likewise.
4161         * graphite-sese-to-poly.c: Likewise.
4162         * ipa-prop.c: Likewise.
4163         * ipa-split.c: Likewise.
4164         * ipa.c: Likewise.
4165         * langhooks.c: Dont include gimple.h.
4166         * loop-init.c: Include gimplify.h rather than gimple.h.
4167         * omp-low.c: Likewise.
4168         * sese.c: Likewise.
4169         * stor-layout.c: Likewise.
4170         * targhooks.c: Likewise.
4171         * trans-mem.c: Likewise.
4172         * tree-affine.c: Likewise.
4173         * tree-cfg.c: Likewise.
4174         * tree-cfgcleanup.c: Likewise.
4175         * tree-complex.c: Likewise.
4176         * tree-if-conv.c: Likewise.
4177         * tree-inline.c: Likewise.
4178         * tree-iterator.c: Likewise.
4179         * tree-loop-distribution.c: Likewise.
4180         * tree-nested.c: Likewise.
4181         * tree-parloops.c: Likewise.
4182         * tree-predcom.c: Likewise.
4183         * tree-profile.c: Likewise.
4184         * tree-scalar-evolution.c: Likewise.
4185         * tree-sra.c: Likewise.
4186         * tree-ssa-address.c: Likewise.
4187         * tree-ssa-ccp.c: Likewise.
4188         * tree-ssa-dce.c: Likewise.
4189         * tree-ssa-forwprop.c: Likewise.
4190         * tree-ssa-ifcombine.c: Likewise.
4191         * tree-ssa-loop-im.c: Likewise.
4192         * tree-ssa-loop-ivopts.c: Likewise.
4193         * tree-ssa-loop-manip.c: Likewise.
4194         * tree-ssa-loop-niter.c: Likewise.
4195         * tree-ssa-loop-prefetch.c: Likewise.
4196         * tree-ssa-loop-unswitch.c: Likewise.
4197         * tree-ssa-math-opts.c: Likewise.
4198         * tree-ssa-phiopt.c: Likewise.
4199         * tree-ssa-phiprop.c: Likewise.
4200         * tree-ssa-pre.c: Likewise.
4201         * tree-ssa-propagate.c: Likewise.
4202         * tree-ssa-reassoc.c: Likewise.
4203         * tree-ssa-sccvn.c: Likewise.
4204         * tree-ssa-strlen.c: Likewise.
4205         * tree-ssa.c: Likewise.
4206         * tree-switch-conversio: Likewise.n.c
4207         * tree-tailcall.c: Likewise.
4208         * tree-vect-data-refs.c: Likewise.
4209         * tree-vect-generic.c: Likewise.
4210         * tree-vect-loop-manip.c: Likewise.
4211         * tree-vect-loop.c: Likewise.
4212         * tree-vect-patterns.c: Likewise.
4213         * tree-vect-stmts.c: Likewise.
4214         * tsan.c: Likewise.
4215         * value-prof.c: Likewise.
4216         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
4217         * config/alpha/alpha.c: Likewise.
4218         * config/darwin.c: Likewise.
4219         * config/i386/i386.c: Likewise.
4220         * config/ia64/ia64.c: Likewise.
4221         * config/mep/mep.c: Likewise.
4222         * config/mips/mips.c: Likewise.
4223         * config/rs6000/rs6000.c: Likewise.
4224         * config/s390/s390.c: Likewise.
4225         * config/sh/sh.c: Likewise.
4226         * config/sparc/sparc.c: Likewise.
4227         * config/spu/spu.c: Likewise.
4228         * config/stormy16/stormy16.c: Likewise.
4229         * config/tilegx/tilegx.c: Likewise.
4230         * config/tilepro/tilepro.c: Likewise.
4231         * config/xtensa/xtensa.c: Likewise.
4233 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
4235         * tree.c (grow_tree_vec_stat): New function ...
4236         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
4237         and macro front-end.
4239 2013-11-12  Marek Polacek  <polacek@redhat.com>
4241         * final.c (update_alignments): Initialize label to NULL_RTX.
4243 2013-11-12  Jeff Law  <law@redhat.com>
4245         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
4246         (insert_trap_and_remove_trailing_statements): New argument OP which
4247         is the NULL pointer.  Emit the trap after the load/store through
4248         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
4249         when trivial to do so.
4250         (isolate_path): Corresponding changes.
4251         (gimple_ssa_isolate_erroneous_path): Likewise.
4253 2013-11-12  Teresa Johnson  <tejohnson@google.com>
4254             Jan Hubicka  <jh@suse.cz>
4256         * predict.c (drop_profile): New function.
4257         (handle_missing_profiles): Ditto.
4258         (counts_to_freqs): Don't overwrite estimated frequencies
4259         when function has no profile counts.
4260         * predict.h (handle_missing_profiles): Declare.
4261         * tree-inline.c (freqs_to_counts): New function.
4262         (copy_cfg_body): Invoke freqs_to_counts as needed.
4263         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
4265 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
4267         PR target/59088
4268         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
4269         Set for m_HASWELL.
4270         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
4272 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
4274         PR target/59084
4275         * config/i386/i386.c (ix86_option_override_internal): Check
4276         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
4277         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
4278         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
4279         MASK_AVX256_SPLIT_UNALIGNED_STORE.
4281         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
4282         Clear m_COREI7_AVX and update comments.
4283         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
4285 2013-11-12  Martin Jambor  <mjambor@suse.cz>
4287         PR rtl-optimization/10474
4288         * ira.c (interesting_dest_for_shprep): New function.
4289         (split_live_ranges_for_shrink_wrap): Likewise.
4290         (find_moveable_pseudos): Move calculation of dominance info,
4291         df_analysios and the final anlyses to...
4292         (ira): ...here, call split_live_ranges_for_shrink_wrap.
4294 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
4296         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
4297         Handle type conversion.
4299 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
4300             Jan Hubicka  <jh@suse.cz>
4302         * cgraph.c (dump_cgraph_node): Profile dump added.
4303         * cgraph.h (struct cgraph_node): New time profile variable added.
4304         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
4305         * gcov-io.h (gcov_type): New profiler type introduced.
4306         * ipa-profile.c (lto_output_node): Streaming for time profile added.
4307         (input_node): Time profiler is read from LTO stream.
4308         * predict.c (maybe_hot_count_p): Hot prediction changed.
4309         * profile.c (instrument_values): New case for time profiler added.
4310         (compute_value_histograms): Read of time profile.
4311         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
4312         * tree-profile.c (init_ic_make_global_vars): Time profiler
4313         function added.
4314         (gimple_init_edge_profiler): TP function instrumentation.
4315         (gimple_gen_time_profiler): New.
4316         * value-prof.c (gimple_add_histogram_value): Support for time profiler
4317         added.
4318         (dump_histogram_value): TP type added to dumps.
4319         (visit_hist): More sensitive check that takes TP into account.
4320         (gimple_find_values_to_profile): TP instrumentation.
4321         * value-prof.h (hist_type): New histogram type added.
4322         (struct histogram_value_t): Pointer to struct function added.
4323         * libgcc/Makefile.in: New GCOV merge function for TP added.
4324         * libgcov.c: function_counter variable introduced.
4325         (_gcov_merge_time_profile): New.
4326         (_gcov_time_profiler): New.
4328 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
4329             Jeff Law  <law@redhat.com>
4331         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
4332         ao_ref_init_from_ptr_and_size for builtins.
4334 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
4335             H.J. Lu  <hongjiu.lu@intel.com>
4337         PR target/58853
4338         * config/i386/x86-tune.def
4339         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
4340         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
4341         * config/i386/i386.h
4342         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
4343         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
4344         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
4345         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
4346         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
4347         misaligned_prologue_used.  Check that
4348         desired_aling <= epilogue_size_needed.
4350 2013-11-11  Cong Hou  <congh@google.com>
4352         PR tree-optimization/59050
4353         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
4355 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
4357         PR middle-end/59049
4358         * expmed.c (emit_store_flag): Fail for const-const comparison.
4360 2013-11-11  Tristan Gingold  <gingold@adacore.com>
4361             Eric Botcazou  <ebotcazou@adacore.com>
4363         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
4364         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
4365         * tree.def (CONSTRUCTOR): Likewise.
4366         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
4367         * gimplify.c (gimplify_init_constructor): Do not clear the object when
4368         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
4370 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
4372         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
4373         diagnostic_finish.
4375 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4377         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
4378         comparisons.
4380 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
4382         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
4384 2013-11-08  Jeff Law  <law@redhat.com>
4386         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
4387         threading paths first, then perform PHI node checks if applicable.
4389 2013-11-10  Karlson2k  <k2k@narod.ru>
4390             Kai Tietz  <ktietz@redhat.com>
4392         PR plugin/52872
4393         * configure.ac: Adding for exported symbols check
4394         and for rdynamic-check executable-extension.
4395         * configure: Regenerated.
4397 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
4399         * mode-switching.c (optimize_mode_switching): Mark block as
4400         nontransparent, if last_mode at block exit is different from no_mode.
4402 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4404         * function.c (NAME__MAIN): Move to...
4405         * cfgexpand.c (NAME__MAIN): ...here.
4407 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
4409         * target.def (can_use_doloop_p): New hook.
4410         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
4411         * doc/tm.texi: Regenerate.
4412         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
4413         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
4414         * hooks.c (hook_bool_dint_dint_uint_true): New function.
4415         * targhooks.h (can_use_doloop_if_innermost): Declare.
4416         * targhooks.c (can_use_doloop_if_innermost): New function.
4417         * target.h: Include double-int.h.
4418         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
4419         Remove iteration count, maximum iteration count, loop depth and
4420         enter-at-top inputs from doloop_begin and doloop_end.
4421         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
4422         interface.
4423         * config/arc/arc.c (arc_can_use_doloop_p): New function.
4424         (TARGET_CAN_USE_DOLOOP_P): Define.
4425         * config/arm/thumb2.md (doloop_end): Update for new interface.
4426         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
4427         * config/bfin/bfin.md (doloop_end): Update for new interface.
4428         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
4429         (TARGET_CAN_USE_DOLOOP_P): Define.
4430         * config/c6x/c6x.md (doloop_end): Update for new interface.
4431         * config/ia64/ia64.md (doloop_end): Update for new interface.
4432         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
4433         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
4434         interface.
4435         * config/mep/mep.c (mep_emit_doloop): Likewise.
4436         (TARGET_CAN_USE_DOLOOP_P): Define.
4437         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
4438         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
4439         * config/s390/s390.md (doloop_end): Update for new interface.
4440         * config/sh/sh.md (doloop_end): Likewise.
4441         * config/spu/spu.md (doloop_end): Likewise.
4442         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
4443         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
4444         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
4445         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
4446         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
4447         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
4448         interface.
4449         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
4451 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
4453         PR other/59055
4454         * doc/extend.texi: Move Cilk Plus Builtins node before Other
4455         Builtins node.
4457 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
4458             Joseph Myers  <joseph@codesourcery.com>
4460         * ginclude/stdatomic.h: New file.
4461         * Makefile.in (USER_H): Add stdatomic.h.
4463 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4465         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
4466         comparisons.
4468 2013-11-08  Jeff Law  <law@redhat.com>
4470         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
4471         * tree-ssa-threadupdate.c (delete_thread_path): New function.
4472         (ssa_redirect_edges, thread_block_1): Use it.
4473         (thread_through_loop_header, mark_threaded_blocks): Likewise.
4474         (thread_through_all_blocks, register_jump_thread): Likewise.
4475         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
4477 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
4479         * config/arm/aarch-common.c
4480         (search_term): New typedef.
4481         (shift_rtx_costs): New array.
4482         (arm_rtx_shift_left_p): New.
4483         (arm_find_sub_rtx_with_search_term): Likewise.
4484         (arm_find_sub_rtx_with_code): Likewise.
4485         (arm_early_load_addr_dep): Add sanity checking.
4486         (arm_no_early_alu_shift_dep): Likewise.
4487         (arm_no_early_alu_shift_value_dep): Likewise.
4488         (arm_no_early_mul_dep): Likewise.
4489         (arm_no_early_store_addr_dep): Likewise.
4491 2013-11-08  Richard Biener  <rguenther@suse.de>
4493         PR tree-optimization/59047
4494         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
4496 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
4498         * common.opt (fcheck-pointer-bounds): Move to ...
4499         * c-family/c.opt: ... here.
4500         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
4501         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
4502         * langhooks.h (lang_hooks): Remove chkp_supported field.
4503         * toplev.c (process_options): Remove chkp_supported check.
4505 2013-11-08  Richard Biener  <rguenther@suse.de>
4507         PR tree-optimization/59038
4508         PR tree-optimization/58955
4509         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
4510         previous change.  Handle known dependences correctly.
4512 2013-11-08  Tom de Vries  <tom@codesourcery.com>
4514         * config/rs6000/t-xilinx: Remove duplicate contents.
4516 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
4517             Joseph Myers  <joseph@codesourcery.com>
4519         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
4520         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
4521         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
4522         (struct tree_base): Add atomic_flag field.
4523         * tree.h (TYPE_ATOMIC): New accessor macro.
4524         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
4525         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
4526         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
4527         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
4528         * tree.c (set_type_quals): Set TYPE_ATOMIC.
4529         (find_atomic_core_type): New function.
4530         (build_qualified_type): Adjust alignment for qualified types.
4531         (build_atomic_base): New function
4532         (build_common_tree_nodes): Build atomicQI_type_node,
4533         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
4534         atomicTI_type_node.
4535         * print-tree.c (print_node): Print atomic qualifier.
4536         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
4537         * target.def (atomic_assign_expand_fenv): New hook.
4538         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
4539         * doc/tm.texi: Regenerate.
4540         * targhooks.c (default_atomic_assign_expand_fenv): New function.
4541         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
4542         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
4543         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
4544         function type.
4545         * config/i386/i386.c (enum ix86_builtins): Add
4546         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
4547         IX86_BUILTIN_FNCLEX.
4548         (bdesc_special_args): Add __builtin_ia32_fnstenv,
4549         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
4550         (ix86_expand_builtin): Handle the new built-in functions.
4551         (ix86_atomic_assign_expand_fenv): New function.
4552         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
4553         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
4554         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
4555         (fnstenv, fldenv, fnstsw, fnclex): New insns.
4557 2013-11-07  Steve Ellcey  <sellcey@mips.com>
4559         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
4560         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
4561         (MULTILIB_DIRNAMES): Add fp64 directory.
4562         (MULTILIB_EXCEPTIONS): Add new exclusions.
4564 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
4566         * gimplify.c (gimple_regimplify_operands): Do not set
4567         SSA_NAME_DEF_STMT.
4568         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
4569         (rewrite_close_phi_out_of_ssa): Same.
4570         (rewrite_phi_out_of_ssa): Same.
4571         (rewrite_degenerate_phi): Same.
4572         (handle_scalar_deps_crossing_scop_limits): Same.
4573         * tree-if-conv.c (predicate_scalar_phi): Same.
4574         * tree-parloops.c (create_loads_for_reductions): Same.
4575         (create_final_loads_for_reduction): Same.
4576         (create_loads_and_stores_for_name): Same.
4577         (transform_to_exit_first_loop): Same.
4578         (create_parallel_loop): Same.
4579         * tree-ssa-loop-im.c
4580         (move_computations_dom_walker::before_dom_children): Same.
4581         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
4582         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
4583         * tree-ssa-propagate.c (substitute_and_fold): Same.
4584         * tree-vect-loop.c (vect_finalize_reduction): Same.
4585         * tree-vect-stmts.c (vectorizable_call): Same.
4587 2013-11-07  Mike Stump  <mikestump@comcast.net>
4589         * config/pdp11/pdp11.c: Include dbxout.h.
4590         * config/picochip/picochip.c: Likewise.
4592 2013-11-07  Cong Hou  <congh@google.com>
4594         PR tree-optimization/56764
4595         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4596         Combine alias checks if it is possible to amortize the runtime
4597         overhead.  Return the number of alias checks after merging.
4598         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4599         Use the function vect_create_cond_for_alias_checks () to check
4600         the number of alias checks.
4602 2013-11-07  Jeff Law  <law@redhat.com>
4604         * varpool.c (ctor_for_folding): Fix typo in comment.
4606 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
4608         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
4609         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
4611 2013-11-07  Jeff Law  <law@redhat.com>
4613         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
4615         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
4616         No longer check if we have __builtin_trap, assume it's available.
4618 2013-11-07  Diego Novillo  <dnovillo@google.com>
4620         * attribs.c (lookup_scoped_attribute_spec): Make static.
4621         (get_attribute_namespace): Likewise.
4622         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
4623         (validate_arglist): Move earlier in the file. Make static.
4624         (expand_stack_restore): Move from stmt.c
4625         (expand_stack_save): Move from stmt.c
4626         (rewrite_call_expr_array): Move earlier in the file.
4627         (rewrite_call_expr_valist): Likewise.
4628         * cfgexpand.c: Include hard-reg-set.h before tree.h
4629         Include recog.h.
4630         Include output.h.
4631         (expand_asm_loc): Move from stmt.c.
4632         (n_occurrences): Move from stmt.c.
4633         (check_operand_nalternatives): Move from stmt.c.
4634         (tree_conflicts_with_clobbers_p): Move from stmt.c.
4635         (expand_asm_operands): Move from stmt.c
4636         (expand_asm_stmt): Move from stmt.c
4637         (expand_computed_goto): Move from stmt.c
4638         (expand_goto): Move from stmt.c
4639         (expand_null_return_1): Move from stmt.c
4640         (expand_null_return): Move from stmt.c
4641         (expand_value_return): Move from stmt.c
4642         (expand_return): Move from stmt.c
4643         (expand_main_function): Move from function.c
4644         (stack_protect_prologue): Move from function.c
4645         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
4646         (build_function_decl_skip_args): Move from tree.c.
4647         * explow.c (tree_expr_size): Move from tree.c.
4648         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
4649         (fields_length): Move from tree.c.
4650         * fold-const.c (size_low_cst): Move from tree.c.
4651         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
4652         (tree_expr_nonzero_p): Make static. Move earlier in the file.
4653         (fold_build3_initializer_loc): Remove.
4654         (tree_invalid_nonnegative_warnv_p): Make static.
4655         * function.c (expand_main_function): Move to cfgexpand.c.
4656         (stack_protect_prologue): Move to cfgexpand.c.
4657         (set_insn_locations): Move earlier in the file.
4658         * gimple-fold.c: Include langhooks.h.
4659         (truth_type_for): Move from tree.c.
4660         * print-tree.c (print_vec_tree): Remove.
4661         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
4662         (expand_goto): Move to cfgexpand.c.
4663         (n_occurrences): Move to cfgexpand.c.
4664         (expand_asm_loc): Move to cfgexpand.c
4665         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
4666         (expand_asm_operands): Move to cfgexpand.c.
4667         (expand_asm_stmt): Move to cfgexpand.c.
4668         (check_operand_nalternatives): Move to cfgexpand.c
4669         (expand_null_return): Move to cfgexpand.c.
4670         (expand_value_return): Move to cfgexpand.c.
4671         (expand_null_return_1): Move to cfgexpand.c.
4672         (expand_return): Move to cfgexpand.c.
4673         (expand_stack_save): Move to builtins.c.
4674         (expand_stack_restore): Move to builtins.c
4675         * symtab.c: Include output.h.
4676         (decl_assembler_name_hash): Move from tree.c.
4677         (decl_assembler_name_equal): Move from tree.c.
4678         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
4679         * tree-eh.c (in_array_bounds_p): Move from tree.c.
4680         (range_in_array_bounds_p): Move from tree.c.
4681         * tree-object-size.c (fini_object_sizes): Make static.
4682         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
4683         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
4684         * tree.c (decl_assembler_name_equal): Move to symtab.c.
4685         (tree_expr_size): Move to explow.c.
4686         (decl_assembler_name_hash): Move to symtab.c.
4687         (real_twop): Remove.
4688         (tree_expr_size): Move to explow.c.
4689         (stabilize_reference_1): Move earlier in the file. Make static.
4690         (omp_remove_redundant_declare_simd_attrs): Remove.
4691         (simple_cst_list_equal): Move earlier in the file. Make static.
4692         (size_low_cst): Move to fold-const.c.
4693         (build_type_no_quals): Remove.
4694         (build_function_type_skip_args): Move to cgraphclones.c.
4695         (build_function_decl_skip_args): Move to cgraphclones.c.
4696         (in_array_bounds_p): Move to tree-eh.c.
4697         (range_in_array_bounds_p): Move to tree-eh.c.
4698         (truth_type_for): Move to gimple-fold.c.
4699         (list_equal_p): Remove.
4700         * tree.h (decl_assembler_name_equal): Remove.
4701         (decl_assembler_name_hash): Remove.
4702         (truth_type_for): Remove.
4703         (build_type_no_quals): Remove.
4704         (build_function_decl_skip_args): Remove.
4705         (in_array_bounds_p): Remove.
4706         (range_in_array_bounds_p): Remove.
4707         (size_low_cst): Remove.
4708         (omp_remove_redundant_declare_simd_attrs): Remove.
4709         (tree_expr_size): Remove.
4710         (fields_length): Remove.
4711         (stabilize_reference_1): Remove.
4712         (expand_goto): Remove.
4713         (expand_stack_save): Remove.
4714         (expand_stack_restore): Remove.
4715         (expand_return): Remove.
4716         (fold_build3_initializer_loc): Remove.
4717         (tree_expr_nonzero_p): Remove.
4718         (tree_invalid_nonnegative_warnv_p): Remove.
4719         (tree_expr_nonzero_warnv_p): Remove.
4720         (fold_builtin_snprintf_chk): Remove.
4721         (validate_arglist): Remove.
4722         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
4723         (simple_cst_list_equal): Remove.
4724         (real_twop): Remove.
4725         (expand_main_function): Remove.
4726         (stack_protect_prologue): Remove.
4727         (print_vec_tree): Remove.
4728         (lookup_scoped_attribute_spec): Remove.
4729         (get_attribute_namespace): Remove.
4730         (expand_computed_goto): Remove.
4731         (expand_asm_stmt): Remove.
4732         (list_equal_p): Remove.
4733         (ssa_name_nonnegative_p): Remove.
4734         (fini_object_sizes): Remove.
4735         (addr_expr_of_non_mem_decl_p): Remove.
4736         (is_tm_safe_or_pure): Move to trans-mem.c.
4737         (more_const_call_expr_args_p): Remove.
4738         (save_vtable_map_decl): Remove.
4740 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
4742         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
4743         linker plugins, too.
4745         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
4746         link to libgomp and its dependencies.
4747         * config/ia64/hpux.h (LIB_SPEC): Likewise.
4748         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4749         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4750         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
4752 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
4754         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
4755         (determine_value_range): Add loop argument.  Use get_range_info to
4756         improve range.
4757         (bound_difference): Adjust caller.
4759 2013-11-07  Richard Biener  <rguenther@suse.de>
4760             Jakub Jelinek  <jakub@redhat.com>
4762         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
4763         latches from header PHI arguments from the latch edge.
4765 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
4767         PR c++/58176
4768         * varasm.c (output_constant): Handle NULLPTR_TYPE.
4770 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4772         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
4773         misaligned_prologue_used when it has been set.
4775 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
4776             Jakub Jelinek  <jakub@redhat.com>
4778         PR sanitizer/59029
4779         * asan.c (get_mem_refs_of_builtin_call): Allow
4780         integer literals as addresses in instrumented builtins.
4782 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4784         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4785         Explain why plus_constant is not used.
4787 2013-11-07  Richard Biener  <rguenther@suse.de>
4789         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
4790         (canonicalize_value): ... this.  Also handle stripping of
4791         TREE_OVERFLOW.
4792         (get_value, set_lattice_value, get_value_for_expr): Adjust.
4793         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
4794         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
4796 2013-11-07  Richard Biener  <rguenther@suse.de>
4798         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
4800 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4802         PR target/59034
4803         * config/i386/i386.md (push peepholer/splitter): Use Pmode
4804         with stack_pointer_rtx.
4806 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
4808         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
4809         using operand_equal_p.
4811 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
4813         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
4814         * tree-affine.c (get_inner_reference_aff): Return base.
4815         * tree-affine.h (get_inner_reference_aff): Change prototype.
4817 2013-11-06  Tobias Burnus  <burnus@net-b.de>
4819         * doc/invoke.texi (Wdate-time): Fix typo.
4821 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
4823         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
4824         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
4825         fp_arith_reg_operand instead of arith_reg_operand.
4827 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
4829         * config/sh/sh.md (adddi3): Remove empty constraints.
4830         Remove can_create_pseudo_p and arith_reg_operand check.
4831         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
4832         Split before reload.
4834 2013-11-06  Jeff Law  <law@redhat.com>
4835             Tom Tromey  <tromey@redhat.com>
4837         * gdbinit.in: Disable strict type checking.
4839 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
4841         * tree-pass.h (make_pass_live_range_shrinkage): New external.
4842         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
4843         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
4844         (rest_of_handle_live_range_shrinkage): Ditto
4845         (class pass_live_range_shrinkage): Ditto.
4846         (pass_data_live_range_shrinkage): Ditto.
4847         (make_pass_live_range_shrinkage): Ditto.
4848         * sched-int.h (initialize_live_range_shrinkage): New prototype.
4849         (finish_live_range_shrinkage): Ditto.
4850         * sched-deps.c (create_insn_reg_set): Make void return value.
4851         * passes.def: Add pass_live_range_shrinkage.
4852         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
4853         * haifa-sched.c (live_range_shrinkage_p): New.
4854         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
4855         New functions.
4856         (rank_for_schedule): Add code for pressure relief through live
4857         range shrinkage.
4858         (schedule_insn): Print more debug info.
4859         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
4860         through live range shrinkage.
4861         * doc/invoke.texi (-flive-range-shrinkage): New.
4862         * common.opt (flive-range-shrinkage): New.
4864 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
4866         PR target/59021
4867         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
4868         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
4869         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
4870         RTXes that return in AVX256 register.
4872 2013-11-06  Richard Biener  <rguenther@suse.de>
4874         PR tree-optimization/58653
4875         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
4876         (prepare_initializers_chain): Adjust.
4878 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
4880         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
4881         (gimple_in_transaction): Use bb_in_transaction.
4882         * basic-block.h (bb_in_transaction): Relocate here and rename.
4883         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
4885 2013-11-06  Richard Biener  <rguenther@suse.de>
4887         * tree.c (drop_tree_overflow): New function.
4888         * tree.h (drop_tree_overflow): Declare.
4889         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
4890         * tree-vrp.c (range_int_cst_singleton_p): Use
4891         is_overflow_infinity instead of testing TREE_OVERFLOW.
4892         (extract_range_from_assert): Likewise.
4893         (zero_nonzero_bits_from_vr): Likewise.
4894         (extract_range_basic): Likewise.
4895         (register_new_assert_for): Use drop_tree_overflow.
4896         (vrp_visit_phi_node): Likewise.
4898 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
4900         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
4901         checking for leaf functions without dynamic stack allocation.
4902         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
4903         (ia64_expand_prologue): Likewise.
4904         * config/mips/mips.c (mips_expand_prologue): Likewise.
4905         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4906         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4907         (sparc_flat_expand_prologue): Likewise.
4909 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
4911         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
4912         (__ST3_LANE_FUNC): Likewise.
4913         (__ST4_LANE_FUNC): Likewise.
4915 2013-11-06  Nick Clifton  <nickc@redhat.com>
4917         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
4918         name returned by msp430_mcu_name.
4919         (LIB_SPEC): If a -T option has not been specified then set a
4920         default, mcu-specific, linker script.
4921         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
4922         * config/msp430/msp430.c (msp430x_names): Likewise.
4923         Alpha sort the names for ease of comparison.
4924         (msp430_mcu_name): New function:  Returns a string suitable for
4925         use as a C preprocessor symbol based upon the name of the MCU
4926         being targeted.
4927         (msp430_option_override): Accept msp430x and msp430xv2 as generic
4928         mcu names.
4929         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
4931         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
4932         unless it is the last part of a spec substring.
4933         * doc/invoke.texi (Spec Files): Document space insertion
4934         behaviour of %*.
4936 2013-11-06  Christian Bruel  <christian.bruel@st.com>
4938         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
4939         Factorize probabilities, Use adjust_address instead of
4940         adjust_automodify_address when possible. Enable for optimize.
4941         (sh_expand_strlen): New function.
4942         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
4943         * config/sh/sh.md (strlensi): New pattern.
4944         (UNSPEC_BUILTIN_STRLEN): Define.
4946 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
4948         PR middle-end/58970
4949         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
4950         (expand_assignment): If *bitpos is negative, set *offset
4951         and adjust *bitpos, so that it is not negative.
4953 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4955         * config/i386/bdver3.md : Added two additional decoder units
4956         to support issue rate of 4 and remodeled vector unit.
4957         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
4958         architectures is set to 4.
4959         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
4960         lookahead is set to 4 for BD architectures.
4962 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4964         * config/rs6000/rs6000.c (rs6000_option_override_internal):
4965         Remove restriction against use of VSX instructions when generating
4966         code for little endian mode.
4968 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4970         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
4971         for both big and little endian.
4972         (mulv8hi3): Swap input operands for merge high and merge low
4973         instructions for little endian.
4975 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4977         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
4978         define_insn to define_expand that uses even patterns for big
4979         endian and odd patterns for little endian.
4980         (vec_widen_smult_even_v16qi): Likewise.
4981         (vec_widen_umult_even_v8hi): Likewise.
4982         (vec_widen_smult_even_v8hi): Likewise.
4983         (vec_widen_umult_odd_v16qi): Likewise.
4984         (vec_widen_smult_odd_v16qi): Likewise.
4985         (vec_widen_umult_odd_v8hi): Likewise.
4986         (vec_widen_smult_odd_v8hi): Likewise.
4987         (altivec_vmuleub): New define_insn.
4988         (altivec_vmuloub): Likewise.
4989         (altivec_vmulesb): Likewise.
4990         (altivec_vmulosb): Likewise.
4991         (altivec_vmuleuh): Likewise.
4992         (altivec_vmulouh): Likewise.
4993         (altivec_vmulesh): Likewise.
4994         (altivec_vmulosh): Likewise.
4996 2013-11-05  Mike Stump  <mikestump@comcast.net>
4998         * Makefile.in (mostlyclean): Remove c-family objects.
5000 2013-11-05  Ian Lance Taylor  <iant@google.com>
5002         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
5003         If possible, add .cfi directives to record change to bx.
5004         * config/i386/i386.c (ix86_emit_cfi): New function.
5005         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
5007 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
5009         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
5010         immediately after a label for a tablejump pattern.
5012         * config/arm/arm.c (is_jump_table): Remove.
5013         (create_fix_barrier): Use tablejump_p instead.
5014         (arm_reorg): Likewise.
5015         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
5016         (thumb2_output_casesi): Likewise.
5017         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
5018         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
5019         casesi_shift_media, casesi_load_media): Likewise.
5020         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
5021         * config/microblaze/microblaze.md: Likewise.
5023 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5025         * doc/invoke.texi (-Wdate-time): Document.
5027 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
5029         * double-int.c (lshift_double, rshift_double): Remove
5030         SHIFT_COUNT_TRUNCATED handling.
5032 2013-11-05  Jeff Law  <law@redhat.com>
5034         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
5035         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
5036         * gimple-ssa-isolate-paths.c: New file.
5037         * gimple.c (check_loadstore): New function.
5038         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
5039         Verify OP is in the argument list and the argument corresponding
5040         to OP is a pointer type.  Use operand_equal_p rather than
5041         pointer equality when testing if OP is on the nonnull list.
5042         Use check_loadstore rather than count_ptr_derefs.  Handle
5043         GIMPLE_RETURN statements.
5044         * tree-vrp.c (infer_nonnull_range): Remove.
5045         * gimple.h (infer_nonnull_range): Declare.
5046         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
5047         * passes.def: Add pass_isolate_erroneous_paths.
5048         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
5049         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
5050         * tree-ssa.c (struct count_ptr_d): Remove.
5051         (count_ptr_derefs, count_uses_and_derefs): Remove.
5052         * tree-ssa.h (count_uses_and_derefs): Remove.
5054 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
5056         PR rtl-optimization/58997
5057         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
5058         get_iv_value to be in iv->mode rather than iv->extend_mode.
5059         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
5060         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
5061         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
5062         mode.
5064 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
5066         * gimple.h: Move some prototypes to gimple-expr.h and add to include
5067         list.
5068         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
5069         Move to gimple-expr.h.
5070         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
5071         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
5072         is_gimple_id, virtual_operand_p, is_gimple_addressable,
5073         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
5074         Relocate here.
5075         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
5076         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
5077         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
5078         is_gimple_address, is_gimple_invariant_address,
5079         is_gimple_ip_invariant_address, is_gimple_min_invariant,
5080         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
5081         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
5082         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
5083         gimple_decl_printable_name, useless_type_conversion_p,
5084         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
5085         gimple-expr.[ch].
5086         * gimple-expr.c: New File.
5087         (useless_type_conversion_p, gimple_set_body, gimple_body,
5088         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
5089         gimple_can_coalesce_p, extract_ops_from_tree_1,
5090         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
5091         is_gimple_address, is_gimple_invariant_address,
5092         is_gimple_ip_invariant_address, is_gimple_min_invariant,
5093         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
5094         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
5095         is_gimple_mem_ref_addr): Relocate here.
5096         * Makefile.in (OBJS): Add gimple-expr.o.
5098 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
5100         * gengtype-parse.c (struct_field_seq): Support empty structs.
5102 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
5104         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
5106 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
5108         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
5109         for !TARGET_80387.
5110         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
5111         _SOFT_FLOAT here.
5112         (LONG_DOUBLE_TYPE_SIZE): New define.
5113         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
5115 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
5117         PR c++/58724
5118         * doc/extend.texi [visibility ("visibility_type")]: Add example
5119         about visibility attribute on namespace declaration.
5121 2013-11-05  Richard Biener  <rguenther@suse.de>
5123         PR ipa/58492
5124         * passes.def (all_passes): Start with pass_fixup_cfg again.
5126 2013-11-05  Richard Biener  <rguenther@suse.de>
5128         PR tree-optimization/58955
5129         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
5130         edge direction.
5132 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5134         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
5135         little endian.
5136         (vec_pack_ufix_trunc_v2df): Likewise.
5138 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
5140         PR middle-end/58981
5141         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
5142         pattern, instead of word_mode.
5144         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
5145         Pmode for size.
5146         (set_storage_via_setmem): Likewise.
5148 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
5150         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
5151         gimple.h and the rest of the condition in eliminate_build.
5152         (eliminate_build): Call new routine.
5153         * gimple.h (phi_ssa_name_p): Delete.
5155 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
5157         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
5158         case of no prefix and reserving zero slots, because when that's the
5159         case we'll never get here.
5160         * vec.h (va_heap::reserve): Don't try and handle
5161         vec_prefix::calculate_allocation returning zero because that should
5162         never happen.
5164 2013-11-05  Richard Biener  <rguenther@suse.de>
5166         PR middle-end/58941
5167         * tree-dfa.c (get_ref_base_and_extent): Merge common code
5168         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
5169         process trailing array detection before diving into the
5170         view-converted object (and possibly apply some extra offset).
5172 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
5174         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
5175         New function.
5176         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
5178 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
5180         PR tree-optimization/58958
5181         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
5182         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
5184 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
5186         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
5187         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
5189 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
5191         PR tree-optimization/58984
5192         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
5193         set *SIZE_P if non-NULL on success.
5194         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
5195         callers.
5196         (ipcp_transform_function): Likewise.  Punt if size of access
5197         is different from TYPE_SIZE on v->value's type.
5199 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5201         * doc/invoke.texi (-fopenmp-simd): Document new option.
5202         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
5203         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
5204         * tree.c (attribute_value_equal): Ditto.
5206 2013-11-04  Wei Mi  <wmi@google.com>
5208         * sched-rgn.c (add_branch_dependences): Keep insns in
5209         a SCHED_GROUP at the end of BB to remain their location.
5211 2013-11-04  Wei Mi  <wmi@google.com>
5213         * config/i386/i386.c (memory_address_length): Extract a part
5214         of code to rip_relative_addr_p.
5215         (rip_relative_addr_p): New Function.
5216         (ix86_macro_fusion_p): Ditto.
5217         (ix86_macro_fusion_pair_p): Ditto.
5218         * config/i386/i386.h: Add new tune features about macro-fusion.
5219         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5220         * doc/tm.texi: Generated.
5221         * doc/tm.texi.in: Ditto.
5222         * haifa-sched.c (try_group_insn): New Function.
5223         (group_insns_for_macro_fusion): Ditto.
5224         (sched_init): Call group_insns_for_macro_fusion.
5225         * target.def: Add two hooks: macro_fusion_p and
5226         macro_fusion_pair_p.
5228 2013-11-04  Kostya Serebryany  <kcc@google.com>
5230         Update to match the changed asan API.
5231         * asan.c (asan_function_start): New function.
5232         (asan_emit_stack_protection): Update the string stored in the
5233         stack red zone to match new API.  Store the PC of the current
5234         function in the red zone.
5235         (asan_global_struct): Update the __asan_global definition to match
5236         the new API.
5237         (asan_add_global): Ditto.
5238         * asan.h (asan_function_start): New prototype.
5239         * final.c (final_start_function): Call asan_function_start.
5240         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
5241         to __asan_init_v3.
5243 2013-11-04  Wei Mi  <wmi@google.com>
5245         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
5246         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
5247         * config/i386/i386.c (ix86_option_override_internal): Ditto.
5248         (ix86_issue_rate): Ditto.
5249         (ix86_adjust_cost): Ditto.
5250         (ia32_multipass_dfa_lookahead): Ditto.
5251         (ix86_sched_init_global): Ditto.
5252         (get_builtin_code_for_version): Ditto.
5253         * config/i386/i386.h (enum target_cpu_default): Ditto.
5254         (enum processor_type): Ditto.
5255         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5257 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
5259         PR rtl-optimization/58967
5260         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
5261         !lra_in_progress for mode sizes bigger word.
5263 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5265         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
5266         arguments to merge instruction for little endian.
5267         (vec_widen_umult_lo_v16qi): Likewise.
5268         (vec_widen_smult_hi_v16qi): Likewise.
5269         (vec_widen_smult_lo_v16qi): Likewise.
5270         (vec_widen_umult_hi_v8hi): Likewise.
5271         (vec_widen_umult_lo_v8hi): Likewise.
5272         (vec_widen_smult_hi_v8hi): Likewise.
5273         (vec_widen_smult_lo_v8hi): Likewise.
5275 2013-11-04  Ian Lance Taylor  <iant@google.com>
5277         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
5278         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
5279         builtins that take pointers.
5280         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
5281         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
5282         (run_gcc): Pass -fnon-call-exceptions.
5284 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
5286         * optabs.c (expand_vec_perm): Revert one incorrect line from
5287         2013-10-31 change.
5289         PR tree-optimization/58978
5290         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
5291         use_stmt by single_imm_use directly.  Only call single_imm_use
5292         on SSA_NAMEs.
5294 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
5296         PR rtl-optimization/58968
5297         * lra-spills.c (return_regno_p): New function.
5298         (lra_final_code_change): Use it.
5300 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
5302         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
5303         * target.def (float_exceptions_rounding_supported_p): New hook.
5304         * targhooks.c (default_float_exceptions_rounding_supported_p): New
5305         function.
5306         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
5307         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
5308         New @hook.
5309         * doc/tm.texi: Regenerate.
5310         * config.gcc (powerpc*-*-linux*): Set extra_objs.
5311         * config/rs6000/rs6000-linux.c: New file.
5312         * config/rs6000/rs6000-protos.h
5313         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
5314         * config/rs6000/linux.h
5315         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
5316         * config/rs6000/linux64.h
5317         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
5318         * config/rs6000/t-linux (rs6000-linux.o): New rule.
5319         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
5321 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5323         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
5324         Replace the define_insn_and_split with a define_insn and two
5325         define_splits, with the split after reload re-permuting the source
5326         register to its original value.
5327         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
5328         (*vsx_le_perm_store_v8hi): Likewise.
5329         (*vsx_le_perm_store_v16qi): Likewise.
5331 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5333         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
5334         little endian.
5336 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
5338         PR tree-optimization/58946
5339         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
5340         bbs with bbinfo[idx].op != NULL before all blocks with
5341         bbinfo[idx].op == NULL.
5343 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
5345         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
5346         (avr_dump_double_int_hex): Likewise.
5347         (avr_log_vadump): Remove %D and %X handling.
5348         * config/avr/avr.c (avr_double_int_push_digit): Delete.
5349         (avr_map_op_t): Change map from double_int to unsigned int.
5350         (avr_map_op): Update accordingly.
5351         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
5352         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
5353         unsigned ints rather than double_ints.
5355 2013-11-03  Marek Polacek  <polacek@redhat.com>
5357         Implement -fsanitize=vla-bound.
5358         * opts.c (common_handle_option): Handle vla-bound.
5359         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
5360         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
5361         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
5363 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
5365         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
5366         little endian.
5368 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
5370         * config/i386/constraints.md (Ts, Tv): New address constrains.
5371         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
5372         constraint for address_no_seg_operand.
5373         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
5374         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
5375         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
5376         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
5377         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
5378         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
5379         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
5380         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
5381         constraint for vsib_address_operand.
5383 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
5385         * gcse.c (pre_delete): Remove references to regmove from comments.
5386         * recog.c: (validate_replace_rtx_1): Likewise.
5387         * config/rl78/rl78.c: Likewise.
5388         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
5389         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
5390         * common/config/mmix/mmix-common.c: Likewise.
5392 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
5394         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
5395         * gimplify.c (gimplify_compound_lval): Likewise.
5396         * graphite-clast-to-gimple.c (gloog): Likewise.
5397         * graphite-dependences.c (loop_is_parallel_p): Likewise.
5398         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
5399         (limit_scop); Likewise.
5400         (build_scops): Likewise.
5401         (dot_scop): Likewise.
5402         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
5403         (build_scop_drs): Likewise.
5404         (insert_stmts): Likewise.
5405         (insert_out_of_ssa_copy): Likewise.
5406         (remove_phi): Likewise.
5407         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
5408         * hw-doloop.c (discover_loop): Likewise.
5409         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
5410         * tree-dfa.c (dump_enumerated_decls): Likewise.
5411         * tree-if-conv.c (if_convertable_loop_p): Likewise.
5412         * tree-inline.c (tree_function_versioning): Likewise.
5413         * tree-loop-distribution.c (build_rdg): Likewise.
5414         (rdg_flag_vertex_and_dependent): Likewise.
5415         (distribute_loop): Likewise.
5416         * tree-parloops.c (loop_parallel_p): Likewise.
5417         (eliminate_local_variables): Likewise.
5418         (separate_decls_in_region): Likewise.
5419         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
5420         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
5421         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
5422         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
5423         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
5424         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
5425         (vectorizable_condition): Likewise.
5427 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
5429         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
5430         * configure: Regenerate.
5431         * config/i386/i386.md (*movdi_internal): Change
5432         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
5433         (*movdf_internal): Ditto.
5434         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
5435         * config/i386/sse.md (vec_concatv2di): Output interunit movq
5436         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
5438 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
5440         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
5441         after comment.
5443 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
5445         Automated part of renaming of symtab_node_base to symtab_node.
5447         Patch autogenerated by rename_symtab.py from
5448         https://github.com/davidmalcolm/gcc-refactoring-scripts
5449         revision 58bb219cc090b2f4516a9297d868c245495ee622
5450         with ChangeLog entry fixed up by hand.
5452         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
5453         symtab_node.
5454         (cgraph_node_for_asm): Likewise.
5455         * cgraph.h (symtab_node_base): Likewise.
5456         (cgraph_node): Likewise.
5457         (varpool_node): Likewise.
5458         (is_a_helper <cgraph_node>::test): Likewise.
5459         (is_a_helper <varpool_node>::test): Likewise.
5460         (symtab_nodes): Likewise.
5461         (symtab_register_node): Likewise.
5462         (symtab_unregister_node): Likewise.
5463         (symtab_remove_node): Likewise.
5464         (symtab_get_node): Likewise.
5465         (symtab_node_for_asm): Likewise.
5466         (symtab_node_asm_name): Likewise.
5467         (symtab_node_name): Likewise.
5468         (symtab_insert_node_to_hashtable): Likewise.
5469         (symtab_add_to_same_comdat_group): Likewise.
5470         (symtab_dissolve_same_comdat_group_list): Likewise.
5471         (dump_symtab_node): Likewise.
5472         (debug_symtab_node): Likewise.
5473         (dump_symtab_base): Likewise.
5474         (verify_symtab_node): Likewise.
5475         (verify_symtab_base): Likewise.
5476         (symtab_used_from_object_file_p): Likewise.
5477         (symtab_alias_ultimate_target): Likewise.
5478         (symtab_resolve_alias): Likewise.
5479         (fixup_same_cpp_alias_visibility): Likewise.
5480         (symtab_for_node_and_aliases): Likewise.
5481         (symtab_nonoverwritable_alias): Likewise.
5482         (availability symtab_node_availability): Likewise.
5483         (symtab_semantically_equivalent_p): Likewise.
5484         (fixup_same_cpp_alias_visibility): Likewise.
5485         (symtab_prevail_in_asm_name_hash): Likewise.
5486         (cgraph): Likewise.
5487         (varpool): Likewise.
5488         (varpool_first_variable): Likewise.
5489         (varpool_next_variable): Likewise.
5490         (varpool_first_static_initializer): Likewise.
5491         (varpool_next_static_initializer): Likewise.
5492         (varpool_first_defined_variable): Likewise.
5493         (varpool_next_defined_variable): Likewise.
5494         (cgraph_first_defined_function): Likewise.
5495         (cgraph_next_defined_function): Likewise.
5496         (cgraph_first_function): Likewise.
5497         (cgraph_next_function): Likewise.
5498         (cgraph_first_function_with_gimple_body): Likewise.
5499         (cgraph_next_function_with_gimple_body): Likewise.
5500         (symtab_alias_target): Likewise.
5501         (symtab_real_symbol_p): Likewise.
5502         (symtab_can_be_discarded): Likewise.
5503         * cgraphbuild.c (mark_address): Likewise.
5504         (mark_load): Likewise.
5505         (mark_store): Likewise.
5506         * cgraphunit.c (decide_is_symbol_needed): Likewise.
5507         (first): Likewise.
5508         (enqueue_node): Likewise.
5509         (referred_to_p): Likewise.
5510         (cgraph_process_same_body_aliases): Likewise.
5511         (analyze_functions): Likewise.
5512         (handle_alias_pairs): Likewise.
5513         (output_weakrefs): Likewise.
5514         (compile): Likewise.
5515         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
5516         * ipa-inline-analysis.c (inline_write_summary): Likewise.
5517         * ipa-prop.c (remove_described_reference): Likewise.
5518         (try_decrement_rdesc_refcount): Likewise.
5519         (ipa_edge_duplication_hook): Likewise.
5520         * ipa-ref.c (ipa_record_reference): Likewise.
5521         (ipa_maybe_record_reference): Likewise.
5522         (ipa_clone_ref): Likewise.
5523         (ipa_clone_references): Likewise.
5524         (ipa_clone_referring): Likewise.
5525         (ipa_find_reference): Likewise.
5526         (ipa_remove_stmt_references): Likewise.
5527         (ipa_clear_stmts_in_references): Likewise.
5528         * ipa-ref.h (symtab_node_base): Likewise.
5529         (ipa_ref): Likewise.
5530         (ipa_record_reference): Likewise.
5531         (ipa_maybe_record_reference): Likewise.
5532         (ipa_clone_references): Likewise.
5533         (ipa_clone_referring): Likewise.
5534         (ipa_clone_ref): Likewise.
5535         (ipa_find_reference): Likewise.
5536         (ipa_remove_stmt_references): Likewise.
5537         (ipa_clear_stmts_in_references): Likewise.
5538         * ipa-reference.c (ipa_reference_write_optimization_summary):
5539         Likewise.
5540         * ipa.c (enqueue_node): Likewise.
5541         (process_references): Likewise.
5542         (walk_polymorphic_call_targets): Likewise.
5543         (symtab_remove_unreachable_nodes): Likewise.
5544         (address_taken_from_non_vtable_p): Likewise.
5545         (comdat_can_be_unshared_p_1): Likewise.
5546         (comdat_can_be_unshared_p): Likewise.
5547         (can_replace_by_local_alias): Likewise.
5548         (function_and_variable_visibility): Likewise.
5549         * is-a.h: Likewise (within example in comment).
5550         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
5551         (lto_symtab_encoder_encode): Likewise.
5552         (lto_symtab_encoder_delete_node): Likewise.
5553         (lto_symtab_encoder_in_partition_p): Likewise.
5554         (lto_set_symtab_encoder_in_partition): Likewise.
5555         (output_refs): Likewise.
5556         (compute_ltrans_boundary): Likewise.
5557         (output_symtab): Likewise.
5558         (input_node): Likewise.
5559         (input_ref): Likewise.
5560         (input_edge): Likewise.
5561         (input_cgraph_1): Likewise.
5562         (input_refs): Likewise.
5563         (output_cgraph_opt_summary): Likewise.
5564         (input_node_opt_summary): Likewise.
5565         (input_cgraph_opt_section): Likewise.
5566         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
5567         Likewise.
5568         * lto-streamer-out.c (lto_output): Likewise.
5569         (output_symbol_p): Likewise.
5570         (produce_symtab): Likewise.
5571         * lto-streamer.h (lto_encoder_entry): Likewise.
5572         (lto_free_function_in_decl_state_for_node): Likewise.
5573         (lto_symtab_encoder_encode): Likewise.
5574         (lto_symtab_encoder_delete_node): Likewise.
5575         (lto_symtab_encoder_in_partition_p): Likewise.
5576         (lto_set_symtab_encoder_in_partition): Likewise.
5577         (lto_symtab_encoder_lookup): Likewise.
5578         (lsei_node): Likewise.
5579         (lto_symtab_encoder_deref): Likewise.
5580         * symtab.c (symtab_hash): Likewise.
5581         (assembler_name_hash): Likewise.
5582         (symtab_nodes): Likewise.
5583         (hash_node): Likewise.
5584         (eq_node): Likewise.
5585         (hash_node_by_assembler_name): Likewise.
5586         (eq_assembler_name): Likewise.
5587         (insert_to_assembler_name_hash): Likewise.
5588         (unlink_from_assembler_name_hash): Likewise.
5589         (symtab_prevail_in_asm_name_hash): Likewise.
5590         (symtab_register_node): Likewise.
5591         (symtab_insert_node_to_hashtable): Likewise.
5592         (symtab_unregister_node): Likewise.
5593         (symtab_get_node): Likewise.
5594         (symtab_remove_node): Likewise.
5595         (symtab_initialize_asm_name_hash): Likewise.
5596         (symtab_node_for_asm): Likewise.
5597         (symtab_add_to_same_comdat_group): Likewise.
5598         (symtab_dissolve_same_comdat_group_list): Likewise.
5599         (symtab_node_asm_name): Likewise.
5600         (symtab_node_name): Likewise.
5601         (dump_symtab_base): Likewise.
5602         (dump_symtab_node): Likewise.
5603         (dump_symtab): Likewise.
5604         (debug_symtab_node): Likewise.
5605         (verify_symtab_base): Likewise.
5606         (verify_symtab_node): Likewise.
5607         (verify_symtab): Likewise.
5608         (symtab_used_from_object_file_p): Likewise.
5609         (symtab_node_availability): Likewise.
5610         (symtab_alias_ultimate_target): Likewise.
5611         (fixup_same_cpp_alias_visibility): Likewise.
5612         (symtab_resolve_alias): Likewise.
5613         (symtab_for_node_and_aliases): Likewise.
5614         (symtab_for_node_and_aliases): Likewise.
5615         (symtab_nonoverwritable_alias_1): Likewise.
5616         (symtab_nonoverwritable_alias): Likewise.
5617         (symtab_semantically_equivalent_p): Likewise.
5618         * value-prof.c (init_node_map): Likewise.
5619         * varasm.c (find_decl): Likewise.
5620         * varpool.c (varpool_node_for_asm): Likewise.
5621         (varpool_remove_unreferenced_decls): Likewise.
5623 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
5625         Manual part of renaming of symtab_node_base to symtab_node.
5627         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
5628         clashes with the preferred name for the base class.
5629         (const_symtab_node): Remove redundant typedef.
5631 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
5633         * optabs.c (expand_vec_perm): Avoid vector mode punning
5634         SUBREGs in SET_DEST.
5635         * expmed.c (store_bit_field_1): Likewise.
5636         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
5637         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
5638         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
5639         * config/i386/i386.c (ix86_expand_vector_move_misalign,
5640         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
5641         ix86_expand_sse_unpack, ix86_expand_args_builtin,
5642         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
5643         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
5644         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
5645         expand_vec_perm_vpshufb2_vpermq,
5646         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
5647         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
5648         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
5649         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
5650         than *d itself.
5652 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
5654         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
5655         Use gcc_unreachable for unhandled modes.  Do not check results of
5656         expand_simple_binop.  If not expanded to target, move the result.
5658 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
5659             Shiva Chen  <shiva0217@gmail.com>
5661         * config.gcc (nds32*-*-*): Add nds32 target.
5662         * config/nds32/nds32.c: New file.
5663         * config/nds32/nds32.h: New file.
5664         * config/nds32/nds32.md: New file.
5665         * config/nds32/constants.md: New file.
5666         * config/nds32/constraints.md: New file.
5667         * config/nds32/iterators.md: New file.
5668         * config/nds32/nds32-doubleword.md: New file.
5669         * config/nds32/nds32-intrinsic.md: New file.
5670         * config/nds32/nds32_intrinsic.h: New file.
5671         * config/nds32/nds32-modes.def: New file.
5672         * config/nds32/nds32-multiple.md: New file.
5673         * config/nds32/nds32.opt: New file.
5674         * config/nds32/nds32-opts.h: New file.
5675         * config/nds32/nds32-protos.h: New file.
5676         * config/nds32/nds32-peephole2.md: New file.
5677         * config/nds32/pipelines.md: New file.
5678         * config/nds32/predicates.md: New file.
5679         * config/nds32/t-mlibs: New file.
5680         * common/config/nds32: New directory and files.
5682         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
5683         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
5684         * doc/install.texi (Cross-Compiler-Specific Options): Document
5685         --with-nds32-lib for nds32 target.
5686         * doc/extend.texi (Function Attributes, Target Builtins): Document
5687         nds32 specific attributes.
5689 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
5691         * lra-constraints (process_alt_operands): Use the result
5692         elimination register for operand when matching constraints.
5694 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
5696         * tree-vrp.c (maybe_set_nonzero_bits): New function.
5697         (remove_range_assertions): Call it.
5699         * tree.c (tree_ctz): New function.
5700         * tree.h (tree_ctz): New prototype.
5701         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
5702         first argument from tree to const_tree.
5703         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
5704         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
5705         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
5706         static.
5707         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
5708         * tree-vect-loop.c (vect_analyze_loop_operations,
5709         vect_transform_loop): Don't force scalar loop for bound just because
5710         number of iterations is unknown, only do it if it is not known to be
5711         a multiple of vectorization_factor.
5712         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
5714         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
5715         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
5716         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
5717         (set_nonzero_bits, get_nonzero_bits): New prototypes.
5718         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
5719         a default def isn't partially constant.
5720         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
5721         is known to be partially zero.
5722         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
5723         to see if a default def isn't partially constant.
5724         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
5725         creation of a range, if VR_RANGE, try to improve nonzero_bits from
5726         the range.
5727         (set_nonzero_bits, get_nonzero_bits): New functions.
5729         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
5730         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
5731         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
5732         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
5733         uses but in the condition and ASSERT_EXPR and the other successor of
5734         the predecessor bb is __builtin_unreachable (), set_range_info of the
5735         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
5737 2013-10-31  Martin Jambor  <mjambor@suse.cz>
5739         PR rtl-optimization/58934
5740         Revert:
5741         2013-10-30  Martin Jambor  <mjambor@suse.cz>
5742         PR rtl-optimization/10474
5743         * ira.c (find_moveable_pseudos): Do not calculate dominance info
5744         nor df analysis.
5745         (interesting_dest_for_shprep): New function.
5746         (split_live_ranges_for_shrink_wrap): Likewise.
5747         (ira): Calculate dominance info and df analysis. Call
5748         split_live_ranges_for_shrink_wrap.
5750 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
5751             Yury Gribov  <y.gribov@samsung.com>
5753         PR sanitizer/58543
5754         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
5755         shadow pointer to avoid clobbering the main one.
5757 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5759         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
5761 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
5763         PR bootstrap/58933
5764         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
5765         it for calling update_costs_from_allocno.
5766         (assign_hard_reg): Call restore_costs_from_copies only for
5767         !retry_p.  Pass new argument to update_costs_from_copies.
5768         (color_pass): Pass new argument to update_costs_from_copies.
5769         (ira_mark_allocation_change): Ditto.
5771 2013-10-30  Sharad Singhai  <singhai@google.com>
5773         PR middle-end/58134
5774         * opts.c (common_handle_option): Remove deprecated option
5775         -ftree-vectorizer-verbose.
5776         * doc/invoke.texi (Debugging Options): Ditto.
5777         * opts-global.c (handle_common_deferred_options): Ditto.
5778         (dump_remap_tree_vectorizer_verbose): Delete.
5779         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
5781 2013-10-30  DJ Delorie  <dj@redhat.com>
5783         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
5784         that take no arguments.
5786 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
5788         PR other/58545
5789         * reload1.c (update_eliminables_and_spill): New function, broken
5790         out of reload.
5791         (reload): Use it.  Check for frame size change after frame size
5792         alignment, and call update_eliminables_and_spill first if continue-ing.
5794 2013-10-30  Cong Hou  <congh@google.com>
5796         PR target/58762
5797         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
5798         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
5799         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
5801 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
5803         PR rtl-optimization/58369
5804         * reload1.c (compute_reload_subreg_offset): New function.
5805         (choose_reload_regs): Use it to pass endian-correct
5806         offset to subreg_regno_offset.
5808 2013-10-30  Tobias Burnus  <burnus@net-b.de>
5810         PR other/33426
5811         * tree-cfg.c (replace_loop_annotate): Replace warning by
5812         warning_at.
5814 2013-10-30  Jason Merrill  <jason@redhat.com>
5816         * configure.ac (loose_warn): Add -Wno-format if
5817         --disable-build-format-warnings.
5819 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
5821         * cgraphunit.c (analyze_functions): Split symtab_node declarations
5822         onto multiple lines to make things easier for rename_symtab.py.
5824         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
5825         (symtab_semantically_equivalent_p): Likewise.
5827 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
5829         PR target/58784
5830         * lra.c (check_rtl): Remove address check before LRA work.
5832 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
5834         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
5835         POINTER_PLUS_EXPR in the defining statement.
5837 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
5839         * regmove.c: Remove.
5840         * tree-pass.h (make_pass_regmove): Remove.
5841         * timevar.def (TV_REGMOVE): Remove.
5842         * passes.def (pass_regmove): Remove.
5843         * opts.c (default_options_table): Remove entry for regmove.
5844         * doc/passes.texi: Remove regmove pass description.
5845         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
5846         options.
5847         (-fdump-rtl-regmove): Ditto.
5848         * common.opt (foptimize-register-move, fregmove): Ignore.
5849         * Makefile.in (OBJS): Remove regmove.o.
5850         * regmove.c: Remove.
5851         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
5852         and type.
5853         (struct ira_allocno) New member allocno_prefs.
5854         (ALLOCNO_PREFS): New macro.
5855         (ira_prefs, ira_prefs_num): New external vars.
5856         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
5857         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
5858         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
5859         Ditto.
5860         (ira_add_allocno_copy_to_list): Remove prototype.
5861         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
5862         (ira_pref_iterator): New type.
5863         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
5864         (FOR_EACH_PREF): New macro.
5865         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
5866         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
5867         code.
5868         (ira_setup_alts): New function.
5869         (decrease_live_ranges_number): New function.
5870         (ira): Call the above function.
5871         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
5872         (ira_create_allocno): Initialize allocno prefs.
5873         (pref_pool, pref_vec): New static vars.
5874         (initiate_prefs, find_allocno_pref, ira_create_pref): New
5875         functions.
5876         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
5877         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
5878         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
5879         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
5880         (ira_add_allocno_copy_to_list): Make static.  Rename to
5881         add_allocno_copy_to_list.
5882         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
5883         swap_allocno_copy_ends_if_necessary.
5884         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
5885         ira_remove_allocno_prefs.
5886         (ira_flattening): Ditto.
5887         (ira_build): Call initiate_prefs, print_prefs.
5888         (ira_destroy): Call finish_prefs.
5889         * ira-color.c (struct update_cost_record): New.
5890         (struct allocno_color_data): Add new member update_cost_records.
5891         (update_cost_record_pool): New static var.
5892         (init_update_cost_records, get_update_cost_record): New functions.
5893         (free_update_cost_record_list, finish_update_cost_records): Ditto.
5894         (struct update_cost_queue_elem): Add member from.
5895         (initiate_cost_update): Call init_update_cost_records.
5896         (finish_cost_update): Call finish_update_cost_records.
5897         (queue_update_cost, get_next_update_cost): Add new param from.
5898         (Update_allocno_cost, update_costs_from_allocno): New functions.
5899         (update_costs_from_prefs): Ditto.
5900         (update_copy_costs): Rename to update_costs_from_copies.
5901         (restore_costs_from_copies): New function.
5902         (update_conflict_hard_regno_costs): Don't go back.
5903         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
5904         more debug info.
5905         (pop_allocnos): Add priniting more debug info.
5906         (color_allocnos): Remove prefs for conflicting hard regs.
5907         Call update_costs_from_prefs.
5908         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
5909         (get_dup_num): Rename, modify, and move to ira.c
5910         (process_regs_for_copy): Add prefs.
5911         (add_insn_allocno_copies): Put src as first arg of
5912         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
5913         * ira-costs.c (record_reg_classes): Modify and move code into
5914         record_operands_costs.
5915         (find_costs_and_classes): Create prefs for the hard reg of small
5916         reg class.
5917         (process_bb_node_for_hard_reg_moves): Add prefs.
5919 2013-10-30  Richard Biener  <rguenther@suse.de>
5921         PR middle-end/57100
5922         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
5923         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
5924         as worker for ...
5925         (pre_and_rev_post_order_compute): ... which now wraps it.
5926         * graph.c (draw_cfg_nodes_no_loops): Use
5927         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
5928         on cfun.
5930 2013-10-30  Christian Bruel  <christian.bruel@st.com>
5932         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
5933         (sh_expand_cmpstr): Handle known align and schedule improvements.
5934         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
5935         * config/sh/sh.md (cmpstrnsi): New pattern.
5937 2013-10-30  Martin Jambor  <mjambor@suse.cz>
5939         PR rtl-optimization/10474
5940         * ira.c (find_moveable_pseudos): Do not calculate dominance info
5941         nor df analysis.
5942         (interesting_dest_for_shprep): New function.
5943         (split_live_ranges_for_shrink_wrap): Likewise.
5944         (ira): Calculate dominance info and df analysis. Call
5945         split_live_ranges_for_shrink_wrap.
5947 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5949         PR target/58854
5950         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
5952 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
5954         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
5955         * tree.h (POINTER_BOUNDS_P): New.
5956         (BOUNDED_TYPE_P): New.
5957         (BOUNDED_P): New.
5958         (pointer_bounds_type_node): New.
5959         * tree.c (build_common_tree_nodes): Initialize
5960         pointer_bounds_type_node.
5961         * gimple.h (gimple_call_get_nobnd_arg_index): New.
5962         (gimple_call_num_nobnd_args): New.
5963         (gimple_call_nobnd_arg): New.
5964         (gimple_return_retbnd): New.
5965         (gimple_return_set_retbnd): New
5966         * gimple.c (gimple_build_return): Increase number of ops
5967         for return statement.
5968         (gimple_call_get_nobnd_arg_index): New.
5969         * gimple-pretty-print.c (dump_gimple_return): Print second op.
5971 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
5973         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
5974         with "chkp ctor" and "bnd_legacy" attributes.
5975         * gimplify.c (gimplify_init_constructor): Avoid infinite
5976         loop during gimplification of bounds initializer.
5978 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
5980         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
5981         (handle_bnd_legacy): New.
5982         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
5983         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
5984         attributes.
5986 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
5988         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
5989         (BT_FN_PTR_CONST_PTR): New.
5990         (BT_FN_CONST_PTR_CONST_PTR): New.
5991         (BT_FN_PTR_CONST_PTR_SIZE): New.
5992         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
5993         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
5994         (BT_FN_VOID_CONST_PTR_SIZE): New.
5995         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
5996         * chkp-builtins.def: New.
5997         * builtins.def: include chkp-builtins.def.
5998         (DEF_CHKP_BUILTIN): New.
5999         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
6000         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
6001         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
6002         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
6003         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
6004         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
6005         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
6006         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
6007         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
6008         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
6009         * common.opt (fcheck-pointer-bounds): New.
6010         * toplev.c (process_options): Check Pointer Bounds Checker is
6011         supported.
6012         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
6014 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
6016         * target.def (builtin_chkp_function): New.
6017         (chkp_bound_type): New.
6018         (chkp_bound_mode): New.
6019         (fn_abi_va_list_bounds_size): New.
6020         (load_bounds_for_arg): New.
6021         (store_bounds_for_arg): New.
6022         * targhooks.h (default_load_bounds_for_arg): New.
6023         (default_store_bounds_for_arg): New.
6024         (default_fn_abi_va_list_bounds_size): New.
6025         (default_chkp_bound_type): New.
6026         (default_chkp_bound_mode): New.
6027         (default_builtin_chkp_function): New.
6028         * targhooks.c (default_load_bounds_for_arg): New.
6029         (default_store_bounds_for_arg): New.
6030         (default_fn_abi_va_list_bounds_size): New.
6031         (default_chkp_bound_type): New.
6032         (default_chkp_bound_mode); New.
6033         (default_builtin_chkp_function): New.
6034         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
6035         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
6036         (TARGET_STORE_BOUNDS_FOR_ARG): New.
6037         (TARGET_BUILTIN_CHKP_FUNCTION): New.
6038         (TARGET_CHKP_BOUND_TYPE): New.
6039         (TARGET_CHKP_BOUND_MODE): New.
6040         * doc/tm.texi: Regenerated.
6041         * langhooks.h (lang_hooks): Add chkp_supported field.
6042         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
6043         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
6045 2013-10-29  Andrew Pinski <apinski@cavium.com>
6047         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
6048         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
6049         fails, combining the branches anyways.
6050         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
6051         increases the number of combinings.
6052         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
6054 2013-10-29  Mike Stump  <mikestump@comcast.net>
6056         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
6057         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
6058         (make_vector_mode): Increase namebuf to 16.
6059         (emit_insn_modes_h): When processing BImode, don't
6060         also match partial int modes.
6061         (emit_class_narrowest_mode): Likewise.
6063         * config/bfin/bfin-modes.def: Add precision to PDI.
6064         * config/m32c/m32c-modes.def: Add precision to PSI.
6065         * config/msp430/msp430-modes.def: Add precision to PSI.
6066         * config/rs6000/rs6000-modes.def: Add precision to PTI.
6067         * config/sh/sh-modes.def: Add precision to PSI and PDI.
6069 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
6071         PR target/54236
6072         * config/sh/sh.md (*addc): Rename existing variations to ...
6073         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
6074         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
6075         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
6076         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
6078 2013-10-29  Teresa Johnson  <tejohnson@google.com>
6080         PR ipa/58862
6081         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
6082         insanities when updating probabilities.
6084 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6086         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
6087         prettyprinter for cgraph_node to reflect the conversion of the
6088         symtable types to a C++ class hierarchy: it now *is* a
6089         symtab_node_base, rather than having one (named "symbol").
6091 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6093         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
6094         __cilkrts_pop_frame.  If matched, then return true for built-in
6095         function name.
6096         (expand_builtin): Added BUILT_IN_CILK_DETACH and
6097         BUILT_IN_CILK_POP_FRAME case.
6098         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
6099         (lhs_cilk_detect_spawn): Likewise.
6100         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
6101         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
6102         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
6103         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
6104         (LANG_HOOKS_CILKPLUS): Likewise.
6105         * tree.h (CILK_SPAWN_FN): Likewise.
6106         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
6107         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
6108         (OBJS): Added cilk-common.o.
6109         (BUILTINS_DEF): Added cilk-builtins.def.
6110         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
6111         (lhd_cilk_detect_spawn): Likewise.
6112         * langhooks.h (lang_hooks_for_cilkplus): New struct.
6113         (struct lang_hooks): Added new field called "cilkplus."
6114         * cilk-common.c: New file.
6115         * cilk.h: Likewise.
6116         * cilk-builtins.def: Likewise.
6117         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
6118         "__cilk" macro and set it to 200.
6119         * function.h (struct function::cilk_frame_decl): New field.
6120         (struct function::is_cilk_function): Likewise.
6121         (struct function::calls_cilk_spawn): Likewise.
6122         * gimplify.c (gimplify_call_expr): Added a check if the function call
6123         being gimplified is a spawn detach point.  If so, then add pop_frame
6124         and detach function calls.
6125         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
6126         for gimplifying _Cilk_spawn and _Cilk_sync statements.
6127         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
6128         function.  If so, added a _Cilk_sync and gimplified it.
6129         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
6130         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
6131         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
6132         spawner function.
6133         (can_inline_edge_p): Prevent inling of spawnee function.
6134         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
6135         for functions that use Cilk keywords.
6136         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
6137         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
6138         CILK_SYNC_STMT cases.
6139         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
6140         trees.
6141         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
6142         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
6143         * passes.texi (Cilk Keywords): New section that describes the compiler
6144         code changes for handling Cilk Keywords.
6146 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6148         Patch autogenerated by refactor_symtab.py from
6149         https://github.com/davidmalcolm/gcc-refactoring-scripts
6150         revision 58bb219cc090b2f4516a9297d868c245495ee622
6152         * asan.c (asan_finish_file): Update for conversion of symtab types to
6153         a true class hierarchy.
6154         * cfgexpand.c (estimated_stack_frame_size): Likewise.
6155         * cgraph.c (cgraph_get_body): Likewise.
6156         (cgraph_get_create_real_symbol_node): Likewise.
6157         (verify_cgraph_node): Likewise.
6158         (verify_edge_corresponds_to_fndecl): Likewise.
6159         (verify_edge_count_and_frequency): Likewise.
6160         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
6161         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
6162         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
6163         (cgraph_node_cannot_return): Likewise.
6164         (cgraph_set_pure_flag_1): Likewise.
6165         (cgraph_set_const_flag_1): Likewise.
6166         (cgraph_set_nothrow_flag_1): Likewise.
6167         (cgraph_make_node_local_1): Likewise.
6168         (cgraph_for_node_and_aliases): Likewise.
6169         (cgraph_for_node_thunks_and_aliases): Likewise.
6170         (cgraph_node_can_be_local_p): Likewise.
6171         (cgraph_node_cannot_be_local_p_1): Likewise.
6172         (cgraph_function_body_availability): Likewise.
6173         (dump_cgraph_node): Likewise.
6174         (cgraph_rtl_info): Likewise.
6175         (cgraph_mark_address_taken_node): Likewise.
6176         (cgraph_remove_node): Likewise.
6177         (cgraph_release_function_body): Likewise.
6178         (cgraph_update_edges_for_call_stmt_node): Likewise.
6179         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
6180         (cgraph_make_edge_direct): Likewise.
6181         (cgraph_resolve_speculation): Likewise.
6182         (cgraph_speculative_call_info): Likewise.
6183         (cgraph_turn_edge_to_speculative): Likewise.
6184         (cgraph_create_edge_1): Likewise.
6185         (cgraph_set_call_stmt): Likewise.
6186         (cgraph_node_for_asm): Likewise.
6187         (cgraph_add_thunk): Likewise.
6188         (cgraph_same_body_alias): Likewise.
6189         (cgraph_create_function_alias): Likewise.
6190         (cgraph_create_node): Likewise.
6191         (cgraph_create_empty_node): Likewise.
6192         (record_function_versions): Likewise.
6193         (used_from_object_file_p): Likewise.
6194         * cgraph.h (symtab_can_be_discarded): Likewise.
6195         (symtab_real_symbol_p): Likewise.
6196         (cgraph_mark_force_output_node): Likewise.
6197         (cgraph_edge_recursive_p): Likewise.
6198         (symtab_alias_target): Likewise.
6199         (varpool_all_refs_explicit_p): Likewise.
6200         (varpool_can_remove_if_no_refs): Likewise.
6201         (cgraph_only_called_directly_or_aliased_p): Likewise.
6202         (cgraph_next_function_with_gimple_body): Likewise.
6203         (cgraph_first_function_with_gimple_body): Likewise.
6204         (cgraph_function_with_gimple_body_p): Likewise.
6205         (cgraph_next_function): Likewise.
6206         (cgraph_first_function): Likewise.
6207         (cgraph_next_defined_function): Likewise.
6208         (cgraph_first_defined_function): Likewise.
6209         (varpool_next_defined_variable): Likewise.
6210         (varpool_first_defined_variable): Likewise.
6211         (varpool_next_static_initializer): Likewise.
6212         (varpool_first_static_initializer): Likewise.
6213         (varpool_next_variable): Likewise.
6214         (varpool_first_variable): Likewise.
6215         (varpool_node_name): Likewise.
6216         (varpool): Likewise.
6217         (cgraph): Likewise.
6218         (is_a_helper <varpool_node>::test): Likewise.
6219         (is_a_helper <cgraph_node>::test): Likewise.
6220         (varpool_variable_node): Likewise.
6221         (cgraph_function_or_thunk_node): Likewise.
6222         (varpool_alias_target): Likewise.
6223         (cgraph_alias_target): Likewise.
6224         (cgraph_node_name): Likewise.
6225         (varpool_node_asm_name): Likewise.
6226         (cgraph_node_asm_name): Likewise.
6227         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
6228         (cgraph_rebuild_references): Likewise.
6229         (rebuild_cgraph_edges): Likewise.
6230         (record_eh_tables): Likewise.
6231         (build_cgraph_edges): Likewise.
6232         (mark_store): Likewise.
6233         (mark_load): Likewise.
6234         (mark_address): Likewise.
6235         (record_type_list): Likewise.
6236         (record_reference): Likewise.
6237         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
6238         (cgraph_materialize_clone): Likewise.
6239         (cgraph_function_versioning): Likewise.
6240         (cgraph_copy_node_for_versioning): Likewise.
6241         (update_call_expr): Likewise.
6242         (cgraph_find_replacement_node): Likewise.
6243         (cgraph_create_virtual_clone): Likewise.
6244         (cgraph_clone_node): Likewise.
6245         * cgraphunit.c (compile): Likewise.
6246         (output_weakrefs): Likewise.
6247         (output_in_order): Likewise.
6248         (expand_function): Likewise.
6249         (assemble_thunks_and_aliases): Likewise.
6250         (expand_thunk): Likewise.
6251         (mark_functions_to_output): Likewise.
6252         (handle_alias_pairs): Likewise.
6253         (analyze_functions): Likewise.
6254         (walk_polymorphic_call_targets): Likewise.
6255         (varpool_finalize_decl): Likewise.
6256         (process_function_and_variable_attributes): Likewise.
6257         (cgraph_process_same_body_aliases): Likewise.
6258         (analyze_function): Likewise.
6259         (cgraph_add_new_function): Likewise.
6260         (cgraph_finalize_function): Likewise.
6261         (referred_to_p): Likewise.
6262         (cgraph_reset_node): Likewise.
6263         (cgraph_process_new_functions): Likewise.
6264         (enqueue_node): Likewise.
6265         (decide_is_symbol_needed): Likewise.
6266         * coverage.c (coverage_compute_profile_id): Likewise.
6267         * dbxout.c (dbxout_expand_expr): Likewise.
6268         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
6269         (reference_to_unused): Likewise.
6270         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6271         * gimplify.c (unvisit_body): Likewise.
6272         (unshare_body): Likewise.
6273         * ipa-cp.c (ipcp_generate_summary): Likewise.
6274         (ipcp_decision_stage): Likewise.
6275         (identify_dead_nodes): Likewise.
6276         (decide_whether_version_node): Likewise.
6277         (decide_about_value): Likewise.
6278         (perhaps_add_new_callers): Likewise.
6279         (create_specialized_node): Likewise.
6280         (update_profiling_info): Likewise.
6281         (ipcp_propagate_stage): Likewise.
6282         (estimate_local_effects): Likewise.
6283         (good_cloning_opportunity_p): Likewise.
6284         (devirtualization_time_bonus): Likewise.
6285         (propagate_constants_accross_call): Likewise.
6286         (initialize_node_lattices): Likewise.
6287         (ipcp_cloning_candidate_p): Likewise.
6288         (determine_versionability): Likewise.
6289         (print_all_lattices): Likewise.
6290         (print_lattice): Likewise.
6291         (ipcp_discover_new_direct_edges): Likewise.
6292         * ipa-devirt.c (ipa_devirt): Likewise.
6293         (likely_target_p): Likewise.
6294         (update_type_inheritance_graph): Likewise.
6295         (possible_polymorphic_call_target_p): Likewise.
6296         (dump_possible_polymorphic_call_targets): Likewise.
6297         (devirt_variable_node_removal_hook): Likewise.
6298         (record_binfo): Likewise.
6299         (maybe_record_node): Likewise.
6300         (build_type_inheritance_graph): Likewise.
6301         * ipa-inline-analysis.c (inline_write_summary): Likewise.
6302         (inline_generate_summary): Likewise.
6303         (inline_analyze_function): Likewise.
6304         (do_estimate_growth): Likewise.
6305         (simple_edge_hints): Likewise.
6306         (estimate_node_size_and_time): Likewise.
6307         (estimate_edge_devirt_benefit): Likewise.
6308         (compute_inline_parameters): Likewise.
6309         (estimate_function_body_sizes): Likewise.
6310         (compute_bb_predicates): Likewise.
6311         (initialize_inline_failed): Likewise.
6312         (dump_inline_summary): Likewise.
6313         (dump_inline_edge_summary): Likewise.
6314         * ipa-inline-transform.c (inline_transform): Likewise.
6315         (preserve_function_body_p): Likewise.
6316         (save_inline_function_body): Likewise.
6317         (inline_call): Likewise.
6318         (clone_inlined_nodes): Likewise.
6319         (can_remove_node_now_p): Likewise.
6320         (can_remove_node_now_p_1): Likewise.
6321         * ipa-inline.c (early_inliner): Likewise.
6322         (early_inline_small_functions): Likewise.
6323         (inline_always_inline_functions): Likewise.
6324         (ipa_inline): Likewise.
6325         (flatten_function): Likewise.
6326         (inline_small_functions): Likewise.
6327         (speculation_useful_p): Likewise.
6328         (recursive_inlining): Likewise.
6329         (update_caller_keys): Likewise.
6330         (reset_edge_caches): Likewise.
6331         (update_edge_key): Likewise.
6332         (edge_badness): Likewise.
6333         (relative_time_benefit): Likewise.
6334         (want_inline_self_recursive_call_p): Likewise.
6335         (want_inline_small_function_p): Likewise.
6336         (want_early_inline_function_p): Likewise.
6337         (num_calls): Likewise.
6338         (can_early_inline_edge_p): Likewise.
6339         (can_inline_edge_p): Likewise.
6340         (report_inline_failed_reason): Likewise.
6341         * ipa-profile.c (ipa_profile): Likewise.
6342         (ipa_propagate_frequency): Likewise.
6343         (ipa_propagate_frequency_1): Likewise.
6344         (ipa_profile_generate_summary): Likewise.
6345         * ipa-prop.c (ipcp_transform_function): Likewise.
6346         (read_replacements_section): Likewise.
6347         (ipa_prop_read_section): Likewise.
6348         (ipa_modify_call_arguments): Likewise.
6349         (ipa_print_node_params): Likewise.
6350         (propagate_controlled_uses): Likewise.
6351         (update_indirect_edges_after_inlining): Likewise.
6352         (remove_described_reference): Likewise.
6353         (ipa_make_edge_direct_to_target): Likewise.
6354         (ipa_analyze_node): Likewise.
6355         (ipa_analyze_params_uses): Likewise.
6356         (ipa_compute_jump_functions): Likewise.
6357         (ipa_get_callee_param_type): Likewise.
6358         (ipa_print_node_jump_functions): Likewise.
6359         (ipa_initialize_node_params): Likewise.
6360         (ipa_populate_param_decls): Likewise.
6361         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
6362         (write_agg_replacement_chain): Likewise.
6363         (ipa_write_node_info): Likewise.
6364         (ipa_edge_duplication_hook): Likewise.
6365         (try_decrement_rdesc_refcount): Likewise.
6366         * ipa-pure-const.c (propagate_nothrow): Likewise.
6367         (propagate_pure_const): Likewise.
6368         (pure_const_read_summary): Likewise.
6369         (pure_const_write_summary): Likewise.
6370         (analyze_function): Likewise.
6371         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
6372         (ipa_ref_referring_ref_list): Likewise.
6373         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
6374         (ipa_remove_stmt_references): Likewise.
6375         (ipa_find_reference): Likewise.
6376         (ipa_dump_referring): Likewise.
6377         (ipa_dump_references): Likewise.
6378         (ipa_record_reference): Likewise.
6379         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
6380         (ipa_reference_write_optimization_summary): Likewise.
6381         (write_node_summary_p): Likewise.
6382         (propagate): Likewise.
6383         (read_write_all_from_decl): Likewise.
6384         (generate_summary): Likewise.
6385         (analyze_function): Likewise.
6386         (propagate_bits): Likewise.
6387         (ipa_reference_get_not_written_global): Likewise.
6388         (ipa_reference_get_not_read_global): Likewise.
6389         * ipa-split.c (execute_split_functions): Likewise.
6390         (split_function): Likewise.
6391         * ipa-utils.c (ipa_merge_profiles): Likewise.
6392         (dump_cgraph_node_set): Likewise.
6393         (ipa_reverse_postorder): Likewise.
6394         (ipa_edge_within_scc): Likewise.
6395         (ipa_get_nodes_in_cycle): Likewise.
6396         (ipa_free_postorder_info): Likewise.
6397         (ipa_reduced_postorder): Likewise.
6398         (searchc): Likewise.
6399         (recursive_call_p): Likewise.
6400         * ipa.c (ipa_cdtor_merge): Likewise.
6401         (record_cdtor_fn): Likewise.
6402         (function_and_variable_visibility): Likewise.
6403         (varpool_externally_visible_p): Likewise.
6404         (cgraph_externally_visible_p): Likewise.
6405         (comdat_can_be_unshared_p): Likewise.
6406         (comdat_can_be_unshared_p_1): Likewise.
6407         (address_taken_from_non_vtable_p): Likewise.
6408         (ipa_discover_readonly_nonaddressable_vars): Likewise.
6409         (symtab_remove_unreachable_nodes): Likewise.
6410         (walk_polymorphic_call_targets): Likewise.
6411         (process_references): Likewise.
6412         (enqueue_node): Likewise.
6413         (has_addr_references_p): Likewise.
6414         (cgraph_non_local_node_p_1): Likewise.
6415         * is-a.h (varpool_analyze_node): Likewise.
6416         * lto-cgraph.c (input_symtab): Likewise.
6417         (merge_profile_summaries): Likewise.
6418         (input_cgraph_1): Likewise.
6419         (input_edge): Likewise.
6420         (input_varpool_node): Likewise.
6421         (input_node): Likewise.
6422         (input_overwrite_node): Likewise.
6423         (compute_ltrans_boundary): Likewise.
6424         (output_refs): Likewise.
6425         (lto_output_varpool_node): Likewise.
6426         (lto_output_node): Likewise.
6427         (reachable_from_other_partition_p): Likewise.
6428         (referenced_from_other_partition_p): Likewise.
6429         (lto_output_edge): Likewise.
6430         (output_node_opt_summary): Likewise.
6431         (add_node_to): Likewise.
6432         (reachable_from_this_partition_p): Likewise.
6433         (lto_set_symtab_encoder_in_partition): Likewise.
6434         (lto_symtab_encoder_in_partition_p): Likewise.
6435         (lto_set_symtab_encoder_encode_initializer): Likewise.
6436         (lto_symtab_encoder_encode_initializer_p): Likewise.
6437         (lto_set_symtab_encoder_encode_body): Likewise.
6438         (lto_symtab_encoder_encode_body_p): Likewise.
6439         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6440         Likewise.
6441         * lto-streamer-in.c (lto_read_body): Likewise.
6442         (fixup_call_stmt_edges): Likewise.
6443         (fixup_call_stmt_edges_1): Likewise.
6444         * lto-streamer-out.c (produce_symtab): Likewise.
6445         (output_symbol_p): Likewise.
6446         (write_symbol): Likewise.
6447         (lto_output): Likewise.
6448         (copy_function): Likewise.
6449         (output_function): Likewise.
6450         * passes.c (function_called_by_processed_nodes_p): Likewise.
6451         (ipa_write_optimization_summaries): Likewise.
6452         (ipa_write_summaries): Likewise.
6453         (do_per_function_toporder): Likewise.
6454         (do_per_function): Likewise.
6455         (dump_passes): Likewise.
6456         * symtab.c (symtab_semantically_equivalent_p): Likewise.
6457         (symtab_nonoverwritable_alias): Likewise.
6458         (symtab_nonoverwritable_alias_1): Likewise.
6459         (symtab_for_node_and_aliases): Likewise.
6460         (symtab_resolve_alias): Likewise.
6461         (fixup_same_cpp_alias_visibility): Likewise.
6462         (symtab_alias_ultimate_target): Likewise.
6463         (symtab_used_from_object_file_p): Likewise.
6464         (verify_symtab_base): Likewise.
6465         (dump_symtab_base): Likewise.
6466         (symtab_node_name): Likewise.
6467         (symtab_node_asm_name): Likewise.
6468         (symtab_dissolve_same_comdat_group_list): Likewise.
6469         (symtab_add_to_same_comdat_group): Likewise.
6470         (symtab_unregister_node): Likewise.
6471         (symtab_insert_node_to_hashtable): Likewise.
6472         (symtab_register_node): Likewise.
6473         (unlink_from_assembler_name_hash): Likewise.
6474         (insert_to_assembler_name_hash): Likewise.
6475         (eq_assembler_name): Likewise.
6476         (hash_node_by_assembler_name): Likewise.
6477         (eq_node): Likewise.
6478         (hash_node): Likewise.
6479         * toplev.c (wrapup_global_declaration_2): Likewise.
6480         * trans-mem.c (ipa_tm_execute): Likewise.
6481         (ipa_tm_transform_clone): Likewise.
6482         (ipa_tm_transform_transaction): Likewise.
6483         (ipa_tm_transform_calls_redirect): Likewise.
6484         (ipa_tm_insert_gettmclone_call): Likewise.
6485         (ipa_tm_insert_irr_call): Likewise.
6486         (ipa_tm_create_version): Likewise.
6487         (ipa_tm_create_version_alias): Likewise.
6488         (ipa_tm_mark_forced_by_abi_node): Likewise.
6489         (ipa_tm_mark_force_output_node): Likewise.
6490         (ipa_tm_diagnose_tm_safe): Likewise.
6491         (ipa_tm_mayenterirr_function): Likewise.
6492         (ipa_tm_scan_irr_function): Likewise.
6493         (ipa_tm_note_irrevocable): Likewise.
6494         (ipa_tm_scan_calls_clone): Likewise.
6495         (get_cg_data): Likewise.
6496         * tree-eh.c (tree_could_trap_p): Likewise.
6497         * tree-emutls.c (ipa_lower_emutls): Likewise.
6498         (create_emultls_var): Likewise.
6499         (lower_emutls_function_body): Likewise.
6500         (gen_emutls_addr): Likewise.
6501         (emutls_decl): Likewise.
6502         (new_emutls_decl): Likewise.
6503         * tree-inline.c (tree_function_versioning): Likewise.
6504         (optimize_inline_calls): Likewise.
6505         (expand_call_inline): Likewise.
6506         (estimate_num_insns): Likewise.
6507         (copy_bb): Likewise.
6508         (delete_unreachable_blocks_update_callgraph): Likewise.
6509         * tree-nested.c (gimplify_all_functions): Likewise.
6510         (create_nesting_tree): Likewise.
6511         (check_for_nested_with_variably_modified): Likewise.
6512         * tree-pretty-print.c (dump_function_header): Likewise.
6513         * tree-profile.c (tree_profiling): Likewise.
6514         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6515         (modify_function): Likewise.
6516         (convert_callers): Likewise.
6517         (convert_callers_for_node): Likewise.
6518         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
6519         (associate_varinfo_to_alias): Likewise.
6520         (create_variable_info_for): Likewise.
6521         (get_constraint_for_ssa_var): Likewise.
6522         * tree-vectorizer.c (increase_alignment): Likewise.
6523         * tree.c (find_decls_types_in_var): Likewise.
6524         (find_decls_types_in_node): Likewise.
6525         (free_lang_data_in_decl): Likewise.
6526         * value-prof.c (gimple_ic_transform): Likewise.
6527         (gimple_ic): Likewise.
6528         (check_ic_target): Likewise.
6529         (init_node_map): Likewise.
6530         * varasm.c (decl_binds_to_current_def_p): Likewise.
6531         (default_binds_local_p_1): Likewise.
6532         (dump_tm_clone_pairs): Likewise.
6533         (assemble_alias): Likewise.
6534         (find_decl): Likewise.
6535         (mark_decl_referenced): Likewise.
6536         * varpool.c (varpool_for_node_and_aliases): Likewise.
6537         (varpool_extra_name_alias): Likewise.
6538         (varpool_create_variable_alias): Likewise.
6539         (add_new_static_var): Likewise.
6540         (varpool_finalize_named_section_flags): Likewise.
6541         (varpool_remove_unreferenced_decls): Likewise.
6542         (enqueue_node): Likewise.
6543         (varpool_assemble_decl): Likewise.
6544         (assemble_aliases): Likewise.
6545         (varpool_analyze_node): Likewise.
6546         (cgraph_variable_initializer_availability): Likewise.
6547         (varpool_add_new_variable): Likewise.
6548         (ctor_for_folding): Likewise.
6549         (dump_varpool_node): Likewise.
6550         (varpool_remove_initializer): Likewise.
6551         (varpool_remove_node): Likewise.
6552         (varpool_node_for_decl): Likewise.
6553         (varpool_create_empty_node): Likewise.
6554         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
6555         (ix86_get_function_versions_dispatcher): Likewise.
6557 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6559         * cgraph.h (symtab_node_base): Convert to a class;
6560         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
6561         chain_next/prev from symtab_node_def.
6562         (cgraph_node): Inherit from symtab_node; add GTY option
6563         tag ("SYMTAB_FUNCTION").
6564         (varpool_node): Inherit from symtab_node; add GTY option
6565         tag ("SYMTAB_VARIABLE").
6566         (symtab_node_def): Remove.
6567         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
6568         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
6569         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
6570         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
6572         * ipa-ref.h (symtab_node_def): Drop.
6573         (symtab_node): Change underlying type from symtab_node_def to
6574         symtab_node_base.
6575         (const_symtab_node): Likwise.
6577         * is-a.h: Update examples in comment.
6579         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
6580         (assembler_name_hash): Likewise.
6582 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
6584         * doc/tree-ssa.texi (gimple_phi_result): Document.
6585         (gimple_phi_num_args, gimple_phi_arg): Likewise.
6586         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
6587         (PHI_RESULT, PHI_NUM_ARGS): Remove.
6588         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
6590 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
6592         * expr.h: Revert change and include tree-core.h.
6593         * rtl.h: Revert change and don't include tree-core.h.
6595 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
6597         * config/darwin.c: Include gimple.h.
6598         * config/i386/winnt.c: Likewise.
6600 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
6602         PR tree-optimization/19831
6603         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
6605 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
6607         * tree-outof-ssa.h: Remove include files.
6608         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
6609         * expr.c: Likewise.
6610         * tree-ssa-coalesce.c: Likewise.
6611         * cfgexpand.c: Likewise.
6612         * tree-ssa-ter.c: Likewise.
6613         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
6614         * lto-streamer.h: Likewise.
6615         * cgraphbuild.c: Add gimple.h to include list.
6616         * data-streamer-in.c: Likewise.
6617         * ipa-cp.c: Likewise.
6618         * tree-streamer.c: Likewise.
6619         * lto-compress.c: Likewise.
6620         * ipa-reference.c: Likewise.
6621         * data-streamer-out.c: Likewise.
6622         * lto-cgraph.c: Likewise.
6623         * cgraphclones.c: Likewise.
6624         * ipa-utils.c: Likewise.
6625         * data-streamer.c: Likewise.
6626         * ipa-split.c: Likewise.
6627         * lto-section-in.c: Likewise.
6628         * tree-streamer-out.c: Likewise.
6629         * ipa-prop.c: Likewise.
6630         * tree-streamer-in.c: Likewise.
6631         * symtab.c: Likewise.
6632         * opts-global.c: Likewise.
6633         * lto-opts.c: Likewise.
6634         * lto-section-out.c: Likewise.
6635         * lto-streamer.c: Likewise.
6636         * rtl.h: Add tree-core.h to include list.
6637         * expr.h: Remove tree-core.h from include list.
6638         * gimple.h: Likewise.
6639         * ipa-utils.h: Likewise.
6640         * streamer-hooks.h: Likewise.
6641         * streamer-hooks.c: Include input.h.
6643 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6645         * config/arm/arm.c (cortexa7_extra_costs): New table.
6646         (arm_cortex_a7_tune): New.
6647         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
6649 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
6651         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
6653 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6655         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
6656         to use autogenerated markers for a class-hierarchy, every class
6657         must have a GTY marker.
6658         * gengtype.h (struct type): Add linked list of subclasses to
6659         the "s" member of the union.
6660         (add_subclass): New decl.
6661         * gengtype-state.c (read_state_struct_type): Set up subclass
6662         linked list.
6663         * gengtype.c (get_ultimate_base_class): New.
6664         (add_subclass): New.
6665         (new_structure): Set up subclass linked list.
6666         (set_gc_used_type): Propagate usage information to subclasses.
6667         (output_mangled_typename): Use get_ultimate_base_class.
6668         (walk_subclasses): Use the subclass linked list, avoiding an
6669         O(N^2) when writing out all types.
6670         (walk_type): Issue an error if the base class is missing a tag,
6671         rather than generating bogus C code.  Add a gcc_unreachable
6672         default case, in case people omit tags from concrete subclasses,
6673         or get the values wrong.
6674         (write_func_for_structure): Issue an error for subclasses for
6675         which the base doesn't have a "desc", since otherwise the
6676         autogenerated routines for the base would silently fail to visit
6677         any subclass fields.
6678         (write_root): Use get_ultimate_base_class, tweaking constness of
6679         tp to match that function's signature.
6681 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6683         * doc/gty.texi (GTY Options): Add note about inheritance to
6684         description of desc and tag.
6685         (Inheritance and GTY): New.
6687 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6689         * gengtype-parse.c (opts_have): Drop "static" so that
6690         we can use this from gengtype.c.
6691         * gengtype.c (set_gc_used_type): Mark any base class as used;
6692         update field traversal to visit inherited fields.
6693         (output_mangled_typename):  Convert references to classes within
6694         an inheritance hierarchy to reference the ultimate base class,
6695         since only it will have gt_ functions.
6696         (get_string_option): New.
6697         (walk_subclasses): New.
6698         (walk_type): Treat GTY structs that have a "desc" as being the
6699         root of an inheritance hierarchy.  Generate a switch on it
6700         within the marking function which walks all subclasses, adding
6701         cases for them via walk_subclasses.  For subclasses, visit all
6702         fields of the type (including inherited ones).
6703         (write_func_for_structure): Don't write fns for subclasses, only
6704         for the ultimate base class within an inheritance hierarchy.
6705         Subclasses-marking will be handled by the base class marking functions.
6706         (write_types): Likewise.
6707         (write_local_func_for_structure): Likewise.
6708         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
6709         a "tag" option (and are thus concrete subclasses).
6710         (write_root): Use the marker function for the ultimate base class.
6711         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
6712         (opts_have): Add declaration.
6714 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
6716         * lra-spills.c (lra_final_code_change): Remove useless move insns
6717         originated from moves of pseudos.
6719 2013-10-28  Jeff Law  <law@redhat.com>
6721         * lower-subreg.c (resolve_simple_move): Fix comment typo.
6723 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
6725         * df-scan.c (df_collection_rec): Adjust.
6726         (copy_defs): New constant.
6727         (copy_uses): Likewise.
6728         (copy_eq_uses): Likewise.
6729         (copy_mw): Likewise.
6730         (copy_all): Likewise.
6731         (df_insn_rescan): Adjust.
6732         (df_notes_rescan): Likewise.
6733         (df_swap_refs): Likewise.
6734         (df_sort_and_compress_refs): Likewise.
6735         (df_sort_and_compress_mws): Likewise.
6736         (df_install_refs): Likewise.
6737         (df_install_mws): Likewise.
6738         (df_refs_add_to_chains): Add flags parameter controlling which vectors
6739         are coppied.
6740         (df_bb_refs_record): Adjust.
6741         (df_record_entry_block_defs): Likewise.
6742         (df_record_exit_block_defs): Likewise.
6743         (df_refs_verify): Likewise.
6744         (df_mws_verify): Likewise.
6745         (df_insn_refs_verify): Likewise.
6746         (df_bb_verify): Likewise.
6747         * ipa-pure-const.c (finish_state): Remove.
6748         (propagate): Adjust.
6749         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
6750         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
6751         var-tracking.c: Adjust.
6752         * vec.c (stack_vecs): Remove.
6753         (register_stack_vec): Likewise.
6754         (stack_vec_register_index): Likewise.
6755         (unregister_stack_vec): Likewise.
6756         * vec.h (struct va_stack): Remove.
6757         (struct vec<T, A, vl_ptr>): Specialize as
6758         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
6759         allocation strategy compatable with the vl_ptr layout.
6760         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
6761         specialization anyway.
6762         (class stack_vec): New class.
6763         (vec_stack_alloc): Remove.
6764         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
6766 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6767             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6768             Sergey Lega  <sergey.s.lega@intel.com>
6769             Anna Tikhonova  <anna.tikhonova@intel.com>
6770             Ilya Tocar  <ilya.tocar@intel.com>
6771             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6772             Ilya Verbin  <ilya.verbin@intel.com>
6773             Kirill Yukhin  <kirill.yukhin@intel.com>
6774             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6776         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
6777         (*prefetch_avx512pf_<mode>): New.
6778         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
6779         (avx512f_maskcmp<mode>3): Ditto.
6780         (vashrv16si3): Ditto.
6782 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6783             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6784             Sergey Lega  <sergey.s.lega@intel.com>
6785             Anna Tikhonova  <anna.tikhonova@intel.com>
6786             Ilya Tocar  <ilya.tocar@intel.com>
6787             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6788             Ilya Verbin  <ilya.verbin@intel.com>
6789             Kirill Yukhin  <kirill.yukhin@intel.com>
6790             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6792         * config/i386/i386.md (any_truncate): New.
6793         (trunsuffix): Ditto.
6794         * config/i386/predicates.md (const_8_to_9_operand): New.
6795         (const_10_to_11_operand): Ditto.
6796         (const_12_to_13_operand): Ditto.
6797         (const_14_to_15_operand): Ditto.
6798         (const_16_to_19_operand): Ditto.
6799         (const_20_to_23_operand): Ditto.
6800         (const_24_to_27_operand): Ditto.
6801         (const_28_to_31_operand): Ditto.
6802         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
6803         (cvtusi2<ssescalarmodesuffix>32): New.
6804         (cvtusi2<ssescalarmodesuffix>64): Ditto.
6805         (ufloatv16siv16sf2): Ditto.
6806         (avx512f_fix_notruncv16sfv16si): Ditto.
6807         (avx512f_ufix_notruncv16sfv16si): Ditto.
6808         (avx512f_vcvtss2usi): Ditto.
6809         (avx512f_vcvtss2usiq): Ditto.
6810         (avx512f_vcvttss2usi): Ditto.
6811         (avx512f_vcvttss2usiq): Ditto.
6812         (avx512f_vcvtsd2usi): Ditto.
6813         (avx512f_vcvtsd2usiq): Ditto.
6814         (avx512f_vcvttsd2usi): Ditto.
6815         (avx512f_vcvttsd2usiq): Ditto.
6816         (ufloatv8siv8df): Ditto.
6817         (avx512f_cvtdq2pd512_2): Ditto.
6818         (avx512f_cvtpd2dq512): Ditto.
6819         (avx512f_ufix_notruncv8dfv8si): Ditto.
6820         (avx512f_cvtpd2ps512): Ditto.
6821         (vec_unpacks_lo_v16sf): Ditto.
6822         (vec_unpacks_hi_v16sf): Ditto.
6823         (vec_unpacks_float_hi_v16si): Ditto.
6824         (vec_unpacks_float_lo_v16si): Ditto.
6825         (avx512f_unpckhps512): Ditto.
6826         (avx512f_unpcklps512): Ditto.
6827         (avx512f_movshdup512): Ditto.
6828         (avx512f_movsldup512): Ditto.
6829         (vec_extract_lo_v32hi): Ditto.
6830         (vec_extract_hi_v32hi): Ditto.
6831         (vec_extract_lo_v64qi): Ditto.
6832         (vec_extract_hi_v64qi): Ditto.
6833         (avx512f_unpckhpd512): Ditto.
6834         (avx512f_movddup512): Ditto.
6835         (avx512f_unpcklpd512): Ditto.
6836         (*avx512f_unpcklpd512): Ditto.
6837         (avx512f_shufps512_1): Ditto.
6838         (avx512f_shufpd512_1): Ditto.
6839         (avx512f_interleave_highv8di): Ditto.
6840         (avx512f_interleave_lowv8di): Ditto.
6841         (PMOV_DST_MODE): Ditto.
6842         (pmov_src_mode): Ditto.
6843         (pmov_src_lower): Ditto.
6844         (pmov_suff): Ditto.
6845         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
6846         (*avx512f_<code>v8div16qi2): Ditto.
6847         (*avx512f_<code>v8div16qi2_store): Ditto.
6848         (vec_widen_umult_even_v16si): Ditto.
6849         (*vec_widen_umult_even_v16si): Ditto.
6850         (vec_widen_smult_even_v16si): Ditto.
6851         (*vec_widen_smult_even_v16si): Ditto.
6852         (avx512f_interleave_highv16si): Ditto.
6853         (avx512f_interleave_lowv16si): Ditto.
6854         (avx512f_<code>v16qiv16si2): Ditto.
6855         (avx512f_<code>v16hiv16si2): Ditto.
6856         (avx512f_<code>v8qiv8di2): Ditto.
6857         (avx512f_<code>v8hiv8di2): Ditto.
6858         (avx512f_<code>v8siv8di2): Ditto.
6859         (avx512cd_maskb_vec_dupv8di): Ditto.
6860         (avx512cd_maskw_vec_dupv16si): Ditto.
6861         (avx512f_vcvtph2ps512): Ditto.
6862         (avx512f_vcvtps2ph512): Ditto.
6863         (VEC_EXTRACT_MODE): Extened with wider modes.
6864         (VEC_PERM_AVX2): Ditto.
6865         (VEC_PERM_CONST): Ditto.
6867 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
6869         * config/arc/arc.c (arc_ccfsm_post_advance):
6870         Add comment about TYPE_RETURN.
6872 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
6874         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
6875         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
6876         (strip_offset): Convert offset to unsigned number.
6878 2013-10-27  Tom de Vries  <tom@codesourcery.com>
6880         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
6881         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
6883 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
6885         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
6886         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
6887         (TARGET_BIG_ENDIAN): New macro.
6888         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
6889         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
6890         * config/sh/sh.c: Likewise.
6891         * config/sh/sh.h: Likewise.
6893 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
6895         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
6896         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
6898 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
6900         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
6901         Fix formatting.
6902         (cmpstr_t, cmpstrsi): Fix formatting.
6904 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
6906         PR target/52483
6907         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
6908         addressing, do not use general_operand for memory operands.
6910 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
6912         Revert:
6913         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
6914         * lra-spills.c (lra_final_code_change): Remove useless move insns.
6916 2013-10-26  Jeff Law  <law@redhat.com>
6918         * predict.c (PRED_MUDFLAP): Remove.
6919         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
6921         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
6922         (OBJS): Remove tree-nomudflap.o
6923         (GTFILES): Remove tree-mudflap.c
6924         * builtins.c (expand_builtin_alloc): Remove mudflap support.
6925         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
6926         (mfwrap_spec, mflib_spec): Likewise.
6927         (cpp_unique_options, cc1_options, static_specs): Likewise.
6928         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
6929         * passes.def: Likewise.
6930         * toplev.c (compile_file, process_options): Likewise.
6931         * tree-inline.c (copy_tree_r): Likewise.
6932         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
6933         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
6934         (build_constant_desc, output_constant_def_contents): Likewise.
6935         (categorize_decl_for_section): Likewise.
6936         * tree-mudflap.c: Removed.
6937         * tree-mudflap.h: Removed.
6938         * tree-nomudflap.c: Removed.
6939         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
6940         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
6941         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
6942         * config/sol2.h (MFLIB_SPEC): Likewise.
6943         * doc/install.texi: Remove mudflap references.
6944         * doc/passes.texi: Similarly.
6945         * doc/sourcebuild.texi: Similarly.
6946         * doc/invoke.texi: Remove mudlfap related options.
6948 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
6950         PR rtl-optimization/58759
6951         * lra-constraints.c (lra_constraints): Remove wrong condition to
6952         remove insn setting up an equivalent pseudo.
6954 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
6956         * config/rs6000/rs6000-protos.h
6957         (rs6000_secondary_memory_needed_mode): New prototype.
6958         * config/rs6000/rs6000.c: Include ira.h.
6959         (TARGET_LRA_P): Redefine.
6960         (rs6000_legitimate_offset_address_p): Call
6961         legitimate_constant_pool_address_p in strict mode for LRA.
6962         (rs6000_legitimate_address_p): Ditto.
6963         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
6964         (rs6000_emit_move): Add LRA version of code to generate load/store
6965         of SDmode values.
6966         (rs6000_secondary_memory_needed_mode): New.
6967         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
6968         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
6969         constants, memory, and FP registers.
6970         (rs6000_lra_p): New.
6971         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
6972         * config/rs6000/rs6000.opt (mlra): New option.
6973         * lra-spills.c (lra_final_code_change): Remove useless move insns.
6975 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
6977         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
6978         has_single_use () and not do the conversion if has_single_use ()
6979         returns false for the multiplication result.
6981 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
6983         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
6984         to "NODE", since this works on a "tree", not an
6985         "enum tree_code".
6986         (CONSTANT_CLASS_P): Likewise.
6987         (TYPE_P): Likewise.
6988         (DECL_P): Likewise.
6989         (INDIRECT_REF_P): Likewise.
6990         (REFERENCE_CLASS_P): Likewise.
6991         (COMPARISON_CLASS_P): Likewise.
6992         (UNARY_CLASS_P): Likewise.
6993         (BINARY_CLASS_P): Likewise.
6994         (STATEMENT_CLASS_P): Likewise.
6995         (VL_EXP_CLASS_P): Likewise.
6996         (EXPRESSION_CLASS_P): Likewise.
6997         (IS_TYPE_OR_DECL_P): Likewise.
6999 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
7001         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
7002         ADDR_EXPR in the defining statement.
7004 2013-10-25  Richard Biener  <rguenther@suse.de>
7006         PR tree-optimization/58626
7007         * tree-loop-distribution.c (enum rdg_dep_type): Remove
7008         anti_dd, output_dd and input_dd.
7009         (struct rdg_edge): Remove level and relation members.
7010         (RDGE_LEVEL, RDGE_RELATION): Remove.
7011         (dot_rdg_1): Adjust.
7012         (create_rdg_edge_for_ddr): Remove.
7013         (create_rdg_edges_for_scalar): Adjust.
7014         (create_edge_for_control_dependence): Likewise.
7015         (create_rdg_edges): Split into ...
7016         (create_rdg_flow_edges): ... this
7017         (create_rdg_cd_edges): ... and this.
7018         (free_rdg): Adjust.
7019         (build_rdg): Likewise, do not compute data dependences or
7020         add edges for them.
7021         (pg_add_dependence_edges): New function.
7022         (pgcmp): Likewise.
7023         (distribute_loop): First apply all non-dependence based
7024         partition mergings.  Then compute dependences between partitions
7025         and merge and order partitions according to them.
7027 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
7029         PR rtl-optimization/58831
7030         * alias.c (init_alias_analysis): At the beginning of each iteration,
7031         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
7033 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
7035         * recog.c (search_ofs): New static variable moved from...
7036         (peep2_find_free_register): ...here.
7037         (peephole2_optimize): Initialize it.
7039 2013-10-25  Tobias Burnus  <burnus@net-b.de>
7041         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
7043 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
7045         * config/i386/i386.h (TARGET_MPX): New define.
7046         (TARGET_MPX_P): Ditto.
7048 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
7050         * config/i386/constraints.md (B): New.
7051         (Ti): New.
7052         (Tb): New.
7053         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
7054         * config/i386/i386-modes.def (BND32): New.
7055         (BND64): New.
7056         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
7057         * config/i386/i386.c (isa_opts): Add mmpx.
7058         (regclass_map): Add bound registers.
7059         (dbx_register_map): Likewise.
7060         (dbx64_register_map): Likewise.
7061         (svr4_dbx_register_map): Likewise.
7062         (PTA_MPX): New.
7063         (ix86_option_override_internal): Support MPX ISA.
7064         (ix86_conditional_register_usage): Support bound registers.
7065         (print_reg): Likewise.
7066         (ix86_code_end): Add MPX bnd prefix.
7067         (output_set_got): Likewise.
7068         (ix86_output_call_insn): Likewise.
7069         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
7070         (ix86_print_operand_punct_valid_p): Likewise.
7071         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
7072         UNSPEC_BNDMK_ADDR.
7073         (ix86_class_likely_spilled_p): Add bound regs support.
7074         (ix86_hard_regno_mode_ok): Likewise.
7075         (x86_order_regs_for_local_alloc): Likewise.
7076         (ix86_bnd_prefixed_insn_p): New.
7077         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
7078         (FIXED_REGISTERS): Add bound registers.
7079         (CALL_USED_REGISTERS): Likewise.
7080         (REG_ALLOC_ORDER): Likewise.
7081         (HARD_REGNO_NREGS): Likewise.
7082         (TARGET_MPX): New.
7083         (VALID_BND_REG_MODE): New.
7084         (FIRST_BND_REG): New.
7085         (LAST_BND_REG): New.
7086         (reg_class): Add BND_REGS.
7087         (REG_CLASS_NAMES): Likewise.
7088         (REG_CLASS_CONTENTS): Likewise.
7089         (BND_REGNO_P): New.
7090         (ANY_BND_REG_P): New.
7091         (BNDmode): New.
7092         (HI_REGISTER_NAMES): Add bound registers.
7093         * config/i386/i386.md (UNSPEC_BNDMK): New.
7094         (UNSPEC_BNDMK_ADDR): New.
7095         (UNSPEC_BNDSTX): New.
7096         (UNSPEC_BNDLDX): New.
7097         (UNSPEC_BNDLDX_ADDR): New.
7098         (UNSPEC_BNDCL): New.
7099         (UNSPEC_BNDCU): New.
7100         (UNSPEC_BNDCN): New.
7101         (UNSPEC_MPX_FENCE): New.
7102         (BND0_REG): New.
7103         (BND1_REG): New.
7104         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
7105         (length_immediate): Likewise.
7106         (prefix_0f): Likewise.
7107         (memory): Likewise.
7108         (prefix_rep): Check for bnd prefix.
7109         (length_nobnd): New.
7110         (length): Use length_nobnd if specified.
7111         (BND): New.
7112         (bnd_ptr): New.
7113         (BNDCHECK): New.
7114         (bndcheck): New.
7115         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
7116         (*jcc_2): Likewise.
7117         (jump): Likewise.
7118         (simple_return_internal): Likewise.
7119         (simple_return_pop_internal): Likewise.
7120         (*indirect_jump): Add MPX bnd prefix.
7121         (*tablejump_1): Likewise.
7122         (simple_return_internal_long): Likewise.
7123         (simple_return_indirect_internal): Likewise.
7124         (<mode>_mk): New.
7125         (*<mode>_mk): New.
7126         (mov<mode>): New.
7127         (*mov<mode>_internal_mpx): New.
7128         (<mode>_<bndcheck>): New.
7129         (*<mode>_<bndcheck>): New.
7130         (<mode>_ldx): New.
7131         (*<mode>_ldx): New.
7132         (<mode>_stx): New.
7133         (*<mode>_stx): New.
7134         * config/i386/predicates.md (lea_address_operand): Rename to...
7135         (address_no_seg_operand): ... this.
7136         (address_mpx_no_base_operand): New.
7137         (address_mpx_no_index_operand): New.
7138         (bnd_mem_operator): New.
7139         * config/i386/i386.opt (mmpx): New.
7140         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
7141         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
7143 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
7145         * mode-classes.def (MODE_POINTER_BOUNDS): New.
7146         * tree.def (POINTER_BOUNDS_TYPE): New.
7147         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
7148         (POINTER_BOUNDS_MODE): New.
7149         (make_pointer_bounds_mode): New.
7150         * machmode.h (POINTER_BOUNDS_MODE_P): New.
7151         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
7152         (layout_type): Support POINTER_BOUNDS_TYPE.
7153         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
7154         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
7155         (type_contains_placeholder_1): Likewise.
7156         * tree.h (POINTER_BOUNDS_TYPE_P): New.
7157         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
7158         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
7160 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
7162         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
7163         mode of address computation when calling memory_address_addr_space.
7165 2013-08-24  Richard Henderson  <rth@twiddle.net>
7167         PR rtl/58542
7168         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
7169         instead of create_convert_operand_to.
7170         (maybe_emit_sync_lock_test_and_set): Likewise.
7171         (expand_atomic_compare_and_swap): Likewise.
7172         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
7174 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
7176         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
7177         Change param_is to use the struct and not the pointer to the struct.
7179 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
7181         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
7182         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
7183         Move to targhooks.c.
7184         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
7185         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
7186         Relocate from gimplify.c.
7187         * targhooks.h: Add 2 prototypes.
7188         * tree.h: Delete 2 prototypes.
7190 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
7192         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
7193         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
7195 2013-10-24  Cong Hou  <congh@google.com>
7197         * convert.c (convert_to_real): Guard those unsafe math function
7198         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
7199         specially.
7201 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
7203         PR ipa/58712
7204         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
7205         as argument.
7206         (cgraph_create_edge): Use the new argument.
7207         (cgraph_create_indirect_edge): Likewise.
7209 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
7211         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
7212         TYPE_UNCOND_BRANCH.
7213         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
7214         changes statep->state.
7216 2013-10-24  Tobias Burnus  <burnus@net-b.de>
7218         PR other/33426
7219         * tree-cfg.c (replace_loop_annotate): New function.
7220         (execute_build_cfg): Call it.
7221         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
7222         * internal-fn.c (expand_ANNOTATE): New function.
7223         * internal-fn.def (ANNOTATE): Define as new internal function.
7224         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
7225         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
7226         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
7227         * doc/extend.texi (Pragmas): Document #pragma ivdep.
7228         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
7230 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
7231             Marcus Shawcroft  <marcus.shawcroft@arm.com>
7233         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
7234         Special case reload SP+C into none GENERAL_REGS.
7236 2013-10-24  Michael Matz  <matz@suse.de>
7238         * gengtype.c (is_file_equal): Check that files will be same length.
7240 2013-10-25  Christian Bruel  <christian.bruel@st.com>
7242         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
7243         * config/sh/t-sh (sh-mem.o): New rule.
7244         * config/sh/sh-mem.cc (expand_block_move): Moved here.
7245         (sh_expand_cmpstr): New function.
7246         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
7247         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
7248         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
7249         (rotlhi3_8): Rename.
7251 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7253         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
7254         * Makefile.in (CXXDEPMODE): Assign and change users.
7255         (CCDEPMODE): Delete.
7256         * configure: Regenerate.
7258 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
7260         * gengtype-parse.c (require_without_advance): New.
7261         (type): For GTY-marked types that are not GTY((user)), parse any
7262         base classes, requiring them to be single-inheritance, and not
7263         be templates.  For non-GTY-marked types and GTY((user)),
7264         continue to skip over any C++ inheritance specification.
7265         * gengtype-state.c (state_writer::write_state_struct_type):
7266         Write base class of type (if any).
7267         (read_state_struct_type): Read base class of type (if any).
7268         * gengtype.c (new_structure): Add a "base_class" parameter.
7269         (create_optional_field_): Update for new parameter to new_structure.
7270         (adjust_field_rtx_def): Likewise.
7271         (adjust_field_tree_exp): Likewise.
7272         * gengtype.h (struct type): Add "base_class" field to the s
7273         union field.
7274         (new_structure): Add "base" parameter.
7276 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
7278         PR target/57756
7279         * config/i386/i386.c (ix86_option_override_internal):
7280         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
7281         (ix86_valid_target_attribute_tree):
7282         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
7283         Change TARGET_SSE to TARGET_SSE_P (opts->...)
7285 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
7287         * tree-ssa-loop.h: Remove include files.
7288         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7289         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
7290         * graphite-clast-to-gimple.c: Likewise.
7291         * graphite-scop-detection.c: Likewise.
7292         * graphite-sese-to-poly.c: Likewise.
7293         * ipa-inline-analysis.c: Likewise.
7294         * ipa-pure-const.c: Likewise.
7295         * loop-init.c: Likewise.
7296         * passes.c: Likewise.
7297         * predict.c: Likewise.
7298         * tree-cfg.c: Likewise.
7299         * tree-cfgcleanup.c: Likewise.
7300         * tree-chrec.c: Likewise.
7301         * tree-data-ref.c: Likewise.
7302         * tree-loop-distribution.c: Likewise.
7303         * tree-parloops.c: Likewise.
7304         * tree-predcom.c: Likewise.
7305         * tree-scalar-evolution.c: Likewise.
7306         * tree-ssa-address.c: Likewise.
7307         * tree-ssa.c: Likewise.
7308         * tree-ssa-dce.c: Likewise.
7309         * tree-ssa-loop.c: Likewise.
7310         * tree-ssa-loop-im.c: Likewise.
7311         * tree-ssa-loop-ivcanon.c: Likewise.
7312         * tree-ssa-loop-ivopts.c: Likewise.
7313         * tree-ssa-loop-manip.c: Likewise.
7314         * tree-ssa-loop-niter.c: Likewise.
7315         * tree-ssa-loop-prefetch.c: Likewise.
7316         * tree-ssa-loop-unswitch.c: Likewise.
7317         * tree-ssa-reassoc.c: Likewise.
7318         * tree-vect-data-refs.c: Likewise.
7319         * tree-vect-loop.c: Likewise.
7320         * tree-vect-loop-manip.c: Likewise.
7321         * tree-vectorizer.c: Likewise.
7322         * tree-vect-stmts.c: Likewise.
7323         * tree-vrp.c: Likewise.
7325 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7327         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
7329 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
7331         PR tree-optimization/58775
7332         PR tree-optimization/58791
7333         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
7334         (insert_stmt_after): Rewritten, don't move the stmt, but really
7335         insert it.
7336         (get_stmt_uid_with_default): Remove.
7337         (build_and_add_sum): Use insert_stmt_after and
7338         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
7339         (update_range_test): Set uid on stmts added by
7340         force_gimple_operand_gsi.  Don't immediately modify statements
7341         in inter-bb optimization, just update oe->op values.
7342         (optimize_range_tests): Return bool whether any changed have been made.
7343         (update_ops): New function.
7344         (struct inter_bb_range_test_entry): New type.
7345         (maybe_optimize_range_tests): Perform statement changes here.
7346         (not_dominated_by, appears_later_in_bb, get_def_stmt,
7347         ensure_ops_are_available): Remove.
7348         (find_insert_point): Rewritten.
7349         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
7350         return LHS of the (new resp. old) stmt.  Don't call
7351         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
7352         instead of last, move new stmt at the right place.
7353         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
7354         (negate_value): Likewise.  Set uids.
7355         (break_up_subtract_bb): Initialize uids.
7356         (reassociate_bb): Adjust rewrite_expr_tree caller.
7357         (do_reassoc): Don't call renumber_gimple_stmt_uids.
7359 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
7361         PR target/58838
7362         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
7363         TARGET_32BIT final condition.
7364         (mulsi3_internal2 and splitter): Same.
7366 2013-10-23  Jeff Law  <law@redhat.com>
7368         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
7369         through joiner blocks with abnormal outgoing edges.
7371         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
7372         Add parameter JOINERS, to allow/disallow threading through joiner
7373         blocks.
7374         (thread_block): New.  Call thread_block_1.
7375         (mark_threaded_blocks): Remove code to filter out certain cases
7376         of threading through joiner blocks.
7377         (thread_through_all_blocks): Document how we can have a dangling
7378         edge AUX field and clear it.
7380 2013-10-23  Ian Lance Taylor  <iant@google.com>
7382         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
7383         (C++ Dialect Options): Likewise.
7384         (Optimize Options): Likewise.
7386 2013-10-23  Tom de Vries  <tom@codesourcery.com>
7388         PR tree-optimization/58805
7389         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
7391 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
7393         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
7394         sequence based on get_range_info returned range.
7396 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
7398         * tree-ssa.h: Remove all #include's
7399         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7400         * alias.c: Move required includes from tree-ssa.h.
7401         * asan.c: Likewise.
7402         * builtins.c: Likewise.
7403         * calls.c: Likewise.
7404         * cfgexpand.c: Likewise.
7405         * cfghooks.c: Likewise.
7406         * cfgloop.c: Likewise.
7407         * cfgloopmanip.c: Likewise.
7408         * cgraph.c: Likewise.
7409         * cgraphbuild.c: Likewise.
7410         * cgraphclones.c: Likewise.
7411         * cgraphunit.c: Likewise.
7412         * dse.c: Likewise.
7413         * except.c: Likewise.
7414         * expr.c: Likewise.
7415         * final.c: Likewise.
7416         * fold-const.c: Likewise.
7417         * ggc-page.c: Likewise.
7418         * gimple-builder.c: Likewise.
7419         * gimple-fold.c: Likewise.
7420         * gimple-iterator.c: Likewise.
7421         * gimple-low.c: Likewise.
7422         * gimple-pretty-print.c: Likewise.
7423         * gimple-ssa-strength-reduction.c: Likewise.
7424         * gimple-streamer-in.c: Likewise.
7425         * gimple-streamer-out.c: Likewise.
7426         * gimplify.c: Likewise.
7427         * graphite-blocking.c: Likewise.
7428         * graphite-clast-to-gimple.c: Likewise.
7429         * graphite-dependences.c: Likewise.
7430         * graphite-interchange.c: Likewise.
7431         * graphite-optimize-isl.c: Likewise.
7432         * graphite-poly.c: Likewise.
7433         * graphite-scop-detection.c: Likewise.
7434         * graphite-sese-to-poly.c: Likewise.
7435         * graphite.c: Likewise.
7436         * ipa-cp.c: Likewise.
7437         * ipa-inline-analysis.c: Likewise.
7438         * ipa-inline-transform.c: Likewise.
7439         * ipa-inline.c: Likewise.
7440         * ipa-prop.c: Likewise.
7441         * ipa-pure-const.c: Likewise.
7442         * ipa-reference.c: Likewise.
7443         * ipa-split.c: Likewise.
7444         * ipa-utils.c: Likewise.
7445         * loop-init.c: Likewise.
7446         * lto-cgraph.c: Likewise.
7447         * lto-section-in.c: Likewise.
7448         * lto-section-out.c: Likewise.
7449         * lto-streamer-in.c: Likewise.
7450         * lto-streamer-out.c: Likewise.
7451         * lto-streamer.c: Likewise.
7452         * omp-low.c: Likewise.
7453         * passes.c: Likewise.
7454         * predict.c: Likewise.
7455         * print-tree.c: Likewise.
7456         * profile.c: Likewise.
7457         * sese.c: Likewise.
7458         * targhooks.c: Likewise.
7459         * tracer.c: Likewise.
7460         * trans-mem.c: Likewise.
7461         * tree-call-cdce.c: Likewise.
7462         * tree-cfg.c: Likewise.
7463         * tree-cfgcleanup.c: Likewise.
7464         * tree-chrec.c: Likewise.
7465         * tree-complex.c: Likewise.
7466         * tree-data-ref.c: Likewise.
7467         * tree-dfa.c: Likewise.
7468         * tree-eh.c: Likewise.
7469         * tree-emutls.c: Likewise.
7470         * tree-if-conv.c: Likewise.
7471         * tree-inline.c: Likewise.
7472         * tree-into-ssa.c: Likewise.
7473         * tree-loop-distribution.c: Likewise.
7474         * tree-mudflap.c: Likewise.
7475         * tree-nested.c: Likewise.
7476         * tree-nrv.c: Likewise.
7477         * tree-object-size.c: Likewise.
7478         * tree-outof-ssa.c: Likewise.
7479         * tree-parloops.c: Likewise.
7480         * tree-phinodes.c: Likewise.
7481         * tree-predcom.c: Likewise.
7482         * tree-pretty-print.c: Likewise.
7483         * tree-profile.c: Likewise.
7484         * tree-scalar-evolution.c: Likewise.
7485         * tree-sra.c: Likewise.
7486         * tree-ssa-address.c: Likewise.
7487         * tree-ssa-alias.c: Likewise.
7488         * tree-ssa-ccp.c: Likewise.
7489         * tree-ssa-coalesce.c: Likewise.
7490         * tree-ssa-copy.c: Likewise.
7491         * tree-ssa-copyrename.c: Likewise.
7492         * tree-ssa-dce.c: Likewise.
7493         * tree-ssa-dom.c: Likewise.
7494         * tree-ssa-dse.c: Likewise.
7495         * tree-ssa-forwprop.c: Likewise.
7496         * tree-ssa-ifcombine.c: Likewise.
7497         * tree-ssa-live.c: Likewise.
7498         * tree-ssa-loop-ch.c: Likewise.
7499         * tree-ssa-loop-im.c: Likewise.
7500         * tree-ssa-loop-ivcanon.c: Likewise.
7501         * tree-ssa-loop-ivopts.c: Likewise.
7502         * tree-ssa-loop-manip.c: Likewise.
7503         * tree-ssa-loop-niter.c: Likewise.
7504         * tree-ssa-loop-prefetch.c: Likewise.
7505         * tree-ssa-loop-unswitch.c: Likewise.
7506         * tree-ssa-loop.c: Likewise.
7507         * tree-ssa-math-opts.c: Likewise.
7508         * tree-ssa-operands.c: Likewise.
7509         * tree-ssa-phiopt.c: Likewise.
7510         * tree-ssa-phiprop.c: Likewise.
7511         * tree-ssa-pre.c: Likewise.
7512         * tree-ssa-propagate.c: Likewise.
7513         * tree-ssa-reassoc.c: Likewise.
7514         * tree-ssa-sccvn.c: Likewise.
7515         * tree-ssa-sink.c: Likewise.
7516         * tree-ssa-strlen.c: Likewise.
7517         * tree-ssa-structalias.c: Likewise.
7518         * tree-ssa-tail-merge.c: Likewise.
7519         * tree-ssa-ter.c: Likewise.
7520         * tree-ssa-threadedge.c: Likewise.
7521         * tree-ssa-threadupdate.c: Likewise.
7522         * tree-ssa-uncprop.c: Likewise.
7523         * tree-ssa-uninit.c: Likewise.
7524         * tree-ssa.c: Likewise.
7525         * tree-ssanames.c: Likewise.
7526         * tree-stdarg.c: Likewise.
7527         * tree-streamer-in.c: Likewise.
7528         * tree-switch-conversion.c: Likewise.
7529         * tree-tailcall.c: Likewise.
7530         * tree-vect-data-refs.c: Likewise.
7531         * tree-vect-generic.c: Likewise.
7532         * tree-vect-loop-manip.c: Likewise.
7533         * tree-vect-loop.c: Likewise.
7534         * tree-vect-patterns.c: Likewise.
7535         * tree-vect-slp.c: Likewise.
7536         * tree-vect-stmts.c: Likewise.
7537         * tree-vectorizer.c: Likewise.
7538         * tree-vrp.c: Likewise.
7539         * tree.c: Likewise.
7540         * tsan.c: Likewise.
7541         * value-prof.c: Likewise.
7542         * var-tracking.c: Likewise.
7543         * varpool.c: Likewise.
7544         * vtable-verify.c: Likewise.
7546 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7548         * config/tilegx/tilegx.c: Include "tree.h".
7550 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
7552         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
7553         the info, not after it.
7554         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
7555         dump_ssaname_info call.
7556         (pp_gimple_stmt_1): Adjust caller.
7557         (dump_phi_nodes): Likewise.  Don't print "# " here.
7559 2013-10-22  Jan Hubicka  <jh@suse.cz>
7561         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
7562         tuning flag.
7563         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
7564         * i386.c (expand_small_movmem_or_setmem): New function.
7565         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
7566         function.
7567         (alg_usable_p): Add support for value ranges; cleanup.
7568         (ix86_expand_set_or_movmem): Add support for misaligned moves.
7570 2013-10-22  Sterling Augustine  <saugustine@google.com>
7572         * doc/invoke.texi: Document -ggnu-pubnames.
7573         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
7574         logic.
7575         * dwarf2out.c: Include gdb/gdb-index.h.
7576         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
7577         debug_generate_pub_sections.
7578         (is_java, output_pubtables, output_pubname): New functions.
7579         (include_pubname_in_output): Handle debug_generate_pub_sections at
7580         level 2.
7581         (size_of_pubnames): Use new local space_for_flags based on
7582         debug_generate_pub_sections.
7583         (output_pubnames): Unify pubnames and pubtypes output logic.
7584         Genericize comments.  Call output_pubname.
7585         (dwarf2out_finish): Move logic to output_pubnames and call it.
7587 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
7589         PR target/58779
7590         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
7591         Remove CCCmode handling.
7592         <case LTU>: Return 'c' suffix for CCCmode.
7593         <case GEU>: Return 'nc' suffix for CCCmode.
7594         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
7595         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
7596         (*sub<mode>3_cc_overflow): Ditto.
7597         (*subsi3_zext_cc_overflow): Ditto.
7599 2013-10-22  Steve Ellcey  <sellcey@mips.com>
7601         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
7602         (AND (NOT OP1) (NOT OP2)).
7604 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
7606         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
7607         meaning of merge-high and merge-low masks for little endian; avoid
7608         use of vector-pack masks for little endian for mismatched modes.
7610 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7612         * config/tilepro/tilepro.c: Include "tree.h".
7614 2013-10-22  Andreas Schwab  <schwab@suse.de>
7616         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
7617         with PRE_DEC.
7619 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
7621         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
7622         [Ed Smith-Rowland]): New entries.
7623         ([Stephen M. Webb]): Update.
7625 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
7627         * tree-ssa-ter.h: Remove duplicate copy of file contents.
7629 2013-10-21  Marek Polacek  <polacek@redhat.com>
7631         PR middle-end/58809
7632         * fold-const.c (fold_range_test): Return 0 if the type is not
7633         an integral type.
7635 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
7637         * system.h: Move hwint.h include further down.
7638         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
7639         gcc_checking_asserts.
7640         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
7642 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7644         Fix volatile issues in optimize_bit_field_compare.
7645         * fold-const.c (optimize_bit_field_compare): Bail out if
7646         lvolatilep or rvolatilep.
7648 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7650         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
7651         and get_inner_reference returning different pmode for non-volatile
7652         bit-field members dependent on flag_strict_volatile_bitfields.
7653         * stor-layout.c (layout_decl): Remove special handling of
7654         flag_strict_volatile_bitfields.
7655         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
7656         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
7658 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
7660         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
7661         calculations.
7663 2013-10-21  Jeff Law  <law@redhat.com>
7665         * tree-ssa-threadedge.c (thread_through_normal_block): New
7666         argument VISITED.  Remove VISISTED as a local variable.  When we
7667         have a threadable jump, verify the destination of the jump has not
7668         been visised.
7669         (thread_across_edge): Allocate VISITED bitmap once at function
7670         scope and use it throughout.  Make sure to set appropriate bits in
7671         VISITED for E (start of jump thread path).
7672         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
7673         through a joiner if any edge on the path has a recorded jump thread.
7675 2013-10-21  Ian Lance Taylor  <iant@google.com>
7677         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
7678         don't imply that attributes can solve all problems.
7679         (Directory Options): Fix typo.
7681 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7683         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
7684         extend and extend_add.
7686 2013-10-21  Richard Biener  <rguenther@suse.de>
7688         PR tree-optimization/58794
7689         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
7690         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
7692 2013-10-21  Richard Biener  <rguenther@suse.de>
7694         PR middle-end/58742
7695         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
7696         to (T) X for sign-changing conversions (or no conversion).
7698 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
7700         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
7702 2013-10-20  Jan Hubicka  <jh@suse.cz>
7704         * config/i386/i386-tune.def: Add comment; organize into categories
7706 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
7708         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
7709         argument.  Update function comment.
7710         (expand_set_or_movmem_via_rep): New function combining
7711         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
7712         (expand_movmem_via_rep_mov): Remove.
7713         expand_setmem_via_rep_stos): Remove.
7714         (expand_movmem_epilogue): Update calls correspondingly.
7715         (expand_setmem_epilogue_via_loop): Likewise.
7716         (emit_memset): New.
7717         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
7718         (expand_set_or_movmem_prologue): New function combining
7719         expand_movmem_prologue and expand_setmem_prologue.
7720         (expand_movmem_prologue): Remove.
7721         (expand_setmem_prologue): Remove.
7722         (expand_set_or_movmem_constant_prologue): New function combining
7723         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
7724         (expand_constant_movmem_prologue): Remove.
7725         (expand_constant_setmem_prologue): Remove.
7726         (promote_duplicated_reg): Allow vector-const0 value.
7727         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
7728         and ix86_expand_setmem.
7729         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
7730         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
7732 2013-10-21  Diego Novillo  <dnovillo@google.com>
7734         * asan.c: Include tree.h
7735         * bb-reorder.c: Likewise.
7736         * cfgcleanup.c: Likewise.
7737         * cfgloopmanip.c: Likewise.
7738         * data-streamer-in.c: Likewise.
7739         * data-streamer-out.c: Likewise.
7740         * data-streamer.c: Likewise.
7741         * dwarf2cfi.c: Likewise.
7742         * graphite-blocking.c: Likewise.
7743         * graphite-clast-to-gimple.c: Likewise.
7744         * graphite-dependences.c: Likewise.
7745         * graphite-interchange.c: Likewise.
7746         * graphite-optimize-isl.c: Likewise.
7747         * graphite-poly.c: Likewise.
7748         * graphite-scop-detection.c: Likewise.
7749         * graphite-sese-to-poly.c: Likewise.
7750         * graphite.c: Likewise.
7751         * ipa-devirt.c: Likewise.
7752         * ipa-profile.c: Likewise.
7753         * ipa.c: Likewise.
7754         * ira.c: Likewise.
7755         * loop-init.c: Likewise.
7756         * loop-unroll.c: Likewise.
7757         * lower-subreg.c: Likewise.
7758         * lto/lto-object.c: Likewise.
7759         * recog.c: Likewise.
7760         * reginfo.c: Likewise.
7761         * tree-loop-distribution.c: Likewise.
7762         * tree-parloops.c: Likewise.
7763         * tree-ssa-strlen.c: Likewise.
7764         * tree-streamer.c: Likewise.
7765         * value-prof.c: Likewise.
7766         * target-globals.c: Likewise.
7767         * expr.h: Include tree-core.h instead of tree.h.
7768         * gimple.h: Likewise.
7769         * ipa-prop.h: Likewise.
7770         * ipa-utils.h: Likewise.
7771         * lto-streamer.h: Likewise.
7772         * streamer-hooks.h: Likewise.
7773         * ipa-reference.h: Include cgraph.h instead of tree.h.
7774         * cgraph.h: Include basic-block.h instead of tree.h.
7775         * tree-streamer.h: Do not include tree.h.
7776         * genattrtab.c (write_header): Generate inclusion of tree.h.
7777         * genautomata.c (main): Likewise.
7778         * genemit.c: Likewise.
7779         * genopinit.c: Likewise.
7780         * genoutput.c (output_prologue): Likewise.
7781         * genpeep.c: Likewise.
7783 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7785         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
7786         little endian.
7787         (vec_unpacku_hi_v8hi): Likewise.
7788         (vec_unpacku_lo_v16qi): Likewise.
7789         (vec_unpacku_lo_v8hi): Likewise.
7791 2013-10-20  Jan Hubicka  <jh@suse.cz>
7793         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
7794         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
7795         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
7797 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
7799         * config/mips/mips.h (ISA_HAS_WSBH): Define.
7800         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
7801         constants.
7802         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
7804 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
7806         PR target/58603
7807         * system.h: Undef m_slot.
7809 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7811         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
7812         all elements for both endian flavors.
7814 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
7816         PR target/58792
7817         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
7818         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
7819         and SI_REG for 64bit SYSV ABI targets.
7821 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
7823         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
7824         to multi_reg_return.  Clarify that we are skipping USEs of multiple
7825         return registers.  Use bool type where appropriate.
7827 2013-10-18  Jan Hubicka  <jh@suse.cz>
7829         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
7830         for cold functions.
7831         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
7832         (X86_TUNE_PUSH_MEMORY): Likewise.
7833         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
7834         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
7835         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
7836         New.
7837         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
7838         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
7839         Remove.
7840         (ix86_option_override_internal): Update to use tune features instead
7841         of variables.
7843 2013-10-18  Cong Hou  <congh@google.com>
7845         PR tree-optimization/58508
7846         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
7847         statement that contains data refs with zero-step.
7849 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
7851         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
7852         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
7853         * gimple-low.c (gimple_check_call_arg,
7854         gimple_check_call_matching_types): Move to cgraph.c.
7855         * gimple-low.h: Remove prototype.
7856         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
7857         Relocate from gimple-low.c.
7858         * cgraph.h: Add prototype.  Don't include basic-block.h.
7859         * gimplify.c: Add gimple-low to include list.
7860         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
7861         * tree-eh.c: Add gimple-low to include list.
7862         * tree-nested.c: Likewise.
7863         * cfgexpand.c: Add tree-ssa-address.h to include list.
7864         * expr.c: Likewise.
7865         * gimple-fold.c: Likewise.
7866         * gimple-ssa-strength-reduction.c: Likewise.
7867         * trans-mem.c: Likewise.
7868         * tree-mudflap.c: Likewise.
7869         * tree-ssa-loop-ivopts.c: Likewise.
7870         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
7871         (degenerate_phi_result): Move to tree-phinodes.c.
7872         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
7873         * tree-ssa-threadedge.c: Likewise.
7874         * tree-vrp.c: Likewise.
7875         * tree-phinodes.c (degenerate_phi_result): Relocate here.
7876         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
7877         * tree-phinodes.h (degenerate_phi_result): Add prototype.
7878         * tree-ssa-copy.c: Include tree-ssa-dom.h.
7879         * tree-ssa-forwprop.c: Likewise.
7880         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
7881         pass_data_cleanup_cfg_post_optimizing,
7882         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
7883         * tree-optimize.c: Delete File.
7884         * graphite.c: Include tree-cfgcleanup.h.
7885         * passes.c: Likewise.
7886         * tree-cfg.c: Likewise.
7887         * tree-profile.c: Likewise.
7888         * tree-ssa-dse.c: Likewise.
7889         * tree-ssa-loop-ivcanon.c: Likewise.
7890         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
7891         * tree-outof-ssa.c: Include sbitmap.h.
7892         * tree-ssa-live.c: Likewise.
7893         * tree-ssa-propagate.c: Likewise.
7894         * tree-ssa-structalias.c: Likewise.
7895         * tree-stdarg.c: Likewise.
7896         * Makefile.in (OBJS): Delete tree-optimize.o.
7897         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
7898         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
7899         * varasm.c: Include basic-block.h.
7900         * cfgloop.h: Include function.h instead of basic-block.h
7901         (bb_loop_depth): Move to cfgloop.c.
7902         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
7904 2013-10-18  Teresa Johnson  <tejohnson@google.com>
7906         * predict.c (probably_never_executed): Compare frequency-based
7907         count to number of training runs.
7908         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
7910 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7912         * config/arm/arm.c (cortexa9_extra_costs): New table.
7913         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
7915 2013-10-18  Jeff Law  <law@redhat.com>
7917         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
7919         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
7920         (register_jump_thread): Add "registered_jump_thread" debug
7921         counter support.
7922         * dbgcnt.def (registered_jump_thread): New debug counter.
7924 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
7926         * config/rs6000/rs6000.c: Include cgraph.h.
7928 2013-10-18  Teresa Johnson  <tejohnson@google.com>
7930         * tree-ssa-tail-merge.c (replace_block_by): Update edge
7931         weights during merging.
7933 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
7935         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
7936         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
7937         * tree-ssa-operands.h: Remove prototype.
7938         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
7939         * gimple.c (virtual_operand_p): Relocate from gimple.c.
7940         * gimple.h: Add prototype.
7941         * gimple-ssa.h: Include tree-ssa-operands.h.
7942         * tree-dump.c: Add tree-cfg.h to include list.
7943         * tree-ssa-alias.c: Add ipa-reference.h to include list.
7944         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
7945         * config/i386/i386.c: Don't include tree-flow.h.
7946         * config/rs6000/rs6000.c: Likewise.
7948 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7950         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
7952 2013-10-18  Richard Biener  <rguenther@suse.de>
7954         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
7955         or TYPE_UNSIGNED of integral types.
7956         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
7957         NULL_TREE for zero-precision integral types.
7959 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
7961         * config/aarch64/arm_neon.h
7962         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
7964 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
7966         PR target/57756
7967         * opth-gen.awk: Define target_flags_explicit.
7969 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
7971         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
7972         fields to the reg_addr array that describes the valid addressing
7973         mode for any register, general purpose registers, floating point
7974         registers, and Altivec registers.
7975         (FIRST_RELOAD_REG_CLASS): Likewise.
7976         (LAST_RELOAD_REG_CLASS): Likewise.
7977         (struct reload_reg_map_type): Likewise.
7978         (reload_reg_map_type): Likewise.
7979         (RELOAD_REG_VALID): Likewise.
7980         (RELOAD_REG_MULTIPLE): Likewise.
7981         (RELOAD_REG_INDEXED): Likewise.
7982         (RELOAD_REG_OFFSET): Likewise.
7983         (RELOAD_REG_PRE_INCDEC): Likewise.
7984         (RELOAD_REG_PRE_MODIFY): Likewise.
7985         (reg_addr): Likewise.
7986         (mode_supports_pre_incdec_p): New helper functions to say whether
7987         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
7988         (mode_supports_pre_modify_p): Likewise.
7989         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
7990         print the valid address mode bits for each mode.
7991         (rs6000_debug_print_mode): Likewise.
7992         (rs6000_debug_reg_global): Likewise.
7993         (rs6000_setup_reg_addr_masks): New function to set up the address
7994         mask bits for each type.
7995         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
7996         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
7997         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
7998         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
7999         PRE_MODIFY are supported.
8000         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
8001         registers, instead of {src,dest}_av_p.
8002         (rs6000_print_options_internal): Tweak the debug output slightly.
8004 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
8006         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
8007         isa attribute.
8009 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
8011         * tree-flow.h (struct omp_region): Move to omp-low.c.
8012         Remove omp_ prototypes and variables.
8013         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
8014         (copy_var_decl): Relocate prototype from tree-flow.h.
8015         * gimple.c (copy_var_decl): Relocate from omp-low.c.
8016         * tree.h: Move prototype to omp-low.h.
8017         * omp-low.h: New File.  Relocate prototypes here.
8018         * omp-low.c (struct omp_region): Make local here.
8019         (root_omp_region): Make static.
8020         (copy_var_decl) Move to gimple.c.
8021         (new_omp_region): Make static.
8022         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
8023         * tree-cfg.c: Include omp-low.h.
8024         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
8025         * gimplify.c: Include omp-low.h.
8026         * tree-parloops.c: Likewise.
8028 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
8030         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
8031         operands are in memory, prefer to force non-matched operand 1 to
8032         the register.
8034 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
8036         PR target/58673
8037         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
8038         restrict TImode addresses to single indirect registers if both
8039         -mquad-memory and -mvsx-timode are used.
8040         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
8041         we should emit load/store quad.  Remove using %y for quad memory
8042         addresses.
8044         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
8045         constraints to allow load/store quad on machines where TImode is
8046         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
8047         for TImode to load integer constants.
8049 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8051         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
8053 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8055         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
8056         handling of STACK_REG.
8058 2013-10-17  Richard Biener  <rguenther@suse.de>
8060         PR tree-optimization/58143
8061         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
8062         New function.
8063         (rewrite_to_defined_overflow): Likewise.
8064         (move_computations_dom_walker::before_dom): Rewrite stmts
8065         with undefined signed overflow that are not always executed
8066         into unsigned arithmetic.
8068 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
8070         PR target/57756
8071         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
8072         explicit isa flag to be an options variable, instead of using
8073         global_options_set.  Remove define from rs6000.h.
8074         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
8076         * config/rs6000/rs6000.c (rs6000_option_override_internal):
8077         Initialize rs6000_isa_flags_explicit.
8078         (rs6000_function_specific_save): Add gcc_options* parameter, so
8079         that the powerpc builds after the 2013-10-15 changes.
8080         (rs6000_function_specific_restore): Likewise.
8082 2013-10-16  DJ Delorie  <dj@redhat.com>
8084         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
8085         op is a REG before checking REGNO.
8086         (rl78_alloc_physical_registers): Verify pattern is a SET before
8087         checking SET_SRC.
8089 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8091         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
8092         endianness.
8093         (vec_unpacks_lo_v4sf): Likewise.
8094         (vec_unpacks_float_hi_v4si): Likewise.
8095         (vec_unpacks_float_lo_v4si): Likewise.
8096         (vec_unpacku_float_hi_v4si): Likewise.
8097         (vec_unpacku_float_lo_v4si): Likewise.
8099 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8101         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
8102         (vsx_concat_v2sf): Likewise.
8104 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
8106         * config/aarch64/aarch64.md
8107         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
8109 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
8111         PR tree-optimization/58697
8112         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
8113         estimated_loop_iterations_int.
8114         (max_stmt_executions_int): Call get_max_loop_iterations_int.
8115         (get_max_loop_iterations_int): New.  HWINT version of
8116         get_max_loop_iterations.
8117         * cfgloop.h: Add prototypes.
8118         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
8119         * loop-unroll.c (decide_peel_once_rolling): Call
8120         get_estimated_loop_iterations_int.
8121         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
8122         * tree-ssa-loop-niter.h: Tweak prototypes.
8124 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
8126         * gengtype-parse.c (struct_field_seq): Ignore access-control
8127         keywords ("public:" etc).
8129 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8131         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
8132         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
8134 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
8136         * config/arm/arm.opt (mlra): New option.
8137         * config/arm/arm.c (arm_lra_p): New function.
8138         (TARGET_LRA_P): Define.
8140 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
8142         * tree-core.h (tree_code_name): Remove.
8143         * tree.h (get_tree_code_name): New prototype.
8144         * tree.c (tree_code_name): Make static.
8145         (get_tree_code_name): New function.
8146         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
8147         tree_class_check_failed, tree_range_check_failed,
8148         tree_not_class_check_failed, omp_clause_check_failed,
8149         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
8150         wrapper get_tree_code_name instead of calling tree_code_name directly.
8151         * tree-vrp.c (dump_asserts_for): Likewise.
8152         * tree-dump.c (dequeue_and_dump): Likewise.
8153         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
8154         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
8155         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
8156         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
8157         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
8158         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
8159         dump_gimple_omp_for): Likewise.
8160         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
8161         * tree-ssa-pre.c (print_pre_expr): Likewise.
8162         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
8163         * print-tree.c (print_node_brief, print_node): Likewise.
8164         * gimple.c (gimple_check_failed): Likewise.
8165         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
8166         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
8167         * config/mep/mep.c (mep_validate_vliw): Likewise.
8168         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
8169         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
8171 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
8173         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
8174         for AMD bdver3.
8176 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
8178         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
8179         (MULTILIB_MATCHES): Add multilib for -march=v8.
8181 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
8183         PR target/57756
8184         * optc-save-gen.awk: Add extra parameter to the save and restore
8185         target calls.
8186         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
8187         * tree.c (build_optimization_node): New parameter.  Add extra parameter
8188         to call to cl_optimization_save.
8189         (build_target_option_node): New parameter. Add extra parameter
8190         to call to cl_target_option_save.
8191         * tree.h (build_optimization_node): New parameter.
8192         (build_target_option_node): New parameter.
8193         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
8194         build_optimization_node and build_target_option_node.
8195         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
8196         (handle_pragma_push_options): Ditto.
8197         * toplev.c (process_options): Ditto.
8198         * opts.c (init_options_struct): Check for opts_set non-null.
8199         * target.def (target_option.save): New parameter.
8200         (target_option.restore): New parameter.
8201         * tm.texi: Generate.
8202         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
8203         (ix86_pragma_target_parse): Ditto.
8204         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
8205         parameters.
8206         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
8207         to  build_optimization_node and build_target_option_node.
8208         (rs6000_valid_attribute_p): Ditto.
8209         (rs6000_pragma_target_parse): Ditto.
8210         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
8211         data.
8212         * config/i386/i386.h:
8213         TARGET_64BIT_P: New Macro
8214         TARGET_MMX_P: New Macro.
8215         TARGET_3DNOW_P: New Macro.
8216         TARGET_3DNOW_A_P: New Macro.
8217         TARGET_SSE_P: New Macro.
8218         TARGET_SSE2_P: New Macro.
8219         TARGET_SSE3_P: New Macro.
8220         TARGET_SSSE3_P: New Macro.
8221         TARGET_SSE4_1_P: New Macro.
8222         TARGET_SSE4_2_P: New Macro.
8223         TARGET_AVX_P: New Macro.
8224         TARGET_AVX2_P: New Macro.
8225         TARGET_AVX512F_P: New Macro.
8226         TARGET_AVX512PF_P: New Macro.
8227         TARGET_AVX512ER_P: New Macro.
8228         TARGET_AVX512CD_P: New Macro.
8229         TARGET_FMA_P: New Macro.
8230         TARGET_SSE4A_P: New Macro.
8231         TARGET_FMA4_P: New Macro.
8232         TARGET_XOP_P: New Macro.
8233         TARGET_LWP_P: New Macro.
8234         TARGET_ABM_P: New Macro.
8235         TARGET_BMI_P: New Macro.
8236         TARGET_BMI2_P: New Macro.
8237         TARGET_LZCNT_P: New Macro.
8238         TARGET_TBM_P: New Macro.
8239         TARGET_POPCNT_P: New Macro.
8240         TARGET_SAHF_P: New Macro.
8241         TARGET_MOVBE_P: New Macro.
8242         TARGET_CRC32_P: New Macro.
8243         TARGET_AES_P: New Macro.
8244         TARGET_PCLMUL_P: New Macro.
8245         TARGET_CMPXCHG16B_P: New Macro.
8246         TARGET_FSGSBASE_P: New Macro.
8247         TARGET_RDRND_P: New Macro.
8248         TARGET_F16C_P: New Macro.
8249         TARGET_RTM_P: New Macro.
8250         TARGET_HLE_P: New Macro.
8251         TARGET_RDSEED_P: New Macro.
8252         TARGET_PRFCHW_P: New Macro.
8253         TARGET_ADX_P: New Macro.
8254         TARGET_FXSR_P: New Macro.
8255         TARGET_XSAVE_P: New Macro.
8256         TARGET_XSAVEOPT_P: New Macro.
8257         TARGET_LP64_P: New Macro.
8258         TARGET_X32_P: New Macro.
8259         TARGET_FPMATH_DEFAULT_P: New Macro.
8260         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
8261         * config/i386/i386.c (ix86_option_override_internal): New parameters.
8262         opts and opts_set.
8263         Change ix86_tune_string to access opts->x_ix86_tune_string.
8264         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
8265         Change ix86_arch_string to access opts->x_ix86_arch_string.
8266         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
8267         Change ix86_pmode to access opts->x_ix86_pmode.
8268         Change ix86_abi to access opts->x_ix86_abi.
8269         Change ix86_cmodel to access opts->x_ix86_cmodel.
8270         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
8271         Change ix86_isa_flags_explicit to access
8272         opts->x_ix86_isa_flags_explicit.
8273         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
8274         Change ix86_regparm to access opts->x_ix86_regparm.
8275         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
8276         Change ix86_preferred_stack_boundary_arg to access
8277         opts->x_ix86_preferred_stack_boundary_arg.
8278         Change ix86_force_align_arg_pointer to access
8279         opts->x_ix86_force_align_arg_pointer.
8280         Change ix86_incoming_stack_boundar_arg to access
8281         opts->x_ix86_incoming_stack_boundar_arg.
8282         Change ix86_fpmath to access opts->x_ix86_fpmath.
8283         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
8284         Change ix86_recip_name to access opts->x_ix86_recip_name.
8285         Change ix86_stack_protector_guard to access
8286         opts->x_ix86_stack_protector_guard.
8287         Change ix86_tune_memcpy_strategy to access
8288         opts->x_ix86_tune_memcpy_strategy.
8289         Change ix86_tune_memset_strategy to access
8290         opts->x_ix86_tune_memset_strategy.
8291         Change global_options to access opts.
8292         Change global_options_set to access opts_set.
8293         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
8294         Change TARGET_MMX to TARGET_MMX_P (opts->...).
8295         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
8296         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
8297         Change TARGET_SSE to TARGET_SSE_P (opts->...).
8298         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
8299         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
8300         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
8301         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
8302         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
8303         Change TARGET_AVX to TARGET_AVX_P (opts->...).
8304         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
8305         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
8306         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
8307         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
8308         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
8309         Change TARGET_FMA to TARGET_FMA_P (opts->...).
8310         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
8311         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
8312         Change TARGET_XOP to TARGET_XOP_P (opts->...).
8313         Change TARGET_LWP to TARGET_LWP_P (opts->...).
8314         Change TARGET_ABM to TARGET_ABM_P (opts->...).
8315         Change TARGET_BMI to TARGET_BMI_P (opts->...).
8316         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
8317         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
8318         Change TARGET_TBM to TARGET_TBM_P (opts->...).
8319         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
8320         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
8321         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
8322         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
8323         Change TARGET_AES to TARGET_AES_P (opts->...).
8324         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
8325         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
8326         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
8327         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
8328         Change TARGET_F16C to TARGET_F16C_P (opts->...).
8329         Change TARGET_RTM to TARGET_RTM_P (opts->...).
8330         Change TARGET_HLE to TARGET_HLE_P (opts->...).
8331         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
8332         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
8333         Change TARGET_ADX to TARGET_ADX_P (opts->...).
8334         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
8335         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
8336         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
8337         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
8338         Change TARGET_X32 to TARGET_X32_P (opts->...).
8339         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
8340         Change TARGET_FLOAT_RETURNS_IN_80387 to
8341         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
8342         (ix86_function_specific_save): New parameter. Use opts-> fields
8343         to replace global fields.
8344         (ix86_function_specific_restore): Ditto.
8345         (ix86_valid_target_attribute_inner_p): New parameters.
8346         Fix recursive call.
8347         Fix call to ix86_handle_option and set_option.
8348         (ix86_valid_target_attribute_tree): New parameters.
8349         Change global_options to access opts.
8350         Change global_options_set to access opts_set.
8351         Fix call to ix86_valid_target_attribute_inner_p.
8352         Change ix86_tune_string to access opts->x_ix86_tune_string.
8353         Change ix86_arch_string to access opts->x_ix86_arch_string.
8354         Change ix86_fpmath to access opts->x_ix86_fpmath
8355         Fix call to ix86_option_override_internal.
8356         Fix call to ix86_add_new_builtins.
8357         Fix calls to build_optimization_node and build_target_option_node.
8358         (ix86_valid_target_attribute_p): Remove access to global_options.
8359         Use new gcc_options structure func_options.
8360         Fix call to ix86_valid_target_attribute_tree.
8361         Fix call to  build_optimization_node.
8362         (get_builtin_code_for_version): Fix call to
8363         ix86_valid_target_attribute_tree.
8365 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
8367         * Makefile.in (PICFLAG): New.
8368         (enable_host_shared): New.
8369         (INTERNAL_CFLAGS): Use PICFLAG.
8370         (LIBIBERTY): Use pic build of libiberty.a if configured with
8371         --enable-host-shared.
8372         * configure.ac: Add --enable-host-shared, setting up new
8373         PICFLAG variable.
8374         * configure: Regenerate.
8375         * doc/install.texi (--enable-shared): Add note contrasting it with ...
8376         (--enable-host-shared): New option.
8378 2013-10-15  Richard Biener  <rguenther@suse.de>
8380         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
8381         for built-in functions.
8383 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8385         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
8386         (optimize_range_tests_1): New function,
8387         extracted from optimize_range_tests.
8388         (optimize_range_tests_xor): Similarly.
8389         (optimize_range_tests_diff): New function.
8390         (optimize_range_tests): Use optimize_range_tests_1.
8392 2013-10-15  Cong Hou  <congh@google.com>
8394         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
8395         requirement of the reduction pattern so that one operand of the
8396         reduction operation can come from outside of the loop.
8398 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8400         * config/arm/neon-schedgen.ml: Remove.
8401         * config/arm/cortex-a9-neon.md: Remove comment regarding
8402         neon-schedgen.ml.
8404 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8406         * config/arm/types: Remove old neon types.
8408 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8410         * config/arm/cortex-a7.md
8411         (cortex_a7_neon_type): New.
8412         (cortex_a7_neon_mul): Update for new types.
8413         (cortex_a7_neon_mla): Likewise.
8414         (cortex_a7_neon): Likewise.
8416 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8418         * config/arm/cortex-a15-neon.md
8419         (cortex_a15_neon_type): New,
8421         (cortex_a15_neon_int_1): Remove.
8422         (cortex_a15_neon_int_2): Likewise.
8423         (cortex_a15_neon_int_3): Likewise.
8424         (cortex_a15_neon_int_4): Likewise.
8425         (cortex_a15_neon_int_5): Likewise.
8426         (cortex_a15_neon_vqneg_vqabs): Likewise.
8427         (cortex_a15_neon_vmov): Likewise.
8428         (cortex_a15_neon_vaba): Likewise.
8429         (cortex_a15_neon_vaba_qqq): Likewise.
8430         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8431         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8432         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8433         Likewise.
8434         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8435         (cortex_a15_neon_mla_qqq_8_16): Likewise.
8436         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
8437         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8438         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8439         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
8440         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8441         (cortex_a15_neon_shift_1): Likewise.
8442         (cortex_a15_neon_shift_2): Likewise.
8443         (cortex_a15_neon_shift_3): Likewise.
8444         (cortex_a15_neon_vshl_ddd): Likewise.
8445         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8446         (cortex_a15_neon_vsra_vrsra): Likewise.
8447         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8448         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8449         (cortex_a15_neon_bp_3cycle): Likewise.
8450         (cortex_a15_neon_ldm_2): Likewise.
8451         (cortex_a15_neon_stm_2): Likewise.
8452         (cortex_a15_neon_mcr): Likewise.
8453         (cortex_a15_neon_mrc): Likewise.
8454         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
8455         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
8456         (cortex_a15_neon_fp_vmul_ddd): Likewise.
8457         (cortex_a15_neon_fp_vmul_qqd): Likewise.
8458         (cortex_a15_neon_fp_vmla_ddd): Likewise.
8459         (cortex_a15_neon_fp_vmla_qqq): Likewise.
8460         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8461         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8462         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8463         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8464         (cortex_a15_neon_bp_simple): Likewise.
8465         (cortex_a15_neon_bp_2cycle): Likewise.
8466         (cortex_a15_neon_bp_3cycle): Likewise.
8467         (cortex_a15_neon_vld1_1_2_regs): Likewise.
8468         (cortex_a15_neon_vld1_3_4_regs): Likewise.
8469         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8470         (cortex_a15_neon_vld2_4_regs): Likewise.
8471         (cortex_a15_neon_vld3_vld4): Likewise.
8472         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8473         (cortex_a15_neon_vst1_3_4_regs): Likewise.
8474         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
8475         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
8476         (cortex_a15_neon_vst3_vst4): Rename to...
8477         (cortex_a15_neon_vst4): This, update for new attributes.
8478         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
8479         (cortex_a15_neon_vld3_vld4_lane): Likewise.
8480         (cortex_a15_neon_vst1_vst2_lane): Likewise.
8481         (cortex_a15_neon_vst3_vst4_lane): Likewise.
8482         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
8483         (cortex_a15_neon_ldm_2): Likewise.
8484         (cortex_a15_neon_stm_2): Likewise.
8485         (cortex_a15_neon_mcr): Likewise.
8486         (cortex_a15_neon_mcr_2_mcrr): Likewise.
8487         (cortex_a15_neon_mrc): Likewise.
8488         (cortex_a15_neon_mrrc): Likewise.
8490         (cortex_a15_neon_abd): New.
8491         (cortex_a15_neon_abd_q): Likewise.
8492         (cortex_a15_neon_aba): Likewise.
8493         (cortex_a15_neon_aba_q): Likewise.
8494         (cortex_a15_neon_acc): Likewise.
8495         (cortex_a15_neon_acc_q): Likewise.
8496         (cortex_a15_neon_arith_basic): Likewise.
8497         (cortex_a15_neon_arith_complex): Likewise.
8498         (cortex_a15_neon_multiply): Likewise.
8499         (cortex_a15_neon_multiply_q): Likewise.
8500         (cortex_a15_neon_mla): Likewise.
8501         (cortex_a15_neon_mla_q): Likewise.
8502         (cortex_a15_neon_sat_mla_long): Likewise.
8503         (cortex_a15_neon_shift_acc): Likewise.
8504         (cortex_a15_neon_shift_imm_basic): Likewise.
8505         (cortex_a15_neon_shift_imm_complex): Likewise.
8506         (cortex_a15_neon_shift_reg_basic): Likewise.
8507         (cortex_a15_neon_shift_reg_basic_q): Likewise.
8508         (cortex_a15_neon_shift_reg_complex): Likewise.
8509         (cortex_a15_neon_shift_reg_complex_q): Likewise.
8510         (cortex_a15_neon_fp_negabs): Likewise
8511         (cortex_a15_neon_fp_arith): Likewise
8512         (cortex_a15_neon_fp_arith_q): Likewise
8513         (cortex_a15_neon_fp_cvt_int): Likewise
8514         (cortex_a15_neon_fp_cvt_int_q): Likewise
8515         (cortex_a15_neon_fp_cvt_16): Likewise
8516         (cortex_a15_neon_fp_mul): Likewise
8517         (cortex_a15_neon_fp_mul_q): Likewise
8518         (cortex_a15_neon_fp_mla): Likewise
8519         (cortex_a15_neon_fp_mla_q): Likewise
8520         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
8521         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
8522         (cortex_a15_neon_bitops): Likewise.
8523         (cortex_a15_neon_bitops_q): Likewise.
8524         (cortex_a15_neon_from_gp): Likewise.
8525         (cortex_a15_neon_from_gp_q): Likewise.
8526         (cortex_a15_neon_tbl3_tbl4): Likewise.
8527         (cortex_a15_neon_zip_q): Likewise.
8528         (cortex_a15_neon_to_gp): Likewise.
8529         (cortex_a15_neon_load_a): Likewise.
8530         (cortex_a15_neon_load_b): Likewise.
8531         (cortex_a15_neon_load_c): Likewise.
8532         (cortex_a15_neon_load_d): Likewise.
8533         (cortex_a15_neon_load_e): Likewise.
8534         (cortex_a15_neon_load_f): Likewise.
8535         (cortex_a15_neon_store_a): Likewise.
8536         (cortex_a15_neon_store_b): Likewise.
8537         (cortex_a15_neon_store_c): Likewise.
8538         (cortex_a15_neon_store_d): Likewise.
8539         (cortex_a15_neon_store_e): Likewise.
8540         (cortex_a15_neon_store_f): Likewise.
8541         (cortex_a15_neon_store_g): Likewise.
8542         (cortex_a15_neon_store_h): Likewise.
8543         (cortex_a15_vfp_to_from_gp): Likewise.
8545 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8547         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
8549         (cortex_a9_neon_vshl_ddd): Remove.
8550         (cortex_a9_neon_vst3_vst4): Likewise.
8551         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8553         (cortex_a9_neon_bit_ops_q): New.
8555         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
8556         (cortex_a9_neon_int_2): Likewise.
8557         (cortex_a9_neon_int_3): Likewise.
8558         (cortex_a9_neon_int_4): Likewise.
8559         (cortex_a9_neon_int_5): Likewise.
8560         (cortex_a9_neon_vqneg_vqabs): Likewise.
8561         (cortex_a9_neon_vmov): Likewise.
8562         (cortex_a9_neon_vaba): Likewise.
8563         (cortex_a9_neon_vaba_qqq): Likewise.
8564         (cortex_a9_neon_shift_1): Likewise.
8565         (cortex_a9_neon_shift_2): Likewise.
8566         (cortex_a9_neon_shift_3): Likewise.
8567         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8568         (cortex_a9_neon_vsra_vrsra): Likewise.
8569         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8570         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8571         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8572         Likewise.
8573         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8574         (cortex_a9_neon_mla_qqq_8_16): Likewise.
8575         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8576         Likewise.
8577         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8578         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8579         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
8580         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8581         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
8582         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
8583         (cortex_a9_neon_fp_vsum): Likewise.
8584         (cortex_a9_neon_fp_vmul_ddd): Likewise.
8585         (cortex_a9_neon_fp_vmul_qqd): Likewise.
8586         (cortex_a9_neon_fp_vmla_ddd): Likewise.
8587         (cortex_a9_neon_fp_vmla_qqq): Likewise.
8588         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
8589         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
8590         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8591         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8592         (cortex_a9_neon_bp_simple): Likewise.
8593         (cortex_a9_neon_bp_2cycle): Likewise.
8594         (cortex_a9_neon_bp_3cycle): Likewise.
8595         (cortex_a9_neon_ldr): Likewise.
8596         (cortex_a9_neon_str): Likewise.
8597         (cortex_a9_neon_vld1_1_2_regs): Likewise.
8598         (cortex_a9_neon_vld1_3_4_regs): Likewise.
8599         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8600         (cortex_a9_neon_vld2_4_regs): Likewise.
8601         (cortex_a9_neon_vld3_vld4): Likewise.
8602         (cortex_a9_neon_vld1_vld2_lane): Likewise.
8603         (cortex_a9_neon_vld3_vld4_lane): Likewise.
8604         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8605         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8606         (cortex_a9_neon_vst1_3_4_regs): Likewise.
8607         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
8608         (cortex_a9_neon_vst1_vst2_lane): Likewise.
8609         (cortex_a9_neon_vst3_vst4_lane): Likewise.
8610         (cortex_a9_neon_mcr): Likewise.
8611         (cortex_a9_neon_mcr_2_mcrr): Likewise.
8612         (cortex_a9_neon_mrc): Likewise.
8613         (cortex_a9_neon_mrrc): Likewise.
8615 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8617         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
8619         (cortex_a8_neon_vshl_ddd): Remove.
8620         (cortex_a8_neon_vst3_vst4): Likewise.
8621         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
8623         (cortex_a8_neon_bit_ops_q): New.
8625         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
8626         (cortex_a8_neon_int_2): Likewise..
8627         (cortex_a8_neon_int_3): Likewise.
8628         (cortex_a8_neon_int_5): Likewise.
8629         (cortex_a8_neon_vqneg_vqabs): Likewise.
8630         (cortex_a8_neon_int_4): Likewise.
8631         (cortex_a8_neon_vaba): Likewise.
8632         (cortex_a8_neon_vaba_qqq): Likewise.
8633         (cortex_a8_neon_shift_1): Likewise.
8634         (cortex_a8_neon_shift_2): Likewise.
8635         (cortex_a8_neon_shift_3): Likewise.
8636         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8637         (cortex_a8_neon_vsra_vrsra): Likewise.
8638         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8639         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8640         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8641         Likewise.
8642         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8643         (cortex_a8_neon_mla_qqq_8_16): Likewise.
8644         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8645         Likewise.
8646         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8647         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8648         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
8649         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8650         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
8651         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
8652         (cortex_a8_neon_fp_vsum): Likewise.
8653         (cortex_a8_neon_fp_vmul_ddd): Likewise.
8654         (cortex_a8_neon_fp_vmul_qqd): Likewise.
8655         (cortex_a8_neon_fp_vmla_ddd): Likewise.
8656         (cortex_a8_neon_fp_vmla_qqq): Likewise.
8657         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
8658         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
8659         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8660         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8661         (cortex_a8_neon_bp_simple): Likewise.
8662         (cortex_a8_neon_bp_2cycle): Likewise.
8663         (cortex_a8_neon_bp_3cycle): Likewise.
8664         (cortex_a8_neon_ldr): Likewise.
8665         (cortex_a8_neon_str): Likewise.
8666         (cortex_a8_neon_vld1_1_2_regs): Likewise.
8667         (cortex_a8_neon_vld1_3_4_regs): Likewise.
8668         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8669         (cortex_a8_neon_vld2_4_regs): Likewise.
8670         (cortex_a8_neon_vld3_vld4): Likewise.
8671         (cortex_a8_neon_vld1_vld2_lane): Likewise.
8672         (cortex_a8_neon_vld3_vld4_lane): Likewise.
8673         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8674         (cortex_a8_neon_vst1_3_4_regs): Likewise.
8675         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
8676         (cortex_a8_neon_vst1_vst2_lane): Likewise.
8677         (cortex_a8_neon_vst3_vst4_lane): Likewise.
8678         (cortex_a8_neon_mcr): Likewise.
8679         (cortex_a8_neon_mcr_2_mcrr): Likewise.
8680         (cortex_a8_neon_mrc): Likewise.
8681         (cortex_a8_neon_mrrc): Likewise.
8683 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8685         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
8686         (fp): New.
8687         * config/aarch64/aarch64-simd.md (neon_type): Remove.
8688         (aarch64_simd_dup<mode>): Add "type" attribute.
8689         (aarch64_dup_lane<mode>): Likewise.
8690         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
8691         (*aarch64_simd_mov<mode>): Likewise.
8692         (aarch64_simd_mov_from_<mode>low): Likewise.
8693         (aarch64_simd_mov_from_<mode>high): Likewise.
8694         (orn<mode>3): Likewise.
8695         (bic<mode>3): Likewise.
8696         (add<mode>3): Likewise.
8697         (sub<mode>3): Likewise.
8698         (mul<mode>3): Likewise.
8699         (*aarch64_mul3_elt<mode>): Likewise.
8700         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
8701         (*aarch64_mul3_elt_to_128df): Likewise.
8702         (*aarch64_mul3_elt_to_64v2df): Likewise.
8703         (neg<mode>2): Likewise.
8704         (abs<mode>2): Likewise.
8705         (abd<mode>_3): Likewise.
8706         (aba<mode>_3): Likewise.
8707         (fabd<mode>_3): Likewise.
8708         (*fabd_scalar<mode>3): Likewise.
8709         (and<mode>3): Likewise.
8710         (ior<mode>3): Likewise.
8711         (xor<mode>3): Likewise.
8712         (one_cmpl<mode>2): Likewise.
8713         (aarch64_simd_vec_set<mode>): Likewise.
8714         (aarch64_simd_lshr<mode>): Likewise.
8715         (aarch64_simd_ashr<mode>): Likewise.
8716         (aarch64_simd_imm_shl<mode>): Likewise.
8717         (aarch64_simd_reg_sshl<mode): Likewise.
8718         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
8719         (aarch64_simd_reg_shl<mode>_signed): Likewise.
8720         (aarch64_simd_vec_setv2di): Likewise.
8721         (aarch64_simd_vec_set<mode>): Likewise.
8722         (aarch64_mla<mode>): Likewise.
8723         (*aarch64_mla_elt<mode>): Likewise.
8724         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
8725         (aarch64_mls<mode>): Likewise.
8726         (*aarch64_mls_elt<mode>): Likewise.
8727         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
8728         (<su><maxmin><mode>3): Likewise.
8729         (move_lo_quad_<mode>): Likewise.
8730         (aarch64_simd_move_hi_quad_<mode>): Likewise.
8731         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
8732         (vec_pack_trunc_<mode>): Likewise.
8733         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
8734         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
8735         (*aarch64_<su>mlal_lo<mode>): Likewise.
8736         (*aarch64_<su>mlal_hi<mode>): Likewise.
8737         (*aarch64_<su>mlsl_lo<mode>): Likewise.
8738         (*aarch64_<su>mlsl_hi<mode>): Likewise.
8739         (*aarch64_<su>mlal<mode>): Likewise.
8740         (*aarch64_<su>mlsl<mode>): Likewise.
8741         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
8742         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
8743         (add<mode>3): Likewise.
8744         (sub<mode>3): Likewise.
8745         (mul<mode>3): Likewise.
8746         (div<mode>3): Likewise.
8747         (neg<mode>2): Likewise.
8748         (abs<mode>2): Likewise.
8749         (fma<mode>4): Likewise.
8750         (*aarch64_fma4_elt<mode>): Likewise.
8751         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
8752         (*aarch64_fma4_elt_to_128df): Likewise.
8753         (*aarch64_fma4_elt_to_64v2df): Likewise.
8754         (fnma<mode>4): Likewise.
8755         (*aarch64_fnma4_elt<mode>): Likewise.
8756         (*aarch64_fnma4_elt_<vswap_width_name><mode>
8757         (*aarch64_fnma4_elt_to_128df): Likewise.
8758         (*aarch64_fnma4_elt_to_64v2df): Likewise.
8759         (<frint_pattern><mode>2): Likewise.
8760         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
8761         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
8762         (vec_unpacks_lo_v4sf): Likewise.
8763         (aarch64_float_extend_lo_v2df): Likewise.
8764         (vec_unpacks_hi_v4sf): Likewise.
8765         (aarch64_float_truncate_lo_v2sf): Likewise.
8766         (aarch64_float_truncate_hi_v4sf): Likewise.
8767         (aarch64_vmls<mode>): Likewise.
8768         (<su><maxmin><mode>3): Likewise.
8769         (<maxmin_uns><mode>3): Likewise.
8770         (reduc_<sur>plus_<mode>): Likewise.
8771         (reduc_<sur>plus_v2di): Likewise.
8772         (reduc_<sur>plus_v2si): Likewise.
8773         (reduc_<sur>plus_<mode>): Likewise.
8774         (aarch64_addpv4sf): Likewise.
8775         (clz<mode>2): Likewise.
8776         (reduc_<maxmin_uns>_<mode>): Likewise.
8777         (reduc_<maxmin_uns>_v2di): Likewise.
8778         (reduc_<maxmin_uns>_v2si): Likewise.
8779         (reduc_<maxmin_uns>_<mode>): Likewise.
8780         (reduc_<maxmin_uns>_v4sf): Likewise.
8781         (aarch64_simd_bsl<mode>_internal): Likewise.
8782         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
8783         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
8784         (aarch64_get_lane<mode>): Likewise.
8785         (*aarch64_combinez<mode>): Likewise.
8786         (aarch64_combine<mode>): Likewise.
8787         (aarch64_simd_combine<mode>): Likewise.
8788         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
8789         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
8790         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
8791         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
8792         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
8793         (aarch64_<sur>h<addsub><mode>): Likewise.
8794         (aarch64_<sur><addsub>hn<mode>): Likewise.
8795         (aarch64_<sur><addsub>hn2<mode>): Likewise.
8796         (aarch64_pmul<mode>): Likewise.
8797         (aarch64_<su_optab><optab><mode>): Likewise.
8798         (aarch64_<sur>qadd<mode>): Likewise.
8799         (aarch64_sqmovun<mode>): Likewise.
8800         (aarch64_<sur>qmovn<mode>): Likewise.
8801         (aarch64_s<optab><mode>): Likewise.
8802         (aarch64_sq<r>dmulh<mode>): Likewise.
8803         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8804         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
8805         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8806         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
8807         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8808         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8809         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
8810         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
8811         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
8812         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
8813         (aarch64_sqdmull<mode>): Likewise.
8814         (aarch64_sqdmull_lane<mode>_internal): Likewise.
8815         (aarch64_sqdmull_n<mode>): Likewise.
8816         (aarch64_sqdmull2<mode>_internal): Likewise.
8817         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
8818         (aarch64_sqdmull2_n<mode>_internal): Likewise.
8819         (aarch64_<sur>shl<mode>): Likewise.
8820         (aarch64_<sur>q<r>shl<mode>
8821         (aarch64_<sur>shll_n<mode>): Likewise.
8822         (aarch64_<sur>shll2_n<mode>): Likewise.
8823         (aarch64_<sur>shr_n<mode>): Likewise.
8824         (aarch64_<sur>sra_n<mode>): Likewise.
8825         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
8826         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
8827         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
8828         (aarch64_cm<optab><mode>): Likewise.
8829         (aarch64_cm<optab>di): Likewise.
8830         (aarch64_cm<optab><mode>): Likewise.
8831         (aarch64_cm<optab>di): Likewise.
8832         (aarch64_cmtst<mode>): Likewise.
8833         (aarch64_cmtstdi): Likewise.
8834         (aarch64_cm<optab><mode>): Likewise.
8835         (*aarch64_fac<optab><mode>): Likewise.
8836         (aarch64_addp<mode>): Likewise.
8837         (aarch64_addpdi): Likewise.
8838         (sqrt<mode>2): Likewise.
8839         (vec_load_lanesoi<mode>): Likewise.
8840         (vec_store_lanesoi<mode>): Likewise.
8841         (vec_load_lanesci<mode>): Likewise.
8842         (vec_store_lanesci<mode>): Likewise.
8843         (vec_load_lanesxi<mode>): Likewise.
8844         (vec_store_lanesxi<mode>): Likewise.
8845         (*aarch64_mov<mode>): Likewise.
8846         (aarch64_ld2<mode>_dreg): Likewise.
8847         (aarch64_ld2<mode>_dreg): Likewise.
8848         (aarch64_ld3<mode>_dreg): Likewise.
8849         (aarch64_ld3<mode>_dreg): Likewise.
8850         (aarch64_ld4<mode>_dreg): Likewise.
8851         (aarch64_ld4<mode>_dreg): Likewise.
8852         (aarch64_tbl1<mode>): Likewise.
8853         (aarch64_tbl2v16qi): Likewise.
8854         (aarch64_combinev16qi): Likewise.
8855         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
8856         (aarch64_st2<mode>_dreg): Likewise.
8857         (aarch64_st2<mode>_dreg): Likewise.
8858         (aarch64_st3<mode>_dreg): Likewise.
8859         (aarch64_st3<mode>_dreg): Likewise.
8860         (aarch64_st4<mode>_dreg): Likewise.
8861         (aarch64_st4<mode>_dreg): Likewise.
8862         (*aarch64_simd_ld1r<mode>): Likewise.
8863         (aarch64_frecpe<mode>): Likewise.
8864         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
8865         (aarch64_frecps<mode>): Likewise.
8867 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8869         * config/arm/iterators.md (V_elem_ch): New.
8870         (q): Likewise.
8871         (VQH_type): Likewise.
8872         * config/arm/arm.md (is_neon_type): New.
8873         (conds): Use is_neon_type.
8874         (anddi3_insn): Update type attribute.
8875         (xordi3_insn): Likewise.
8876         (one_cmpldi2): Likewise.
8877         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
8878         * config/arm/neon.md (neon_mov): Update type attribute.
8879         (*movmisalign<mode>_neon_store): Likewise.
8880         (*movmisalign<mode>_neon_load): Likewise.
8881         (vec_set<mode>_internal): Likewise.
8882         (vec_set<mode>_internal): Likewise.
8883         (vec_setv2di_internal): Likewise.
8884         (vec_extract<mode>): Likewise.
8885         (vec_extract<mode>): Likewise.
8886         (vec_extractv2di): Likewise.
8887         (*add<mode>3_neon): Likewise.
8888         (adddi3_neon): Likewise.
8889         (*sub<mode>3_neon): Likewise.
8890         (subdi3_neon): Likewise.
8891         (fma<VCVTF:mode>4): Likewise.
8892         (fma<VCVTF:mode>4_intrinsic): Likewise.
8893         (*fmsub<VCVTF:mode>4): Likewise.
8894         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
8895         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
8896         (ior<mode>3): Likewise.
8897         (and<mode>3): Likewise.
8898         (orn<mode>3_neon): Likewise.
8899         (orndi3_neon): Likewise.
8900         (bic<mode>3_neon): Likewise.
8901         (bicdi3_neon): Likewise.
8902         (xor<mode>3): Likewise.
8903         (one_cmpl<mode>2): Likewise.
8904         (abs<mode>2): Likewise.
8905         (neg<mode>2): Likewise.
8906         (negdi2_neon): Likewise.
8907         (*umin<mode>3_neon): Likewise.
8908         (*umax<mode>3_neon): Likewise.
8909         (*smin<mode>3_neon): Likewise.
8910         (*smax<mode>3_neon): Likewise.
8911         (vashl<mode>3): Likewise.
8912         (vashr<mode>3_imm): Likewise.
8913         (vlshr<mode>3_imm): Likewise.
8914         (ashl<mode>3_signed): Likewise.
8915         (ashl<mode>3_unsigned): Likewise.
8916         (neon_load_count): Likewise.
8917         (ashldi3_neon_noclobber): Likewise.
8918         (ashldi3_neon): Likewise.
8919         (signed_shift_di3_neon): Likewise.
8920         (unsigned_shift_di3_neon): Likewise.
8921         (ashrdi3_neon_imm_noclobber): Likewise.
8922         (lshrdi3_neon_imm_noclobber): Likewise.
8923         (<shift>di3_neon): Likewise.
8924         (widen_ssum<mode>3): Likewise.
8925         (widen_usum<mode>3): Likewise.
8926         (quad_halves_<code>v4si): Likewise.
8927         (quad_halves_<code>v4sf): Likewise.
8928         (quad_halves_<code>v8hi): Likewise.
8929         (quad_halves_<code>v16qi): Likewise.
8930         (reduc_splus_v2di): Likewise.
8931         (neon_vpadd_internal<mode>): Likewise.
8932         (neon_vpsmin<mode>): Likewise.
8933         (neon_vpsmax<mode>): Likewise.
8934         (neon_vpumin<mode>): Likewise.
8935         (neon_vpumax<mode>): Likewise.
8936         (*ss_add<mode>_neon): Likewise.
8937         (*us_add<mode>_neon): Likewise.
8938         (*ss_sub<mode>_neon): Likewise.
8939         (*us_sub<mode>_neon): Likewise.
8940         (neon_vadd<mode>_unspec): Likewise.
8941         (neon_vaddl<mode>): Likewise.
8942         (neon_vaddw<mode>): Likewise.
8943         (neon_vhadd<mode>): Likewise.
8944         (neon_vqadd<mode>): Likewise.
8945         (neon_vaddhn<mode>): Likewise.
8946         (neon_vmul<mode>): Likewise.
8947         (neon_vfms<VCVTF:mode>): Likewise.
8948         (neon_vmlal<mode>): Likewise.
8949         (neon_vmls<mode>): Likewise.
8950         (neon_vmlsl<mode>): Likewise.
8951         (neon_vqdmulh<mode>): Likewise.
8952         (neon_vqdmlal<mode>): Likewise.
8953         (neon_vqdmlsl<mode>): Likewise.
8954         (neon_vmull<mode>): Likewise.
8955         (neon_vqdmull<mode>): Likewise.
8956         (neon_vsub<mode>_unspec): Likewise.
8957         (neon_vsubl<mode>): Likewise.
8958         (neon_vsubw<mode>): Likewise.
8959         (neon_vqsub<mode>): Likewise.
8960         (neon_vhsub<mode>): Likewise.
8961         (neon_vsubhn<mode>): Likewise.
8962         (neon_vceq<mode>): Likewise.
8963         (neon_vcge<mode>): Likewise.
8964         (neon_vcgeu<mode>): Likewise.
8965         (neon_vcgt<mode>): Likewise.
8966         (neon_vcgtu<mode>): Likewise.
8967         (neon_vcle<mode>): Likewise.
8968         (neon_vclt<mode>): Likewise.
8969         (neon_vcage<mode>): Likewise.
8970         (neon_vcagt<mode>): Likewise.
8971         (neon_vtst<mode>): Likewise.
8972         (neon_vabd<mode>): Likewise.
8973         (neon_vabdl<mode>): Likewise.
8974         (neon_vaba<mode>): Likewise.
8975         (neon_vabal<mode>): Likewise.
8976         (neon_vmax<mode>): Likewise.
8977         (neon_vmin<mode>): Likewise.
8978         (neon_vpaddl<mode>): Likewise.
8979         (neon_vpadal<mode>): Likewise.
8980         (neon_vpmax<mode>): Likewise.
8981         (neon_vpmin<mode>): Likewise.
8982         (neon_vrecps<mode>): Likewise.
8983         (neon_vrsqrts<mode>): Likewise.
8984         (neon_vqabs<mode>): Likewise.
8985         (neon_vqneg<mode>): Likewise.
8986         (neon_vcls<mode>): Likewise.
8987         (clz<mode>2): Likewise.
8988         (popcount<mode>2): Likewise.
8989         (neon_vrecpe<mode>): Likewise.
8990         (neon_vrsqrte<mode>): Likewise.
8991         (neon_vget_lane<mode>_sext_internal): Likewise.
8992         (neon_vget_lane<mode>_zext_internal): Likewise.
8993         (neon_vdup_n<mode>): Likewise.
8994         (neon_vdup_n<mode>): Likewise.
8995         (neon_vdup_nv2di): Likewise.
8996         (neon_vdup_lane<mode>_interal): Likewise.
8997         (*neon_vswp<mode>): Likewise.
8998         (neon_vcombine<mode>): Likewise.
8999         (float<mode><V_cvtto>2): Likewise.
9000         (floatuns<mode><V_cvtto>2): Likewise.
9001         (fix_trunc<mode><V_cvtto>2): Likewise.
9002         (fixuns_trunc<mode><V_cvtto>2
9003         (neon_vcvt<mode>): Likewise.
9004         (neon_vcvt<mode>): Likewise.
9005         (neon_vcvtv4sfv4hf): Likewise.
9006         (neon_vcvtv4hfv4sf): Likewise.
9007         (neon_vcvt_n<mode>): Likewise.
9008         (neon_vcvt_n<mode>): Likewise.
9009         (neon_vmovn<mode>): Likewise.
9010         (neon_vqmovn<mode>): Likewise.
9011         (neon_vqmovun<mode>): Likewise.
9012         (neon_vmovl<mode>): Likewise.
9013         (neon_vmul_lane<mode>): Likewise.
9014         (neon_vmul_lane<mode>): Likewise.
9015         (neon_vmull_lane<mode>): Likewise.
9016         (neon_vqdmull_lane<mode>): Likewise.
9017         (neon_vqdmulh_lane<mode>): Likewise.
9018         (neon_vqdmulh_lane<mode>): Likewise.
9019         (neon_vmla_lane<mode>): Likewise.
9020         (neon_vmla_lane<mode>): Likewise.
9021         (neon_vmlal_lane<mode>): Likewise.
9022         (neon_vqdmlal_lane<mode>): Likewise.
9023         (neon_vmls_lane<mode>): Likewise.
9024         (neon_vmls_lane<mode>): Likewise.
9025         (neon_vmlsl_lane<mode>): Likewise.
9026         (neon_vqdmlsl_lane<mode>): Likewise.
9027         (neon_vext<mode>): Likewise.
9028         (neon_vrev64<mode>): Likewise.
9029         (neon_vrev32<mode>): Likewise.
9030         (neon_vrev16<mode>): Likewise.
9031         (neon_vbsl<mode>_internal): Likewise.
9032         (neon_vshl<mode>): Likewise.
9033         (neon_vqshl<mode>): Likewise.
9034         (neon_vshr_n<mode>): Likewise.
9035         (neon_vshrn_n<mode>): Likewise.
9036         (neon_vqshrn_n<mode>): Likewise.
9037         (neon_vqshrun_n<mode>): Likewise.
9038         (neon_vshl_n<mode>): Likewise.
9039         (neon_vqshl_n<mode>): Likewise.
9040         (neon_vqshlu_n<mode>): Likewise.
9041         (neon_vshll_n<mode>): Likewise.
9042         (neon_vsra_n<mode>): Likewise.
9043         (neon_vsri_n<mode>): Likewise.
9044         (neon_vsli_n<mode>): Likewise.
9045         (neon_vtbl1v8qi): Likewise.
9046         (neon_vtbl2v8qi): Likewise.
9047         (neon_vtbl3v8qi): Likewise.
9048         (neon_vtbl4v8qi): Likewise.
9049         (neon_vtbl1v16qi): Likewise.
9050         (neon_vtbl2v16qi): Likewise.
9051         (neon_vcombinev16qi): Likewise.
9052         (neon_vtbx1v8qi): Likewise.
9053         (neon_vtbx2v8qi): Likewise.
9054         (neon_vtbx3v8qi): Likewise.
9055         (neon_vtbx4v8qi): Likewise.
9056         (*neon_vtrn<mode>_insn): Likewise.
9057         (*neon_vzip<mode>_insn): Likewise.
9058         (*neon_vuzp<mode>_insn): Likewise.
9059         (neon_vld1<mode>): Likewise.
9060         (neon_vld1_lane<mode>): Likewise.
9061         (neon_vld1_lane<mode>): Likewise.
9062         (neon_vld1_dup<mode>): Likewise.
9063         (neon_vld1_dup<mode>): Likewise.
9064         (neon_vld1_dupv2di): Likewise.
9065         (neon_vst1<mode>): Likewise.
9066         (neon_vst1_lane<mode>): Likewise.
9067         (neon_vst1_lane<mode>): Likewise.
9068         (neon_vld2<mode>): Likewise.
9069         (neon_vld2<mode>): Likewise.
9070         (neon_vld2_lane<mode>): Likewise.
9071         (neon_vld2_lane<mode>): Likewise.
9072         (neon_vld2_dup<mode>): Likewise.
9073         (neon_vst2<mode>): Likewise.
9074         (neon_vst2<mode>): Likewise.
9075         (neon_vst2_lane<mode>): Likewise.
9076         (neon_vst2_lane<mode>): Likewise.
9077         (neon_vld3<mode>): Likewise.
9078         (neon_vld3qa<mode>): Likewise.
9079         (neon_vld3qb<mode>): Likewise.
9080         (neon_vld3_lane<mode>): Likewise.
9081         (neon_vld3_lane<mode>): Likewise.
9082         (neon_vld3_dup<mode>): Likewise.
9083         (neon_vst3<mode>): Likewise.
9084         (neon_vst3qa<mode>): Likewise.
9085         (neon_vst3qb<mode>): Likewise.
9086         (neon_vst3_lane<mode>): Likewise.
9087         (neon_vst3_lane<mode>): Likewise.
9088         (neon_vld4<mode>): Likewise.
9089         (neon_vld4qa<mode>): Likewise.
9090         (neon_vld4qb<mode>): Likewise.
9091         (neon_vld4_lane<mode>): Likewise.
9092         (neon_vld4_lane<mode>): Likewise.
9093         (neon_vld4_dup<mode>): Likewise.
9094         (neon_vst4<mode>): Likewise.
9095         (neon_vst4qa<mode>): Likewise.
9096         (neon_vst4qb<mode>): Likewise.
9097         (neon_vst4_lane<mode>): Likewise.
9098         (neon_vst4_lane<mode>): Likewise.
9099         (neon_vec_unpack<US>_lo_<mode>): Likewise.
9100         (neon_vec_unpack<US>_hi_<mode>): Likewise.
9101         (neon_vec_<US>mult_lo_<mode>): Likewise.
9102         (neon_vec_<US>mult_hi_<mode>): Likewise.
9103         (neon_vec_<US>shiftl_<mode>): Likewise.
9104         (neon_unpack<US>_<mode>): Likewise.
9105         (neon_vec_<US>mult_<mode>): Likewise.
9106         (vec_pack_trunc_<mode>): Likewise.
9107         (neon_vec_pack_trunc_<mode>): Likewise.
9108         (neon_vabd<mode>_2): Likewise.
9109         (neon_vabd<mode>_3): Likewise.
9111 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9113         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
9114         (load_pair): Update type attribute.
9115         (store_pair): Update type attribute.
9116         * config/aarch64/iterators.md (q): New.
9118 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9120         * config/arm/types.md: Add new types for Neon insns.
9122 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9123             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9124             Sergey Lega  <sergey.s.lega@intel.com>
9125             Anna Tikhonova  <anna.tikhonova@intel.com>
9126             Ilya Tocar  <ilya.tocar@intel.com>
9127             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9128             Ilya Verbin  <ilya.verbin@intel.com>
9129             Kirill Yukhin  <kirill.yukhin@intel.com>
9130             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9132         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
9133         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
9134         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
9135         (rcp14<mode>): New.
9136         (srcp14<mode>): Ditto.
9137         (rsqrt14<mode>): Ditto.
9138         (rsqrt14<mode>): Ditto.
9139         (avx512f_vmscalef<mode>): Ditto.
9140         (avx512f_scalef<mode>): Ditto.
9141         (avx512f_getexp<mode>): Ditto.
9142         (avx512f_sgetexp<mode>): Ditto.
9143         (avx512f_fixupimm<mode>): Ditto.
9144         (avx512f_sfixupimm<mode>): Ditto.
9145         (avx512f_rndscale<mode>): Ditto.
9146         (*avx512er_exp2<mode>): Ditto.
9147         (*avx512er_rcp28<mode>): Ditto.
9148         (avx512er_rsqrt28<mode>): Ditto.
9149         (avx512f_getmant<mode>): Ditto.
9150         (avx512f_getmant<mode>): Ditto.
9151         (avx512f_rndscale<mode>): Fix formatting.
9153 2013-10-15  Martin Jambor  <mjambor@suse.cz>
9155         * ipa-utils.h (ipa_edge_within_scc): Declare.
9156         * ipa-cp.c (edge_within_scc): Moved...
9157         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
9159 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9160             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9161             Sergey Lega  <sergey.s.lega@intel.com>
9162             Anna Tikhonova  <anna.tikhonova@intel.com>
9163             Ilya Tocar  <ilya.tocar@intel.com>
9164             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9165             Ilya Verbin  <ilya.verbin@intel.com>
9166             Kirill Yukhin  <kirill.yukhin@intel.com>
9167             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9169         * config/i386/predicates.md (const_8_to_15_operand): New.
9170         (const_16_to_31_operand): Ditto.
9171         * config/i386/sse.md (V8FI): New.
9172         (V16FI): Ditto.
9173         (reduc_splus_v8df): Ditto.
9174         (reduc_splus_v16sf): Ditto.
9175         (avx512f_vextract<shuffletype>32x4_1): Ditto.
9176         (vec_extract_hi_<mode>): Ditto.
9177         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
9178         (vec_set_lo_<mode>): Ditto.
9179         (vec_set_hi_<mode>): Ditto.
9180         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
9181         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
9182         (avx512f_pshufd_1): Ditto.
9183         (avx512f_broadcast<mode>): Ditto.
9184         (avx512f_broadcast<mode>): Ditto.
9185         (define_split): Split vec_extract_lo into move.
9186         (ssequartermode): Ditto.
9187         (ssedoublemode): Extened with wider modes.
9188         (vec_extract_lo_<mode>): Ditto.
9190 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9191             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9192             Sergey Lega  <sergey.s.lega@intel.com>
9193             Anna Tikhonova  <anna.tikhonova@intel.com>
9194             Ilya Tocar  <ilya.tocar@intel.com>
9195             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9196             Ilya Verbin  <ilya.verbin@intel.com>
9197             Kirill Yukhin  <kirill.yukhin@intel.com>
9198             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9200         * config/i386/predicates.md (register_or_constm1_operand): New.
9201         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
9202         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
9203         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
9204         UNSPEC_SCATTER_PREFETCH
9205         (VI48_512): New.
9206         (avx512f_ucmp<mode>3): Ditto.
9207         (avx512f_vternlog<mode>): Ditto.
9208         (avx512f_align<mode>): Ditto.
9209         (<shift_insn><mode>3): Ditto.
9210         (avx512f_<rotate>v<mode>): Ditto.
9211         (avx512f_<rotate><mode>): Ditto.
9212         (avx512f_eq<mode>3): Ditto.
9213         (avx512f_eq<mode>3_1): Ditto.
9214         (avx512f_gt<mode>3): Ditto.
9215         (avx512f_testm<mode>3): Ditto.
9216         (avx512f_testnm<mode>3): Ditto.
9217         (avx512pf_gatherpf<mode>): Ditto.
9218         (*avx512pf_gatherpf<mode>_mask): Ditto.
9219         (*avx512pf_gatherpf<mode>): Ditto.
9220         (avx512pf_scatterpf<mode>): Ditto.
9221         (*avx512pf_scatterpf<mode>_mask): Ditto.
9222         (*avx512pf_scatterpf<mode>): Ditto.
9223         (avx512f_vec_dup_gpr<mode>): Ditto.
9224         (clz<mode>2): Ditto.
9225         (conflict<mode>): Ditto.
9226         (REDUC_SMINMAX_MODE): Extened with wider modes.
9227         (reduc_<code>_<mode>): Ditto.
9228         (vlshr<mode>3): Ditto.
9229         (vashl<mode>3): Ditto.
9231 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9232             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9233             Sergey Lega  <sergey.s.lega@intel.com>
9234             Anna Tikhonova  <anna.tikhonova@intel.com>
9235             Ilya Tocar  <ilya.tocar@intel.com>
9236             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9237             Ilya Verbin  <ilya.verbin@intel.com>
9238             Kirill Yukhin  <kirill.yukhin@intel.com>
9239             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9241         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
9242         UNSPEC_SCATTER.
9243         (VI48F_512): New.
9244         (avx512fmaskmode): Ditto.
9245         (bcstscalarsuff): Ditto.
9246         (avx512f_blendm<mode>): Ditto.
9247         (cmp_imm_predicate): Ditto.
9248         (avx512f_cmp<mode>3): Ditto.
9249         (avx512f_vec_dup<mode>): Ditto.
9250         (avx512f_vec_dup_mem<mode>): Ditto.
9251         (avx512f_vpermi2var<mode>3): Ditto.
9252         (avx512f_vpermt2var<mode>3): Ditto.
9253         (vec_init<mode>): Ditto.
9254         (avx512f_gathersi<mode>): Ditto.
9255         (*avx512f_gathersi<mode>): Ditto.
9256         (*avx512f_gathersi<mode>_2): Ditto.
9257         (avx512f_gatherdi<mode>): Ditto.
9258         (*avx512f_gatherdi<mode>): Ditto.
9259         (*avx512f_gatherdi<mode>_2): Ditto.
9260         (avx512f_scattersi<mode>): Ditto.
9261         (*avx512f_scattersi<mode>): Ditto.
9262         (avx512f_scatterdi<mode>): Ditto.
9263         (*avx512f_scatterdi<mode>): Ditto.
9264         (sseintprefix): Extened with wider modes.
9265         (VEC_GATHER_IDXSI): Ditto.
9266         (VEC_GATHER_IDXDI): Ditto.
9267         (VEC_GATHER_SRCDI): Ditto.
9269 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
9270             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9272         * config/arm/t-aprofile: New file.
9273         * config.gcc: Handle --with-multilib-list option.
9275 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
9277         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
9278         the input for r2.
9280 2013-10-15  Richard Biener  <rguenther@suse.de>
9282         * tree-loop-distribution.c (build_empty_rdg): Inline into
9283         single user.
9284         (rdg_flag_vertex): Inline into single user.
9285         (rdg_flag_vertex_and_dependent): Likewise.
9286         (build_rdg_partition_for_vertex): Remove processed bitmap.
9287         (rdg_build_partitions): Simplify.
9289 2013-10-15  Richard Biener  <rguenther@suse.de>
9291         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
9292         Restructure forwarding through conversions and copies to
9293         avoid performing copy-propagation the wrong way.  Adjust
9294         recursion invocations.
9295         (forward_propagate_addr_expr): Add argument stating if we
9296         are recursing from a single-use.
9297         (ssa_forward_propagate_and_combine): Adjust.
9299 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
9301         * dumpfile.h (gcc::dump_manager): New class, to hold state
9302         relating to dumpfile management.
9303         (get_dump_file_name): Remove in favor of method of dump_manager.
9304         (dump_initialized_p): Likewise.
9305         (dump_start): Likewise.
9306         (dump_finish): Likewise.
9307         (dump_switch_p): Likewise.
9308         (dump_register): Likewise.
9309         (get_dump_file_info): Likewise.
9310         * context.c (gcc::context::context): Construct the dump_manager
9311         instance.
9312         * context.h (gcc::context::get_dumps): New.
9313         (gcc::context::m_dumps): New.
9314         * coverage.c (coverage_init): Port to dump_manager API.
9315         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
9316         (extra_dump_files_in_use): Likewise.
9317         (extra_dump_files_alloced): Likewise.
9318         (gcc::dump_manager::dump_manager): New.
9319         (dump_register): Convert to...
9320         (gcc::dump_manager::dump_register): ...method, replacing
9321         function-static next_dump with m_next_dump field.
9322         (get_dump_file_info): Convert to...
9323         (gcc::dump_manager::get_dump_file_info): ...method.
9324         (get_dump_file_name): Convert to...
9325         (gcc::dump_manager::get_dump_file_name): ...method.
9326         (dump_start): Convert to...
9327         (gcc::dump_manager::dump_start): ...method.
9328         (dump_finish): Convert to...
9329         (gcc::dump_manager::dump_finish): ...method.
9330         (dump_begin): Replace body with...
9331         (gcc::dump_manager::dump_begin): ...new method.
9332         (dump_phase_enabled_p): Convert to...
9333         (gcc::dump_manager::dump_phase_enabled_p): ...method.
9334         (dump_phase_enabled_p): Convert to...
9335         (gcc::dump_manager::dump_phase_enabled_p): ...method.
9336         (dump_initialized_p):  Convert to...
9337         (gcc::dump_manager::dump_initialized_p): ...method.
9338         (dump_flag_name): Replace body with...
9339         (gcc::dump_manager::dump_flag_name): ...new method.
9340         (dump_enable_all): Convert to...
9341         (gcc::dump_manager::dump_enable_all): ...new method.
9342         (opt_info_enable_passes): Convert to...
9343         (gcc::dump_manager::opt_info_enable_passes): ...new method.
9344         (dump_switch_p_1): Convert to...
9345         (gcc::dump_manager::dump_switch_p_1): ...new method.
9346         (dump_switch_p):  Convert to...
9347         (gcc::dump_manager::dump_switch_p): ...new method.
9348         (opt_info_switch_p): Port to dump_manager API.
9349         (enable_rtl_dump_file): Likewise.
9350         * opts-global.c (handle_common_deferred_options): Port to new
9351         dump_manager API.
9352         * passes.c (pass_manager::finish_optimization_passes): Likewise.
9353         (pass_manager::register_one_dump_file): Likewise.
9354         (pass_manager::register_pass): Likewise.
9355         (pass_init_dump_file): Likewise.
9356         (pass_fini_dump_file): Likewise.
9357         * statistics.c (statistics_early_init): Likewise.
9359 2013-10-14  Richard Biener  <rguenther@suse.de>
9361         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
9362         iterative_hash_canonical_type, gimple_canonical_type_hash,
9363         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
9364         gimple_register_canonical_type, print_gimple_types_stats,
9365         free_gimple_type_tables): Move to lto/lto.c
9366         (gt-gimple.h): Do not include.
9367         * gimple.h (gimple_register_canonical_type,
9368         print_gimple_types_stats, free_gimple_type_tables): Remove.
9369         * Makefile.in (GTFILES): Remove gimple.c.
9371 2013-10-14  Travis Snoozy  <quandary@remstate.com>
9373         PR target/58716
9374         * config/msp430/msp430.c (msp430_option_override): Correct thinko
9375         scanning for msp430x targets.
9377 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
9379         PR bootstrap/58509
9380         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
9381         (registers_ok_for_ldd_peep): Move around.
9382         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
9383         * config/sparc/sparc.md (widening peepholes): Use it.
9385 2013-10-14  Richard Biener  <rguenther@suse.de>
9387         PR middle-end/58712
9388         PR middle-end/55358
9389         * gimple.c (iterative_hash_canonical_type): Make sure to
9390         record the hash into the correct hashtable slot.
9392 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
9394         PR rtl-optimization/58662
9395         * combine.c (try_combine): Take into account death nodes on I2 when
9396         splitting a PARALLEL of two independent SETs.  Fix dump message.
9398 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
9400         PR target/51244
9401         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
9402         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
9403         extra_objs.
9404         * config/sh/t-sh (sh_treg_combine.o): New entry.
9405         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
9406         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
9407         (register_sh_passes): New function.  Register sh_treg_combine pass.
9408         (sh_option_override): Invoke it.
9409         (sh_canonicalize_comparison): Handle op0_preserve_value.
9410         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
9411         opportunities.  Canonicalize branch condition.
9412         (nott): Allow only if pseudos can be created for non-SH2A.
9414 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
9416         PR target/58690
9417         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
9418         (ix86_expand_movmem): Replace copy_addr_to_reg with
9419         ix86_copy_addr_to_reg.
9420         (ix86_expand_setmem): Likewise.
9422 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
9424         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
9425         provided by ix86_fp_compare_mode instead of CCFPUmode.
9427 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
9429         * config/aarch64/arm_neon.h
9430         (vtbx<1,3>_<psu>8): Fix register constriants.
9432 2013-10-11  Jeff Law  <law@redhat.com>
9434         PR tree-optimization/58640
9435         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9436         threading paths that cross over two loop entry points.
9438 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9440         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
9441         handle vector float as well.
9442         (*vsx_le_perm_load_v4si): Likewise.
9443         (*vsx_le_perm_store_v2di): Likewise.
9444         (*vsx_le_perm_store_v4si): Likewise.
9446 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9448         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
9449         directly to circumvent subtract from splat{31} workaround.
9450         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
9451         prototype.
9452         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
9453         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
9454         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
9455         (altivec_vperm_<mode>): Convert to define_insn_and_split to
9456         separate big and little endian logic.
9457         (*altivec_vperm_<mode>_internal): New define_insn.
9458         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
9459         separate big and little endian logic.
9460         (*altivec_vperm_<mode>_uns_internal): New define_insn.
9461         (vec_permv16qi): Add little endian logic.
9463 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
9465         * doc/extend.texi (returns_nonnull): Remove arguments.
9467 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9468             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9469             Sergey Lega  <sergey.s.lega@intel.com>
9470             Anna Tikhonova  <anna.tikhonova@intel.com>
9471             Ilya Tocar  <ilya.tocar@intel.com>
9472             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9473             Ilya Verbin  <ilya.verbin@intel.com>
9474             Kirill Yukhin  <kirill.yukhin@intel.com>
9475             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9477         * config/i386/sse.md (VI48F_256_512): New.
9478         (avx2_permvar<mode>): Change to ...
9479         (<avx2_avx512f>_permvar<mode>): This.
9481 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9482             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9483             Sergey Lega  <sergey.s.lega@intel.com>
9484             Anna Tikhonova  <anna.tikhonova@intel.com>
9485             Ilya Tocar  <ilya.tocar@intel.com>
9486             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9487             Ilya Verbin  <ilya.verbin@intel.com>
9488             Kirill Yukhin  <kirill.yukhin@intel.com>
9489             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9491         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
9492         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
9493         * config/i386/sse.md (VI4_AVX): New.
9494         (sf2simodelower): Ditto.
9495         (sse2_cvtps2dq): Change to ...
9496         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
9498 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9499             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9500             Sergey Lega  <sergey.s.lega@intel.com>
9501             Anna Tikhonova  <anna.tikhonova@intel.com>
9502             Ilya Tocar  <ilya.tocar@intel.com>
9503             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9504             Ilya Verbin  <ilya.verbin@intel.com>
9505             Kirill Yukhin  <kirill.yukhin@intel.com>
9506             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9508         * config/i386/sse.md (V_512): New.
9509         (VI_512): Ditto.
9510         (vcond<V_512:mode><VF_512:mode>): Ditto.
9511         (vcond<V_512:mode><VI_512:mode>): Ditto.
9512         (vcondu<V_512:mode><VI_512:mode>): Ditto.
9514 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9515             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9516             Sergey Lega  <sergey.s.lega@intel.com>
9517             Anna Tikhonova  <anna.tikhonova@intel.com>
9518             Ilya Tocar  <ilya.tocar@intel.com>
9519             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9520             Ilya Verbin  <ilya.verbin@intel.com>
9521             Kirill Yukhin  <kirill.yukhin@intel.com>
9522             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9524         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
9525         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
9526         (FMAMODE): Ditto.
9527         (fma<mode>4): Removed condition.
9528         (fms<mode>4): Ditto.
9529         (fnma<mode>4): Ditto.
9530         (fnms<mode>4): Ditto.
9531         (fma4i_fmadd_<mode>): Ditto.
9532         (*fma_fmadd_<mode>): Ditto.
9533         (*fma_fmsub_<mode>): Ditto.
9534         (*fma_fnmadd_<mode>): Ditto.
9535         (*fma_fnmsub_<mode>): Ditto.
9536         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
9537         (*fma_fmaddsub_<mode>): Ditto.
9538         (*fma_fmsubadd_<mode>): Ditto.
9539         (*fmai_fmadd_<mode>): Ditto.
9540         (*fmai_fmsub_<mode>): Ditto.
9541         (*fmai_fnmadd_<mode>): Ditto.
9542         (*fmai_fnmsub_<mode>): Ditto.
9544 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9545             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9546             Sergey Lega  <sergey.s.lega@intel.com>
9547             Anna Tikhonova  <anna.tikhonova@intel.com>
9548             Ilya Tocar  <ilya.tocar@intel.com>
9549             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9550             Ilya Verbin  <ilya.verbin@intel.com>
9551             Kirill Yukhin  <kirill.yukhin@intel.com>
9552             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9554         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
9555         (VI124_256): Changed to ...
9556         (VI124_256_48_512): This.
9557         (ssepackmode): Extended with wider modes.
9558         (<code><mode>3): Changed iterator.
9559         (*avx2_<code><mode>3): Ditto.
9560         (vec_pack_trunc_<mode>): Ditto.
9562 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9563             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9564             Sergey Lega  <sergey.s.lega@intel.com>
9565             Anna Tikhonova  <anna.tikhonova@intel.com>
9566             Ilya Tocar  <ilya.tocar@intel.com>
9567             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9568             Ilya Verbin  <ilya.verbin@intel.com>
9569             Kirill Yukhin  <kirill.yukhin@intel.com>
9570             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9572         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
9573         (VI8F_256_512): Ditto.
9574         (abs<mode>2): Changed iterator.
9575         (avx2_perm<mode>): Changed to ...
9576         (<avx2_avx512f>_perm<mode>): This.
9577         (avx2_perm<mode>_1): Changed to ...
9578         (<avx2_avx512f>_perm<mode>_1): This.
9580 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9581             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9582             Sergey Lega  <sergey.s.lega@intel.com>
9583             Anna Tikhonova  <anna.tikhonova@intel.com>
9584             Ilya Tocar  <ilya.tocar@intel.com>
9585             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9586             Ilya Verbin  <ilya.verbin@intel.com>
9587             Kirill Yukhin  <kirill.yukhin@intel.com>
9588             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9590         * config/i386/sse.md (VI48_AVX512F): New.
9591         (VI48_AVX2): Changed to ...
9592         (VI48_AVX2_48_AVX512F): This.
9593         (avx2_ashrv<mode>): Changed to ...
9594         (<avx2_avx512f>_ashrv<mode>): This.
9595         (avx2_<shift_insn>v<mode>): Changed to ...
9596         (<avx2_avx512f>_<shift_insn>v<mode>): This.
9598 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9599             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9600             Sergey Lega  <sergey.s.lega@intel.com>
9601             Anna Tikhonova  <anna.tikhonova@intel.com>
9602             Ilya Tocar  <ilya.tocar@intel.com>
9603             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9604             Ilya Verbin  <ilya.verbin@intel.com>
9605             Kirill Yukhin  <kirill.yukhin@intel.com>
9606             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9608         * config/i386/sse.md (VI4_AVX512F): New.
9609         (VI8_AVX2_AVX512F): Ditto.
9610         (mul<mode>3): Extended with wider modes.
9611         (*<sse4_1_avx2>_mul<mode>3): Ditto.
9612         (mul<mode>3): Ditto.
9613         (vec_widen_<s>mult_odd_<mode>): Ditto.
9615 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9616             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9617             Sergey Lega  <sergey.s.lega@intel.com>
9618             Anna Tikhonova  <anna.tikhonova@intel.com>
9619             Ilya Tocar  <ilya.tocar@intel.com>
9620             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9621             Ilya Verbin  <ilya.verbin@intel.com>
9622             Kirill Yukhin  <kirill.yukhin@intel.com>
9623             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9625         * config/i386/sse.md (VI2_AVX512F): New.
9626         (VI124_AVX512F): Ditto.
9627         (sseunpackmode): Extended with wider modes.
9628         (sseunpackfltmode): Ditto.
9629         (vec_unpacks_float_hi_<mode>): Ditto.
9630         (vec_unpacks_float_lo_<mode>): Ditto.
9631         (vec_unpacku_float_hi_<mode>): Ditto.
9632         (vec_unpacku_float_lo_<mode>): Ditto.
9633         (vec_unpacks_lo_<mode>): Ditto.
9634         (vec_unpacks_hi_<mode>): Ditto.
9635         (vec_unpacku_lo_<mode>): Ditto.
9636         (vec_unpacku_hi_<mode>): Ditto.
9638 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9639             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9640             Sergey Lega  <sergey.s.lega@intel.com>
9641             Anna Tikhonova  <anna.tikhonova@intel.com>
9642             Ilya Tocar  <ilya.tocar@intel.com>
9643             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9644             Ilya Verbin  <ilya.verbin@intel.com>
9645             Kirill Yukhin  <kirill.yukhin@intel.com>
9646             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9648         * config/i386/i386.md (multdiv): New.
9649         (multdiv_mnemonic): Ditto.
9650         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
9651         (<sse>_vm<multdiv_mnemonic><mode>3): This.
9652         (<sse>_vmdiv<mode>3): Removed.
9654 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9655             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9656             Sergey Lega  <sergey.s.lega@intel.com>
9657             Anna Tikhonova  <anna.tikhonova@intel.com>
9658             Ilya Tocar  <ilya.tocar@intel.com>
9659             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9660             Ilya Verbin  <ilya.verbin@intel.com>
9661             Kirill Yukhin  <kirill.yukhin@intel.com>
9662             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9664         * config/i386/sse.md (V): Extended with wider modes.
9665         (VF2): Ditto.
9666         (ssehalfvecmode): Ditto.
9667         (i128): Ditto.
9668         (ssepackfltmode): Ditto.
9669         (avx_vec_concat<mode>): Ditto.
9670         (V_256_512): New iterator.
9671         (VF2_512_256): Ditto.
9672         (si2dfmode): New attribute.
9673         (si2dfmodelower): Ditto.
9674         (sf2dfmode): Ditto.
9675         (concat_tg_mode): Ditto.
9676         (floatv4siv4df2): Changed to ...
9677         (float<si2dfmodelower><mode>2): This.
9678         (avx_cvtps2pd256): Changed to ...
9679         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
9680         (vec_pack_trunc_v4df): Changed to ...
9681         (vec_pack_trunc_<mode>): This.
9682         (avx_vpermil<mode>): Changed to ...
9683         (<sse2_avx_avx512f>_vpermil<mode>): This.
9684         (<fixsuffix>fix_truncv8dfv8si2): New.
9685         (vec_pack_sfix_trunc_v8df): Ditto.
9686         (avx512f_rndscale<mode>): Ditto.
9687         (avx512f_roundpd512): Ditto.
9688         (vec_pack_ufix_trunc_<mode>): Updated iterator.
9690 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9691             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9692             Sergey Lega  <sergey.s.lega@intel.com>
9693             Anna Tikhonova  <anna.tikhonova@intel.com>
9694             Ilya Tocar  <ilya.tocar@intel.com>
9695             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9696             Ilya Verbin  <ilya.verbin@intel.com>
9697             Kirill Yukhin  <kirill.yukhin@intel.com>
9698             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9700         * config/i386/i386.md (any_fix): New iterator.
9701         (fixsuffix): New attribute.
9702         * config/i386/sse.md (VF1): Extened with wider modes.
9703         (VI): Ditto.
9704         (VI_AVX2): Ditto.
9705         (VI8): Ditto.
9706         (sseintvecmodelower): Ditto.
9707         (ssescalarmode): Ditto.
9708         (ssescalarnum): Ditto.
9709         (VF1_128_256): New.
9710         (ssexmmmode): Ditto.
9711         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
9712         (<sse>_rcp<mode>2): Change iterator.
9713         (rsqrt<mode>2): Ditto.
9714         (<sse>_rsqrt<mode>2): Ditto.
9715         (avx2_vec_dup<mode>): Ditto.
9716         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
9717         (round<mode>2_sfix): Ditto.
9718         (avx2_pbroadcast<mode>): Ditto.
9719         (*andnot<mode>3): Handle XI mode.
9720         (*<code><mode>3): Ditto.
9721         (AVXTOSSEMODE): Removed.
9722         (avx_vpermil<mode>): Changed to ...
9723         (<sse2_avx_avx512f>_vpermil<mode>): This.
9725 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9726             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9727             Sergey Lega  <sergey.s.lega@intel.com>
9728             Anna Tikhonova  <anna.tikhonova@intel.com>
9729             Ilya Tocar  <ilya.tocar@intel.com>
9730             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9731             Ilya Verbin  <ilya.verbin@intel.com>
9732             Kirill Yukhin  <kirill.yukhin@intel.com>
9733             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9735         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
9736         (<sse>_comi): Ditto.
9737         (<sse>_ucomi): Ditto.
9738         (sse_cvtss2siq_2): Ditto.
9739         (sse2_cvtsd2si): Ditto.
9740         (sse2_cvtsd2siq): Ditto.
9741         (sse2_cvttsd2si): Ditto.
9742         (sse2_cvttsd2siq): Ditto.
9743         (<shift_insn><mode>3): Ditto.
9744         (sse2_cvtsi2sdq): Update constraint and prefix.
9745         (sse_cvtsi2ss): Update prefix.
9746         (sse_cvtsi2ssq): Ditto.
9748 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
9750         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
9751         ignore internal calls.
9753 2013-10-11  Richard Biener  <rguenther@suse.de>
9755         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
9756         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
9757         TREE_OVERFLOW is set.
9759 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
9761         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
9763         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
9764         * gimple.h: Likewise.
9766         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
9768         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
9769         macros.
9771         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
9773         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
9774         * configure: Regenerate.
9776 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
9778         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
9779         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
9780         formatting fixes, use pp_colon instead of pp_character (..., ':'),
9781         similarly pp_right_paren.
9782         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
9783         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
9784         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
9785         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
9786         clauses.
9787         (omp_declare_simd_clauses_equal,
9788         omp_remove_redundant_declare_simd_attrs): New functions.
9789         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
9790         (walk_tree_1): Handle new OpenMP 4.0 clauses.
9791         * tree.h (OMP_LOOP_CHECK): Define.
9792         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
9793         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
9794         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
9795         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
9796         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
9797         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
9798         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
9799         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
9800         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
9801         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
9802         OMP_CLAUSE_SIMDLEN_EXPR): Define.
9803         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
9804         (omp_remove_redundant_declare_simd_attrs): New prototype.
9805         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
9806         GIMPLE_OMP_TEAMS): New codes.
9807         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
9808         * omp-low.c (struct omp_context): Add cancel_label and cancellable
9809         fields.
9810         (target_nesting_level): New variable.
9811         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
9812         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
9813         for collapse > 1 static schedule unless ordered.
9814         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
9815         (determine_parallel_type): Adjust get_ws_args_for caller.
9816         (install_var_field): Handle mask & 4 for double indirection.
9817         (scan_sharing_clauses): Ignore shared clause on teams construct.
9818         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
9819         (create_omp_child_function): If inside target or declare target
9820         constructs, set "omp declare target" attribute on the child function.
9821         (find_combined_for): New function.
9822         (scan_omp_parallel): Handle combined loops.
9823         (scan_omp_target, scan_omp_teams): New functions.
9824         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
9825         restrictions and set ctx->cancellable for cancellable constructs.
9826         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
9827         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
9828         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
9829         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
9830         (omp_clause_aligned_alignment): New function.
9831         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
9832         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
9833         on teams constructs.  Handle user defined reductions and new
9834         OpenMP 4.0 clauses.
9835         (lower_reduction_clauses): Don't set placeholder to address of ref
9836         if it has already the right type.
9837         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
9838         (expand_parallel_call): Use the new non-_start suffixed builtins,
9839         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
9840         and GOMP_parallel_end after the call.
9841         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
9842         (expand_omp_for_init_counts): Handle combined loops.
9843         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
9844         loops.
9845         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
9846         end of cancellable loops.
9847         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
9848         Likewise.  Handle collapse > 1 loops.
9849         (expand_omp_simd): Handle combined loops.
9850         (expand_omp_for): Add inner_stmt argument, adjust callers of
9851         expand_omp_for* functions, use expand_omp_for_static*chunk even
9852         for collapse > 1 unless ordered.
9853         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
9854         of cancellable sections.
9855         (expand_omp_single): Remove need_barrier variable, just rely on
9856         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
9857         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
9858         (expand_omp_atomic_load, expand_omp_atomic_store,
9859         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
9860         (expand_omp_target): New function.
9861         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
9862         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
9863         (build_omp_regions_1): Immediately close region for
9864         GF_OMP_TARGET_KIND_UPDATE.
9865         (maybe_add_implicit_barrier_cancel): New function.
9866         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
9867         cancellation.
9868         (lower_omp_single): Likewise.  Add clobber after the barrier.
9869         (lower_omp_taskgroup): New function.
9870         (lower_omp_for): Handle combined loops.  Adjust
9871         lower_rec_input_clauses caller.  Handle cancellation.
9872         (lower_depend_clauses): New function.
9873         (lower_omp_taskreg): Lower depend clauses.  Adjust
9874         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
9875         cancellation.
9876         (lower_omp_target, lower_omp_teams): New functions.
9877         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
9878         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
9879         and GOMP_cancellation_point calls.
9880         (lower_omp): Fold stmts inside of target region.
9881         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
9882         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
9883         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
9884         (BT_FN_VOID_OMPFN_PTR_UINT,
9885         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
9886         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
9887         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
9888         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
9889         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
9890         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
9891         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
9892         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9893         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9894         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
9895         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9896         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
9897         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
9898         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
9899         BUILT_IN_GOMP_PARALLEL_END.
9900         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
9901         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
9902         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
9903         GF_OMP_FOR_KIND_DISTRIBUTE.
9904         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
9905         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
9906         (dump_gimple_omp_return): Print lhs if it has any.
9907         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
9908         gimple_omp_atomic_seq_cst_p.
9909         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
9910         and GIMPLE_OMP_TEAMS.
9911         * langhooks.c (lhd_omp_mappable_type): New function.
9912         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
9913         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
9914         hook.
9915         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
9916         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
9917         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
9918         (struct gimplify_omp_ctx): Add combined_loop field.
9919         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
9920         on stmts inside of target region.
9921         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
9922         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
9923         ORT_TARGET and ORT_TARGET_DATA.
9924         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
9925         Handle GOVD_MAP.
9926         (omp_notice_threadprivate_variable): Complain about threadprivate
9927         variables in target region.
9928         (omp_notice_variable): Complain about vars with non-mappable type
9929         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
9930         (omp_check_private): Ignore ORT_TARGET* regions.
9931         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
9932         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
9933         (find_combined_omp_for): New function.
9934         (gimplify_omp_for): Handle gimplification of combined loops.
9935         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
9936         OMP_TEAMS.
9937         (gimplify_omp_target_update): New function.
9938         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
9939         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
9940         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
9941         (gimplify_body): If fndecl has "omp declare target" attribute, add
9942         implicit ORT_TARGET context around it.
9943         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
9944         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
9945         * tree-nested.c (convert_nonlocal_reference_stmt,
9946         convert_local_reference_stmt, convert_gimple_call): Handle
9947         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9948         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
9949         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
9950         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
9951         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
9952         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
9953         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
9954         BUILT_IN_GOMP_LOOP_END_CANCEL,
9955         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
9956         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
9957         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
9958         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
9959         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
9960         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
9961         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
9962         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
9963         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
9964         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
9965         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
9966         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
9967         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
9968         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
9969         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
9970         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9971         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
9972         gimple_build_omp_teams): New functions.
9973         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
9974         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
9975         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
9976         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9977         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
9978         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
9979         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
9980         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
9981         GF_OMP_ATOMIC_SEQ_CST): New.
9982         (gimple_build_omp_taskgroup, gimple_build_omp_target,
9983         gimple_build_omp_teams): New prototypes.
9984         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
9985         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9986         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
9987         GIMPLE_OMP_SINGLE as end of range.
9988         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
9989         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
9990         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
9991         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
9992         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
9993         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
9994         gimple_omp_target_kind, gimple_omp_target_set_kind,
9995         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
9996         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
9997         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
9998         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
9999         gimple_omp_teams_set_clauses): New inlines.
10000         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
10001         and GIMPLE_OMP_TASKGROUP.
10002         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
10003         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
10004         enum omp_clause_proc_bind_kind): New.
10005         (union omp_clause_subcode): Add depend_kind, map_kind and
10006         proc_bind_kind fields.
10007         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
10008         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
10009         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
10010         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
10011         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
10013 2013-10-10  Teresa Johnson  <tejohnson@google.com>
10015         * predict.c (tree_estimate_probability): Add new parameter
10016         for estimate_bb_frequencies.
10017         (estimate_bb_frequencies): Add new parameter to force estimation.
10018         (rebuild_frequencies): When max frequency in function is small,
10019         recompute counts from frequencies.
10020         * predict.h (estimate_bb_frequencies): New parameter.
10022 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
10024         * ipa-inline.c (ipa_inline): Fix leak of "order" when
10025         optimizations are disabled.
10027 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
10029         * coverage.c (coverage_finish): Fix leak of da_file_name.
10031 2013-10-10  Jan Hubicka  <jh@suse.cz>
10033         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
10034         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
10035         Bobcat and generic.
10037 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
10039         PR middle-end/58670
10040         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
10041         if any labels are in FALLTHRU_BB, use a special label emitted
10042         immediately after the asm goto insn rather than label_rtx
10043         of the LABEL_DECL.
10044         (expand_asm_stmt): Adjust caller.
10045         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
10046         edge if the last insn in predecessor is a jump with single successor,
10047         but it isn't simplejump_p.
10049 2013-10-10  Richard Biener  <rguenther@suse.de>
10051         PR tree-optimization/58656
10052         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
10054 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
10056         * gimplify.c: Include expr.h and tm_p.h for targets with special
10057         va-arg padding requirements.
10059 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
10061         * tree-flow.h: Move some prototypes to gimple.h.
10062         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
10063         * gimple.h: Relocate some prototypes from tree-flow.h
10064         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
10065         Move to gimplify.c.
10066         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
10067         (build_va_arg_indirect_ref): Relocate and make static.
10068         (std_gimplify_va_arg_expr): Relocate here.
10069         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
10070         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
10072 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10074         * doc/md.texi: Document the mnemonic attribute.
10076 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10078         PR target/57377
10079         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
10080         (set_attr_alternative x ...) when searching for user defined
10081         mnemonic attribute.
10083 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
10085         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
10087 2013-10-09  Easwaran Raman <eraman@google.com>
10089         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
10090         * cfgexpand.c (defer_stack_allocation): ...use here
10091         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
10093 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10095         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
10096         (operand_equal_for_value_replacement): New function, extracted from
10097         value_replacement and enhanced to catch more cases.
10098         (value_replacement): Use operand_equal_for_value_replacement.
10100 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10102         * loop-doloop.c (doloop_modify, doloop_optimize): Use
10103         get_max_loop_iterations.
10105 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10107         * config/arm/aarch-common.c (arm_early_load_addr_dep):
10108         Place comment above function.
10110 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10112         * tree-flow.h: Remove all remaining prototypes, enums and structs that
10113         are not related to tree-cfg.c.
10114         * tree-ssa-address.h: New file.  Relocate prototypes.
10115         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
10116         (addr_for_mem_ref): New.  Combine call to get_address_description and
10117         return addr_for_mem_ref.
10118         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
10119         * tree-ssa-live.h: Adjust prototypes.
10120         * passes.c: Include tree-ssa-live.h.
10121         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
10122         * graphite.c (graphite_transform_loops): Make static.
10123         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
10124         make_pass_graphite, pass_data_graphite_transforms,
10125         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
10126         * ipa-pure-const.c (warn_function_noreturn): Make static.
10127         (execute_warn_function_noreturn, gate_warn_function_noreturn,
10128         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
10129         Relocate from tree-cfg.c
10130         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
10131         static.
10132         (execute_warn_function_noreturn, gate_warn_function_noreturn,
10133         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
10134         Move to ipa-pure-const.c.
10135         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
10136         Relocate from tree-optimize.c.
10137         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
10138         make_pass_fixup_cfg): Move to tree-cfg.c.
10139         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
10140         Relocate some prototypes.
10141         * tree-data-ref.h (tree_check_data_deps) Add prototype.
10142         * tree-dump.c (dump_function_to_file): Remove prototype.
10143         Add tree-flow.h to the include file.
10144         * tree-dump.h: Remove prototype.
10145         * tree-parloops.h: New File.  Add prototypes.
10146         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
10147         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
10148         from tree-ssa-loop.c.
10149         * tree-predcom.c (run_tree_predictive_commoning,
10150         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
10151         Relocate here from tree-ssa-loop.c.
10152         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
10153         ssa_name_values.release ().
10154         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
10155         (ssa_name_values): Relocate from tree-flow.h.
10156         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
10157         * tree-ssa-loop.c (run_tree_predictive_commoning,
10158         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
10159         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
10160         make_pass_graphite, pass_data_graphite_transforms,
10161         make_pass_graphite_transforms, gate_tree_parallelize_loops,
10162         tree_parallelize_loops, pass_data_parallelize_loops,
10163         make_pass_parallelize_loops): Move to other files.
10164         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
10165         moved here.
10166         * tree.h: Remove prototypes from tree-address.c.
10168 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10170         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
10171         (struct int_tree_map): Move to tree-hasher.h
10172         (SCALE, LABEL, PERCENT): Move to gimple.h
10173         * tree-flow-inline.h: Delete.  Move functions to other files.
10174         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
10175         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
10176         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
10177         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
10178         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
10179         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
10180         * tree-hasher.h: Don't include tree-flow.h.
10181         (struct int_tree_map): Relocate from tree-flow.h.
10182         * tree-sra.c (contains_view_convert_expr_p): Relocate from
10183         tree-flow-inline.h and make static.
10184         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
10185         tree-flow-inline.h.
10186         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
10187         tree-flow-inline.h and make static.
10188         * tree.h (is_global_var, may_be_aliased): Relocate from
10189         tree-flow-inline.h.
10190         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
10191         * value-prof.c: No longer include tree-flow-inline.h.
10192         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
10194 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10196         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
10197         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
10198         (enum move_pos): Move to tree-ssa-loop-im.h
10199         * cfgloop.h: Move some prototypes.
10200         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
10201         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
10202         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
10203         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
10204         (loop_containing_stmt): Relocate from tree-flow-inline.h.
10205         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
10206         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
10207         (enum move_pos): Relocate here.
10208         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
10209         tree-ssa-loop.c.
10210         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
10211         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
10212         make_pass_lim): Relocate here from tree-ssa-loop.c.
10213         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
10214         tree-ssa-loop.c.
10215         (loop_edge_to_cancel, unloop_loops): Make static.
10216         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10217         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
10218         (tree_complete_unroll, gate_tree_complete_unroll,
10219         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
10220         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10221         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
10222         * tree-ssa-loop-ivopts.c: Remove local prototypes.
10223         (stmt_invariant_in_loop_p): Remove unused function.
10224         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
10225         * tree-ssa-loop-manip.h: New file.  Add prototypes.
10226         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
10227         (gcov_type_to_double_int): Move to cfgloop.h.
10228         (double_int_cmp, bound_index,
10229         estimate_numbers_of_iterations_loop): Make static.
10230         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
10231         (max_loop_iterations): Factor out get_max_loop_iterations.
10232         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
10233         cfgloop.c.
10234         * tree-ssa-loop-niter.h: New file.  Add prototypes.
10235         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
10236         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
10237         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
10238         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
10239         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
10240         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
10241         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
10242         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
10243         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
10244         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
10245         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10246         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
10247         pass_data_complete_unroll, make_pass_complete_unroll,
10248         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10249         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
10250         tree-ssa-loop-ivcanon.c.
10251         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
10252         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
10253         tree-ssa-loop-prefetch.c.
10254         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
10255         tree-ssa-loop-im.c.
10256         (get_lsm_tmp_name): Relocate and add suffix parameter.
10257         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
10258         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
10259         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
10260         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
10261         (get_estimated_loop_iterations): Factor out accessor from
10262         estimated_loop_iterations in tree-ssa-loop-niter.c.
10263         (get_max_loop_iterations): Factor out accessor from
10264         _max_loop_iterations in tree-ssa-niter.c.
10265         * loop-unroll.c (decide_unroll_constant_iterations,
10266         decide_unroll_runtime_iterations, decide_peel_simple,
10267         decide_unroll_stupid): Use new get_* accessors.
10269 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
10271         PR tree-optimization/20318
10272         * doc/extend.texi (returns_nonnull): New function attribute.
10273         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
10274         attribute.
10275         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
10276         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
10278 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
10280         PR middle-end/58570
10281         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
10282         false if both components are bitfields.
10284 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10286         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
10287         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
10288         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
10289         * config/aarch64/aarch64.h
10290         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
10291         * config/aarch64/aarch64-simd-builtins.def
10292         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
10294 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10296         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
10298 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10300         * config/aarch64/arm_neon.h (vdiv_f64): Added.
10302 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10304         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
10305         (vneg_f64): New intrinsic.
10306         (vneg_s8): Asm replaced with C.
10307         (vneg_s16): Likewise.
10308         (vneg_s32): Likewise.
10309         (vneg_s64): New intrinsic.
10310         (vnegq_f32): Asm replaced with C.
10311         (vnegq_f64): Likewise.
10312         (vnegq_s8): Likewise.
10313         (vnegq_s16): Likewise.
10314         (vnegq_s32): Likewise.
10315         (vnegq_s64): Likewise.
10317 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
10319         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
10321 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10323         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
10324         packed stack special handling.
10325         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
10326         back to fixed stack slots for FPRs saved due to stdarg.
10328 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10330         * config/s390/s390.c (s390_frame_info): Restructure function.
10332 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10334         * config/s390/s390.c (struct s390_frame_layout): New field
10335         gpr_save_slots.
10336         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
10337         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
10338         regs_ever_clobbered to char*.
10339         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
10340         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
10341         (s390_register_info): Enable FPR save slots.  Move/Copy some
10342         functionality into ...
10343         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
10344         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
10345         function.
10346         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
10347         not imply a stack frame.
10348         (s390_init_frame_layout): Remove variable clobbered_regs.
10349         (s390_update_register_info): Remove function.
10350         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
10351         cannot be used for register renaming.
10352         (s390_hard_regno_scratch_ok): New function.
10353         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
10354         (s390_initial_elimination_offset): Change offset calculation of
10355         the return address pointer.
10356         (save_gprs): Deal with only r6 being saved from the call-saved regs.
10357         (restore_gprs): Set frame related flag.
10358         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
10359         (s390_emit_prologue): Call s390_register_info instead of
10360         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
10361         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
10362         (s390_optimize_prologue): Call s390_optimize_register_info.
10363         Try to remove also FPR slot save/restore INSNs.  Remove frame
10364         related flags from restore INSNs.
10366 2013-10-08  DJ Delorie  <dj@redhat.com>
10368         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
10369         (movhi): Likewise.
10371         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
10372         avoid conflict with the MI use of %c.
10373         * config/rl78/rl78-real.md: change %c to %C throughout.
10374         * config/rl78/rl78-virt.md: Likewise.
10376 2013-10-08  Jan Hubicka  <jh@suse.cz>
10378         * config/i386/i386.c (ix86_option_override_internal): Switch
10379         to SSE math for -ffast-math when target ISA supports SSE2.
10381 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
10383         * tree-flow.h: Remove some prototypes.
10384         * tree.h: Remove some protypes, add a couple.
10385         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
10386         using_eh_for_cleanups_p): Add interface routines for front ends.
10387         * tree-eh.h: New file.  Add protoptyes.
10388         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
10389         (add_stmt_to_eh_lp_fn): Make static.
10390         (lower_try_finally): Use new using_eh_for_cleanups_p.
10391         * emit-rtl.c: Include tree-eh.h.
10392         * gimple.h: Include tree-eh.h.
10394 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
10396         PR tree-optimization/58480
10397         * tree-vrp.c (infer_nonnull_range): New function.
10398         (infer_value_range): Call infer_nonnull_range.
10400 2013-10-08  Dehao Chen  <dehao@google.com>
10402         PR tree-optimization/58619
10403         * tree-inline.c (copy_phis_for_bb): Combine location data
10404         only if non-null.
10406 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10408         PR target/58423
10409         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
10410         RTX_FRAME_RELATED_P on INSN.
10412 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10414         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
10415         (altivec_expand_vec_perm_const): Call it.
10417 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10419         * config/rs6000/vector.md (mov<mode>): Emit permuted move
10420         sequences for LE VSX loads and stores at expand time.
10421         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
10422         prototype.
10423         * config/rs6000/rs6000.c (rs6000_const_vec): New.
10424         (rs6000_gen_le_vsx_permute): New.
10425         (rs6000_gen_le_vsx_load): New.
10426         (rs6000_gen_le_vsx_store): New.
10427         (rs6000_gen_le_vsx_move): New.
10428         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
10429         (*vsx_le_perm_load_v4si): New.
10430         (*vsx_le_perm_load_v8hi): New.
10431         (*vsx_le_perm_load_v16qi): New.
10432         (*vsx_le_perm_store_v2di): New.
10433         (*vsx_le_perm_store_v4si): New.
10434         (*vsx_le_perm_store_v8hi): New.
10435         (*vsx_le_perm_store_v16qi): New.
10436         (*vsx_xxpermdi2_le_<mode>): New.
10437         (*vsx_xxpermdi4_le_<mode>): New.
10438         (*vsx_xxpermdi8_le_V8HI): New.
10439         (*vsx_xxpermdi16_le_V16QI): New.
10440         (*vsx_lxvd2x2_le_<mode>): New.
10441         (*vsx_lxvd2x4_le_<mode>): New.
10442         (*vsx_lxvd2x8_le_V8HI): New.
10443         (*vsx_lxvd2x16_le_V16QI): New.
10444         (*vsx_stxvd2x2_le_<mode>): New.
10445         (*vsx_stxvd2x4_le_<mode>): New.
10446         (*vsx_stxvd2x8_le_V8HI): New.
10447         (*vsx_stxvd2x16_le_V16QI): New.
10449 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
10451         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
10453 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10455         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
10456         loop to work also for 31bit ABI.
10457         Save the stack pointer for frame_size > 0.
10459 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10461         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
10462         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
10463         constraint letters from expanders.
10464         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
10465         retry count to general_operand.
10466         ("tabort"): Give operand 0 a mode.
10467         ("tabort_1"): Add mode and constraint letter for operand 0.
10468         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
10470 2013-10-04  Jeff Law  <law@redhat.com>
10472         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
10474         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
10475         out of ...
10476         (thread_across_edge): Here.  Call it.
10478 2013-10-04  Cary Coutant  <ccoutant@google.com>
10480         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
10481         discarding a location list expression (or a piece of one).
10483 2013-10-03  Jan Hubicka  <jh@suse.cz>
10485         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
10486         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
10487         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
10489 2013-10-03  Jan Hubicka  <jh@suse.cz>
10491         * config/i386/i386.c (ix86_option_override_internal): Do not enable
10492         accumulate-outgoing-args when producing unwind info.
10494 2013-10-03  Wei Mi  <wmi@google.com>
10496         * lra-constraints.c (insert_move_for_subreg): New function
10497         extracted from simplify_operand_subreg.
10498         (simplify_operand_subreg): Add reload for paradoxical subreg.
10500 2013-10-03  Rong Xu  <xur@google.com>
10502         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
10503         the candidate of builtin_expect such that we should fix the
10504         size/time estimation.
10505         (estimate_function_body_sizes): Do the acutally size/time fix-up
10506         for builtin_expect.
10508 2013-10-03  Rong Xu  <xur@google.com>
10510         * predict.c (tree_predict_by_opcode): Get the probability
10511         for builtin_expect from param builtin_expect_probability.
10512         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
10513         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
10514         * doc/invoke.texi: Add documentation for builtin-expect-probability.
10516 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
10518         PR c++/19476
10519         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
10520         * calls.c (alloca_call_p): Use get_callee_fndecl.
10521         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
10522         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
10523         Likewise.
10524         (vrp_visit_stmt): Remove duplicated code.
10526 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
10528         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
10529         ceildf2, btruncdf2, instead of vsx_* name.
10531         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
10532         iterators to only do V2DF and V4SF here.  Move the DF code to
10533         rs6000.md where it is combined with SF mode.  Replace <VSv> with
10534         just 'v' since only vector operations are handled with these insns
10535         after moving the DF support to rs6000.md.
10536         (vsx_sub<mode>3): Likewise.
10537         (vsx_mul<mode>3): Likewise.
10538         (vsx_div<mode>3): Likewise.
10539         (vsx_fre<mode>2): Likewise.
10540         (vsx_neg<mode>2): Likewise.
10541         (vsx_abs<mode>2): Likewise.
10542         (vsx_nabs<mode>2): Likewise.
10543         (vsx_smax<mode>3): Likewise.
10544         (vsx_smin<mode>3): Likewise.
10545         (vsx_sqrt<mode>2): Likewise.
10546         (vsx_rsqrte<mode>2): Likewise.
10547         (vsx_fms<mode>4): Likewise.
10548         (vsx_nfma<mode>4): Likewise.
10549         (vsx_copysign<mode>3): Likewise.
10550         (vsx_btrunc<mode>2): Likewise.
10551         (vsx_floor<mode>2): Likewise.
10552         (vsx_ceil<mode>2): Likewise.
10553         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
10554         (vsx_sminsf3): Likewise.
10555         (vsx_fmadf4): Likewise.
10556         (vsx_fmsdf4): Likewise.
10557         (vsx_nfmadf4): Likewise.
10558         (vsx_nfmsdf4): Likewise.
10559         (vsx_cmpdf_internal1): Likewise.
10561         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
10562         simpler to select whether a target has SPE or traditional floating
10563         point support in iterators.
10564         (TARGET_DF_SPE): Likewise.
10565         (TARGET_SF_FPR): Likewise.
10566         (TARGET_DF_FPR): Likewise.
10567         (TARGET_SF_INSN): Macros to say whether floating point support
10568         exists for a given operation for expanders.
10569         (TARGET_DF_INSN): Likewise.
10571         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
10572         combining of SF/DF mode operations, using both traditional and VSX
10573         registers.
10574         (Fvsx): Likewise.
10575         (Ff): Likewise.
10576         (Fv): Likewise.
10577         (Fs): Likewise.
10578         (Ffre): Likewise.
10579         (FFRE): Likewise.
10580         (abs<mode>2): Combine SF/DF modes using traditional floating point
10581         instructions.  Add support for using the upper DF registers with
10582         VSX support, and SF registers with power8-vector support.  Update
10583         expanders for operations supported by both the SPE and traditional
10584         floating point units.
10585         (abs<mode>2_fpr): Likewise.
10586         (nabs<mode>2): Likewise.
10587         (nabs<mode>2_fpr): Likewise.
10588         (neg<mode>2): Likewise.
10589         (neg<mode>2_fpr): Likewise.
10590         (add<mode>3): Likewise.
10591         (add<mode>3_fpr): Likewise.
10592         (sub<mode>3): Likewise.
10593         (sub<mode>3_fpr): Likewise.
10594         (mul<mode>3): Likewise.
10595         (mul<mode>3_fpr): Likewise.
10596         (div<mode>3): Likewise.
10597         (div<mode>3_fpr): Likewise.
10598         (sqrt<mode>3): Likewise.
10599         (sqrt<mode>3_fpr): Likewise.
10600         (fre<Fs>): Likewise.
10601         (rsqrt<mode>2): Likewise.
10602         (cmp<mode>_fpr): Likewise.
10603         (smax<mode>3): Likewise.
10604         (smin<mode>3): Likewise.
10605         (smax<mode>3_vsx): Likewise.
10606         (smin<mode>3_vsx): Likewise.
10607         (negsf2): Delete SF operations that are merged with DF.
10608         (abssf2): Likewise.
10609         (addsf3): Likewise.
10610         (subsf3): Likewise.
10611         (mulsf3): Likewise.
10612         (divsf3): Likewise.
10613         (fres): Likewise.
10614         (fmasf4_fpr): Likewise.
10615         (fmssf4_fpr): Likewise.
10616         (nfmasf4_fpr): Likewise.
10617         (nfmssf4_fpr): Likewise.
10618         (sqrtsf2): Likewise.
10619         (rsqrtsf_internal1): Likewise.
10620         (smaxsf3): Likewise.
10621         (sminsf3): Likewise.
10622         (cmpsf_internal1): Likewise.
10623         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
10624         (negdf2): Delete DF operations that are merged with SF.
10625         (absdf2): Likewise.
10626         (nabsdf2): Likewise.
10627         (adddf3): Likewise.
10628         (subdf3): Likewise.
10629         (muldf3): Likewise.
10630         (divdf3): Likewise.
10631         (fred): Likewise.
10632         (rsqrtdf_internal1): Likewise.
10633         (fmadf4_fpr): Likewise.
10634         (fmsdf4_fpr): Likewise.
10635         (nfmadf4_fpr): Likewise.
10636         (nfmsdf4_fpr): Likewise.
10637         (sqrtdf2): Likewise.
10638         (smaxdf3): Likewise.
10639         (smindf3): Likewise.
10640         (cmpdf_internal1): Likewise.
10641         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
10642         (btrunc<mode>2): Delete separate expander, and combine with the
10643         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
10644         (btrunc<mode>2_fpr): Likewise.
10645         (ceil<mode>2): Likewise.
10646         (ceil<mode>2_fpr): Likewise.
10647         (floor<mode>2): Likewise.
10648         (floor<mode>2_fpr): Likewise.
10649         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
10650         Add support for using the upper registers with VSX and
10651         power8-vector.  Move insns to be closer to the define_expands. On
10652         VSX systems, prefer the traditional form of FMA over the VSX
10653         version, since the traditional form allows the target not to
10654         overlap with the inputs.
10655         (fms<mode>4_fpr): Likewise.
10656         (nfma<mode>4_fpr): Likewise.
10657         (nfms<mode>4_fpr): Likewise.
10659 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10660             Richard Earnshaw  <richard.earnshaw@arm.com>
10662         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
10663         (struct mult_cost_table): Likewise.
10664         (struct mem_cost_table): Likewise.
10665         (struct fp_cost_table): Likewise.
10666         (struct vector_cost_table): Likewise.
10667         (cpu_cost_table): Likewise.
10668         * config/arm/arm.opt (mold-rts-costs): New option.
10669         (mnew-generic-costs): Likewise.
10670         * config/arm/arm.c (generic_extra_costs): New table.
10671         (cortexa15_extra_costs): Likewise.
10672         (arm_slowmul_tune): Use NULL as new costs.
10673         (arm_fastmul_tune): Likewise.
10674         (arm_strongarm_tune): Likewise.
10675         (arm_xscale_tune): Likewise.
10676         (arm_9e_tune): Likewise.
10677         (arm_v6t2_tune): Likewise.
10678         (arm_cortex_a5_tune): Likewise.
10679         (arm_cortex_a9_tune): Likewise.
10680         (arm_v6m_tune): Likewise.
10681         (arm_fa726te_tune): Likewise.
10682         (arm_cortex_a15_tune): Use cortex15_extra_costs.
10683         (arm_cortex_tune): Use generict_extra_costs.
10684         (shifter_op_p): New function.
10685         (arm_unspec_cost): Likewise.
10686         (LIBCALL_COST): Define.
10687         (arm_new_rtx_costs): New function.
10688         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
10689         table is available. Use old costs otherwise unless mnew-generic-costs
10690         is specified.
10691         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
10692         (cpu_cost_table): Declare.
10694 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10696         PR target/58460
10697         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
10698         (*subs_mul_imm_<mode>)
10699         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
10700         (*sub_<shift>_<mode>)
10701         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
10702         Remove k constraint.
10704 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
10706         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
10707         code.
10708         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
10710 2013-10-02  Teresa Johnson  <tejohnson@google.com>
10712         * predict.c (probably_never_executed): New function.
10713         (probably_never_executed_bb_p): Invoke probably_never_executed.
10714         (probably_never_executed_edge_p): Ditto.
10715         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10716         Treat profile insanities conservatively.
10718 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
10720         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
10722 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
10724         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
10725         use it.  Use smaller increase for scratch.  Don't increase reject
10726         for early clobber scratch.
10727         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
10728         setting eliminated regs except setting fp from hfp.
10729         (lra_eliminate): Check lra_insn_recog_data on NULL.
10731 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10733         PR target/58587
10734         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
10735         setting -mvsx-timode by default until the underlying problem is fixed.
10736         (RS6000_CPU, power7 defaults): Likewise.
10738 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
10740         * config/x-linux (host-linux.o): Remove header dependencies.
10741         Use $(COMPILE) and $(POSTCOMPILE).
10742         * config/t-linux-android (linux-android.o): Ditto.
10744 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
10746         * Makefile.in (expmed.o-warn): Remove.
10748 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
10750         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
10751         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
10753 2013-10-02  Teresa Johnson  <tejohnson@google.com>
10755         * dojump.c (do_jump_1): Divide probability between
10756         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
10758 2013-10-02  Tom Tromey  <tromey@redhat.com>
10760         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
10762 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
10764         * tree-flow.h: Remove some prototypes.
10765         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
10766         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
10767         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
10768         mark_virtual_phi_result_for_renaming): Relocate here.
10769         * tree-into-ssa.h: Add prototypes.
10770         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
10771         single_pred_before_succ_order.
10772         (blocks_in_phiopt_order): Rename and move to cfganal.c.
10773         (nonfreeing_call_p) Move to gimple.c.
10774         * cfganal.c (single_pred_before_succ_order): Move and renamed from
10775         tree-ssa-phiopt.c.
10776         * basic-block.h (single_pred_before_succ_order): Add prototype.
10777         * gimple.c (nonfreeing_call_p): Relocate here.
10778         * gimple.h: Add prototype.
10779         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
10780         * tree-ssa-dom.h: New file.  Relocate prototypes here.
10781         * tree-ssa.h: Include tree-ssa-dom.h.
10783 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
10785         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
10786         Use $(COMPILE) and $(POSTCOMPILE).
10788         * config/alpha/x-alpha (driver-alpha.o): Ditto.
10790 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
10792         * tree-flow.h: Remove some prototypes.
10793         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
10794         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
10795         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
10796         propagate_tree_value*): Move from here to...
10797         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
10798         propagate_tree_value*): Relocate here.
10799         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
10800         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
10801         * gimple-fold.c: Remove gimple-fold.h from include list.
10802         * tree-vrp.c: Remove gimple-fold.h from include list.
10803         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
10804         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
10805         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
10806         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
10807         * sese.c: Add tree-ssa-propagate.h to include list.
10809 2013-10-02  Richard Biener  <rguenther@suse.de>
10811         * tree-loop-distribution.c: Include tree-vectorizer.h for
10812         find_loop_location.
10813         (enum partition_kind): Remove PKIND_REDUCTION.
10814         (struct partition_s): Remove has_writes member, add reduction_p member.
10815         (partition_alloc): Adjust.
10816         (partition_builtin_p): Likewise.
10817         (partition_has_writes): Remove.
10818         (partition_reduction_p): New function.
10819         (partition_merge_into): Likewise.
10820         (generate_code_for_partition): Commonize builtin partition
10821         handling tail.
10822         (rdg_cannot_recompute_vertex_p): Remove.
10823         (already_processed_vertex_p): Likewise.
10824         (rdg_flag_vertex): Do not set has_writes.
10825         (classify_partition): Adjust.
10826         (rdg_build_partitions): Do not set has_writes, treat all
10827         partitions as useful.
10828         (distribute_loop): Record number of library calls generated.  Adjust.
10829         (tree_loop_distribution): Report number of loops and library
10830         calls generated as opt-info.
10832 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
10834         * tree-flow.h: Include new .h files.  Move prototypes.
10835         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
10836         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
10837         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
10838         * tree-pretty-print.h: Add prototypes from tree-flow.h.
10839         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
10840         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
10841         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
10842         * tree.h (get_ref_base_and_extent): Move prototype out.
10843         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
10844         tree-dfa.h.
10845         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
10846         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
10847         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
10848         * tree-scalar-evolution.c: Include tree.h.
10849         * sese.c: Include tree.h.
10850         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
10851         * dwarf2out.c: Include tree-dfa.h.
10852         * tree-chrec.c: Include tree.h.
10853         * tree-data-ref.c: Include tree.h.
10855 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
10857         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
10858         Fix whitespace.
10860 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10862         * config/t-sol2 (sol2-c.o): Remove header dependencies.
10863         Use $(COMPILE) and $(POSTCOMPILE).
10864         (sol2-cxx.o): Likewise.
10865         (sol2-stubs.o): Likewise.
10866         (sol2.o): Likewise.
10867         * config/x-solaris (host-solaris.o): Likewise.
10869         * config/sparc/t-sparc (sparc.o): Remove.
10870         (sparc-c.o): Remove header dependencies.
10871         Use $(COMPILE) and $(POSTCOMPILE).
10872         * config/sparc/x-sparc: Likewise.
10874 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
10876         * config/arc/arc-opts.h: Add 2013 to Copyright years.
10877         * config/arc/arc700.md: Likewise.
10878         * config/arc/arc-modes.def: Likewise.
10879         * config/arc/arc-simd.h: Likewise.
10880         * config/arc/t-arc-uClibc: Likewise.
10881         * config/arc/t-arc-newlib: Likewise.
10883 2013-10-02  Renlin Li  <renlin.li@arm.com>
10885         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
10886         plus_constant.
10887         (aarch64_expand_epilogue): Likewise.
10889 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10890             Yufeng Zhang  <yufeng.zhang@arm.com>
10892         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
10893         declaration.
10894         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
10895         'base_in' represent a conversion and legal_cast_p_1 holds; set
10896         'base_in' with the returned value from get_unwidened.
10898 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10900         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
10901         plus_constant is not used.
10903 2013-10-01  Wei Mi  <wmi@google.com>
10905         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
10906         * config/i386/i386.md: Add define_peephole2 to
10907         break partial reg stall for cvtss2sd/cvtsd2ss.
10909 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10911         * config/arc/arc.c (pass_arc_ifcvt::clone):
10912         Update for ctxt_ -> m_ctxt change.
10914 2013-10-01  Jeff Law  <law@redhat.com>
10916         * tree-ssa-threadupdate.c (struct redirection_data): Delete
10917         outgoing_edge and intermediate_edge fields.  Instead store the path.
10918         (redirection_data::hash): Hash on the last edge's destination index.
10919         (redirection_data::equal): Check the entire thread path.
10920         (lookup_redirectio_data): Corresponding changes.
10921         (create_edge_and_update_destination_phis): Likewise.
10922         (thread_single_edge): Likewise.
10924 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10925             Diego Novillo <dnovillo@google.com>
10927         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
10928         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
10929         (vld32wh_insn, vld32wl_insn): Delete commented-out old
10930         versions of these patterns.
10932         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
10933         (__builtin_arc_aligned): Likewise.
10935         * config/arc/arc.md: Expand adc_0 comment stating the intended
10936         purpose and why it isn't ready.
10937         Replace commented out call_value_via_label_mixed with a
10938         plain comment about bl_s.
10940         * config/arc/arc.c (stdio.h): Don't include directly.
10941         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
10942         Remove if (1) condition.
10943         (arc_encode_section_info): Fix comment.
10945 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10947         * config/arc/arc.c (arc_conditional_register_usage):
10948         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
10949         Also set reg_alloc_order for DMA config regs.
10951 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10952             Jeremy Bennett  <jeremy.bennett@embecosm.com>
10954         * doc/install.texi (--with-cpu): Mention ARC.
10955         (arc-*-elf32): New paragraph.
10956         (arc-linux-uclibc): Likewise.
10957         * doc/md.texi (Machine Constraints): Add ARC part.
10958         * doc/invoke.texi: (menu): Add ARC Options.
10959         (Machine Dependent Options) <ARC Options>: Add synopsis.
10960         (node ARC Options): Add.
10961         * doc/extend.texi (long_call / short_call attribute): Add ARC.
10962         (ARC Built-in Functions): New section defining
10963         generic ARC built-in functions.
10964         (ARC SIMD Built-in Functions): New section defining SIMD specific
10965         built-in functions.
10966         (Declaring Attributes of Functions): Extended
10967         description of short_call and long_call attributes for ARC and
10968         added index entries.
10970 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
10971             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
10972             Joern Rennecke  <joern.rennecke@embecosm.com>
10973             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
10974             Brendan Kehoe  <brendan@zen.org>
10975             Michael Eager  <eager@eagercon.com>
10976             Simon Cook  <simon.cook@embecosm.com>
10977             Jeremy Bennett  <jeremy.bennett@embecosm.com>
10979         * config/arc, common/config/arc: New directories.
10981 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10982             Brendan Kehoe  <brendan@zen.org>
10983             Simon Cook  <simon.cook@embecosm.com>
10985         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
10987 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
10989         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
10990         * tree-ssa-coalesce.h: New. Move prototype to here.
10991         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
10992         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
10993         (gimple_can_coalesce_p): Move to...
10994         * gimple.c (gimple_can_coalesce_p): Here.
10996 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
10998         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
10999         (dump_decl_set): Move to gimple.c.
11000         * gimple.h: Don't include tree-ssa-operands.h.
11001         (dump_decl_set): Add prototype.
11002         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
11003         Move to gimple-ssa.h.
11004         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
11005         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
11006         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
11007         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
11008         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
11009         than PHI_ARG_DEF.
11010         (dump_decl_set): Relocate here.
11011         * gimple-ssa.h: New file.
11012         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
11013         Relocate from gimple.h.
11014         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
11015         * tree-ssa-operands.c (swap_ssa_operands): Rename from
11016         swap_tree_operands and remove non-ssa path.
11017         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
11018         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
11019         swap_ssa_operands.
11020         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
11021         vect_is_simple_reduction_1): Use swap_ssa_operands.
11022         * tree-flow.h: Move various prototypes to tree-phinodes.h.
11023         (enum need_phi_state): Move to tree-into-ssa.c.
11024         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
11025         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
11026         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
11027         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
11028         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
11029         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
11030         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
11031         num_imm_uses): Move to ssa-iterators.h.
11032         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
11033         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
11034         tree-phinodes.h.
11035         (op_iter_done, op_iter_next_def, op_iter_next_tree,
11036         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
11037         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
11038         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
11039         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
11040         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
11041         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
11042         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
11043         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
11044         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
11045         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
11046         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
11047         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
11048         (set_phi_nodes): Move to tree-phinodes.h.
11049         * tree-ssa-operands.h (enum ssa_op_iter_type,
11050         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
11051         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
11052         (dump_decl_set): Remove prototype.
11053         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
11054         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
11055         (set_phi_nodes): Relocate from tree-flow-inline.h.
11056         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
11057         tree-flow-inline.h
11058         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
11059         include list.  Temporarily add gimple.h to include list.
11060         * ssa-iterators.h: New file.
11061         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
11062         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
11063         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
11064         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
11065         Relocate from tree-ssa-operands.h.
11066         (delink_imm_use, link_imm_use_to_list, link_imm_use,
11067         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
11068         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
11069         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
11070         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
11071         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
11072         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
11073         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
11074         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
11075         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
11076         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
11077         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
11078         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
11079         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
11080         Relocate from tree-flow-inline.h.
11081         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
11083 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
11085         * aarch64-simd.md
11086         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
11087         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
11088         Insert '\t' to output template.
11089         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
11090         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
11091         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
11092         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
11094 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
11096         * doc/install.texi (Host/target specific installation notes for GCC):
11097         Put @anchor before @heading.
11098         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
11099         Use @email for email addresses.
11101 2013-10-01  Jeff Law  <law@redhat.com>
11103         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
11104         a vec.  Only delete the path if we create one without successfully
11105         registering a jump thread.
11106         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
11107         as a pointer.
11108         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
11109         (paths): New vector of jump threading paths.
11110         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
11111         (THREAD_PATH): New accessor macro for the entire thread path.
11112         (lookup_redirection_data): Get intermediate and final outgoing edge
11113         from the thread path.
11114         (create_edge_and_update_destination_phis): Copy the threading path.
11115         (ssa_fix_duplicate_block_edges): Get edges and block types from the
11116         jump threading path.
11117         (ssa_redirect_edges): Get edges and block types from the jump threading
11118         path.  Free the path vector.
11119         (thread_block): Get edges from the jump threading path.  Look at the
11120         entire path to see if we thread to a loop exit.  If we cancel a jump
11121         thread request, then free the path vector.
11122         (thread_single_edge): Get edges and block types from the jump threading
11123         path.  Free the path vector.
11124         (thread_through_loop_header): Get edges and block types from the jump
11125         threading path.  Free the path vector.
11126         (mark_threaded_blocks): Iterate over the vector of paths and store
11127         the path on the appropriate edge.  Get edges and block types from the
11128         jump threading path.
11129         (mark_threaded_blocks): Get edges and block types from the jump
11130         threading path.  Free the path vector.
11131         (thread_through_all_blocks): Use the vector of paths rather than
11132         a vector of 3-edge sets.
11133         (register_jump_thread): Accept pointer to a path vector rather
11134         than the path vector itself.  Store the path vector for later use.
11135         Simplify.
11137 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
11138             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11140         PR target/58574
11141         * config/s390/s390.c (s390_split_branches): Modify check for table
11142         jump insns.
11143         (s390_chunkify_start): Rearrange table jump insn check in order to
11144         deal with compare and branch insns correctly.
11146 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
11148         PR target/58578
11149         Revert
11150         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
11151         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
11152         define_insn_and_split.
11153         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
11154         (shiftsi3_compare): New pattern.
11155         (rrx): New pattern.
11156         * config/arm/unspecs.md (UNSPEC_RRX): New.
11158 2013-10-01  Alan Modra  <amodra@gmail.com>
11160         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
11161         casing inout operands.
11163 2013-10-01  Richard Biener  <rguenther@suse.de>
11165         PR tree-optimization/58553
11166         * tree-loop-distribution.c (struct partition_s): Add niter member.
11167         (classify_partition): Populate niter member for the partition
11168         and properly identify whether the relevant store happens before
11169         or after the loop exit.
11170         (generate_memset_builtin): Use niter member from the partition.
11171         (generate_memcpy_builtin): Likewise.
11173 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
11175         * vec.h (vec_prefix, vec): Prefix member names with "m_".
11176         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
11178 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
11180         * basic-block.h (edge_list): Prefix member names with "m_".
11181         * context.h (context): Likewise.
11182         * domwalk.h (dom_walker): Likewise.
11183         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
11184         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
11185         * hash-table.h (hash_table): Likewise.
11186         * machmode.h (bit_field_mode_iterator): Likewise.
11187         * pass_manager.h (pass_list): Likewise.
11188         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
11189         * tree-pass.h (pass_data): Likewise.
11190         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
11191         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
11192         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
11193         * asan.c (pass_data_asan): Update accordingly.
11194         * cfganal.c (control_dependences::find_control_dependence): Likewise.
11195         (control_dependences::control_dependences): Likewise.
11196         (control_dependences::~control_dependences): Likewise.
11197         (control_dependences::~control_dependences): Likewise.
11198         (control_dependences::get_edges_dependent_on): Likewise.
11199         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
11200         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
11201         * context.c (gcc::context::context): Likewise.
11202         * cprop.c (pass_rtl_cprop::clone): Likewise.
11203         * domwalk.c (dom_walker::walk): Likewise.
11204         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
11205         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
11206         * mode-switching.c (pass_mode_switching::clone): Likewise.
11207         * passes.c (opt_pass::opt_pass): Likewise.
11208         (pass_manager::pass_manager): Likewise.
11209         * predict.c (pass_strip_predict_hints::clone): Likewise.
11210         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
11211         (pass_split_all_insns::clone): Likewise.
11212         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
11213         Likewise.
11214         (bit_field_mode_iterator::next_mode): Likewise.
11215         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
11216         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
11217         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
11218         * tree-complex.c (pass_lower_complex::clone): Likewise.
11219         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
11220         * tree-object-size.c (pass_object_sizes::clone): Likewise.
11221         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
11222         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
11223         (pass_fold_builtins::clone): Likewise.
11224         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
11225         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
11226         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
11227         (pass_cd_dce::clone): Likewise.
11228         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
11229         (pass_phi_only_cprop::clone): Likewise.
11230         * tree-ssa-dse.c (pass_dse::clone): Likewise.
11231         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
11232         * tree-ssa-loop.c (pass_lim::clone): Likewise.
11233         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
11234         * tree-ssa-pre.c (pass_fre::clone): Likewise.
11235         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
11236         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
11237         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
11238         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
11239         * tree-vrp.c (pass_vrp::clone): Likewise.
11240         * tsan.c (pass_tsan::clone): Likewise.
11242 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
11244         PR middle-end/58564
11245         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
11246         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
11248         PR middle-end/58564
11249         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
11250         optimization, punt if sign_bit_p looked through any zero extension.
11252 2013-09-30  Teresa Johnson  <tejohnson@google.com>
11254         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
11255         Update redirected out edge count in joiner case.
11256         (ssa_redirect_edges): Common the joiner and non-joiner cases
11257         so that joiner case gets profile updates.
11259 2013-09-30  Richard Biener  <rguenther@suse.de>
11261         PR tree-optimization/58554
11262         * tree-loop-distribution.c (classify_partition): Require
11263         unconditionally executed stores for memcpy and memset recognition.
11264         (tree_loop_distribution): Calculate dominance info.
11266 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
11268         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
11269         (NO_PROFILE_COUNTERS): Likewise.
11270         (PROFILE_HOOK): Likewise.
11271         (FUNCTION_PROFILER): Likewise.
11272         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
11274 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
11276         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
11277         calls and defines in TARGET_MACHO conditional.
11278         (load_macho_picbase_di): Likewise.
11279         (reload_macho_picbase): Likewise.
11280         (reload_macho_picbase_si): Likewise.
11281         (reload_macho_picbase_di): Likewise.
11282         (nonlocal_goto_receiver): Likewise.
11284 2013-09-30  Nick Clifton  <nickc@redhat.com>
11286         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
11287         that use the MSP430X ISA.
11288         (msp430_option_override): Scan -mmcu command line option for any
11289         MCU name that supports the MSP430X ISA.
11290         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
11291         -mmcu options which enable the MSP430X ISA.
11293 2013-09-30  Richard Biener  <rguenther@suse.de>
11295         PR middle-end/58532
11296         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
11297         before looking for setjmp-like calls.
11299 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
11301         PR target/10901
11302         * config/darwin-protos.h (machopic_get_function_picbase): New.
11303         * config/darwin.c (machopic_get_function_picbase): New.
11304         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
11305         label for a new func.  (load_macho_picbase_di): Likewise.
11306         (reload_macho_picbase): New expand.
11307         (reload_macho_picbase_si): New insn.
11308         (reload_macho_picbase_di): New insn.
11309         (nonlocal_goto_receiver): New define and split.
11310         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
11311         (unspecv enum): Add UNSPECV_NLGR.
11313 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
11315         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
11316         that altivec registers are correctly sized on Darwin.
11318 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
11320         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
11321         darwin-driver.o): Use COMPILE and POSTCOMPILE.
11322         * config/x-darwin (host-darwin.o): Likewise.
11323         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
11324         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
11325         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
11327 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
11329         * doc/invoke.texi: Fix usage of @tie{} command.
11331 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
11333         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
11335 2013-09-28  Jan Hubicka  <jh@suse.cz>
11337         * config/i386/x86-tune.def: Add documentation for each of the options;
11338         add whitespace.
11340 2013-09-28  Jan Hubicka  <jh@suse.cz>
11342         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
11343         generic.
11344         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
11345         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
11346         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
11347         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
11348         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
11350 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
11352         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
11353         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
11354         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
11355         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
11356         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
11357         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
11358         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
11359         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
11360         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
11361         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
11362         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
11363         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
11364         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
11365         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
11366         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
11367         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
11368         gimple.h, godump.c, graphite-clast-to-gimple.c,
11369         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
11370         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
11371         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
11372         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
11373         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
11374         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
11375         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
11376         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
11377         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
11378         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
11379         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
11380         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
11381         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
11382         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
11383         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
11384         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
11385         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
11386         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
11387         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
11388         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
11389         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
11390         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
11391         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
11392         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
11393         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11394         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11395         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
11396         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
11397         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11398         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11399         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11400         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
11401         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
11402         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
11403         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
11404         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
11405         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
11406         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
11407         whitespace before "(".
11409 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
11411         * expr.h (extract_bit_field): Remove packedp parameter.
11412         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
11413         from forward declaration.
11414         (store_split_bit_field): Remove packedp arg from calls to
11415         extract_fixed_bit_field.
11416         (extract_bit_field_1): Remove packedp parameter and packedp
11417         argument from recursive calls and calls to extract_fixed_bit_field.
11418         (extract_bit_field): Remove packedp parameter and corresponding
11419         arg to extract_bit_field_1.
11420         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
11421         to issue warnings.
11422         (extract_split_bit_field): Remove packedp arg from call to
11423         extract_fixed_bit_field.
11424         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
11425         (copy_blkmode_from_reg): Likewise.
11426         (copy_blkmode_to_reg): Likewise.
11427         (read_complex_part): Likewise.
11428         (store_field): Likewise.
11429         (expand_expr_real_1): Likewise.
11430         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
11431         to extract_bit_field.
11432         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
11433         call to extract_bit_field.
11434         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
11435         call to extract_bit_field.
11436         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
11437         and special packedp behavior from -fstrict-volatile-bitfields
11438         documentation.
11440 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11442         * lra-eliminations.c (init_elim_table): Guard value_p.
11444 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
11446         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
11447         DFmode, DImode, and SFmode in the upper VSX registers based on the
11448         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
11449         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
11450         of the VSX register handling.
11452         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
11453         (f32_sv): Likewise.
11454         (zero_extendsidi2_lfiwzx): Add support for loading into the
11455         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
11456         only do VSX memory options on Altivec registers.
11457         (extendsidi2_lfiwax): Likewise.
11458         (extendsfdf2_fpr): Likewise.
11459         (mov<mode>_hardfloat, SF/SD modes): Likewise.
11460         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
11461         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
11462         (movdi_internal64): Likewise.
11464 2013-09-27  Xinliang David Li  <davidxl@google.com>
11466         * opts.c (finish_options): Adjust parameters
11467         according to vect cost model.
11468         (common_handle_option): Set dynamic vect cost
11469         model for FDO.
11470         targhooks.c (default_add_stmt_cost): Compute stmt cost
11471         unconditionally.
11472         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11473         Use helper function.
11474         * tree-vectorizer.h (unlimited_cost_model): New function.
11475         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
11476         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
11477         function.
11478         (vect_enhance_data_refs_alignment): Ditto.
11479         * flag-types.h: New enum.
11480         * common/config/i386/i386-common.c (ix86_option_init_struct):
11481         No need to initialize vect_cost_model flag.
11482         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
11483         unconditionally.
11485 2013-09-27  Diego Novillo  <dnovillo@google.com>
11487         * gimple.h (enum ssa_mode): Remove.
11489 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
11491         * cfgloop.h (number_of_loops): Fix typo in check for null.
11493 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
11495         PR middle-end/58551
11496         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
11497         are children of outermost saved_cfun's loop, and set it up to
11498         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
11499         if loop != loop0 and SESE region contains bbs that belong to loop0.
11501 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
11503         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
11504         (binary_scale_code_p, get_base_term, get_index_term): New functions.
11505         (set_address_segment, set_address_base, set_address_index)
11506         (set_address_disp): Accept the argument unconditionally.
11507         (baseness): Remove must_be_base_p and must_be_index_p checks.
11508         (decompose_normal_address): Classify as much as possible in the
11509         main loop.
11511 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
11513         * cse.c (count_reg_usage): Handle INT_LIST.
11514         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
11515         * reginfo.c (reg_scan_mark_refs): Likewise.
11516         * reload1.c (eliminate_regs_1): Likewise.
11518 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
11520         PR middle-end/58547
11521         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
11522         signed.
11524 2013-09-27  Richard Biener  <rguenther@suse.de>
11526         PR tree-optimization/58459
11527         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
11528         restriction not propagating into loops.
11530 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
11532         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
11533         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
11534         * doc/tree-ssa.texi (Walking use-def chains): Delete.
11536 2013-09-26  Richard Biener  <rguenther@suse.de>
11538         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
11540 2013-09-26  Richard Biener  <rguenther@suse.de>
11542         * alias.h (component_uses_parent_alias_set): Rename to ...
11543         (component_uses_parent_alias_set_from): ... this.
11544         * alias.c (component_uses_parent_alias_set): Rename to ...
11545         (component_uses_parent_alias_set_from): ... this and return
11546         the desired parent.
11547         (reference_alias_ptr_type_1): Use the result from
11548         component_uses_parent_alias_set_from instead of stripping
11549         components one at a time.
11550         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
11552 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
11554         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
11555         Move prototypes to...
11556         * tree-ssa-ter.h: New File.  Move prototypes here.
11557         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
11558         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
11559         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
11560         from is_replaceable_p.
11561         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
11562         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
11563         (process_replaceable): Use ter_is_replaceable_p.
11564         (find_replaceable_in_bb): Use ter_is_replaceable_p.
11565         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
11566         newly refactored ssa_is_replaceable_p.
11567         * cfgexpand.c: Include tree-outof-ssa.h.
11568         * ssaexpand.h: Delete.
11570 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
11572         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
11573         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
11574         tree-ssa.c
11575         (create_gimple_tmp): Delete.
11576         (get_expr_type, build_assign, build_type_cast): Move to...
11577         * gimple-builder.c: New File.
11578         (get_expr_type): Relocate from gimple.c.
11579         (build_assign, build_type_cast): Change to only create ssanames.
11580         * gimple.h: Move prototypes to...
11581         * gimple-builder.h: New File. Here.
11582         * tree-ssa.h: And here.
11583         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
11584         count_uses_and_derefs): Relocate from gimple.c.
11585         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
11586         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
11587         * tree-ssa-math-opts (execute_cse_reciprocals): Use
11588         gimple_replace_ssa_lhs.
11589         * asan.c: Include gimple-builder.h.
11590         * Makefile.in: Add gimple-builder.o.
11592 2013-09-26  Richard Biener  <rguenther@suse.de>
11594         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
11595         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
11596         (loe_visit_block): Use gcc_checking_assert.
11597         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
11598         gimple_assign_ssa_name_copy_p.
11599         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
11600         change.
11602 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
11604         * config/rs6000/t-rs6000 (rs6000.o): Remove.
11605         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
11607 2013-09-26  Richard Biener  <rguenther@suse.de>
11609         PR tree-optimization/58539
11610         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
11611         the fact that debug statements are not taking part in loop-closed
11612         SSA construction.
11614 2013-09-26  Nick Clifton  <nickc@redhat.com>
11616         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
11617         time warning message.
11618         (msp430_print_operand_raw): Delete unused letter parameter.
11619         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11620         (msp430_print_operand_address): New function.
11621         (msp430_print_operand): Move address printing code from here to
11622         new function.
11623         * config/msp430/msp430.md (movsipsi2): Add comment in generated
11624         assembler.
11625         (zero_extendpsisi2): Likewise.
11626         (extendpsisi2): New pattern.
11627         (andneghi3): New pattern.
11629 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
11631         * config/aarch64/aarch64.opt (mlra): New option.
11632         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
11633         (TARGET_LRA_P): Define.
11635 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
11637         * expr.c (expand_assignment): Remove obsolete comment.
11639 2013-09-25  Jeff Law  <law@redhat.com>
11641         * tree-flow.h (thread_through_all_blocks): Prototype moved into
11642         tree-ssa-threadupdate.h.
11643         (register_jump_thread): Similarly.
11644         * tree-ssa-threadupdate.h: New header file.
11645         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
11646         * tree-vrp.c: Likewise.
11647         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
11648         (thread_around_empty_blocks): Change type of path vector argument to
11649         an edge,type pair from just an edge.  Initialize both elements when
11650         appending to a jump threading path.  Tweak references to elements
11651         appropriately.
11652         (thread_across_edge): Similarly.  Release memory for the elements
11653         as needed.
11654         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
11655         (dump_jump_thread_path): New function broken out from
11656         register_jump_thread.
11657         (register_jump_thread): Use dump_jump_thread_path.  Change type of
11658         path vector entries.  Search the path for NULL edges and dump
11659         the path if one is found.  Tweak the conversion of path to 3-edge
11660         form to use the block copy type information embedded in the path.
11662 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
11664         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
11666 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
11667             Vladimir Makarov  <vmakarov@redhat.com>
11669         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
11670         from the least significant bit.
11671         (strip_address_mutations): Add bitfield operations handling.
11672         (must_be_index_p): Add shifting and rotate operations handling.
11673         (set_address_base): Use must_be_base_p predicate.
11674         (set_address_index): Use must_be_index_p predicate.
11676 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11677             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11678             Sergey Lega  <sergey.s.lega@intel.com>
11679             Anna Tikhonova  <anna.tikhonova@intel.com>
11680             Ilya Tocar  <ilya.tocar@intel.com>
11681             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11682             Ilya Verbin  <ilya.verbin@intel.com>
11683             Kirill Yukhin  <kirill.yukhin@intel.com>
11684             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11686         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11687         Use new names.
11688         (ix86_expand_vector_move_misalign): Support new unaligned load and
11689         stores and use new names.
11690         (CODE_FOR_sse2_storedqu): Rename to ...
11691         (CODE_FOR_sse2_storedquv16qi): ... this.
11692         (CODE_FOR_sse2_loaddqu): Rename to ...
11693         (CODE_FOR_sse2_loaddquv16qi): ... this.
11694         (CODE_FOR_avx_loaddqu256): Rename to ...
11695         (CODE_FOR_avx_loaddquv32qi): ... this.
11696         (CODE_FOR_avx_storedqu256): Rename to ...
11697         (CODE_FOR_avx_storedquv32qi): ... this.
11698         * config/i386/i386.md (fpint_logic): New.
11699         * config/i386/sse.md (VMOVE): Extend for AVX512.
11700         (VF): Ditto.
11701         (VF_128_256): New.
11702         (VF_512): Ditto.
11703         (VI_UNALIGNED_LOADSTORE): Ditto.
11704         (sse2_avx_avx512f): Ditto.
11705         (sse2_avx2): Extend for AVX512.
11706         (sse4_1_avx2): Ditto.
11707         (avx2_avx512f): New.
11708         (sse): Extend for AVX512.
11709         (sse2): Ditto.
11710         (sse4_1): Ditto.
11711         (avxsizesuffix): Ditto.
11712         (sseintvecmode): Ditto.
11713         (ssePSmode): Ditto.
11714         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
11715         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
11716         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
11717         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
11718         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
11719         (<sse2_avx_avx512f>_storedqu<mode): ... this.
11720         (<sse>_movnt<mode>): Replace constraint "x" with "v".
11721         (STORENT_MODE): Extend for AVX512.
11722         (*absneg<mode>2): Replace constraint "x" with "v".
11723         (*mul<mode>3): Ditto.
11724         (*ieee_smin<mode>3): Ditto.
11725         (*ieee_smax<mode>3): Ditto.
11726         (avx_cmp<mode>3): Replace VF with VF_128_256.
11727         (*<sse>_maskcmp<mode>3_comm): Ditto.
11728         (<sse>_maskcmp<mode>3): Ditto.
11729         (<sse>_andnot<mode>3): Extend for AVX512.
11730         (<code><mode>3, anylogic): Replace VF with VF_128_256.
11731         (<code><mode>3, fpint_logic): New.
11732         (*<code><mode>3): Extend for AVX512.
11733         (avx512flogicsuff): New.
11734         (avx512f_<logic><mode>): Ditto.
11735         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
11736         VF_128_256.
11737         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
11738         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
11739         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
11740         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
11741         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
11742         (xop_vpermil2<mode>3): Ditto.
11743         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
11744         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
11745         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
11746         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
11748 2013-09-25  Tom Tromey  <tromey@redhat.com>
11750         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
11751         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
11752         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
11753         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
11754         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
11755         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
11756         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
11757         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
11758         (GRAPHITE_HTAB_H): Remove.
11760 2013-09-25  Tom Tromey  <tromey@redhat.com>
11762         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
11764 2013-09-25  Tom Tromey  <tromey@redhat.com>
11766         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
11768 2013-09-25  Tom Tromey  <tromey@redhat.com>
11770         * config/i386/t-i386 (i386.o): Remove.
11771         (i386-c.o): Use COMPILE and POSTCOMPILE.
11773 2013-09-25  Tom Tromey  <tromey@redhat.com>
11775         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
11777 2013-09-25  Tom Tromey  <tromey@redhat.com>
11779         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
11780         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
11781         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
11782         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
11783         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
11784         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
11785         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
11786         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
11787         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
11788         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
11789         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
11790         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
11791         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
11792         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
11793         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
11794         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
11795         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
11796         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
11797         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
11798         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
11799         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
11800         (tree-ssa-pre.o, tree-ssa-sccvn.o)
11801         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
11802         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
11803         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
11804         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
11805         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
11806         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
11807         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
11808         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
11809         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
11810         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
11811         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
11812         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
11813         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
11814         (graphite-clast-to-gimple.o, graphite-dependences.o)
11815         (graphite-interchange.o, graphite-poly.o)
11816         (graphite-scop-detection.o, graphite-sese-to-poly.o)
11817         (graphite-optimize-isl.o, tree-vect-loop.o)
11818         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
11819         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
11820         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
11821         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
11822         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
11823         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
11824         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
11825         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
11826         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
11827         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
11828         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
11829         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
11830         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
11831         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
11832         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
11833         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
11834         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
11835         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
11836         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
11837         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
11838         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
11839         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
11840         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
11841         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
11842         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
11843         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
11844         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
11845         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
11846         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
11847         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
11848         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
11849         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
11850         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
11851         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
11852         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
11853         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
11854         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
11855         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
11856         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
11857         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
11858         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
11859         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
11860         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
11861         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
11862         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
11863         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
11864         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
11865         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
11866         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
11867         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
11868         (gcov-dump.o): Remove.
11869         (default-c.o): Use COMPILE and POSTCOMPILE.
11870         (CFLAGS-gcc.o): New variable.
11871         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
11873 2013-09-25  Tom Tromey  <tromey@redhat.com>
11875         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
11876         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
11877         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
11878         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
11879         (c-family/c-pragma.o, c-family/c-pretty-print.o)
11880         (c-family/c-semantics.o, c-family/c-ada-spec.o)
11881         (c-family/array-notation-common.o, c-family/stub-objc.o)
11882         (c-family/c-ubsan.o): Remove.
11884 2013-09-25  Tom Tromey  <tromey@redhat.com>
11886         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
11888 2013-09-25  Tom Tromey  <tromey@redhat.com>
11890         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
11891         to add -DENABLE_SHARED_LIBGCC.
11892         (gcc.o): Don't use subshell.
11894 2013-09-25  Tom Tromey  <tromey@redhat.com>
11896         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
11897         * configure.ac: Don't invoke AM_PROG_CC_C_O.
11898         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
11899         * configure, config.in: Rebuild.
11901 2013-09-25  Tom Tromey  <tromey@redhat.com>
11903         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
11904         (COMPILE, POSTCOMPILE): New variables.
11905         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
11906         (DEPFILES): New variable.
11907         Include ".Po" files.
11908         * configure.ac: Add checks for dependency checking.
11909         * configure, aclocal.m4: Regenerate.
11911 2013-09-25  Tom Tromey  <tromey@redhat.com>
11913         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
11914         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
11916 2013-09-25  Tom Tromey  <tromey@redhat.com>
11918         * Makefile.in (generated_files): Add options.h,
11919         target-hooks-def.h, insn-opinit.h,
11920         common/common-target-hooks-def.h, pass-instances.def,
11921         c-family/c-target-hooks-def.h.
11923 2013-09-25  Jeff Law  <law@redhat.com>
11925         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
11926         than foo[foo.length () - 1] to access last member in a vec.
11927         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
11929 2013-09-25  Richard Biener  <rguenther@suse.de>
11931         PR middle-end/58521
11932         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
11934 2013-09-25  Jan Hubicka  <jh@suse.cz>
11936         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
11937         test.
11939 2013-09-25  Marek Polacek  <polacek@redhat.com>
11941         PR sanitizer/58420
11942         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
11943         when determining the type name.
11945 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
11947         * config/sh/sh.md: Fix formatting.
11949 2013-09-24  Xinliang David Li  <davidxl@google.com>
11951         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
11952         max peel iterations parameter.
11953         * param.def: New parameter.
11954         * doc/invoke.texi: Document New parameter.
11956 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
11958         * gimple-pretty-print.c: Various whitespace tweaks.
11959         * tree-core.h: Likewise.
11960         * tree-pretty-print.c: Likewise.
11961         * tree-ssa-alias.c: Likewise.
11962         * tree-ssa-copy.c: Likewise.
11963         * tree-ssanames.c: Likewise.
11964         * tree-ssanames.h: Likewise.
11965         * tree-vrp.c: Likewise.
11967 2013-09-24  Alan Modra  <amodra@gmail.com>
11969         PR middle-end/57134
11970         PR middle-end/57586
11971         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
11972         for output operands that disallow regs.  Don't use EXPAND_WRITE on
11973         inout operands.
11975 2013-09-24  Richard Biener  <rguenther@suse.de>
11977         PR middle-end/58513
11978         * tree.c (reference_alias_ptr_type): Move ...
11979         * alias.c (reference_alias_ptr_type): ... here and implement
11980         in terms of the new reference_alias_ptr_type_1.
11981         (ref_all_alias_ptr_type_p): New helper.
11982         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
11983         use ref_all_alias_ptr_type_p.
11984         (get_deref_alias_set): Add flag_strict_aliasing check here.
11985         (reference_alias_ptr_type_1): New function, split out from ...
11986         (get_alias_set): ... here.
11987         (alias_ptr_types_compatible_p): New function.
11988         * alias.h (reference_alias_ptr_type): Declare.
11989         (alias_ptr_types_compatible_p): Likewise.
11990         * tree.h (reference_alias_ptr_type): Remove.
11991         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
11992         to compare MEM_REF alias types.
11994 2013-09-24  Richard Biener  <rguenther@suse.de>
11996         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
11998 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12000         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
12001         reload helper function arrays into a single array reg_addr.
12002         (reload_fpr_gpr): Likewise.
12003         (reload_gpr_vsx): Likewise.
12004         (reload_vsx_gpr): Likewise.
12005         (struct rs6000_reg_addr): Likewise.
12006         (reg_addr): Likewise.
12007         (rs6000_debug_reg_global): Change rs6000_vector_reload,
12008         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
12009         (rs6000_init_hard_regno_mode_ok): Likewise.
12010         (rs6000_secondary_reload_direct_move): Likewise.
12011         (rs6000_secondary_reload): Likewise.
12013         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
12014         constraints: wu, ww, and wy.  Repurpose wv constraint added during
12015         power8 changes.  Put wg constraint in alphabetical order.
12017         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
12018         for future work to add ISA 2.07 VSX single precision support.
12019         (-mvsx-scalar-double): Change default from -1 to 1, update
12020         documentation comment.
12021         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
12022         (-mupper-regs-df): New debug switch to control whether DF values
12023         can go in the traditional Altivec registers.
12024         (-mupper-regs-sf): New debug switch to control whether SF values
12025         can go in the traditional Altivec registers.
12027         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
12028         and wy constraints.
12029         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
12030         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
12031         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
12032         (rs6000_debug_legitimate_address_p): Print if we are running
12033         before, during, or after reload.
12034         (rs6000_secondary_reload): Add a comment.
12035         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
12037         * config/rs6000/constraints.md (wa constraint): Sort w<x>
12038         constraints.  Update documentation string.
12039         (wd constraint): Likewise.
12040         (wf constraint): Likewise.
12041         (wg constraint): Likewise.
12042         (wn constraint): Likewise.
12043         (ws constraint): Likewise.
12044         (wt constraint): Likewise.
12045         (wx constraint): Likewise.
12046         (wz constraint): Likewise.
12047         (wu constraint): New constraint for ISA 2.07 SFmode scalar
12048         instructions.
12049         (ww constraint): Likewise.
12050         (wy constraint): Likewise.
12051         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
12052         in the previous submissions.
12053         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
12055 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
12057         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
12058         (REG_BR_PROB): Say that the probability is stored in an int_list.
12059         * reg-notes.def: Update commentary to mention INT_LIST.
12060         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
12061         (INT_LIST): New rtx.
12062         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
12063         * rtlanal.c (int_reg_note_p): New function.
12064         (alloc_reg_note): Assert that the note does not have an int argument.
12065         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
12066         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
12067         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
12068         rather than an INSN_LIST.  Handle INT_LIST.
12069         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
12070         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
12071         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
12072         Manipulate them as ints rather than rtxes.
12073         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
12074         * regmove.c (copy_src_to_dest): Likewise.
12075         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
12077         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
12078         into the cases that need it.
12079         * config/arm/arm.c (arm_unwind_emit): Likewise.
12081         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
12082         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
12083         * loop-doloop.c (add_test, doloop_modify): Likewise.
12084         * loop-unswitch.c (compare_and_jump_seq): Likewise.
12085         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
12086         * predict.c (combine_predictions_for_insn): Likewise.
12087         * print-rtl.c (print_rtx): Handle INT_LIST.
12088         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
12089         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
12090         * config/arm/arm.c (emit_unlikely_jump): Likewise.
12091         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
12092         (ix86_split_fp_branch, predict_jump): Likewise.
12093         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
12094         * config/sh/sh.c (expand_cbranchsi4): Likewise.
12095         * config/spu/spu.c (ea_load_store_inline): Likewise.
12097         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
12098         value of a REG_BR_PROB note.
12099         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
12100         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
12101         * emit-rtl.c (try_split): Likewise.
12102         * predict.c (br_prob_note_reliable_p): Likewise.
12103         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
12104         * reorg.c (mostly_true_jump): Likewise.
12105         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
12106         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
12107         * config/i386/i386.c (ix86_print_operand): Likewise.
12108         * config/ia64/ia64.c (ia64_print_operand): Likewise.
12109         * config/mmix/mmix.c (mmix_print_operand): Likewise.
12110         * config/rs6000/rs6000.c (output_cbranch): Likewise.
12111         * config/s390/s390.c (s390_expand_tbegin): Likewise.
12112         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
12113         * config/sparc/sparc.c (output_cbranch): Likewise.
12114         * config/spu/spu.c (get_branch_target): Likewise.
12115         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
12116         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
12118 2013-09-23  Jan Hubicka  <jh@suse.cz>
12120         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
12121         for ipa-devirt.
12122         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
12123         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
12124         of external calls
12125         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
12126         (gimple_fold_call): Dump inconsistent devirtualizations; add
12127         sanity check for type based devirtualizations.
12128         * ipa-prop.c: Include ipa-utils.h
12129         (ipa_intraprocedural_devirtualization): Add sanity check.
12130         (try_make_edge_direct_virtual_call): Likewise.
12132 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
12134         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
12135         assignment statements.
12137 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
12139         * gimple-pretty-print.c (dump_ssaname_info): New function.
12140         (dump_gimple_phi): Call it.
12141         (pp_gimple_stmt_1): Likewise.
12142         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
12143         (range_info_def): Declare.
12144         * tree-pretty-print.c (pp_double_int): New function.
12145         (dump_generic_node): Call it.
12146         * tree-pretty-print.h (pp_double_int): Declare.
12147         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
12148         * tree-ssanames.h (range_info_def): New structure.
12149         (value_range_type): Move definition here.
12150         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
12151         Declare.
12152         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
12153         initialization.
12154         (set_range_info): New function.
12155         (get_range_info): Likewise.
12156         (duplicate_ssa_name_range_info): Likewise.
12157         (duplicate_ssa_name_fn): Check pointer type and call
12158         duplicate_ssa_name_range_info.
12159         * tree-ssa-copy.c (fini_copy_prop): Likewise.
12160         * tree-vrp.c (value_range_type): Remove definition, now in
12161         tree-ssanames.h.
12162         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
12163         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
12164         (SSA_NAME_RANGE_INFO): New macro.
12166 2013-09-23  Richard Biener  <rguenther@suse.de>
12168         PR tree-optimization/58464
12169         * tree-ssa-pre.c (phi_trans_lookup): Remove.
12170         (phi_trans_add): Change to add conditionally on being not present.
12171         (phi_translate_1): Remove recursion detection here.
12172         (phi_translate): Pre-seed the cache with NULL to catch
12173         recursion here in a more generic way.
12174         (bitmap_find_leader): Adjust comment.
12175         (get_representative_for): Dump value-numbers.
12176         (create_expression_by_pieces): Likewise.
12177         (insert_into_preds_of_block): Likewise.
12179 2013-09-23  Christian Bruel  <christian.bruel@st.com>
12181         PR target/58475
12182         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
12183         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
12185 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
12187         Revert r202780:
12188         2013-09-20  Renlin Li  <renlin.li@arm.com>
12190         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12191         plus_constant.
12192         (aarch64_expand_epilogue): Likewise.
12193         (aarch64_legitimize_reload_address): Likewise.
12195 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
12197         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
12198         NULL_TREE before pushing them onto the vector.  Likewise for labels.
12200 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
12202         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
12203         comparison operators when -fno-trapping-math is in effect.
12204         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
12205         comparison operators in TFmode and assert that unsupported operators
12206         cannot reach here.
12207         (ia64_print_operand): Likewise.
12209 2013-09-21  Jan Hubicka  <jh@suse.cz>
12211         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
12212         (sse_typeless_stores): Enable for core
12213         (sse_load0_by_pxor): Likewise.
12214         (four_jump_limit): Disable for core.
12215         (pad_returns): Likewise.
12216         (avoid_vector_decode): Likewise.
12217         (fuse_cmp_and_branch): Enable for cores.
12218         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
12220 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
12222         PR middle-end/56791
12223         * config/pa/pa.c (pa_option_override): Disable auto increment and
12224         decrement instructions until reload is completed.
12226         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
12227         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
12228         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12230 2013-09-20  DJ Delorie  <dj@redhat.com>
12231             Nick Clifton  <nickc@redhat.com>
12233         * config/rl78/rl78.c: Various whitespace and comment tweaks.
12234         (need_to_save): Save bank 0 on interrupts.
12235         (characterize_address): Strip far address wrappers.
12236         (rl78_as_legitimate_address): Likewise.
12237         (transcode_memory_rtx): Likewise.
12238         (rl78_peep_movhi_p): Disable this peephole after devirt.
12239         (rl78_propogate_register_origins): Forget all origins when a
12240         CLOBBER is seen.
12241         * config/rl78/rl78-virt.md: Various whitespace tweaks.
12242         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
12243         peephole2's.
12244         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
12245         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
12246         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
12247         relocating.
12248         * config/rl78/constraints.md: Various whitespace and paren tweaks.
12250 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
12252         * config/pa/pa.md: In "scc" insn patterns, change output template to
12253         handle const0_rtx in reg_or_0_operand operands.
12255 2013-09-20  Martin Husemann  <martin@NetBSD.org>
12257         PR target/56875
12258         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
12259         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
12261 2013-09-20  Richard Biener  <rguenther@suse.de>
12263         PR middle-end/58484
12264         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
12265         remembering SSA name version and block index.
12266         (new_scev_info_str): Adjust.
12267         (hash_scev_info): Likewise.  Also hash the block index.
12268         (eq_scev_info): Adjust.
12269         (find_var_scev_info): Likewise.
12270         (struct instantiate_cache_entry): Remove.
12271         (struct instantiate_cache_type): Use a htab to map name, block
12272         to chrec.
12273         (instantiate_cache_type::~instantiate_cache_type): Adjust.
12274         (get_instantiated_value_entry): Likewise.
12275         (hash_idx_scev_info, eq_idx_scev_info): New functions.
12276         (instantiate_scev_name): Adjust.
12278 2013-09-20  Jeff Law  <law@redhat.com>
12280         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
12282 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
12284         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
12285         Call aarch64_simd_expand_args to update op[argc].
12287 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
12289         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
12290         plugin argument.
12292 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
12294         * gengtype.c (file_rules): Added rule for *.cc files.
12295         (get_output_file_with_visibility): Give fatal message when no
12296         rules found.
12298 2013-09-20  Renlin Li  <renlin.li@arm.com>
12300         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
12301         (aarch64_expand_epilogue): Likewise.
12302         (aarch64_legitimize_reload_address): Likewise.
12304 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12306         PR middle-end/57748
12307         * expr.c (expand_assignment): Remove misalignp code path.
12309 2013-09-20  Marek Polacek  <polacek@redhat.com>
12311         PR sanitizer/58413
12312         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
12313         TYPE_PRECISION.  Add asserts.
12315 2013-09-20  Richard Biener  <rguenther@suse.de>
12317         PR tree-optimization/58453
12318         * tree-loop-distribution.c (distribute_loop): Apply the cost
12319         model for -ftree-loop-distribute-patterns, too.
12321 2013-09-20  Richard Biener  <rguenther@suse.de>
12323         PR middle-end/58473
12324         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
12325         make type comparison less strict.
12327 2013-09-20  Alan Modra  <amodra@gmail.com>
12329         * configure: Regenerate.
12330         * aclocal.m4: Regenerate.
12332 2013-09-20  Marek Polacek  <polacek@redhat.com>
12334         PR other/58467
12335         * doc/extend.texi: Document that attribute used is meant to be used
12336         on variables with static storage duration.
12338 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
12340         PR tree-optimization/58472
12341         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
12342         simd_lane_access set inv_p = false.
12343         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
12344         the simduid magic VAR_DECL.
12346 2013-09-19  Jan Hubicka  <jh@suse.cz>
12348         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
12350 2013-09-17  Jeff Law  <law@redhat.com>
12352         * tree-ssa-dom.c (record_temporary_equivalences): New function
12353         split out of dom_opt_dom_walker::after_dom_children.
12354         (dom_opt_dom_walker::thread_across_edge): Move common code
12355         in here from dom_opt_dom_walker::after_dom_children.
12356         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
12358 2013-09-19  Jan Hubicka  <jh@suse.cz>
12360         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
12361         (TARGET_GENERIC): Use PROCESOR_GENERIC
12362         (enum processor_type): Unify generic32 and 64.
12363         * i386.md (cpu): Likewise.
12364         * x86-tune.def (use_leave): Enable for generic32.
12365         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
12366         * athlon.md: Change generic64 to generic in all occurences.
12367         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
12368         (ix86_target_macros_internal): Likewise.
12369         * driver-i386.c (host_detect_local_cpu): Likewise.
12370         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
12371         to ..
12372         (generic_memcpy, generic_memset, generic_cost): This one.
12373         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
12374         (m_GENERIC32, m_GENERIC64): Remove.
12375         (m_GENERIC): Turn into one flag.
12376         (processor_target): Unify generic tunnings.
12377         (ix86_option_override_internal): Replace generic32/64 by generic.
12378         (ix86_issue_rate): Likewise.
12379         (ix86_adjust_cost): Likewise.
12381 2013-09-19  Jan Hubicka  <jh@suse.cz>
12383         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
12384         of speculative flag.
12386 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
12388         * omp-low.c (expand_omp_sections): Always pass len - 1 to
12389         GOMP_sections_start, even if !exit_reachable.
12391 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
12393         * lra-constraints.c (need_for_all_save_p): Use macro
12394         HARD_REGNO_CALL_PART_CLOBBERED.
12395         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
12396         set up pseudo conflict hard regs.
12398 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
12400         PR target/58452
12401         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
12402         operands.
12404 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
12406         PR rtl-optimization/58438
12407         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
12408         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
12409         from previous subpasses.
12411 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
12413         * arm.c (arm_get_frame_offsets): Validate architecture supports
12414         LDRD/STRD before accepting the tuning preference.
12415         (arm_expand_prologue): Likewise.
12416         (arm_expand_epilogue): Likewise.
12418 2013-09-18  Richard Biener  <rguenther@suse.de>
12420         PR tree-optimization/58417
12421         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
12422         have chrecs with symbols defined in the loop as operands.
12423         (chrec_fold_multiply): Likewise.
12424         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
12425         parameters before folding binary operations.
12426         (struct instantiate_cache_entry_hasher): Remove.
12427         (struct instantiate_cache_type): Use a pointer-map.
12428         (instantiate_cache_type::instantiate_cache_type): New function.
12429         (instantiate_cache_type::get): Likewise.
12430         (instantiate_cache_type::set): Likewise.
12431         (instantiate_cache_type::~instantiate_cache_type): Adjust.
12432         (get_instantiated_value_entry): Likewise.
12433         (global_cache): New global.
12434         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
12435         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
12436         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
12437         (instantiate_scev_name): Adjust.
12438         (instantiate_scev): Construct global instead of local cache.
12439         (resolve_mixers): Likewise.
12441 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
12442             Paolo Carlini  <paolo.carlini@oracle.com>
12444         PR c++/58458
12445         * doc/implement-cxx.texi: Fix references to the C++ standards.
12447 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
12449         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
12450         * tree-vect-data-refs.c (vect_analyze_data_refs): For
12451         simd_lane_access drs, update also DR_ALIGNED_TO.
12453 2013-09-18  Marek Polacek  <polacek@redhat.com>
12455         PR sanitizer/58411
12456         * doc/extend.texi: Document no_sanitize_undefined attribute.
12457         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
12458         no_sanitize_undefined attribute.
12460 2013-09-18  Nick Clifton  <nickc@redhat.com>
12462         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
12463         (ASM_DECLARE_FUNCTION_NAME): Define.
12465 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
12467         * compare-elim.c (find_comparison_dom_walker): New class
12468         (find_comparisons_in_bb): Rename to
12469         find_comparison_dom_walker::before_dom_children
12470         (find_comparisons): Adjust
12471         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
12472         adjust.
12473         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
12474         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
12475         (init_walk_dominator_tree): Remove declaration.
12476         (fini_walk_dominator_tree): Remove declaration.
12477         * fwprop.c (single_def_use_dom_walker): New class
12478         (single_def_use_enter_block): Convert to
12479         single_def_use_dom_walker::before_dom_children.
12480         (single_def_use_leave_block): Convert to
12481         single_def_use_dom_walker::after_dom_children.
12482         (build_single_def_use_links): Adjust.
12483         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
12484         class.
12485         (find_candidates_in_block): Convert to
12486         find_candidates_dom_walker::before_dom_children.
12487         (execute_strength_reduction): Adjust.
12488         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
12489         (sese_dom_walker): New class.
12490         (sese_dom_walker::sese_dom_walker): New constructor.
12491         (sese_dom_walker::~sese_dom_walker): New destructor.
12492         (build_sese_conditions_before): Convert to
12493         sese_dom_walker::before_dom_children.
12494         (build_sese_conditions_after): Convert to
12495         sese_dom_walker::after_dom_children.
12496         (build_poly_scop): Adjust
12497         * tree-into-ssa.c (rewrite_dom_walker): New class
12498         (rewrite_enter_block): Convert to
12499         rewrite_dom_walker::before_dom_children.
12500         (rewrite_leave_block): Convert to
12501         rewrite_dom_walker::after_dom_children.
12502         (rewrite_update_dom_walker): New class.
12503         (rewrite_update_enter_block): Convert to
12504         rewrite_update_dom_walker::before_dom_children.
12505         (rewrite_update_leave_block): Convert to
12506         rewrite_update_dom_walker::after_dom_children.
12507         (rewrite_blocks, rewrite_into_ssa): Adjust.
12508         (mark_def_dom_walker): New class.
12509         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
12510         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
12511         (mark_def_sites_blocks): Convert to
12512         mark_def_dom_walker::before_dom_children.
12513         (mark_def_site_blocks): Remove.
12514         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
12515         (tree_ssa_dominator_optimize): Adjust.
12516         (dom_thread_across_edge): Convert to method
12517         dom_opt_dom_walker::thread_across_edge.
12518         (dom_opt_enter_block): Convert to member function
12519         dom_opt_dom_walker::before_dom_children.
12520         (dom_opt_leave_block): Convert to member function
12521         dom_opt_dom_walker::after_dom_children.
12522         * tree-ssa-dse.c (dse_dom_walker): New class.
12523         (dse_enter_block): Convert to member function
12524         dse_dom_walker::before_dom_children.
12525         (tree_ssa_dse): Adjust.
12526         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
12527         (determine_invariantness_stmt): Convert to method
12528         invariantness_dom_walker::before_dom_children.
12529         (determine_invariantness): Remove
12530         (move_computations_dom_walker): New class.
12531         (move_computations_stmt): Convert to method
12532         move_computations_dom_walker::before_dom_children.
12533         (move_computations, tree_ssa_lim): Adjust.
12534         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
12535         (nt_init_block): Convert to method
12536         notrappping_dom_walker::before_dom_children.
12537         (nt_fini_block): Convert to method
12538         method nontrapping_dom_walker::after_dom_children.
12539         (get_non_trapping): Adjust.
12540         * tree-ssa-pre.c (eliminate_dom_walker): New class.
12541         (eliminate_bb): Convert to method
12542         eliminate_dom_walker::before_dom_children.
12543         (eliminate_leave_block): Convert to method
12544         eliminate_dom_walker::after_dom_children.
12545         (eliminate): Adjust.
12546         * tree-ssa-strlen.c (strlen_dom_walker): New class.
12547         (strlen_enter_block): Convert to method
12548         strlen_dom_walker::before_dom_children.
12549         (strlen_leave_block): Convert to method
12550         method strlen_dom_walker::after_dom_children.
12551         (tree_ssa_strlen): Adjust.
12552         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
12553         (tree_ssa_uncprop): Adjust.
12554         (uncprop_leave_block): Convert to method
12555         uncprop_dom_walker::after_dom_children.
12556         (uncprop_leave_block): Convert to method
12557         uncprop_dom_walker::before_dom_children.
12559 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
12561         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
12562         branch in same basic block.  Check both src and dest of the move insn.
12564 2013-09-17  Nick Clifton  <nickc@redhat.com>
12566         * config/rl78/rl78-real.md (bf): New pattern.
12567         (bt): New pattern.
12568         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
12569         (rl78_print_operand): Do not put a # before a %B.
12570         * config/rl78/rl78.opt: Tweak doc strings.
12572 2013-09-17  DJ Delorie  <dj@redhat.com>
12574         * config/rl78/constraints.md (Wcv): Allow up to $r31.
12575         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
12576         (rl78_option_override): Likewise, if -mallregs.
12577         (is_virtual_register): Likewise.
12578         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
12579         (REGNO_OK_FOR_BASE_P): Likewise.
12580         * config/rl78/rl78.opt (-mallregs): New.
12582 2013-09-17  Nick Clifton  <nickc@redhat.com>
12584         * config/rl78/rl78.c (need_to_save): Change return type to bool.
12585         For interrupt functions: save all call clobbered registers if the
12586         interrupt handler is not a leaf function.
12587         (rl78_expand_prologue): Always recompute the frame information.
12588         For interrupt functions: only select bank 0 if one of the bank 0
12589         registers is going to be psuhed.
12591 2013-09-17  DJ Delorie  <dj@redhat.com>
12593         * config/rl78/constraints.md: For each W* constraint, rename to C*
12594         and create a W* constraint that checks for an optional ES: prefix
12595         pattern also.
12596         * config/rl78/rl78.md (UNS_ES_ADDR): New.
12597         (es_addr): New.  Used to wrap far addresses.
12598         * config/rl78/rl78-protos.h (rl78_es_addr): New.
12599         (rl78_es_base): New.
12600         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
12601         wrapped far addresses.
12602         (rl78_print_operand_1): Unwrap far addresses before processing.
12603         (rl78_lo16): Wrap far addresses in unspecs.
12604         (rl78_es_addr): New.
12605         (rl78_es_base): New.
12606         (insn_ok_now): Check for not-yet-wrapped far addresses.
12607         (transcode_memory_rtx): Properly re-wrap far addresses.
12609 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12611         * config/sparc/t-rtems: Add leon3 multilibs.
12613 2013-09-17  Cong Hou  <congh@google.com>
12615         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
12616         when checking the dot production pattern. The type of rhs operand
12617         of multiply is now checked correctly.
12619 2013-09-17  Jeff Law  <law@redhat.com>
12621         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12622         edge implied equivalences into successor phis.
12623         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
12624         here from tree-ssa-threadedge.c.
12625         (mark_threaded_blocks): When threading through a joiner, if both
12626         successors of the joiner's clone reach the same block, verify the
12627         PHI arguments are equal.  If not, cancel the jump threading request.
12628         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
12629         tree-ssa-threadupdate.c
12630         (thread_across_edge): Don't check PHI argument equality when
12631         threading through joiner block here.
12633 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
12635         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
12636         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
12637         (warn_uninit, warn_uninitialized_vars,
12638         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
12639         Move to tree-ssa-uninit.c.
12640         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
12641         (has_undefined_value_p): New.  Pass dependant parts of
12642         ssa_undefined_value_p.
12643         (uninit_undefined_value_p): Use has_undefined_value_p.
12644         (warn_uninit, warn_uninitialized_vars,
12645         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
12646         Move from tree-ssa.c.
12647         * tree-ssa.h: Adjust prototypes.
12649 2013-09-17  Jan Hubicka  <jh@suse.cz>
12651         PR middle-end/58332
12652         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
12653         * ipa-inline.c (can_inline_edge_p): Do not downgrade
12654         FUNCTION_NOT_OPTIMIZED.
12655         * ipa-inline-analysis.c (compute_inline_parameters): Function
12656         not optimized is not inlinable unless it is alwaysinline.
12657         (inline_analyze_function): Force calls in not optimized
12658         function not inlinable.
12660 2013-09-17  Jan Hubicka  <jh@suse.cz>
12662         PR middle-end/58329
12663         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
12664         to return NULL.
12665         * ipa.c (function_and_variable_visibility): Likewise.
12666         * ipa-profile.c (ipa_profile): Likewise.
12668 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12670         PR ipa/58398
12671         * cgraph.c (cgraph_function_body_availability): Check for ifunc
12672         attribute, and don't inline the resolver in this case.
12674 2013-09-17  Teresa Johnson  <tejohnson@google.com>
12676         * coverage.c (get_coverage_counts): Add missing newline.
12678 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12680         PR tree-optimization/58088
12681         * fold-const.c (mask_with_trailing_zeros): New function.
12682         (fold_binary_loc): Make sure we don't recurse infinitely
12683         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
12684         Use mask_with_trailing_zeros where appropriate.
12686 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
12688         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
12689         of 'prev' var to get better distance estimation.
12691 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
12693         * tree-inline.h (struct copy_body_data): Add transform_parameter.
12694         * tree-inline.c (is_parameter_of): New predicate.
12695         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
12696         a parameter has been remapped.
12697         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
12698         (optimize_inline_calls): Initialize transform_parameter.
12699         (copy_gimple_seq_and_replace_locals): Likewise.
12700         (tree_function_versioning): Likewise.
12701         (maybe_inline_call_in_expr): Likewise.
12703 2013-09-17  Nick Clifton  <nickc@redhat.com>
12705         * config/msp430/msp430-protos.h: Add prototypes for new functions.
12706         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
12707         interrupt handlers.
12708         (is_attr_func): New function.
12709         (msp430_is_interrupt_func): New function.
12710         (is_naked_func): New function.
12711         (is_reentrant_func): New function.
12712         (is_critical_func): New function.
12713         (msp430_start_function): Add annotations for function attributes.
12714         (msp430_attr): New function.
12715         (msp430_attribute_table): New.
12716         (msp430_function_section): New function.
12717         (TARGET_ASM_FUNCTION_SECTION): Define.
12718         (msp430_builtin): New enum.
12719         (msp430_init_builtins): New function.
12720         (msp430_builtin_devl): New function.
12721         (msp430_expand_builtin): New function.
12722         (TARGET_INIT_BUILTINS): Define.
12723         (TARGET_EXPAND_BUILTINS): Define.
12724         (TARGET_BUILTIN_DECL): Define.
12725         (msp430_expand_prologue): Add support for naked, interrupt,
12726         critical and reentrant functions.
12727         (msp430_expand_epilogue): Likewise.
12728         (msp430_print_operand): Handle 'O' character.
12729         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
12730         NO_TRAMPOLINES.
12731         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
12732         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
12733         (pushm): Use a 'n' rather than an 'i' constraint.
12734         (msp_return): Add generation of the interrupt return instruction.
12735         (disable_interrupts): New pattern.
12736         (enable_interrupts): New pattern.
12737         (push_intr_state): New pattern.
12738         (pop_intr_state): New pattern.
12739         (bic_SR): New pattern.
12740         (bis_SR): New pattern.
12741         * doc/extend.texi: Document MSP430 function attributes and builtin
12742         functions.
12744 2013-09-17  Richard Biener  <rguenther@suse.de>
12746         PR tree-optimization/58432
12747         * tree-loop-distribution.c (tree_loop_distribution): Also
12748         scan PHIs for outside loop uses and seed a partition from them.
12750 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
12752         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
12753         (restructure_reference): Call backtrace_base_for_ref.
12755 2013-09-17  Alan Modra  <amodra@gmail.com>
12757         PR target/57589
12758         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
12759         patch.
12761 2013-09-16  DJ Delorie  <dj@redhat.com>
12763         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
12764         vregs location for RL78/G10.
12765         (rl78_expand_prologue): Avoid SEL on G10.
12766         (rl78_expand_epilogue): Likewise.
12767         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
12768         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
12769         __RL78_G10__ when appropriate.
12770         (ASM_SPEC): Pass -mg10 along to the assembler.
12771         * config/rl78/rl78.md (sel_rb): Disable for G10.
12772         * config/rl78/rl78.opt: Add -mg10 option.
12773         * config/rl78/t-rl78: Add -mg10 multilib.
12775 2013-09-16  Xinliang David Li  <davidxl@google.com>
12777         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
12778         * omp-low.c (omp_max_vf): Ditto.
12779         (expand_omp_simd): Ditto.
12780         * tree-vectorizer.c (vectorize_loops): Ditto.
12781         (gate_vect_slp): Ditto.
12782         (gate_increase_alignment): Ditto.
12783         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
12784         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
12785         (gate_tree_vectorize): Name change.
12786         (tree_vectorize): Ditto.
12787         (pass_vectorize::gate): Call new function.
12788         (pass_vectorize::execute): Ditto.
12789         * opts.c: O3 default setting change.
12790         (finish_options): Check new flag.
12791         * doc/invoke.texi: Document new flags.
12792         * common.opt: New flags.
12794 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
12796         * doc/tm.texi.in (Cond Exec Macros): Remove node.
12797         (Condition Code): Don't reference it.
12798         * doc/tm.texi: Regenerate.
12800 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
12802         PR middle-end/58418
12803         * lra-constraints.c (undo_optional_reloads): Consider all optional
12804         reload even if it did not get a hard reg.
12806 2013-09-16  Teresa Johnson  <tejohnson@google.com>
12808         * dumpfile.c (dump_loc): Remove newline emission.
12809         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
12810         emission to dump_printf_loc calls where missing.
12811         (vect_mark_for_runtime_alias_test): Ditto.
12812         (vect_analyze_data_ref_dependence): Ditto.
12813         (vect_analyze_data_ref_dependences): Ditto.
12814         (vect_slp_analyze_data_ref_dependence): Ditto.
12815         (vect_slp_analyze_data_ref_dependences): Ditto.
12816         (vect_compute_data_ref_alignment): Ditto.
12817         (vect_update_misalignment_for_peel): Ditto.
12818         (vect_verify_datarefs_alignment): Ditto.
12819         (vector_alignment_reachable_p): Ditto.
12820         (vect_get_data_access_cost): Ditto.
12821         (vect_enhance_data_refs_alignment): Ditto.
12822         (vect_find_same_alignment_drs): Ditto.
12823         (vect_analyze_data_refs_alignment): Ditto.
12824         (vect_analyze_group_access): Ditto.
12825         (vect_analyze_data_ref_access): Ditto.
12826         (vect_analyze_data_ref_accesses): Ditto.
12827         (vect_prune_runtime_alias_test_list): Ditto.
12828         (vect_analyze_data_refs): Ditto.
12829         (vect_create_addr_base_for_vector_ref): Ditto.
12830         (vect_create_data_ref_ptr): Ditto.
12831         (vect_grouped_store_supported): Ditto.
12832         (vect_grouped_load_supported): Ditto.
12833         * value-prof.c (check_counter): Ditto.
12834         (check_ic_target): Ditto.
12835         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
12836         (vect_recog_widen_mult_pattern): Ditto.
12837         (vect_recog_widen_sum_pattern): Ditto.
12838         (vect_recog_over_widening_pattern): Ditto.
12839         (vect_recog_widen_shift_pattern): Ditto.
12840         (vect_recog_rotate_pattern): Ditto.
12841         (vect_recog_vector_vector_shift_pattern): Ditto.
12842         (vect_recog_divmod_pattern): Ditto.
12843         (vect_recog_mixed_size_cond_pattern): Ditto.
12844         (vect_recog_bool_pattern): Ditto.
12845         (vect_pattern_recog_1): Ditto.
12846         (vect_pattern_recog): Ditto.
12847         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
12848         (vect_is_simple_iv_evolution): Ditto.
12849         (vect_analyze_scalar_cycles_1): Ditto.
12850         (vect_get_loop_niters): Ditto.
12851         (vect_analyze_loop_1): Ditto.
12852         (vect_analyze_loop_form): Ditto.
12853         (vect_analyze_loop_operations): Ditto.
12854         (vect_analyze_loop_2): Ditto.
12855         (vect_analyze_loop): Ditto.
12856         (report_vect_op): Ditto.
12857         (vect_is_slp_reduction): Ditto.
12858         (vect_is_simple_reduction_1): Ditto.
12859         (vect_get_known_peeling_cost): Ditto.
12860         (vect_estimate_min_profitable_iters): Ditto.
12861         (vect_model_reduction_cost): Ditto.
12862         (vect_model_induction_cost): Ditto.
12863         (get_initial_def_for_induction): Ditto.
12864         (vect_create_epilog_for_reduction): Ditto.
12865         (vectorizable_reduction): Ditto.
12866         (vectorizable_induction): Ditto.
12867         (vectorizable_live_operation): Ditto.
12868         (vect_loop_kill_debug_uses): Ditto.
12869         (vect_transform_loop): Ditto.
12870         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
12871         (vect_stmt_relevant_p): Ditto.
12872         (process_use): Ditto.
12873         (vect_mark_stmts_to_be_vectorized): Ditto.
12874         (vect_model_simple_cost): Ditto.
12875         (vect_model_promotion_demotion_cost): Ditto.
12876         (vect_model_store_cost): Ditto.
12877         (vect_get_store_cost): Ditto.
12878         (vect_model_load_cost): Ditto.
12879         (vect_get_load_cost): Ditto.
12880         (vect_init_vector_1): Ditto.
12881         (vect_get_vec_def_for_operand): Ditto.
12882         (vect_finish_stmt_generation): Ditto.
12883         (vectorizable_call): Ditto.
12884         (vectorizable_conversion): Ditto.
12885         (vectorizable_assignment): Ditto.
12886         (vectorizable_shift): Ditto.
12887         (vectorizable_operation): Ditto.
12888         (vectorizable_store): Ditto.
12889         (vectorizable_load): Ditto.
12890         (vectorizable_condition): Ditto.
12891         (vect_analyze_stmt): Ditto.
12892         (vect_transform_stmt): Ditto.
12893         (vect_is_simple_use): Ditto.
12894         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
12895         (vect_can_advance_ivs_p): Ditto.
12896         (vect_update_ivs_after_vectorizer): Ditto.
12897         (vect_do_peeling_for_loop_bound): Ditto.
12898         (vect_gen_niters_for_prolog_loop): Ditto.
12899         (vect_update_inits_of_drs): Ditto.
12900         (vect_create_cond_for_alias_checks): Ditto.
12901         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
12902         (vect_build_slp_tree_1): Ditto.
12903         (vect_supported_load_permutation_p): Ditto.
12904         (vect_analyze_slp_instance): Ditto.
12905         (vect_analyze_slp): Ditto.
12906         (vect_make_slp_decision): Ditto.
12907         (vect_detect_hybrid_slp): Ditto.
12908         (vect_bb_vectorization_profitable_p): Ditto.
12909         (vect_slp_analyze_bb_1): Ditto.
12910         (vect_update_slp_costs_according_to_vf): Ditto.
12911         (vect_get_mask_element): Ditto.
12912         (vect_transform_slp_perm_load): Ditto.
12913         (vect_schedule_slp_instance): Ditto.
12914         (vect_schedule_slp): Ditto.
12915         (vect_slp_transform_bb): Ditto.
12916         * profile.c (read_profile_edge_counts): Ditto.
12917         (compute_branch_probabilities): Ditto.
12918         * coverage.c (get_coverage_counts): Ditto.
12920 2013-09-16  Diego Novillo  <dnovillo@google.com>
12922         * tree-core.h: Add missing comment lines from refactoring of tree.h.
12924 2013-09-16  Jan Hubicka  <jh@suse.cz>
12926         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
12927         abstract functions; for static functions check the presence of body.
12929 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
12931         * config/aarch64/aarch64-simd-builtins.def (fma): New.
12932         * config/aarch64/aarch64-simd.md
12933         (aarch64_mla_elt<mode>): New.
12934         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
12935         (aarch64_mls_elt<mode>): Likewise.
12936         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
12937         (aarch64_fma4_elt<mode>): Likewise.
12938         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
12939         (aarch64_fma4_elt_to_128v2df): Likewise.
12940         (aarch64_fma4_elt_to_64df): Likewise.
12941         (fnma<mode>4): Likewise.
12942         (aarch64_fnma4_elt<mode>): Likewise.
12943         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
12944         (aarch64_fnma4_elt_to_128v2df): Likewise.
12945         (aarch64_fnma4_elt_to_64df): Likewise.
12946         * config/aarch64/iterators.md (VDQSF): New.
12947         * config/aarch64/arm_neon.h
12948         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
12949         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
12951 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
12953         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
12954         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
12955         (aarch64_mul3_elt_to_128df): Likewise.
12956         (aarch64_mul3_elt_to_64v2df): Likewise.
12957         * config/aarch64/iterators.md (VEL): Also handle DFmode.
12958         (VMUL): New.
12959         (VMUL_CHANGE_NLANES) Likewise.
12960         (h_con): Likewise.
12961         (f): Likewise.
12962         * config/aarch64/arm_neon.h
12963         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
12965 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
12967         * config/aarch64/arm_neon.h
12968         (vcvtx_high_f32_f64): Fix parameters.
12970 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12971             Uros Bizjak  <ubizjak@gmail.com>
12973         * config/alpha.c: Include tree-ssanames.h.
12975 2013-09-16  Richard Biener  <rguenther@suse.de>
12977         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
12978         (dot_rdg_1): Handle control_dd.
12979         (create_edge_for_control_dependence): New function.
12980         (create_rdg_edges): Add control dependences if asked for.
12981         (build_rdg): Likewise.
12982         (generate_loops_for_partition): If there are not necessary
12983         control stmts remove all their dependencies.
12984         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
12985         (distribute_loop): Pass on control dependences.
12986         (tree_loop_distribution): Compute control dependences and remove
12987         restriction on number of loop nodes.
12989 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
12991         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
12992         for internal calls.
12994 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
12996         * cse.c (try_const_anchors): Punt on CC modes.
12998 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13000         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
13002 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
13004         PR target/58382
13005         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
13006         calls to word_mode.
13008 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
13010         PR target/48094
13011         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
13012         seen.
13013         (darwin_objc1_section): Likewise.
13014         (darwin_file_end): Emit Image Info section when required.
13016 2013-09-14  Jan Hubicka  <jh@suse.cz>
13018         * tree-into-ssa.c (gate_into_ssa): New.
13019         (pass_data_build_ssa): Use it.
13020         * cgraph.h (expand_thunk): Update prototype.
13021         * cgraphunit.c (analyze_function): Expand thunks early.
13022         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
13023         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
13024         set lowered flag; do not add new function.
13025         (assemble_thunks_and_aliases): Update.
13026         * tree-ssa.c (gate_init_datastructures): New gate.
13027         (pass_data_init_datastructures): Use it.
13029 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
13031         PR target/58269
13032         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
13033         xmm register set described in the psABI.
13035 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
13037         * dwarf2out.c (should_emit_struct_debug): Add check
13038         for type_decl variable is not NULL.
13040 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
13042         * config.gcc: Use new winnt-c.c target hooks
13043         * config/t-winnt: New file
13044         * config/winnt-c.c: New file
13045         * doc/tm.texi.in: Document new hook
13046         * doc/tm.texi: Regenerated
13048 2013-09-13  Jan Hubicka  <jh@suse.cz>
13050         PR middle-end/58094
13051         * ipa-inline.c (check_callers): New function.
13052         (check_caller_edge): Remove.
13053         (want_inline_function_to_all_callers_p): Also permit alises that are
13054         called dirrectly.
13055         (inline_to_all_callers): Terminate the walk when devirtualization
13056         introduce new calls.
13058 2013-09-13  Jan Hubicka  <jh@suse.cz>
13060         * ipa-inline-analysis.c (struct growth_data): Add node.
13061         (do_estimate_growth_1): Fix detection of recursion.
13063 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
13065         PR tree-optimization/58392
13066         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
13067         to avoid shadowing of outer loop variable.  If
13068         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
13069         replace_by_duplicate_decl simduid of loops that have it set and
13070         set dest_cfun->has_simduid_loops and/or
13071         dest_cfun->has_force_vect_loops.
13072         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
13073         instead of maybe_lookup_decl.
13074         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
13075         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
13076         call.  Copy over force_vect and copy and remap simduid.  Set
13077         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
13078         (copy_cfg_body): Remove blocks_to_copy argument.  Use
13079         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
13080         caller.  Don't set cfun->has_simduid_loops and/or
13081         cfun->has_force_vect_loops here.
13082         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
13083         caller.
13084         (expand_call_inline, tree_function_versioning): Adjust copy_body
13085         callers.
13087 2013-09-13  Martin Jambor  <mjambor@suse.cz>
13089         PR bootstrap/58388
13090         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
13091         the assert if the edge was a speculative one.
13093 2013-09-13  Richard Biener  <rguenther@suse.de>
13095         * tree-data-ref.h (known_dependences_p): Move here ...
13096         * tree-loop-distribution.c (known_dependences_p): ... from here.
13097         (dump_rdg_component, debug_rdg_component): Remove.
13098         (dump_rdg): Adjust.
13099         (generate_loops_for_partition): Use gimple_uid instead of
13100         relying on matching stmt visit order.
13101         (rdg_build_partitions): Take starting stmt vector.
13102         (ldist_gen): Merge into ...
13103         (distribute_loop): ... this function.  Do not compute starting
13104         vertices vector.
13105         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
13107 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13109         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
13110         Set type attribute correctly. Set predicable_short_it attribute.
13111         (cmpsi_shiftsi): Remove %? from output template.
13113 2013-09-13  Richard Biener  <rguenther@suse.de>
13115         * tree-loop-distribution.c (struct rdg_component,
13116         rdg_defs_used_in_other_loops_p, free_rdg_components,
13117         rdg_build_components): Remove.
13118         (stmts_from_loop): Do not record virtual PHIs.
13119         (generate_loops_for_partition): Skip virtual PHIs.
13120         (build_rdg_partition_for_component): Rename to ...
13121         (build_rdg_partition_for_vertex): ... this and adjust.
13122         (rdg_build_partitions): Take a vector of starting vertices
13123         instead of components.  Remove unnecessary leftover handling.
13124         (ldist_gen): Do not build components or record other stores.
13125         (distribute_loop): Do not distribute loops containing stmts
13126         with side-effects.
13128 2013-09-13  Christian Bruel  <christian.bruel@st.com>
13130         PR target/58314
13131         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
13133 2013-09-13  Kai Tietz  <ktietz@redhat.com>
13135         * config.gcc: Separate cases for mingw and cygwin targets,
13136         and add 64-bit cygwin target case.
13138         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
13139         dll-export inline-functions.
13140         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
13142 2013-09-13  Jeff Law  <law@redhat.com>
13144         PR middle-end/58387
13145         Revert:
13146         2013-09-06  Jeff Law  <law@redhat.com>
13148         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13149         edge implied equivalences into successor phis.
13151 2013-09-12  DJ Delorie  <dj@redhat.com>
13153         * config/rl78/rl78-virt.md: Change from | to \; for asm line
13154         separators.
13156 2013-09-12  Brooks Moses  <bmoses@google.com>
13158         PR driver/42955
13159         * Makefile.in: Do not install driver binaries in $(target)/bin.
13161 2013-09-12  DJ Delorie  <dj@redhat.com>
13163         * config/rl78/rl78.opt (mrelax): New.
13164         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
13165         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
13167         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
13168         between SP and FP.
13169         (rl78_expand_epilogue): Likewise.
13171 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
13173         PR middle-end/58335
13174         * lra-eliminations.c (remove_reg_equal_offset_note): New.
13175         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
13176         pointer elimination with using remove_reg_equal_offset_note.
13178 2013-09-12  DJ Delorie  <dj@redhat.com>
13180         * config/msp430/: New port.
13181         * config.gcc (msp430): Added.
13182         * doc/invoke.texi: Document MSP430 options.
13183         * doc/install.texi: Document msp430-elf
13184         * doc/md.texi: Document msp430-elf
13185         * doc/contrib.texi: Document msp430-elf
13187         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
13188         PSImode.
13190 2013-09-12  Martin Jambor  <mjambor@suse.cz>
13192         PR ipa/58389
13193         * ipa-prop.c (remove_described_reference): Give up if the edge in the
13194         reference descriptor is NULL.
13195         (ipa_edge_removal_hook): If owning a reference descriptor, set its
13196         edge to NULL.
13198 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
13200         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
13201         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
13202         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
13203         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
13204         make_temp_ssa_name): move to tree-ssanames.h
13205         * tree-ssa-alias.h: Move prototype.
13206         * tree-ssa.h: Include tree-ssanames.h.
13207         * tree-ssanames.c (FREE_SSANAMES): Move to here.
13208         * tree-ssanames.h: New.  Move items from tree-flow*.h
13209         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
13211 2013-09-12  Richard Biener  <rguenther@suse.de>
13213         PR tree-optimization/58404
13214         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
13215         propagate non-invariant addresses into dereferences wrapped
13216         in component references.
13218 2013-09-12  Richard Biener  <rguenther@suse.de>
13220         PR tree-optimization/58402
13221         * passes.def: Move pass_late_warn_uninitialized later.
13223 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
13225         * tree-ssa.h: New.  Move content from tree-flow.h and
13226         tree-flow-inline.h.
13227         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
13228         Move prototypes belonging to tree-ssa.c.
13229         * tree-flow-inline.h (redirect_edge_var_map_def,
13230         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
13231         tree-ssa.h.
13232         * gimple.h: Adjust prototypes.
13233         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
13234         to...
13235         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
13236         * tree.h: Move prototype to tree-ssa.h.
13237         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
13238         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
13239         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
13240         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
13241         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
13242         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
13243         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
13244         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
13245         graphite-blocking.c, graphite-clast-to-gimple.c,
13246         graphite-dependences.c, graphite-interchange.c,
13247         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
13248         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
13249         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
13250         ipa-reference.c, ipa-split.c, ipa-utils.c,
13251         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
13252         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
13253         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
13254         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
13255         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
13256         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
13257         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
13258         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
13259         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
13260         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
13261         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
13262         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13263         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
13264         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
13265         value-prof.c, var-tracking.c,
13266         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
13268 2013-09-12  Richard Biener  <rguenther@suse.de>
13270         PR tree-optimization/58396
13271         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
13272         (build_rdg): Take a loop-nest parameter, fix memleaks.
13273         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
13275 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
13277         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
13278         for SLM.
13280 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
13282         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
13283         The FMA instruction names should have a 'v' prefix.
13285 2013-09-12  Richard Biener  <rguenther@suse.de>
13287         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
13288         (dot_rdg): Use popen instead of system in optional code.
13289         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
13290         (already_processed_vertex_p): Adjust.
13291         (has_anti_or_output_dependence, predecessor_has_mem_write,
13292         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
13293         rdg_flag_uses): Remove.
13294         (rdg_flag_vertex): Simplify.
13295         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
13296         remove recursion.
13297         (build_rdg_partition_for_component): Process the first vertex
13298         of a component only.
13299         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
13301 2013-09-12  Alan Modra  <amodra@gmail.com>
13303         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
13305 2013-09-11  DJ Delorie  <dj@redhat.com>
13306             Nick Clifton  <nickc@redhat.com>
13308         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
13309         (rl78_stack_based_mem): New.
13310         * config/rl78/constraints.md (Iv08): New.
13311         (Iv16): New.
13312         (Iv24): New.
13313         (Is09): New.
13314         (Is17): New.
13315         (Is25): New.
13316         (ISsi): New.
13317         (IShi): New.
13318         (ISqi): New.
13319         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
13320         (movhi): Likewise.
13321         (movsi): Change from expand to insn-and-split.
13322         (ashrsi3): Clobber AX.
13323         (lshrsi3): New.
13324         (ashlsi3): New.
13325         (cbranchsi4): New.
13326         * config/rl78/rl78.md (CC_REG): Fix.
13327         (addsi3): Allow memory and immediate operands.
13328         (addsi3_internal): Split into...
13329         (addsi3_internal_virt): ...new, and ...
13330         (addsi3_internal_real): ...new.
13331         (subsi): New.
13332         (subsi3_internal_virt): New.
13333         (subsi3_internal_real): New.
13334         (mulsi3): Add memory operand.
13335         (mulsi3_rl78): Likewise.
13336         (mulsi3_g13): Likewise.
13337         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
13338         (cbranchqi4_real): Add more constraint options.
13339         (cbranchhi4_real): Expand pattern.
13340         (cbranchhi4_real_signed): New.
13341         (cbranchhi4_real_inverted): New.
13342         (cbranchsi4_real_lt): New.
13343         (cbranchsi4_real_ge): New.
13344         (cbranchsi4_real_signed): New.
13345         (cbranchsi4_real): New.
13346         (peephole2): New.
13347         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
13348         constant shifts.
13349         (lshrsi3_virt): Likewise.
13350         (ashlsi3_virt): Likewise.
13351         (cbranchqi4_virt_signed): New.
13352         (cbranchhi4_virt_signed): New.
13353         (cbranchsi4_virt): New.
13354         * config/rl78/rl78.c: Whitespace fixes throughout.
13355         (move_elim_pass): New.
13356         (pass_data_rl78_move_elim): New.
13357         (pass_rl78_move_elim): New.
13358         (make_pass_rl78_move_elim): New.
13359         (rl78_devirt_info): Run devirt earlier.
13360         (rl78_move_elim_info): New.
13361         (rl78_asm_file_start): Register it.
13362         (rl78_split_movsi): New.
13363         (rl78_as_legitimate_address): Allow virtual base registers when
13364         appropriate.
13365         (rl78_addr_space_convert): Remove spurious debug stuff.
13366         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
13367         (rl78_print_operand): More cases for not printing '#'.
13368         (rl78_expand_compare): Remove most of the logic.
13369         (content_memory): New.
13370         (clear_content_memory): New.
13371         (get_content_index): New.
13372         (get_content_name): New.
13373         (display_content_memory): New.
13374         (update_content): New.
13375         (record_content): New.
13376         (already_contains): New.
13377         (insn_ok_now): Re-recog insns with virtual registers.
13378         (add_postponed_content_update): New.
13379         (process_postponed_content_update): New.
13380         (gen_and_emit_move): New.
13381         (transcode_memory_rtx): Record new location content.
13382         Use gen_and_emit_move.
13383         (force_into_acc): New.
13384         (move_to_acc): Use gen_and_emit_move.
13385         (move_from_acc): Likewise.
13386         (move_acc_to_reg): Likewise.
13387         (move_to_x): Likewise.
13388         (move_to_hl): Likewise.
13389         (move_to_de): Likewise.
13390         (rl78_alloc_physical_registers_op1): Record location content.
13391         (has_constraint): New.
13392         (rl78_alloc_physical_registers_op2): Record location content.
13393         Optimize use of HL.
13394         (rl78_alloc_physical_registers_ro1): Likewise.
13395         (rl78_alloc_physical_registers_cmp): Likewise.
13396         (rl78_alloc_physical_registers_umul): Likewise.
13397         (rl78_alloc_address_registers_macax): New.
13398         (rl78_alloc_physical_registers): Initialize and set location
13399         content memory as needed.
13400         (rl78_reorg): Make sure split2 is called.
13401         (rl78_rtx_costs): New.
13403 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
13405         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
13406         for (not (neg ...)) and (neg (not ...)) cases.
13408 2013-09-11  Richard Biener  <rguenther@suse.de>
13410         PR middle-end/58377
13411         * passes.def: Split critical edges before late uninit warning passes.
13412         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
13414 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
13416         PR tree-optimization/58385
13417         * fold-const.c (build_range_check): If both low and high are NULL,
13418         use omit_one_operand_loc to preserve exp side-effects.
13420 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13422         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
13424 2013-09-11  Richard Biener  <rguenther@suse.de>
13426         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
13427         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
13428         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
13429         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
13430         stmts_from_loop, known_dependences_p, build_empty_rdg,
13431         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
13432         * tree-loop-distribution.c: ... here.
13433         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
13434         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
13435         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
13436         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
13437         * tree-loop-distribution.c: ... here.
13438         * tree-loop-distribution.c: Include gimple-pretty-print.h.
13439         (struct partition_s): Add loops member.
13440         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
13441         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
13442         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
13444 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13445             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13446             Sergey Lega  <sergey.s.lega@intel.com>
13447             Anna Tikhonova  <anna.tikhonova@intel.com>
13448             Ilya Tocar  <ilya.tocar@intel.com>
13449             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13450             Ilya Verbin  <ilya.verbin@intel.com>
13451             Kirill Yukhin  <kirill.yukhin@intel.com>
13452             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13454         * config/i386/constraints.md (k): New.
13455         (Yk): Ditto.
13456         * config/i386/i386.c (const regclass_map): Add new mask registers.
13457         (dbx_register_map): Ditto.
13458         (dbx64_register_map): Ditto.
13459         (svr4_dbx_register_map): Ditto.
13460         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
13461         disabled.
13462         (ix86_preferred_reload_class): Disable constants for mask registers.
13463         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
13464         (ix86_hard_regno_mode_ok): Support new mask registers.
13465         (x86_order_regs_for_local_alloc): Ditto.
13466         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
13467         (FIXED_REGISTERS): Add new mask registers.
13468         (CALL_USED_REGISTERS): Ditto.
13469         (REG_ALLOC_ORDER): Ditto.
13470         (VALID_MASK_REG_MODE): New.
13471         (FIRST_MASK_REG): Ditto.
13472         (LAST_MASK_REG): Ditto.
13473         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
13474         (MAYBE_MASK_CLASS_P): New.
13475         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
13476         (REG_CLASS_CONTENTS): Ditto.
13477         (MASK_REGNO_P): New.
13478         (ANY_MASK_REG_P): Ditto.
13479         (HI_REGISTER_NAMES): Add new mask registers.
13480         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
13481         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
13482         mask registers.
13483         (attribute "type"): Add mskmov, msklog.
13484         (attribute "length_immediate"): Support them.
13485         (attribute "memory"): Ditto.
13486         (attribute "prefix_0f"): Ditto.
13487         (*movhi_internal): Support new mask registers.
13488         (*movqi_internal): Ditto.
13489         (define_split): Split out clobber pattern is a logic
13490         insn on mask registers.
13491         (*k<logic><mode>): New.
13492         (*andhi_1): Extend to support mask regs.
13493         (*andqi_1): Extend to support mask regs.
13494         (kandn<mode>): New.
13495         (define_split): Split and-not to and and not if operands
13496         are not mask regs.
13497         (*<code><mode>_1): Separate HI mode to new pattern...
13498         (*<code>hi_1): This.
13499         (*<code>qi_1): Extend to support mask regs.
13500         (kxnor<mode>): New.
13501         (kortestzhi): Ditto.
13502         (kortestchi): Ditto.
13503         (kunpckhi): Ditto.
13504         (*one_cmpl<mode>2_1): Remove HImode and handle it...
13505         (*one_cmplhi2_1): ...Here, now with mask registers support.
13506         (*one_cmplqi2_1): Support new mask registers.
13507         (HI/QImode arithmetics splitter): Don't split if mask registers
13508         are used.
13509         (HI/QImode not splitter): Ditto.
13510         * config/i386/predicated.md (mask_reg_operand): New.
13511         (general_reg_operand): Ditto.
13513 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13515         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
13516         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
13518 2013-09-10  Jeff Law  <law@redhat.com>
13520         PR tree-optimization/58380
13521         * tree-ssa-threadupdate.c (thread_block): Recognize another case
13522         of threading through a buried loop header.
13524         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
13525         return value for single successor case.
13527 2013-09-10  Jan Hubicka  <jh@suse.cz>
13529         * ipa-devirt.c (ipa_devirt): Enable with LTO.
13531 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
13533         PR target/58361
13534         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
13535         support conditional execution.
13536         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
13538 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
13540         * lra.c (lra): Clear lra_optional_reload_pseudos before every
13541         constraint pass.
13542         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
13543         Check destination too to check move insn.
13544         (undo_optional_reloads): Add check that the original peudo did not
13545         changed its allocation and the optional reload was inherited on last
13546         inheritance pass.  Break loop after deciding to keep optional reload.
13547         (lra_undo_inheritance): Add check that inherited pseudo still in
13548         memory.
13550 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
13552         * config/aarch64/aarch64.md (generic_sched): New.
13553         * config/aarch64/aarch64-generic.md (load): Make conditional
13554         on generic_sched attribute.
13555         (nonload): Likewise.
13557 2013-09-10  Jan Hubicka  <jh@suse.cz>
13559         * lto-cgraph.c: Include ipa-utils.h.
13560         (compute_ltrans_boundary): Also add possible targets into the boundary.
13562 2013-09-10  Jan Hubicka  <jh@suse.cz>
13564         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
13565         VAR_DECL of vtable rather than full expression.
13567 2013-09-10  Jan Hubicka  <jh@suse.cz>
13568             Paolo Carlini  <paolo.carlini@oracle.com>
13570         * cgraphunit.c (analyze_functions): Save input_location, set it
13571         to UNKNOWN_LOCATION and restore it at the end.
13573 2013-09-10  Martin Jambor  <mjambor@suse.cz>
13575         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
13576         represented by a thunk.
13578 2013-09-10  Jeff Law  <law@redhat.com>
13580         PR tree-optimization/58343
13581         * tree-ssa-threadupdate.c (thread_block): Identify and disable
13582         jump threading requests through loop headers buried in the middle
13583         of a jump threading path.
13585         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
13586         in return value/type.
13588 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
13590         PR rtl-optimization/58365
13591         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
13592         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
13593         it differs.
13595 2013-09-10  Richard Biener  <rguenther@suse.de>
13597         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
13598         * tree-data-ref.c (create_rdg_vertices): Collect all data
13599         references, signal failure to the caller, use data-ref API.
13600         (build_rdg): Compute data references only once.  Maintain lifetime
13601         of data references and data dependences from within RDG.
13602         (free_rdg): Free dependence relations.
13603         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
13604         inventing extra dependences.
13605         (distribute_loop): Update for RDG API changes.
13607 2013-09-10  Kai Tietz  <ktietz@redhat.com>
13609         * doc/invoke.texi (fms-extensions): Document changed
13610         behavior for ms-abi targets.
13611         * config/i386/i386.c (ix86_option_override_internal):
13612         Set default value of option -fms-extension for ms-abi targets.
13614 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13616         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
13618 2013-09-10  Alan Modra  <amodra@gmail.com>
13620         PR target/58330
13621         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
13623 2013-09-10  Alan Modra  <amodra@gmail.com>
13625         * config/rs6000/predicates.md (add_cint_operand): New.
13626         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
13627         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
13628         using add_cint_operand.
13629         (largetoc_high_plus_aix): Likewise.
13631 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
13633         PR tree-optimization/58364
13634         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
13635         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
13636         the current range can't be an unconditional true or false.
13638 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
13640         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
13642 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
13644         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
13646 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
13648         PR c++/43452
13649         * doc/invoke.texi (-Wdelete-incomplete): Document it.
13651 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
13653         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
13654         NO_REGS for immediate that can't be moved directly into FP_REGS.
13656 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13658         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
13659         comparison with negated operand.
13660         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
13661         RTL form.
13663 2013-09-09  Richard Biener  <rguenther@suse.de>
13665         PR middle-end/58326
13666         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
13667         of a subloop record all its block as affecting loop-closed SSA form.
13669 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13671         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
13672         of an rtx/bitpos pair.
13673         (store_fixed_bit_field): Update accordingly.
13675 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13677         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
13678         GEN_INT.
13679         * builtins.c (expand_errno_check): Likewise.
13680         * dwarf2cfi.c (init_return_column_size): Likewise.
13681         * except.c (sjlj_mark_call_sites): Likewise.
13682         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
13683         * lra-constraints.c (emit_inc): Likewise.
13684         * ree.c (combine_set_extension): Likewise.
13685         * regmove.c (fixup_match_2): Likewise.
13686         * reload1.c (inc_for_reload): Likewise.
13688 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13690         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
13691         (force_to_mode, simplify_shift_const_1, simplify_comparison):
13692         Use gen_int_mode with the mode of the associated simplify_* call.
13693         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
13694         * expmed.c (expand_shift_1): Likewise.
13695         * function.c (instantiate_virtual_regs_in_insn): Likewise.
13696         * loop-iv.c (iv_number_of_iterations): Likewise.
13697         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
13698         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13700 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13702         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
13703         of the associated expand_* call.
13704         (asan_emit_stack_protection): Likewise.
13705         * builtins.c (round_trampoline_addr): Likewise.
13706         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
13707         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
13708         (emit_store_flag): Likewise.
13709         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
13710         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
13711         Likewise.
13712         * function.c (instantiate_virtual_regs_in_insn): Likewise.
13713         * ifcvt.c (noce_try_store_flag_constants): Likewise.
13714         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
13715         * modulo-sched.c (generate_prolog_epilog): Likewise.
13716         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
13717         (expand_ctz, expand_ffs, expand_unop): Likewise.
13719 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13721         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
13722         of the associated gen_rtx_* call.
13723         * caller-save.c (init_caller_save): Likewise.
13724         * combine.c (find_split_point, make_extraction): Likewise.
13725         (make_compound_operation): Likewise.
13726         * dwarf2out.c (mem_loc_descriptor): Likewise.
13727         * explow.c (plus_constant, probe_stack_range): Likewise.
13728         * expmed.c (expand_mult_const): Likewise.
13729         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
13730         * reload1.c (init_reload): Likewise.
13731         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13732         * var-tracking.c (adjust_mems): Likewise.
13733         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
13734         rather than gen_rtx_fmt_ee.
13736 2013-09-09  Jan Hubicka  <jh@suse.cz>
13738         PR middle-end/58294
13739         * value-prof.c (gimple_ic): Copy also abnormal edges.
13741 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13743         * asan.c (asan_shadow_cst): Use gen_int_mode.
13745 2013-09-08  Jan Hubicka  <jh@suse.cz>
13747         * ipa-profile.c: Add toplevel comment.
13748         (ipa_propagate_frequency_1): Be more conservative when profile is read.
13749         (contains_hot_call_p): New function.
13750         (ipa_propagate_frequency): Set frequencies based on counts when
13751         profile is read.
13752         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
13753         profile; do not tamper with profile after inlining if it is read.
13755 2013-09-08  Jan Hubicka  <jh@suse.cz>
13757         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
13758         speculative edges.
13760 2013-09-08  Jan Hubicka  <jh@suse.cz>
13762         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
13763         summary generation.
13765 2013-09-08  Jeff Law  <law@redhat.com>
13767         PR bootstrap/58340
13768         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
13769         of 'found'.
13771 2013-09-08  Andi Kleen  <ak@linux.intel.com>
13773         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
13775 2013-09-08  Jan Hubicka  <jh@suse.cz>
13777         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
13779 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
13781         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
13782         for non-debug insns.
13783         * lra.c (new_insn_reg): Take the containing insn as a parameter.
13784         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
13785         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
13786         accordingly.
13788 2013-09-08  Jan Hubicka  <jh@suse.cz>
13790         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
13791         targets and devirtualize to BUILT_IN_UNREACHABLE.
13792         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
13793         * ipa.c (walk_polymorphic_call_targets): New function.
13794         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
13795         functions; use the new timevar.
13796         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
13797         was removed from the program.
13798         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
13799         not consider it in the walk when its vtable is dead.
13800         (possible_polymorphic_call_targets_1): Pass anonymous flag to
13801         record_binfo.
13802         (devirt_variable_node_removal_hook): New function.
13803         (possible_polymorphic_call_targets): Also register
13804         devirt_variable_node_removal_hook.
13805         (ipa_devirt): Do not do non-speculative devirtualization.
13806         (gate_ipa_devirt): One execute if devirtualizing speculatively.
13808 2013-09-08  Jan Hubicka  <jh@suse.cz>
13810         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
13811         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
13812         varpool_remove_variable_insertion_hook): Declare.
13813         * varpool.c (varpool_node_hook_list): New structure.
13814         (first_varpool_node_removal_hook,
13815         first_varpool_variable_insertion_hook): New variables.
13816         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
13817         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
13818         varpool_remove_variable_insertion_hook,
13819         varpool_call_variable_insertion_hooks): New functions.
13820         (varpool_remove_node): Use it.
13822 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
13824         PR c++/54941
13825         * diagnostic.c (diagnostic_build_prefix): When s.file is
13826         "<built-in>" don't output line and column numbers.
13828 2013-09-06  Jan Hubicka  <jh@suse.cz>
13830         * cgraphunit.c (expand_thunk): Get body before touching arguments.
13831         * lto-streamer-out.c: Stream thunks, too.
13832         * lto-streamer-in.c (input_function): Pop cfun here
13833         (lto_read_body): Instead of here.
13835 2013-09-06  Caroline Tice  <cmtice@google.com>
13837         * doc/install.texi: Add documentation for the --enable-vtable-verify
13838         and the --disable-libvtv configure options.
13840 2013-09-06  Jeff Law  <law@redhat.com>
13842         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13843         edge implied equivalences into successor phis.
13845 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
13847         * resource.c (mark_referenced_resources): Handle COND_EXEC.
13849 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
13851         * resource.c (mark_target_live_regs): Compute resources taking
13852         into account if a call is predicated or not.
13854 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
13856         * toplev.c (output_stack_usage): Be prepared for suffixes created by
13857         the compiler in the function names.
13859 2013-09-06  Jan Hubicka  <jh@suse.cz>
13861         PR middle-end/58094
13862         * ipa-inline.c (has_caller_p): New function.
13863         (want_inline_function_to_all_callers_p): Use it.
13864         (sum_callers, inline_to_all_callers): Break out from ...
13865         (ipa_inline): ... here.
13867 2013-09-06  Jan Hubicka  <jh@suse.cz>
13869         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
13870         only when AVX is enabled.
13872 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13874         * config/aarch64/aarch64.md
13875         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
13876         is fpsimd_<load/store>2.
13877         (load_pair<mode>): Likewise.
13878         (store_pair<mode>): Likewise.
13880 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13882         * config/arm/types.md (type): Add "mrs" type.
13883         * config/aarch64/aarch64.md
13884         (aarch64_load_tp_hard): Make type "mrs".
13885         * config/arm/arm.md
13886         (load_tp_hard): Make type "mrs".
13887         * config/arm/cortex-a15.md: Update with new attributes.
13888         * config/arm/cortex-a5.md: Update with new attributes.
13889         * config/arm/cortex-a53.md: Update with new attributes.
13890         * config/arm/cortex-a7.md: Update with new attributes.
13891         * config/arm/cortex-a8.md: Update with new attributes.
13892         * config/arm/cortex-a9.md: Update with new attributes.
13893         * config/arm/cortex-m4.md: Update with new attributes.
13894         * config/arm/cortex-r4.md: Update with new attributes.
13895         * config/arm/fa526.md: Update with new attributes.
13896         * config/arm/fa606te.md: Update with new attributes.
13897         * config/arm/fa626te.md: Update with new attributes.
13898         * config/arm/fa726te.md: Update with new attributes.
13900 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13902         * config/aarch64/aarch64.md
13903         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
13904         (*movtf_aarch64): Likewise.
13905         * config/arm/arm.md
13906         (thumb1_movdi_insn): Use "multiple" for type where more than one
13907         instruction is used for a move.
13908         (*arm32_movhf): Likewise.
13909         (*thumb_movdf_insn): Likewise.
13911 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13913         * config/arm/types.md (type): Rename fcpys to fmov.
13914         * config/arm/vfp.md
13915         (*arm_movsi_vfp): Rename type fcpys as fmov.
13916         (*thumb2_movsi_vfp): Likewise
13917         (*movhf_vfp_neon): Likewise
13918         (*movhf_vfp): Likewise
13919         (*movsf_vfp): Likewise
13920         (*thumb2_movsf_vfp): Likewise
13921         (*movsfcc_vfp): Likewise
13922         (*thumb2_movsfcc_vfp): Likewise
13923         * config/aarch64/aarch64-simd.md
13924         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
13925         * config/aarch64/aarch64.md
13926         (*movsi_aarch64): Replace type mov_reg with fmovs.
13927         (*movdi_aarch64): Likewise
13928         (*movsf_aarch64): Likewise
13929         (*movdf_aarch64): Likewise
13930         * config/arm/arm.c
13931         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
13932         * config/arm/iwmmxt.md
13933         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
13934         * config/arm/arm1020e.md: Update with new attributes.
13935         * config/arm/cortex-a15-neon.md: Update with new attributes.
13936         * config/arm/cortex-a5.md: Update with new attributes.
13937         * config/arm/cortex-a53.md: Update with new attributes.
13938         * config/arm/cortex-a7.md: Update with new attributes.
13939         * config/arm/cortex-a8-neon.md: Update with new attributes.
13940         * config/arm/cortex-a9.md: Update with new attributes.
13941         * config/arm/cortex-m4-fpu.md: Update with new attributes.
13942         * config/arm/cortex-r4f.md: Update with new attributes.
13943         * config/arm/marvell-pj4.md: Update with new attributes.
13944         * config/arm/vfp11.md: Update with new attributes.
13946 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13948         * config/aarch64/aarch64.md
13949         (*madd<mode>): Fix type attribute.
13950         (*maddsi_uxtw): Likewise.
13951         (*msub<mode>): Likewise.
13952         (*msubsi_uxtw): Likewise.
13953         (<su_optab>maddsidi4): Likewise.
13954         (<su_optab>msubsidi4): Likewise.
13956 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13958         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
13959         * config/arm/arm.md (core_cycles): Remove fdiv.
13960         * config/arm/vfp.md:
13961         (*sqrtsf2_vfp): Update for attribute changes.
13962         (*sqrtdf2_vfp): Likewise.
13963         * config/aarch64/aarch64.md:
13964         (sqrt<mode>2): Update for attribute changes.
13965         * config/arm/arm1020e.md: Update with new attributes.
13966         * config/arm/cortex-a15-neon.md: Update with new attributes.
13967         * config/arm/cortex-a5.md: Update with new attributes.
13968         * config/arm/cortex-a53.md: Update with new attributes.
13969         * config/arm/cortex-a7.md: Update with new attributes.
13970         * config/arm/cortex-a8-neon.md: Update with new attributes.
13971         * config/arm/cortex-a9.md: Update with new attributes.
13972         * config/arm/cortex-m4-fpu.md: Update with new attributes.
13973         * config/arm/cortex-r4f.md: Update with new attributes.
13974         * config/arm/marvell-pj4.md: Update with new attributes.
13975         * config/arm/vfp11.md: Update with new attributes.
13977 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13979         * config/arm/types.md
13980         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
13981         * config/aarch64/aarch64.md
13982         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
13983         new attributes.
13984         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
13985         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
13986         (float<GPI:mode><GPF:mode>2): Likewise.
13987         * config/arm/vfp.md
13988         (*truncsisf2_vfp): Update with new attributes.
13989         (*truncsidf2_vfp): Likewise.
13990         (fixuns_truncsfsi2): Likewise.
13991         (fixuns_truncdfsi2): Likewise.
13992         (*floatsisf2_vfp): Likewise.
13993         (*floatsidf2_vfp): Likewise.
13994         (floatunssisf2): Likewise.
13995         (floatunssidf2): Likewise.
13996         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
13997         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
13998         * config/arm/arm1020e.md: Update with new attributes.
13999         * config/arm/cortex-a15-neon.md: Update with new attributes.
14000         * config/arm/cortex-a5.md: Update with new attributes.
14001         * config/arm/cortex-a53.md: Update with new attributes.
14002         * config/arm/cortex-a7.md: Update with new attributes.
14003         * config/arm/cortex-a8-neon.md: Update with new attributes.
14004         * config/arm/cortex-a9.md: Update with new attributes.
14005         * config/arm/cortex-m4-fpu.md: Update with new attributes.
14006         * config/arm/cortex-r4f.md: Update with new attributes.
14007         * config/arm/marvell-pj4.md: Update with new attributes.
14008         * config/arm/vfp11.md: Update with new attributes.
14010 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14012         * config/aarch64/arm_neon.h
14013         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
14014         (vqtbx<1,2,3,4><q>_s8): Likewise.
14016 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14018         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
14019         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
14020         (add<mode>3): Add type attribute.
14021         (add<mode>3): Likewise.
14022         (usadd<mode>3): Likewise.
14023         (ssadd<mode>3): Likewise.
14024         (sub<mode>3): Likewise.
14025         (sub<mode>3): Likewise.
14026         (ussub<mode>3): Likewise.
14027         (sssub<mode>3): Likewise.
14028         (ssmulsa3): Likewise.
14029         (usmulusa3): Likewise.
14030         (arm_usatsihi): Likewise.
14031         * config/arm/vfp.md
14032         (*movdi_vfp): Add types for all instructions.
14033         (*movdi_vfp_cortexa8): Likewise.
14034         (*movhf_vfp_neon): Likewise.
14035         (*movhf_vfp): Likewise.
14036         (*movdf_vfp): Likewise.
14037         (*thumb2_movdf_vfp): Likewise.
14038         (*thumb2_movdfcc_vfp): Likewise.
14039         * config/arm/arm.md: Add type attribute to all insn patterns.
14040         (*thumb1_adddi3): Add type attribute.
14041         (*arm_adddi3): Likewise.
14042         (*adddi_sesidi_di): Likewise.
14043         (*adddi_zesidi_di): Likewise.
14044         (*thumb1_addsi3): Likewise.
14045         (addsi3_compare0): Likewise.
14046         (*addsi3_compare0_scratch): Likewise.
14047         (*compare_negsi_si): Likewise.
14048         (cmpsi2_addneg): Likewise.
14049         (*addsi3_carryin_<optab>): Likewise.
14050         (*addsi3_carryin_alt2_<optab>): Likewise.
14051         (*addsi3_carryin_clobercc_<optab>): Likewise.
14052         (*subsi3_carryin): Likewise.
14053         (*subsi3_carryin_const): Likewise.
14054         (*subsi3_carryin_compare): Likewise.
14055         (*subsi3_carryin_compare_const): Likewise.
14056         (*arm_subdi3): Likewise.
14057         (*thumb_subdi3): Likewise.
14058         (*subdi_di_zesidi): Likewise.
14059         (*subdi_di_sesidi): Likewise.
14060         (*subdi_zesidi_di): Likewise.
14061         (*subdi_sesidi_di): Likewise.
14062         (*subdi_zesidi_ze): Likewise.
14063         (thumb1_subsi3_insn): Likewise.
14064         (*arm_subsi3_insn): Likewise.
14065         (*anddi3_insn): Likewise.
14066         (*anddi_zesidi_di): Likewise.
14067         (*anddi_sesdi_di): Likewise.
14068         (*ne_zeroextracts): Likewise.
14069         (*ne_zeroextracts): Likewise.
14070         (*ite_ne_zeroextr): Likewise.
14071         (*ite_ne_zeroextr): Likewise.
14072         (*anddi_notdi_di): Likewise.
14073         (*anddi_notzesidi): Likewise.
14074         (*anddi_notsesidi): Likewise.
14075         (andsi_notsi_si): Likewise.
14076         (thumb1_bicsi3): Likewise.
14077         (*iordi3_insn): Likewise.
14078         (*iordi_zesidi_di): Likewise.
14079         (*iordi_sesidi_di): Likewise.
14080         (*thumb1_iorsi3_insn): Likewise.
14081         (*xordi3_insn): Likewise.
14082         (*xordi_zesidi_di): Likewise.
14083         (*xordi_sesidi_di): Likewise.
14084         (*arm_xorsi3): Likewise.
14085         (*andsi_iorsi3_no): Likewise.
14086         (*smax_0): Likewise.
14087         (*smax_m1): Likewise.
14088         (*arm_smax_insn): Likewise.
14089         (*smin_0): Likewise.
14090         (*arm_smin_insn): Likewise.
14091         (*arm_umaxsi3): Likewise.
14092         (*arm_uminsi3): Likewise.
14093         (*minmax_arithsi): Likewise.
14094         (*minmax_arithsi_): Likewise.
14095         (*satsi_<SAT:code>): Likewise.
14096         (arm_ashldi3_1bit): Likewise.
14097         (arm_ashrdi3_1bit): Likewise.
14098         (arm_lshrdi3_1bit): Likewise.
14099         (*arm_negdi2): Likewise.
14100         (*thumb1_negdi2): Likewise.
14101         (*arm_negsi2): Likewise.
14102         (*thumb1_negsi2): Likewise.
14103         (*negdi_extendsid): Likewise.
14104         (*negdi_zero_extend): Likewise.
14105         (*arm_abssi2): Likewise.
14106         (*thumb1_abssi2): Likewise.
14107         (*arm_neg_abssi2): Likewise.
14108         (*thumb1_neg_abss): Likewise.
14109         (one_cmpldi2): Likewise.
14110         (extend<mode>di2): Likewise.
14111         (*compareqi_eq0): Likewise.
14112         (*arm_extendhisi2addsi): Likewise.
14113         (*arm_movdi): Likewise.
14114         (*thumb1_movdi_insn): Likewise.
14115         (*arm_movt): Likewise.
14116         (*thumb1_movsi_insn): Likewise.
14117         (pic_add_dot_plus_four): Likewise.
14118         (pic_add_dot_plus_eight): Likewise.
14119         (tls_load_dot_plus_eight): Likewise.
14120         (*thumb1_movhi_insn): Likewise.
14121         (*thumb1_movsf_insn): Likewise.
14122         (*movdf_soft_insn): Likewise.
14123         (*thumb_movdf_insn): Likewise.
14124         (cbranchsi4_insn): Likewise.
14125         (cbranchsi4_scratch): Likewise.
14126         (*negated_cbranchsi4): Likewise.
14127         (*tbit_cbranch): Likewise.
14128         (*tlobits_cbranch): Likewise.
14129         (*tstsi3_cbranch): Likewise.
14130         (*cbranchne_decr1): Likewise.
14131         (*addsi3_cbranch): Likewise.
14132         (*addsi3_cbranch_scratch): Likewise.
14133         (*arm_cmpdi_insn): Likewise.
14134         (*arm_cmpdi_unsig): Likewise.
14135         (*arm_cmpdi_zero): Likewise.
14136         (*thumb_cmpdi_zero): Likewise.
14137         (*deleted_compare): Likewise.
14138         (*mov_scc): Likewise.
14139         (*mov_negscc): Likewise.
14140         (*mov_notscc): Likewise.
14141         (*cstoresi_eq0_thumb1_insn): Likewise.
14142         (cstoresi_nltu_thumb1): Likewise.
14143         (cstoresi_ltu_thu): Likewise.
14144         (thumb1_addsi3_addgeu): Likewise.
14145         (*arm_jump): Likewise.
14146         (*thumb_jump): Likewise.
14147         (*check_arch2): Likewise.
14148         (arm_casesi_internal): Likewise.
14149         (thumb1_casesi_dispatch): Likewise.
14150         (*arm_indirect_jump): Likewise.
14151         (*thumb1_indirect_jump): Likewise.
14152         (nop): Likewise.
14153         (*and_scc): Likewise.
14154         (*ior_scc): Likewise.
14155         (*compare_scc): Likewise.
14156         (*cond_move): Likewise.
14157         (*cond_arith): Likewise.
14158         (*cond_sub): Likewise.
14159         (*cmp_ite0): Likewise.
14160         (*cmp_ite1): Likewise.
14161         (*cmp_and): Likewise.
14162         (*cmp_ior): Likewise.
14163         (*ior_scc_scc): Likewise.
14164         (*ior_scc_scc_cmp): Likewise.
14165         (*and_scc_scc): Likewise.
14166         (*and_scc_scc_cmp): Likewise.
14167         (*and_scc_scc_nod): Likewise.
14168         (*negscc): Likewise.
14169         (movcond_addsi): Likewise.
14170         (movcond): Likewise.
14171         (*ifcompare_plus_move): Likewise.
14172         (*if_plus_move): Likewise.
14173         (*ifcompare_move_plus): Likewise.
14174         (*if_move_plus): Likewise.
14175         (*ifcompare_arith_arith): Likewise.
14176         (*if_arith_arith): Likewise.
14177         (*ifcompare_arith_move): Likewise.
14178         (*if_arith_move): Likewise.
14179         (*ifcompare_move_arith): Likewise.
14180         (*if_move_arith): Likewise.
14181         (*ifcompare_move_not): Likewise.
14182         (*if_move_not): Likewise.
14183         (*ifcompare_not_move): Likewise.
14184         (*if_not_move): Likewise.
14185         (*ifcompare_shift_move): Likewise.
14186         (*if_shift_move): Likewise.
14187         (*ifcompare_move_shift): Likewise.
14188         (*if_move_shift): Likewise.
14189         (*ifcompare_shift_shift): Likewise.
14190         (*ifcompare_not_arith): Likewise.
14191         (*ifcompare_arith_not): Likewise.
14192         (*if_arith_not): Likewise.
14193         (*ifcompare_neg_move): Likewise.
14194         (*if_neg_move): Likewise.
14195         (*ifcompare_move_neg): Likewise.
14196         (*if_move_neg): Likewise.
14197         (prologue_thumb1_interwork): Likewise.
14198         (*cond_move_not): Likewise.
14199         (*sign_extract_onebit): Likewise.
14200         (*not_signextract_onebit): Likewise.
14201         (stack_tie): Likewise.
14202         (align_4): Likewise.
14203         (align_8): Likewise.
14204         (consttable_end): Likewise.
14205         (consttable_1): Likewise.
14206         (consttable_2): Likewise.
14207         (consttable_4): Likewise.
14208         (consttable_8): Likewise.
14209         (consttable_16): Likewise.
14210         (*thumb1_tablejump): Likewise.
14211         (prefetch): Likewise.
14212         (force_register_use): Likewise.
14213         (thumb_eh_return): Likewise.
14214         (load_tp_hard): Likewise.
14215         (load_tp_soft): Likewise.
14216         (tlscall): Likewise.
14217         (*arm_movtas_ze): Likewise.
14218         (*arm_rev): Likewise.
14219         (*arm_revsh): Likewise.
14220         (*arm_rev16): Likewise.
14221         * config/arm/thumb2.md
14222         (*thumb2_smaxsi3): Likewise.
14223         (*thumb2_sminsi3): Likewise.
14224         (*thumb32_umaxsi3): Likewise.
14225         (*thumb2_uminsi3): Likewise.
14226         (*thumb2_negdi2): Likewise.
14227         (*thumb2_abssi2): Likewise.
14228         (*thumb2_neg_abss): Likewise.
14229         (*thumb2_movsi_insn): Likewise.
14230         (tls_load_dot_plus_four): Likewise.
14231         (*thumb2_movhi_insn): Likewise.
14232         (*thumb2_mov_scc): Likewise.
14233         (*thumb2_mov_negs): Likewise.
14234         (*thumb2_mov_negs): Likewise.
14235         (*thumb2_mov_nots): Likewise.
14236         (*thumb2_mov_nots): Likewise.
14237         (*thumb2_movsicc_): Likewise.
14238         (*thumb2_movsfcc_soft_insn): Likewise.
14239         (*thumb2_indirect_jump): Likewise.
14240         (*thumb2_and_scc): Likewise.
14241         (*thumb2_ior_scc): Likewise.
14242         (*thumb2_ior_scc_strict_it): Likewise.
14243         (*thumb2_cond_move): Likewise.
14244         (*thumb2_cond_arith): Likewise.
14245         (*thumb2_cond_ari): Likewise.
14246         (*thumb2_cond_sub): Likewise.
14247         (*thumb2_negscc): Likewise.
14248         (*thumb2_movcond): Likewise.
14249         (thumb2_casesi_internal): Likewise.
14250         (thumb2_casesi_internal_pic): Likewise.
14251         (*thumb2_alusi3_short): Likewise.
14252         (*thumb2_mov<mode>_shortim): Likewise.
14253         (*thumb2_addsi_short): Likewise.
14254         (*thumb2_subsi_short): Likewise.
14255         (thumb2_addsi3_compare0): Likewise.
14256         (*thumb2_cbz): Likewise.
14257         (*thumb2_cbnz): Likewise.
14258         (*thumb2_one_cmplsi2_short): Likewise.
14259         (*thumb2_negsi2_short): Likewise.
14260         (*orsi_notsi_si): Likewise.
14261         * config/arm/arm1020e.md: Update with new attributes.
14262         * config/arm/arm1026ejs.md: Update with new attributes.
14263         * config/arm/arm1136jfs.md: Update with new attributes.
14264         * config/arm/arm926ejs.md: Update with new attributes.
14265         * config/arm/cortex-a15.md: Update with new attributes.
14266         * config/arm/cortex-a5.md: Update with new attributes.
14267         * config/arm/cortex-a53.md: Update with new attributes.
14268         * config/arm/cortex-a7.md: Update with new attributes.
14269         * config/arm/cortex-a8.md: Update with new attributes.
14270         * config/arm/cortex-a9.md: Update with new attributes.
14271         * config/arm/cortex-m4.md: Update with new attributes.
14272         * config/arm/cortex-r4.md: Update with new attributes.
14273         * config/arm/fa526.md: Update with new attributes.
14274         * config/arm/fa606te.md: Update with new attributes.
14275         * config/arm/fa626te.md: Update with new attributes.
14276         * config/arm/fa726te.md: Update with new attributes.
14278 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14280         * config/aarch64/aarch64-simd.md
14281         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
14282         <vwx> iterator to ensure correct register choice.
14283         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
14284         (aarch64_sqdmull_n<mode>): Likewise.
14285         (aarch64_sqdmull2_n<mode>_internal): Likewise.
14286         * config/aarch64/arm_neon.h
14287         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
14288         (vml<as><q>_n_<su>16): Likewise.
14289         (vml<as>l_high_lane<q>_<su>16): Likewise.
14290         (vml<as>l_high_n_<su>16): Likewise.
14291         (vml<as>l_lane<q>_<su>16): Likewise.
14292         (vml<as>l_n_<su>16): Likewise.
14293         (vmul<q>_lane<q>_<su>16): Likewise.
14294         (vmul<q>_n_<su>16): Likewise.
14295         (vmull_lane<q>_<su>16): Likewise.
14296         (vmull_n_<su>16): Likewise.
14297         (vmull_high_lane<q>_<su>16): Likewise.
14298         (vmull_high_n_<su>16): Likewise.
14299         (vqrdmulh<q>_n_s16): Likewise.
14301 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
14303         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
14304         have the correct lane parameter.
14306 2013-09-06  Richard Biener <rguenther@suse.de>
14308         * cfganal.c (control_dependences::~control_dependences):
14309         Properly free all of the vector.
14311 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
14313         PR target/58269
14314         * config/i386/i386.c (ix86_conditional_register_usage):
14315         Proper initialize extended SSE registers.
14317 2013-09-06  Jan Hubicka  <jh@suse.cz>
14319         PR tree-optimization/58311
14320         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
14322 2013-09-06  Jan Hubicka  <jh@suse.cz>
14324         * Makefile.in (tree-sra.o): Update dependencies.
14325         * tree-sra.c: Include ipa-utils.h
14326         (scan_function): Use recursive_call_p.
14327         (has_caller_p): New function.
14328         (cgraph_for_node_and_aliases): Count also callers of aliases.
14330 2013-09-06  Jan Hubicka  <jh@suse.cz>
14332         PR middle-end/58094
14333         * cgraph.h (symtab_semantically_equivalent_p): Declare.
14334         * tree-tailcall.c: Include ipa-utils.h.
14335         (find_tail_calls): Use it.
14336         * ipa-pure-const.c (check_call): Likewise.
14337         * ipa-utils.c (recursive_call_p): New function.
14338         * ipa-utils.h (recursive_call_p): Dclare.
14339         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
14340         (symtab_semantically_equivalent_p): New function.
14341         * Makefile.in (tree-tailcall.o): Update dependencies.
14343 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
14345         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
14346         non-inlinable part.
14348 2013-09-06  Richard Biener  <rguenther@suse.de>
14350         * lto-streamer.h (lto_global_var_decls): Remove.
14351         * Makefile.in (OBJS): Remove lto-symtab.o.
14352         (lto-symtab.o): Remove.
14353         (GTFILES): Remove lto-symtab.c
14354         * lto-symtab.c: Move to lto/
14356 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14358         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
14359         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
14360         (UNSPEC_FPINT_RINT): New constant definitions.
14361         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
14362         definition with 2 attributes.
14363         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
14364         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
14365         definitions.
14367 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14369         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
14370         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
14371         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
14372         attribute to "z196_alone".
14373         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
14374         "zEC12_simple".
14376 2013-09-06  Richard Biener  <rguenther@suse.de>
14378         * basic-block.h (class control_dependences): New.
14379         * tree-ssa-dce.c (control_dependence_map): Remove.
14380         (cd): New global.
14381         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
14382         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
14383         find_pdom, find_control_dependence, find_all_control_dependences):
14384         Move to cfganal.c.
14385         (mark_control_dependent_edges_necessary,
14386         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
14387         tree_dce_done, perform_tree_ssa_dce): Adjust.
14388         * cfganal.c (set_control_dependence_map_bit,
14389         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
14390         find_all_control_dependences): Move from tree-ssa-dce.c and
14391         implement as methods of control_dependences class.
14392         (control_dependences::control_dependences): New.
14393         (control_dependences::~control_dependences): Likewise.
14394         (control_dependences::get_edges_dependent_on): Likewise.
14395         (control_dependences::get_edge): Likewise.
14397 2013-09-04  Jan Hubicka  <jh@suse.cz>
14399         * tree.c (types_same_for_odr): Drop overactive check.
14400         * ipa-devirt.c (hash_type_name): Likewise.
14402 2013-09-04  Jan Hubicka  <jh@suse.cz>
14404         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
14405         (analyze_functions): ... here.
14407 2013-09-04  Jan Hubicka  <jh@suse.cz>
14409         PR middle-end/58201
14410         * cgraphunit.c (analyze_functions): Clear AUX fields
14411         after processing; initialize assembler name has.
14413 2013-09-05  Jeff Law  <law@redhat.com>
14415         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
14416         from thread_around_empty_block.  Record threading path into PATH.
14417         Recurse if threading through the initial block is successful.
14418         (thread_across_edge): Corresponding changes to slightly simplify.
14420 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
14422         * config/aarch64/aarch64.md
14423         (type): Remove frecpe, frecps, frecpx.
14424         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
14425         fix to be a TARGET_SIMD instruction.
14426         (aarch64_frecps): Remove.
14427         * config/aarch64/aarch64-simd.md
14428         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
14429         (aarch64_frecps<mode>): Handle all float/vector of float modes.
14431 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
14432             Sofiane Naci  <sofiane.naci@arm.com>
14434         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
14435         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
14436         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
14437         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
14438         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
14439         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
14440         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
14441         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
14442         into "clz, "rbit".  Rename "shift" to "shift_imm".
14443         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
14444         changes.  Update for attribute changes all occurrences of arlo_* and
14445         shift* types.
14446         * config/arm/arm-fixed.md: Update for attribute changes
14447         all occurrences of arlo_* types.
14448         * config/arm/thumb2.md: Update for attribute changes all occurrences
14449         of arlo_* types.
14450         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
14451         (cortexa7_older_only): Likewise.
14452         (cortexa7_younger):  Likewise.
14453         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
14454         (1020alu_shift_op): Likewise.
14455         (1020alu_shift_reg_op): Likewise.
14456         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
14457         (alu_shift_op): Likewise.
14458         (alu_shift_reg_op): Likewise.
14459         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
14460         (11_alu_shift_op): Likewise.
14461         (11_alu_shift_reg_op): Likewise.
14462         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
14463         (9_alu_shift_reg_op): Likewise.
14464         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
14465         attribute changes.
14466         (cortex_a15_alu_shift): Likewise.
14467         (cortex_a15_alu_shift_reg): Likewise.
14468         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
14469         attribute changes.
14470         (cortex_a5_alu_shift): Likewise.
14471         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
14472         attribute changes.
14473         (cortex_a53_alu_shift): Likewise.
14474         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
14475         attribute changes.
14476         (cortex_a7_alu_reg): Likewise.
14477         (cortex_a7_alu_shift): Likewise.
14478         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
14479         attribute changes.
14480         (cortex_a8_alu_shift): Likewise.
14481         (cortex_a8_alu_shift_reg): Likewise.
14482         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
14483         (cortex_a9_dp_shift): Likewise.
14484         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
14485         attribute changes.
14486         * config/arm/cortex-r4.md
14487         (cortex_r4_alu): Update for attribute changes.
14488         (cortex_r4_mov): Likewise.
14489         (cortex_r4_alu_shift_reg): Likewise.
14490         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
14491         (526_alu_shift_op): Likewise.
14492         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
14493         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
14494         (626te_alu_shift_op): Likewise.
14495         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
14496         (726te_alu_shift_op): Likewise.
14497         (726te_alu_shift_reg_op): Likewise.
14498         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
14499         (mp626_alu_shift_op): Likewise.
14500         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
14501         (pj4_alu_conds): Likewise.
14502         (pj4_shift): Likewise.
14503         (pj4_shift_conds): Likewise.
14504         (pj4_alu_shift): Likewise.
14505         (pj4_alu_shift_conds): Likewise.
14506         * config/aarch64/aarch64.md: Update for attribute change
14507         all occurrences of arlo_* and shift* types.
14509 2013-09-05  Mike Stump  <mikestump@comcast.net>
14511         * tree.h: Move documentation for tree_function_decl to tree-core.h
14512         with the declaration.
14514 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
14516         PR target/58139
14517         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
14518         looking for widest mode.
14520 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
14522         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
14524 2013-09-05  Richard Biener  <rguenther@suse.de>
14526         PR tree-optimization/58137
14527         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
14528         Do not create vectors of pointers.
14529         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
14530         types for the components of the vector initializer.
14531         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
14532         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
14534 2013-09-05  Martin Jambor  <mjambor@suse.cz>
14536         * ipa-prop.c (remove_described_reference): Accept missing references,
14537         return false if that hppens, otherwise return true.
14538         (cgraph_node_for_jfunc): New function.
14539         (try_decrement_rdesc_refcount): Likewise.
14540         (try_make_edge_direct_simple_call): Use them.
14541         (ipa_edge_removal_hook): Remove references from rdescs.
14542         (ipa_edge_duplication_hook): Clone rdescs and their references
14543         when the new edge has the same caller as the old one.
14544         * cgraph.c (cgraph_resolve_speculation): Remove speculative
14545         reference before removing any edges.
14547 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
14549         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
14550         initial store.
14551         * thumb2.md (thumb2_storewb_parisi): New pattern.
14553 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
14555         * config/aarch64/aarch64-option-extensions.def: Add
14556         AARCH64_OPT_EXTENSION of 'crc'.
14557         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
14558         (AARCH64_ISA_CRC): Ditto.
14559         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
14560         description of the CRC extension.
14562 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14564         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
14565         * config/rs6000/linux.h: Ditto.
14566         * alpha/linux.h: Ditto.
14567         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
14568         no_c99_libc_has_function.
14569         * config/c6x/uclinux-elf.h: Ditto.
14570         * config/lm32/uclinux-elf.h: Ditto.
14571         * config/m68k/uclinux.h: Ditto.
14572         * config/moxie/uclinux.h: Ditto.
14573         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
14574         (crisv32-*-linux*, cris-*-linux*): Ditto.
14575         * config/bfin/bfin.c: Include "tm_p.h".
14577 2013-09-05  Richard Biener  <rguenther@suse.de>
14579         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
14580         check for a definition without a basic-block.
14582 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
14583             Sofiane Naci <sofiane.naci@arm.com>
14585         * config/aarch64/aarch64.md
14586         (*movti_aarch64): Rename r_2_f and f_2_r.
14587         (*movsf_aarch64): Likewise.
14588         (*movdf_aarch64): Likewise.
14589         (*movtf_aarch64): Likewise.
14590         (aarch64_movdi_<mode>low): Likewise.
14591         (aarch64_movdi_<mode>high): Likewise.
14592         (aarch64_mov<mode>high_di): Likewise.
14593         (aarch64_mov<mode>low_di): Likewise.
14594         (aarch64_movtilow_tilow): Likewise.
14595         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
14596         values to config/arm/types.md
14597         (attribute "conds"): Update for attribute change.
14598         (anddi3_insn): Likewise.
14599         (iordi3_insn): Likewise.
14600         (xordi3_insn): Likewise.
14601         (one_cmpldi2): Likewise.
14602         * config/arm/types.md (type): Add Neon types.
14603         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
14604         use "type" attribute.
14605         (movmisalign<mode>_neon_store): Likewise.
14606         (movmisalign<mode>_neon_load): Likewise.
14607         (vec_set<mode>_internal): Likewise.
14608         (vec_setv2di_internal): Likewise.
14609         (vec_extract<mode>): Likewise.
14610         (vec_extractv2di): Likewise.
14611         (add<mode>3_neon): Likewise.
14612         (adddi3_neon): Likewise.
14613         (sub<mode>3_neon): Likewise.
14614         (subdi3_neon): Likewise.
14615         (mul<mode>3_neon): Likewise.
14616         (mul<mode>3add<mode>_neon): Likewise.
14617         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
14618         (fma<VCVTF:mode>4)): Likewise.
14619         (fma<VCVTF:mode>4_intrinsic): Likewise.
14620         (fmsub<VCVTF:mode>4)): Likewise.
14621         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
14622         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
14623         (ior<mode>3): Likewise.
14624         (and<mode>3): Likewise.
14625         (anddi3_neon): Likewise.
14626         (orn<mode>3_neon): Likewise.
14627         (orndi3_neon): Likewise.
14628         (bic<mode>3_neon): Likewise.
14629         (bicdi3_neon): Likewise.
14630         (xor<mode>3): Likewise.
14631         (one_cmpl<mode>2): Likewise.
14632         (abs<mode>2): Likewise.
14633         (neg<mode>2): Likewise.
14634         (umin<mode>3_neon): Likewise.
14635         (umax<mode>3_neon): Likewise.
14636         (smin<mode>3_neon): Likewise.
14637         (smax<mode>3_neon): Likewise.
14638         (vashl<mode>3): Likewise.
14639         (vashr<mode>3_imm): Likewise.
14640         (vlshr<mode>3_imm): Likewise.
14641         (ashl<mode>3_signed): Likewise.
14642         (ashl<mode>3_unsigned): Likewise.
14643         (neon_load_count): Likewise.
14644         (ashldi3_neon_noclobber): Likewise.
14645         (signed_shift_di3_neon): Likewise.
14646         (unsigned_shift_di3_neon): Likewise.
14647         (ashrdi3_neon_imm_noclobber): Likewise.
14648         (lshrdi3_neon_imm_noclobber): Likewise.
14649         (widen_ssum<mode>3): Likewise.
14650         (widen_usum<mode>3): Likewise.
14651         (quad_halves_<code>v4si): Likewise.
14652         (quad_halves_<code>v4sf): Likewise.
14653         (quad_halves_<code>v8hi): Likewise.
14654         (quad_halves_<code>v16qi): Likewise.
14655         (reduc_splus_v2di): Likewise.
14656         (neon_vpadd_internal<mode>): Likewise.
14657         (neon_vpsmin<mode>): Likewise.
14658         (neon_vpsmax<mode>): Likewise.
14659         (neon_vpumin<mode>): Likewise.
14660         (neon_vpumax<mode>): Likewise.
14661         (ss_add<mode>_neon): Likewise.
14662         (us_add<mode>_neon): Likewise.
14663         (ss_sub<mode>_neon): Likewise.
14664         (us_sub<mode>_neon): Likewise.
14665         (neon_vadd<mode>_unspec): Likewise.
14666         (neon_vaddl<mode>): Likewise.
14667         (neon_vaddw<mode>): Likewise.
14668         (neon_vhadd<mode>): Likewise.
14669         (neon_vqadd<mode>): Likewise.
14670         (neon_vaddhn<mode>): Likewise.
14671         (neon_vmul<mode>): Likewise.
14672         (neon_vmla<mode>): Likewise.
14673         (neon_vmlal<mode>): Likewise.
14674         (neon_vmls<mode>): Likewise.
14675         (neon_vmlsl<mode>): Likewise.
14676         (neon_vqdmulh<mode>): Likewise.
14677         (neon_vqdmlal<mode>): Likewise.
14678         (neon_vqdmlsl<mode>): Likewise.
14679         (neon_vmull<mode>): Likewise.
14680         (neon_vqdmull<mode>): Likewise.
14681         (neon_vsub<mode>_unspec): Likewise.
14682         (neon_vsubl<mode>): Likewise.
14683         (neon_vsubw<mode>): Likewise.
14684         (neon_vqsub<mode>): Likewise.
14685         (neon_vhsub<mode>): Likewise.
14686         (neon_vsubhn<mode>): Likewise.
14687         (neon_vceq<mode>): Likewise.
14688         (neon_vcge<mode>): Likewise.
14689         (neon_vcgeu<mode>): Likewise.
14690         (neon_vcgt<mode>): Likewise.
14691         (neon_vcgtu<mode>): Likewise.
14692         (neon_vcle<mode>): Likewise.
14693         (neon_vclt<mode>): Likewise.
14694         (neon_vcage<mode>): Likewise.
14695         (neon_vcagt<mode>): Likewise.
14696         (neon_vtst<mode>): Likewise.
14697         (neon_vabd<mode>): Likewise.
14698         (neon_vabdl<mode>): Likewise.
14699         (neon_vaba<mode>): Likewise.
14700         (neon_vabal<mode>): Likewise.
14701         (neon_vmax<mode>): Likewise.
14702         (neon_vmin<mode>): Likewise.
14703         (neon_vpaddl<mode>): Likewise.
14704         (neon_vpadal<mode>): Likewise.
14705         (neon_vpmax<mode>): Likewise.
14706         (neon_vpmin<mode>): Likewise.
14707         (neon_vrecps<mode>): Likewise.
14708         (neon_vrsqrts<mode>): Likewise.
14709         (neon_vqabs<mode>): Likewise.
14710         (neon_vqneg<mode>): Likewise.
14711         (neon_vcls<mode>): Likewise.
14712         (clz<mode>2): Likewise.
14713         (popcount<mode>2): Likewise.
14714         (neon_vrecpe): Likewise.
14715         (neon_vrsqrte): Likewise.
14716         (neon_vget_lane<mode>_sext_internal): Likewise.
14717         (neon_vget_lane<mode>_zext_internal): Likewise.
14718         (neon_vdup_n<mode>): Likewise.
14719         (neon_vdup_nv2di): Likewise.
14720         (neon_vdpu_lane<mode>_internal): Likewise.
14721         (neon_vswp<mode>): Likewise.
14722         (float<mode><V_cvtto>2): Likewise.
14723         (floatuns<mode><V_cvtto>2): Likewise.
14724         (fix_trunc<mode><V_cvtto>)2): Likewise
14725         (fixuns_trunc<mode><V_cvtto)2): Likewise.
14726         (neon_vcvt<mode>): Likewise.
14727         (neon_vcvtv4sfv4hf): Likewise.
14728         (neon_vcvtv4hfv4sf): Likewise.
14729         (neon_vcvt_n<mode>): Likewise.
14730         (neon_vmovn<mode>): Likewise.
14731         (neon_vqmovn<mode>): Likewise.
14732         (neon_vqmovun<mode>): Likewise.
14733         (neon_vmovl<mode>): Likewise.
14734         (neon_vmul_lane<mode>): Likewise.
14735         (neon_vmull_lane<mode>): Likewise.
14736         (neon_vqdmull_lane<mode>): Likewise.
14737         (neon_vqdmulh_lane<mode>): Likewise.
14738         (neon_vmla_lane<mode>): Likewise.
14739         (neon_vmlal_lane<mode>): Likewise.
14740         (neon_vqdmlal_lane<mode>): Likewise.
14741         (neon_vmls_lane<mode>): Likewise.
14742         (neon_vmlsl_lane<mode>): Likewise.
14743         (neon_vqdmlsl_lane<mode>): Likewise.
14744         (neon_vext<mode>): Likewise.
14745         (neon_vrev64<mode>): Likewise.
14746         (neon_vrev32<mode>): Likewise.
14747         (neon_vrev16<mode>): Likewise.
14748         (neon_vbsl<mode>_internal): Likewise.
14749         (neon_vshl<mode>): Likewise.
14750         (neon_vqshl<mode>): Likewise.
14751         (neon_vshr_n<mode>): Likewise.
14752         (neon_vshrn_n<mode>): Likewise.
14753         (neon_vqshrn_n<mode>): Likewise.
14754         (neon_vqshrun_n<mode>): Likewise.
14755         (neon_vshl_n<mode>): Likewise.
14756         (neon_vqshl_n<mode>): Likewise.
14757         (neon_vqshlu_n<mode>): Likewise.
14758         (neon_vshll_n<mode>): Likewise.
14759         (neon_vsra_n<mode>): Likewise.
14760         (neon_vsri_n<mode>): Likewise.
14761         (neon_vsli_n<mode>): Likewise.
14762         (neon_vtbl1v8qi): Likewise.
14763         (neon_vtbl2v8qi): Likewise.
14764         (neon_vtbl3v8qi): Likewise.
14765         (neon_vtbl4v8qi): Likewise.
14766         (neon_vtbx1v8qi): Likewise.
14767         (neon_vtbx2v8qi): Likewise.
14768         (neon_vtbx3v8qi): Likewise.
14769         (neon_vtbx4v8qi): Likewise.
14770         (neon_vtrn<mode>_internal): Likewise.
14771         (neon_vzip<mode>_internal): Likewise.
14772         (neon_vuzp<mode>_internal): Likewise.
14773         (neon_vld1<mode>): Likewise.
14774         (neon_vld1_lane<mode>): Likewise.
14775         (neon_vld1_dup<mode>): Likewise.
14776         (neon_vld1_dupv2di): Likewise.
14777         (neon_vst1<mode>): Likewise.
14778         (neon_vst1_lane<mode>): Likewise.
14779         (neon_vld2<mode>): Likewise.
14780         (neon_vld2_lane<mode>): Likewise.
14781         (neon_vld2_dup<mode>): Likewise.
14782         (neon_vst2<mode>): Likewise.
14783         (neon_vst2_lane<mode>): Likewise.
14784         (neon_vld3<mode>): Likewise.
14785         (neon_vld3qa<mode>): Likewise.
14786         (neon_vld3qb<mode>): Likewise.
14787         (neon_vld3_lane<mode>): Likewise.
14788         (neon_vld3_dup<mode>): Likewise.
14789         (neon_vst3<mode>): Likewise.
14790         (neon_vst3qa<mode>): Likewise.
14791         (neon_vst3qb<mode>): Likewise.
14792         (neon_vst3_lane<mode>): Likewise.
14793         (neon_vld4<mode>): Likewise.
14794         (neon_vld4qa<mode>): Likewise.
14795         (neon_vld4qb<mode>): Likewise.
14796         (neon_vld4_lane<mode>): Likewise.
14797         (neon_vld4_dup<mode>): Likewise.
14798         (neon_vst4<mode>): Likewise.
14799         (neon_vst4qa<mode>): Likewise.
14800         (neon_vst4qb<mode>): Likewise.
14801         (neon_vst4_lane<mode>): Likewise.
14802         (neon_vec_unpack<US>_lo_<mode>): Likewise.
14803         (neon_vec_unpack<US>_hi_<mode>): Likewise.
14804         (neon_vec_<US>mult_lo_<mode>): Likewise.
14805         (neon_vec_<US>mult_hi_<mode>): Likewise.
14806         (neon_vec_<US>shiftl_<mode>): Likewise.
14807         (neon_unpack<US>_<mode>): Likewise.
14808         (neon_vec_<US>mult_<mode>): Likewise.
14809         (vec_pack_trunc_<mode>): Likewise.
14810         (neon_vec_pack_trunk_<mode>): Likewise.
14811         (neon_vabd<mode>_2): Likewise.
14812         (neon_vabd<mode>_3): Likewise.
14813         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
14814         (thumb2_movsi_vfp): Likewise.
14815         (movdi_vfp): Likewise.
14816         (movdi_vfp_cortexa8): Likewise.
14817         (movhf_vfp_neon): Likewise.
14818         (movhf_vfp): Likewiwse.
14819         (movsf_vfp): Likewiwse.
14820         (thumb2_movsf_vfp): Likewiwse.
14821         (movdf_vfp): Likewise.
14822         (thumb2_movdf_vfp): Likewise.
14823         (movsfcc_vfp): Likewise.
14824         (thumb2_movsfcc_vfp): Likewise.
14825         (movdfcc_vfp): Likewise.
14826         (thumb2_movdfcc_vfp): Likewise.
14827         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
14828         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
14829         (v10_v2c): Likewise.
14830         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
14831         attribute change.
14832         (cortex_a15_neon_int_2): Likewise.
14833         (cortex_a15_neon_int_3): Likewise.
14834         (cortex_a15_neon_int_4): Likewise.
14835         (cortex_a15_neon_int_5): Likewise.
14836         (cortex_a15_neon_vqneg_vqabs): Likewise.
14837         (cortex_a15_neon_vmov): Likewise.
14838         (cortex_a15_neon_vaba): Likewise.
14839         (cortex_a15_neon_vaba_qqq): Likewise.
14840         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14841         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14842         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
14843         scalar_64_32_long_scalar): Likewise.
14844         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14845         (cortex_a15_neon_mla_qqq_8_16): Likewise.
14846         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14847         lotype_qdd_64_32_long): Likewise.
14848         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14849         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14850         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
14851         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14852         (cortex_a15_neon_shift_1): Likewise.
14853         (cortex_a15_neon_shift_2): Likewise.
14854         (cortex_a15_neon_shift_3): Likewise.
14855         (cortex_a15_neon_vshl_ddd): Likewise.
14856         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14857         (cortex_a15_neon_vsra_vrsra): Likewise.
14858         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
14859         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
14860         (cortex_a15_neon_fp_vmul_ddd): Likewise.
14861         (cortex_a15_neon_fp_vmul_qqd): Likewise.
14862         (cortex_a15_neon_fp_vmla_ddd): Likewise.
14863         (cortex_a15_neon_fp_vmla_qqq): Likewise.
14864         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
14865         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
14866         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14867         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14868         (cortex_a15_neon_bp_simple): Likewise.
14869         (cortex_a15_neon_bp_2cycle): Likewise.
14870         (cortex_a15_neon_bp_3cycle): Likewise.
14871         (cortex_a15_neon_vld1_1_2_regs): Likewise.
14872         (cortex_a15_neon_vld1_3_4_regs): Likewise.
14873         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14874         (cortex_a15_neon_vld2_4_regs): Likewise.
14875         (cortex_a15_neon_vld3_vld4): Likewise.
14876         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14877         (cortex_a15_neon_vst1_3_4_regs): Likewise.
14878         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
14879         (cortex_a15_neon_vst3_vst4): Likewise.
14880         (cortex_a15_neon_vld1_vld2_lane): Likewise.
14881         (cortex_a15_neon_vld3_vld4_lane" 10
14882         (cortex_a15_neon_vst1_vst2_lane): Likewise.
14883         (cortex_a15_neon_vst3_vst4_lane): Likewise.
14884         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
14885         (cortex_a15_neon_ldm_2): Likewise.0
14886         (cortex_a15_neon_stm_2): Likewise.
14887         (cortex_a15_neon_mcr): Likewise.
14888         (cortex_a15_neon_mcr_2_mcrr): Likewise.
14889         (cortex_a15_neon_mrc): Likewise.
14890         (cortex_a15_neon_mrrc): Likewise.
14891         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
14892         change.
14893         (cortex_a15_alu_shift): Likewise.
14894         (cortex_a15_alu_shift_reg): Likewise.
14895         (cortex_a15_mult32): Likewise.
14896         (cortex_a15_mult64): Likewise.
14897         (cortex_a15_block): Likewise.
14898         (cortex_a15_branch): Likewise.
14899         (cortex_a15_load1): Likewise.
14900         (cortex_a15_load3): Likewise.
14901         (cortex_a15_store1): Likewise.
14902         (cortex_a15_store3): Likewise.
14903         (cortex_a15_call): Likewise.
14904         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
14905         (cortex_a5_f2r): Likewise.
14906         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
14907         change.
14908         (cortex_a53_f2r): Likewise.
14909         * config/arm/cortex-a7.md
14910         (cortex_a7_branch): Update for attribute change.
14911         (cortex_a7_call): Likewise.
14912         (cortex_a7_alu_imm): Likewise.
14913         (cortex_a7_alu_reg): Likewise.
14914         (cortex_a7_alu_shift): Likewise.
14915         (cortex_a7_mul): Likewise.
14916         (cortex_a7_load1): Likewise.
14917         (cortex_a7_store1): Likewise.
14918         (cortex_a7_load2): Likewise.
14919         (cortex_a7_store2): Likewise.
14920         (cortex_a7_load3): Likewise.
14921         (cortex_a7_store3): Likewise.
14922         (cortex_a7_load4): Likewise.
14923         (cortex_a7_store4): Likewise.
14924         (cortex_a7_fpalu): Likewise.
14925         (cortex_a7_fconst): Likewise.
14926         (cortex_a7_fpmuls): Likewise.
14927         (cortex_a7_neon_mul): Likewise.
14928         (cortex_a7_fpmacs): Likewise.
14929         (cortex_a7_neon_mla: Likewise.
14930         (cortex_a7_fpmuld: Likewise.
14931         (cortex_a7_fpmacd: Likewise.
14932         (cortex_a7_fpfmad: Likewise.
14933         (cortex_a7_fdivs: Likewise.
14934         (cortex_a7_fdivd: Likewise.
14935         (cortex_a7_r2f: Likewise.
14936         (cortex_a7_f2r: Likewise.
14937         (cortex_a7_f_flags: Likewise.
14938         (cortex_a7_f_loads: Likewise.
14939         (cortex_a7_f_loadd: Likewise.
14940         (cortex_a7_f_stores: Likewise.
14941         (cortex_a7_f_stored: Likewise.
14942         (cortex_a7_neon): Likewise.
14943         * config/arm/cortex-a8-neon.md
14944         (cortex_a8_neon_mrc): Update for attribute change.
14945         (cortex_a8_neon_mrrc): Likewise.
14946         (cortex_a8_neon_int_1): Likewise.
14947         (cortex_a8_neon_int_2): Likewise.
14948         (cortex_a8_neon_int_3): Likewise.
14949         (cortex_a8_neon_int_4): Likewise.
14950         (cortex_a8_neon_int_5): Likewise.
14951         (cortex_a8_neon_vqneg_vqabs): Likewise.
14952         (cortex_a8_neon_vmov): Likewise.
14953         (cortex_a8_neon_vaba): Likewise.
14954         (cortex_a8_neon_vaba_qqq): Likewise.
14955         (cortex_a8_neon_vsma): Likewise.
14956         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14957         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14958         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
14959         long_scalar): Likewise.
14960         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14961         (cortex_a8_neon_mla_qqq_8_16): Likewise.
14962         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14963         long_scalar_qdd_64_32_long): Likewise.
14964         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14965         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14966         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
14967         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14968         (cortex_a8_neon_shift_1): Likewise.
14969         (cortex_a8_neon_shift_2): Likewise.
14970         (cortex_a8_neon_shift_3): Likewise.
14971         (cortex_a8_neon_vshl_ddd): Likewise.
14972         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14973         (cortex_a8_neon_vsra_vrsra): Likewise.
14974         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
14975         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
14976         (cortex_a8_neon_fp_vsum): Likewise.
14977         (cortex_a8_neon_fp_vmul_ddd): Likewise.
14978         (cortex_a8_neon_fp_vmul_qqd): Likewise.
14979         (cortex_a8_neon_fp_vmla_ddd): Likewise.
14980         (cortex_a8_neon_fp_vmla_qqq): Likewise.
14981         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
14982         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
14983         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14984         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14985         (cortex_a8_neon_bp_simple): Likewise.
14986         (cortex_a8_neon_bp_2cycle): Likewise.
14987         (cortex_a8_neon_bp_3cycle): Likewise.
14988         (cortex_a8_neon_ldr): Likewise.
14989         (cortex_a8_neon_str): Likewise.
14990         (cortex_a8_neon_vld1_1_2_regs): Likewise.
14991         (cortex_a8_neon_vld1_3_4_regs): Likewise.
14992         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14993         (cortex_a8_neon_vld2_4_regs): Likewise.
14994         (cortex_a8_neon_vld3_vld4): Likewise.
14995         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14996         (cortex_a8_neon_vst1_3_4_regs): Likewise.
14997         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
14998         (cortex_a8_neon_vst3_vst4): Likewise.
14999         (cortex_a8_neon_vld1_vld2_lane): Likewise.
15000         (cortex_a8_neon_vld3_vld4_lane): Likewise.
15001         (cortex_a8_neon_vst1_vst2_lane): Likewise.
15002         (cortex_a8_neon_vst3_vst4_lane): Likewise.
15003         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
15004         (cortex_a8_neon_mcr): Likewise.
15005         (cortex_a8_neon_mcr_2_mcrr): Likewise.
15006         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
15007         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
15008         change.
15009         (ca9_neon_mrrc): Likewise.
15010         (cortex_a9_neon_int_1): Likewise.
15011         (cortex_a9_neon_int_2): Likewise.
15012         (cortex_a9_neon_int_3): Likewise.
15013         (cortex_a9_neon_int_4): Likewise.
15014         (cortex_a9_neon_int_5): Likewise.
15015         (cortex_a9_neon_vqneg_vqabs): Likewise.
15016         (cortex_a9_neon_vmov): Likewise.
15017         (cortex_a9_neon_vaba): Likewise.
15018         (cortex_a9_neon_vaba_qqq): Likewise.
15019         (cortex_a9_neon_vsma): Likewise.
15020         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15021         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
15022         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
15023         long_scalar): Likewise.
15024         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
15025         (cortex_a9_neon_mla_qqq_8_16): Likewise.
15026         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
15027         long_scalar_qdd_64_32_long): Likewise.
15028         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
15029         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
15030         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
15031         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
15032         (cortex_a9_neon_shift_1): Likewise.
15033         (cortex_a9_neon_shift_2): Likewise.
15034         (cortex_a9_neon_shift_3): Likewise.
15035         (cortex_a9_neon_vshl_ddd): Likewise.
15036         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
15037         (cortex_a9_neon_vsra_vrsra): Likewise.
15038         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
15039         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
15040         (cortex_a9_neon_fp_vsum): Likewise.
15041         (cortex_a9_neon_fp_vmul_ddd): Likewise.
15042         (cortex_a9_neon_fp_vmul_qqd): Likewise.
15043         (cortex_a9_neon_fp_vmla_ddd): Likewise.
15044         (cortex_a9_neon_fp_vmla_qqq): Likewise.
15045         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
15046         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
15047         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15048         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15049         (cortex_a9_neon_bp_simple): Likewise.
15050         (cortex_a9_neon_bp_2cycle): Likewise.
15051         (cortex_a9_neon_bp_3cycle): Likewise.
15052         (cortex_a9_neon_ldr): Likewise.
15053         (cortex_a9_neon_str): Likewise.
15054         (cortex_a9_neon_vld1_1_2_regs): Likewise.
15055         (cortex_a9_neon_vld1_3_4_regs): Likewise.
15056         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15057         (cortex_a9_neon_vld2_4_regs): Likewise.
15058         (cortex_a9_neon_vld3_vld4): Likewise.
15059         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15060         (cortex_a9_neon_vst1_3_4_regs): Likewise.
15061         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
15062         (cortex_a9_neon_vst3_vst4): Likewise.
15063         (cortex_a9_neon_vld1_vld2_lane): Likewise.
15064         (cortex_a9_neon_vld3_vld4_lane): Likewise.
15065         (cortex_a9_neon_vst1_vst2_lane): Likewise.
15066         (cortex_a9_neon_vst3_vst4_lane): Likewise.
15067         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
15068         (cortex_a9_neon_mcr): Likewise.
15069         (cortex_a9_neon_mcr_2_mcrr): Likewise.
15070         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
15071         (cortex_a9_fps): Likewise.
15072         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
15073         change.
15074         (cortex_m4_fmuls): Likewise.
15075         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
15076         change.
15077         (cortex_r4_mrc): Likewise.
15078         * config/arm/iterators.md: Update comment referring to neon_type.
15079         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
15080         (iwmmxt_movsi_insn): Likewise.
15081         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
15082         attribute change.
15083         (pj4_core_to_vfp): Likewise.
15084         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
15085         attribute change.
15086         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
15087         (vfp_fstore): Likewise.
15088         * doc/md.texi: Change references to neon_type to refer to type.
15090 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
15092         * tree.h (DECL_BUILT_IN): Fix typo in comment.
15094 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
15096         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
15097         lglobl if not weak.
15099 2013-09-04  Easwaran Raman  <eraman@google.com>
15101         PR middle-end/57370
15102         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
15103         (build_and_add_sum): Use it.
15104         (appears_later_in_bb): Simplify code.
15106 2013-09-04  Teresa Johnson  <tejohnson@google.com>
15108         * dumpfile.c (dump_finish): Don't close stderr/stdout.
15110 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
15112         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
15114 2013-09-04  Jan Hubicka  <jh@suse.cz>
15116         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
15117         * ipa-devirt.c: Include diganostic.h
15118         (odr_type_d): Add types and types_set.
15119         (hash_type_name): Work for types with vtables during LTO.
15120         (odr_hasher::remove): Fix comment; destroy types_set.
15121         (add_type_duplicate): New function,
15122         (get_odr_type): Use it.
15123         (dump_type_inheritance_graph): Dump type duplicates.
15124         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
15125         graph.
15126         * tree.c (types_same_for_odr): Give exact answers on types with
15127         virtual tables.
15129 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
15131         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
15132         explaining their differences.
15134 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
15136         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
15138 2013-09-03  Jeff Law  <law@redhat.com>
15140         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
15141         when not threading through a joiner block.  Pass joiner/no joiner
15142         state to register_jump_thread.
15143         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
15144         state from argument rather than implying on path length.
15145         Dump the entire jump thread path into debugging dump.
15146         * tree-flow.h (register_jump_thread): Update prototype.
15148 2013-08-29  Xinliang David Li  <davidxl@google.com>
15150         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15151         Remove a trivial gcc_assert.
15153 2013-08-29  Xinliang David Li  <davidxl@google.com>
15155         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
15156         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
15157         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15158         Delay base decl alignment adjustment.
15159         * tree-vectorizer.c (vect_destroy_datarefs): New function.
15160         * tree-vectorizer.h: New data structure.
15161         (set_dr_misalignment): New function.
15162         (dr_misalignment): Ditto.
15163         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
15164         (vectorizable_load): Ditto.
15165         (ensure_base_align): New function.
15166         (vectorize_loops): Add dbg_cnt support.
15167         (execute_vect_slp): Ditto.
15168         * dbgcnt.def: New debug counter.
15169         * Makefile: New dependency.
15171 2013-09-03  Meador Inge  <meadori@codesourcery.com>
15173         Revert:
15175         2013-08-30  Meador Inge  <meadori@codesourcery.com>
15177         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15179 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
15181         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
15182         function descriptor.
15184 2013-09-03  Richard Biener  <rguenther@suse.de>
15186         * tree-affine.c (add_elt_to_tree): Fix association issue,
15187         avoid useless converts and make sure to always return a
15188         properly typed result.
15190 2013-09-03  Richard Biener  <rguenther@suse.de>
15192         PR middle-end/57656
15193         * fold-const.c (negate_expr_p): Fix division case.
15194         (negate_expr): Likewise.
15196 2013-09-03  Richard Biener  <rguenther@suse.de>
15198         PR lto/58285
15199         * tree-streamer-out.c: Include tm.h.
15200         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
15202 2013-09-03  Jan Hubicka  <jh@suse.cz>
15204         * tree-profile.c (tree_profiling): Cleanup CFG when done.
15206 2013-09-03  Alan Modra  <amodra@gmail.com>
15208         * config.gcc (powerpc*-*-linux*): Add support for little-endian
15209         multilibs to big-endian target and vice versa.
15210         * config/rs6000/t-linux64: Use := assignment on all vars.
15211         (MULTILIB_EXTRA_OPTS): Remove fPIC.
15212         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
15213         * config/rs6000/t-linux64le: New file.
15214         * config/rs6000/t-linux64bele: New file.
15215         * config/rs6000/t-linux64lebe: New file.
15217 2013-09-02  Jan Hubicka  <jh@suse.cz>
15219         * ipa-inline-transform.c (inline_transform): Do not
15220         optimize_inline_calls when not optimizing.
15222 2013-09-02  Jan Hubicka  <jh@suse.cz>
15224         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
15225         duplicated nodes for assembler names.
15226         * symtab.c (symtab_unregister_node): Do not attempt to unlink
15227         hard registers from assembler name hash.
15229 2013-09-02  Jan Hubicka  <jh@suse.cz>
15231         * ipa-split.c (execute_split_functions): Split externally visible
15232         functions called once.
15234 2013-09-02  Martin Jambor  <mjambor@suse.cz>
15236         PR ipa/58106
15237         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
15238         linked list.  When finding the correct duplicate, also consider also
15239         the caller in additon to its inlined_to node.
15241 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
15243         * config/aarch64/aarch64-simd-builtins.def
15244         (dup_lane_scalar): Remove.
15245         * config/aarch64/aarch64-simd.md
15246         (aarch64_simd_dup): Add 'w->w' alternative.
15247         (aarch64_dup_lane<mode>): Allow for VALL.
15248         (aarch64_dup_lane_scalar<mode>): Remove.
15249         (aarch64_dup_lane_<vswap_width_name><mode>): New.
15250         (aarch64_get_lane_signed<mode>): Add w->w altenative.
15251         (aarch64_get_lane_unsigned<mode>): Likewise.
15252         (aarch64_get_lane<mode>): Likewise.
15253         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
15254         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
15255         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
15256         (VCON): Change container of V2SF.
15257         (vswap_width_name): Likewise.
15258         * config/aarch64/arm_neon.h
15259         (__aarch64_vdup_lane_any): New.
15260         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15261         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
15262         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15264 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
15266         PR middle-end/56382
15267         * expr.c (emit_move_complex): Do not move complex FP values as parts if
15268         the source or the destination is a single hard register.
15270 2013-09-02  Richard Biener  <rguenther@suse.de>
15272         PR middle-end/57511
15273         * tree-scalar-evolution.c (instantiate_scev_name): Allow
15274         non-linear SCEVs.
15276 2013-09-02  Richard Biener  <rguenther@suse.de>
15278         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
15279         arithmetic to sizetype.
15281 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
15283         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
15284         Find auto-increment use both before and after candidate.
15286 2013-09-02  Marek Polacek  <polacek@redhat.com>
15288         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
15290 2013-09-01  Jan Hubicka  <jh@suse.cz>
15292         * Makefile.in: Add ipa-profile.o
15293         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
15294         * cgraph.c (struct cgraph_propagate_frequency_data,
15295         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
15296         ipa-profile.c; replace cgraph_ by ipa_ prefix.
15297         * cgraph.h (cgraph_propagate_frequency): Remove.
15298         * ipa-inline-analysis.c: Include ipa-utils.h;
15299         drop duplicated cfgloop.h.
15300         (inline_update_callee_summaries): Update.
15301         * ipa-profile.c: New file.
15302         * ipa-utils.h (ipa_propagate_frequency): Declare.
15303         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
15304         data-streamer.h, value-prof.h.
15305         (symtab_remove_unreachable_nodes): Update profile.
15306         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
15307         account_time_size, cmp_counts, dump_histogram,
15308         ipa_profile_generate_summary, ipa_profile_write_summary,
15309         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
15310         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
15311         Move to ipa-profile.c.
15313 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
15315         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
15317 2013-09-01  Jan Hubicka  <jh@suse.cz>
15319         * common.opt (fdevirtualize-speculatively): New function.
15320         * invoke.texi (fdevirtualize-speculatively): Document.
15321         * ipa-devirt.c: Include ipa-inline.h
15322         (likely_target_p): New function.
15323         (ipa_devirt): New function.
15324         (gate_ipa_devirt): New function.
15325         (pass_data_ipa_devirt): New static var.
15326         (pass_ipa_devirt): Likewise.
15327         (make_pass_ipa_devirt): New function.
15328         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
15329         (common_handle_option): Disable devirtualization when
15330         value range profiling is available.
15331         * passes.def (pass_ipa_devirt): Add.
15332         * timever.def (TV_IPA_DEVIRT): New timevar.
15333         * tree-pass.h (make_pass_ipa_devirt):
15335 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
15337         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
15338         include sanitize(undefined).
15340 2013-08-31  Diego Novillo  <dnovillo@google.com>
15342         * Makefile.in (TREE_CORE_H): Define.
15343         (TREE_H): Use.
15344         (GTFILES): Add tree-core.h.
15345         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
15346         size the array.
15347         * tree-core.h: New file.
15348         Move all data structures, enum, typedefs, global
15349         declarations and constants from ...
15350         * tree.h: ... here.
15352 2013-08-31  Jan Hubicka  <jh@suse.cz>
15354         * bulitins.c (expand_builtin): Do not early exit for gcov
15355         instrumented functions.
15357 2013-08-31  Marek Polacek  <polacek@redhat.com>
15359         * ubsan.c: Include tm_p.h.
15361 2013-08-31  Jan Hubicka  <jh@suse.cz>
15363         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
15364         warning.
15366         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
15367         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
15368         * tree-cfg.c (verify_gimple_label): ... here.
15369         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
15370         (ipa_merge_profiles): New function.
15371         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
15372         (lto_input_function_body): Likewise.
15373         * ipa-utils.h (ipa_merge_profiles): Declare.
15374         * lto-streamer.h (lto_input_function_body): Update prototype.
15375         (emit_label_in_global_context_p): Remove.
15376         * lto-symtab.c: Include ipa-utils.h
15377         (lto_cgraph_replace_node): Use ipa_merge_profiles.
15379 2013-08-31  Jan Hubicka  <jh@suse.cz>
15381         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
15383 2013-08-31  Jan Hubicka  <jh@suse.cz>
15385         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
15387 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
15389         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
15390         "cmp" RTX before signed_comparison_operator check to account
15391         for "code" changes.
15393 2013-08-30  Jan Hubicka  <jh@suse.cz>
15395         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
15396         (detect_type_change_1): Rename to ...
15397         (detect_type_change): ... this one; early return on non-polymorphic
15398         types.
15399         (detect_type_change_ssa): Add comp_type parameter; update
15400         use of detect_type_change.
15401         (compute_complex_assign_jump_func): Add param_type parameter;
15402         update use of detect_type_change_ssa.
15403         (compute_complex_ancestor_jump_func): Likewise.
15404         (ipa_get_callee_param_type): New function.
15405         (ipa_compute_jump_functions_for_edge): Compute parameter type;
15406         update calls to the jump function computation functions.
15408 2013-08-30  Teresa Johnson  <tejohnson@google.com>
15409             Steven Bosscher  <steven@gcc.gnu.org>
15411         * cfgrtl.c (fixup_new_cold_bb): New routine.
15412         (commit_edge_insertions): Invoke fixup_partitions.
15413         (find_partition_fixes): New routine.
15414         (fixup_partitions): Ditto.
15415         (verify_hot_cold_block_grouping): Update comments.
15416         (rtl_verify_edges): Invoke find_partition_fixes.
15417         (rtl_verify_bb_pointers): Update comments.
15418         (rtl_verify_bb_layout): Ditto.
15419         * basic-block.h (probably_never_executed_edge_p): Declare.
15420         (fixup_partitions): Ditto.
15421         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
15422         * bb-reorder.c (sanitize_hot_paths): New function.
15423         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
15424         sanitize_hot_paths.
15425         * predict.c (probably_never_executed_edge_p): New routine.
15426         * cfg.c (check_bb_profile): Add partition insanity warnings.
15428 2013-08-30  Meador Inge  <meadori@codesourcery.com>
15430         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15432 2013-08-30  Marek Polacek  <polacek@redhat.com>
15434         * Makefile.in (ubsan.o): Add.
15435         (c-family/c-ubsan.o): Add.
15436         (builtins.o): Add ubsan.h dependency.
15437         * ubsan.h: New file.
15438         * ubsan.c: New file.
15439         * common.opt: Add -fsanitize=undefined option.
15440         (flag_sanitize): Add variable.
15441         (fsanitize=): Add option.  Add Driver.
15442         (fsanitize=thread): Remove option.
15443         (fsanitize=address): Likewise.
15444         (static-libubsan): New option.
15445         * doc/invoke.texi: Document the new flag and -static-libubsan.
15446         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
15447         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
15448         * builtin-attrs.def (ATTR_COLD): Define.
15449         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15450         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
15451         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
15452         * flag-types.h (sanitize_code): New enum.
15453         * opts.c (common_handle_option): Parse command line arguments
15454         of -fsanitize=.  Add -fsanitize=unreachable option.
15455         * varasm.c (get_variable_section): Adjust.
15456         (assemble_noswitch_variable): Likewise.
15457         (assemble_variable): Likewise.
15458         (output_constant_def_contents): Likewise.
15459         (categorize_decl_for_section): Likewise.
15460         (place_block_symbol): Likewise.
15461         (output_object_block): Likewise.
15462         * builtins.def: Likewise.
15463         * toplev.c (compile_file): Likewise.
15464         (process_options): Likewise.
15465         * cppbuiltin.c: Likewise.
15466         * tsan.c (tsan_pass): Likewise.
15467         (tsan_gate): Likewise.
15468         (tsan_gate_O0): Likewise.
15469         * cfgexpand.c (partition_stack_vars): Likewise.
15470         (expand_stack_vars): Likewise.
15471         (defer_stack_allocation): Likewise.
15472         (expand_used_vars): Likewise.
15473         * cfgcleanup.c (old_insns_match_p): Likewise.
15474         * asan.c (asan_finish_file): Likewise.
15475         (asan_instrument): Likewise.
15476         (gate_asan): Likewise.
15477         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
15478         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15479         (asan_global_struct): Use pointer_sized_int_node instead
15480         calling build_nonstandard_integer_type.
15481         (initialize_sanitizer_builtins): Likewise.
15482         (asan_finish_file): Likewise.
15483         * gcc.c: Document %{%:function(args):X}.
15484         (static_spec_functions): Add sanitize.
15485         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
15486         store funcval != NULL there.
15487         (do_spec_1): Adjust handle_spec_function caller.
15488         (handle_braces): Allow %:function(args) as condition.
15489         (sanitize_spec_function): New function.
15490         (ADD_STATIC_LIBUBSAN_LIBS): Define.
15491         (LIBUBSAN_SPEC): Likewise.
15492         (LIBUBSAN_EARLY_SPEC): Likewise.
15493         (SANITIZER_SPEC): Handle libubsan.
15494         (SANITIZER_EARLY_SPEC): Likewise.
15495         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
15496         instead of fsanitize=address.
15497         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
15498         instead of fsanitize=address*.
15499         * builtins.c: Include ubsan.h.
15500         (fold_builtin_0): Instrument __builtin_unreachable.
15501         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
15502         instead of flag_asan.
15503         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
15504         (pointer_sized_int_node): Define.
15505         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
15507 2013-08-30  Mike Stump  <mikestump@comcast.net>
15509         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
15510         with RE patterns.
15512 2013-08-29  Jan Hubicka  <jh@suse.cz>
15514         * cgraph.c (cgraph_function_body_availability): Handle weakref
15515         correctly.
15516         * passes.def: Remove pass_fixup_cfg.
15517         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
15518         track when we need to remove functions.
15519         (gate_ipa_inline): Execute inlining always; add comment why.
15520         (pass_data_ipa_inline): Remove TODO_remove_functions.
15521         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
15522         do not produce summaries.
15523         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
15524         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
15525         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
15526         constant pool and vtable.
15528 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
15530         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
15531         New arm_neon.h's internal macros to specify 64-bit constants.
15532         Avoid using stdint.h's macros.
15534 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
15536         * recog.c (verify_changes): Verify that changes[i].old is non-zero
15537         before applying REG_P.
15539 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
15541         PR tree-optimization/58277
15542         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
15543         after seeing too many stmts with vdef in between dombb and current
15544         bb, invalidate everything.
15546 2013-08-30  Richard Biener  <rguenther@suse.de>
15548         * fold-const.c (fold_single_bit_test): Fix overflow test.
15550 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
15552         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
15553         and which can live in a register, always retrieve the value on entry.
15554         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
15555         passed by invisible reference specially.
15556         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
15557         (vt_add_function_parameter): Correctly deal with a parameter passed by
15558         invisible reference.
15560 2013-08-30  Jan Hubicka  <jh@suse.cz>
15562         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
15564 2013-08-30  Richard Biener  <rguenther@suse.de>
15566         PR tree-optimization/58228
15567         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
15568         allow invariant loads in nested loop vectorization.
15570 2013-08-30  Richard Biener  <rguenther@suse.de>
15572         PR tree-optimization/58223
15573         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
15574         (has_anti_or_output_dependence): ... this and adjust to also
15575         look for output dependences.
15576         (mark_nodes_having_upstream_mem_writes): Adjust.
15577         (rdg_flag_uses): Likewise.
15579 2013-08-30  Richard Biener  <rguenther@suse.de>
15581         PR tree-optimization/58010
15582         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15583         assert that we have a loop-closed PHI.
15585 2013-08-29  Jan Hubicka  <jh@suse.cz>
15587         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
15588         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
15589         * lto-section-in.c (lto_free_function_in_decl_state): New function.
15590         (lto_free_function_in_decl_state_for_node): New function.
15592 2013-08-29  Xinliang David Li  <davidxl@google.com>
15594         * loop-unroll.c (report_unroll_peel): Minor message change.
15595         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
15596         Emit alignment peeling message with default -fopt-info.
15597         (vect_loop_versioning): Emit loop version info message.
15598         * tree-vectorizer.c (vectorize_loops): Minor message change.
15599         (execute_vect_slp): Ditto.
15601 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
15603         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
15604         of the clone from the DECL_NAME of the original function.
15606 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
15608         * passes.c (register_pass): Add overload.
15609         * tree-pass.h (register_pass): Forward declare it.  Add comment.
15611 2013-08-29  Jan Hubicka  <jh@suse.cz>
15613         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
15614         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
15615         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
15616         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
15617         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
15618         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
15619         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
15620         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
15622 2013-08-29  Teresa Johnson  <tejohnson@google.com>
15624         * dumpfile.c (dump_loc): Output column number.
15625         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
15626         * doc/invoke.texi: Document optall -fopt-info flag.
15627         * profile.c (read_profile_edge_counts): Use new dump framework.
15628         (compute_branch_probabilities): Ditto.
15629         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
15630         when pass not in any opt group.
15631         * pass_manager.h (pass_manager::get_pass_profile): New method.
15632         * value-prof.c (check_counter): Use new dump framework.
15633         (check_ic_target): Ditto.
15634         * coverage.c (get_coverage_counts): Ditto.
15635         (coverage_init): Setup new dump framework.
15637 2013-08-29  Richard Biener  <rguenther@suse.de>
15639         PR tree-optimization/58246
15640         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
15641         handle the dominance check inside a basic-block.
15643 2013-08-29  Richard Biener  <rguenther@suse.de>
15645         PR middle-end/57287
15646         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
15647         of default defs that appear in abnormal PHI nodes.
15649 2013-08-29  Richard Biener  <rguenther@suse.de>
15651         PR tree-optimization/57685
15652         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
15653         single-use operands to avoid exponential complexity.
15655 2013-08-28  Dehao Chen  <dehao@google.com>
15657         * ipa-inline.c (edge_badness): Fix integer underflow.
15659 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
15661         * gtm-builtins.def (_ITM_free): Declare leaf.
15663 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
15665         PR target/58067
15666         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
15667         (*tls_local_dynamic_base_64_largepic): Likewise.
15668         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
15669         Remove predicate from call operand.
15670         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
15671         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
15673 2013-08-28  Jeff Law  <law@redhat.com>
15675         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
15676         checks for the number of predecessors and successors allowed.
15677         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
15678         which require copying a joiner block if there is a request which
15679         is a subpath that requires no joiner block copying.
15681 2013-08-28  Jan Hubicka  <jh@suse.cz>
15683         * lto-streamer-out.c (DFS_write_tree_body): Drop
15684         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
15685         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
15686         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
15687         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
15688         Do not read DECL_ERROR_ISSUED.
15689         (unpack_ts_decl_with_vis_value_fields): Do not read
15690         DECL_DEFER_OUTPUT.
15691         (lto_input_ts_binfo_tree_pointers): Do not read
15692         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
15693         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
15694         write DECL_ERROR_ISSUED..
15695         (pack_ts_decl_with_vis_value_fields): Do not write
15696         DECL_DEFER_OUTPUT.
15697         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
15698         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
15699         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
15700         * tree.h (tree_decl_common): Update comment.
15701         (DECL_ERROR_ISSUED): Remove.
15703 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
15705         PR middle-end/58257
15706         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
15708 2013-08-28  Jan Hubicka  <jh@suse.cz>
15710         * builtins.def (free): Declare leaf.
15712 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
15714         * gdbhooks.py: New.
15715         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
15716         * configure: Regenerate.
15718 2013-08-27  Martin Jambor  <mjambor@suse.cz>
15720         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
15721         (ipa_ancestor_jf_data): Likewise.
15722         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
15723         (ipa_get_jf_pass_through_type_preserved): New function.
15724         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
15725         (ipa_get_jf_ancestor_type_preserved): New function.
15726         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
15727         (ipa_get_jf_ancestor_result): Likewise.
15728         (propagate_vals_accross_pass_through): Use
15729         ipa_get_jf_pass_through_result to do all the value mappings.
15730         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
15731         type_preserved flag.
15732         (ipa_set_jf_cst_copy): New function.
15733         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
15734         (ipa_set_jf_arith_pass_through): Likewise.
15735         (ipa_set_ancestor_jf): Likewise.
15736         (compute_complex_assign_jump_func): Set type_preserved instead of
15737         punting.
15738         (ipa_compute_jump_functions_for_edge): Likewise.
15739         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
15740         (update_jump_functions_after_inlining): Update type_preserved.
15741         Explicitely create jump functions when combining one with pass_through.
15742         (ipa_write_jump_function): Stream the type_preserved flags.
15743         (ipa_read_jump_function): Likewise.
15745 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
15746             Aldy Hernandez  <aldyh@redhat.com>
15748         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
15749         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
15750         * function.h (struct function): Add has_force_vect_loops and
15751         has_simduid_loops.
15752         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
15753         * gimple.c (gimple_build_omp_critical): Add KIND argument and
15754         handle it.
15755         * gimple.def: Update CLAUSES comments.
15756         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
15757         (gimple_build_omp_for): Add argument to prototype.
15758         (gimple_omp_for_kind): New.
15759         (gimple_omp_for_set_kind): New.
15760         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
15761         GOVD_DATA_SHARE_CLASS.
15762         (enum omp_region_type): Add ORT_SIMD.
15763         (gimple_add_tmp_var): Handle ORT_SIMD.
15764         (gimplify_var_or_parm_decl): Same.
15765         (is_gimple_stmt): Same.
15766         (omp_firstprivatize_variable): Same.
15767         (omp_add_variable): Only use splay_tree_insert if lookup failed.
15768         (omp_notice_variable): Handle ORT_SIMD.
15769         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
15770         (omp_check_private): Handle ORT_SIMD.
15771         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
15772         OMP_CLAUSE_SAFELEN.
15773         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
15774         Handle OMP_CLAUSE_LASTPRIVATE.
15775         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
15776         OMP_CLAUSE_SAFELEN.
15777         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
15778         (gimplify_expr): Handle OMP_SIMD.
15779         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
15780         (expand_GOMP_SIMD_VF): New.
15781         (expand_GOMP_SIMD_LAST_LANE): New.
15782         * internal-fn.def (GOMP_SIMD_LANE): New.
15783         (GOMP_SIMD_VF): New.
15784         (GOMP_SIMD_LAST_LANE): New.
15785         * omp-low.c: Include target.h.
15786         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
15787         OMP_CLAUSE_SAFELEN.
15788         (check_omp_nesting_restrictions): Same.
15789         (omp_max_vf): New.
15790         (lower_rec_simd_input_clauses): New.
15791         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
15792         OMP_CLAUSE_LINEAR.
15793         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
15794         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
15795         (expand_omp_build_assign): New.
15796         (expand_omp_for_init_counts): New.
15797         (expand_omp_for_init_vars): New.
15798         (extract_omp_for_update_vars): New.
15799         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
15800         and rewrite accordingly.
15801         (expand_omp_simd): New.
15802         (expand_omp_for): Use expand_omp_simd.
15803         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
15804         (lower_omp_for): Do not lower the body.
15805         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
15806         in their own loops.
15807         * tree-flow.h (find_omp_clause): Remove prototype.
15808         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
15809         forcing vectorization of the loop, or if flag_tree_vectorize.
15810         (gate_tree_if_conversion): Similarly.
15811         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
15812         gimple_build_omp_for.
15813         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
15814         * tree-parloops (create_parallel_loop): Pass kind argument to
15815         gimple_build_omp_for.
15816         * tree-pretty-print.c (dump_omp_clause): Add cases for
15817         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
15818         OMP_CLAUSE__SIMDUID_.
15819         (dump_generic_node): Handle OMP_SIMD.
15820         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
15821         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
15822         unroll OMP_SIMD loops here.
15823         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
15824         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
15825         loop->safelen.
15826         (vect_analyze_data_refs): Handle simd loops.
15827         * tree-vect-loop.c (vectorizable_live_operation): Handle
15828         IFN_GOMP_SIMD*.
15829         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
15830         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
15831         (vectorizable_load): Same.
15832         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
15833         (struct simduid_to_vf): New.
15834         (simduid_to_vf::hash): New.
15835         (simduid_to-vf::equal): New.
15836         (struct simd_array_to_simduid): New.
15837         (simd_array_to_simduid::hash): New.
15838         (simd_array_to_simduid::equal): New.
15839         (adjust_simduid_builtins): New.
15840         (struct note_simd_array_uses_struct): New.
15841         (note_simd_array_uses_cb): New.
15842         (note_simd_array_uses): New.
15843         (vectorize_loops): Handle simd hints and adjust simd builtins
15844         accordingly.
15845         * tree-vectorizer.h (struct _stmt_vec_info): Add
15846         simd_lane_access_p field.
15847         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
15848         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
15849         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
15850         (omp_clause_code_name): Same.
15851         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
15852         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
15853         * tree.def (OMP_SIMD): New entry.
15854         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
15855         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
15856         (OMP_CLAUSE_DECL): Adjust range for new clauses.
15857         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
15858         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
15859         (OMP_CLAUSE_LINEAR_STEP): New.
15860         (OMP_CLAUSE_SAFELEN_EXPR): New.
15861         (OMP_CLAUSE__SIMDUID__DECL): New.
15862         (find_omp_clause): New prototype.
15864 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
15866         * config/i386/driver-i386.c (host_detect_local_cpu): Update
15867         Haswell processor detection.
15869 2013-08-27  Christian Widmer  <shadow@umbrox.de>
15871         PR target/57927
15872         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
15873         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
15874         AVX2 capable processors.
15876 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
15878         * config/aarch64/arm_neon.h: Replace all inline asm implementations
15879         of vget_low_* with implementations in terms of other intrinsics.
15881 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
15883         PR middle-end/57219
15884         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
15885         values to -1, 0 and 1.
15887 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
15889         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
15890         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
15891         (<optab><mode>3_insn): Remove.
15892         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
15893         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15894         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15895         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
15896         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
15897         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
15898         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
15899         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
15900         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
15901         (ror<mode>3_insn): Likewise.
15902         * config/aarch64/predicates.md (aarch64_simd_register): New.
15904 2013-08-27  Richard Biener  <rguenther@suse.de>
15906         PR tree-optimization/57521
15907         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
15908         one edge is non-critical.
15909         (find_phi_replacement_condition): Make sure to use a non-critical
15910         edge.  Cleanup and remove old bug workarounds.
15911         (bb_postdominates_preds): Remove.
15912         (if_convertible_loop_p_1): Do not compute post-dominators.
15913         (combine_blocks): Do not free post-dominators.
15914         (main_tree_if_conversion): Likewise.
15915         (pass_data_if_conversion): Add TODO_verify_ssa.
15917 2013-08-27  DJ Delorie  <dj@redhat.com>
15919         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
15921 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
15923         * function.c (assign_parm_find_data_types): Set passed_mode and
15924         nominal_mode to the TYPE_MODE of nominal_type for the built
15925         pointer type in case of the struct-pass-by-reference.
15927 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
15929         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
15930         (UINT16_TYPE): Change default to "unsigned int".
15932         * config/avr/avr.opt (mfract-convert-truncate): New option.
15933         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
15934         is set, round negative fractional integers according to n1169
15935         when converting to integer types.
15937 2013-08-26  Jan Hubicka  <jh@suse.cz>
15939         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
15940         methods can not be called indirectly when their address is not taken.
15942 2013-08-26  Jan Hubicka  <jh@suse.cz>
15944         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
15945         ctor_for_folding.
15947 2013-08-26  Jan Hubicka  <jh@suse.cz>
15949         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
15950         can be unshared.
15952 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
15954         * reload.c (find_valid_class): Allow classes that do not include
15955         FIRST_PSEUDO_REGISTER - 1.
15957 2013-08-26  Jan Hubicka  <jh@suse.cz>
15959         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
15960         fix edge count/frequency when speculation failed; fix type check
15961         for the direct call.
15963 2013-08-26  Jan Hubicka  <jh@suse.cz>
15965         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
15967 2013-08-26  Jan Hubicka  <jh@suse.cz>
15969         * ipa-inline-transform.c (inline_transform): Be ready for basic block
15970         to be changed by edge redirection.
15972 2013-08-26  Jan Hubicka  <jh@suse.cz>
15974         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
15975         formating; add sanity check.
15976         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
15977         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
15978         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
15979         (resolve_noninline_speculation): Update callee keys, too.
15981 2013-08-26  Jan Hubicka  <jh@suse.cz>
15983         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
15984         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
15986 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
15988         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
15989         into proper place.
15991 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
15993         * config/i386/i386.c (ix86_debug_options): Remove prototype.
15994         (x86_64_elf_select_section): Ditto.
15995         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
15996         arguments.
15997         (ix86_pass_by_reference): Ditto.
15998         (output_set_got): Ditto.
15999         (ix86_unary_operator_ok): Ditto.
16000         (ix86_expand_builtin): Ditto.
16002 2013-08-23  Jan Hubicka  <jh@suse.cz>
16004         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
16006 2013-08-23  Jan Hubicka  <jh@suse.cz>
16008         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
16009         (tree_decl_with_vis): Add FINAL field.
16011 2013-08-23  Jeff Law  <law@redhat.com>
16013         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
16014         the debugging dump when the expression is fully redundant.
16016 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16018         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
16019         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
16020         * pretty-print.c (pp_formatted_text_data): Likewise.
16021         (pp_write_text_to_stream): Likewise.
16022         (pp_write_text_as_dot_label_to_stream): Likewise.
16023         (pp_append_r): Likewise.
16024         (pp_format): Likewise.
16025         (pp_flush): Likewise.
16026         (pp_clear_output_area): Likewise.
16027         (pp_append_text): Likewise.
16028         (pp_formatted_text): Likewise.
16029         (pp_remaining_character_count_for_line): Likewise.
16030         (pp_newline): Likewise.
16031         (pp_character): Likewise.
16032         (output_buffer::~output_buffer): Define.
16033         (pretty_printer::~pretty_printer): Destruct output buffer.
16034         * pretty-print.h (output_buffer::~output_buffer): Declare.
16035         (pretty_printer::~pretty_printer): Declare virtual.
16037 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
16039         PR other/57324
16040         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
16041         HOST_WIDE_INT_M1U): New macros.
16042         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
16043         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
16044         unsigned -1 for lshift.
16045         * cse.c (cse_insn): Likewise.
16046         * double-int.c (rshift_double, lshift_double): Likewise.
16047         * builtins.c (fold_builtin_bitop): Likewise.
16048         * combine.c (force_to_mode): Likewise.
16049         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
16050         * simplify-rtx.c (simplify_const_unary_operation,
16051         simplify_const_binary_operation): Likewise.
16052         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
16053         check_va_list_escapes): Likewise.
16054         * rtlanal.c (nonzero_bits1): Likewise.
16055         * expmed.c (expand_smod_pow2): Likewise.
16056         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
16058 2013-08-23  Jan Hubicka  <jh@suse.cz>
16060         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
16061         as having address taken.
16063 2013-08-23  Jan Hubicka  <jh@suse.cz>
16065         * ipa-utils.h (method_class_type): Declare.
16066         * ipa-devirt.c (method_class_type): Export.
16068         * cgraphunit.c (analyze_functions): Do basic devirtualization;
16069         do not walk base classes of anonymous types.
16071 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
16073         PR rtl-optimization/58220
16074         PR regression/58221
16075         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
16076         handle SEQUENCE insns properly.
16078 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16080         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
16081         definition.
16082         (pp_newline_and_indent): Likewise.
16083         (pp_separate_with): Likewise.
16084         * pretty-print.c (pp_newline_and_flush): Define.
16085         (pp_newline_and_indent): Likewise.
16086         (pp_separate_with): Likewise.
16088 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
16090         PR target/58218
16091         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
16092         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
16094 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
16096         * config/i386/predicates.md (ext_sse_reg_operand): New.
16097         * config/i386/i386.md (*movti_internal): Use
16098         predicate to determine if EVEX is needed.
16099         (*movsi_internal): Ditto.
16100         (*movdf_internal): Ditto.
16101         (*movsf_internal): Ditto.
16102         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
16104 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
16106         PR tree-optimization/58209
16107         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
16108         (find_tail_calls): Give up for pointer result types if m is non-NULL.
16109         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
16110         emit POINTER_PLUS_EXPR.
16111         (create_tailcall_accumulator): For pointer result type accumulate in
16112         sizetype type.
16114 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
16116         * configure.ac: Add backslashes missing from the last change.
16117         * configure: Regenerate.
16119 2013-08-22  Jan Hubicka  <jh@susue.cz>
16121         * ipa.c (function_and_variable_visibility): First remember function
16122         was global and then make it local.
16124 2013-08-22  Julian Brown  <julian@codesourcery.com>
16126         * configure.ac: Add aarch64 to list of arches which use "nop" in
16127         debug_line test.
16128         * configure: Regenerate.
16130 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16132         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
16133         gnu_libc_has_function.
16134         * config/s390/tpf.h: Likewise.
16136 2013-08-22  Jan Hubicka  <jh@susue.cz>
16138         * timevar.c (validate_phases): Add cast.
16140 2013-08-22  Jan Hubicka  <jh@susue.cz>
16142         * timevar.c (validate_phases): Use size_t for memory.
16143         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
16145 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16147         * pretty-print.h (output_buffer::output_buffer): Declare.
16148         (pretty_printer::pretty_printer): Likewise.
16149         (pp_construct): Remove.
16150         * pretty-print.c (output_buffer::output_buffer): Define.
16151         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
16152         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
16153         (print_gimple_expr): Likewise.
16154         (print_gimple_seq): Likewise.
16155         (gimple_dump_bb): Likewise.
16156         * sched-vis.c (dump_value_slim): Likewise.
16157         (dump_insn_slim): Likewise.
16158         (dump_rtl_slim): Likewise.
16159         (str_pattern_slim): Likewise.
16160         * tree-mudflap.c (mf_varname_tree): Likewise.
16161         * graph.c (print_graph_cfg): Likewise.
16162         (start_graph_dump): Likewise.
16163         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
16164         placement-new.
16165         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
16166         pretty printer initialization.
16167         * coretypes.h (diagnostic_context): Remove superflous type alias
16168         declaration.
16169         (pretty_printer): Likewise.  Declare directly as a class.
16170         (pretty_print_info): Remove declaration as class.
16171         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
16172         and pp_clear_output_area.
16173         (asan_add_global): Likewise.
16175 2013-08-22  Jan Hubicka  <jh@suse.cz>
16177         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
16178         * ipa-utils.h (update_type_inheritance_graph): Declare.
16179         (possible_polymorphic_call_target_p): Declare.
16180         (possible_polymorphic_call_target_p): New.
16181         * ipa-devirt.c: Update toplevel comments.
16182         (cached_polymorphic_call_targets): Move up.
16183         (odr_type_d): Move ID down.
16184         (polymorphic_type_binfo_p): Update comment.
16185         (odr_hasher::remove): Likewise;
16186         (get_odr_type): Set anonymous_namespace.
16187         (dump_odr_type): Dump it.
16188         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
16189         (maybe_record_node): Record node in cached_polymorphic_call_targets.
16190         (record_binfo): Add comment.
16191         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
16192         built.
16193         (devirt_node_removal_hook): Do not iCE when cache is freed.
16194         (possible_polymorphic_call_target_p): New predicate.
16195         (update_type_inheritance_graph): New function.
16197 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16198             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16199             Sergey Lega  <sergey.s.lega@intel.com>
16200             Anna Tikhonova  <anna.tikhonova@intel.com>
16201             Ilya Tocar  <ilya.tocar@intel.com>
16202             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16203             Ilya Verbin  <ilya.verbin@intel.com>
16204             Kirill Yukhin  <kirill.yukhin@intel.com>
16205             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16207         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
16208         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
16209         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
16210         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
16211         (OPTION_MASK_ISA_AVX2_UNSET): Update.
16212         (OPTION_MASK_ISA_AVX512F_UNSET): New.
16213         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
16214         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
16215         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
16216         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
16217         OPT_mavx512pf, OPT_mavx512er cases.
16218         * config/i386/constraints.md (v): New constraint.
16219         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
16220         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
16221         (bit_AVX512CD): New.
16222         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16223         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
16224         * config/i386/i386-c.c (ix86_target_macros_internal):
16225         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
16226         __AVX512PF__.
16227         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
16228         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
16229         * config/i386/i386.c (regclass_map, dbx_register_map)
16230         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
16231         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
16232         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
16233         -mavx512pf options.
16234         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
16235         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
16236         -mavx512pf options.  Fix formatting.
16237         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
16238         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
16239         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
16240         -mavx512cd, -mavx512pf options.
16241         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
16242         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
16243         (ix86_preferred_output_reload_class): Replace SSE_REGS with
16244         ALL_SSE_REGS.
16245         (ix86_hard_regno_mode_ok): Support 512-bit registers.
16246         (ix86_set_reg_reg_cost): Ditto.
16247         (x86_order_regs_for_local_alloc): Ditto.
16248         (MAX_VECT_LEN): Extend to 64-byte.
16249         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
16250         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
16251         (TARGET_AVX512ER, TARGET_AVX512CD): New.
16252         (BIGGEST_ALIGNMENT): Extend to 512-bits.
16253         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
16254         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
16255         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
16256         (SSE_REG_MODE_P): Support new modes.
16257         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
16258         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
16259         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
16260         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
16261         (REG_CLASS_CONTENTS): Add new registers.
16262         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
16263         (EXT_REX_SSE_REGNO_P): New.
16264         (HI_REGISTER_NAMES): Add new registers.
16265         * config/i386/i386.md: Define constants for new registers.
16266         (mode): Add new 512-bit modes.
16267         (prefix): Support evex prefix.
16268         (isa): Support avx512f, noavx512f, fma_avx512f.
16269         (ssemodesuffix): Add new 512-bit modes.
16270         (movxi): New.
16271         (*movxi_internal_avx512f): Ditto.
16272         (*movdi_internal): Replace constraint "x" with the new constraint "v".
16273         Support MODE_XI.
16274         (*movsi_internal): Likewise.
16275         (*movdf_internal): Likewise.
16276         (*movsf_internal): Likewise.
16277         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
16278         (<code><mode>3): Likewise.
16279         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
16280         New.
16281         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
16282         with the new constraint "v".
16283         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
16284         modes.
16285         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
16286         with the new constraint "v".
16287         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
16288         (<sse2>_storedqu<avxsizesuffix>): Likewise.
16289         (*<plusminus_insn><mode>3): Likewise.
16290         (<sse>_vm<plusminus_insn><mode>3): Likewise.
16291         (*mul<mode>3): Likewise.
16292         (<sse>_vmmul<mode>3): Likewise.
16293         (<sse>_div<mode>3): Likewise.
16294         (<sse>_vmdiv<mode>3): Likewise.
16295         (<sse>_sqrt<mode>2): Likewise.
16296         (<sse>_vmsqrt<mode>2): Likewise.
16297         (*<code><mode>3_finite): Likewise.
16298         (*<code><mode>3) <smaxmin>: Likewise.
16299         (<sse>_vm<code><mode>3): Likewise.
16300         (*<code><mode>3) <any_logic>: Likewise.
16301         (*fma_fmadd_<mode>): Likewise.
16302         (*fma_fmsub_<mode>): Likewise.
16303         (*fma_fnmadd_<mode>): Likewise.
16304         (*fma_fnmsub_<mode>): Likewise.
16305         (*fma_fmaddsub_<mode>): Likewise.
16306         (*fma_fmsubadd_<mode>): Likewise.
16307         (*fmai_fmadd_<mode>): Likewise.
16308         (*fmai_fmsub_<mode>): Likewise.
16309         (*fmai_fnmadd_<mode>): Likewise.
16310         (*fmai_fnmsub_<mode>): Likewise.
16311         (sse_cvtsi2ss): Likewise.
16312         (sse_cvtsi2ssq): Likewise.
16313         (sse_cvtss2si): Likewise.
16314         (sse_cvtss2si_2): Likewise.
16315         (sse_cvtss2siq): Likewise.
16316         (sse_cvtss2siq_2): Likewise.
16317         (sse_cvttss2si): Likewise.
16318         (sse_cvtss2siq_2): Likewise.
16319         (float<sseintvecmodelower><mode>2): Likewise.
16320         (sse2_cvtsd2si_2): Likewise.
16321         (sse2_cvtsd2siq_2): Likewise.
16322         (*<plusminus_insn><mode>3): Likewise.
16323         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
16324         (*<sse4_1_avx2>_mul<mode>3): Likewise.
16325         (ashr<mode>3): Likewise.
16326         (<shift_insn><mode>3): Likewise.
16327         (avx2_<code><mode>3): Likewise.
16328         (*avx2_<code><mode>3): Likewise.
16329         (*andnot<mode>3): Likewise.
16330         (*<code><mode>3) <any_logic>: Likewise.
16331         (abs<mode>2): Likewise.
16332         (avx2_permvar<mode>): Likewise.
16333         (avx2_perm<mode>_1): Likewise.
16334         (*avx_vpermilp<mode>): Likewise.
16335         (avx_vpermilvar<mode>3): Likewise.
16336         (avx2_ashrv<mode>): Likewise.
16337         (avx2_<shift_insn>v<mode>): Likewise.
16338         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
16339         -mavx512cd.
16340         * doc/rtl.texi: Document XImode.
16342 2013-08-21  Jeff Law  <law@redhat.com>
16344         * tree-flow.h (register_jump_thread): Pass vector of edges
16345         instead of each important edge.
16346         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
16347         thread path into a vector and pass that to register_jump_thread.
16348         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
16349         passed in edge vector to the current 3-edge form.
16351         Revert:
16352         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
16354         * dce.c (fini_dce): Call df_analyze again just in case
16355         delete_unmarked_insns removed anything.
16357 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
16359         * reload.h (struct reg_equivs): Rename to ..
16360         (struct reg_equivs_s): .. this.
16362 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
16364         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
16366 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16368         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
16370 2013-08-21  Jeff Law  <law@redhat.com>
16372         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
16373         simplify assignments too.  If the RHS collapses to a singleton
16374         range, then return the value for the range.
16376 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
16378         * config/i386/sse.md (V16): Rename to...
16379         (VMOVE): this.
16380         (mov<mode>): Update iterator name.
16381         (*mov<mode>_internal): Ditto.
16382         (push<mode>1): Ditto.
16383         (movmisalign<mode>): Ditto.
16385 2013-08-20  Jan Hubicka  <jh@suse.cz>
16387         PR bootstrap/58186
16388         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
16389         entry for direct edges.
16390         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
16392 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16394         Revert my last two changes, r201865 and r201864:
16396         Revert r201865:
16397         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16399         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16400         instances can own GC refs.
16402         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16403         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16404         (gcc::context::gt_pch_nx): Likewise.
16405         (gcc::context::gt_pch_nx):  Likewise.
16406         * ggc.h (gt_ggc_mx <T>): New.
16407         (gt_pch_nx_with_op <T>): New.
16408         (gt_pch_nx <T>): New.
16409         * passes.c (opt_pass::gt_ggc_mx): New.
16410         (opt_pass::gt_pch_nx): New.
16411         (opt_pass::gt_pch_nx_with_op): New.
16412         (pass_manager::gt_ggc_mx): New.
16413         (pass_manager::gt_pch_nx): New.
16414         (pass_manager::gt_pch_nx_with_op): New.
16415         (pass_manager::operator new): Use
16416         ggc_internal_cleared_alloc_stat rather than xcalloc.
16417         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16418         (pass_manager::gt_ggc_mx): New.
16419         (pass_manager::gt_pch_nx): New.
16420         (pass_manager::gt_pch_nx_with_op): New.
16421         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16422         (opt_pass::operator new): New.
16423         (opt_pass::gt_ggc_mx): New.
16424         (opt_pass::gt_pch_nx): New.
16425         (opt_pass::gt_pch_nx_with_op): New.
16427         Revert r201864:
16428         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16430         * Makefile.in (GTFILES): Add context.h.
16431         * context.c (gcc::context::operator new): New.
16432         (gcc::context::gt_ggc_mx): New.
16433         (gcc::context::gt_pch_nx): New.
16434         (gcc::context::gt_pch_nx): New.
16435         * context.h (gcc::context): Add GTY((user)) marking.
16436         (gcc::context::operator new): New.
16437         (gcc::context::gt_ggc_mx): New.
16438         (gcc::context::gt_pch_nx): New.
16439         (gcc::context::gt_pch_nx): New.
16440         (g): Add GTY marking.
16441         (gt_ggc_mx (gcc::context *)): New.
16442         (gt_pch_nx (gcc::context *)): New.
16443         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16444         void *cookie)): New.
16445         * gengtype.c (open_base_files) <ifiles>: Add context.h.
16447 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
16449         * dce.c (fini_dce): Call df_analyze again just in case
16450         delete_unmarked_insns removed anything.
16452 2013-08-20  Teresa Johnson  <tejohnson@google.com>
16454         PR rtl-optimizations/57451
16455         * final.c (reemit_insn_block_notes): Prevent lexical blocks
16456         from crossing split section boundaries.
16458 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
16460         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
16461         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
16462         with MULTLIB_DEFAULTS.
16464 2013-08-20  Nick Clifton  <nickc@redhat.com>
16466         * target.def (narrow_volatile_bitfield): Note that the default
16467         value is false, not !TARGET_STRICT_ALIGN.
16468         * doc/tm.texi: Regenerate.
16470 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
16472         Fix LIB_SPEC for systems without libpthread.
16474         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
16475         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
16476         for Android.
16477         * config/i386/linux-common.h: Likewise.
16478         * config/mips/linux-common.h: Likewise.
16480 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16482         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
16483         checks.
16485 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16487         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16488         instances can own GC refs.
16490         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16491         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16492         (gcc::context::gt_pch_nx): Likewise.
16493         (gcc::context::gt_pch_nx):  Likewise.
16494         * ggc.h (gt_ggc_mx <T>): New.
16495         (gt_pch_nx_with_op <T>): New.
16496         (gt_pch_nx <T>): New.
16497         * passes.c (opt_pass::gt_ggc_mx): New.
16498         (opt_pass::gt_pch_nx): New.
16499         (opt_pass::gt_pch_nx_with_op): New.
16500         (pass_manager::gt_ggc_mx): New.
16501         (pass_manager::gt_pch_nx): New.
16502         (pass_manager::gt_pch_nx_with_op): New.
16503         (pass_manager::operator new): Use
16504         ggc_internal_cleared_alloc_stat rather than xcalloc.
16505         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16506         (pass_manager::gt_ggc_mx): New.
16507         (pass_manager::gt_pch_nx): New.
16508         (pass_manager::gt_pch_nx_with_op): New.
16509         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16510         (opt_pass::operator new): New.
16511         (opt_pass::gt_ggc_mx): New.
16512         (opt_pass::gt_pch_nx): New.
16513         (opt_pass::gt_pch_nx_with_op): New.
16515 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16517         * Makefile.in (GTFILES): Add context.h.
16518         * context.c (gcc::context::operator new): New.
16519         (gcc::context::gt_ggc_mx): New.
16520         (gcc::context::gt_pch_nx): New.
16521         (gcc::context::gt_pch_nx): New.
16522         * context.h (gcc::context): Add GTY((user)) marking.
16523         (gcc::context::operator new): New.
16524         (gcc::context::gt_ggc_mx): New.
16525         (gcc::context::gt_pch_nx): New.
16526         (gcc::context::gt_pch_nx): New.
16527         (g): Add GTY marking.
16528         (gt_ggc_mx (gcc::context *)): New.
16529         (gt_pch_nx (gcc::context *)): New.
16530         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16531         void *cookie)): New.
16532         * gengtype.c (open_base_files) <ifiles>: Add context.h.
16534 2013-08-20  Alan Modra  <amodra@gmail.com>
16536         PR target/57865
16537         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
16538         (rs6000_emit_epilogue): Likewise.
16540 2013-08-19  Dehao Chen  <dehao@google.com>
16542         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
16544 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
16545             Jakub Jelinek  <jakub@redhat.com>
16547         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
16548         (BUILT_IN_FABSD64): Likewise.
16549         (BUILT_IN_FABSD128): Likewise.
16550         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
16551         (fold_builtin_1): Likewise.
16552         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
16553         destination and source operands.
16554         (*abstd2_fpr): Likewise.
16555         (*nabstd2_fpr): Likewise.
16557 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
16559         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
16560         JUMP_P and INSN_P.
16562 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
16564         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
16565         incomplete.
16567 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16569         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
16570         * builtins.c (default_libc_has_function): New.
16571         (gnu_libc_has_function): Ditto.
16572         (no_c99_libc_has_function): Ditto.
16573         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
16574         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
16575         (fold_builtin_sincos): Likewise.
16576         (fold_builtin_cexp): Likewise.
16577         * builtins.def (DEF_C94_BUILTIN): Likewise.
16578         (DEF_C99_BUILTIN): Likewise.
16579         (DEF_C99_C90RES_BUILTIN): Likewise.
16580         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
16581         definitions to using this define.
16582         * config/darwin-protos.h (darwin_libc_has_function): New.
16583         * config/darwin.c (darwin_libc_has_function): Ditto.
16584         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
16585         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
16586         * config/darwin.h: Ditto.
16587         * config/elfos.h: Ditto.
16588         * config/freebsd.h: Ditto.
16589         * config/i386/cygming.h: Ditto.
16590         * config/i386/djgpp.h: Ditto.
16591         * config/i386/i386-interix.h: Ditto.
16592         * config/microblaze/microblaze.h: Ditto.
16593         * config/mmix/mmix.h: Ditto.
16594         * config/gnu-user.h: Ditto.
16595         * config/ia64/hpux.h: Ditto.
16596         * config/pa/pa-hpux.h: Ditto.
16597         * config/pdp11/pdp11.h: Ditto.
16598         * config/picochip/picochip.h: Ditto.
16599         * config/linux.h: Ditto.
16600         * config/netbsd.h: Ditto.
16601         * config/openbsd.h: Ditto.
16602         * config/rs6000/aix43.h: Ditto.
16603         * config/rs6000/aix51.h: Ditto.
16604         * config/rs6000/aix52.h: Ditto.
16605         * config/rs6000/aix53.h: Ditto.
16606         * config/rs6000/aix61.h: Ditto.
16607         * config/rs6000/darwin.h: Ditto.
16608         * config/rs6000/linux.h: Ditto.
16609         * config/rs6000/linux64.h: Ditto.
16610         * config/s390/tpf.h: Ditto.
16611         * config/sol2-10.h: Ditto.
16612         * config/sol2.h: Ditto.
16613         * config/vms/vms.h: Ditto.
16614         * config/vxworks.h: Ditto.
16615         * config/linux-android.c (linux_android_libc_has_function):
16616         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
16617         * config/linux-protos.h (linux_android_libc_has_function):
16618         New declaration.
16619         * config/i386/i386.c (ix86_libc_has_function): New.
16620         * config/i386/i386-protos.h
16621         (ix86_libc_has_function): New declaration.
16622         * config/i386/i386.md
16623         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
16624         ("isinf<mode>2): Likewise.
16625         * convert.c (convert_to_integer): Using new target hook
16626         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
16627         TARGET_C99_FUNCTIONS.
16628         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
16629         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
16630         * coretypes.h (function_class): New enum for different
16631         classes of functions.
16632         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
16633         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
16634         (TARGET_HAS_SINCOS): Likewise.
16635         (TARGET_LIBC_HAS_FUNCTION): New.
16636         * doc/tm.texi: Regenerated.
16637         * targhooks.h (default_libc_has_function): New declaration.
16638         (no_c99_libc_has_function): Ditto.
16639         (gnu_libc_has_function): Ditto.
16640         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
16641         and TARGET_HAS_SINCOS.
16643 2013-08-18  Jan Hubicka  <jh@suse.cz>
16645         * Makeifle-in (ipa-devirt.o): New.
16646         (GTFILES): Add ipa-utils.h and ipa-devirt.c
16647         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
16648         (analyze_functions): Look into possible targets of polymorphic call.
16649         * dumpfile.c (dump_files): Add type-inheritance dump.
16650         * dumpfile.h (TDI_inheritance): New.
16651         * ipa-devirt.c: New file.
16652         * ipa-utils.h (odr_type_d): Forward declare.
16653         (odr_type): New type.
16654         (build_type_inheritance_graph): Declare.
16655         (possible_polymorphic_call_targets): Declare and introduce inline
16656         variant when only edge is pased.
16657         (dump_possible_polymorphic_call_targets): Likewise.
16658         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
16659         * tree.c (type_in_anonymous_namespace_p): Break out from ...
16660         (types_same_for_odr): ... here.
16661         * tree.h (type_in_anonymous_namespace_p): Declare.
16663 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
16665         PR tree-optimization/58006
16666         * tree-parloops.c (take_address_of): Don't ICE if get_name
16667         returns NULL.
16668         (eliminate_local_variables_stmt): Remove clobber stmts.
16670 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
16672         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
16673         error message is issued for an alias to undefined symbol.
16675 2013-08-18  Jan Hubicka  <jh@suse.cz>
16677         * cgraph.c (cgraph_create_indirect_edge): Discover
16678         polymorphic calls and record basic info into indirect_info.
16679         * gimple-fold.c (gimple_fold_call): When doing BINFO based
16680         devirtualization, ignore objc function calls.
16681         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
16682         call with no parm index info.
16683         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
16684         * tree.c (virtual_method_call_p): New function.
16685         * tree.h (virtual_method_call_p): Declare.
16687 2013-08-16  Jan Hubicka  <jh@suse.cz>
16689         PR middle-end/58179
16690         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
16692 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
16694         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
16695         attribute.
16697 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
16699         * gengtype.c (type_for_name): Add special-case support for
16700         locating types within the "gcc::" namespace.
16701         (open_base_files): Emit a "using namespace gcc" directive.
16703 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
16705         PR target/58160
16706         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
16707         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
16709         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
16710         array instead of each individual operand as a separate argument.
16711         (emit_fusion_gpr_load): Likewise.
16712         (expand_fusion_gpr_load): Add new function declaration.
16714         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
16715         signature to have the operands passed as an array, instead of as
16716         separate arguments.  Allow ZERO_EXTEND to be in the memory
16717         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
16718         depend on the register live/dead flags when peepholes are run.
16719         (expand_fusion_gpr_load): New function to be called from the
16720         peephole2 pass, to change the register that addis sets to be the
16721         target register.
16722         (emit_fusion_gpr_load): Change the calling signature to have the
16723         operands passed as an array, instead of as separate arguments.
16724         Allow ZERO_EXTEND to be in the memory address, and also
16725         SIGN_EXTEND if -mpower8-fusion-sign.
16727         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
16728         unspec enumeration.
16729         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
16730         adjust the register addis loads up in the peephole2 pass.  Do not
16731         depend on the register live/dead state when the peephole pass is done.
16733 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
16735         * gengtype.c (create_user_defined_type): Ensure that the kind
16736         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
16737         declaration is seen before the GTY((user)) marking.
16739 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16741         PR target/58105
16742         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
16744 2013-08-16  Jan Hubicka  <jh@suse.cz>
16746         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
16747         arugment expected_type.
16748         (gimple_fold_call): Use it.
16749         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
16750         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
16751         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
16752         (try_make_edge_direct_virtual_call): Likewise.
16753         * tree.c (obj_type_ref_class): New.
16754         * tree.h (obj_type_ref_class): Use it.
16756 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16758         * sched-vis.c (rtl_slim_pp_initialized): Remove.
16759         (rtl_slim_pp): Likewise.
16760         (init_rtl_slim_pretty_print): Likewise.
16761         (dump_value_slim):  Don't call it.  Use local pretty printer.
16762         (dump_insn_slim): Likewise.
16763         (dump_rtl_slim): Likewise.
16764         (str_pattern_slim): Likewise.
16765         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
16766         Simplify.
16768 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
16770         PR tree-optimization/58164
16771         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
16772         walk gimple_goto_dest of GIMPLE_GOTO.
16774         PR tree-optimization/58165
16775         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
16776         bi_call must be the last stmt in a bb, don't split_block, instead
16777         use fallthru edge from it and give up if there is none.
16778         Release conds vector when returning early.
16780 2013-08-14  Xinliang David Li  <davidxl@google.com>
16782         * config/i386/i386.c (ix86_option_override_internal):
16783         Remove unused variable and field.
16785 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16787         PR target/57949
16788         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
16789         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
16790         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
16791         and Linux, correct BLKmode alignment when 128-bit alignment is
16792         required and compatibility flag is not set.
16793         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
16794         for zero-size arguments when compatibility flag is not set.
16796 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
16798         PR tree-optimization/58145
16799         * tree-sra.c (build_ref_for_offset): If prev_base has
16800         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
16802 2013-08-14  Xinliang David Li  <davidxl@google.com>
16804         * config/i386/i386.c (ix86_option_override_internal):
16805         Fix uninitialized variable error.
16807 2013-08-14  Xinliang David Li  <davidxl@google.com>
16809         * config/i386/i386.opt: Define two new options.
16810         * config/i386/x86-tune.def: Add arch selector field in macros.
16811         * config/i386/i386.h: Adjust macro definition.
16812         * config/i386/i386.c (ix86_option_override_internal):
16813         Refactor the code.
16814         (parse_mtune_ctrl_str): New function.
16815         (set_ix86_tune_features): New function.
16816         (ix86_function_specific_restore): Call the new helper function.
16818 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
16820         PR rtl-optimization/57662
16821         * sel-sched.c (code_motion_process_successors): When the current insn
16822         is removed after the recursive traversal, break from the loop.
16823         Add comments and debug printouts.
16825 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
16826             Alexandre Oliva  <aoliva@redhat.com>
16828         PR target/58067
16829         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
16830         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
16831         there also UNSPEC_PLTOFF.
16833 2013-08-14  Marek Polacek  <polacek@redhat.com>
16835         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
16836         NUM_CONDITIONS bit positions.
16838 2013-08-13  Cary Coutant  <ccoutant@google.com>
16840         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
16841         (attr_checksum): Hash vector contents instead of pointer.
16842         (attr_checksum_ordered): Likewise.
16844 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
16846         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
16847         when Pmode != word_mode.  Add length_address attribute.
16848         (sse3_monitor_<mode>): Merge from sse3_monitor and
16849         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
16850         Pmode != word_mode.  Update insn length attribute.
16851         * config/i386/i386.c (ix86_option_override_internal): Update
16852         ix86_gen_monitor selection for merged sse3_monitor insn.
16854 2013-08-13  Julian Brown  <julian@codesourcery.com>
16856         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
16857         perform invalid legitimization on greater-than-word-size modes for
16858         TARGET_E500_DOUBLE.
16860 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
16862         * ira.c (setup_class_translate_array): Use aclass instead of cl
16863         for classes not fully covered by allocno classes.
16865 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
16867         PR tree-optimization/57661
16868         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
16869         * tree-inline.c (tree_function_versioning): Initialize it.
16870         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
16871         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
16872         that is not being copied.
16874         PR sanitizer/56417
16875         * asan.c (instrument_strlen_call): Fix typo in comment.
16876         Use char * type even for the lhs of POINTER_PLUS_EXPR.
16878 2013-08-13  Steve Ellcey  <sellcey@mips.com>
16880         * config/mips/mips.md (prefetch): Use lw instead of ld on
16881         loongson in 32bit mode.
16883 2013-08-13  Nick Clifton  <nickc@redhat.com>
16885         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
16887 2013-08-13  Jan Hubicka  <jh@suse.cz>
16889         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
16890         introduced edge; fix typo in sanity check.
16891         (cgraph_resolve_speculation): Export; improve diagnostic.
16892         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
16893         speculation at type mismatch.
16894         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
16895         (cgraph_resolve_speculation): Declare.
16896         (symtab_can_be_discarded): New function.
16897         * value-prof.c (gimple_ic_transform): Remove actual transform code.
16898         * ipa-inline-transform.c (speculation_removed): New global var.
16899         (clone_inlined_nodes): See if speculation can be removed.
16900         (inline_call): If speculations was removed, we growths may not match.
16901         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
16902         (speculation_useful_p): New function.
16903         (resolve_noninline_speculation): New function.
16904         (inline_small_functions): Resolve useless speculations.
16905         * ipa-inline.h (speculation_useful_p): Declare
16906         * ipa.c (can_replace_by_local_alias): Simplify.
16907         (ipa_profile): Produce speculative calls in non-lto, too;
16908         add simple cost model; produce local aliases.
16910 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
16912         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
16913         PASS_MANAGER_H.
16915 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
16917         * config/i386/i386.c (ix86_function_versions): Use error + inform.
16919 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
16921         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
16922         iterator instead of X87MODEF.
16924 2013-08-12  Perez Read  <netfirewall@gmail.com>
16926         PR target/58132
16927         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
16928         operand 0 for intel asm alternative.
16929         (*movabs<mode>_2): Ditto for operand 1.
16931 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
16933         * config/aarch64/arm_none.h
16934         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
16936 2013-08-12  Nick Clifton  <nickc@redhat.com>
16938         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
16940 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
16942         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
16943         expand for QI/HImode operand to produce more effictive code for
16944         unsigned char(short) --> float(double) conversion.
16946 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
16948         * doc/invoke.texi: Mention that -ftls-model does not force the final
16949         model.
16951 2013-08-12  Marek Polacek  <polacek@redhat.com>
16952             Marc Glisse  <marc.glisse@inria.fr>
16954         PR tree-optimization/57980
16955         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
16956         when creating -1 constant.
16958 2013-08-10  Jan Hubicka  <jh@suse.cz>
16960         Workaround binutils PR14342.
16961         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
16962         (gimple_init_edge_profiler): Likewise.
16963         (gimple_gen_ic_func_profiler): Likewise.
16965 2013-08-09  Jan Hubicka  <jh@suse.cz>
16967         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
16969 2013-08-09  Xinliang David Li  <davidxl@google.com>
16971         * config/i386/stringop.def: New file.
16972         * config/i386/stringop.opt: New file.
16973         * config/i386/i386-opts.h: Include stringopt.def.
16974         * config/i386/i386.opt: Include stringopt.opt.
16975         * config/i386/i386.c (ix86_option_override_internal):
16976         Override default size based stringop inline strategies with options.
16977         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
16978         New function.
16980 2013-08-09  Jan Hubicka  <jh@suse.cz>
16982         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
16984 2013-08-09  Jan Hubicka  <jh@suse.cz>
16986         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
16987         CGRAPH_FREQ_MAX.
16988         (dump_cgraph_node): Dump profile-id.
16989         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
16990         and common_target_probability.
16991         * lto-cgraph.c (lto_output_edge): Stream common targets.
16992         (lto_output_node): Stream profile ids.
16993         (input_node): Stream profile ids.
16994         (input_edge): Stream common targets.
16995         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
16996         * ipa.c: Include value-prof.h
16997         (ipa_profile_generate_summary): Turn indirect call statement histograms
16998         into common targets.
16999         (ipa_profile): Turn common targets into speculative edges.
17001 2013-08-09  Jan Hubicka  <jh@suse.cz>
17003         * cgraph.h (cgraph_node): Add profile_id.
17004         * value-prof.c (cgraph_node_map): Turn into pointer_map.
17005         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
17006         (del_node_map): Update.
17007         (find_func_by_funcdef_no): Replace by ...
17008         (find_func_by_profile_id): ... this one.
17009         (gimple_ic_transform): Do not remove useful histograms when
17010         speculation is not done; dump info when indirect call removal
17011         can happen at LTO.
17012         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
17013         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
17014         (__gcov_indirect_call_profiler_v2): .. this one.
17015         * profile.h (init_node_map): Update.
17016         * coverage.c (coverage_compute_profile_id): New function.
17017         * coverage.h (coverage_compute_profile_id): Declare.
17018         * tree-profile.c (init_ic_make_global_vars): Make
17019         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
17020         (gimple_init_edge_profiler): Update prototype of
17021         __gcov_indirect_call_profiler.
17022         (gimple_gen_ic_func_profiler): Simplify.
17023         (tree_profiling): Use init_node_map
17025 2013-08-09  Jan Hubicka  <jh@suse.cz>
17027         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
17028         non-speculative refs.
17029         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
17030         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
17031         (cgraph_set_call_stmt): Likewise.
17032         (cgraph_create_edge_1): Fix release checking compilatoin;
17033         clear lto_stmt_uid.
17034         (cgraph_free_edge): Free indirect info.
17035         (cgraph_turn_edge_to_speculative): New function.
17036         (cgraph_speculative_call_info): New function.
17037         (cgraph_make_edge_direct): Return direct edge; handle speculation.
17038         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
17039         (dump_cgraph_node): Dump speculation.
17040         (verify_edge_count_and_frequency): Accept speculative edges.
17041         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
17042         (verify_cgraph_node): Handle speculation.
17043         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
17044         (cgraph_set_call_stmt): Update prototype.
17045         (cgraph_make_edge_direct): Update prototype.
17046         (cgraph_speculative_call_info): Declare.
17047         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
17048         to change; update call of ipa_find_references.
17049         * ipa-ref.c (ipa_record_reference): Fix return value; clear
17050         lto_stmt_uid and speculative flags.
17051         (ipa_dump_references): Dump speculation.
17052         (ipa_clone_references): Clone speculative flag.
17053         (ipa_clone_referring): Likewise.
17054         (ipa_clone_ref): New function.
17055         (ipa_find_reference): Look into lto_stmt_uids
17056         (ipa_clear_stmts_in_references): Do not clear speculative calls.
17057         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
17058         (ipa_find_reference): Update declaration.
17059         (ipa_clone_ref): Declare.
17060         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
17061         stream speculative flag.
17062         (lto_output_ref): Stream statements uids and speculation.
17063         (input_ref): Likewise.
17064         (input_edge): Stream speuclation.
17065         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
17066         (cgraph_set_call_stmt_including_clones): Handle speculation.
17067         * ipa-inline.c (heap_edge_removal_hook): New function.
17068         (inline_small_functions): Register it.
17069         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
17070         also initialize refs.
17071         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
17072         edge to change.
17073         (try_make_edge_direct_simple_call): Likewise.
17074         (try_make_edge_direct_simple_call): Likewise.
17075         (update_indirect_edges_after_inlining): Likewise.
17076         (remove_described_reference): Look proper lto_stmt_uid.
17077         (propagate_controlled_uses): Likewise.
17078         (propagate_controlled_uses): Liekwise.
17079         * tree-inline.c (copy_bb): Copy speculative edges.
17080         (redirect_all_calls): New function.
17081         (copy_cfg_body): Do redirection after loop info is updated.
17082         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
17084 2013-08-09  Jan Hubicka  <jh@suse.cz>
17086         * lto-streamer-out.c (output_function): Renumber PHIs.
17087         * lto-streamer-in.c (input_function): Likewise.
17089 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
17091         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
17092         (get_lane_unsigned): Likewise.
17093         (dup_lane_scalar): Likewise.
17094         (get_lane): enable for VALL.
17095         * config/aarch64/aarch64-simd.md
17096         (aarch64_dup_lane_scalar<mode>): Remove.
17097         (aarch64_get_lane_signed<mode>): Likewise.
17098         (aarch64_get_lane_unsigned<mode>): Likewise.
17099         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
17100         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
17101         (aarch64_get_lane<mode>): Enable for all vector modes.
17102         (aarch64_get_lanedi): Remove misleading constraints.
17103         * config/aarch64/arm_neon.h
17104         (__aarch64_vget_lane_any): Define.
17105         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
17106         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
17107         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
17108         * config/aarch64/iterators.md (VDQQH): New.
17109         (VDQQHS): Likewise.
17110         (vwcore): Likewise.
17112 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
17114         * configure.ac: Add GAS check for LEON instructions on SPARC.
17115         * configure: Regenerate.
17116         * config.in: Likewise.
17117         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
17118         sparc*-*-* block.
17119         * config/sparc/sparc.opt (LEON, LEON3): New masks.
17120         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
17121         for LEON or LEON3.
17122         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
17123         (AS_LEON_FLAG): New macro.
17124         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
17125         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
17126         Deal with LEON and LEON3 for the memory model.
17127         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
17128         (atomic_compare_and_swap<mode>_1): Likewise.
17129         (*atomic_compare_and_swap<mode>_1): Likewise.
17131 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17133         * config/arm/neon.md (vcond): Fix floating-point vector
17134         comparisons against 0.
17136 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
17138         * lra-constraints.c (emit_spill_move): Remove assert.
17139         (process_alt_operands): Add more debugging
17140         output.  Increase reject for spilling into memory.  Decrease
17141         reject for reloading scratch.
17142         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
17144 2013-08-08  Steve Ellcey  <sellcey@mips.com>
17146         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
17147         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
17148         micromips incompatible.  Add nan2008.
17149         (MULTILIB_DIRNAMES): Add nan2008.
17150         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
17151         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
17152         and micromips incompatible.  Add nan2008.
17153         (MULTILIB_DIRNAMES): Add nan2008.
17154         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
17156 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
17158         PR rtl-optimization/58079
17159         * combine.c (combine_simplify_rtx): Avoid using SUBST if
17160         simplify_comparison has widened a comparison with an integer.
17162 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17164         * config/arm/neon.md (movmisalign<mode>): Disable when we
17165         don't allow unaligned accesses.
17166         (*movmisalign<mode>_neon_store): Likewise.
17167         (*movmisalign<mode>_neon_load): Likewise.
17168         (*movmisalign<mode>_neon_store): Likewise.
17169         (*movmisalign<mode>_neon_load): Likewise.
17171 2013-08-08  Jan Hubicka  <jh@suse.cz>
17173         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
17174         (make_pass_rebuild_cgraph_edges): Also clear references.
17175         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
17176         * ipa-inline-transform.c (inline_transform): Remove all references
17177         after inlining.
17178         * cgraphunit.c (expand_function): Remove all references after
17179         expansion.
17180         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
17181         (ipa_find_reference): Rewrite to iterator.
17182         (remove_stmt_references): Likewise.
17183         (ipa_clear_stmts_in_references): New function.
17184         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
17185         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
17186         clear references.
17187         * ipa-split.c (split_function): Remove references in split function.
17189 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
17191         PR target/57431
17192         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
17193         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
17195 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
17197         PR target/56979
17198         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
17199         suggested mode for the assignment isn't compatible with the
17200         registers required.
17202 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17204         PR target/58065
17205         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
17207 2013-08-07  Xinliang David Li  <davidxl@google.com>
17209         * config/i386/i386.opt: New option -mtune-ctrl=.
17210         * config/i386/x86-tune.def: New file.
17211         * config/i386/i386.h: include x86-tune.def.
17212         * config/i386/i386.c (ix86_option_override_internal):
17213         Parsing -mtune-ctrl= option and set tune features.
17215 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
17217         PR other/12081
17218         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
17219         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
17220         to gen_2arg_fn_t.
17222 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
17224         * rtl.h (update_alignments): Declare.
17225         * final.c (grow_label_align): New function extracted from...
17226         (shorten_branches): ...here.  Call it.
17227         (update_alignments): New function.
17228         * reorg.c (sibling_labels): New variable.
17229         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
17230         the new label along with it onto the sibling_labels vector.
17231         (fill_simple_delay_slots): Adjust call to get_label_before.
17232         (fill_slots_from_thread): Likewise.
17233         (relax_delay_slots): Likewise.
17234         (make_return_insns): Likewise.
17235         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
17237 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
17239         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
17240         document its semantics.
17241         (diagnostic_report_diagnostic): Adjust accordingly.
17243 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
17245         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
17246         (sparc_option_override): ...and port to new C++ pass API.
17247         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
17249 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
17251         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
17253 2013-08-06  Caroline Tice  <cmtice@google.com>
17255         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
17256         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
17257         * tree-pass.h: Add pass_vtable_verify.
17258         * varasm.c (assemble_variable): Add code to properly set the comdat
17259         section and name for the .vtable_map_vars section.
17260         (assemble_vtyv_preinit_initializer): New function.
17261         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
17262         LINK_ONCE flag.
17263         * output.h: Add function decl for assemble_vtv_preinit_initializer.
17264         * vtable-verify.c: New file.
17265         * vtable-verify.h: New file.
17266         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
17267         initialiation levels.
17268         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
17269         * passes.def: Insert pass_vtable_verify.
17270         * aclocal.m4: Reorder includes.
17271         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
17272         -fvtv-counts options.
17273         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
17274         as appropriate, if -fvtable-verify=... is used.
17275         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
17276         -fvtable-verify=... is used.
17277         * Makefile.in (OBJS):  Add vtable-verify.o to list.
17278         (vtable-verify.o): Add new build rule.
17279         (GTFILES): Add vtable-verify.c to list.
17280         * common.opt (fvtable-verify=): New flag.
17281         (vtv_priority): Values for fvtable-verify= flag.
17282         (fvtv-counts): New flag.
17283         (fvtv-debug): New flag.
17284         * tree.h (save_vtable_map_decl): New extern function decl.
17286 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
17288         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
17289         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
17290         (pass_data_rl78_devirt): ...new pass_data instance and...
17291         (make_pass_rl78_devirt): ...new function.
17292         (rl78_asm_file_start): Port pass registration to new C++ API.
17294 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
17296         * coretypes.h (rtl_opt_pass): Add.
17297         (gcc::context): Add.
17298         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
17299         (epiphany_init): Port to new C++ pass API.
17300         (epiphany_optimize_mode_switching): Likewise.
17301         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
17302         (pass_manager::get_pass_mode_switching): New.
17303         (pass_manager::get_pass_peephole2): New.
17304         * mode-switching.c (pass_mode_switching): Add clone method.
17305         * recog.c (pass_peephole2): Add clone method.
17306         (pass_split_all_insns): Add clone method.
17308 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
17310         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
17311         (mips_option_override): ...here, porting to new C++ API for passes.
17313 2013-08-06  Jan Hubicka  <jh@suse.cz>
17315         * cgraph.c (cgraph_get_body): New function based on lto.c
17316         implementation.
17317         * cgraph.h (cgraph_get_body): Declare.
17318         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
17319         LTO paths.
17320         * cgraphunit.c (expand_function): Get body prior expanding.
17321         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
17322         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
17323         really need.
17324         * passes.c (do_per_function_toporder): Get body.
17325         * tree-inline.c (expand_call_inline): Get body prior inlining it.
17326         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
17328 2013-08-06  Martin Jambor  <mjambor@suse.cz>
17330         PR fortran/57987
17331         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
17332         is not re-finalized.  Rename second parameter to no_collect.
17334 2013-08-06  Martin Jambor  <mjambor@suse.cz>
17336         PR middle-end/58041
17337         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
17338         MEM_REF has proper alignment information.
17340 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
17342         PR other/12081
17343         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
17344         class insn_gen_fn.
17345         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
17346         rtx (*) (rtx, ...) with insn_gen_fn.
17347         * genoutput.c (output_insn_data): Cast gen_? function pointers to
17348         insn_gen_fn::stored_funcptr.  Add initializer braces.
17350 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
17352         Rewrite how instances of passes are cloned to remove assumptions
17353         about their sizes (thus allowing pass subclasses to have
17354         additional data fields, albeit non-GC-managed ones at this point).
17356         * passes.c (make_pass_instance): Now that passes have clone
17357         methods, rewrite this function to eliminate XNEW and memcpy
17358         calls that used hardcoded sizes.  Since this function no longer
17359         creates pass instances, rename it to...
17360         (add_pass_instance): ...this.  Document the old way that passes were
17361         numbered and flagged, and rework this function to continue using it.
17362         (next_pass_1): Add an initial_pass argument for use by
17363         add_pass_instance.
17364         (position_pass): When adding multiple instances of a pass, use
17365         the pass's clone method, rather than relying on the XNEW/memcpy
17366         within the former make_pass_instance (now add_pass_instance).
17367         (pass_manager::pass_manager): When invoking next_pass_1, also supply
17368         the initial instance of the current pass within the pass manager.
17370 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
17372         This is the automated part of the conversion of passes from C
17373         structs to C++ classes.
17375         Patch autogenerated by refactor_passes.py from
17376         https://github.com/davidmalcolm/gcc-refactoring-scripts
17377         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
17379         * asan.c (pass_asan): Convert from a global struct to a subclass of
17380         gimple_opt_pass along with...
17381         (pass_data_asan): ...new pass_data instance and...
17382         (make_pass_asan): ...new function.
17383         (pass_asan_O0): Convert from a global struct to a subclass of
17384         gimple_opt_pass along with...
17385         (pass_data_asan_O0): ...new pass_data instance and...
17386         (make_pass_asan_O0): ...new function.
17387         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
17388         subclass of rtl_opt_pass along with...
17389         (pass_data_inc_dec): ...new pass_data instance and...
17390         (make_pass_inc_dec): ...new function.
17391         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
17392         a subclass of rtl_opt_pass along with...
17393         (pass_data_reorder_blocks): ...new pass_data instance and...
17394         (make_pass_reorder_blocks): ...new function.
17395         (pass_duplicate_computed_gotos): Convert from a global struct to a
17396         subclass of rtl_opt_pass along with...
17397         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
17398         (make_pass_duplicate_computed_gotos): ...new function.
17399         (pass_partition_blocks): Convert from a global struct to a subclass of
17400         rtl_opt_pass along with...
17401         (pass_data_partition_blocks): ...new pass_data instance and...
17402         (make_pass_partition_blocks): ...new function.
17403         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
17404         struct to a subclass of rtl_opt_pass along with...
17405         (pass_data_branch_target_load_optimize1): ...new pass_data instance
17406         and...
17407         (make_pass_branch_target_load_optimize1): ...new function.
17408         (pass_branch_target_load_optimize2): Convert from a global struct to a
17409         subclass of rtl_opt_pass along with...
17410         (pass_data_branch_target_load_optimize2): ...new pass_data instance
17411         and...
17412         (make_pass_branch_target_load_optimize2): ...new function.
17413         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
17414         of rtl_opt_pass along with...
17415         (pass_data_jump): ...new pass_data instance and...
17416         (make_pass_jump): ...new function.
17417         (pass_jump2): Convert from a global struct to a subclass of
17418         rtl_opt_pass along with...
17419         (pass_data_jump2): ...new pass_data instance and...
17420         (make_pass_jump2): ...new function.
17421         * cfgexpand.c (pass_expand): Convert from a global struct to a
17422         subclass of rtl_opt_pass along with...
17423         (pass_data_expand): ...new pass_data instance and...
17424         (make_pass_expand): ...new function.
17425         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
17426         of rtl_opt_pass along with...
17427         (pass_data_free_cfg): ...new pass_data instance and...
17428         (make_pass_free_cfg): ...new function.
17429         (pass_into_cfg_layout_mode): Convert from a global struct to a
17430         subclass of rtl_opt_pass along with...
17431         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
17432         (make_pass_into_cfg_layout_mode): ...new function.
17433         (pass_outof_cfg_layout_mode): Convert from a global struct to a
17434         subclass of rtl_opt_pass along with...
17435         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
17436         (make_pass_outof_cfg_layout_mode): ...new function.
17437         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
17438         struct to a subclass of gimple_opt_pass along with...
17439         (pass_data_build_cgraph_edges): ...new pass_data instance and...
17440         (make_pass_build_cgraph_edges): ...new function.
17441         (pass_rebuild_cgraph_edges): Convert from a global struct to a
17442         subclass of gimple_opt_pass along with...
17443         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
17444         (make_pass_rebuild_cgraph_edges): ...new function.
17445         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
17446         subclass of gimple_opt_pass along with...
17447         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
17448         and...
17449         (make_pass_remove_cgraph_callee_edges): ...new function.
17450         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
17451         struct to a subclass of rtl_opt_pass along with...
17452         (pass_data_stack_adjustments): ...new pass_data instance and...
17453         (make_pass_stack_adjustments): ...new function.
17454         * combine.c (pass_combine): Convert from a global struct to a subclass
17455         of rtl_opt_pass along with...
17456         (pass_data_combine): ...new pass_data instance and...
17457         (make_pass_combine): ...new function.
17458         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
17459         global struct to a subclass of rtl_opt_pass along with...
17460         (pass_data_compare_elim_after_reload): ...new pass_data instance
17461         and...
17462         (make_pass_compare_elim_after_reload): ...new function.
17463         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
17464         of rtl_opt_pass along with...
17465         (pass_data_rtl_cprop): ...new pass_data instance and...
17466         (make_pass_rtl_cprop): ...new function.
17467         * cse.c (pass_cse): Convert from a global struct to a subclass of
17468         rtl_opt_pass along with...
17469         (pass_data_cse): ...new pass_data instance and...
17470         (make_pass_cse): ...new function.
17471         (pass_cse2): Convert from a global struct to a subclass of
17472         rtl_opt_pass along with...
17473         (pass_data_cse2): ...new pass_data instance and...
17474         (make_pass_cse2): ...new function.
17475         (pass_cse_after_global_opts): Convert from a global struct to a
17476         subclass of rtl_opt_pass along with...
17477         (pass_data_cse_after_global_opts): ...new pass_data instance and...
17478         (make_pass_cse_after_global_opts): ...new function.
17479         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
17480         of rtl_opt_pass along with...
17481         (pass_data_ud_rtl_dce): ...new pass_data instance and...
17482         (make_pass_ud_rtl_dce): ...new function.
17483         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
17484         rtl_opt_pass along with...
17485         (pass_data_fast_rtl_dce): ...new pass_data instance and...
17486         (make_pass_fast_rtl_dce): ...new function.
17487         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
17488         a subclass of rtl_opt_pass along with...
17489         (pass_data_df_initialize_opt): ...new pass_data instance and...
17490         (make_pass_df_initialize_opt): ...new function.
17491         (pass_df_initialize_no_opt): Convert from a global struct to a
17492         subclass of rtl_opt_pass along with...
17493         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
17494         (make_pass_df_initialize_no_opt): ...new function.
17495         (pass_df_finish): Convert from a global struct to a subclass of
17496         rtl_opt_pass along with...
17497         (pass_data_df_finish): ...new pass_data instance and...
17498         (make_pass_df_finish): ...new function.
17499         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
17500         rtl_opt_pass along with...
17501         (pass_data_rtl_dse1): ...new pass_data instance and...
17502         (make_pass_rtl_dse1): ...new function.
17503         (pass_rtl_dse2): Convert from a global struct to a subclass of
17504         rtl_opt_pass along with...
17505         (pass_data_rtl_dse2): ...new pass_data instance and...
17506         (make_pass_rtl_dse2): ...new function.
17507         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
17508         subclass of rtl_opt_pass along with...
17509         (pass_data_dwarf2_frame): ...new pass_data instance and...
17510         (make_pass_dwarf2_frame): ...new function.
17511         * except.c (pass_set_nothrow_function_flags): Convert from a global
17512         struct to a subclass of rtl_opt_pass along with...
17513         (pass_data_set_nothrow_function_flags): ...new pass_data instance
17514         and...
17515         (make_pass_set_nothrow_function_flags): ...new function.
17516         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
17517         subclass of rtl_opt_pass along with...
17518         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
17519         and...
17520         (make_pass_convert_to_eh_region_ranges): ...new function.
17521         * final.c (pass_compute_alignments): Convert from a global struct to a
17522         subclass of rtl_opt_pass along with...
17523         (pass_data_compute_alignments): ...new pass_data instance and...
17524         (make_pass_compute_alignments): ...new function.
17525         (pass_final): Convert from a global struct to a subclass of
17526         rtl_opt_pass along with...
17527         (pass_data_final): ...new pass_data instance and...
17528         (make_pass_final): ...new function.
17529         (pass_shorten_branches): Convert from a global struct to a subclass of
17530         rtl_opt_pass along with...
17531         (pass_data_shorten_branches): ...new pass_data instance and...
17532         (make_pass_shorten_branches): ...new function.
17533         (pass_clean_state): Convert from a global struct to a subclass of
17534         rtl_opt_pass along with...
17535         (pass_data_clean_state): ...new pass_data instance and...
17536         (make_pass_clean_state): ...new function.
17537         * function.c (pass_instantiate_virtual_regs): Convert from a global
17538         struct to a subclass of rtl_opt_pass along with...
17539         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
17540         (make_pass_instantiate_virtual_regs): ...new function.
17541         (pass_leaf_regs): Convert from a global struct to a subclass of
17542         rtl_opt_pass along with...
17543         (pass_data_leaf_regs): ...new pass_data instance and...
17544         (make_pass_leaf_regs): ...new function.
17545         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
17546         subclass of rtl_opt_pass along with...
17547         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
17548         and...
17549         (make_pass_thread_prologue_and_epilogue): ...new function.
17550         (pass_match_asm_constraints): Convert from a global struct to a
17551         subclass of rtl_opt_pass along with...
17552         (pass_data_match_asm_constraints): ...new pass_data instance and...
17553         (make_pass_match_asm_constraints): ...new function.
17554         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
17555         subclass of rtl_opt_pass along with...
17556         (pass_data_rtl_fwprop): ...new pass_data instance and...
17557         (make_pass_rtl_fwprop): ...new function.
17558         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
17559         rtl_opt_pass along with...
17560         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
17561         (make_pass_rtl_fwprop_addr): ...new function.
17562         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
17563         rtl_opt_pass along with...
17564         (pass_data_rtl_pre): ...new pass_data instance and...
17565         (make_pass_rtl_pre): ...new function.
17566         (pass_rtl_hoist): Convert from a global struct to a subclass of
17567         rtl_opt_pass along with...
17568         (pass_data_rtl_hoist): ...new pass_data instance and...
17569         (make_pass_rtl_hoist): ...new function.
17570         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
17571         subclass of gimple_opt_pass along with...
17572         (pass_data_lower_cf): ...new pass_data instance and...
17573         (make_pass_lower_cf): ...new function.
17574         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
17575         from a global struct to a subclass of gimple_opt_pass along with...
17576         (pass_data_strength_reduction): ...new pass_data instance and...
17577         (make_pass_strength_reduction): ...new function.
17578         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
17579         of rtl_opt_pass along with...
17580         (pass_data_rtl_ifcvt): ...new pass_data instance and...
17581         (make_pass_rtl_ifcvt): ...new function.
17582         (pass_if_after_combine): Convert from a global struct to a subclass of
17583         rtl_opt_pass along with...
17584         (pass_data_if_after_combine): ...new pass_data instance and...
17585         (make_pass_if_after_combine): ...new function.
17586         (pass_if_after_reload): Convert from a global struct to a subclass of
17587         rtl_opt_pass along with...
17588         (pass_data_if_after_reload): ...new pass_data instance and...
17589         (make_pass_if_after_reload): ...new function.
17590         * init-regs.c (pass_initialize_regs): Convert from a global struct to
17591         a subclass of rtl_opt_pass along with...
17592         (pass_data_initialize_regs): ...new pass_data instance and...
17593         (make_pass_initialize_regs): ...new function.
17594         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
17595         of ipa_opt_pass_d along with...
17596         (pass_data_ipa_cp): ...new pass_data instance and...
17597         (make_pass_ipa_cp): ...new function.
17598         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
17599         global struct to a subclass of gimple_opt_pass along with...
17600         (pass_data_inline_parameters): ...new pass_data instance and...
17601         (make_pass_inline_parameters): ...new function.
17602         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
17603         subclass of gimple_opt_pass along with...
17604         (pass_data_early_inline): ...new pass_data instance and...
17605         (make_pass_early_inline): ...new function.
17606         (pass_ipa_inline): Convert from a global struct to a subclass of
17607         ipa_opt_pass_d along with...
17608         (pass_data_ipa_inline): ...new pass_data instance and...
17609         (make_pass_ipa_inline): ...new function.
17610         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
17611         struct to a subclass of gimple_opt_pass along with...
17612         (pass_data_local_pure_const): ...new pass_data instance and...
17613         (make_pass_local_pure_const): ...new function.
17614         (pass_ipa_pure_const): Convert from a global struct to a subclass of
17615         ipa_opt_pass_d along with...
17616         (pass_data_ipa_pure_const): ...new pass_data instance and...
17617         (make_pass_ipa_pure_const): ...new function.
17618         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
17619         to a subclass of ipa_opt_pass_d along with...
17620         (pass_data_ipa_reference): ...new pass_data instance and...
17621         (make_pass_ipa_reference): ...new function.
17622         * ipa-split.c (pass_split_functions): Convert from a global struct to
17623         a subclass of gimple_opt_pass along with...
17624         (pass_data_split_functions): ...new pass_data instance and...
17625         (make_pass_split_functions): ...new function.
17626         (pass_feedback_split_functions): Convert from a global struct to a
17627         subclass of gimple_opt_pass along with...
17628         (pass_data_feedback_split_functions): ...new pass_data instance and...
17629         (make_pass_feedback_split_functions): ...new function.
17630         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
17631         global struct to a subclass of simple_ipa_opt_pass along with...
17632         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
17633         instance and...
17634         (make_pass_ipa_function_and_variable_visibility): ...new function.
17635         (pass_ipa_free_inline_summary): Convert from a global struct to a
17636         subclass of simple_ipa_opt_pass along with...
17637         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
17638         (make_pass_ipa_free_inline_summary): ...new function.
17639         (pass_ipa_whole_program_visibility): Convert from a global struct to a
17640         subclass of ipa_opt_pass_d along with...
17641         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
17642         and...
17643         (make_pass_ipa_whole_program_visibility): ...new function.
17644         (pass_ipa_profile): Convert from a global struct to a subclass of
17645         ipa_opt_pass_d along with...
17646         (pass_data_ipa_profile): ...new pass_data instance and...
17647         (make_pass_ipa_profile): ...new function.
17648         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
17649         ipa_opt_pass_d along with...
17650         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
17651         (make_pass_ipa_cdtor_merge): ...new function.
17652         * ira.c (pass_ira): Convert from a global struct to a subclass of
17653         rtl_opt_pass along with...
17654         (pass_data_ira): ...new pass_data instance and...
17655         (make_pass_ira): ...new function.
17656         (pass_reload): Convert from a global struct to a subclass of
17657         rtl_opt_pass along with...
17658         (pass_data_reload): ...new pass_data instance and...
17659         (make_pass_reload): ...new function.
17660         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
17661         subclass of rtl_opt_pass along with...
17662         (pass_data_cleanup_barriers): ...new pass_data instance and...
17663         (make_pass_cleanup_barriers): ...new function.
17664         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
17665         of rtl_opt_pass along with...
17666         (pass_data_loop2): ...new pass_data instance and...
17667         (make_pass_loop2): ...new function.
17668         (pass_rtl_loop_init): Convert from a global struct to a subclass of
17669         rtl_opt_pass along with...
17670         (pass_data_rtl_loop_init): ...new pass_data instance and...
17671         (make_pass_rtl_loop_init): ...new function.
17672         (pass_rtl_loop_done): Convert from a global struct to a subclass of
17673         rtl_opt_pass along with...
17674         (pass_data_rtl_loop_done): ...new pass_data instance and...
17675         (make_pass_rtl_loop_done): ...new function.
17676         (pass_rtl_move_loop_invariants): Convert from a global struct to a
17677         subclass of rtl_opt_pass along with...
17678         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
17679         (make_pass_rtl_move_loop_invariants): ...new function.
17680         (pass_rtl_unswitch): Convert from a global struct to a subclass of
17681         rtl_opt_pass along with...
17682         (pass_data_rtl_unswitch): ...new pass_data instance and...
17683         (make_pass_rtl_unswitch): ...new function.
17684         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
17685         subclass of rtl_opt_pass along with...
17686         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
17687         and...
17688         (make_pass_rtl_unroll_and_peel_loops): ...new function.
17689         (pass_rtl_doloop): Convert from a global struct to a subclass of
17690         rtl_opt_pass along with...
17691         (pass_data_rtl_doloop): ...new pass_data instance and...
17692         (make_pass_rtl_doloop): ...new function.
17693         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
17694         a subclass of rtl_opt_pass along with...
17695         (pass_data_lower_subreg): ...new pass_data instance and...
17696         (make_pass_lower_subreg): ...new function.
17697         (pass_lower_subreg2): Convert from a global struct to a subclass of
17698         rtl_opt_pass along with...
17699         (pass_data_lower_subreg2): ...new pass_data instance and...
17700         (make_pass_lower_subreg2): ...new function.
17701         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
17702         struct to a subclass of ipa_opt_pass_d along with...
17703         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
17704         (make_pass_ipa_lto_gimple_out): ...new function.
17705         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
17706         of ipa_opt_pass_d along with...
17707         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
17708         (make_pass_ipa_lto_finish_out): ...new function.
17709         * mode-switching.c (pass_mode_switching): Convert from a global struct
17710         to a subclass of rtl_opt_pass along with...
17711         (pass_data_mode_switching): ...new pass_data instance and...
17712         (make_pass_mode_switching): ...new function.
17713         * modulo-sched.c (pass_sms): Convert from a global struct to a
17714         subclass of rtl_opt_pass along with...
17715         (pass_data_sms): ...new pass_data instance and...
17716         (make_pass_sms): ...new function.
17717         * omp-low.c (pass_expand_omp): Convert from a global struct to a
17718         subclass of gimple_opt_pass along with...
17719         (pass_data_expand_omp): ...new pass_data instance and...
17720         (make_pass_expand_omp): ...new function.
17721         (pass_lower_omp): Convert from a global struct to a subclass of
17722         gimple_opt_pass along with...
17723         (pass_data_lower_omp): ...new pass_data instance and...
17724         (make_pass_lower_omp): ...new function.
17725         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
17726         of gimple_opt_pass along with...
17727         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
17728         (make_pass_diagnose_omp_blocks): ...new function.
17729         * passes.c (pass_early_local_passes): Convert from a global struct to
17730         a subclass of simple_ipa_opt_pass along with...
17731         (pass_data_early_local_passes): ...new pass_data instance and...
17732         (make_pass_early_local_passes): ...new function.
17733         (pass_all_early_optimizations): Convert from a global struct to a
17734         subclass of gimple_opt_pass along with...
17735         (pass_data_all_early_optimizations): ...new pass_data instance and...
17736         (make_pass_all_early_optimizations): ...new function.
17737         (pass_all_optimizations): Convert from a global struct to a subclass
17738         of gimple_opt_pass along with...
17739         (pass_data_all_optimizations): ...new pass_data instance and...
17740         (make_pass_all_optimizations): ...new function.
17741         (pass_all_optimizations_g): Convert from a global struct to a subclass
17742         of gimple_opt_pass along with...
17743         (pass_data_all_optimizations_g): ...new pass_data instance and...
17744         (make_pass_all_optimizations_g): ...new function.
17745         (pass_rest_of_compilation): Convert from a global struct to a subclass
17746         of rtl_opt_pass along with...
17747         (pass_data_rest_of_compilation): ...new pass_data instance and...
17748         (make_pass_rest_of_compilation): ...new function.
17749         (pass_postreload): Convert from a global struct to a subclass of
17750         rtl_opt_pass along with...
17751         (pass_data_postreload): ...new pass_data instance and...
17752         (make_pass_postreload): ...new function.
17753         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
17754         subclass of rtl_opt_pass along with...
17755         (pass_data_gcse2): ...new pass_data instance and...
17756         (make_pass_gcse2): ...new function.
17757         * postreload.c (pass_postreload_cse): Convert from a global struct to
17758         a subclass of rtl_opt_pass along with...
17759         (pass_data_postreload_cse): ...new pass_data instance and...
17760         (make_pass_postreload_cse): ...new function.
17761         * predict.c (pass_profile): Convert from a global struct to a subclass
17762         of gimple_opt_pass along with...
17763         (pass_data_profile): ...new pass_data instance and...
17764         (make_pass_profile): ...new function.
17765         (pass_strip_predict_hints): Convert from a global struct to a subclass
17766         of gimple_opt_pass along with...
17767         (pass_data_strip_predict_hints): ...new pass_data instance and...
17768         (make_pass_strip_predict_hints): ...new function.
17769         * recog.c (pass_peephole2): Convert from a global struct to a subclass
17770         of rtl_opt_pass along with...
17771         (pass_data_peephole2): ...new pass_data instance and...
17772         (make_pass_peephole2): ...new function.
17773         (pass_split_all_insns): Convert from a global struct to a subclass of
17774         rtl_opt_pass along with...
17775         (pass_data_split_all_insns): ...new pass_data instance and...
17776         (make_pass_split_all_insns): ...new function.
17777         (pass_split_after_reload): Convert from a global struct to a subclass
17778         of rtl_opt_pass along with...
17779         (pass_data_split_after_reload): ...new pass_data instance and...
17780         (make_pass_split_after_reload): ...new function.
17781         (pass_split_before_regstack): Convert from a global struct to a
17782         subclass of rtl_opt_pass along with...
17783         (pass_data_split_before_regstack): ...new pass_data instance and...
17784         (make_pass_split_before_regstack): ...new function.
17785         (pass_split_before_sched2): Convert from a global struct to a subclass
17786         of rtl_opt_pass along with...
17787         (pass_data_split_before_sched2): ...new pass_data instance and...
17788         (make_pass_split_before_sched2): ...new function.
17789         (pass_split_for_shorten_branches): Convert from a global struct to a
17790         subclass of rtl_opt_pass along with...
17791         (pass_data_split_for_shorten_branches): ...new pass_data instance
17792         and...
17793         (make_pass_split_for_shorten_branches): ...new function.
17794         * ree.c (pass_ree): Convert from a global struct to a subclass of
17795         rtl_opt_pass along with...
17796         (pass_data_ree): ...new pass_data instance and...
17797         (make_pass_ree): ...new function.
17798         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
17799         subclass of rtl_opt_pass along with...
17800         (pass_data_stack_regs): ...new pass_data instance and...
17801         (make_pass_stack_regs): ...new function.
17802         (pass_stack_regs_run): Convert from a global struct to a subclass of
17803         rtl_opt_pass along with...
17804         (pass_data_stack_regs_run): ...new pass_data instance and...
17805         (make_pass_stack_regs_run): ...new function.
17806         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
17807         subclass of rtl_opt_pass along with...
17808         (pass_data_cprop_hardreg): ...new pass_data instance and...
17809         (make_pass_cprop_hardreg): ...new function.
17810         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
17811         subclass of rtl_opt_pass along with...
17812         (pass_data_reginfo_init): ...new pass_data instance and...
17813         (make_pass_reginfo_init): ...new function.
17814         * regmove.c (pass_regmove): Convert from a global struct to a subclass
17815         of rtl_opt_pass along with...
17816         (pass_data_regmove): ...new pass_data instance and...
17817         (make_pass_regmove): ...new function.
17818         * regrename.c (pass_regrename): Convert from a global struct to a
17819         subclass of rtl_opt_pass along with...
17820         (pass_data_regrename): ...new pass_data instance and...
17821         (make_pass_regrename): ...new function.
17822         * reorg.c (pass_delay_slots): Convert from a global struct to a
17823         subclass of rtl_opt_pass along with...
17824         (pass_data_delay_slots): ...new pass_data instance and...
17825         (make_pass_delay_slots): ...new function.
17826         (pass_machine_reorg): Convert from a global struct to a subclass of
17827         rtl_opt_pass along with...
17828         (pass_data_machine_reorg): ...new pass_data instance and...
17829         (make_pass_machine_reorg): ...new function.
17830         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
17831         of rtl_opt_pass along with...
17832         (pass_data_sched): ...new pass_data instance and...
17833         (make_pass_sched): ...new function.
17834         (pass_sched2): Convert from a global struct to a subclass of
17835         rtl_opt_pass along with...
17836         (pass_data_sched2): ...new pass_data instance and...
17837         (make_pass_sched2): ...new function.
17838         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
17839         to a subclass of rtl_opt_pass along with...
17840         (pass_data_stack_ptr_mod): ...new pass_data instance and...
17841         (make_pass_stack_ptr_mod): ...new function.
17842         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
17843         to a subclass of rtl_opt_pass along with...
17844         (pass_data_rtl_store_motion): ...new pass_data instance and...
17845         (make_pass_rtl_store_motion): ...new function.
17846         * tracer.c (pass_tracer): Convert from a global struct to a subclass
17847         of gimple_opt_pass along with...
17848         (pass_data_tracer): ...new pass_data instance and...
17849         (make_pass_tracer): ...new function.
17850         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
17851         to a subclass of gimple_opt_pass along with...
17852         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
17853         (make_pass_diagnose_tm_blocks): ...new function.
17854         (pass_lower_tm): Convert from a global struct to a subclass of
17855         gimple_opt_pass along with...
17856         (pass_data_lower_tm): ...new pass_data instance and...
17857         (make_pass_lower_tm): ...new function.
17858         (pass_tm_init): Convert from a global struct to a subclass of
17859         gimple_opt_pass along with...
17860         (pass_data_tm_init): ...new pass_data instance and...
17861         (make_pass_tm_init): ...new function.
17862         (pass_tm_mark): Convert from a global struct to a subclass of
17863         gimple_opt_pass along with...
17864         (pass_data_tm_mark): ...new pass_data instance and...
17865         (make_pass_tm_mark): ...new function.
17866         (pass_tm_edges): Convert from a global struct to a subclass of
17867         gimple_opt_pass along with...
17868         (pass_data_tm_edges): ...new pass_data instance and...
17869         (make_pass_tm_edges): ...new function.
17870         (pass_tm_memopt): Convert from a global struct to a subclass of
17871         gimple_opt_pass along with...
17872         (pass_data_tm_memopt): ...new pass_data instance and...
17873         (make_pass_tm_memopt): ...new function.
17874         (pass_ipa_tm): Convert from a global struct to a subclass of
17875         simple_ipa_opt_pass along with...
17876         (pass_data_ipa_tm): ...new pass_data instance and...
17877         (make_pass_ipa_tm): ...new function.
17878         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
17879         subclass of gimple_opt_pass along with...
17880         (pass_data_call_cdce): ...new pass_data instance and...
17881         (make_pass_call_cdce): ...new function.
17882         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
17883         subclass of gimple_opt_pass along with...
17884         (pass_data_build_cfg): ...new pass_data instance and...
17885         (make_pass_build_cfg): ...new function.
17886         (pass_split_crit_edges): Convert from a global struct to a subclass of
17887         gimple_opt_pass along with...
17888         (pass_data_split_crit_edges): ...new pass_data instance and...
17889         (make_pass_split_crit_edges): ...new function.
17890         (pass_warn_function_return): Convert from a global struct to a
17891         subclass of gimple_opt_pass along with...
17892         (pass_data_warn_function_return): ...new pass_data instance and...
17893         (make_pass_warn_function_return): ...new function.
17894         (pass_warn_function_noreturn): Convert from a global struct to a
17895         subclass of gimple_opt_pass along with...
17896         (pass_data_warn_function_noreturn): ...new pass_data instance and...
17897         (make_pass_warn_function_noreturn): ...new function.
17898         (pass_warn_unused_result): Convert from a global struct to a subclass
17899         of gimple_opt_pass along with...
17900         (pass_data_warn_unused_result): ...new pass_data instance and...
17901         (make_pass_warn_unused_result): ...new function.
17902         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
17903         a subclass of gimple_opt_pass along with...
17904         (pass_data_merge_phi): ...new pass_data instance and...
17905         (make_pass_merge_phi): ...new function.
17906         * tree-complex.c (pass_lower_complex): Convert from a global struct to
17907         a subclass of gimple_opt_pass along with...
17908         (pass_data_lower_complex): ...new pass_data instance and...
17909         (make_pass_lower_complex): ...new function.
17910         (pass_lower_complex_O0): Convert from a global struct to a subclass of
17911         gimple_opt_pass along with...
17912         (pass_data_lower_complex_O0): ...new pass_data instance and...
17913         (make_pass_lower_complex_O0): ...new function.
17914         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
17915         subclass of gimple_opt_pass along with...
17916         (pass_data_lower_eh): ...new pass_data instance and...
17917         (make_pass_lower_eh): ...new function.
17918         (pass_refactor_eh): Convert from a global struct to a subclass of
17919         gimple_opt_pass along with...
17920         (pass_data_refactor_eh): ...new pass_data instance and...
17921         (make_pass_refactor_eh): ...new function.
17922         (pass_lower_resx): Convert from a global struct to a subclass of
17923         gimple_opt_pass along with...
17924         (pass_data_lower_resx): ...new pass_data instance and...
17925         (make_pass_lower_resx): ...new function.
17926         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
17927         of gimple_opt_pass along with...
17928         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
17929         (make_pass_lower_eh_dispatch): ...new function.
17930         (pass_cleanup_eh): Convert from a global struct to a subclass of
17931         gimple_opt_pass along with...
17932         (pass_data_cleanup_eh): ...new pass_data instance and...
17933         (make_pass_cleanup_eh): ...new function.
17934         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
17935         to a subclass of simple_ipa_opt_pass along with...
17936         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
17937         (make_pass_ipa_lower_emutls): ...new function.
17938         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
17939         a subclass of gimple_opt_pass along with...
17940         (pass_data_if_conversion): ...new pass_data instance and...
17941         (make_pass_if_conversion): ...new function.
17942         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
17943         subclass of gimple_opt_pass along with...
17944         (pass_data_build_ssa): ...new pass_data instance and...
17945         (make_pass_build_ssa): ...new function.
17946         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
17947         global struct to a subclass of gimple_opt_pass along with...
17948         (pass_data_loop_distribution): ...new pass_data instance and...
17949         (make_pass_loop_distribution): ...new function.
17950         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
17951         subclass of gimple_opt_pass along with...
17952         (pass_data_mudflap_1): ...new pass_data instance and...
17953         (make_pass_mudflap_1): ...new function.
17954         (pass_mudflap_2): Convert from a global struct to a subclass of
17955         gimple_opt_pass along with...
17956         (pass_data_mudflap_2): ...new pass_data instance and...
17957         (make_pass_mudflap_2): ...new function.
17958         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
17959         subclass of gimple_opt_pass along with...
17960         (pass_data_mudflap_1): ...new pass_data instance and...
17961         (make_pass_mudflap_1): ...new function.
17962         (pass_mudflap_2): Convert from a global struct to a subclass of
17963         gimple_opt_pass along with...
17964         (pass_data_mudflap_2): ...new pass_data instance and...
17965         (make_pass_mudflap_2): ...new function.
17966         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
17967         gimple_opt_pass along with...
17968         (pass_data_nrv): ...new pass_data instance and...
17969         (make_pass_nrv): ...new function.
17970         (pass_return_slot): Convert from a global struct to a subclass of
17971         gimple_opt_pass along with...
17972         (pass_data_return_slot): ...new pass_data instance and...
17973         (make_pass_return_slot): ...new function.
17974         * tree-object-size.c (pass_object_sizes): Convert from a global struct
17975         to a subclass of gimple_opt_pass along with...
17976         (pass_data_object_sizes): ...new pass_data instance and...
17977         (make_pass_object_sizes): ...new function.
17978         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
17979         global struct to a subclass of gimple_opt_pass along with...
17980         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
17981         and...
17982         (make_pass_cleanup_cfg_post_optimizing): ...new function.
17983         (pass_fixup_cfg): Convert from a global struct to a subclass of
17984         gimple_opt_pass along with...
17985         (pass_data_fixup_cfg): ...new pass_data instance and...
17986         (make_pass_fixup_cfg): ...new function.
17987         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
17988         (make_pass_mudflap_1): ...new function.
17989         (pass_mudflap_2): Replace declaration with that of...
17990         (make_pass_mudflap_2): ...new function.
17991         (pass_asan): Replace declaration with that of...
17992         (make_pass_asan): ...new function.
17993         (pass_asan_O0): Replace declaration with that of...
17994         (make_pass_asan_O0): ...new function.
17995         (pass_tsan): Replace declaration with that of...
17996         (make_pass_tsan): ...new function.
17997         (pass_tsan_O0): Replace declaration with that of...
17998         (make_pass_tsan_O0): ...new function.
17999         (pass_lower_cf): Replace declaration with that of...
18000         (make_pass_lower_cf): ...new function.
18001         (pass_refactor_eh): Replace declaration with that of...
18002         (make_pass_refactor_eh): ...new function.
18003         (pass_lower_eh): Replace declaration with that of...
18004         (make_pass_lower_eh): ...new function.
18005         (pass_lower_eh_dispatch): Replace declaration with that of...
18006         (make_pass_lower_eh_dispatch): ...new function.
18007         (pass_lower_resx): Replace declaration with that of...
18008         (make_pass_lower_resx): ...new function.
18009         (pass_build_cfg): Replace declaration with that of...
18010         (make_pass_build_cfg): ...new function.
18011         (pass_early_tree_profile): Replace declaration with that of...
18012         (make_pass_early_tree_profile): ...new function.
18013         (pass_cleanup_eh): Replace declaration with that of...
18014         (make_pass_cleanup_eh): ...new function.
18015         (pass_sra): Replace declaration with that of...
18016         (make_pass_sra): ...new function.
18017         (pass_sra_early): Replace declaration with that of...
18018         (make_pass_sra_early): ...new function.
18019         (pass_early_ipa_sra): Replace declaration with that of...
18020         (make_pass_early_ipa_sra): ...new function.
18021         (pass_tail_recursion): Replace declaration with that of...
18022         (make_pass_tail_recursion): ...new function.
18023         (pass_tail_calls): Replace declaration with that of...
18024         (make_pass_tail_calls): ...new function.
18025         (pass_tree_loop): Replace declaration with that of...
18026         (make_pass_tree_loop): ...new function.
18027         (pass_tree_loop_init): Replace declaration with that of...
18028         (make_pass_tree_loop_init): ...new function.
18029         (pass_lim): Replace declaration with that of...
18030         (make_pass_lim): ...new function.
18031         (pass_tree_unswitch): Replace declaration with that of...
18032         (make_pass_tree_unswitch): ...new function.
18033         (pass_predcom): Replace declaration with that of...
18034         (make_pass_predcom): ...new function.
18035         (pass_iv_canon): Replace declaration with that of...
18036         (make_pass_iv_canon): ...new function.
18037         (pass_scev_cprop): Replace declaration with that of...
18038         (make_pass_scev_cprop): ...new function.
18039         (pass_empty_loop): Replace declaration with that of...
18040         (make_pass_empty_loop): ...new function.
18041         (pass_record_bounds): Replace declaration with that of...
18042         (make_pass_record_bounds): ...new function.
18043         (pass_graphite): Replace declaration with that of...
18044         (make_pass_graphite): ...new function.
18045         (pass_graphite_transforms): Replace declaration with that of...
18046         (make_pass_graphite_transforms): ...new function.
18047         (pass_if_conversion): Replace declaration with that of...
18048         (make_pass_if_conversion): ...new function.
18049         (pass_loop_distribution): Replace declaration with that of...
18050         (make_pass_loop_distribution): ...new function.
18051         (pass_vectorize): Replace declaration with that of...
18052         (make_pass_vectorize): ...new function.
18053         (pass_slp_vectorize): Replace declaration with that of...
18054         (make_pass_slp_vectorize): ...new function.
18055         (pass_complete_unroll): Replace declaration with that of...
18056         (make_pass_complete_unroll): ...new function.
18057         (pass_complete_unrolli): Replace declaration with that of...
18058         (make_pass_complete_unrolli): ...new function.
18059         (pass_parallelize_loops): Replace declaration with that of...
18060         (make_pass_parallelize_loops): ...new function.
18061         (pass_loop_prefetch): Replace declaration with that of...
18062         (make_pass_loop_prefetch): ...new function.
18063         (pass_iv_optimize): Replace declaration with that of...
18064         (make_pass_iv_optimize): ...new function.
18065         (pass_tree_loop_done): Replace declaration with that of...
18066         (make_pass_tree_loop_done): ...new function.
18067         (pass_ch): Replace declaration with that of...
18068         (make_pass_ch): ...new function.
18069         (pass_ccp): Replace declaration with that of...
18070         (make_pass_ccp): ...new function.
18071         (pass_phi_only_cprop): Replace declaration with that of...
18072         (make_pass_phi_only_cprop): ...new function.
18073         (pass_build_ssa): Replace declaration with that of...
18074         (make_pass_build_ssa): ...new function.
18075         (pass_build_alias): Replace declaration with that of...
18076         (make_pass_build_alias): ...new function.
18077         (pass_build_ealias): Replace declaration with that of...
18078         (make_pass_build_ealias): ...new function.
18079         (pass_dominator): Replace declaration with that of...
18080         (make_pass_dominator): ...new function.
18081         (pass_dce): Replace declaration with that of...
18082         (make_pass_dce): ...new function.
18083         (pass_dce_loop): Replace declaration with that of...
18084         (make_pass_dce_loop): ...new function.
18085         (pass_cd_dce): Replace declaration with that of...
18086         (make_pass_cd_dce): ...new function.
18087         (pass_call_cdce): Replace declaration with that of...
18088         (make_pass_call_cdce): ...new function.
18089         (pass_merge_phi): Replace declaration with that of...
18090         (make_pass_merge_phi): ...new function.
18091         (pass_split_crit_edges): Replace declaration with that of...
18092         (make_pass_split_crit_edges): ...new function.
18093         (pass_pre): Replace declaration with that of...
18094         (make_pass_pre): ...new function.
18095         (pass_profile): Replace declaration with that of...
18096         (make_pass_profile): ...new function.
18097         (pass_strip_predict_hints): Replace declaration with that of...
18098         (make_pass_strip_predict_hints): ...new function.
18099         (pass_lower_complex_O0): Replace declaration with that of...
18100         (make_pass_lower_complex_O0): ...new function.
18101         (pass_lower_complex): Replace declaration with that of...
18102         (make_pass_lower_complex): ...new function.
18103         (pass_lower_vector): Replace declaration with that of...
18104         (make_pass_lower_vector): ...new function.
18105         (pass_lower_vector_ssa): Replace declaration with that of...
18106         (make_pass_lower_vector_ssa): ...new function.
18107         (pass_lower_omp): Replace declaration with that of...
18108         (make_pass_lower_omp): ...new function.
18109         (pass_diagnose_omp_blocks): Replace declaration with that of...
18110         (make_pass_diagnose_omp_blocks): ...new function.
18111         (pass_expand_omp): Replace declaration with that of...
18112         (make_pass_expand_omp): ...new function.
18113         (pass_expand_omp_ssa): Replace declaration with that of...
18114         (make_pass_expand_omp_ssa): ...new function.
18115         (pass_object_sizes): Replace declaration with that of...
18116         (make_pass_object_sizes): ...new function.
18117         (pass_strlen): Replace declaration with that of...
18118         (make_pass_strlen): ...new function.
18119         (pass_fold_builtins): Replace declaration with that of...
18120         (make_pass_fold_builtins): ...new function.
18121         (pass_stdarg): Replace declaration with that of...
18122         (make_pass_stdarg): ...new function.
18123         (pass_early_warn_uninitialized): Replace declaration with that of...
18124         (make_pass_early_warn_uninitialized): ...new function.
18125         (pass_late_warn_uninitialized): Replace declaration with that of...
18126         (make_pass_late_warn_uninitialized): ...new function.
18127         (pass_cse_reciprocals): Replace declaration with that of...
18128         (make_pass_cse_reciprocals): ...new function.
18129         (pass_cse_sincos): Replace declaration with that of...
18130         (make_pass_cse_sincos): ...new function.
18131         (pass_optimize_bswap): Replace declaration with that of...
18132         (make_pass_optimize_bswap): ...new function.
18133         (pass_optimize_widening_mul): Replace declaration with that of...
18134         (make_pass_optimize_widening_mul): ...new function.
18135         (pass_warn_function_return): Replace declaration with that of...
18136         (make_pass_warn_function_return): ...new function.
18137         (pass_warn_function_noreturn): Replace declaration with that of...
18138         (make_pass_warn_function_noreturn): ...new function.
18139         (pass_cselim): Replace declaration with that of...
18140         (make_pass_cselim): ...new function.
18141         (pass_phiopt): Replace declaration with that of...
18142         (make_pass_phiopt): ...new function.
18143         (pass_forwprop): Replace declaration with that of...
18144         (make_pass_forwprop): ...new function.
18145         (pass_phiprop): Replace declaration with that of...
18146         (make_pass_phiprop): ...new function.
18147         (pass_tree_ifcombine): Replace declaration with that of...
18148         (make_pass_tree_ifcombine): ...new function.
18149         (pass_dse): Replace declaration with that of...
18150         (make_pass_dse): ...new function.
18151         (pass_nrv): Replace declaration with that of...
18152         (make_pass_nrv): ...new function.
18153         (pass_rename_ssa_copies): Replace declaration with that of...
18154         (make_pass_rename_ssa_copies): ...new function.
18155         (pass_sink_code): Replace declaration with that of...
18156         (make_pass_sink_code): ...new function.
18157         (pass_fre): Replace declaration with that of...
18158         (make_pass_fre): ...new function.
18159         (pass_check_data_deps): Replace declaration with that of...
18160         (make_pass_check_data_deps): ...new function.
18161         (pass_copy_prop): Replace declaration with that of...
18162         (make_pass_copy_prop): ...new function.
18163         (pass_vrp): Replace declaration with that of...
18164         (make_pass_vrp): ...new function.
18165         (pass_uncprop): Replace declaration with that of...
18166         (make_pass_uncprop): ...new function.
18167         (pass_return_slot): Replace declaration with that of...
18168         (make_pass_return_slot): ...new function.
18169         (pass_reassoc): Replace declaration with that of...
18170         (make_pass_reassoc): ...new function.
18171         (pass_rebuild_cgraph_edges): Replace declaration with that of...
18172         (make_pass_rebuild_cgraph_edges): ...new function.
18173         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
18174         (make_pass_remove_cgraph_callee_edges): ...new function.
18175         (pass_build_cgraph_edges): Replace declaration with that of...
18176         (make_pass_build_cgraph_edges): ...new function.
18177         (pass_local_pure_const): Replace declaration with that of...
18178         (make_pass_local_pure_const): ...new function.
18179         (pass_tracer): Replace declaration with that of...
18180         (make_pass_tracer): ...new function.
18181         (pass_warn_unused_result): Replace declaration with that of...
18182         (make_pass_warn_unused_result): ...new function.
18183         (pass_diagnose_tm_blocks): Replace declaration with that of...
18184         (make_pass_diagnose_tm_blocks): ...new function.
18185         (pass_lower_tm): Replace declaration with that of...
18186         (make_pass_lower_tm): ...new function.
18187         (pass_tm_init): Replace declaration with that of...
18188         (make_pass_tm_init): ...new function.
18189         (pass_tm_mark): Replace declaration with that of...
18190         (make_pass_tm_mark): ...new function.
18191         (pass_tm_memopt): Replace declaration with that of...
18192         (make_pass_tm_memopt): ...new function.
18193         (pass_tm_edges): Replace declaration with that of...
18194         (make_pass_tm_edges): ...new function.
18195         (pass_split_functions): Replace declaration with that of...
18196         (make_pass_split_functions): ...new function.
18197         (pass_feedback_split_functions): Replace declaration with that of...
18198         (make_pass_feedback_split_functions): ...new function.
18199         (pass_strength_reduction): Replace declaration with that of...
18200         (make_pass_strength_reduction): ...new function.
18201         (pass_ipa_lower_emutls): Replace declaration with that of...
18202         (make_pass_ipa_lower_emutls): ...new function.
18203         (pass_ipa_function_and_variable_visibility): Replace declaration with
18204         that of...
18205         (make_pass_ipa_function_and_variable_visibility): ...new function.
18206         (pass_ipa_tree_profile): Replace declaration with that of...
18207         (make_pass_ipa_tree_profile): ...new function.
18208         (pass_early_local_passes): Replace declaration with that of...
18209         (make_pass_early_local_passes): ...new function.
18210         (pass_ipa_whole_program_visibility): Replace declaration with that
18211         of...
18212         (make_pass_ipa_whole_program_visibility): ...new function.
18213         (pass_ipa_lto_gimple_out): Replace declaration with that of...
18214         (make_pass_ipa_lto_gimple_out): ...new function.
18215         (pass_ipa_increase_alignment): Replace declaration with that of...
18216         (make_pass_ipa_increase_alignment): ...new function.
18217         (pass_ipa_inline): Replace declaration with that of...
18218         (make_pass_ipa_inline): ...new function.
18219         (pass_ipa_free_lang_data): Replace declaration with that of...
18220         (make_pass_ipa_free_lang_data): ...new function.
18221         (pass_ipa_free_inline_summary): Replace declaration with that of...
18222         (make_pass_ipa_free_inline_summary): ...new function.
18223         (pass_ipa_cp): Replace declaration with that of...
18224         (make_pass_ipa_cp): ...new function.
18225         (pass_ipa_reference): Replace declaration with that of...
18226         (make_pass_ipa_reference): ...new function.
18227         (pass_ipa_pure_const): Replace declaration with that of...
18228         (make_pass_ipa_pure_const): ...new function.
18229         (pass_ipa_pta): Replace declaration with that of...
18230         (make_pass_ipa_pta): ...new function.
18231         (pass_ipa_lto_finish_out): Replace declaration with that of...
18232         (make_pass_ipa_lto_finish_out): ...new function.
18233         (pass_ipa_tm): Replace declaration with that of...
18234         (make_pass_ipa_tm): ...new function.
18235         (pass_ipa_profile): Replace declaration with that of...
18236         (make_pass_ipa_profile): ...new function.
18237         (pass_ipa_cdtor_merge): Replace declaration with that of...
18238         (make_pass_ipa_cdtor_merge): ...new function.
18239         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
18240         of...
18241         (make_pass_cleanup_cfg_post_optimizing): ...new function.
18242         (pass_init_datastructures): Replace declaration with that of...
18243         (make_pass_init_datastructures): ...new function.
18244         (pass_fixup_cfg): Replace declaration with that of...
18245         (make_pass_fixup_cfg): ...new function.
18246         (pass_expand): Replace declaration with that of...
18247         (make_pass_expand): ...new function.
18248         (pass_instantiate_virtual_regs): Replace declaration with that of...
18249         (make_pass_instantiate_virtual_regs): ...new function.
18250         (pass_rtl_fwprop): Replace declaration with that of...
18251         (make_pass_rtl_fwprop): ...new function.
18252         (pass_rtl_fwprop_addr): Replace declaration with that of...
18253         (make_pass_rtl_fwprop_addr): ...new function.
18254         (pass_jump): Replace declaration with that of...
18255         (make_pass_jump): ...new function.
18256         (pass_jump2): Replace declaration with that of...
18257         (make_pass_jump2): ...new function.
18258         (pass_lower_subreg): Replace declaration with that of...
18259         (make_pass_lower_subreg): ...new function.
18260         (pass_cse): Replace declaration with that of...
18261         (make_pass_cse): ...new function.
18262         (pass_fast_rtl_dce): Replace declaration with that of...
18263         (make_pass_fast_rtl_dce): ...new function.
18264         (pass_ud_rtl_dce): Replace declaration with that of...
18265         (make_pass_ud_rtl_dce): ...new function.
18266         (pass_rtl_dce): Replace declaration with that of...
18267         (make_pass_rtl_dce): ...new function.
18268         (pass_rtl_dse1): Replace declaration with that of...
18269         (make_pass_rtl_dse1): ...new function.
18270         (pass_rtl_dse2): Replace declaration with that of...
18271         (make_pass_rtl_dse2): ...new function.
18272         (pass_rtl_dse3): Replace declaration with that of...
18273         (make_pass_rtl_dse3): ...new function.
18274         (pass_rtl_cprop): Replace declaration with that of...
18275         (make_pass_rtl_cprop): ...new function.
18276         (pass_rtl_pre): Replace declaration with that of...
18277         (make_pass_rtl_pre): ...new function.
18278         (pass_rtl_hoist): Replace declaration with that of...
18279         (make_pass_rtl_hoist): ...new function.
18280         (pass_rtl_store_motion): Replace declaration with that of...
18281         (make_pass_rtl_store_motion): ...new function.
18282         (pass_cse_after_global_opts): Replace declaration with that of...
18283         (make_pass_cse_after_global_opts): ...new function.
18284         (pass_rtl_ifcvt): Replace declaration with that of...
18285         (make_pass_rtl_ifcvt): ...new function.
18286         (pass_into_cfg_layout_mode): Replace declaration with that of...
18287         (make_pass_into_cfg_layout_mode): ...new function.
18288         (pass_outof_cfg_layout_mode): Replace declaration with that of...
18289         (make_pass_outof_cfg_layout_mode): ...new function.
18290         (pass_loop2): Replace declaration with that of...
18291         (make_pass_loop2): ...new function.
18292         (pass_rtl_loop_init): Replace declaration with that of...
18293         (make_pass_rtl_loop_init): ...new function.
18294         (pass_rtl_move_loop_invariants): Replace declaration with that of...
18295         (make_pass_rtl_move_loop_invariants): ...new function.
18296         (pass_rtl_unswitch): Replace declaration with that of...
18297         (make_pass_rtl_unswitch): ...new function.
18298         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
18299         (make_pass_rtl_unroll_and_peel_loops): ...new function.
18300         (pass_rtl_doloop): Replace declaration with that of...
18301         (make_pass_rtl_doloop): ...new function.
18302         (pass_rtl_loop_done): Replace declaration with that of...
18303         (make_pass_rtl_loop_done): ...new function.
18304         (pass_web): Replace declaration with that of...
18305         (make_pass_web): ...new function.
18306         (pass_cse2): Replace declaration with that of...
18307         (make_pass_cse2): ...new function.
18308         (pass_df_initialize_opt): Replace declaration with that of...
18309         (make_pass_df_initialize_opt): ...new function.
18310         (pass_df_initialize_no_opt): Replace declaration with that of...
18311         (make_pass_df_initialize_no_opt): ...new function.
18312         (pass_reginfo_init): Replace declaration with that of...
18313         (make_pass_reginfo_init): ...new function.
18314         (pass_inc_dec): Replace declaration with that of...
18315         (make_pass_inc_dec): ...new function.
18316         (pass_stack_ptr_mod): Replace declaration with that of...
18317         (make_pass_stack_ptr_mod): ...new function.
18318         (pass_initialize_regs): Replace declaration with that of...
18319         (make_pass_initialize_regs): ...new function.
18320         (pass_combine): Replace declaration with that of...
18321         (make_pass_combine): ...new function.
18322         (pass_if_after_combine): Replace declaration with that of...
18323         (make_pass_if_after_combine): ...new function.
18324         (pass_ree): Replace declaration with that of...
18325         (make_pass_ree): ...new function.
18326         (pass_partition_blocks): Replace declaration with that of...
18327         (make_pass_partition_blocks): ...new function.
18328         (pass_match_asm_constraints): Replace declaration with that of...
18329         (make_pass_match_asm_constraints): ...new function.
18330         (pass_regmove): Replace declaration with that of...
18331         (make_pass_regmove): ...new function.
18332         (pass_split_all_insns): Replace declaration with that of...
18333         (make_pass_split_all_insns): ...new function.
18334         (pass_fast_rtl_byte_dce): Replace declaration with that of...
18335         (make_pass_fast_rtl_byte_dce): ...new function.
18336         (pass_lower_subreg2): Replace declaration with that of...
18337         (make_pass_lower_subreg2): ...new function.
18338         (pass_mode_switching): Replace declaration with that of...
18339         (make_pass_mode_switching): ...new function.
18340         (pass_sms): Replace declaration with that of...
18341         (make_pass_sms): ...new function.
18342         (pass_sched): Replace declaration with that of...
18343         (make_pass_sched): ...new function.
18344         (pass_ira): Replace declaration with that of...
18345         (make_pass_ira): ...new function.
18346         (pass_reload): Replace declaration with that of...
18347         (make_pass_reload): ...new function.
18348         (pass_clean_state): Replace declaration with that of...
18349         (make_pass_clean_state): ...new function.
18350         (pass_branch_prob): Replace declaration with that of...
18351         (make_pass_branch_prob): ...new function.
18352         (pass_value_profile_transformations): Replace declaration with that
18353         of...
18354         (make_pass_value_profile_transformations): ...new function.
18355         (pass_postreload_cse): Replace declaration with that of...
18356         (make_pass_postreload_cse): ...new function.
18357         (pass_gcse2): Replace declaration with that of...
18358         (make_pass_gcse2): ...new function.
18359         (pass_split_after_reload): Replace declaration with that of...
18360         (make_pass_split_after_reload): ...new function.
18361         (pass_branch_target_load_optimize1): Replace declaration with that
18362         of...
18363         (make_pass_branch_target_load_optimize1): ...new function.
18364         (pass_thread_prologue_and_epilogue): Replace declaration with that
18365         of...
18366         (make_pass_thread_prologue_and_epilogue): ...new function.
18367         (pass_stack_adjustments): Replace declaration with that of...
18368         (make_pass_stack_adjustments): ...new function.
18369         (pass_peephole2): Replace declaration with that of...
18370         (make_pass_peephole2): ...new function.
18371         (pass_if_after_reload): Replace declaration with that of...
18372         (make_pass_if_after_reload): ...new function.
18373         (pass_regrename): Replace declaration with that of...
18374         (make_pass_regrename): ...new function.
18375         (pass_cprop_hardreg): Replace declaration with that of...
18376         (make_pass_cprop_hardreg): ...new function.
18377         (pass_reorder_blocks): Replace declaration with that of...
18378         (make_pass_reorder_blocks): ...new function.
18379         (pass_branch_target_load_optimize2): Replace declaration with that
18380         of...
18381         (make_pass_branch_target_load_optimize2): ...new function.
18382         (pass_leaf_regs): Replace declaration with that of...
18383         (make_pass_leaf_regs): ...new function.
18384         (pass_split_before_sched2): Replace declaration with that of...
18385         (make_pass_split_before_sched2): ...new function.
18386         (pass_compare_elim_after_reload): Replace declaration with that of...
18387         (make_pass_compare_elim_after_reload): ...new function.
18388         (pass_sched2): Replace declaration with that of...
18389         (make_pass_sched2): ...new function.
18390         (pass_stack_regs): Replace declaration with that of...
18391         (make_pass_stack_regs): ...new function.
18392         (pass_stack_regs_run): Replace declaration with that of...
18393         (make_pass_stack_regs_run): ...new function.
18394         (pass_df_finish): Replace declaration with that of...
18395         (make_pass_df_finish): ...new function.
18396         (pass_compute_alignments): Replace declaration with that of...
18397         (make_pass_compute_alignments): ...new function.
18398         (pass_duplicate_computed_gotos): Replace declaration with that of...
18399         (make_pass_duplicate_computed_gotos): ...new function.
18400         (pass_variable_tracking): Replace declaration with that of...
18401         (make_pass_variable_tracking): ...new function.
18402         (pass_free_cfg): Replace declaration with that of...
18403         (make_pass_free_cfg): ...new function.
18404         (pass_machine_reorg): Replace declaration with that of...
18405         (make_pass_machine_reorg): ...new function.
18406         (pass_cleanup_barriers): Replace declaration with that of...
18407         (make_pass_cleanup_barriers): ...new function.
18408         (pass_delay_slots): Replace declaration with that of...
18409         (make_pass_delay_slots): ...new function.
18410         (pass_split_for_shorten_branches): Replace declaration with that of...
18411         (make_pass_split_for_shorten_branches): ...new function.
18412         (pass_split_before_regstack): Replace declaration with that of...
18413         (make_pass_split_before_regstack): ...new function.
18414         (pass_convert_to_eh_region_ranges): Replace declaration with that
18415         of...
18416         (make_pass_convert_to_eh_region_ranges): ...new function.
18417         (pass_shorten_branches): Replace declaration with that of...
18418         (make_pass_shorten_branches): ...new function.
18419         (pass_set_nothrow_function_flags): Replace declaration with that of...
18420         (make_pass_set_nothrow_function_flags): ...new function.
18421         (pass_dwarf2_frame): Replace declaration with that of...
18422         (make_pass_dwarf2_frame): ...new function.
18423         (pass_final): Replace declaration with that of...
18424         (make_pass_final): ...new function.
18425         (pass_rtl_seqabstr): Replace declaration with that of...
18426         (make_pass_rtl_seqabstr): ...new function.
18427         (pass_release_ssa_names): Replace declaration with that of...
18428         (make_pass_release_ssa_names): ...new function.
18429         (pass_early_inline): Replace declaration with that of...
18430         (make_pass_early_inline): ...new function.
18431         (pass_inline_parameters): Replace declaration with that of...
18432         (make_pass_inline_parameters): ...new function.
18433         (pass_update_address_taken): Replace declaration with that of...
18434         (make_pass_update_address_taken): ...new function.
18435         (pass_convert_switch): Replace declaration with that of...
18436         (make_pass_convert_switch): ...new function.
18437         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
18438         to a subclass of simple_ipa_opt_pass along with...
18439         (pass_data_ipa_tree_profile): ...new pass_data instance and...
18440         (make_pass_ipa_tree_profile): ...new function.
18441         * tree-sra.c (pass_sra_early): Convert from a global struct to a
18442         subclass of gimple_opt_pass along with...
18443         (pass_data_sra_early): ...new pass_data instance and...
18444         (make_pass_sra_early): ...new function.
18445         (pass_sra): Convert from a global struct to a subclass of
18446         gimple_opt_pass along with...
18447         (pass_data_sra): ...new pass_data instance and...
18448         (make_pass_sra): ...new function.
18449         (pass_early_ipa_sra): Convert from a global struct to a subclass of
18450         gimple_opt_pass along with...
18451         (pass_data_early_ipa_sra): ...new pass_data instance and...
18452         (make_pass_early_ipa_sra): ...new function.
18453         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
18454         subclass of gimple_opt_pass along with...
18455         (pass_data_ccp): ...new pass_data instance and...
18456         (make_pass_ccp): ...new function.
18457         (pass_fold_builtins): Convert from a global struct to a subclass of
18458         gimple_opt_pass along with...
18459         (pass_data_fold_builtins): ...new pass_data instance and...
18460         (make_pass_fold_builtins): ...new function.
18461         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
18462         subclass of gimple_opt_pass along with...
18463         (pass_data_copy_prop): ...new pass_data instance and...
18464         (make_pass_copy_prop): ...new function.
18465         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
18466         global struct to a subclass of gimple_opt_pass along with...
18467         (pass_data_rename_ssa_copies): ...new pass_data instance and...
18468         (make_pass_rename_ssa_copies): ...new function.
18469         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
18470         subclass of gimple_opt_pass along with...
18471         (pass_data_dce): ...new pass_data instance and...
18472         (make_pass_dce): ...new function.
18473         (pass_dce_loop): Convert from a global struct to a subclass of
18474         gimple_opt_pass along with...
18475         (pass_data_dce_loop): ...new pass_data instance and...
18476         (make_pass_dce_loop): ...new function.
18477         (pass_cd_dce): Convert from a global struct to a subclass of
18478         gimple_opt_pass along with...
18479         (pass_data_cd_dce): ...new pass_data instance and...
18480         (make_pass_cd_dce): ...new function.
18481         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
18482         subclass of gimple_opt_pass along with...
18483         (pass_data_dominator): ...new pass_data instance and...
18484         (make_pass_dominator): ...new function.
18485         (pass_phi_only_cprop): Convert from a global struct to a subclass of
18486         gimple_opt_pass along with...
18487         (pass_data_phi_only_cprop): ...new pass_data instance and...
18488         (make_pass_phi_only_cprop): ...new function.
18489         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
18490         subclass of gimple_opt_pass along with...
18491         (pass_data_dse): ...new pass_data instance and...
18492         (make_pass_dse): ...new function.
18493         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
18494         a subclass of gimple_opt_pass along with...
18495         (pass_data_forwprop): ...new pass_data instance and...
18496         (make_pass_forwprop): ...new function.
18497         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
18498         struct to a subclass of gimple_opt_pass along with...
18499         (pass_data_tree_ifcombine): ...new pass_data instance and...
18500         (make_pass_tree_ifcombine): ...new function.
18501         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
18502         subclass of gimple_opt_pass along with...
18503         (pass_data_ch): ...new pass_data instance and...
18504         (make_pass_ch): ...new function.
18505         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
18506         subclass of gimple_opt_pass along with...
18507         (pass_data_tree_loop): ...new pass_data instance and...
18508         (make_pass_tree_loop): ...new function.
18509         (pass_tree_loop_init): Convert from a global struct to a subclass of
18510         gimple_opt_pass along with...
18511         (pass_data_tree_loop_init): ...new pass_data instance and...
18512         (make_pass_tree_loop_init): ...new function.
18513         (pass_lim): Convert from a global struct to a subclass of
18514         gimple_opt_pass along with...
18515         (pass_data_lim): ...new pass_data instance and...
18516         (make_pass_lim): ...new function.
18517         (pass_tree_unswitch): Convert from a global struct to a subclass of
18518         gimple_opt_pass along with...
18519         (pass_data_tree_unswitch): ...new pass_data instance and...
18520         (make_pass_tree_unswitch): ...new function.
18521         (pass_predcom): Convert from a global struct to a subclass of
18522         gimple_opt_pass along with...
18523         (pass_data_predcom): ...new pass_data instance and...
18524         (make_pass_predcom): ...new function.
18525         (pass_vectorize): Convert from a global struct to a subclass of
18526         gimple_opt_pass along with...
18527         (pass_data_vectorize): ...new pass_data instance and...
18528         (make_pass_vectorize): ...new function.
18529         (pass_graphite): Convert from a global struct to a subclass of
18530         gimple_opt_pass along with...
18531         (pass_data_graphite): ...new pass_data instance and...
18532         (make_pass_graphite): ...new function.
18533         (pass_graphite_transforms): Convert from a global struct to a subclass
18534         of gimple_opt_pass along with...
18535         (pass_data_graphite_transforms): ...new pass_data instance and...
18536         (make_pass_graphite_transforms): ...new function.
18537         (pass_check_data_deps): Convert from a global struct to a subclass of
18538         gimple_opt_pass along with...
18539         (pass_data_check_data_deps): ...new pass_data instance and...
18540         (make_pass_check_data_deps): ...new function.
18541         (pass_iv_canon): Convert from a global struct to a subclass of
18542         gimple_opt_pass along with...
18543         (pass_data_iv_canon): ...new pass_data instance and...
18544         (make_pass_iv_canon): ...new function.
18545         (pass_scev_cprop): Convert from a global struct to a subclass of
18546         gimple_opt_pass along with...
18547         (pass_data_scev_cprop): ...new pass_data instance and...
18548         (make_pass_scev_cprop): ...new function.
18549         (pass_record_bounds): Convert from a global struct to a subclass of
18550         gimple_opt_pass along with...
18551         (pass_data_record_bounds): ...new pass_data instance and...
18552         (make_pass_record_bounds): ...new function.
18553         (pass_complete_unroll): Convert from a global struct to a subclass of
18554         gimple_opt_pass along with...
18555         (pass_data_complete_unroll): ...new pass_data instance and...
18556         (make_pass_complete_unroll): ...new function.
18557         (pass_complete_unrolli): Convert from a global struct to a subclass of
18558         gimple_opt_pass along with...
18559         (pass_data_complete_unrolli): ...new pass_data instance and...
18560         (make_pass_complete_unrolli): ...new function.
18561         (pass_parallelize_loops): Convert from a global struct to a subclass
18562         of gimple_opt_pass along with...
18563         (pass_data_parallelize_loops): ...new pass_data instance and...
18564         (make_pass_parallelize_loops): ...new function.
18565         (pass_loop_prefetch): Convert from a global struct to a subclass of
18566         gimple_opt_pass along with...
18567         (pass_data_loop_prefetch): ...new pass_data instance and...
18568         (make_pass_loop_prefetch): ...new function.
18569         (pass_iv_optimize): Convert from a global struct to a subclass of
18570         gimple_opt_pass along with...
18571         (pass_data_iv_optimize): ...new pass_data instance and...
18572         (make_pass_iv_optimize): ...new function.
18573         (pass_tree_loop_done): Convert from a global struct to a subclass of
18574         gimple_opt_pass along with...
18575         (pass_data_tree_loop_done): ...new pass_data instance and...
18576         (make_pass_tree_loop_done): ...new function.
18577         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
18578         struct to a subclass of gimple_opt_pass along with...
18579         (pass_data_cse_reciprocals): ...new pass_data instance and...
18580         (make_pass_cse_reciprocals): ...new function.
18581         (pass_cse_sincos): Convert from a global struct to a subclass of
18582         gimple_opt_pass along with...
18583         (pass_data_cse_sincos): ...new pass_data instance and...
18584         (make_pass_cse_sincos): ...new function.
18585         (pass_optimize_bswap): Convert from a global struct to a subclass of
18586         gimple_opt_pass along with...
18587         (pass_data_optimize_bswap): ...new pass_data instance and...
18588         (make_pass_optimize_bswap): ...new function.
18589         (pass_optimize_widening_mul): Convert from a global struct to a
18590         subclass of gimple_opt_pass along with...
18591         (pass_data_optimize_widening_mul): ...new pass_data instance and...
18592         (make_pass_optimize_widening_mul): ...new function.
18593         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
18594         subclass of gimple_opt_pass along with...
18595         (pass_data_phiopt): ...new pass_data instance and...
18596         (make_pass_phiopt): ...new function.
18597         (pass_cselim): Convert from a global struct to a subclass of
18598         gimple_opt_pass along with...
18599         (pass_data_cselim): ...new pass_data instance and...
18600         (make_pass_cselim): ...new function.
18601         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
18602         subclass of gimple_opt_pass along with...
18603         (pass_data_phiprop): ...new pass_data instance and...
18604         (make_pass_phiprop): ...new function.
18605         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
18606         subclass of gimple_opt_pass along with...
18607         (pass_data_pre): ...new pass_data instance and...
18608         (make_pass_pre): ...new function.
18609         (pass_fre): Convert from a global struct to a subclass of
18610         gimple_opt_pass along with...
18611         (pass_data_fre): ...new pass_data instance and...
18612         (make_pass_fre): ...new function.
18613         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
18614         subclass of gimple_opt_pass along with...
18615         (pass_data_reassoc): ...new pass_data instance and...
18616         (make_pass_reassoc): ...new function.
18617         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
18618         subclass of gimple_opt_pass along with...
18619         (pass_data_sink_code): ...new pass_data instance and...
18620         (make_pass_sink_code): ...new function.
18621         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
18622         subclass of gimple_opt_pass along with...
18623         (pass_data_strlen): ...new pass_data instance and...
18624         (make_pass_strlen): ...new function.
18625         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
18626         struct to a subclass of gimple_opt_pass along with...
18627         (pass_data_build_alias): ...new pass_data instance and...
18628         (make_pass_build_alias): ...new function.
18629         (pass_build_ealias): Convert from a global struct to a subclass of
18630         gimple_opt_pass along with...
18631         (pass_data_build_ealias): ...new pass_data instance and...
18632         (make_pass_build_ealias): ...new function.
18633         (pass_ipa_pta): Convert from a global struct to a subclass of
18634         simple_ipa_opt_pass along with...
18635         (pass_data_ipa_pta): ...new pass_data instance and...
18636         (make_pass_ipa_pta): ...new function.
18637         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
18638         subclass of gimple_opt_pass along with...
18639         (pass_data_uncprop): ...new pass_data instance and...
18640         (make_pass_uncprop): ...new function.
18641         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
18642         global struct to a subclass of gimple_opt_pass along with...
18643         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
18644         (make_pass_late_warn_uninitialized): ...new function.
18645         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
18646         to a subclass of gimple_opt_pass along with...
18647         (pass_data_init_datastructures): ...new pass_data instance and...
18648         (make_pass_init_datastructures): ...new function.
18649         (pass_early_warn_uninitialized): Convert from a global struct to a
18650         subclass of gimple_opt_pass along with...
18651         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
18652         (make_pass_early_warn_uninitialized): ...new function.
18653         (pass_update_address_taken): Convert from a global struct to a
18654         subclass of gimple_opt_pass along with...
18655         (pass_data_update_address_taken): ...new pass_data instance and...
18656         (make_pass_update_address_taken): ...new function.
18657         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
18658         struct to a subclass of gimple_opt_pass along with...
18659         (pass_data_release_ssa_names): ...new pass_data instance and...
18660         (make_pass_release_ssa_names): ...new function.
18661         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
18662         subclass of gimple_opt_pass along with...
18663         (pass_data_stdarg): ...new pass_data instance and...
18664         (make_pass_stdarg): ...new function.
18665         * tree-switch-conversion.c (pass_convert_switch): Convert from a
18666         global struct to a subclass of gimple_opt_pass along with...
18667         (pass_data_convert_switch): ...new pass_data instance and...
18668         (make_pass_convert_switch): ...new function.
18669         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
18670         to a subclass of gimple_opt_pass along with...
18671         (pass_data_tail_recursion): ...new pass_data instance and...
18672         (make_pass_tail_recursion): ...new function.
18673         (pass_tail_calls): Convert from a global struct to a subclass of
18674         gimple_opt_pass along with...
18675         (pass_data_tail_calls): ...new pass_data instance and...
18676         (make_pass_tail_calls): ...new function.
18677         * tree-vect-generic.c (pass_lower_vector): Convert from a global
18678         struct to a subclass of gimple_opt_pass along with...
18679         (pass_data_lower_vector): ...new pass_data instance and...
18680         (make_pass_lower_vector): ...new function.
18681         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
18682         gimple_opt_pass along with...
18683         (pass_data_lower_vector_ssa): ...new pass_data instance and...
18684         (make_pass_lower_vector_ssa): ...new function.
18685         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
18686         to a subclass of gimple_opt_pass along with...
18687         (pass_data_slp_vectorize): ...new pass_data instance and...
18688         (make_pass_slp_vectorize): ...new function.
18689         (pass_ipa_increase_alignment): Convert from a global struct to a
18690         subclass of simple_ipa_opt_pass along with...
18691         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
18692         (make_pass_ipa_increase_alignment): ...new function.
18693         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
18694         gimple_opt_pass along with...
18695         (pass_data_vrp): ...new pass_data instance and...
18696         (make_pass_vrp): ...new function.
18697         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
18698         subclass of simple_ipa_opt_pass along with...
18699         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
18700         (make_pass_ipa_free_lang_data): ...new function.
18701         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
18702         gimple_opt_pass along with...
18703         (pass_data_tsan): ...new pass_data instance and...
18704         (make_pass_tsan): ...new function.
18705         (pass_tsan_O0): Convert from a global struct to a subclass of
18706         gimple_opt_pass along with...
18707         (pass_data_tsan_O0): ...new pass_data instance and...
18708         (make_pass_tsan_O0): ...new function.
18709         * var-tracking.c (pass_variable_tracking): Convert from a global
18710         struct to a subclass of rtl_opt_pass along with...
18711         (pass_data_variable_tracking): ...new pass_data instance and...
18712         (make_pass_variable_tracking): ...new function.
18713         * web.c (pass_web): Convert from a global struct to a subclass of
18714         rtl_opt_pass along with...
18715         (pass_data_web): ...new pass_data instance and...
18716         (make_pass_web): ...new function.
18717         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
18718         declaration with that of...
18719         (make_pass_mode_switch_use): ...new function.
18720         (pass_resolve_sw_modes): Replace declaration with that of...
18721         (make_pass_resolve_sw_modes): ...new function.
18722         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
18723         from a global struct to a subclass of rtl_opt_pass along with...
18724         (pass_data_mode_switch_use): ...new pass_data instance and...
18725         (make_pass_mode_switch_use): ...new function.
18726         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
18727         from a global struct to a subclass of rtl_opt_pass along with...
18728         (pass_data_resolve_sw_modes): ...new pass_data instance and...
18729         (make_pass_resolve_sw_modes): ...new function.
18730         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
18731         struct to a subclass of rtl_opt_pass along with...
18732         (pass_data_insert_vzeroupper): ...new pass_data instance and...
18733         (make_pass_insert_vzeroupper): ...new function.
18734         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
18735         global struct to a subclass of rtl_opt_pass along with...
18736         (pass_data_work_around_errata): ...new pass_data instance and...
18737         (make_pass_work_around_errata): ...new function.
18738         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
18739         struct to a subclass of rtl_opt_pass along with...
18740         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
18741         (make_pass_mips_machine_reorg2): ...new function.
18743 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
18745         * passes.c (pass_manager::operator new): New.
18747 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
18749         Handwritten part of conversion of passes to C++ classes.
18751         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
18752         (toplev.o): Add dep on PASS_MANAGER_H.
18753         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
18754         of early local pases to reflect this moving from a global to a
18755         member of gcc::pass_manager.
18756         (cgraph_add_new_function): Likewise.
18757         * lto-cgraph.c (lto_output_node): Update for conversion of
18758         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
18759         * passes.c (opt_pass::clone): New.
18760         (opt_pass::gate): New.
18761         (opt_pass::execute): New.
18762         (opt_pass::opt_pass): New.
18763         (pass_manager::execute_early_local_passes): New.
18764         (pass_manager::execute_pass_mode_switching): new.
18765         (finish_optimization_passes): Convert to...
18766         (pass_manager::finish_optimization_passes): ...this.
18767         (finish_optimization_passes): Update for conversion of passes to
18768         C++ classes.
18769         (register_dump_files_1): Use has_gate since we cannot portably
18770         check a vtable entry against NULL.
18771         (dump_one_pass): Likewise.
18772         (ipa_write_summaries_2): Likewise.
18773         (ipa_write_optimization_summaries_1): Likewise.
18774         (ipa_read_summaries_1): Likewise.
18775         (ipa_read_optimization_summaries_1): Likewise.
18776         (execute_ipa_stmt_fixups): Likewise.
18777         (pass_manager::pass_manager): Rewrite pass-creation, invoking
18778         pass-creation functions rather than wiring up globals, and
18779         storing the results in fields of pass_manager generated using
18780         pass-instances.def.
18781         (pass_manager::dump_profile_report): Update for conversion of
18782         passes to C++ classes.
18783         (pass_manager::execute_ipa_summary_passes): Likewise.
18784         (execute_one_ipa_transform_pass): Likewise.
18785         (execute_one_pass): Use has_gate and has_execute since we cannot
18786         portably check a vtable entry against NULL.
18787         * pass_manager.h (pass_manager::finish_optimization_passes): New.
18788         (pass_manager): Use pass-instances.def to add fields for the
18789         various pass instances.
18790         * toplev.c (finalize): Update for move of
18791         finish_optimization_passes to a method of gcc::pass_manager.
18792         * toplev.h (finish_optimization_passes): Move to method of class
18793         pass_manager.
18794         * tree-pass.h (struct pass_data): New.
18795         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
18796         (opt_pass::gate): Convert to virtual function.
18797         (opt_pass::~opt_pass): New.
18798         (opt_pass::clone): New.
18799         (opt_pass::execute): Convert to virtual function.
18800         (opt_pass::opt_pass): New.
18801         (opt_pass::ctxt_): new.
18802         (gimple_opt_pass): Convert to subclass of opt_pass.
18803         (gimple_opt_pass::gimple_opt_pass): New.
18804         (rtl_opt_pass): Convert to subclass of opt_pass.
18805         (rtl_opt_pass::rtl_opt_pass): New.
18806         (ipa_opt_pass_d): Convert to subclass of opt_pass.
18807         (ipa_opt_pass_d::ipa_opt_pass_d): New.
18808         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
18809         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
18810         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
18811         invocation of pass_mode_switching to reflect this moving from a
18812         global to a member of gcc::pass_manager.
18813         (ix86_option_override): Rework how pass_insert_vzeroupper is
18814         added to the pass_manager to reflect autogenerated changes.
18815         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
18817 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
18819         PR rtl-optimization/57708
18820         * recog.c (peep2_find_free_register): Validate all regs in a
18821         multi-reg mode.
18823 2013-08-05  Jan Hubicka  <jh@suse.cz>
18825         PR lto/57602
18826         * cgraph.c (verify_cgraph_node): Accept local flags from other
18827         partitions.
18828         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
18829         (function_and_variable_visibility): Likewise.
18830         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
18832 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18834         * graph.c (init_graph_slim_pretty_print): Remove.
18835         (print_graph_cfg): Do not call it.  Use local pretty printer.
18836         (start_graph_dump): Likewise.
18838 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18840         * gimple-pretty-print.c (buffer): Remove.
18841         (initialized): Likewise.
18842         (maybe_init_pretty_print): Likewise.
18843         (print_gimple_stmt): Do not call it.  Use non-static local
18844         pretty_printer variable.
18845         (print_gimple_expr): Likewise.
18846         (print_gimple_seq): Likewise.
18847         (gimple_dump_bb): Likewise.
18849 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18851         * asan.c (asan_pp): Remove.
18852         (asan_pp_initialized): Likewise.
18853         (asan_pp_initialize): Likewise.
18854         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
18855         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
18856         (asan_add_global): Likewise.
18858 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18860         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
18861         * diagnostic.h (diagnostic_flush_buffer): Adjust.
18862         * pretty-print.c (pp_formatted_text_data): Likewise.
18863         (pp_indent): Rename from pp_base_indent.
18864         (pp_format): Rename from pp_base_format.
18865         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
18866         (pp_format_verbatim): Rename from pp_base_format_verbatim.
18867         (pp_flush): Rename from pp_base_flush.
18868         (pp_set_line_maximum_length): Rename from
18869         pp_base_set_line_maximum_length.
18870         (pp_clear_output_area): Rename from pp_base_clear_output_area.
18871         (pp_set_prefix): Rename from pp_base_set_prefix.
18872         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
18873         (pp_emit_prefix): Rename from pp_base_emit_prefix.
18874         (pp_append_text): Rename from pp_base_append_text.
18875         (pp_formatted_text): Rename from pp_base_formatted_text.
18876         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
18877         (pp_remaining_character_count_for_line): Rename from
18878         pp_base_remaining_character_count_for_line.
18879         (pp_newline): Rename from pp_base_newline.
18880         (pp_character): Rename from pp_base_character.
18881         (pp_string): Rename from pp_base_string.
18882         (pp_maybe_space): Rename from pp_base_maybe_space.
18883         * asan.c (asan_pp_string): Adjust.
18884         (asan_emit_stack_protection): Likewise.
18885         (asan_add_global): Likewise.
18886         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
18887         * tree-mudflap.c (mf_varname_tree): Likewise.
18888         * tree-pretty-print.c (pp_tree_identifier): Rename from
18889         pp_base_tree_identifier.
18890         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
18891         Declare as function.
18893 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18895         * pretty-print.h (pp_bar_bar): New.
18896         (pp_ampersand_ampersand): Likewise.
18897         (pp_less_equal): Likewise.
18898         (pp_greater_equal): Likewise.
18899         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
18900         printer functions instead of pp_string or operators and punctuators.
18901         (dump_gimple_call): Likewise.
18902         (dump_gimple_omp_for): Likewise.
18903         (dump_gimple_transaction): Likewise.
18904         (dump_gimple_phi): Likewise.
18905         (pp_gimple_stmt_1): Likewise.
18906         * sched-vis.c (print_insn): Likewise.
18907         * tree-mudflap.c (mf_varname_tree): Likewise.
18908         * tree-pretty-print.c (dump_block_node): Likewise.
18909         (dump_generic_node): Likewise.
18911 2013-08-02  Jan Hubicka  <jh@suse.cz>
18913         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
18914         boundaries.
18915         * lto-streamer-out.c (tree_is_indexable): Results decls and
18916         parm decls are not indexable.
18917         (DFS_write_tree_body): Do not follow args and results.
18918         (hash_tree): Likewise.
18919         (output_functions): Rearrange so struct function is needed
18920         only when real body is output; be able to also ouptut abstract
18921         functions; output DECL_ARGUMENTS and DECL_RESULT.
18922         (lto_output): When not in WPA, ale store abstract functions.
18923         (write_symbol): Do not care about RESULT_DECL.
18924         (output_symbol_p): Handle correctly sbtract decls.
18925         * lto-streamer-in.c (input_function): Rearrange so struct
18926         function can be NULL at entry; allow streaming of
18927         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
18928         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
18929         sanity check during LTO.
18930         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
18931         RESULT_DECl and DECL_ARGUMENTS.
18932         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
18933         Likewise.
18935 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18937         * pretty-print.h (pp_underscore): New.
18938         (pp_comma): Tidy.
18939         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
18940         printer functions instead of pp_character.
18941         (dump_binary_rhs): Likewise.
18942         (dump_ternary_rhs): Likewise.
18943         (dump_gimple_call_args): Likewise.
18944         (pp_points_to_solution): Likewise.
18945         (dump_gimple_call): Likewise.
18946         (dump_gimple_switch): Likewise.
18947         (dump_gimple_cond): Likewise.
18948         (dump_gimple_bind): Likewise.
18949         (dump_gimple_try): Likewise.
18950         (dump_gimple_omp_for): Likewise.
18951         (dump_gimple_omp_continue): Likewise.
18952         (dump_gimple_omp_single): Likewise.
18953         (dump_gimple_omp_sections): Likewise.
18954         (dump_gimple_omp_block): Likewise.
18955         (dump_gimple_omp_critical): Likewise.
18956         (dump_gimple_transaction): Likewise.
18957         (dump_gimple_asm): Likewise.
18958         (dump_gimple_phi): Likewise.
18959         (dump_gimple_omp_parallel): Likewise.
18960         (dump_gimple_omp_task): Likewise.
18961         (dump_gimple_omp_atomic_load): Likewise.
18962         (dump_gimple_omp_atomic_store): Likewise.
18963         (dump_gimple_mem_ops): Likewise.
18964         (pp_gimple_stmt_1): Likewise.
18965         (pp_cfg_jump): Likewise.
18966         (dump_implicit_edges): Likewise.
18967         (gimple_dump_bb_for_graph): Likewise.
18968         * graph.c (draw_cfg_node): Likewise.
18969         * langhooks.c (lhd_print_error_function): Likewise.
18970         * sched-vis.c (print_exp): Likewise.
18971         (print_value): Likewise.
18972         (print_pattern): Likewise.
18973         (print_insn): Likewise.
18974         (rtl_dump_bb_for_graph): Likewise.
18975         * tree-pretty-print.c (dump_function_declaration): Likewise.
18976         (dump_array_domain): Likewise.
18977         (dump_omp_clause): Likewise.
18978         (dump_location): Likewise.
18979         (dump_generic_node): Likewise.
18980         (print_struct_decl): Likewise.
18981         * diagnostic.c (diagnostic_show_locus): Use pp_space.
18983 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
18985         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
18986         candidate table when replacing a candidate statement.
18987         (replace_rhs_if_not_dup): Likewise.
18988         (replace_one_candidate): Likewise.
18990 2013-08-02  Jan Hubicka  <jh@suse.cz>
18991             Martin Liska  <marxin.liska@gmail.com>
18993         * cgraphunit.c (add_new_function): Fix logic when adding from
18994         late IPA pass.
18995         (assemble_thunk): Rename to ...
18996         (expand_thunk); .. this one; export; get it working with
18997         general functions; make produced gimple valid.
18998         * cgraph.h (expand_thunk): Declare.
19000 2013-08-02  Jan Hubicka  <jh@suse.cz>
19002         * ipa-cp.c (gather_context_independent_values): Use
19003         ipa_get_param_move_cost.
19004         (get_replacement_map): Remove PARAM; move parameter folding
19005         into tree-inline.c
19006         (create_specialized_node): Update.
19007         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
19008         assert that we have gimple body; update move_cost.
19009         (count_formal_params): Assert that we have gimple body.
19010         (ipa_dump_param): New function.
19011         (ipa_alloc_node_params): Break out from ...
19012         (ipa_initialize_node_params): ... here.
19013         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
19014         (ipa_write_node_info): Stream move costs.
19015         (ipa_read_node_info): Read move costs.
19016         (ipa_update_after_lto_read): Do not recompute node params.
19017         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
19018         (ipa_get_param): Check we are not in WPA.
19019         (ipa_get_param_move_cost): New.
19020         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
19021         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
19022         parm numbers to be present.
19024 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
19026         PR rtl-optimization/58048
19027         * lra-constraints.c (process_alt_operands): Don't check asm
19028         operand on register.
19030 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
19032         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
19033         the implied StoreLoad barrier for atomic operations if before.
19035 2013-08-02  Jan Hubicka  <jh@suse.cz>
19036             Martin Liska  <marxin.liska@gmail.com>
19038         * cgraph.c (cgraph_function_body_availability): Do not check
19039         cgraph flags.
19040         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
19041         symtab_node_availability): Declare.
19042         * ipa.c (can_replace_by_local_alias): New.
19043         (function_and_variable_visibility): Use it.
19044         * symtab.c (symtab_for_node_and_aliases,
19045         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
19047 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
19049         PR rtl-optimization/57963
19050         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
19051         (lra_constraints): Use them.
19053 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
19055         * config/arm/types.md (define_attr "type"): Add "load_acq"
19056         and "store_rel".
19057         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
19058         changes.
19059         (cortex_a53_store1): Likewise.
19061 2013-08-01  Jan Hubicka  <jh@suse.cz>
19063         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
19064         partitions are not needed.
19066 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
19068         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
19069         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
19070         MAYBE_NON_Q_CLASS_P where appropriate.
19072 2013-08-01  Jan Hubicka  <jh@suse.cz>
19074         * cgraph.h (release_function_body): Declare.
19075         * tree.c (free_lang_data_in_decl): Free, parameters and return values
19076         of unused delcarations.
19078 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19080         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
19081         RTL form when subtracting a constant.
19083 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19085         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
19086         Generate canonical plus rtx with negated immediate instead of minus
19087         where appropriate.
19088         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
19090 2013-08-01  Jan Hubicka  <jh@suse.cz>
19092         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
19093         (cgraph_release_function_body): Likewise.
19094         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
19095         * cgraph.h (cgrpah_node): Rename abstract_and_needed
19096         to used_as_abstract_origin.
19097         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
19098         symbols used as abstract origins.
19099         * cgraphunit.c (analyze_functions): Update.
19100         * ipa.c (symtab_remove_unreachable_nodes): Recompute
19101         used_as_abstract_origin.
19102         * tree-inline.c (tree_function_versioning): Update
19103         used_as_abstract_origin; be ready for DECL_RESULT and
19104         DECL_ARGUMENTS to be NULL.
19106         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
19107         for abstract functions.
19108         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
19109         real symbols.
19111 2013-08-01  Jan Hubicka  <jh@suse.cz>
19113         * profile.c (compute_value_histograms): Fix thinko.
19115 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
19117         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
19118         aarch-common-protos.h to extra_headers.
19119         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
19120         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
19121         * config/aarch64/t-aarch64 (aarch-common.o): Define.
19123 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
19125         * config/aarch64/aarch64.md (define_attr "type"): Delete.
19126         Include "../arm/types.md".  Define "type" attribute for all patterns.
19127         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
19128         attribute changes.
19130 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
19132         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
19133         to support power8 load fusion.
19134         (fusion_gpr_mem_load): Likewise.
19136         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
19138         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
19139         declarations for power8 load fusion.
19140         (emit_fusion_gpr_load): Likewise.
19142         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19143         tuning for power8, turn on fusion mode by default.  Turn on sign
19144         extending fusion mode if normal fusion mode is on, and we are at
19145         -O2 or -O3.
19146         (fusion_gpr_load_p): New function, return true if we can fuse an
19147         addis instruction with a dependent load to a GPR.
19148         (emit_fusion_gpr_load): Emit the instructions for power8 load
19149         fusion to GPRs.
19151         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
19152         (VSX load fusion peepholes): New peepholes to fuse together an
19153         addi instruction with a VSX load instruction.
19155         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
19156         peepholes to fuse an addis instruction with a load to a GPR base
19157         register.  If we are supporting sign extending fusions, convert
19158         sign extending loads to zero extending loads and add an explicit
19159         sign extension.
19161 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
19163         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
19164         aarch-common-protos.h to extra_headers.
19165         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
19166         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
19167         (arm_early_store_addr_dep): Likewise.
19168         (arm_no_early_alu_shift_dep): Likewise.
19169         (arm_no_early_alu_shift_value_dep): Likewise.
19170         (arm_no_early_mul_dep): Likewise.
19171         (arm_no_early_store_addr_dep): Likewise.
19172         (arm_mac_accumulator_is_mul_result): Likewise.
19173         (arm_mac_accumulator_is_result): Likewise.
19174         * config/arm/aarch-common.c: ... here.  New file.
19175         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
19176         here to ...
19177         (arm_early_store_addr_dep): Likewise.
19178         (arm_no_early_alu_shift_dep): Likewise.
19179         (arm_no_early_alu_shift_value_dep): Likewise.
19180         (arm_no_early_mul_dep): Likewise.
19181         (arm_no_early_store_addr_dep): Likewise.
19182         (arm_mac_accumulator_is_mul_result): Likewise.
19183         (arm_mac_accumulator_is_result): Likewise.
19184         * config/arm/aarch-common-protos.h: ... here.  New file.
19185         * config/arm/t-arm (aarch-common.o): Define.
19187 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
19189         * config/arm/arm.md: Include new file "types.md".
19190         (define_attr "type"): Move from here to ...
19191         (define_attr "mul32"): Likewise.
19192         (define_attr "mul64"): Likewise.
19193         * config/arm/types.md: ... here.  New file.
19195 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
19197         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
19198         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
19200 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19202         * gen-pass-instances.awk: Fix offset of substr().
19204 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
19206         * Makefile.in (pass-instances.def): New.
19207         (passes.o): Replace dependency on passes.def with one on
19208         pass-instances.def
19210         * gen-pass-instances.awk: New.
19212         * passes.c (pass_manager::pass_manager): Use pass-instances.def
19213         rather than passes.def, updating local definition of NEXT_PASS
19214         macro to add an extra NUM parameter (currently unused).
19216 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
19218         * Makefile.in (PASS_MANAGER_H): New.
19219         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
19220         (passes.o): Likewise.
19221         (statistics.o): Likewise.
19222         (cgraphunit.o): Likewise.
19223         (context.o): Depend on PASS_MANAGER_H.
19225         * pass_manager.h: New.
19227         * cgraphunit.c (cgraph_add_new_function): Update for moves
19228         of globals to fields of pass_manager.
19229         (analyze_function): Likewise.
19230         (expand_function): Likewise.
19231         (ipa_passes): Likewise.
19232         (compile): Likewise.
19234         * context.c (context::context): New.
19235         * context.h  (context::context): New.
19236         (context::get_passes): New.
19237         (context::passes_): New.
19239         * lto-cgraph.c (input_node): Update for moves of globals to
19240         fields of pass_manager.
19242         * passes.c (all_passes): Remove, in favor of a field of the
19243         same name within the new class pass_manager.
19244         (all_small_ipa_passes): Likewise.
19245         (all_lowering_passes): Likewise.
19246         (all_regular_ipa_passes): Likewise.
19247         (all_late_ipa_passes): Likewise.
19248         (all_lto_gen_passes): Likewise.
19249         (passes_by_id): Likewise.
19250         (passes_by_id_size): Likewise.
19251         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19252         the new class pass_manager.
19253         (set_pass_for_id): Convert to...
19254         (pass_manager::set_pass_for_id): ...method.
19255         (get_pass_for_id): Convert to...
19256         (pass_manager::get_pass_for_id): ...method.
19257         (register_one_dump_file): Move body of implementation into...
19258         (pass_manager::register_one_dump_file): ...here.
19259         (register_dump_files_1): Convert to...
19260         (pass_manager::register_dump_files_1): ...method.
19261         (register_dump_files): Convert to...
19262         (pass_manager::register_dump_files): ...method.
19263         (create_pass_tab): Update for moves of globals to fields of
19264         pass_manager.
19265         (dump_passes): Move body of implementation into...
19266         (pass_manager::dump_passes): ...here.
19267         (register_pass): Move body of implementation into...
19268         (pass_manager::register_pass): ...here.
19269         (init_optimization_passes): Convert into...
19270         (pass_manager::pass_manager): ...constructor for new
19271         pass_manager class, and initialize the pass_lists array.
19272         (check_profile_consistency): Update for moves of globals to
19273         fields of pass_manager.
19274         (dump_profile_report): Move body of implementation into...
19275         (pass_manager::dump_profile_report): ...here.
19276         (ipa_write_summaries_1): Update for moves of pass lists from
19277         being globals to fields of pass_manager.
19278         (ipa_write_optimization_summaries): Likewise.
19279         (ipa_read_summaries):  Likewise.
19280         (ipa_read_optimization_summaries): Likewise.
19281         (execute_all_ipa_stmt_fixups): Likewise.
19283         * statistics.c (statistics_fini): Update for moves of globals to
19284         fields of pass_manager.
19286         * toplev.c (general_init): Replace call to
19287         init_optimization_passes with construction of the pass_manager
19288         instance.
19290         * tree-pass.h (all_passes): Remove, in favor of a field of the
19291         same name within the new class pass_manager.
19292         (all_small_ipa_passes): Likewise.
19293         (all_lowering_passes): Likewise.
19294         (all_regular_ipa_passes): Likewise.
19295         (all_lto_gen_passes): Likewise.
19296         (all_late_ipa_passes): Likewise.
19297         (passes_by_id): Likewise.
19298         (passes_by_id_size): Likewise.
19299         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19300         the new class pass_manager.
19301         (get_pass_for_id): Remove.
19303 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
19305         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
19306         configs.
19308 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
19310         * arm.md (mulhi3): New expand pattern.
19312 2013-07-30  Jan Hubicka  <jh@suse.cz>
19313             Martin Liska  <marxin.liska@gmail.com>
19315         * profile.c (compute_value_histograms): Do not ICE when
19316         there is mismatch only on some counters.
19318 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19320         PR rtl-optimization/57637
19321         * function.c (move_insn_for_shrink_wrap): Also check the
19322         GEN set of the LIVE problem for the liveness analysis
19323         if it exists, otherwise give up.
19325 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
19327         PR tree-optimization/57993
19328         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
19329         replaced statement in the candidate table.
19330         (phi_add_costs): Return infinite cost when the hidden basis does
19331         not dominate all phis on which the candidate is dependent.
19332         (replace_one_candidate): Record replaced statement in the
19333         candidate table.
19335 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
19337         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
19338         (ashlv2si3): New expander.
19339         (*ashlv2si3_i): New define_insn_and_split.
19340         * predicates.md (float_operation): Allow patterns with three
19341         basic sub-patterns.
19343         PR rtl-optimization/58021
19344         * mode-switching.c (create_pre_exit): Always split off preceding
19345         insns if we are not at the basic block head.
19347 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
19349         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
19350         (UCLIBC_DYNAMIC_LINKER): New macro.
19351         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
19352         `-mnan=2008'.
19353         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
19354         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
19355         `-mnan=2008'.
19356         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
19357         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
19358         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
19359         for SF and DF modes.  Use ieee_quad_format for TF mode.
19360         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
19361         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
19362         (mips_option_override): Handle `-mnan=legacy'.
19363         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
19364         `-mabs=2008' and `-mnan=2008'.
19365         (OPTION_DEFAULT_SPECS): Add "nan" default.
19366         (ASM_SPEC): Handle `-mnan='.
19367         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
19368         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
19369         comment accordingly.
19370         (neg<mode>2): Likewise.
19371         * config/mips/mips.opt (mabs, mnan): New options.
19372         * doc/install.texi (Configuration): Document `--with-nan=' option.
19373         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
19374         `-mnan=' options.
19375         (MIPS Options): Document them.
19376         * config.gcc <mips*-*-*>: Handle `--with-nan='.
19377         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
19378         * configure: Regenerate.
19379         * config.in: Regenerate.
19381 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
19383         * config/i386/i386.md (float post-reload splitters): Do not check
19384         for subregs of SSE registers.
19386 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
19387             H.J. Lu  <hongjiu.lu@intel.com>
19389         PR target/57954
19390         PR target/57988
19391         * config/i386/i386.md (post-reload splitter
19392         to avoid partial SSE reg dependency stalls): New pattern.
19394 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19396         * config/s390/s390.md ("movcc"): Swap load and store instructions.
19398 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
19400         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
19401         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
19403 2013-07-26  Cary Coutant  <ccoutant@google.com>
19405         * dwarf2out.c (die_checksum_ordered): Don't include template
19406         instantiations in signature.
19407         (is_template_parameter): New function.
19408         (is_template_instantiation): New function.
19409         (generate_skeleton_bottom_up): Don't include template instantiations
19410         in type unit DIE.
19411         (generate_skeleton): Likewise.
19412         (break_out_comdat_types): Move recursive call to break out nested
19413         types earlier.
19414         (prune_unused_types_mark_generic_parms_dies): Call
19415         is_template_parameter.
19417 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
19419         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
19420         uses vector registers.
19421         * config/aarch64/iterators.md: Add attributes rtn and vas.
19423 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19424             Richard Earnshaw  <richard.earnshaw@arm.com>
19426         * combine.c (simplify_comparison): Re-canonicalize operands
19427         where appropriate.
19428         * config/arm/arm.md (movcond_addsi): New splitter.
19430 2013-07-25  Sterling Augustine  <saugustine@google.com>
19432         * dwarf2out.c (size_of_pubnames): Move code to...
19433         (include_pubname_in_output): ...here.  New.
19434         (want_pubnames): Rearrange.
19435         (output_pubnames): Call include_pubname_in_output.  Move assertion.
19437 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
19439         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
19441 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
19443         PR target/38836
19444         * doc/extend.texi: Remove obsolete builtins. Fix
19445         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
19447 2013-07-25  Jan Hubicka  <jh@suse.cz>
19449         * cgraph.c (release_function_body): Break out from ...
19450         (cgraph_release_function_body): ... this one; also release DECL_RESULT
19451         and DECL_ARGUMENTS.
19452         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
19453         old_tree in the map.
19454         (create_specialized_node): Update.
19455         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
19456         into index.
19457         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
19458         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
19459         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
19460         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
19461         DECL_RESULT.
19463 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19465         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
19466         addsi3_carryin_alt2_<optab>): Correct output template.
19468 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19470         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
19471         Adjust for arm_restrict_it.
19472         Remove trailing whitespace.
19474 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
19476         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
19477         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
19479         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
19481 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
19483         PR rtl-optimization/57960
19484         * lra-constraints.c (process_alt_operands): Use the right mode
19485         when checking strict_low.
19487 2013-07-25  Jan Hubicka  <jh@suse.cz>
19489         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
19490         * cgraph.c (cgraph_remove_node): Do not release function body
19491         when in cgraph streaming.
19492         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
19493         in other partitions are not considered reachable; fix handling of
19494         clones.
19496 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19498         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
19500 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19502         PR target/19599
19503         PR target/57731
19504         PR target/57837
19505         * config/arm/arm.md ("*sibcall_insn): Replace use of
19506         Ss with US. Adjust output for v5 and v4t.
19507         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
19509         * config/arm/constraints.md ("Ss"): Rename to US.
19511 2013-07-25  Terry Guo  <terry.guo@arm.com>
19513         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
19514         shift_add/shift_sub0/shift_sub1 RTXs.
19516 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
19517             Anton Blanchard  <anton@au1.ibm.com>
19519         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
19520         (altivec_vpks<VI_char>ss): Likewise.
19521         (altivec_vpks<VI_char>us): Likewise.
19522         (altivec_vpku<VI_char>us): Likewise.
19523         (altivec_vpku<VI_char>um): Likewise.
19525 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
19527         Introduce context class.
19529         * Makefile.in (CONTEXT_H): New.
19530         (OBJS): Add context.o.
19531         (toplev.o): Add CONTEXT_H to dependencies.
19532         (context.o): New.
19534         * toplev.c (general_init): Create the singleton gcc::context instance.
19536         * context.c: New.
19538         * context.h: New.
19540 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
19542         PR rtl-optimization/57968
19543         * mode-switching.c (create_pre_exit): Allow instructions that
19544         don't set a return register to need a non-exit mode.
19546 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
19547             Anton Blanchard  <anton@au1.ibm.com>
19549         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
19550         operands to vperm for little endian.
19551         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
19552         of lvsl to create the control mask for a vperm for little endian.
19554 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19555             Anton Blanchard  <anton@au1.ibm.com>
19557         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
19558         two operands for little-endian.
19560 2013-07-23  Steve Ellcey  <sellcey@mips.com>
19562         * config/mips/mips.c (mips_case_values_threshold): New.
19563         (TARGET_CASE_VALUES_THRESHOLD): Define.
19565 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19566             Anton Blanchard  <anton@au1.ibm.com>
19568         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
19569         selection of field for vector splat in little endian mode.
19571 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
19573         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
19574         expanders to rs6000.md.
19575         (ior<mode>3): Likewise.
19576         (and<mode>3): Likewise.
19577         (one_cmpl<mode>2): Likewise.
19578         (nor<mode>3): Likewise.
19579         (andc<mode>3): Likewise.
19580         (eqv<mode>3): Likewise.
19581         (nand<mode>3): Likewise.
19582         (orc<mode>3): Likewise.
19584         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
19585         declaration.
19587         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
19588         to split multi-word logical operations.
19589         (rs6000_split_logical_di): Likewise.
19590         (rs6000_split_logical): Likewise.
19592         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
19593         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
19594         and allow TImode operations in 32-bit.
19595         (vsx_and<mode>3_64bit): Likewise.
19596         (vsx_ior<mode>3_32bit): Likewise.
19597         (vsx_ior<mode>3_64bit): Likewise.
19598         (vsx_xor<mode>3_32bit): Likewise.
19599         (vsx_xor<mode>3_64bit): Likewise.
19600         (vsx_one_cmpl<mode>2_32bit): Likewise.
19601         (vsx_one_cmpl<mode>2_64bit): Likewise.
19602         (vsx_nor<mode>3_32bit): Likewise.
19603         (vsx_nor<mode>3_64bit): Likewise.
19604         (vsx_andc<mode>3_32bit): Likewise.
19605         (vsx_andc<mode>3_64bit): Likewise.
19606         (vsx_eqv<mode>3_32bit): Likewise.
19607         (vsx_eqv<mode>3_64bit): Likewise.
19608         (vsx_nand<mode>3_32bit): Likewise.
19609         (vsx_nand<mode>3_64bit): Likewise.
19610         (vsx_orc<mode>3_32bit): Likewise.
19611         (vsx_orc<mode>3_64bit): Likewise.
19613         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
19614         logical types in GPRs.
19616         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
19617         logical insns to rs6000.md, and allow TImode operations in
19618         32-bit.
19619         (altivec_ior<mode>3): Likewise.
19620         (altivec_xor<mode>3): Likewise.
19621         (altivec_one_cmpl<mode>2): Likewise.
19622         (altivec_nor<mode>3): Likewise.
19623         (altivec_andc<mode>3): Likewise.
19625         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
19626         attributes for moving the 128-bit logical operations into
19627         rs6000.md.
19628         (BOOL_REGS_OUTPUT): Likewise.
19629         (BOOL_REGS_OP1): Likewise.
19630         (BOOL_REGS_OP2): Likewise.
19631         (BOOL_REGS_UNARY): Likewise.
19632         (BOOL_REGS_AND_CR0): Likewise.
19633         (one_cmpl<mode>2): Add support for DI logical operations on
19634         32-bit, splitting the operations to 32-bit.
19635         (anddi3): Likewise.
19636         (iordi3): Likewise.
19637         (xordi3): Likewise.
19638         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
19639         changes to combine the 32/64-bit code, allow logical operations on
19640         TI mode in 32-bit, and to use similar match_operator patterns like
19641         scalar mode uses.  Combine the Altivec and VSX code for logical
19642         operations, and move it here.
19643         (ior<mode>3, 128-bit types): Likewise.
19644         (xor<mode>3, 128-bit types): Likewise.
19645         (one_cmpl<mode>3, 128-bit types): Likewise.
19646         (nor<mode>3, 128-bit types): Likewise.
19647         (andc<mode>3, 128-bit types): Likewise.
19648         (eqv<mode>3, 128-bit types): Likewise.
19649         (nand<mode>3, 128-bit types): Likewise.
19650         (orc<mode>3, 128-bit types): Likewise.
19651         (and<mode>3_internal): Likewise.
19652         (bool<mode>3_internal): Likewise.
19653         (boolc<mode>3_internal1): Likewise.
19654         (boolc<mode>3_internal2): Likewise.
19655         (boolcc<mode>3_internal1): Likewise.
19656         (boolcc<mode>3_internal2): Likewise.
19657         (eqv<mode>3_internal1): Likewise.
19658         (eqv<mode>3_internal2): Likewise.
19659         (one_cmpl1<mode>3_internal): Likewise.
19661 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
19663         * config/microblaze/microblaze.c (microblaze_expand_prologue):
19664         Rename flag_stack_usage to flag_stack_usage_info.
19666 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
19668         * config/microblaze/sync.md: New file.
19669         * config/microblaze/microblaze.md: Include sync.md
19670         * config/microblaze/microblaze.c: Add print_operand 'y'.
19671         * config/microblaze/constraints.md: Add memory_contraint
19672         'Q' which is a single register.
19674 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
19676         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
19678 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
19680         * reload.c (find_reloads): Exit loop once we find this operand
19681         cannot be reloaded somehow for this alternative.
19683         * reload.c (find_reloads): Exit loop once we find a hard register.
19685         * rtlanal.c (computed_jump_p): Exit loop once we find label
19686         reference is used.
19688         * i386.c (ix86_pad_returns): Exit loop after setting replace.
19690         * cfgloopmanip.c (remove_path): Exit loop after setting
19691         irred_invalidated.
19693         * gensupport.c (subst_dup): Avoid loop if code is not
19694         MATCH_DUP nor MATCH_OP_DUP.
19696 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
19698         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
19700 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19702         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
19703         true for SP_REGNUM if mode == ptr_mode.
19704         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
19705         with value R0_REGNUM + 31.
19707 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19709         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
19710         pad pointer-typed argument downward.
19712 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19714         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
19715         and __ILP32__ when the ILP32 model is in use.
19717 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19719         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
19720         (aarch64_load_symref_appropriately): In the case of
19721         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
19722         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
19723         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
19724         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
19725         if 'mode' doesn't equal to 'ptr_mode'.
19726         (aarch64_output_mi_thunk): Add an assertion on the alignment of
19727         'vcall_offset'; change to call aarch64_emit_move differently depending
19728         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
19729         to calculate the upper bound of 'vcall_offset'.
19730         (aarch64_cannot_force_const_mem): Change to also return true if
19731         mode != ptr_mode.
19732         (aarch64_legitimize_reload_address): In the case of large
19733         displacements, add new local variable 'xmode' and an assertion
19734         based on it; change to use 'xmode' to generate the new rtx and
19735         reload.
19736         (aarch64_asm_trampoline_template): Change to generate the template
19737         differently depending on TARGET_ILP32 or not; change to use
19738         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
19739         (aarch64_trampoline_size): Removed.
19740         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
19741         and replace immediate literals with it.  Change to use 'ptr_mode'
19742         instead of 'DImode' and call convert_memory_address if the mode
19743         of 'fnaddr' doesn't equal to 'ptr_mode'.
19744         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
19745         to output symbol.
19746         (aarch64_elf_asm_destructor): Likewise.
19747         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
19748         on TARGET_ILP32 instead of aarch64_trampoline_size.
19749         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
19750         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
19751         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
19752         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
19753         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
19754         (storewb_pair<GPI:mode>_<P:mode>): ... this.
19755         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
19756         depending on the value of 'mode'.
19757         (add_losym_<mode>): New.
19758         (ldr_got_small_<mode>): New, based on ldr_got_small.
19759         (ldr_got_small): Remove.
19760         (ldr_got_small_sidi): New.
19761         * config/aarch64/iterators.md (P): New.
19762         (PTR): Change to 'ptr_mode' in the condition.
19764 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19766         * config.gcc (aarch64*-*-*): Support --with-abi.
19767         (aarch64*-*-elf): Support --with-multilib-list.
19768         (aarch64*-*-linux*): Likewise.
19769         (supported_defaults): Add abi to aarch64*-*-*.
19770         * configure.ac: Mention AArch64 for --with-multilib-list.
19771         * configure: Re-generated.
19772         * config/aarch64/biarchilp32.h: New file.
19773         * config/aarch64/biarchlp64.h: New file.
19774         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
19775         (ABI_SPEC): Ditto.
19776         (MULTILIB_DEFAULTS): Ditto.
19777         (DRIVER_SELF_SPECS): Ditto.
19778         (ASM_SPEC): Update to also substitute -mabi.
19779         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
19780         file whose name depends on -mabi= and -mbig-endian.
19781         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
19782         TARGET_ILP32.
19783         (POINTER_SIZE): New define.
19784         (POINTERS_EXTEND_UNSIGNED): Ditto.
19785         (enum aarch64_abi_type): New enumeration tag.
19786         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
19787         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
19788         (TARGET_ILP32): New define.
19789         * config/aarch64/aarch64.opt (mabi): New.
19790         (aarch64_abi): New.
19791         (ilp32, lp64): New values for -mabi.
19792         * config/aarch64/t-aarch64 (comma): New define.
19793         (MULTILIB_OPTIONS): Ditto.
19794         (MULTILIB_DIRNAMES): Ditto.
19795         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
19796         * doc/invoke.texi: Document -mabi for AArch64.
19798 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
19800         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
19802 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
19803             Anton Blanchard  <anton@au1.ibm.com>
19805         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
19806         endianness when selecting field to splat.
19808 2013-07-22  Eric Christopher  <echristo@gmail.com>
19810         * dwarf2out.c (die_odr_checksum): New function to use
19811         CHECKSUM_ macros and ULEB128 for DIE tag.
19812         (generate_type_signature): Use.
19814 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
19816         * config.gcc (sparc*-*-*): Accept leon3 processor.
19817         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
19818         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
19819         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
19820         * config/sparc/sparc.opt (enum processor_type): Add leon3.
19821         (mfix-ut699): Adjust comment.
19822         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
19823         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
19824         (CPP_CPU_SPEC): Likewise.
19825         (ASM_CPU_SPEC): Likewise.
19826         * config/sparc/sparc.c (leon3_cost): New constant.
19827         (sparc_option_override): Add leon3 support.
19828         (mem_ref): New function.
19829         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
19830         (sparc_do_work_around_errata): Look into the instruction in the delay
19831         slot and adjust accordingly.  Add fix for the data cache nullify issues
19832         of the UT699.  Change insertion position for the NOP.
19833         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
19834         (leon3_load): New reservation.
19835         (leon_store): Bump latency to 2.
19836         (grfpu): New automaton.
19837         (grfpu_alu): New unit.
19838         (grfpu_ds): Likewise.
19839         (leon_fp_alu): Adjust.
19840         (leon_fp_mult): Delete.
19841         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
19842         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
19843         * config/sparc/sparc.md (cpu): Add leon3.
19844         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
19845         (swapsi): Likewise.
19846         (atomic_test_and_set): Likewise.
19847         (ldstub): Likewise.
19849 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
19851         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
19852         default for R5900 targets.
19853         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
19854         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
19855         * config/mips/mips.c (mips_option_override): Report an error for
19856         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
19857         for -march=r5900 -mhard-float.
19859 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
19861         * df-problems.c (can_move_insns_across): Exit loop once we
19862         find a non-fixed, non-global register.
19864         * ipa-pure-const.c (propagate_nothrow): Exit loop after
19865         setting can_throw.
19867         * omega.c (omega_eliminate_red): Break after setting red_found.
19868         (omega_problem_has_red_equations): Similarly after setting found.
19869         (omega_query_variable): Similarly after setting coupled.
19871 2013-07-22  Marek Polacek  <polacek@redhat.com>
19873         * gimplify.c: Don't include gimple.h twice.
19875 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19877         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
19878         instead of TARGET_THUMB1.
19879         (Pz): New constraint.
19880         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
19881         encodings.
19882         (compare_negsi_si): Likewise.
19883         (compare_addsi2_op0): Likewise.
19884         (compare_addsi2_op1): Likewise.
19885         (addsi3_carryin_<optab>): Likewise.
19886         (addsi3_carryin_alt2_<optab>): Likewise.
19887         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
19888         for arm_restrict_it.
19889         (subsi3_carryin): Likewise.
19890         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
19891         (minmax_arithsi): Disable for arm_restrict_it.
19892         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
19893         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
19894         (satsi_<SAT:code>_shift): Likewise.
19895         (arm_shiftsi3): Add alternative for 16-bit encoding.
19896         (arm32_movhf): Disable for arm_restrict_it.
19897         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
19898         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
19900 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
19902         * config/arm/arm.md (attribute "insn"): Delete.
19903         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
19904         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
19905         (not_shiftsi): Update for attribute change.
19906         (not_shiftsi_compare0): Likewise.
19907         (not_shiftsi_compare0_scratch): Likewise.
19908         (arm_one_cmplsi2): Likewise.
19909         (thumb1_one_cmplsi2): Likewise.
19910         (notsi_compare0): Likewise.
19911         (notsi_compare0_scratch): Likewise.
19912         (thumb1_movdi_insn): Likewise.
19913         (arm_movsi_insn): Likewise.
19914         (movhi_insn_arch4): Likewise.
19915         (movhi_bytes): Likewise.
19916         (arm_movqi_insn): Likewise.
19917         (thumb1_movqi_insn): Likewise.
19918         (arm32_movhf): Likewise.
19919         (thumb1_movhf): Likewise.
19920         (arm_movsf_soft_insn): Likewise.
19921         (thumb1_movsf_insn): Likewise.
19922         (thumb_movdf_insn): Likewise.
19923         (movsicc_insn): Likewise.
19924         (movsfcc_soft_insn): Likewise.
19925         (and_scc): Likewise.
19926         (cond_move): Likewise.
19927         (if_move_not): Likewise.
19928         (if_not_move): Likewise.
19929         (if_shift_move): Likewise.
19930         (if_move_shift): Likewise.
19931         (if_shift_shift): Likewise.
19932         (if_not_arith): Likewise.
19933         (if_arith_not): Likewise.
19934         (cond_move_not): Likewise.
19935         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
19936         (neon_mov<mode>): Likewise.
19937         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
19938         (thumb2_movsi_vfp): Likewise.
19939         (movsf_vfp): Likewise.
19940         (thumb2_movsf_vfp): Likewise.
19941         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
19942         change.
19943         (cortexa7_older_only): Likewise.
19944         (cortexa7_younger): Likewise.
19945         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
19946         (1020alu_shift_op): Likewise.
19947         (1020alu_shift_reg_op): Likewise.
19948         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
19949         (alu_shift_op): Likewise.
19950         (alu_shift_reg_op): Likewise.
19951         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
19952         (11_alu_shift_op): Likewise.
19953         (11_alu_shift_reg_op): Likewise.
19954         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
19955         (9_alu_shift_reg_op): Likewise.
19956         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19957         change.
19958         (cortex_a15_alu_shift): Likewise.
19959         (cortex_a15_alu_shift_reg): Likewise.
19960         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
19961         (cortex_a5_alu_shift): Likewise.
19962         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
19963         change.
19964         (cortex_a53_alu_shift): Likewise.
19965         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
19966         change.
19967         (cortex_a7_alu_reg): Likewise.
19968         (cortex_a7_alu_shift): Likewise.
19969         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19970         (cortex_a8_alu_shift): Likewise.
19971         (cortex_a8_alu_shift_reg): Likewise.
19972         (cortex_a8_mov): Likewise.
19973         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19974         (cortex_a9_dp_shift): Likewise.
19975         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
19976         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
19977         (cortex_r4_mov): Likewise.
19978         (cortex_r4_alu_shift): Likewise.
19979         (cortex_r4_alu_shift_reg): Likewise.
19980         * config/arm/fa526.md (526_alu_op): Update for attribute change.
19981         (526_alu_shift_op): Likewise.
19982         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
19983         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
19984         (626te_alu_shift_op): Likewise.
19985         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
19986         (726te_alu_op): Likewise.
19987         (726te_alu_shift_op): Likewise.
19988         (726te_alu_shift_reg_op): Likewise.
19989         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
19990         (mp626_alu_shift_op): Likewise.
19991         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
19992         (pj4_alu_e1_conds): Likewise.
19993         (pj4_alu): Likewise.
19994         (pj4_alu_conds): Likewise.
19995         (pj4_shift): Likewise.
19996         (pj4_shift_conds): Likewise.
19997         (pj4_alu_shift): Likewise.
19998         (pj4_alu_shift_conds): Likewise.
20000 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20002         * config/arm/predicates.md (shiftable_operator_strict_it):
20003         New predicate.
20004         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
20005         Disable cond_exec version for arm_restrict_it.
20006         (thumb2_smaxsi3): Convert to generate cond_exec.
20007         (thumb2_sminsi3): Likewise.
20008         (thumb32_umaxsi3): Likewise.
20009         (thumb2_uminsi3): Likewise.
20010         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
20011         (thumb2_neg_abssi2): Likewise.
20012         (thumb2_mov_scc): Add alternative for 16-bit encoding.
20013         (thumb2_movsicc_insn): Adjust alternatives.
20014         (thumb2_mov_negscc): Disable for arm_restrict_it.
20015         (thumb2_mov_negscc_strict_it): New pattern.
20016         (thumb2_mov_notscc_strict_it): New pattern.
20017         (thumb2_mov_notscc): Disable for arm_restrict_it.
20018         (thumb2_ior_scc): Likewise.
20019         (thumb2_ior_scc_strict_it): New pattern.
20020         (thumb2_cond_move): Adjust for arm_restrict_it.
20021         (thumb2_cond_arith): Disable for arm_restrict_it.
20022         (thumb2_cond_arith_strict_it): New pattern.
20023         (thumb2_cond_sub): Adjust for arm_restrict_it.
20024         (thumb2_movcond): Likewise.
20025         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
20026         (thumb2_zero_extendhisi2_v6): Likewise.
20027         (thumb2_zero_extendqisi2_v6): Likewise.
20028         (orsi_notsi_si): Likewise.
20029         (orsi_not_shiftsi_si): Likewise.
20031 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
20033         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
20034         instruction sequence is 1 byte shorter.
20036 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
20038         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
20039         it is not needed after split.
20041 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
20043         PR target/51784
20044         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
20045         second label for nonlocal goto receivers. Don't output pic base labels
20046         unless we're producing PIC; mark that action unreachable().
20047         (ix86_save_reg): If the function contains a nonlocal label, save the
20048         PIC base reg.
20049         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
20050         * config/darwin.c (emitted_pic_label_num): New GTY.
20051         (update_pic_label_number_if_needed): New.
20052         (machopic_output_function_base_name): Adjust for nonlocal receiver
20053         case.
20054         (machopic_should_output_picbase_label): New.
20055         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
20056         (nonlocal_goto_receiver): New insn and split.
20058 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
20060         * config/aarch64/aarch64-builtins.c
20061         (aarch64_fold_builtin): Fold abs in all modes.
20062         * config/aarch64/aarch64-simd-builtins.def
20063         (abs): Enable for all modes.
20064         * config/aarch64/arm_neon.h
20065         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
20066         (vabs_f64): Add missing intrinsic.
20068 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
20070         * config/aarch64/arm_neon.h (vabs_s64): New function
20072 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
20074         PR target/57516
20075         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
20076         * config/avr/avr.md (adjust_len): Add `round'.
20077         * config/avr/avr-protos.h (avr_out_round): New prototype.
20078         (avr_out_plus): Add `out_label' argument.
20079         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
20080         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
20081         Handle the case where `insn' is just a pattern.
20082         (avr_out_bitop): Handle the case where `insn' is just a pattern.
20083         (avr_out_round): New function.
20084         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
20086 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
20088         * config/microblaze/microblaze.c (microblaze_expand_prologue):
20089         Add check for flag_stack_usage to handle -fstack-usage support
20091 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
20093         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
20094         interaction for new Power8 flags and VSX.
20096 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
20098         PR middle-end/57698
20099         * tree-inline.c (expand_call_inline): Emit errors during
20100         early_inlining only if optimization is not turned on.
20102 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20104         * passes.def: New.
20106         * passes.c (init_optimization_passes): Move the construction of
20107         the pass hierarchy into a new passes.def file.
20109         * Makefile.in (passes.o): Add dependency on passes.def.
20111 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20113         * passes.c (init_optimization_passes): Introduce macros for
20114         constructing the tree of passes (INSERT_PASSES_AFTER,
20115         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
20116         TERMINATE_PASS_LIST).
20118 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
20119             Wei Mi  <wmi@google.com>
20121         PR rtl-optimization/57878
20122         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
20123         top.
20124         (reload_pseudo_compare_func): Check nregs first for reload
20125         pseudos.
20127 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20129         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
20131 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
20133         * read-rtl.c (validate_const_int): Once an invalid character is
20134         seen, quit the loop.
20136         * gengtype.c (write_roots): Similarly once we find the "deletable"
20137         or "if_marked" option.
20139 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
20141         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
20142         "xtab" and "sat".  Move value "clz" from here to ...
20143         (attriubte "type"): ... here.
20144         (satsi_<SAT:code>): Delete "insn" attribute.
20145         (satsi_<SAT:code>_shift): Likewise.
20146         (arm_zero_extendqisi2addsi): Likewise.
20147         (arm_extendqisi2addsi): Likewise.
20148         (clzsi2): Update for attribute changes.
20149         (rbitsi2): Likewise.
20150         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
20151         attribute.
20152         (arm_usatsihi): Likewise.
20153         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
20155 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
20157         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
20158         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
20159         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
20160         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
20161         in alphabetical order.
20162         (attribute "core_cycles"): Update for attribute changes.
20163         (arm_addsi3): Likewise.
20164         (addsi3_compare0): Likewise.
20165         (addsi3_compare0_scratch): Likewise.
20166         (addsi3_compare_op1): Likewise.
20167         (addsi3_compare_op2): Likewise.
20168         (compare_addsi2_op0): Likewise.
20169         (compare_addsi2_op1): Likewise.
20170         (addsi3_carryin_shift_<optab>): Likewise.
20171         (subsi3_carryin_shift): Likewise.
20172         (rsbsi3_carryin_shift): Likewise.
20173         (arm_subsi3_insn): Likewise.
20174         (subsi3_compare0): Likewise.
20175         (subsi3_compare): Likewise.
20176         (arm_andsi3_insn): Likewise.
20177         (thumb1_andsi3_insn): Likewise.
20178         (andsi3_compare0): Likewise.
20179         (andsi3_compare0_scratch): Likewise.
20180         (zeroextractsi_compare0_scratch
20181         (andsi_not_shiftsi_si): Likewise.
20182         (iorsi3_insn): Likewise.
20183         (iorsi3_compare0): Likewise.
20184         (iorsi3_compare0_scratch): Likewise.
20185         (arm_xorsi3): Likewise.
20186         (thumb1_xorsi3_insn): Likewise.
20187         (xorsi3_compare0): Likewise.
20188         (xorsi3_compare0_scratch): Likewise.
20189         (satsi_<SAT:code>_shift): Likewise.
20190         (rrx): Likewise.
20191         (arm_shiftsi3): Likewise.
20192         (shiftsi3_compare0): Likewise.
20193         (not_shiftsi): Likewise.
20194         (not_shiftsi_compare0): Likewise.
20195         (not_shiftsi_compare0_scratch): Likewise.
20196         (arm_one_cmplsi2): Likewise.
20197         (thumb_one_complsi2): Likewise.
20198         (notsi_compare0): Likewise.
20199         (notsi_compare0_scratch): Likewise.
20200         (thumb1_zero_extendhisi2): Likewise.
20201         (arm_zero_extendhisi2): Likewise.
20202         (arm_zero_extendhisi2_v6): Likewise.
20203         (arm_zero_extendhisi2addsi): Likewise.
20204         (thumb1_zero_extendqisi2): Likewise.
20205         (thumb1_zero_extendqisi2_v6): Likewise.
20206         (arm_zero_extendqisi2): Likewise.
20207         (arm_zero_extendqisi2_v6): Likewise.
20208         (arm_zero_extendqisi2addsi): Likewise.
20209         (thumb1_extendhisi2): Likewise.
20210         (arm_extendhisi2): Likewise.
20211         (arm_extendhisi2_v6): Likewise.
20212         (arm_extendqisi): Likewise.
20213         (arm_extendqisi_v6): Likewise.
20214         (arm_extendqisi2addsi): Likewise.
20215         (thumb1_extendqisi2): Likewise.
20216         (thumb1_movdi_insn): Likewise.
20217         (arm_movsi_insn): Likewise.
20218         (movsi_compare0): Likewise.
20219         (movhi_insn_arch4): Likewise.
20220         (movhi_bytes): Likewise.
20221         (arm_movqi_insn): Likewise.
20222         (thumb1_movqi_insn): Likewise.
20223         (arm32_movhf): Likewise.
20224         (thumb1_movhf): Likewise.
20225         (arm_movsf_soft_insn): Likewise.
20226         (thumb1_movsf_insn): Likewise.
20227         (movdf_soft_insn): Likewise.
20228         (thumb_movdf_insn): Likewise.
20229         (arm_cmpsi_insn): Likewise.
20230         (cmpsi_shiftsi): Likewise.
20231         (cmpsi_shiftsi_swp): Likewise.
20232         (arm_cmpsi_negshiftsi_si): Likewise.
20233         (movsicc_insn): Likewise.
20234         (movsfcc_soft_insn): Likewise.
20235         (arith_shiftsi): Likewise.
20236         (arith_shiftsi_compare0
20237         (arith_shiftsi_compare0_scratch
20238         (sub_shiftsi): Likewise.
20239         (sub_shiftsi_compare0
20240         (sub_shiftsi_compare0_scratch
20241         (and_scc): Likewise.
20242         (cond_move): Likewise.
20243         (if_plus_move): Likewise.
20244         (if_move_plus): Likewise.
20245         (if_move_not): Likewise.
20246         (if_not_move): Likewise.
20247         (if_shift_move): Likewise.
20248         (if_move_shift): Likewise.
20249         (if_shift_shift): Likewise.
20250         (if_not_arith): Likewise.
20251         (if_arith_not): Likewise.
20252         (cond_move_not): Likewise.
20253         (thumb1_ashlsi3): Set type attribute.
20254         (thumb1_ashrsi3): Likewise.
20255         (thumb1_lshrsi3): Likewise.
20256         (thumb1_rotrsi3): Likewise.
20257         (shiftsi3_compare0_scratch): Likewise.
20258         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
20259         (neon_mov<mode>): Likewise.
20260         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
20261         attribute changes.
20262         (thumb2_movsi_insn): Likewise.
20263         (thumb2_cmpsi_neg_shiftsi): Likewise.
20264         (thumb2_extendqisi_v6): Likewise.
20265         (thumb2_zero_extendhisi2_v6): Likewise.
20266         (thumb2_zero_extendqisi2_v6): Likewise.
20267         (thumb2_shiftsi3_short): Likewise.
20268         (thumb2_addsi3_compare0_scratch): Likewise.
20269         (orsi_not_shiftsi_si): Likewise.
20270         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
20271         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
20272         changes.
20273         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
20274         (1020alu_shift_op): Likewise.
20275         (1020alu_shift_reg_op): Likewise.
20276         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
20277         (alu_shift_op): Likewise.
20278         (alu_shift_reg_op): Likewise.
20279         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
20280         (11_alu_shift_op): Likewise.
20281         (11_alu_shift_reg_op): Likewise.
20282         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
20283         (9_alu_shift_reg_op): Likewise.
20284         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
20285         changes.
20286         (cortex_a15_alu_shift): Likewise.
20287         (cortex_a15_alu_shift_reg): Likewise.
20288         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
20289         changes.
20290         (cortex_a5_alu_shift): Likewise.
20291         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
20292         changes.
20293         (cortex_a53_alu_shift): Likewise.
20294         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
20295         changes.
20296         (cortex_a7_alu_reg): Likewise.
20297         (cortex_a7_alu_shift): Likewise.
20298         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
20299         changes.
20300         (cortex_a8_alu_shift): Likewise.
20301         (cortex_a8_alu_shift_reg): Likewise.
20302         (cortex_a8_mov): Likewise.
20303         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
20304         (cortex_a9_dp_shift): Likewise.
20305         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
20306         changes.
20307         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
20308         changes.
20309         (cortex_r4_mov): Likewise.
20310         (cortex_r4_alu_shift): Likewise.
20311         (cortex_r4_alu_shift_reg): Likewise.
20312         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
20313         (526_alu_shift_op): Likewise.
20314         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
20315         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
20316         (626te_alu_shift_op): Likewise.
20317         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
20318         (726te_alu_op): Likewise.
20319         (726te_alu_shift_op): Likewise.
20320         (726te_alu_shift_reg_op): Likewise.
20321         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
20322         (mp626_alu_shift_op): Likewise.
20323         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
20324         (pj4_alu_e1_conds): Likewise.
20325         (pj4_alu): Likewise.
20326         (pj4_alu_conds): Likewise.
20327         (pj4_shift): Likewise.
20328         (pj4_shift_conds): Likewise.
20329         (pj4_alu_shift): Likewise.
20330         (pj4_alu_shift_conds): Likewise.
20331         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
20332         changes.
20333         (cortexa7_older_only): Likewise.
20334         (cortexa7_younger): Likewise.
20336 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20338         * ipa-pure-const.c (generate_summary): Rename to...
20339         (pure_const_generate_summary): ... this.
20341 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
20343         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
20345 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
20347         PR target/57909
20348         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
20349         usage in HI mode.
20351 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20353         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
20354         enabled without -march=zEC12.
20355         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
20356         flags to be set.
20358 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
20360         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
20361         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
20362         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
20363         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
20364         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
20365         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
20366         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
20367         ISA_HAS_FP4.
20368         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
20369         and ISA_HAS_NMADD3_NMSUB3.
20370         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
20371         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
20372         (nmsub4<mode>, nmsub3<mode>): Likewise.
20373         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
20375 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
20377         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
20378         TARGET_MIPS5400 checking.
20380 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
20381             Peter Bergner  <bergner@vnet.ibm.com>
20383         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
20384         registers in the comment.
20385         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
20386         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
20387         rather than FIRST_PSEUDO_REGISTERS.
20389 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
20391         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
20392         enable extra ISA flags with TARGET_HTM.
20394 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
20396         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
20397         Fix comment typos.
20399 2013-07-15  Cong Hou  <congh@google.com>
20401         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
20402         in compare function for sorting.
20404 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
20406         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
20407         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
20408         * config/rs6000/rs6000.opt: Add -mhtm option.
20409         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
20410         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
20411         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
20412         __HTM__ if the HTM instructions are available.
20413         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
20414         htm_spr_reg_operand): New define_predicates.
20415         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
20416         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
20417         Include htm.md.
20418         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
20419         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
20420         HTM builtin functions.
20421         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
20422         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
20423         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
20424         (rs6000_builtin_mask_calculate): Likewise.
20425         (rs6000_option_override_internal): Likewise.
20426         (bdesc_htm): Add new HTM builtin support.
20427         (htm_spr_num): New function.
20428         (htm_spr_regno): Likewise.
20429         (rs6000_htm_spr_icode): Likewise.
20430         (htm_expand_builtin): Likewise.
20431         (htm_init_builtins): Likewise.
20432         (rs6000_expand_builtin): Add support for HTM builtin functions.
20433         (rs6000_init_builtins): Likewise.
20434         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
20435         option.
20436         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
20437         (TARGET_HTM, MASK_HTM): Define macros.
20438         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
20439         (FIXED_REGISTERS): Likewise.
20440         (CALL_USED_REGISTERS): Likewise.
20441         (CALL_REALLY_USED_REGISTERS): Likewise.
20442         (REG_ALLOC_ORDER): Likewise.
20443         (enum reg_class): Likewise.
20444         (REG_CLASS_NAMES): Likewise.
20445         (REG_CLASS_CONTENTS): Likewise.
20446         (REGISTER_NAMES): Likewise.
20447         (ADDITIONAL_REGISTER_NAMES): Likewise.
20448         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
20449         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
20450         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
20451         * config/rs6000/htm.md: New file.
20452         * config/rs6000/htmintrin.h: New file.
20453         * config/rs6000/htmxlintrin.h: New file.
20455 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20457         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
20458         Define SYMBOL_TINY_GOT, update comment.
20459         * config/aarch64/aarch64.c
20460         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
20461         (aarch64_expand_mov_immediate): Likewise.
20462         (aarch64_print_operand): Likewise.
20463         (aarch64_classify_symbol): Likewise.
20464         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
20465         (ldr_got_tiny): Define.
20467 2013-07-13  Tobias Grosser  <tobias@grosser.es>
20469         PR tree-optimization/54094
20470         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
20471           scheduling dimension for the parallelism check from the polyhedral
20472           information in the AST.
20473         * graphite-dependences.c (carries_deps): Do not assume the schedule is
20474           in 2D + 1 form.
20476 2013-07-13  Jason Merrill  <jason@redhat.com>
20478         * print-tree.c (debug_vec_tree): Use debug_raw.
20479         (debug_raw (vec<tree, va_gc> &)): New.
20480         (debug_raw (vec<tree, va_gc> *)): New.
20481         * tree.h: Declare them.
20483 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
20485         * ifcvt.c (ifcvt_after_combine): New static variable.
20486         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
20487         for size.
20488         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
20489         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
20490         rest_of_handle_if_after_reload): Pass new argument for if_convert.
20492 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
20494         * config/mips/mips.c (mips_expand_call): Remove empty statement.
20496 2013-07-12  Michael Matz  <matz@suse.de>
20498         PR middle-end/55771
20499         * convert.c (convert_to_real): Reject non-float inner types.
20501 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
20503         * config/aarch64/aarch64-protos.h
20504         (aarch64_simd_immediate_valid_for_move): Remove.
20505         * config/aarch64/aarch64.c (simd_immediate_info): New member.
20506         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
20507         cases.
20508         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
20510 2013-07-11  Steve Ellcey  <sellcey@mips.com>
20512         * config/mips/mips.c (mips_conditional_register_usage): Do not
20513         use t[0-7] registers in MIPS16 mode when optimizing for size.
20515 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
20517         * config/i386/i386.c (dispatch_function_versions): Fix array
20518         indexing of function_version_info to match actual_versions.
20520 2013-07-11  Teresa Johnson  <tejohnson@google.com>
20522         * vec.h (struct va_gc): Move release out-of-line.
20523         (va_gc::release): Call ggc_free on released vec.
20525 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20527         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
20528         Require GOT register as additional operand in UNSPEC.
20529         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
20530         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20531         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20532         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
20533         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
20534         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
20535         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
20537 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
20539         PR target/57631
20540         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
20541         name seen by assembler/linker rather if available.
20543 2013-07-11  Andreas Schwab  <schwab@suse.de>
20545         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
20547 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
20549         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
20551 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
20553         * doc/tm.texi.in: Move hook documentation to ....
20554         * target.def: ... here.
20556         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
20557         text on @hook line.
20558         * doc/tm.texi: Regenerate.
20560 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
20562         PR c++/57869
20563         * doc/invoke.texi: Document -Wconditionally-supported.
20565 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
20567         PR target/57844
20568         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
20569         of my_fp.
20571 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
20573         PR target/57506
20574         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
20575         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
20576         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
20577         Remove duplicate devices.
20578         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
20579         * config/avr/t-multilib: Regenerate.
20580         * config/avr/avr-tables.opt: Regenerate.
20581         * doc/avr-mmcu.texi: Regenerate.
20583 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
20585         PR target/56987
20586         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
20588 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
20590         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
20591         the cost of MULT when optimizing for size.
20593 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20595         * config/cr16/cr16-protos.h: Don't include target.h.
20597 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
20599         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
20600         adjust register size for TDmode and TFmode for VSX registers.
20602 2013-07-08  Kai Tietz  <ktietz@redhat.com>
20604         PR target/56892
20605         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
20606         hook_bool_const_tree_true.
20608 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20610         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
20611         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
20612         * config/s390/s390.md: Define FPR*_REGNUM constants.
20613         Fix FPR2_REGNUM constant (18 -> 17).
20614         ("*trunc<BFP:mode><DFP_ALL:mode>2")
20615         ("*trunc<DFP_ALL:mode><BFP:mode>2")
20616         ("trunc<BFP:mode><DFP_ALL:mode>2")
20617         ("trunc<DFP_ALL:mode><BFP:mode>2")
20618         ("*extend<BFP:mode><DFP_ALL:mode>2")
20619         ("*extend<DFP_ALL:mode><BFP:mode>2")
20620         ("extend<BFP:mode><DFP_ALL:mode>2")
20621         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
20622         FPR4_REGNUM.
20624 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
20626         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
20628 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20630         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
20631         and cfun_fpr_bit_p to cfun_fpr_save_p.
20632         (s390_frame_area, s390_register_info, s390_frame_info)
20633         (s390_emit_prologue, s390_emit_epilogue)
20634         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
20635         register numbers.
20636         * config/s390/s390.h: Define *_REGNUM macros for floating point
20637         register numbers.
20639 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20641         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
20643 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
20645         PR rtl-optimization/57786
20646         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
20647         and break out of the loop when it is set to false.
20649 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
20651         PR target/57819
20652         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
20653         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
20654         (const_int 63)) 0)).
20655         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
20656         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
20657         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
20659         PR rtl-optimization/57829
20660         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
20661         mask bits outside of mode are just sign-extension from mode to HWI.
20663 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
20665         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
20666         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
20667         adjust_address instead of change_address to keep info about alignment.
20668         (emit_strmov): Remove.
20669         (emit_memmov): New function.
20670         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
20671         (expand_movmem_epilogue): Likewise and return updated rtx for
20672         destination.
20673         (expand_constant_movmem_prologue): Likewise and return updated rtx for
20674         destination and source.
20675         (decide_alignment): Refactor, handle vector_loop.
20676         (ix86_expand_movmem): Likewise.
20677         (ix86_expand_setmem): Likewise.
20678         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
20680 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
20682         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
20683         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
20685 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
20687         * config/i386/sse.md (sse_movlhps): Change alternative 3
20688         of operand 2 to "m".
20690 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
20692         PR target/57807
20693         * config/i386/sse.md (iptr): New mode attribute.
20694         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
20695         (<sse>_vm<plusminus_insn><mode>3): Ditto.
20696         (<sse>_vmmul<mode>3): Ditto.
20697         (<sse>_vmdiv<mode>3): Ditto.
20698         (sse_vmrcpv4sf2): Ditto.
20699         (<sse>_vmsqrt<mode>2): Ditto.
20700         (sse_vmrsqrtv4sf2): Ditto.
20701         (<sse>_vm<code><mode>3): Ditto.
20702         (avx_vmcmp<mode>3): Ditto.
20703         (<sse>_vmmaskcmp<mode>3): Ditto.
20704         (<sse>_comi): Ditto.
20705         (<sse>_ucomi): Ditto.
20706         (*xop_vmfrcz_<mode>): Ditto.
20707         (*fmai_fmadd_<mode>): Ditto.
20708         (*fmai_fmsub_<mode>): Ditto.
20709         (*fmai_fnmadd_<mode>): Ditto.
20710         (*fmai_fnmsub_<mode>): Ditto.
20711         (*fma4i_vmfmadd_<mode>): Ditto.
20712         (*fma4i_vmfmsub_<mode>): Ditto.
20713         (*fma4i_vmfnmadd_<mode>): Ditto.
20714         (*fma4i_vmfnmsub_<mode>): Ditto.
20715         (*xop_vmfrcz_<mode>): Ditto.
20716         (sse_cvtps2pi): Ditto.
20717         (sse_cvttps2pi): Ditto.
20718         (sse_cvtss2si): Ditto.
20719         (sse_cvtss2si_2): Ditto.
20720         (sse_cvtss2siq_2): Ditto.
20721         (sse_cvttss2si): Ditto.
20722         (sse_cvttss2siq): Ditto.
20723         (sse_cvtsd2si): Ditto.
20724         (sse_cvtsd2si_2): Ditto.
20725         (sse_cvtsd2siq_2): Ditto.
20726         (sse_cvttsd2si): Ditto.
20727         (sse_cvttsd2siq): Ditto.
20728         (sse_cvtsd2ss): Ditto.
20729         (sse_cvtss2sd): Ditto.
20730         (avx2_pbroadcast<mode>): Ditto.
20731         (avx2_pbroadcast<mode>_1): Ditto.
20732         (*avx_vperm_broadcast_v4sf): Ditto.
20734         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
20735         (sse_movlhps): Ditto.
20736         (sse_storehps): Ditto.
20737         (sse_loadhps): Ditto.
20738         (sse_storelps): Ditto.
20739         (sse_loadlps): Ditto.
20740         (*vec_concatv4sf): Ditto.
20741         (*vec_interleave_highv2df): Ditto.
20742         (*vec_interleave_lowv2df): Ditto.
20743         (*vec_extractv2df_1_sse): Ditto.
20744         (*vec_extractv2df_0_sse): Ditto.
20745         (sse2_storelpd): Ditto.
20746         (sse2_loadlpd): Ditto.
20747         (sse2_movsd): Ditto.
20748         (*vec_concatv4si): Ditto.
20749         (vec_concatv2di): Ditto.
20751         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
20752         for Intel asm dialect.
20753         (mmx_punpcklwd): Ditto.
20754         (mmx_punpckldq): Ditto.
20756         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
20757         for intel assembler dialect.
20759 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
20761         PR target/29776
20762         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
20763         for BUILT_IN_C{LZ,LRSB}*.
20764         * tree.h (CASE_INT_FN): Add FN##IMAX case.
20765         * tree-vrp.c (extract_range_basic): Handle
20766         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
20767         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
20768         fall thru to code calling set_value*.
20769         * builtins.c (expand_builtin): Remove *IMAX cases.
20770         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
20771         if width is bigger than 2*HWI.
20773 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
20775         PR rtl-optimization/55342
20776         * lra-int.h (lra_subreg_reload_pseudos): New.
20777         * lra.c: Add undoing optional reloads to the block diagram.
20778         (lra_subreg_reload_pseudos): New.
20779         (lra_optional_reload_pseudos): Change comments.
20780         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
20781         lra_optional_reload_pseudos after undo transformations.
20782         * lra-assigns.c (pseudo_prefix_title): New.
20783         (lra_setup_reg_renumber): Use it.
20784         (spill_for): Ditto.  Check subreg reload pseudos too.
20785         (assign_by_spills): Consider subreg reload pseudos too.
20786         * lra-constraints.c (simplify_operand_subreg): Use
20787         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
20788         (curr_insn_transform): Recognize and do optional reloads.
20789         (undo_optional_reloads): New.
20790         (lra_undo_inheritance): Call undo_optional_reloads.
20792 2013-07-05  Thomas Quinot  <quinot@adacore.com>
20794         * tree-complex.c (expand_complex_operations_1): Fix typo.
20796 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
20798         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
20799         (tune_params): New member 'const vec_costs'.
20800         * config/aarch64/aarch64.c (generic_vector_cost): New.
20801         (generic_tunings): New member 'generic_vector_cost'.
20802         (aarch64_builtin_vectorization_cost): New.
20803         (aarch64_add_stmt_cost): New.
20804         (TARGET_VECTORIZE_ADD_STMT_COST): New.
20805         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
20807 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
20809         PR target/57777
20810         * config/i386/predicates.md (vsib_address_operand): Disallow
20811         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
20813 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
20815         PR middle-end/55030
20816         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
20817         expand_builtin_setjmp_receiver.
20818         (expand_label): Adjust, call expand_builtin_setjmp_receiver
20819         with NULL for the label parameter.
20820         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
20821         the frame-pointer.  Adjust comments.
20822         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
20823         only if LABEL is non-NULL.
20825 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
20827         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
20828         (ARM_ABI_AAPCS64): Ditto.
20829         (arm_abi): Ditto.
20830         (ARM_DEFAULT_ABI): Ditto.
20832 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
20834         * config/aarch64/aarch64-builtins.c
20835         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
20836         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
20837         (st1): Likewise.
20838         * config/aarch64/aarch64-simd.md
20839         (aarch64_ld1<VALL:mode>): New.
20840         (aarch64_st1<VALL:mode>): Likewise.
20841         * config/aarch64/arm_neon.h
20842         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
20844 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
20846         * config/i386/i386.c (gate_insert_vzeroupper): Check if
20847         target ISA is AVX.
20848         (ix86_option_override_internal):Turn on all -mavx target flags by
20849         default as they are dependent on AVX anyway.
20851 2013-07-02  Cary Coutant  <ccoutant@google.com>
20853         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
20854         deterministic hash.
20855         (loc_checksum_ordered): Likewise.
20856         (hash_loc_operands): Remove inline keyword.
20858 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
20860         PR tree-optimization/57741
20861         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
20862         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
20863         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
20864         Allow REAL_CST step_exprs if flag_associative_math.
20865         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
20867 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
20869         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
20871 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
20873         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
20875 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20877         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
20878         encoding.
20879         (iorsi3_insn): Likewise.
20880         (arm_xorsi3): Likewise.
20882 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
20884         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
20885         to ...
20886         (attribute "type"): ... here, and prefix with "wmmx_".
20887         (attribute "core_cycles"): Update for attribute changes.
20888         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
20889         (tbcstv4hi): Likewise.
20890         (tbcstv2si): Likewise.
20891         (iwmmxt_iordi3): Likewise.
20892         (iwmmxt_xordi3): Likewise.
20893         (iwmmxt_anddi3): Likewise.
20894         (iwmmxt_nanddi3): Likewise.
20895         (iwmmxt_arm_movdi): Likewise.
20896         (iwmmxt_movsi_insn): Likewise.
20897         (mov<mode>_internal): Likewise.
20898         (and<mode>3_iwmmxt): Likewise.
20899         (ior<mode>3_iwmmxt): Likewise.
20900         (xor<mode>3_iwmmxt): Likewise.
20901         (add<mode>3_iwmmxt): Likewise.
20902         (ssaddv8qi3): Likewise.
20903         (ssaddv4hi3): Likewise.
20904         (ssaddv2si3): Likewise.
20905         (usaddv8qi3): Likewise.
20906         (usaddv4hi3): Likewise.
20907         (usaddv2si3): Likewise.
20908         (sub<mode>3_iwmmxt): Likewise.
20909         (sssubv8qi3): Likewise.
20910         (sssubv4hi3): Likewise.
20911         (sssubv2si3): Likewise.
20912         (ussubv8qi3): Likewise.
20913         (ussubv4hi3): Likewise.
20914         (ussubv2si3): Likewise.
20915         (mulv4hi3_iwmmxt): Likewise.
20916         (smulv4hi3_highpart): Likewise.
20917         (umulv4hi3_highpart): Likewise.
20918         (iwmmxt_wmacs): Likewise.
20919         (iwmmxt_wmacsz): Likewise.
20920         (iwmmxt_wmacu): Likewise.
20921         (iwmmxt_wmacuz): Likewise.
20922         (iwmmxt_clrdi): Likewise.
20923         (iwmmxt_clrv8qi): Likewise.
20924         (iwmmxt_clr4hi): Likewise.
20925         (iwmmxt_clr2si): Likewise.
20926         (iwmmxt_uavgrndv8qi3): Likewise.
20927         (iwmmxt_uavgrndv4hi3): Likewise.
20928         (iwmmxt_uavgv8qi3): Likewise.
20929         (iwmmxt_uavgv4hi3): Likewise.
20930         (iwmmxt_tinsrb): Likewise.
20931         (iwmmxt_tinsrh): Likewise.
20932         (iwmmxt_tinsrw): Likewise.
20933         (iwmmxt_textrmub): Likewise.
20934         (iwmmxt_textrmsb): Likewise.
20935         (iwmmxt_textrmuh): Likewise.
20936         (iwmmxt_textrmsh): Likewise.
20937         (iwmmxt_textrmw): Likewise.
20938         (iwmxxt_wshufh): Likewise.
20939         (eqv8qi3): Likewise.
20940         (eqv4hi3): Likewise.
20941         (eqv2si3): Likewise.
20942         (gtuv8qi3): Likewise.
20943         (gtuv4hi3): Likewise.
20944         (gtuv2si3): Likewise.
20945         (gtv8qi3): Likewise.
20946         (gtv4hi3): Likewise.
20947         (gtv2si3): Likewise.
20948         (smax<mode>3_iwmmxt): Likewise.
20949         (umax<mode>3_iwmmxt): Likewise.
20950         (smin<mode>3_iwmmxt): Likewise.
20951         (umin<mode>3_iwmmxt): Likewise.
20952         (iwmmxt_wpackhss): Likewise.
20953         (iwmmxt_wpackwss): Likewise.
20954         (iwmmxt_wpackdss): Likewise.
20955         (iwmmxt_wpackhus): Likewise.
20956         (iwmmxt_wpackwus): Likewise.
20957         (iwmmxt_wpackdus): Likewise.
20958         (iwmmxt_wunpckihb): Likewise.
20959         (iwmmxt_wunpckihh): Likewise.
20960         (iwmmxt_wunpckihw): Likewise.
20961         (iwmmxt_wunpckilb): Likewise.
20962         (iwmmxt_wunpckilh): Likewise.
20963         (iwmmxt_wunpckilw): Likewise.
20964         (iwmmxt_wunpckehub): Likewise.
20965         (iwmmxt_wunpckehuh): Likewise.
20966         (iwmmxt_wunpckehuw): Likewise.
20967         (iwmmxt_wunpckehsb): Likewise.
20968         (iwmmxt_wunpckehsh): Likewise.
20969         (iwmmxt_wunpckehsw): Likewise.
20970         (iwmmxt_wunpckelub): Likewise.
20971         (iwmmxt_wunpckeluh): Likewise.
20972         (iwmmxt_wunpckeluw): Likewise.
20973         (iwmmxt_wunpckelsb): Likewise.
20974         (iwmmxt_wunpckelsh): Likewise.
20975         (iwmmxt_wunpckelsw): Likewise.
20976         (ror<mode>3): Likewise.
20977         (ashr<mode>3_iwmmxt): Likewise.
20978         (lshr<mode>3_iwmmxt): Likewise.
20979         (ashl<mode>3_iwmmxt): Likewise.
20980         (ror<mode>3_di): Likewise.
20981         (ashr<mode>3_di): Likewise.
20982         (lshr<mode>3_di): Likewise.
20983         (ashl<mode>3_di): Likewise.
20984         (iwmmxt_wmadds): Likewise.
20985         (iwmmxt_wmaddu): Likewise.
20986         (iwmmxt_tmia): Likewise.
20987         (iwmmxt_tmiaph): Likewise.
20988         (iwmmxt_tmiabb): Likewise.
20989         (iwmmxt_tmiatb): Likewise.
20990         (iwmmxt_tmiabt): Likewise.
20991         (iwmmxt_tmiatt): Likewise.
20992         (iwmmxt_tmovmskb): Likewise.
20993         (iwmmxt_tmovmskh): Likewise.
20994         (iwmmxt_tmovmskw): Likewise.
20995         (iwmmxt_waccb): Likewise.
20996         (iwmmxt_wacch): Likewise.
20997         (iwmmxt_waccw): Likewise.
20998         (iwmmxt_waligni): Likewise.
20999         (iwmmxt_walignr): Likewise.
21000         (iwmmxt_walignr0): Likewise.
21001         (iwmmxt_walignr1): Likewise.
21002         (iwmmxt_walignr2): Likewise.
21003         (iwmmxt_walignr3): Likewise.
21004         (iwmmxt_wsadb): Likewise.
21005         (iwmmxt_wsadh): Likewise.
21006         (iwmmxt_wsadbz): Likewise.
21007         (iwmmxt_wsadhz): Likewise.
21008         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
21009         (iwmmxt_wabsdiffb): Likewise.
21010         (iwmmxt_wabsdiffh): Likewise.
21011         (iwmmxt_wabsdiffw): Likewise.
21012         (iwmmxt_waddsubhx): Likewise
21013         (iwmmxt_wsubaddhx): Likewise.
21014         (addc<mode>3): Likewise.
21015         (iwmmxt_avg4): Likewise.
21016         (iwmmxt_avg4r): Likewise.
21017         (iwmmxt_wmaddsx): Likewise.
21018         (iwmmxt_wmaddux): Likewise.
21019         (iwmmxt_wmaddsn): Likewise.
21020         (iwmmxt_wmaddun): Likewise.
21021         (iwmmxt_wmulwsm): Likewise.
21022         (iwmmxt_wmulwum): Likewise.
21023         (iwmmxt_wmulsmr): Likewise.
21024         (iwmmxt_wmulumr): Likewise.
21025         (iwmmxt_wmulwsmr): Likewise.
21026         (iwmmxt_wmulwumr): Likewise.
21027         (iwmmxt_wmulwl): Likewise.
21028         (iwmmxt_wqmulm): Likewise.
21029         (iwmmxt_wqmulwm): Likewise.
21030         (iwmmxt_wqmulmr): Likewise.
21031         (iwmmxt_wqmulwmr): Likewise.
21032         (iwmmxt_waddbhusm): Likewise.
21033         (iwmmxt_waddbhusl): Likewise.
21034         (iwmmxt_wqmiabb): Likewise.
21035         (iwmmxt_wqmiabt): Likewise.
21036         (iwmmxt_wqmiatb): Likewise.
21037         (iwmmxt_wqmiatt): Likewise.
21038         (iwmmxt_wqmiabbn): Likewise.
21039         (iwmmxt_wqmiabtn): Likewise.
21040         (iwmmxt_wqmiatbn): Likewise.
21041         (iwmmxt_wqmiattn): Likewise.
21042         (iwmmxt_wmiabb): Likewise.
21043         (iwmmxt_wmiabt): Likewise.
21044         (iwmmxt_wmiatb): Likewise.
21045         (iwmmxt_wmiatt): Likewise.
21046         (iwmmxt_wmiabbn): Likewise.
21047         (iwmmxt_wmiabtn): Likewise.
21048         (iwmmxt_wmiatbn): Likewise.
21049         (iwmmxt_wmiattn): Likewise.
21050         (iwmmxt_wmiawbb): Likewise.
21051         (iwmmxt_wmiawbt): Likewise.
21052         (iwmmxt_wmiawtb): Likewise.
21053         (iwmmxt_wmiawtt): Likewise.
21054         (iwmmxt_wmiawbbn): Likewise.
21055         (iwmmxt_wmiawbtn): Likewise.
21056         (iwmmxt_wmiawtbn): Likewise.
21057         (iwmmxt_wmiawttn): Likewise.
21058         (iwmmxt_wmerge): Likewise.
21059         (iwmmxt_tandc<mode>3): Likewise.
21060         (iwmmxt_torc<mode>3): Likewise.
21061         (iwmmxt_torvsc<mode>3): Likewise.
21062         (iwmmxt_textrc<mode>3): Likewise.
21063         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
21064         (wmmxt_pack): Likewise.
21065         (wmmxt_mult_c1): Likewise.
21066         (wmmxt_mult_c2): Likewise.
21067         (wmmxt_alu_c1): Likewise.
21068         (wmmxt_alu_c2): Likewise.
21069         (wmmxt_alu_c3): Likewise.
21070         (wmmxt_transfer_c1): Likewise.
21071         (wmmxt_transfer_c2): Likewise.
21072         (wmmxt_transfer_c3): Likewise.
21073         (marvell_f_iwmmxt_wstr): Likewise.
21074         (marvell_f_iwmmxt_wldr): Likewise.
21076 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
21078         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
21080 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
21082         Revert:
21083         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
21084         * lra-constraints.c (need_for_split_p): Check call used hard regs
21085         living through calls.
21087         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
21088         call used regs for call insn.
21090 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
21092         PR target/57736
21093         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
21094         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
21096 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
21098         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
21100 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
21102         * lra-constraints.c (need_for_split_p): Check call used hard regs
21103         living through calls.
21105 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
21107         PR target/57744
21108         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
21109         to tie with any other modes.  Eliminate Altivec vector mode tests,
21110         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
21111         code, to return 0 if testing MODE2 for a condition, if we've
21112         already tested MODE1 for the same condition.
21114 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21116         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
21117         layout.
21119 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21121         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
21122         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
21124 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21126         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
21127         Define.
21128         (aarch64_symbolic_constant_p): Remove.
21129         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
21130         static.  Fix line length and white space.
21131         (aarch64_symbolic_constant_p): Remove.
21132         * config/aarch64/predicates.md (aarch64_valid_symref):
21133         Use aarch64_classify_symbol_expression.
21135 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21137         * config/arm/constraints.md (Ts): New constraint.
21138         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
21139         16-bit encodings.
21140         (compare_scc): Use "Ts" constraint for operand 0.
21141         (ior_scc_scc): Likewise.
21142         (and_scc_scc): Likewise.
21143         (and_scc_scc_nodom): Likewise.
21144         (ior_scc_scc_cmp): Likewise for operand 7.
21145         (and_scc_scc_cmp): Likewise.
21146         * config/arm/thumb2.md (thumb2_movsi_insn):
21147         Add alternatives for 16-bit encodings.
21148         (thumb2_movhi_insn): Likewise.
21149         (thumb2_movsicc_insn): Likewise.
21150         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
21151         (thumb2_negscc): Use "Ts" constraint.
21152         Move mvn instruction outside cond_exec block.
21153         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
21154         for 16-bit encodings.
21156 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21158         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
21159         encoding.
21160         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
21161         (mulsi3subsi): Likewise.
21162         (mulsidi3adddi): Likewise.
21163         (mulsidi3_v6): Likewise.
21164         (umulsidi3_v6): Likewise.
21165         (umulsidi3adddi_v6): Likewise.
21166         (smulsi3_highpart_v6): Likewise.
21167         (umulsi3_highpart_v6): Likewise.
21168         (mulhisi3tb): Likewise.
21169         (mulhisi3bt): Likewise.
21170         (mulhisi3tt): Likewise.
21171         (maddhisi4): Likewise.
21172         (maddhisi4tb): Likewise.
21173         (maddhisi4tt): Likewise.
21174         (maddhidi4): Likewise.
21175         (maddhidi4tb): Likewise.
21176         (maddhidi4tt): Likewise.
21177         (zeroextractsi_compare0_scratch): Likewise.
21178         (insv_zero): Likewise.
21179         (insv_t2): Likewise.
21180         (anddi_notzesidi_di): Likewise.
21181         (anddi_notsesidi_di): Likewise.
21182         (andsi_notsi_si): Likewise.
21183         (iordi_zesidi_di): Likewise.
21184         (xordi_zesidi_di): Likewise.
21185         (andsi_iorsi3_notsi): Likewise.
21186         (smax_0): Likewise.
21187         (smax_m1): Likewise.
21188         (smin_0): Likewise.
21189         (not_shiftsi): Likewise.
21190         (unaligned_loadsi): Likewise.
21191         (unaligned_loadhis): Likewise.
21192         (unaligned_loadhiu): Likewise.
21193         (unaligned_storesi): Likewise.
21194         (unaligned_storehi): Likewise.
21195         (extv_reg): Likewise.
21196         (extzv_t2): Likewise.
21197         (divsi3): Likewise.
21198         (udivsi3): Likewise.
21199         (arm_zero_extendhisi2addsi): Likewise.
21200         (arm_zero_extendqisi2addsi): Likewise.
21201         (compareqi_eq0): Likewise.
21202         (arm_extendhisi2_v6): Likewise.
21203         (arm_extendqisi2addsi): Likewise.
21204         (arm_movt): Likewise.
21205         (thumb2_ldrd): Likewise.
21206         (thumb2_ldrd_base): Likewise.
21207         (thumb2_ldrd_base_neg): Likewise.
21208         (thumb2_strd): Likewise.
21209         (thumb2_strd_base): Likewise.
21210         (thumb2_strd_base_neg): Likewise.
21211         (arm_negsi2): Add alternative for 16-bit encoding.
21212         (arm_one_cmplsi2): Likewise.
21214 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21216         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
21217         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
21218         (movdfcc): Likewise.
21219         * config/arm/vfp.md (*thumb2_movsf_vfp):
21220         Disable predication for arm_restrict_it.
21221         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
21222         (*thumb2_movdfcc_vfp): Likewise.
21223         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
21224         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
21225         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
21226         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
21227         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
21228         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
21229         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
21230         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
21231         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
21232         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
21233         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
21234         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
21235         Disable predication for arm_restrict_it.
21237 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
21239         * config/i386/bmiintrin.h (_bextr_u32): New.
21240         (_bextr_u64): Ditto.
21242 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
21244         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
21245         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
21246         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
21247         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
21248         * config/mips/n32-elf.h: ...this new file.
21250 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
21252         PR target/57224
21253         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
21254         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
21256 2013-06-27  Catherine Moore  <clm@codesourcery.com>
21258         * config/mips/mips-tables.opt: Regenerate.
21259         * config/mips/mips-cpus.def: Add m14ke and m14kec.
21260         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
21261         * doc/invoke.texi: Add -m14kc.
21263 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
21265         PR target/57623
21266         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
21267         constraints of operand 1 and 2.
21269         PR target/57623
21270         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
21271         to match RTL canonicalization.  Swap predicates and
21272         constraints of operand 1 and 2.
21274 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
21276         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
21277         Process OP_INOUT regs for splitting too.
21279 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
21281         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
21282         decl before the loop, initialize to NULL.
21283         (vectorizable_load): Initialize ptr_incr to NULL.
21285 2013-06-27  Martin Jambor  <mjambor@suse.cz>
21287         PR lto/57208
21288         * ipa-ref.h (ipa_maybe_record_reference): Declare.
21289         * ipa-ref.c (ipa_maybe_record_reference): New function.
21290         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
21291         * ipa-cp.c (create_specialized_node): Record potential references from
21292         aggvals.
21293         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
21295 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
21297         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
21298         parameter 'mode' of type 'enum machine_mode mode'; change to pass
21299         'mode' to force_reg.
21300         (aarch64_add_offset): Update calls to aarch64_force_temporary.
21301         (aarch64_expand_mov_immediate): Likewise.
21303 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
21305         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
21306         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
21308 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21310         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
21311         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21312         (struct machine_function): Add tbegin_p.
21313         (s390_canonicalize_comparison): Fold CC mode compares to
21314         conditional jump if possible.
21315         (s390_emit_jump): Return the emitted jump.
21316         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
21317         Handle CCRAWmode compares.
21318         (s390_option_override): Default to -mhtm if available.
21319         (s390_reg_clobbered_rtx): Handle floating point regs as well.
21320         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
21321         FPRs instead of df_regs_ever_live_p.
21322         (s390_optimize_nonescaping_tx): New function.
21323         (s390_init_frame_layout): Extend clobbered_regs array to cover
21324         FPRs as well.
21325         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
21326         (s390_expand_tbegin): New function.
21327         (enum s390_builtin): New enum definition.
21328         (code_for_builtin): New array definition.
21329         (s390_init_builtins): New function.
21330         (s390_expand_builtin): New function.
21331         (TARGET_INIT_BUILTINS): Define.
21332         (TARGET_EXPAND_BUILTIN): Define.
21333         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
21334         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
21335         (s390_alc_comparison): Likewise.
21336         * config/s390/s390-modes.def: Add CCRAWmode.
21337         * config/s390/s390.h (processor_flags): Add PF_TX.
21338         (TARGET_CPU_HTM): Define macro.
21339         (TARGET_HTM): Define macro.
21340         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
21341         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
21342         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21343         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
21344         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
21345         (TBEGIN_MASK, TBEGINC_MASK): New constants.
21346         ("*cc_to_int"): Move up.
21347         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
21348         constants other than 0.
21349         ("*ccraw_to_int"): New insn and splitter definition.
21350         ("tbegin", "tbegin_nofloat", "tbegin_retry")
21351         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
21352         ("tx_assist"): New expander.
21353         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
21354         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
21355         * config/s390/s390.opt: Add -mhtm option.
21356         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
21357         * config/s390/htmxlintrin.h: New file.
21358         * config/s390/htmintrin.h: New file.
21359         * config/s390/s390intrin.h: New file.
21360         * doc/extend.texi: Document htm builtins.
21361         * config.gcc: Add the new header files to extra_headers.
21363 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
21365         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
21366         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
21368 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
21369             Pat Haugen  <pthaugen@us.ibm.com>
21370             Peter Bergner  <bergner@vnet.ibm.com>
21372         * config/rs6000/power8.md: New.
21373         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
21374         setting for power8 entry.
21375         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
21376         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
21377         test for Power4/Power5 only.
21378         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
21379         support.
21380         (force_new_group): Adjust comment.
21381         * config/rs6000/rs6000.md: Include power8.md.
21383 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
21385         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
21386         * config/arm/arm-protos.h (arm_max_conditional_execute): New
21387         declaration.
21388         (tune_params): Update comment.
21389         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
21390         (arm_max_conditional_execute): New function.
21391         (thumb2_final_prescan_insn): Use max_insn_skipped and
21392         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
21394 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
21396         PR tree-optimization/57705
21397         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
21398         SSA_NAME step, provided that it is not defined inside the loop.
21399         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
21400         (get_initial_def_for_induction): Handle SSA_NAME IV step.
21402 2013-06-25  Martin Jambor  <mjambor@suse.cz>
21404         PR middle-end/57670
21405         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
21406         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
21407         calls in the dump.
21408         (ipa_note_param_call): Initialize member_ptr flag.
21409         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
21410         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
21411         (ipa_write_indirect_edge_info): Stream member_ptr flag.
21412         (ipa_read_indirect_edge_info): Likewise.
21414 2013-06-25  Richard Biener  <rguenther@suse.de>
21416         PR middle-end/56977
21417         * passes.c (init_optimization_passes): Move pass_fold_builtins
21418         and pass_dce earlier with -Og.
21420 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
21422         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
21423         <BIT_FIELD_REF>: Remove trailing TAB.
21424         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
21425         remove blank line.
21427 2013-06-24  Martin Jambor  <mjambor@suse.cz>
21429         PR tree-optimization/57358
21430         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
21431         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
21432         (ipa_analyze_params_uses): Generate pessimistic info when true.
21434 2013-06-24  Martin Jambor  <mjambor@suse.cz>
21436         PR tree-optimization/57539
21437         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
21438         global.inlined_to of the new node to it.  All callers changed.
21439         * ipa-inline-transform.c (clone_inlined_nodes): New variable
21440         inlining_into, pass it to cgraph_clone_node.
21441         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
21442         ipa_free_edge_args_substructures.
21443         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
21444         rdesc linked list.  Do not assert rdesc edges have inlined caller.
21445         Assert we have found an rdesc in the rdesc list.
21447 2013-06-24  Richard Biener  <rguenther@suse.de>
21449         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
21450         (pointer_set_lookup): Declare.
21451         (class pointer_map): New template class implementing a
21452         generic pointer to T map.
21453         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
21454         pointer_map<T>::contains, pointer_map<T>::insert,
21455         pointer_map<T>::traverse): New functions.
21456         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
21457         (pointer_set_lookup): New function.
21458         (pointer_set_contains): Use pointer_set_lookup.
21459         (pointer_set_insert): Likewise.
21460         (insert_aux): Remove.
21461         (struct pointer_map_t): Embed a pointer_set_t.
21462         (pointer_map_create): Adjust.
21463         (pointer_map_destroy): Likewise.
21464         (pointer_map_contains): Likewise.
21465         (pointer_map_insert): Likewise.
21466         (pointer_map_traverse): Likewise.
21467         * tree-streamer.h (struct streamer_tree_cache_d): Use a
21468         pointer_map<unsigned> instead of a pointer_map_t.
21469         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
21470         (streamer_tree_cache_lookup): Likewise.
21471         (streamer_tree_cache_create): Likewise.
21472         (streamer_tree_cache_delete): Likewise.
21473         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
21474         pointer_map<unsigned> instead of a pointer_map_t.
21475         (lto_init_tree_ref_encoder): Adjust.
21476         (lto_destroy_tree_ref_encoder): Likewise.
21477         * lto-section-out.c (lto_output_decl_index): Likewise.
21478         (lto_record_function_out_decl_state): Likewise.
21479         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
21481 2013-06-24  Richard Biener  <rguenther@suse.de>
21483         PR tree-optimization/57488
21484         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
21486 2013-06-24  Alan Modra  <amodra@gmail.com>
21488         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
21489         (gen_easy_altivec_constant): Likewise.
21490         * config/rs6000/predicates.md (easy_vector_constant_add_self,
21491         easy_vector_constant_msb): Likewise.
21493 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
21495         PR target/57688
21496         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
21497         add missing return true.
21499 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
21501         PR target/52483
21502         * config/sh/predicates.md (general_extend_operand): Invoke
21503         general_movsrc_operand for memory operands.
21504         (general_movsrc_operand): Allow reg+reg addressing, do not use
21505         general_operand for memory operands.
21507 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
21509         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
21510         when current target options does not apply.
21511         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
21512         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
21513         * config/i386/bmiintrin.h: Pass appropriate target
21514         attributes to header.
21515         * config/i386/mmintrin.h: Ditto.
21516         * config/i386/nmmintrin.h: Ditto.
21517         * config/i386/avx2intrin.h: Ditto.
21518         * config/i386/fxsrintrin.h: Ditto.
21519         * config/i386/tbmintrin.h: Ditto.
21520         * config/i386/xsaveintrin.h: Ditto.
21521         * config/i386/f16cintrin.h: Ditto.
21522         * config/i386/xtestintrin.h: Ditto.
21523         * config/i386/xsaveoptintrin.h: Ditto.
21524         * config/i386/bmi2intrin.h: Ditto.
21525         * config/i386/lzcntintrin.h: Ditto.
21526         * config/i386/smmintrin.h: Ditto.
21527         * config/i386/wmmintrin.h: Ditto.
21528         * config/i386/x86intrin.h: Remove all header include guards.
21529         * config/i386/prfchwintrin.h: Ditto.
21530         * config/i386/pmmintrin.h: Ditto.
21531         * config/i386/tmmintrin.h: Ditto.
21532         * config/i386/xmmintrin.h: Ditto.
21533         * config/i386/popcntintrin.h: Ditto.
21534         * config/i386/rdseedintrin.h: Ditto.
21535         * config/i386/ammintrin.h: Ditto.
21536         * config/i386/emmintrin.h: Ditto.
21537         * config/i386/immintrin.h: Remove all header include guards.
21538         * config/i386/fma4intrin.h: Ditto.
21539         * config/i386/lwpintrin.h: Ditto.
21540         * config/i386/xopintrin.h: Ditto.
21541         * config/i386/ia32intrin.h: Ditto.
21542         * config/i386/avxintrin.h: Ditto.
21543         * config/i386/rtmintrin.h: Ditto.
21544         * config/i386/fmaintrin.h: Ditto.
21545         * config/i386/mm3dnow.h: Ditto.
21547 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
21549         * common/config/i386/i386-common.c: Handle LZCNT.
21551 2013-06-22  Andi Kleen  <ak@linux.intel.com>
21553         * doc/extend.texi: Use __atomic_store_n instead of
21554         __atomic_store in HLE example.
21556 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
21558         * config/sh/sh.c: Remove <cstdlib> workaround.
21560 2013-06-21  Andi Kleen  <ak@linux.intel.com>
21562         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
21564 2013-06-21  Andi Kleen  <ak@linux.intel.com>
21566         * doc/extend.texi: Document that __atomic_clear and
21567           __atomic_test_and_set should only be used with bool.
21569 2013-06-20  Jan Hubicka  <jh@suse.cz>
21571         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
21572         types_same_for_odr.
21573         * tree.c (decls_same_for_odr): New function.
21574         (same_for_edr): New function.
21575         (types_same_for_odr): New function.
21576         (get_binfo_at_offset): Use it.
21577         * tree.h (types_same_for_odr): Declare.
21579 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
21580             Jason Merrill  <jason@redhat.com>
21582         * system.h: Include <cstdlib> as well as <stdlib.h>.
21584 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
21586         PR target/57655
21587         * config/i386/i386.c (construct_container): Report error if
21588         long double is used with disabled x87 float returns.
21590 2013-06-20  Jan Hubicka  <jh@suse.cz>
21592         * lto-cgraph.c (input_symtab): Do not set cgraph state.
21594 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
21596         PR rtl-optimization/57425
21597         PR rtl-optimization/57569
21598         * alias.c (write_dependence_p): Remove parameters mem_mode and
21599         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
21600         Changed all callers.
21601         (canon_anti_dependence): Get comments and semantics in sync.
21602         Add parameter mem_canonicalized.  Changed all callers.
21603         * rtl.h (canon_anti_dependence): Update prototype.
21605 2013-06-20  Richard Biener  <rguenther@suse.de>
21607         * data-streamer-in.c (streamer_read_uhwi): Optimize single
21608         byte case, inline streamer_read_uchar and defer section
21609         overrun check.
21611 2013-06-20  Richard Biener  <rguenther@suse.de>
21613         PR tree-optimization/57584
21614         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
21615         SSA names into the expanded expression that take part in
21616         abnormal coalescing.
21618 2013-06-19  Sharad Singhai  <singhai@google.com>
21620         * gcov.c (print_usage): Handle new option.
21621         (process_args): Ditto.
21622         (get_gcov_intermediate_filename): New function.
21623         (output_intermediate_file): New function.
21624         (output_gcov_file): New function
21625         (generate_results): Handle new option.
21626         (release_function): Relase demangled name.
21627         (read_graph_file): Handle demangled name.
21628         (output_lines): Ditto.
21629         * doc/gcov.texi: Document gcov intermediate format.
21631 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
21633         PR bootstrap/57604
21634         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
21635         (lra_emit_add): Use the functions.  Add comment about Y as an
21636         address segment.
21638 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
21640         PR driver/57652
21641         * collect2.c (collect_atexit): New.
21642         (collect_exit): Delete.
21643         (main): Register collect_atexit with atexit.
21644         (collect_wait): Change collect_exit to exit.
21645         (do_wait): Same.
21646         * collect2.h (collect_exit): Delete.
21647         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
21649 2013-06-19  Wei Mi  <wmi@google.com>
21651         PR rtl-optimization/57518
21652         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
21653         if regno is used in paradoxical subreg.
21654         (update_equiv_regs): Check pdx_subregs[regno] before
21655         set a reg to be equivalent with a mem.
21657 2013-06-19  Matthias Klose  <doko@ubuntu.com>
21659         PR driver/57651
21660         * file-find.h (find_a_file): Add a mode parameter.
21661         * file-find.c (find_a_file): Likewise.
21662         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
21663         with X_OK for the executables.
21664         * collect2.c (main): Call find_a_file with X_OK.
21666 2013-06-19  Steve Ellcey  <sellcey@mips.com>
21668         PR target/56942
21669         * config/mips/mips.md (casesi_internal_mips16_<mode>):
21670         Use NEXT_INSN instead of next_real_insn.
21672 2013-06-19  Jan Hubicka  <jh@suse.cz>
21674         * cgraph.h (const_value_known_p): Replace by ...
21675         (ctor_for_folding): .. this one.
21676         * cgraphunit.c (process_function_and_variable_attributes): Use it.
21677         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
21678         * expr.c (expand_expr_real_1): Likewise.
21679         (string_constant): Likewise.
21680         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
21681         * ipa.c (process_references): Likewise.
21682         (symtab_remove_unreachable_nodes): Likewise.
21683         * ipa-inline-analysis.c (param_change_prob): Likewise.
21684         * gimple-fold.c (canonicalize_constructor_val): Likewise.
21685         (get_base_constructor): Likwise.
21686         * varpool.c (varpool_remove_node): Likewise.
21687         (varpool_remove_initializer): LIkewise.
21688         (dump_varpool_node): LIkwise.
21689         (const_value_known_p): Rewrite to ...
21690         (ctor_for_folding): ... this one.
21692 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
21694         PR driver/57651
21695         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
21696         PERSONALITY in $PATH derived prefixes.
21698 2013-06-19  Jeff Law  <law@redhat.com>
21700         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
21701         in comment.
21703         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
21704         (simplify_bitwise_binary): Use it to simpify certain binary ops on
21705         booleans.
21707 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
21709         * config/arm/vfp.md: Move VFP instruction classification documentation
21710         to ...
21711         * config/arm/arm.md: ... here.  Update instruction classification
21712         documentation.
21714 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
21716         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
21717         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
21718         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
21720 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
21722         PR target/57609
21723         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21724         with NEXT_INSN.  Use tablejump_p to check for jump table data
21725         insns.
21727 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
21729         PR c++/56544
21730         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
21731         that now in C++ the value is correct per the C++ standards.
21733 2013-06-19  Richard Biener  <rguenther@suse.de>
21735         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
21736         for global context.
21738 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21740         Revert:
21741         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21743         PR target/57609
21744         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21745         with next_active_insn.
21747 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
21749         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
21750         functions are inlined during failures to flag an error.
21751         * tree-inline.c (expand_call_inline): Allow the error to be flagged
21752         in early inline pass.
21754 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
21756         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
21757         in comments.
21759 2013-06-18  Julian Brown  <julian@codesourcery.com>
21761         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
21762         Permit virtual register pre-reload if !strict.
21763         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
21764         change.
21765         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
21766         prototype.
21767         * config/arm/neon.md (movmisalign<mode>): Use
21768         neon_perm_struct_or_reg_operand instead of
21769         neon_struct_or_register_operand.
21770         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
21771         neon_permissive_struct_operand instead of neon_struct_operand.
21772         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
21773         neon_vector_mem_operand.
21774         * config/arm/predicates.md (neon_struct_operand): Adjust call to
21775         neon_vector_mem_operand.
21776         (neon_permissive_struct_operand): New.
21777         (neon_struct_or_register_operand): Rename to...
21778         (neon_perm_struct_or_reg_operand): This. Adjust call to
21779         neon_vector_mem_operand.
21781 2013-06-18  Richard Biener  <rguenther@suse.de>
21783         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
21784         * lto-streamer.h: Include pointer-set.h.
21785         (struct lto_decl_slot): Remove.
21786         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
21787         Remove next_index entry.
21788         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
21789         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
21790         (lto_init_tree_ref_encoder): Adjust.
21791         (lto_destroy_tree_ref_encoder): Likewise.
21792         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
21793         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
21794         (lto_output_decl_index): Adjust.
21795         (lto_new_out_decl_state): Likewise.
21796         (lto_record_function_out_decl_state): Likewise.
21797         * lto-streamer-out.c (copy_function): Likewise.
21799 2013-06-18  Richard Biener  <rguenther@suse.de>
21801         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
21802         * cgraphunit.c: Include cfgloop.h.
21803         (init_lowered_empty_function): Initialize the loop tree.
21804         (assemble_thunk): Insert new BBs into loops.
21806 2013-06-18  Richard Biener  <rguenther@suse.de>
21808         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
21809         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
21810         the map from cache entry to cache index optional.
21811         (streamer_tree_cache_replace_tree): Adjust accordingly.
21812         (streamer_tree_cache_append): Likewise.
21813         (streamer_tree_cache_delete): Likewise.
21814         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
21815         streamer cache map from cache entry to cache index.
21816         * lto-streamer-out.c (create_output_block): Adjust.
21818 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
21820         * config/arm/arm.md (attribute "insn"): Move multiplication and
21821         division attributes to...
21822         (attribute "type"): ... here.  Remove mult.
21823         (attribute "mul32"): New attribute.
21824         (attribute "mul64"): Add umaal.
21825         (*arm_mulsi3): Update attributes.
21826         (*arm_mulsi3_v6): Likewise.
21827         (*thumb_mulsi3): Likewise.
21828         (*thumb_mulsi3_v6): Likewise.
21829         (*mulsi3_compare0): Likewise.
21830         (*mulsi3_compare0_v6): Likewise.
21831         (*mulsi_compare0_scratch): Likewise.
21832         (*mulsi_compare0_scratch_v6): Likewise.
21833         (*mulsi3addsi): Likewise.
21834         (*mulsi3addsi_v6): Likewise.
21835         (*mulsi3addsi_compare0): Likewise.
21836         (*mulsi3addsi_compare0_v6): Likewise.
21837         (*mulsi3addsi_compare0_scratch): Likewise.
21838         (*mulsi3addsi_compare0_scratch_v6): Likewise.
21839         (*mulsi3subsi): Likewise.
21840         (*mulsidi3adddi): Likewise.
21841         (*mulsi3addsi_v6): Likewise.
21842         (*mulsidi3adddi_v6): Likewise.
21843         (*mulsidi3_nov6): Likewise.
21844         (*mulsidi3_v6): Likewise.
21845         (*umulsidi3_nov6): Likewise.
21846         (*umulsidi3_v6): Likewise.
21847         (*umulsidi3adddi): Likewise.
21848         (*umulsidi3adddi_v6): Likewise.
21849         (*smulsi3_highpart_nov6): Likewise.
21850         (*smulsi3_highpart_v6): Likewise.
21851         (*umulsi3_highpart_nov6): Likewise.
21852         (*umulsi3_highpart_v6): Likewise.
21853         (mulhisi3): Likewise.
21854         (*mulhisi3tb): Likewise.
21855         (*mulhisi3bt): Likewise.
21856         (*mulhisi3tt): Likewise.
21857         (maddhisi4): Likewise.
21858         (*maddhisi4tb): Likewise.
21859         (*maddhisi4tt): Likewise.
21860         (maddhidi4): Likewise.
21861         (*maddhidi4tb): Likewise.
21862         (*maddhidi4tt): Likewise.
21863         (divsi3): Likewise.
21864         (udivsi3): Likewise.
21865         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
21866         (thumb2_mulsi_short_compare0): Likewise.
21867         (thumb2_mulsi_short_compare0_scratch): Likewise.
21868         * config/arm/arm1020e.md (1020mult1): Update attribute change.
21869         (1020mult2): Likewise.
21870         (1020mult3): Likewise.
21871         (1020mult4): Likewise.
21872         (1020mult5): Likewise.
21873         (1020mult6): Likewise.
21874         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
21875         change.
21876         (cortex_a15_mult64): Likewise.
21877         (cortex_a15_sdiv): Likewise.
21878         (cortex_a15_udiv): Likewise.
21879         * config/arm/arm1026ejs.md (mult1): Update attribute change.
21880         (mult2): Likewise.
21881         (mult3): Likewise.
21882         (mult4): Likewise.
21883         (mult5): Likewise.
21884         (mult6): Likewise.
21885         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
21886         (pj4_ir_div): Likewise.
21887         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
21888         (11_mult2): Likewise.
21889         (11_mult3): Likewise.
21890         (11_mult4): Likewise.
21891         (11_mult5): Likewise.
21892         (11_mult6): Likewise.
21893         (11_mult7): Likewise.
21894         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
21895         (cortex_a8_mla): Likewise.
21896         (cortex_a8_mull): Likewise.
21897         (cortex_a8_smulwy): Likewise.
21898         (cortex_a8_smlald): Likewise.
21899         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
21900         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
21901         (cortex_r4_mul_3): Likewise.
21902         (cortex_r4_mla_4): Likewise.
21903         (cortex_r4_mla_3): Likewise.
21904         (cortex_r4_smlald): Likewise.
21905         (cortex_r4_mull): Likewise.
21906         (cortex_r4_sdiv): Likewise.
21907         (cortex_r4_udiv): Likewise.
21908         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
21909         (cortex_a7_idiv): Likewise.
21910         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
21911         (9_mult2): Likewise.
21912         (9_mult3): Likewise.
21913         (9_mult4): Likewise.
21914         (9_mult5): Likewise.
21915         (9_mult6): Likewise.
21916         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
21917         (cortex_a53_sdiv): Likewise.
21918         (cortex_a53_udiv): Likewise.
21919         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
21920         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
21921         (mp626_mult2): Likewise.
21922         (mp626_mult3): Likewise.
21923         (mp626_mult4): Likewise.
21924         * config/arm/fa526.md (526_mult1): Update attribute change.
21925         (526_mult2): Likewise.
21926         * config/arm/arm-generic.md (mult): Update attribute change.
21927         (mult_ldsched_strongarm): Likewise.
21928         (mult_ldsched): Likewise.
21929         (multi_cycle): Likewise.
21930         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
21931         * config/arm/fa606te.md (606te_mult1): Update attribute change.
21932         (606te_mult2): Likewise.
21933         (606te_mult3): Likewise.
21934         (606te_mult4): Likewise.
21935         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
21936         (cortex_a9_mac16): Likewise.
21937         (cortex_a9_multiply): Likewise.
21938         (cortex_a9_mac): Likewise.
21939         (cortex_a9_multiply_long): Likewise.
21940         * config/arm/fa626te.md (626te_mult1): Update attribute change.
21941         (626te_mult2): Likewise.
21942         (626te_mult3): Likewise.
21943         (626te_mult4): Likewise.
21945 2013-06-18  Richard Biener  <rguenther@suse.de>
21947         PR lto/57334
21948         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
21950 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21952         PR target/57609
21953         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21954         with next_active_insn.
21956 2013-06-18  Alan Modra  <amodra@gmail.com>
21958         * config/rs6000/rs6000.h (enum data_align): New.
21959         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
21960         (DATA_ABI_ALIGNMENT): Define.
21961         (CONSTANT_ALIGNMENT): Correct comment.
21962         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
21963         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
21965 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
21967         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
21968         ATTRIBUTE_UNUSED marking.
21970 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
21972         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
21973         alternative and update.
21974         (aarch64_dup_lanedi): Delete.
21975         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
21976         * config/aarch64/aarch64-simd-builtins.def: Update.
21978 2013-06-17  Richard Biener  <rguenther@suse.de>
21980         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
21981         (lto_input_scc): Declare.
21982         (lto_input_tree_1): Likewise.
21983         (struct lto_stats_d): Add num_tree_bodies_output and
21984         num_pickle_refs_output.
21985         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
21986         (lto_read_tree_1): Split out from ...
21987         (lto_read_tree): ... this.
21988         (lto_input_scc): New function.
21989         (lto_input_tree_1): Split out from ...
21990         (lto_input_tree): ... this.  Handle LTO_tree_scc.
21991         (lto_data_in_create): Create the streamer cache without hashes.
21992         * lto-streamer-out.c (create_output_block): Create the streamer
21993         cache with hashes when not doing WPA.
21994         (lto_write_tree_1): Split out from ...
21995         (lto_write_tree): ... this.
21996         (get_symbol_initial_value): New function.
21997         (lto_output_tree_1): Split out from ...
21998         (lto_output_tree): ... this.  Write trees as series of SCCs
21999         using a DFS walk via DFS_write_tree.
22000         (struct sccs, struct scc_entry): New types.
22001         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
22002         (DFS_write_tree_body): New function.
22003         (DFS_write_tree): Likewise.
22004         (hash_tree): Likewise.
22005         (scc_entry_compare): Likewise.
22006         (hash_scc): Likewise.
22007         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
22008         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
22009         TREE_CHAIN as regular reference.
22010         (streamer_read_integer_cst): Remove.
22011         (streamer_get_pickled_tree): Adjust.
22012         * tree-streamer-out.c (streamer_write_chain): Disable streaming
22013         of DECL_EXTERNALs in BLOCK_VARS for now.
22014         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
22015         reference.
22016         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
22017         Add hash value argument and record that if hashes are recorded
22018         in the cache.
22019         (streamer_tree_cache_insert_1): Adjust.
22020         (streamer_tree_cache_insert): Likewise.
22021         (streamer_tree_cache_insert_at): Rename to ...
22022         (streamer_tree_cache_replace_tree): ... this and adjust.
22023         (streamer_tree_cache_append): Adjust.
22024         (record_common_node): Likewise.
22025         (streamer_tree_cache_create): Add argument whether to
22026         record hash values together with trees.
22027         (streamer_tree_cache_delete): Adjust.
22028         * tree-streamer.h (struct streamer_tree_cache_d): Add
22029         vector of hashes.
22030         (streamer_read_integer_cst): Remove.
22031         (streamer_tree_cache_insert): Adjust.
22032         (streamer_tree_cache_append): Likewise.
22033         (streamer_tree_cache_insert_at): Rename to ...
22034         (streamer_tree_cache_replace_tree): ... this and adjust.
22035         (streamer_tree_cache_create): Add argument whether to record hashes.
22036         (streamer_tree_cache_get): Rename to ...
22037         (streamer_tree_cache_get_tree): ... this.
22038         (streamer_tree_cache_get_hash): New function.
22039         * tree.c (cache_integer_cst): New function.
22040         * tree.h (cache_integer_cst): Declare.
22041         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
22042         * lto-symtab.c (lto_varpool_replace_node): Only release
22043         DECL_INITIAL of non-prevailing decls.
22044         * varpool.c (varpool_remove_initializer): Do not release
22045         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
22047 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
22049         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
22050         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
22051         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
22052         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
22053         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
22054         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
22055         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
22056         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
22057         instead of TARGET_64BIT.
22058         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
22059         Require ISA_HAS_<D>DIV.
22061 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
22063         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
22064         (mips*-*-linux*): Move default with_llsc setting to where other
22065         defaults are set.
22066         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
22067         with_arch block.
22068         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
22069         Likewise.  Remove default with_tune setting.  Move default float
22070         setting to its own block.  Handle with_llsc in the same block as above.
22072 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
22074         PR rtl-optimization/57425
22075         PR rtl-optimization/57569
22076         * alias.c (write_dependence_p): Add new parameters mem_mode,
22077         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
22078         Changed all callers.
22079         (canon_anti_dependence): New function.
22080         * cse.c (check_dependence): Use canon_anti_dependence.
22081         * cselib.c (cselib_invalidate_mem): Likewise.
22082         * rtl.h (canon_anti_dependence): Declare.
22084 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
22086         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
22087         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
22088         ".set mips3" for 64-bit targets.
22090 2013-06-15  Dehao Chen  <dehao@google.com>
22092         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
22093         * gimple-low.c (gimple_check_call_matching_types): Likewise.
22094         (gimple_check_call_args): Likewise.
22095         * value-prof.c (check_ic_target): Likewise.
22096         * ipa-inline.c (early_inliner): Likewise.
22097         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
22098         * cgraph.c (cgraph_create_edge_1): Likewise.
22099         (cgraph_make_edge_direct): Likewise.
22101 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22103         PR target/57615
22104         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
22105         rs6000_output_move_128bit to handle emitting quad memory
22106         operations.  Set attribute length to 8 bytes.
22108 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
22110         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
22111         New pattern.
22112         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
22113         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
22114         (aarch64_<su>mlsl<mode>): Likewise.
22116 2013-06-14  Mike Stump  <mikestump@comcast.net>
22118         * Makefile.in (TARGET_H): Add insn-codes.h.
22120 2013-06-14  Alan Modra  <amodra@gmail.com>
22122         PR middle-end/57134
22123         PR middle-end/57586
22124         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
22125         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
22126         bitfield expansion when EXPAND_MEMORY.
22127         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
22129 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
22131         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
22132         test for clearing quad memory on 32-bit later.
22134 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
22136         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
22137         (fold_negate_expr): Likewise.
22138         (fold_real_zero_addition_p): Handle vectors.
22139         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
22141 2013-06-14  Alan Modra  <amodra@gmail.com>
22143         * varasm.c (force_const_mem): Revert 2013-06-07 change.
22145 2013-06-13  Jan Hubicka  <jh@suse.cz>
22147         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
22148         Local comdats are not externally visible.
22149         * symtab.c (dump_symtab_base): Dump externally visible.
22150         (verify_symtab_base): Verify back links in the symtab hash.
22152 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
22154         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
22155         CONVERT_EXPR as equal nodes.
22157 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
22159         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
22161 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
22163         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
22164         Generalize to complex and vector.
22165         * tree.c (build_all_ones_cst): New function.
22166         * tree.h (build_all_ones_cst): Declare it.
22168 2013-06-13  Alan Modra  <amodra@gmail.com>
22170         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
22171         * config/rs6000/rs6000.md (signbittf2): New insn.
22172         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
22173         (abstf2_internal, cmptf_internal2): Likewise.
22174         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
22176 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22177             Pat Haugen  <pthaugen@us.ibm.com>
22178             Peter Bergner  <bergner@vnet.ibm.com>
22180         * config/rs6000/rs6000.c (emit_load_locked): Add support for
22181         power8 byte, half-word, and quad-word atomic instructions.
22182         (emit_store_conditional): Likewise.
22183         (rs6000_expand_atomic_compare_and_swap): Likewise.
22184         (rs6000_expand_atomic_op): Likewise.
22186         * config/rs6000/sync.md (larx): Add new modes for power8.
22187         (stcx): Likewise.
22188         (AINT): New mode iterator to include TImode as well as normal
22189         integer modes on power8.
22190         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
22191         that VSX registers are not considered.  Use AINT mode iterator
22192         instead of INT1 to allow inclusion of quad word atomic operations
22193         on power8.
22194         (load_locked<mode>): Likewise.
22195         (store_conditional<mode>): Likewise.
22196         (atomic_compare_and_swap<mode>): Likewise.
22197         (atomic_exchange<mode>): Likewise.
22198         (atomic_nand<mode>): Likewise.
22199         (atomic_fetch_<fetchop_name><mode>): Likewise.
22200         (atomic_nand_fetch<mode>): Likewise.
22201         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
22202         each type.
22203         (ATOMIC): On power8, add QImode, HImode modes.
22204         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
22205         modes that promote to SImode.
22206         (load_lockedti): Convert TImode arguments to PTImode, so that we
22207         get a guaranteed even/odd register pair.
22208         (load_lockedpti): Likewise.
22209         (store_conditionalti): Likewise.
22210         (store_conditionalpti): Likewise.
22212         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
22213         atomic load/store instructions.
22214         (HSI): Likewise.
22216 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
22218         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
22219         loads.
22220         (insn_count): New attribute, with most cases extracted from...
22221         (length): ...here.  Redefine most cases in terms of insn_count.
22222         (single_insn): Delete.
22223         (can_delay): Use insn_count to check for single instructions.
22224         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
22225         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
22226         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
22227         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
22228         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
22229         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
22230         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
22231         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
22232         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
22233         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
22234         rather than "length".
22235         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
22236         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
22237         Use "insn_count" rather than "length".
22238         * config/mips/mips-dsp.md
22239         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
22240         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
22241         length attributes.
22243 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
22245         PR tree-optimization/57361
22246         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
22248 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
22250         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
22251         to split.
22252         (aarch64_simd_combine<mode>): New instruction expansion.
22253         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
22254         function prototype.
22255         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
22256         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
22258 2013-06-12  Jan Hubicka  <jh@suse.cz>
22260         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
22261         decl has when in streaming stage.
22262         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
22263         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
22265 2013-06-12  Roland Stigge  <stigge@antcom.de>
22267         PR target/57578
22268         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
22270 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
22272         PR tree-optimization/57537
22273         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
22274         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
22276 2013-06-12  Richard Biener  <rguenther@suse.de>
22278         * data-streamer.h (streamer_write_char_stream): CSE
22279         obs->current_pointer.
22280         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
22281         streamer_write_char_stream manually and optimize the resulting loop.
22282         (streamer_write_hwi_stream): Likewise.
22284 2013-06-12  Jan Hubicka  <jh@suse.cz>
22286         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
22287         * cgraph.h (varpool_create_empty_node): Declare.
22288         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
22289         duplicated nodes.
22290         * symtab.c (symtab_unregister_node): Be lax about missin entries
22291         in node hash.
22292         (symtab_get_node): Update comment.
22293         * varpool.c (varpool_create_empty_node): Break out from ...
22294         (varpool_node_for_decl): ... here.
22295         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
22297 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
22299         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
22300         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
22301         part.  Use straight-line flow at the end.
22302         <COMPONENT_REF>: Remove superfluous else.
22303         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
22305 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
22307         PR target/56564
22308         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
22309         target hook even for !TREE_PUBLIC decls.  If no resolution info
22310         is available, return false for common and external decls.
22312 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
22314         * config/rl78/constraints.md (U): New constraint.
22315         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
22316         valloc attribute.
22318 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
22320         PR target/57589
22321         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
22322         to allow returning address to AT_PLATFORM name.
22324 2013-06-11  Jan Hubicka  <jh@suse.cz>
22326         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
22327         * cgraph.h (symtab_node_base): Add weakref flag.
22328         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
22329         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
22330         (output_weakrefs): Use weakref flag.
22331         * fold-const.c (simple_operand_p): Handle WEAK.
22332         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
22333         * ipa.c (varpool_externally_visible_p): Drop weakref.
22334         (function_and_variable_visibility): Update comment; fix weakref
22335         sanity checks; do not clear DECL_WEAK on them.
22336         * lto-cgraph.c (lto_output_node): update.
22337         (lto_output_varpool_node): Update.
22338         (input_overwrite_node): Update.
22339         (input_node): Update.
22340         (input_varpool_node): Update.
22341         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
22342         (lto_symtab_merge_symbols): Add sanity check.
22343         (lto_symtab_prevailing_decl): Do not special case weakrefs.
22344         * passes.c (rest_of_decl_compilation): Set static flag, too.
22345         * symtab.c (dump_symtab_base): Dump weakref.
22346         (verify_symtab_base): Sanity check weakrefs.
22347         (symtab_make_decl_local): Remove duplicated code.
22348         (symtab_alias_ultimate_target): Simplify.
22349         * varpool.c (varpool_create_variable_alias): Set weakref flag.
22351 2013-06-11  Tom de Vries  <tom@codesourcery.com>
22353         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
22354         sequence_vect == NULL.
22356 2013-06-11  DJ Delorie  <dj@redhat.com>
22358         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
22359         (rl78_unwind_word_mode): New.
22361 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
22363         * final.c (debug_prefix_maps): Make static.
22365 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
22367         * function.c (initial_trampoline): Remove stray copy.
22369 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
22371         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
22373 2013-06-11  Martin Jambor  <mjambor@suse.cz>
22375         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
22376         within bounds at the beginning of the function.
22378 2013-06-11  Alan Modra  <amodra@gmail.com>
22380         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
22381         reporting.
22382         (get_named_section): Don't NULL !DECL_P decl.
22384 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
22386         * doc/invoke.texi (core-avx2): Document.
22387         (slm): Likewise.
22388         (atom): Updated with MOVBE.
22390 2013-06-11  Richard Biener  <rguenther@suse.de>
22392         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
22394 2013-06-11  Anton Blanchard  <anton@samba.org>
22396         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
22397         correct shift value in little-endian mode.
22399 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
22401         PR target/56564
22402         * varasm.c (get_variable_align): Move #endif to the right place.
22404 2013-06-10  Cary Coutant  <ccoutant@google.com>
22406         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
22407         for hash so that hash table traversal order is deterministic.
22409 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
22410             Pat Haugen  <pthaugen@us.ibm.com>
22411             Peter Bergner  <bergner@vnet.ibm.com>
22413         * config/rs6000/vector.md (GPR move splitter): Do not split moves
22414         of vectors in GPRS if they are direct moves or quad word load or
22415         store moves.
22417         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
22418         declaration.
22419         (direct_move_p): Likewise.
22420         (quad_load_store_p): Likewise.
22422         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
22423         classes into bins based on the physical register type.
22424         (reg_class_to_reg_type): Likewise.
22425         (IS_STD_REG_TYPE): Likewise.
22426         (IS_FP_VECT_REG_TYPE): Likewise.
22427         (reload_fpr_gpr): Arrays to determine what insn to use if we can
22428         use direct move instructions.
22429         (reload_gpr_vsx): Likewise.
22430         (reload_vsx_gpr): Likewise.
22431         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
22432         information that is a simplification of register classes.  Also
22433         precalculate direct move reload helpers.
22434         (direct_move_p): New function to return true if the operation can
22435         be done as a direct move instruciton.
22436         (quad_load_store_p): New function to return true if the operation
22437         is a quad memory operation.
22438         (rs6000_legitimize_address): If quad memory, only allow register
22439         indirect for TImode addresses.
22440         (rs6000_legitimate_address_p): Likewise.
22441         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
22442         (rs6000_reload_register_type): Likewise.
22443         (register_to_reg_type): Return register type.
22444         (rs6000_secondary_reload_simple_move): New helper function for
22445         secondary reload and secondary memory needed to identify anything
22446         that is a simple move, and does not need reloading.
22447         (rs6000_secondary_reload_direct_move): New helper function for
22448         secondary reload to identify cases that can be done with several
22449         instructions via the direct move instructions.
22450         (rs6000_secondary_reload_move): New helper function for secondary
22451         reload to identify moves between register types that can be done.
22452         (rs6000_secondary_reload): Add support for quad memory operations
22453         and for direct move.
22454         (rs6000_secondary_memory_needed): Likewise.
22455         (rs6000_debug_secondary_memory_needed): Change argument names.
22456         (rs6000_output_move_128bit): New function to return the move to
22457         use for 128-bit moves, including knowing about the various
22458         limitations of quad memory operations.
22460         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
22461         memory operations.  call rs6000_output_move_128bit for the actual
22462         instruciton(s) to generate.
22463         (vsx_movti_64bit): Likewise.
22465         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
22466         (UNSPEC_P8V_MTVSRWZ): Likewise.
22467         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
22468         (UNSPEC_P8V_MTVSRD): Likewise.
22469         (UNSPEC_P8V_XXPERMDI): Likewise.
22470         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
22471         (UNSPEC_FUSION_GPR): Likewise.
22472         (FMOVE128_GPR): New iterator for direct move.
22473         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
22474         (f32_sv): Likewise.
22475         (f32_dm): Likewise.
22476         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
22477         loads and direct move instructions.
22478         (zero_extendsidi2_lfiwzx): Likewise.
22479         (extendsidi2_lfiwax): Likewise.
22480         (extendsidi2_nocell): Likewise.
22481         (floatsi<mode>2_lfiwax): Likewise.
22482         (lfiwax): Likewise.
22483         (floatunssi<mode>2_lfiwzx): Likewise.
22484         (lfiwzx): Likewise.
22485         (fix_trunc<mode>_stfiwx): Likewise.
22486         (fixuns_trunc<mode>_stfiwx): Likewise.
22487         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
22488         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
22489         (parity<mode>2_cmpb): Set length/type attr.
22490         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
22491         for 'mr.' to fast_compare.
22492         (bpermd_<mode>): Change type attr to popcnt.
22493         (p8_fmrgow_<mode>): New insns for power8 direct move support.
22494         (p8_mtvsrwz_1): Likewise.
22495         (p8_mtvsrwz_2): Likewise.
22496         (reload_fpr_from_gpr<mode>): Likewise.
22497         (p8_mtvsrd_1): Likewise.
22498         (p8_mtvsrd_2): Likewise.
22499         (p8_xxpermdi_<mode>): Likewise.
22500         (reload_vsx_from_gpr<mode>): Likewise.
22501         (reload_vsx_from_gprsf): Likewise.
22502         (p8_mfvsrd_3_<mode>): LIkewise.
22503         (reload_gpr_from_vsx<mode>): Likewise.
22504         (reload_gpr_from_vsxsf): Likewise.
22505         (p8_mfvsrd_4_disf): Likewise.
22506         (multi-word GPR splits): Do not split direct moves or quad memory
22507         operations.
22509 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
22511         * tree-into-ssa.c (interesting_blocks): Make static.
22513 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
22515         PR target/56564
22516         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
22517         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
22518         Use DATA_ABI_ALIGNMENT for that case instead if defined.
22519         (get_variable_align): New function.
22520         (get_variable_section, emit_bss, emit_common,
22521         assemble_variable_contents, place_block_symbol): Use
22522         get_variable_align instead of DECL_ALIGN.
22523         (assemble_noswitch_variable): Add align argument, use it
22524         instead of DECL_ALIGN.
22525         (assemble_variable): Adjust caller.  Use get_variable_align
22526         instead of DECL_ALIGN.
22527         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
22528         caller.
22529         (DATA_ABI_ALIGNMENT): Define.
22530         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
22531         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
22532         opt is false, only return the psABI mandated alignment increase.
22533         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
22534         (DATA_ABI_ALIGNMENT): ... this.
22535         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
22536         (DATA_ABI_ALIGNMENT): ... this.
22537         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
22538         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
22539         (DATA_ABI_ALIGNMENT): ... this.
22540         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
22541         * doc/tm.texi: Regenerated.
22543 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
22545         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
22546         cmp_code to construct REG_EQUAL note.
22548 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
22550         PR target/57568
22551         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
22552         that operands[2] doesn't overlap with operands[0].
22554 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
22555             Jan Hubicka  <jh@suse.cz>
22557         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
22558         hack to mark symbols as used.
22560 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
22562         PR rtl-optimization/57559
22563         * lra-constraints.c (process_alt_operands): Don't discourage
22564         memory with known offset for offsetable memory constraint.
22565         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
22567 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
22569         * varasm.c (struct oc_local_state): Reorder fields.
22570         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
22571         and adjust accordingly.
22572         (output_constructor): Reorder initialization code and adjust call to
22573         output_constructor_bitfield.
22575 2013-06-07  Jan Hubicka  <jh@suse.cz>
22577         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
22579 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
22581         * tree-object-size.c (unknown): Make const.
22583 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22585         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
22586         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
22587         for last alternative in the cpu_facility attribute.
22589 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22591         PR target/56315
22592         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
22593         (xordi3): Change operand 2 constraint to arm_xordi_operand.
22594         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
22595         * config/arm/constraints.md (Dg): New constraint.
22596         * config/arm/neon.md (xordi3_neon): Remove.
22597         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
22598         * config/arm/predicates.md (arm_xordi_operand): New predicate.
22600 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22602         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
22603         Clean up alternatives.
22605 2013-06-07  Alan Modra  <amodra@gmail.com>
22607         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
22608         va_list_gpr_size.
22610 2013-06-07  Alan Modra  <amodra@gmail.com>
22612         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
22614 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22616         * config/arm/constraints.md (Df): New constraint.
22617         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
22618         Correct length attribute for last two alternatives.
22620 2013-06-07  Alan Modra  <amodra@gmail.com>
22622         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22623         override user -mfp-in-toc.
22624         (offsettable_ok_by_alignment): Consider just the current access
22625         rather than the whole object, unless BLKmode.  Handle
22626         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
22627         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
22628         for -mcmodel=medium.
22629         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
22630         override user -mfp-in-toc or -msum-in-toc.  Default to
22631         -mno-fp-in-toc for -mcmodel=medium.
22633 2013-06-06  DJ Delorie  <dj@redhat.com>
22635         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
22636         TARGET_VALID_POINTER_MODE.
22638 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22639             Pat Haugen  <pthaugen@us.ibm.com>
22640             Peter Bergner  <bergner@vnet.ibm.com>
22642         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22643         Document new power8 builtins.
22645         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
22646         condition code register, to allow 128-bit logical operations to be
22647         done in the VSX or GPR registers.
22648         (nor<mode>3): Use the canonical form for nor.
22649         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
22650         vclz*, and vpopcnt* vector instructions.
22651         (nand<mode>3): Likewise.
22652         (orc<mode>3): Likewise.
22653         (clz<mode>2): LIkewise.
22654         (popcount<mode>2): Likewise.
22656         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
22657         that only the GPRs are recognized.
22659         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22660         support for new power8 builtins.
22662         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
22663         builtin functions.
22664         (xscvdpspn): Likewise.
22665         (vclz): Likewise.
22666         (vclzb): Likewise.
22667         (vclzh): Likewise.
22668         (vclzw): Likewise.
22669         (vclzd): Likewise.
22670         (vpopcnt): Likewise.
22671         (vpopcntb): Likewise.
22672         (vpopcnth): Likewise.
22673         (vpopcntw): Likewise.
22674         (vpopcntd): Likewise.
22675         (vgbbd): Likewise.
22676         (vmrgew): Likewise.
22677         (vmrgow): Likewise.
22678         (eqv): Likewise.
22679         (eqv_v16qi3): Likewise.
22680         (eqv_v8hi3): Likewise.
22681         (eqv_v4si3): Likewise.
22682         (eqv_v2di3): Likewise.
22683         (eqv_v4sf3): Likewise.
22684         (eqv_v2df3): Likewise.
22685         (nand): Likewise.
22686         (nand_v16qi3): Likewise.
22687         (nand_v8hi3): Likewise.
22688         (nand_v4si3): Likewise.
22689         (nand_v2di3): Likewise.
22690         (nand_v4sf3): Likewise.
22691         (nand_v2df3): Likewise.
22692         (orc): Likewise.
22693         (orc_v16qi3): Likewise.
22694         (orc_v8hi3): Likewise.
22695         (orc_v4si3): Likewise.
22696         (orc_v2di3): Likewise.
22697         (orc_v4sf3): Likewise.
22698         (orc_v2df3): Likewise.
22700         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
22701         allow power8 quad mode in 64-bit.
22702         (rs6000_builtin_vectorized_function): Add support to vectorize
22703         ISA 2.07 count leading zeros, population count builtins.
22704         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
22705         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
22706         (builtin_function_type): Add vgbbd builtin function which takes an
22707         unsigned argument.
22708         (altivec_expand_vec_perm_const): Add support for new power8 merge
22709         instructions.
22711         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
22712         that does not include TImdoe for use with 32-bit.
22713         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
22714         instructions.
22715         (UNSPEC_VSX_CVDPSPN): Likewise.
22716         (vsx_xscvdpspn): Likewise.
22717         (vsx_xscvspdpn): Likewise.
22718         (vsx_xscvdpspn_scalar): Likewise.
22719         (vsx_xscvspdpn_directmove): Likewise.
22720         (vsx_and<mode>3): Split logical operations into 32-bit and
22721         64-bit. Add support to do logical operations on TImode as well as
22722         VSX vector types.  Allow logical operations to be done in either
22723         VSX registers or in general purpose registers in 64-bit mode.  Add
22724         splitters if GPRs were used. For AND, add clobber of CCmode to
22725         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
22726         encoding.
22727         (vsx_and<mode>3_32bit): Likewise.
22728         (vsx_and<mode>3_64bit): Likewise.
22729         (vsx_ior<mode>3): Likewise.
22730         (vsx_ior<mode>3_32bit): Likewise.
22731         (vsx_ior<mode>3_64bit): Likewise.
22732         (vsx_xor<mode>3): Likewise.
22733         (vsx_xor<mode>3_32bit): Likewise.
22734         (vsx_xor<mode>3_64bit): Likewise.
22735         (vsx_one_cmpl<mode>2): Likewise.
22736         (vsx_one_cmpl<mode>2_32bit): Likewise.
22737         (vsx_one_cmpl<mode>2_64bit): Likewise.
22738         (vsx_nor<mode>3): Likewise.
22739         (vsx_nor<mode>3_32bit): Likewise.
22740         (vsx_nor<mode>3_64bit): Likewise.
22741         (vsx_andc<mode>3): Likewise.
22742         (vsx_andc<mode>3_32bit): Likewise.
22743         (vsx_andc<mode>3_64bit): Likewise.
22744         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
22745         and xxlorc instructions.
22746         (vsx_eqv<mode>3_64bit): Likewise.
22747         (vsx_nand<mode>3_32bit): Likewise.
22748         (vsx_nand<mode>3_64bit): Likewise.
22749         (vsx_orc<mode>3_32bit): Likewise.
22750         (vsx_orc<mode>3_64bit): Likewise.
22752         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
22754         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
22755         instruction.
22756         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
22757         (p8_vmrgow): Likewise.
22758         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
22759         GPRs to be split under VSX.
22760         (p8v_clz<mode>2): Add power8 count leading zero support.
22761         (p8v_popcount<mode>2): Add power8 population count support.
22762         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
22763         support.
22765         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
22766         instruction.
22768         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
22769         builtin functions.
22770         (vec_nand): Likewise.
22771         (vec_vclz): Likewise.
22772         (vec_vclzb): Likewise.
22773         (vec_vclzd): Likewise.
22774         (vec_vclzh): Likewise.
22775         (vec_vclzw): Likewise.
22776         (vec_vgbbd): Likewise.
22777         (vec_vmrgew): Likewise.
22778         (vec_vmrgow): Likewise.
22779         (vec_vpopcnt): Likewise.
22780         (vec_vpopcntb): Likewise.
22781         (vec_vpopcntd): Likewise.
22782         (vec_vpopcnth): Likewise.
22783         (vec_vpopcntw): Likewise.
22785 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22787         PR rtl-optimization/57468
22788         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
22789         spilled pseudos.
22791 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22793         PR rtl-optimization/57459
22794         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
22795         type when setting live regs.
22797 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22799         * config/s390/s390.opt (mlra): New option.
22800         * config/s390/s390.c (s390_decompose_address): Check displacement
22801         for all registers for LRA.
22802         (s390_secondary_reload): Don't used secondary reloads for LRA.
22803         (s390_lra_p): New function.
22804         (TARGET_LRA_P): Define.
22805         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
22806         of attribute cpu_facility to zarch for the last alternative.
22807         (*cmpmem_short): Ditto.
22809 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22811         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
22812         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
22813         (arm_expand_prologue): Likewise.
22815 2013-06-06  Teresa Johnson  <tejohnson@google.com>
22817         PR c++/53743
22818         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
22819         as this is now done by redirect_edge_and_branch_force.
22820         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
22821         barriers, and fix interaction with splitting.
22822         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
22823         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
22824         reflect changes made in the routine.
22825         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
22826         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
22827         since this is called in cfglayout mode, and replace partition fixup
22828         with assert as that is now done by force_nonfallthru_and_redirect.
22829         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
22830         already be marked with region crossing note.
22831         (insert_section_boundary_note): Make non-static, gate on flag
22832         has_bb_partition, rewrite to also check for multiple partitions.
22833         (rest_of_handle_reorder_blocks): Remove call to
22834         insert_section_boundary_note, now done later during free_cfg.
22835         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
22836         * bb-reorder.h (insert_section_boundary_note): Declare.
22837         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
22838         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
22839         invoke insert_section_boundary_note.
22840         (try_redirect_by_replacing_jump): Remove unnecessary
22841         check for region crossing note.
22842         (fixup_partition_crossing): New function.
22843         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
22844         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
22845         in non-cfglayout mode.
22846         (force_nonfallthru_and_redirect): Fixup partition boundaries,
22847         remove old code that tried to do this. Emit barrier correctly
22848         when we are in cfglayout mode.
22849         (last_bb_in_partition): New function.
22850         (rtl_split_edge): Correctly fixup partition boundaries.
22851         (commit_one_edge_insertion): Remove old code that tried to
22852         fixup region crossing edge since this is now handled in
22853         split_block, and set up insertion point correctly since
22854         block may now end in a jump.
22855         (verify_hot_cold_block_grouping): Guard against checking when not in
22856         linearized RTL mode.
22857         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
22858         notes.
22859         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
22860         rtl_verify_flow_info, so not called in cfglayout mode.
22861         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
22862         (fixup_reorder_chain): Remove old code that attempted to fixup region
22863         crossing note as this is now handled in force_nonfallthru_and_redirect.
22864         (duplicate_insn_chain): Don't duplicate switch section notes.
22865         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
22866         note.
22867         * basic-block.h (emit_barrier_after_bb): Declare.
22869 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22871         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
22872         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
22873         arm_usatsihi): Adjust alternatives for arm_restrict_it.
22875 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22877         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
22878         where appropriate.
22879         * config/arm/ldmstm.md: Regenerate.
22881 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22883         * config/arm/sync.md (atomic_loaddi_1):
22884         Disable predication for arm_restrict_it.
22885         (arm_load_exclusive<mode>): Likewise.
22886         (arm_load_exclusivesi): Likewise.
22887         (arm_load_exclusivedi): Likewise.
22888         (arm_load_acquire_exclusive<mode>): Likewise.
22889         (arm_load_acquire_exclusivesi): Likewise.
22890         (arm_load_acquire_exclusivedi): Likewise.
22891         (arm_store_exclusive<mode>): Likewise.
22892         (arm_store_exclusive<mode>): Likewise.
22893         (arm_store_release_exclusivedi): Likewise.
22894         (arm_store_release_exclusive<mode>): Likewise.
22896 2013-06-06  Richard Biener  <rguenther@suse.de>
22898         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
22899         after LTO_null.
22900         (lto_tag_is_tree_code_p): Adjust.
22901         (lto_tag_is_gimple_code_p): Likewise.
22902         (lto_gimple_code_to_tag): Likewise.
22903         (lto_tag_to_gimple_code): Likewise.
22904         (lto_tree_code_to_tag): Likewise.
22905         (lto_tag_to_tree_code): Likewise.
22906         * data-streamer.h (streamer_write_hwi_in_range): Use
22907         uhwi streaming to stream the normalized range.
22908         (streamer_read_hwi_in_range): Likewise.
22910 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22912         * config/arm/arm.md (enabled_for_depr_it): New attribute.
22913         (predicable_short_it): Likewise.
22914         (predicated): Likewise.
22915         (enabled): Handle above.
22916         (define_cond_exec): Set predicated attribute to yes.
22918 2013-06-05  Mike Stump  <mikestump@comcast.net>
22920         * gdbinit.in (__FUNCTION__): Add.
22922 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
22924         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
22925         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
22927 2013-06-05  Jan Hubicka  <jh@suse.cz>
22929         * varasm.c (mark_decl_referenced): Revert the removal until targets
22930         are fixed.
22932 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
22934         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
22935         instead of mark_decl_referenced.
22937 2013-06-05  Jan Hubicka  <jh@suse.cz>
22939         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
22940         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
22941         and symtab_used_from_object_file_p.
22942         (cgraph_make_node_local_1): Clear forced_by_abi.
22943         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
22944         * cgraph.h (symtab_node_base): Add forced_by_abi.
22945         (decide_is_variable_needed): Remove.
22946         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
22947         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
22948         (decide_is_symbol_needed): ... this one; handle symbols in general;
22949         always analyze virtuals; honnor forced_by_abi.
22950         (cgraph_finalize_function): Update.
22951         (varpool_finalize_decl): Update.
22952         (symbol_defined_and_needed): Remove.
22953         (analyze_functions): Update.
22954         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22955         output_refs, input_overwrite_node): Handle forced_by_abi.
22956         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
22957         (address_taken_from_non_vtable_p): ... this one.
22958         (comdat_can_be_unshared_p_1): New function.
22959         (cgraph_comdat_can_be_unshared_p): Rename to ...
22960         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
22961         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
22962         (function_and_variable_visibility): Clear forced_by_abi as needed.
22963         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
22964         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
22965         * symtab.c (dump_symtab_base): Dump forced_by_abi.
22966         * varpool.c (decide_is_variable_needed): Remove.
22968 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22970         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
22971         (arm_option_override): Override arm_restrict_it where appropriate.
22972         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
22973         * config/arm/arm.opt (mrestrict-it): New command-line option.
22974         * doc/invoke.texi: Document -mrestrict-it.
22976 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
22978         * tsan.c (tsan_atomic_table): Make const.
22980 2013-06-05  Richard Biener  <rguenther@suse.de>
22982         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
22983         index associated with the tree we are supposed to replace.
22984         * tree-streamer-out.c (pack_ts_base_value_fields): Output
22985         TREE_ASM_WRITTEN as zero for everything but SSA names.
22987 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
22989         * tree-ssa-structalias.c (call_stmt_vars): Make static.
22991 2013-06-04  Jan Hubicka  <jh@suse.cz>
22993         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
22994         (input_node, input_varpool_node): Handle correctly external same
22995         body aliases.
22996         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
22997         nodes at ltrans stage.
22999 2013-06-04  Jan Hubicka  <jh@suse.cz>
23001         * ipa-inline.c (update_caller_keys): Fix availability test.
23002         (update_callee_keys): Likewise.
23003         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
23004         to follow ELF standard.
23006 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
23008         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
23009         (mips64r5900el-*-elf*): New configurations.
23010         * config/mips/mips-cpus.def (r5900): New processor.
23011         * config/mips/mips-tables.opt: Regenerate.
23012         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
23013         (mips_issue_rate): Handle PROCESSOR_R5900.
23014         (mips_reorg_process_insns): Force reorder mode for the R5900.
23015         * config/mips/mips.h (TARGET_MIPS5900): Define.
23016         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
23017         TARGET_MIPS5900.
23018         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
23019         TARGET_MIPS5900.
23020         * config/mips/mips.md (processor): Add r5900.
23021         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
23023 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23025         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
23026         into function to generate MOVI instruction.
23027         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
23028         (aarch64_preferred_simd_mode): Turn into wrapper.
23029         (aarch64_output_scalar_simd_mov_immediate): New function.
23030         * config/aarch64/aarch64-protos.h: Add prototype for above.
23032 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23034         * config/aarch64/aarch64.c (simd_immediate_info): Remove
23035         element_char member.
23036         (sizetochar): Return signed char.
23037         (aarch64_simd_valid_immediate): Remove elchar and other
23038         unnecessary variables.
23039         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
23040         Calculate element_char as required.
23041         * config/aarch64/aarch64-protos.h: Update and move prototype
23042         for aarch64_output_simd_mov_immediate.
23043         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
23044         Update arguments.
23046 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23048         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
23049         information completed by aarch64_simd_valid_immediate.
23050         (aarch64_legitimate_constant_p): Update arguments.
23051         (aarch64_simd_valid_immediate): Work with struct rather than many
23052         pointers.
23053         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
23054         (aarch64_simd_make_constant): Update arguments.
23055         (aarch64_output_simd_mov_immediate): Work with struct rather than
23056         many pointers.  Output immediate directly rather than as operand.
23057         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
23058         Update prototype.
23059         * config/aarch64/constraints.md (Dn): Update arguments.
23061 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23063         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
23064         longer static.
23065         (aarch64_simd_immediate_valid_for_move): Remove.
23066         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
23067         (aarch64_simd_make_constant): Update call.
23068         (aarch64_output_simd_mov_immediate): Update call.
23069         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
23070         Add prototype.
23071         * config/aarch64/constraints.md (Dn): Update call.
23073 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23075         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
23076         return type to bool for prototype.
23077         (aarch64_legitimate_constant_p): Check for true instead of not -1.
23078         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
23079         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
23081 2013-06-04  Catherine Moore  <clm@codesourcery.com>
23083         * config/mips/mips.opt (meva): New.
23084         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
23085         (ASM_SPEC): Handle -meva.
23086         * doc/invoke.texi (meva):  Document.
23088 2013-06-04  Alan Modra  <amodra@gmail.com>
23090         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
23091         constant output.
23093 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23095         * rtl.def: Add extra fourth optional field to define_cond_exec.
23096         * gensupport.c (process_one_cond_exec): Process attributes from
23097         define_cond_exec.
23098         * doc/md.texi: Document fourth field in define_cond_exec.
23100 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
23102         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
23103         out the processing order as in store_bit_field_1.
23105 2013-06-04  Jan Hubicka  <jh@suse.cz>
23107         PR middle-end/57500
23108         * cgraphunit.c (cgraph_process_same_body_aliases): Create
23109         non-VAR_DECL node if it does not exist yet.
23111 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
23113         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
23114         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
23115         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
23116         target_cpu_default setting.
23118 2013-06-03  Teresa Johnson  <tejohnson@google.com>
23120         * dumpfile.c (opt_info_switch_p): Change -fopt-info
23121         default to -fopt-info=optimized instead of all.
23122         * doc/invoke.texi: Ditto.
23123         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
23124         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
23125         (execute_vect_slp): Emit BB vectorization success under
23126         MSG_OPTIMIZED_LOCATIONS.
23127         * tree-vect-slp.c (vect_slp_transform_bb): Change
23128         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
23129         * tree-vect-loop.c (vect_transform_loop): Ditto.
23131 2013-06-03  Jason Merrill  <jason@redhat.com>
23133         PR c++/57415
23134         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23135         Use TARGET_EXPR for C++.
23137 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
23139         PR rtl-optimization/57268
23140         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
23141         if DEBUG_INSN_P (insn).
23143         Reapply
23144         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
23146         PR rtl-optimization/57268
23147         * sched-deps.c (sched_analyze_2): Flush dependence lists if
23148         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23150 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
23152         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
23153         (ix86_avoid_lea_for_addr): Likewise.
23154         (exact_dependency_1): Likewise.
23155         (ix86_adjust_cost): Likewise.
23156         (swap_top_of_ready_list): Fix formatting and !reload_completed check
23157         removed.
23158         (do_reorder_for_imul): Fix typo, formatting and
23159         !reload_completed check removed.
23160         (ix86_sched_reorder): Fix typo and formatting.
23161         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
23162         list.
23164 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
23166         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
23168 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
23170         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
23171         <STRING_CST>: Likewise.
23172         <VECTOR_CST>: Likewise.
23174 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
23175             Mikael Morin  <mikael@gcc.gnu.org>
23177         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
23178         * config.in: Regenerated.
23179         * configure: Regenerated.
23181 2013-06-01  Jan Hubicka  <jh@suse.cz>
23183         PR middle-end/57366
23184         * cgraphunit.c (compile): When weakref is not supported,
23185         set up transparent aliases before final output pass.
23186         * varasm.c (assemble_alias): Do not try to do it here.
23188 2013-06-01  Jan Hubicka  <jh@suse.cz>
23190         PR middle-end/57467
23191         * passes.c (for_per_function): Skip unanalyzed functions.
23193 2013-06-01  Jan Hubicka  <jh@suse.cz>
23195         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
23196         (lto_symtab_merge_symbols_1): ... this one.
23197         (lto_symtab_merge_cgraph_nodes): Rename to ...
23198         (lto_symtab_merge_symbols): ... this one; simplify.
23199         * cgraph.c (same_body_aliases_done): Rename to ...
23200         (cpp_implicit_aliases_done): ... this one.
23201         (cgraph_create_function_alias): Update.
23202         (cgraph_same_body_alias): Update.
23203         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
23204         (verify_edge_corresponds_to_fndecl): Simplify.
23205         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
23206         (cgraph_node): Remove same_body_alias.
23207         (varpool_node): Remove alias_of and extra_name_alias.
23208         (same_body_aliases_done): Rename to ..
23209         (cpp_implicit_aliases_done): ... this one.
23210         (symtab_alias_ultimate_target): Add default parameter.
23211         (symtab_resolve_alias): New function.
23212         (fixup_same_cpp_alias_visibility): Declare.
23213         (cgraph_function_node): Add default parameter.
23214         (cgraph_node_asm_name): Likewise.
23215         (cgraph_function_or_thunk_node): Add default parameter; do
23216         not ICE when it is NULL.
23217         (varpool_variable_node): Likewise.
23218         * tree-emutls.c (create_emultls_var): Update.
23219         (ipa_lower_emutls): Update.
23220         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
23221         (cgraph_reset_node): Reset alias info.
23222         (cgraph_finalize_function): Update.
23223         (fixup_same_cpp_alias_visibility): Move to symtab.c.
23224         (analyze_function): Simplify.
23225         (cgraph_process_same_body_aliases): Simplify.
23226         (analyze_functions): Fixup same body aliases.
23227         (handle_alias_pairs): Simplify.
23228         (assemble_thunk): Update.
23229         (assemble_thunks_and_aliases): Update.
23230         (output_weakrefs): Rewrite.
23231         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
23232         (lto_output_varpool_node): Likewise.
23233         (compute_ltrans_boundary): Remve assert.
23234         (get_alias_symbol): New functoin.
23235         (input_node): Rewrite alias handling.
23236         (input_varpool_node): Likewise.
23237         * ipa-pure-const.c (propagate_pure_const): Fix formating.
23238         * ipa.c (process_references): Handle weakrefs correctly.
23239         (symtab_remove_unreachable_nodes): Likewise.
23240         * trans-mem.c (get_cg_data): Update.
23241         (ipa_tm_create_version_alias): Update.
23242         (ipa_tm_execute): Update.
23243         * symtab.c (dump_symtab_base): Dump aliases.
23244         (verify_symtab_base): Verify aliases.
23245         (symtab_node_availability): New function.
23246         (symtab_alias_ultimate_target): Simplify.
23247         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
23248         handle all the fixup cases.
23249         (symtab_resolve_alias): New function.
23250         * passes.c (ipa_write_summaries): Handle weakrefs.
23251         * varpool.c (varpool_analyze_node): Simplify.
23252         (assemble_aliases): Update.
23253         (varpool_create_variable_alias): Simplify.
23254         (varpool_extra_name_alias): Simplify.
23255         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
23256         (lto_symtab_merge_symbols): ... this one.
23258 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
23260         Revert
23261         PR rtl-optimization/57268
23262         * sched-deps.c (sched_analyze_2): Flush dependence lists if
23263         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23265 2013-06-01  Tobias Burnus  <burnus@net-b.de>
23267         Partially reverted:
23268         2013-05-31  Tobias Burnus  <burnus@net-b.de>
23270         PR middle-end/57073
23271         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
23272         further up.
23274 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
23276         PR rtl-optimization/57268
23277         * sched-deps.c (sched_analyze_2): Flush dependence lists if
23278         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23280 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
23282         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
23283         unordered comparison operators when -fno-trapping-math is in effect
23284         on the e500.
23285         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
23286         and implement unordered comparison operators properly on the e500.
23288 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
23290         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
23291         for constant scalar integers.
23292         (simplify_relational_operation_1): Likewise.
23294 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
23296         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
23297         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
23298         Fix comment.
23300 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
23301             Igor Zamyatin  <igor.zamyatin@intel.com>
23303         Silvermont (SLM) architecture performance tuning.
23304         * config/i386/i386.h (enum ix86_tune_indices): Add
23305         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
23306         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
23308         * config/i386/i386.c (initial_ix86_tune_features)
23309         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
23310         (ix86_lea_outperforms): Handle Silvermont tuning.
23311         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
23312         call.
23313         (ix86_use_lea_for_mov): Likewise.
23314         (ix86_avoid_lea_for_addr): Likewise.
23315         (ix86_lea_for_add_ok): Likewise.
23316         (exact_dependency_1): New function.
23317         (exact_store_load_dependency): Likewise.
23318         (ix86_adjust_cost): Handle Silvermont tuning.
23319         (do_reoder_for_imul): Likewise.
23320         (swap_top_of_ready_list): New function.
23321         (ix86_sched_reorder): Changed to handle Silvermont tuning.
23323         * config/i386/i386.md (peepholes that split memory operand in fp
23324         converts): New.
23326 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23328         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23329         Remove un-necessary braces.
23331 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23333         * config/aarch64/aarch64.c (aarch64_classify_symbol):
23334         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
23336 2013-05-31  Tobias Burnus  <burnus@net-b.de>
23338         PR middle-end/57073
23339         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
23341 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23343         PR target/56315
23344         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
23345         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
23346         * config/arm/neon.md (iordi3_neon): Remove.
23347         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
23348         * config/arm/predicates.md (imm_for_neon_logic_operand):
23349         Move to earlier in the file.
23350         (neon_logic_op2): Likewise.
23351         (arm_iordi_operand_neon): New predicate.
23353 2013-05-31  Richard Biener  <rguenther@suse.de>
23355         PR tree-optimization/57478
23356         PR tree-optimization/57453
23357         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
23358         are life as well.
23360 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23362         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
23363         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
23365 2013-05-30  Tobias Burnus  <burnus@net-b.de>
23366             Thomas Koenig  <tkoenig@gcc.gnu.org>
23368         PR middle-end/57073
23369         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
23370         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
23372 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
23374         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
23376 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
23378         * target.def (register_usage_leveling_p): New hook.
23379         * targhooks.c (default_register_usage_leveling_p): New.
23380         * targhooks.h (default_register_usage_leveling_p): New prototype.
23381         * lra-assigns.c (register_usage_leveling_p): Use the hook.
23382         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
23383         * doc/tm.texi: Update.
23384         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
23386 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
23388         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
23389         (*insv_reg<mode>): New define_insn.
23391 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
23393         PR rtl-optimization/57439
23394         * postreload.c (move2add_valid_value_p): Check that we have
23395         a zero subreg_regno_offset when accessing the register in
23396         the requested mode.
23398 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
23399             Igor Zamyatin  <igor.zamyatin@intel.com>
23401         Silvermont (SLM) architecture pipeline model, tuning and
23402         insn selection.
23403         * config.gcc: Add slm config options and target.
23405         * config/i386/slm.md: New.
23407         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
23409         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
23410         PROCESSOR_SLM.
23411         (ix86_target_macros_internal): Likewise.
23413         * config/i386/i386.c (slm_cost): New cost.
23414         (m_SLM): New macro flag.
23415         (initial_ix86_tune_features): Set m_SLM.
23416         (x86_accumulate_outgoing_args): Likewise.
23417         (x86_arch_always_fancy_math_387): Likewise.
23418         (processor_target_table): Add slm cost.
23419         (cpu_names): Add slm cpu name.
23420         (x86_option_override_internal): Set SLM ISA.
23421         (ix86_issue_rate): New case PROCESSOR_SLM.
23422         (ia32_multipass_dfa_lookahead): Likewise.
23423         (fold_builtin_cpu): Add slm.
23425         * config/i386/i386.h (TARGET_SLM): New target macro.
23426         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
23427         (processor_type): Add PROCESSOR_SLM.
23429         * config/i386/i386.md (cpu): Add new value "slm".
23430         (slm.md): Include slm.md.
23432 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
23433             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23435         * config/arm/arm-protos.h: Add and update function protos.
23436         * config/arm/arm.c (use_simple_return_p): New added.
23437         (thumb2_expand_return): Check simple_return flag.
23438         * config/arm/arm.md: Add simple_return and conditional simple_return.
23439         * config/arm/iterators.md: Add iterator for return and simple_return.
23441 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23443         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
23444         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
23445         (arm_emit_vfp_multi_reg_pop): Likewise.
23446         (thumb2_emit_ldrd_pop): Likewise.
23447         (arm_expand_epilogue): Add misc REG_CFA notes.
23448         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
23450 2013-05-29  Lawrence Crowl  <crowl@google.com>
23452         * config/arm/t-arm: Update for below.
23454         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
23455         Change type to hash_table.  Update dependent calls and types.
23457         * config/i386/t-cygming: Update for below.
23459         * config/i386/t-interix: Update for below.
23461         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
23462         Change type to hash_table.  Update dependent calls and types.
23463         (i386_find_on_wrapper_list::wrappers): Likewise.
23465         * config/ia64/t-ia64: Update for below.
23467         * config/ia64/ia64.c (bundle_state_table):
23468         Change type to hash_table.  Update dependent calls and types.
23470         * config/mips/mips.c (mips_reorg_process_insns::htab):
23471         Change type to hash_table.  Update dependent calls and types.
23473         * config/sol2.c (solaris_comdat_htab):
23474         Change type to hash_table.  Update dependent calls and types.
23476         * config/t-sol2: Update for above.
23478 2013-05-29  Teresa Johnson  <tejohnson@google.com>
23480         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
23481         functions are not yet marked as defined.
23483 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
23484             Pat Haugen  <pthaugen@us.ibm.com>
23485             Peter Bergner  <bergner@vnet.ibm.com>
23487         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
23488         instructions.
23489         (VEC_A): Likewise.
23490         (VEC_C): Likewise.
23491         (vrotl<mode>3): Likewise.
23492         (vashl<mode>3): Likewise.
23493         (vlshr<mode>3): Likewise.
23494         (vashr<mode>3): Likewise.
23496         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23497         support for power8 V2DI builtins.
23499         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
23500         power8 V2DI builtins.
23501         (vupkhsw): Likewise.
23502         (vupklsw): Likewise.
23503         (vaddudm): Likewise.
23504         (vminsd): Likewise.
23505         (vmaxsd): Likewise.
23506         (vminud): Likewise.
23507         (vmaxud): Likewise.
23508         (vpkudum): Likewise.
23509         (vpksdss): Likewise.
23510         (vpkudus): Likewise.
23511         (vpksdus): Likewise.
23512         (vrld): Likewise.
23513         (vsld): Likewise.
23514         (vsrd): Likewise.
23515         (vsrad): Likewise.
23516         (vsubudm): Likewise.
23517         (vcmpequd): Likewise.
23518         (vcmpgtsd): Likewise.
23519         (vcmpgtud): Likewise.
23520         (vcmpequd_p): Likewise.
23521         (vcmpgtsd_p): Likewise.
23522         (vcmpgtud_p): Likewise.
23523         (vupkhsw): Likewise.
23524         (vupklsw): Likewise.
23525         (vaddudm): Likewise.
23526         (vmaxsd): Likewise.
23527         (vmaxud): Likewise.
23528         (vminsd): Likewise.
23529         (vminud): Likewise.
23530         (vpksdss): Likewise.
23531         (vpksdus): Likewise.
23532         (vpkudum): Likewise.
23533         (vpkudus): Likewise.
23534         (vrld): Likewise.
23535         (vsld): Likewise.
23536         (vsrad): Likewise.
23537         (vsrd): Likewise.
23538         (vsubudm): Likewise.
23540         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
23541         support for power8 V2DI instructions.
23543         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
23544         power8 V2DI instructions.  Combine pack and unpack insns to use an
23545         iterator for each mode.  Check whether a particular mode supports
23546         Altivec instructions instead of just checking TARGET_ALTIVEC.
23547         (UNSPEC_VPKUWUM): Likewise.
23548         (UNSPEC_VPKSHSS): Likewise.
23549         (UNSPEC_VPKSWSS): Likewise.
23550         (UNSPEC_VPKUHUS): Likewise.
23551         (UNSPEC_VPKSHUS): Likewise.
23552         (UNSPEC_VPKUWUS): Likewise.
23553         (UNSPEC_VPKSWUS): Likewise.
23554         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
23555         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
23556         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
23557         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
23558         (UNSPEC_VUPKHSB): Likewise.
23559         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
23560         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
23561         (UNSPEC_VUPKHSH): Likewise.
23562         (UNSPEC_VUPKLSB): Likewise.
23563         (UNSPEC_VUPKLSH): Likewise.
23564         (VI2): Likewise.
23565         (VI_char): Likewise.
23566         (VI_scalar): Likewise.
23567         (VI_unit): Likewise.
23568         (VP): Likewise.
23569         (VP_small): Likewise.
23570         (VP_small_lc): Likewise.
23571         (VU_char): Likewise.
23572         (add<mode>3): Likewise.
23573         (altivec_vaddcuw): Likewise.
23574         (altivec_vaddu<VI_char>s): Likewise.
23575         (altivec_vadds<VI_char>s): Likewise.
23576         (sub<mode>3): Likewise.
23577         (altivec_vsubcuw): Likewise.
23578         (altivec_vsubu<VI_char>s): Likewise.
23579         (altivec_vsubs<VI_char>s): Likewise.
23580         (altivec_vavgs<VI_char>): Likewise.
23581         (altivec_vcmpbfp): Likewise.
23582         (altivec_eq<mode>): Likewise.
23583         (altivec_gt<mode>): Likewise.
23584         (altivec_gtu<mode>): Likewise.
23585         (umax<mode>3): Likewise.
23586         (smax<mode>3): Likewise.
23587         (umin<mode>3): Likewise.
23588         (smin<mode>3): Likewise.
23589         (altivec_vpkuhum): Likewise.
23590         (altivec_vpkuwum): Likewise.
23591         (altivec_vpkshss): Likewise.
23592         (altivec_vpkswss): Likewise.
23593         (altivec_vpkuhus): Likewise.
23594         (altivec_vpkshus): Likewise.
23595         (altivec_vpkuwus): Likewise.
23596         (altivec_vpkswus): Likewise.
23597         (altivec_vpks<VI_char>ss): Likewise.
23598         (altivec_vpks<VI_char>us): Likewise.
23599         (altivec_vpku<VI_char>us): Likewise.
23600         (altivec_vpku<VI_char>um): Likewise.
23601         (altivec_vrl<VI_char>): Likewise.
23602         (altivec_vsl<VI_char>): Likewise.
23603         (altivec_vsr<VI_char>): Likewise.
23604         (altivec_vsra<VI_char>): Likewise.
23605         (altivec_vsldoi_<mode>): Likewise.
23606         (altivec_vupkhsb): Likewise.
23607         (altivec_vupkhs<VU_char>): Likewise.
23608         (altivec_vupkls<VU_char>): Likewise.
23609         (altivec_vupkhsh): Likewise.
23610         (altivec_vupklsb): Likewise.
23611         (altivec_vupklsh): Likewise.
23612         (altivec_vcmpequ<VI_char>_p): Likewise.
23613         (altivec_vcmpgts<VI_char>_p): Likewise.
23614         (altivec_vcmpgtu<VI_char>_p): Likewise.
23615         (abs<mode>2): Likewise.
23616         (vec_unpacks_hi_v16qi): Likewise.
23617         (vec_unpacks_hi_v8hi): Likewise.
23618         (vec_unpacks_lo_v16qi): Likewise.
23619         (vec_unpacks_hi_<VP_small_lc>): Likewise.
23620         (vec_unpacks_lo_v8hi): Likewise.
23621         (vec_unpacks_lo_<VP_small_lc>): Likewise.
23622         (vec_pack_trunc_v8h): Likewise.
23623         (vec_pack_trunc_v4si): Likewise.
23624         (vec_pack_trunc_<mode>): Likewise.
23626         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
23627         V2DI builtins.
23628         (vec_vmaxsd): Likewise.
23629         (vec_vmaxud): Likewise.
23630         (vec_vminsd): Likewise.
23631         (vec_vminud): Likewise.
23632         (vec_vpksdss): Likewise.
23633         (vec_vpksdus): Likewise.
23634         (vec_vpkudum): Likewise.
23635         (vec_vpkudus): Likewise.
23636         (vec_vrld): Likewise.
23637         (vec_vsld): Likewise.
23638         (vec_vsrad): Likewise.
23639         (vec_vsrd): Likewise.
23640         (vec_vsubudm): Likewise.
23641         (vec_vupkhsw): Likewise.
23642         (vec_vupklsw): Likewise.
23644 2013-05-29  Jan Hubicka  <jh@suse.cz>
23646         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
23647         flags; reorder rest of fields in more consistent way.
23648         (varpool_node): Remove analyzed, finalized and alias.
23649         (cgraph_ndoe): Likewise.
23650         (symtab_alias_ultimate_target): New function.
23651         (cgraph_function_node): Move offline.
23652         (cgraph_reset_node): Declare.
23653         (cgraph_comdat_can_be_unshared_p): Remove.
23654         (varpool_remove_initializer): Declare.
23655         (varpool_first_defined_variable, varpool_next_defined_variable
23656         cgraph_first_defined_function, cgraph_next_defined_function): Update.
23657         (cgraph_function_with_gimple_body_p): Update.
23658         (varpool_all_refs_explicit_p): Update.
23659         (symtab_alias_target): New function.
23660         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
23661         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
23662         (cgraph_function_or_thunk_node): Simplify using
23663         symtab_alias_ultimate_target.
23664         (varpool_variable_node): Likewise.
23665         * cgraph.c (cgraph_create_function_alias): Update.
23666         (cgraph_add_thunk): Update.
23667         (cgraph_remove_node): Update.
23668         (dump_cgraph_node): Do not dump removed flags.
23669         (cgraph_function_body_availability): Update.
23670         (cgraph_propagate_frequency): Update.
23671         (verify_cgraph_node): Check sanity of local flag.
23672         (cgraph_function_node): Move here from cgraph.h; revamp for
23673         cgraph_function_or_thunk_node.
23674         * lto-symtab.c (lto_varpool_replace_node): Update.
23675         (lto_symtab_resolve_can_prevail_p): Update.
23676         (lto_symtab_merge_cgraph_nodes): Update.
23677         * ipa-cp.c (determine_versionability, initialize_node_lattices,
23678         propagate_constants_accross_call, devirtualization_time_bonus,
23679         ipcp_propagate_stage): Update.
23680         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
23681         * ipa-inline-transform.c (clone_inlined_nodes,
23682         preserve_function_body_p): Update.
23683         * ipa-reference.c (propagate): Update.
23684         (write_node_summary_p): Update.
23685         * toplev.c (wrapup_global_declaration_2): Update.
23686         * cgraphunit.c (cgraph_analyze_function): Rename to ...
23687         (analyze_function) ... this one.
23688         (cgraph_process_new_functions): Update.
23689         (cgraph_reset_node): Export.
23690         (cgraph_finalize_function): Update.
23691         (cgraph_add_new_function): Update.
23692         (process_function_and_variable_attributes): Update.
23693         (varpool_finalize_decl): Update.
23694         (symbol_finalized): Remove.
23695         (symbol_finalized_and_needed): Rename to ...
23696         (symbol_defined_and_needed): ... update.
23697         (cgraph_analyze_functions): Update.
23698         (handle_alias_pairs): Update.
23699         (mark_functions_to_output): Update.
23700         (assemble_thunk): Update.
23701         (output_in_order): Update.
23702         (output_weakrefs): Update.
23703         (finalize_compilation_unit): Update.
23704         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
23705         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
23706         input_node, input_varpool_node): Update.
23707         * dbxout.c (dbxout_expand_expr): Update.
23708         * cgraphclones.c (cgraph_clone_node): Update.
23709         (cgraph_copy_node_for_versioning): Update.
23710         (cgraph_materialize_clone): Update.
23711         (cgraph_materialize_all_clones): Update.
23712         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
23713         propagate_pure_const, propagate_nothrow): Update.
23714         * lto-streamer-out.c (lto_output, write_symbol): Update.
23715         * ipa-utils.c (ipa_reverse_postorder): Update.
23716         * ipa-inline.c (can_inline_edge_p): Update.
23717         (update_caller_keys, ipa_inline): Update.
23718         * dwarf2out.c (reference_to_unused,
23719         premark_types_used_by_global_vars_helper): Update.
23720         * tree-eh.c (tree_could_trap_p): Update.
23721         * ipa-split.c (consider_split, execute_split_functions): Update.
23722         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23723         has_addr_references_p): Update; move ahead in file for better
23724         readability.
23725         (process_references): Simplify.
23726         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
23727         bodies are removed.
23728         (cgraph_comdat_can_be_unshared_p): Make static.
23729         (cgraph_externally_visible_p): Update.
23730         (varpool_externally_visible_p): Update.
23731         (function_and_variable_visibility): Update.
23732         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
23733         ipa_tm_mark_force_output_node): Update.
23734         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
23735         estimate_edge_devirt_benefit, inline_generate_summary,
23736         inline_write_summary): Update.
23737         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
23738         * ipa-prop.c (ipa_compute_jump_functions): Update.
23739         (ipa_print_node_params, ipa_prop_read_section,
23740         ipa_update_after_lto_read, read_replacements_section): Update.
23741         * varasm.c (mark_decl_referenced): Update.
23742         (assemble_alias, dump_tm_clone_pairs): Update.
23743         * tree-inline.c (copy_bb): Update.
23744         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
23745         Update.
23746         * symtab.c (dump_symtab_base): Print new flags.
23747         (verify_symtab_base): Verify new flags.
23748         (symtab_alias_ultimate_target): New function.
23749         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
23750         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
23751         Update.
23752         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
23753         Update.
23754         * i386.c (ix86_get_function_versions_dispatcher,
23755         ix86_generate_version_dispatcher_body): Update.
23756         (fold_builtin_cpu): Use varpool_add_new_variable.
23757         * varpool.c (varpool_remove_initializer): Break out from ...
23758         (varpool_remove_node): ... this one.
23759         (dump_varpool_node, varpool_node_for_asm,
23760         cgraph_variable_initializer_availability, varpool_analyze_node,
23761         varpool_assemble_decl, varpool_remove_unreferenced_decls,
23762         varpool_finalize_named_section_flags, varpool_create_variable_alias):
23763         Update.
23765 2013-05-29  Jan Hubicka  <jh@suse.cz>
23767         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
23769 2013-05-29  Easwaran Raman  <eraman@google.com>
23771         PR tree-optimization/57442
23772         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
23773         when control exits the main loop.
23775 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
23777         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
23778         and RX600.
23779         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
23780         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
23781         * rx/t-rx: Add rx100 under multi library matches option for nofpu
23782         option.
23784 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23786         PR tree-optimization/57441
23787         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
23788         Don't limit size of incr_vec to number of candidates.
23790 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
23792         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
23793         and mips16 directories.
23794         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
23795         (MULTILIB_DIRNAMES): Ditto.
23796         (MULTILIB_EXCEPTIONS): Add new exceptions.
23797         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
23798         (MULTILIB_DIRNAMES): Ditto.
23799         (MULTILIB_EXCEPTIONS): Add new exceptions.
23801 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
23802             Marcus Shawcroft  <marcus.shawcroft@arm.com>
23804         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
23805         SYMBOL_TINY_ABSOLUTE.
23806         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
23807         SYMBOL_TINY_ABSOLUTE.
23808         (aarch64_expand_mov_immediate): Likewise.
23809         (aarch64_classify_symbol): Likewise.
23810         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
23811         Permit SYMBOL_TINY_ABSOLUTE.
23812         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
23814 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
23815             Marcus Shawcroft  <marcus.shawcroft@arm.com>
23817         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
23818         Refactor if/switch.  Replace gcc_assert with if.
23820 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
23822         * config/i386/i386.c (initial_ix86_tune_features): Enable
23823         FP Reassociation for AMD bdver1 and bdver2.
23825 2013-05-29  Martin Jambor  <mjambor@suse.cz>
23827         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
23828         and IMAGPART_EXPR do not occur within other handled_components.
23830 2013-05-29  Richard Biener  <rguenther@suse.de>
23832         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
23833         access on whether the use is in the BB we currently try to
23834         vectorize.
23835         (vect_bb_vectorization_profitable_p): Pass the BB we currently
23836         vectorize to vect_bb_slp_scalar_cost.
23838 2013-05-29  Richard Biener  <rguenther@suse.de>
23840         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
23841         computing scalar cost offsetted by stmts that are kept live
23842         by scalar uses.
23843         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
23844         for computation of scalar cost.
23846 2013-05-28  Steve Ellcey  <sellcey@mips.com>
23848         * config/mips/mips-cpus.def (mips32r2): Change processor type.
23850 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
23852         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
23853         array notation built-in reduction functions.
23854         * doc/passes.texi (Passes): Added documentation about changes done
23855         for Cilk Plus.
23856         * doc/invoke.texi (C Dialect Options): Added documentation about
23857         the -fcilkplus flag.
23858         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
23859         (BUILTINS_DEF): Depend on cilkplus.def.
23860         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
23861         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
23862         * cilkplus.def: New file.
23864 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
23866         PR rtl-optimization/57439
23867         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
23869 2013-05-28  Easwaran Raman  <eraman@google.com>
23871         PR tree-optimization/57337
23872         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
23873         (find_insert_point): Correctly identify the insertion point
23874         when two statements with the same UID is compared.
23876 2013-05-28  Richard Biener  <rguenther@suse.de>
23878         PR tree-optimization/56787
23879         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
23880         from the list of data references.
23881         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
23882         clobbers.
23883         (vect_analyze_loop_operations): Likewise.
23884         (vect_transform_loop): Remove clobbers.
23886 2013-05-28  Martin Jambor  <mjambor@suse.cz>
23888         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
23889         and REALPART_EXPRs have scalar type.
23891 2013-05-28  Richard Biener  <rguenther@suse.de>
23893         PR tree-optimization/57411
23894         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
23895         virtual operands.
23896         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
23897         virtual operand propagation.
23899 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
23901         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
23902         destination register for bmasksi_vis.
23903         (vector_init_bshuffle): Likewise.
23904         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
23906 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
23908         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
23909         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
23910         mode if the instruction isn't available in the original mode.
23911         * config/sparc/sparc.opt (mfix-ut699): New option.
23912         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
23913         (divdf3): Turn into expander.
23914         (divdf3_nofix): New insn.
23915         (divdf3_fix): Likewise.
23916         (divsf3): Disable if -mfix-ut699.
23917         (sqrtdf2): Turn into expander.
23918         (sqrtdf2_nofix): New insn.
23919         (sqrtdf2_fix): Likewise.
23920         (sqrtsf2): Disable if -mfix-ut699.
23922 2013-05-27  Richard Biener  <rguenther@suse.de>
23924         PR middle-end/57412
23925         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
23926         block for the new loop.
23928 2013-05-27  Richard Biener  <rguenther@suse.de>
23930         PR tree-optimization/57343
23931         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
23932         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
23933         (number_of_iterations_cond): Do not build the folded tree.
23935 2013-05-27  Richard Biener  <rguenther@suse.de>
23937         Revert
23938         PR middle-end/57381
23939         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
23940         OEP_CONSTANT_ADDRESS_OF retained.
23942         PR tree-optimization/57417
23943         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
23944         for unchanged base.
23945         (set_ssa_val_to): Compare addresses using
23946         get_addr_base_and_unit_offset.
23948 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
23950         PR rtl-optimization/56833
23951         * postreload.c (move2add_record_mode): New function.
23952         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
23953         (move2add_use_add2_insn): Use move2add_record_sym_value.
23954         (move2add_use_add3_insn): Likewise.
23955         (reload_cse_move2add): Use move2add_valid_value_p and
23956         move2add_record_mode.  Invalidate call-clobbered and REG_INC
23957         affected regs by setting reg_mode to VOIDmode.
23958         (move2add_note_store): Don't pretend the inside of a SUBREG is
23959         the actual destination.  Invalidate single/leading registers by
23960         setting reg_mode to VOIDmode.
23961         Use move2add_record_sym_value, move2add_valid_value_p and
23962         move2add_record_mode.
23964 2013-05-27  Richard Biener  <rguenther@suse.de>
23966         PR tree-optimization/57396
23967         * tree-affine.c (double_int_constant_multiple_p): Properly
23968         return false for val == 0 and div != 0.
23970 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
23972         * config/mips/mips.h: Use #elif in preprocessor conditions.
23974 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
23976         PR target/53916
23977         * config/mips/constraints.md (kl): New constraint.
23978         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
23979         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
23980         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
23981         from LO for MIPS16.
23982         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
23984 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
23986         PR target/55777
23987         * config/mips/mips.c (mips_can_inline_p): New function.
23988         (TARGET_CAN_INLINE_P): Define.
23990 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
23992         * sched-int.h (ds_t, dw_t): Make unsigned int.
23993         Fix documentation that describes how all the ds_t bits are used.
23994         Reserve the last bit for delayed-branch scheduling.
23995         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
23996         (BITS_PER_DEP_WEAK): Fix definition and documentation.
23997         (gen_dep_weak_1): Remove prototype.
23998         * sched-deps.c (get_dep_weak_1): Make static.
23999         * target.def (speculate_insn, needs_block_p, gen_spec_check,
24000         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
24001         * doc/tm.texi: Regenerate.
24002         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
24004 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
24006         PR debug/56950
24007         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
24009 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
24010             Sandra Loosemore  <sandra@codesourcery.com>
24012         * config.gcc (powerpc-*): Allow native for with-cpu.
24014 2013-05-24  Jeff Law  <law@redhat.com>
24016         PR tree-optimization/57124
24017         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
24018         conversion feeding a condition if the range has an overflow
24019         if -fstrict-overflow.  Add warnings for when we do make the
24020         transformation.
24022 2013-05-24  Dehao Chen  <dehao@google.com>
24024         * tree-cfg.c (locus_discrim_map): Fix the typo.
24025         (locus_discrim_hasher): Likewise.
24026         (locus_discrim_hasher::hash): Likewise.
24027         (locus_discrim_hasher::equal): Likewise.
24029 2013-05-24  Martin Jambor  <mjambor@suse.cz>
24031         PR tree-optimization/57294
24032         * cgraph.h (ipa_record_stmt_references): Declare.
24033         * cgraphbuild.c (ipa_record_stmt_references): New function.
24034         (build_cgraph_edges): Use ipa_record_stmt_references.
24035         (rebuild_cgraph_edges): Likewise.
24036         (cgraph_rebuild_references): Likewise.
24037         * ipa-prop.c (ipa_modify_call_arguments): Discard references
24038         associated with the old statement and build references from the
24039         newly built statements.
24040         * ipa-ref.c (ipa_remove_stmt_references): New function.
24041         * ipa-ref.h (ipa_remove_stmt_references): Declare.
24043 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
24045         * lra-constraints.c (emit_spill_move): Use smaller mode for
24046         mem-mem moves.
24047         (check_and_process_move): Consider mem-reg moves for secondary
24048         too.
24049         (curr_insn_transform): Don't lose insns emitted before for
24050         secondary memory moves.
24051         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
24052         reg set up in the current insn.
24054 2013-05-24  Dehao Chen  <dehao@google.com>
24056         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
24057         hash function.
24058         (locus_descrim_hasher::equal): Likewise.
24059         (build_gimple_cfg): New discriminator assignment algorithm.
24060         (make_edges): Likewise.
24061         (next_discriminator_for_locus): Likewise.
24062         (same_line_p): Likewise.
24063         (assign_discriminators): Likewise.
24064         (make_cond_expr_edges): Likewise.
24065         (make_gimple_switch_edges): Likewise.
24066         (make_goto_expr_edges): Likewise.
24067         (make_gimple_asm_edges): Likewise.
24069 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
24071         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
24072         X format specifier to only display bottom 16 bits.
24073         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
24074         immediate to match for operand 2, since it will be masked.
24076 2013-05-24  Richard Biener  <rguenther@suse.de>
24078         PR tree-optimization/57287
24079         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
24080         all SSA names that occur in abnormal PHIs.
24082 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24084         PR tree-ssa/57385
24085         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
24086         that index is not negative.
24088 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
24090         PR rtl-optimization/55177
24091         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
24092         (simplify_byte_swapping_operation): New.
24093         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
24094         (simplify_relational_operation_1): Deal with BSWAP.
24096 2013-05-23  Richard Henderson  <rth@redhat.com>
24098         PR target/56742
24099         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
24100         (ix86_reorg): Call it.
24102 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
24104         PR target/57379
24105         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
24106         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
24107         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
24109 2013-05-23  Christian Bruel  <christian.bruel@st.com>
24111         PR debug/57351
24112         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
24114 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
24115             Marcus Shawcroft  <marcus.shawcroft@arm.com>
24117         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
24118         * config/aarch64/constraints.md (Usa): Remove.
24119         * doc/md.texi (AArch64 Usa): Remove.
24121 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
24122             Marcus Shawcroft  <marcus.shawcroft@arm.com>
24124         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
24125         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
24126         * config/aarch64/predicates.md (aarch64_const_address): Remove.
24127         (aarch64_mov_operand): Use aarch64_mov_operand_p.
24129 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
24131         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
24132         instruction (AdvSIMD).
24133         * config/aarch64/aarch64-builtins.c
24134         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
24135         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
24137 2013-05-23  Martin Jambor  <mjambor@suse.cz>
24139         PR middle-end/57347
24140         * tree.h (contains_bitfld_component_ref_p): Declare.
24141         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
24142         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
24143         caller.
24144         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
24145         not access a bit-field.  Assert all final offsets are byte-aligned.
24147 2013-05-23  Richard Biener  <rguenther@suse.de>
24149         PR tree-optimization/57380
24150         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
24151         least one invariant or re-used load.
24152         * passes.c (init_optimization_passes): Move pass_phiprop before
24153         pass_forwprop.
24155 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
24157         * config/aarch64/aarch64-simd.md
24158         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
24160 2013-05-23  Richard Biener  <rguenther@suse.de>
24162         PR middle-end/57381
24163         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
24164         OEP_CONSTANT_ADDRESS_OF retained.
24166 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
24168         PR middle-end/57344
24169         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
24170         don't lower unit.  Handle unit not being always BITS_PER_WORD.
24172 2013-05-23  Richard Biener  <rguenther@suse.de>
24174         PR rtl-optimization/57341
24175         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
24176         instead of true_dependence.
24178 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
24180         * bb-reorder.c (branch_threshold): Make const.
24181         (exec_threshold): Ditto.
24183 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
24184             Pat Haugen  <pthaugen@us.ibm.com>
24185             Peter Bergner  <bergner@vnet.ibm.com>
24187         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
24188         documentation for the power8 crypto builtins.
24190         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
24192         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
24193         macros for defining power8 builtin functions.
24194         (BU_P8V_AV_2): Likewise.
24195         (BU_P8V_AV_P): Likewise.
24196         (BU_P8V_VSX_1): Likewise.
24197         (BU_P8V_OVERLOAD_1): Likewise.
24198         (BU_P8V_OVERLOAD_2): Likewise.
24199         (BU_CRYPTO_1): Likewise.
24200         (BU_CRYPTO_2): Likewise.
24201         (BU_CRYPTO_3): Likewise.
24202         (BU_CRYPTO_OVERLOAD_1): Likewise.
24203         (BU_CRYPTO_OVERLOAD_2): Likewise.
24204         (XSCVSPDP): Fix typo, point to the correct instruction.
24205         (VCIPHER): Add power8 crypto builtins.
24206         (VCIPHERLAST): Likewise.
24207         (VNCIPHER): Likewise.
24208         (VNCIPHERLAST): Likewise.
24209         (VPMSUMB): Likewise.
24210         (VPMSUMH): Likewise.
24211         (VPMSUMW): Likewise.
24212         (VPERMXOR_V2DI): Likewise.
24213         (VPERMXOR_V4SI: Likewise.
24214         (VPERMXOR_V8HI: Likewise.
24215         (VPERMXOR_V16QI: Likewise.
24216         (VSHASIGMAW): Likewise.
24217         (VSHASIGMAD): Likewise.
24218         (VPMSUM): Likewise.
24219         (VPERMXOR): Likewise.
24220         (VSHASIGMA): Likewise.
24222         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24223         __CRYPTO__ if the crypto instructions are available.
24224         (altivec_overloaded_builtins): Add support for overloaded power8
24225         builtins.
24227         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
24228         support for power8 crypto builtins.
24229         (builtin_function_type): Likewise.
24230         (altivec_init_builtins): Add support for builtins that take vector
24231         long long (V2DI) arguments.
24233         * config/rs6000/crypto.md: New file, define power8 crypto
24234         instructions.
24236 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
24237             Pat Haugen  <pthaugen@us.ibm.com>
24238             Peter Bergner  <bergner@vnet.ibm.com>
24240         * doc/invoke.texi (Option Summary): Add power8 options.
24241         (RS/6000 and PowerPC Options): Likewise.
24243         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
24244         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
24245         wm, wn, wr documentation.
24247         * config/rs6000/constraints.md (wm): New constraint for VSX
24248         registers if direct move instructions are enabled.
24249         (wn): New constraint for no registers.
24250         (wq): New constraint for quad word even GPR registers.
24251         (wr): New constraint if 64-bit instructions are enabled.
24252         (wv): New constraint if power8 vector instructions are enabled.
24253         (wQ): New constraint for quad word memory locations.
24255         * config/rs6000/predicates.md (const_0_to_15_operand): New
24256         constraint for 0..15 for crypto instructions.
24257         (gpc_reg_operand): If VSX allow registers in VSX registers as well
24258         as GPR and floating point registers.
24259         (int_reg_operand): New predicate to match only GPR registers.
24260         (base_reg_operand): New predicate to match base registers.
24261         (quad_int_reg_operand): New predicate to match even GPR registers
24262         for quad memory operations.
24263         (vsx_reg_or_cint_operand): New predicate to allow vector logical
24264         operations in both GPR and VSX registers.
24265         (quad_memory_operand): New predicate for quad memory operations.
24266         (reg_or_indexed_operand): New predicate for direct move support.
24268         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
24269         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
24270         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
24271         (POWERPC_MASKS): Add power8 options.
24272         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
24273         various options.
24275         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24276         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
24278         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
24279         (-mpower8-fusion): New power8 options.
24280         (-mpower8-fusion-sign): Likewise.
24281         (-mpower8-vector): Likewise.
24282         (-mcrypto): Likewise.
24283         (-mdirect-move): Likewise.
24284         (-mquad-memory): Likewise.
24286         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
24287         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
24288         registers.
24289         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
24290         (rs6000_debug_vector_unit): Add p8_vector.
24291         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
24292         definitions.  Also print fusion state.
24293         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
24294         (rs6000_builtin_mask_calculate): Add power8 builtin support.
24295         (rs6000_option_override_internal): Add support for power8.
24296         (rs6000_common_init_builtins): Add debugging for skipped builtins
24297         if -mdebug=builtin.
24298         (rs6000_adjust_cost): Add power8 support.
24299         (rs6000_issue_rate): Likewise.
24300         (insn_must_be_first_in_group): Likewise.
24301         (insn_must_be_last_in_group): Likewise.
24302         (force_new_group): Likewise.
24303         (rs6000_register_move_cost): Likewise.
24304         (rs6000_opt_masks): Likewise.
24306         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
24307         power8 capable assembler, default to power7 options.
24308         (TARGET_DIRECT_MOVE): Likewise.
24309         (TARGET_CRYPTO): Likewise.
24310         (TARGET_P8_VECTOR): Likewise.
24311         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
24312         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
24313         (VECTOR_MEM_P8_VECTOR_P): Likewise.
24314         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
24315         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
24316         (TARGET_XSCVDPSPN): Likewise.
24317         (TARGET_XSCVSPDPN): Likewsie.
24318         (TARGET_SYNC_HI_QI): Likewise.
24319         (TARGET_SYNC_TI): Likewise.
24320         (MASK_CRYPTO): Likewise.
24321         (MASK_DIRECT_MOVE): Likewise.
24322         (MASK_P8_FUSION): Likewise.
24323         (MASK_P8_VECTOR): Likewise.
24324         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
24325         temporary used by some of the direct move instructions to get two FP
24326         temporary registers does not force creation of a stack frame.
24327         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
24328         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
24329         that any VSX registers are tieable, even if they are also an
24330         Altivec vector mode.
24331         (r6000_reg_class_enum): Add wm, wr, wv constraints.
24332         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
24333         (RS6000_BTM_CRYPTO): Likewise.
24334         (RS6000_BTM_COMMON): Likewise.
24336         * config/rs6000/rs6000.md (cpu attribute): Add power8.
24337         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
24338         (enum rs6000_vector): Add power8 vector support.
24340 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24342         PR target/19599
24343         PR target/57340
24344         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
24345         (any_sibcall_could_use_r3): this and handle indirect calls.
24346         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
24348 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24350         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
24352 2013-05-22  Richard Biener  <rguenther@suse.de>
24354         PR middle-end/57349
24355         * profile.c (branch_prob): Do not split blocks that are
24356         abnormally receiving from ECF_RETURNS_TWICE functions.
24358 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24360         * recog.c (offsettable_address_addr_space_p): Fix calculation of
24361         address mode.  Move pointer mode initialization to the same place.
24363 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
24365         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
24366         while it has any effect.
24368 2013-05-21  Easwaran Raman  <eraman@google.com>
24370         PR tree-optimization/57322
24371         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
24372         UID of the statement added to the BB to be 1.
24374 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
24376         PR tree-optimization/57331
24377         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
24378         of conversion from pointer type to integral type with integer.
24380 2013-05-21  Martin Jambor  <mjambor@suse.cz>
24382         PR lto/57289
24383         * ipa-prop.c (ipa_read_node_info): Process param_used and
24384         controlled_uses in the same order as when writing.
24386 2013-05-21  Magnus Granberg  <baldrick@free.fr>
24388         PR plugins/56754
24389         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
24391 2013-05-21  Richard Biener  <rguenther@suse.de>
24393         PR tree-optimization/57318
24394         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
24395         estimate stmts with side-effects as likely eliminated.
24397 2013-05-21  Richard Biener  <rguenther@suse.de>
24399         PR tree-optimization/57330
24400         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
24401         preserve the call stmts fntype.
24403 2013-05-21  Richard Biener  <rguenther@suse.de>
24405         PR tree-optimization/57303
24406         * tree-ssa-sink.c (statement_sink_location): Improve killing
24407         stmt detection and properly handle self-assignments.
24409 2013-05-21  Christian Bruel  <christian.bruel@st.com>
24411         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
24412         spanning registers. LEAF_REG_REMAP is supported only for contiguous
24413         registers. Set register size out of the PARALLEL loop.
24415 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
24417         PR target/56547
24418         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
24419         (*fmasf4, *fmasf4_media): New insns.
24421 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24423         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
24424         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
24425         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
24426         (mips_idiv_insns): Update the comments to say that the returned
24427         instruction counts are in units of BASE_INSN_LENGTH.
24428         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
24429         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
24430         using 2 rather than 4 as the length of indirect MIPS16 and
24431         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
24432         length of a NOP.  Don't divide MIPS16 lengths by 2.
24433         (mips16_split_long_branches): Assume a branch is long if the
24434         length is greater than 4 rather than 8.
24435         * config/mips/mips.md (length): Give MIPS16 lengths directly,
24436         rather than multiplying them by 2.  Multiply instruction counts
24437         by BASE_INSN_LENGTH rather than 4.
24438         (*jump_mips16, tls_get_tp_mips16_<mode>)
24439         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
24441 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24443         * config/mips/mips.md (extended_mips16): Remove branch case.
24444         (length): Remove duplicated extended_mips16 test.
24446 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24448         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
24450 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
24452         * recog.h (Recog_data): Rename to...
24453         (recog_data_d): ...this.
24454         (recog_data): Update accordingly.
24455         * recog.c (recog_data): Likewise.
24456         * reload.c (save_recog_data): Likewise.
24457         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
24458         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
24460 2013-05-17  Julian Brown  <julian@codesourcery.com>
24462         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
24463         found in a REG_EQUAL note, invalidate it.
24465 2013-05-17  Easwaran Raman  <eraman@google.com>
24467         * tree-ssa-reassoc.c (find_insert_point): New function.
24468         (insert_stmt_after): Likewise.
24469         (get_def_stmt): Likewise.
24470         (ensure_ops_are_available): Likewise.
24471         (not_dominated_by): Likewise.
24472         (rewrite_expr_tree): Do not move statements beyond what is
24473         necessary. Remove call to swap_ops_for_binary_stmt...
24474         (reassociate_bb): ... and move it here.
24475         (build_and_add_sum): Assign UIDs for new statements.
24476         (linearize_expr): Likewise.
24477         (do_reassoc): Renumber gimple statement UIDs.
24479 2013-05-17  Jan Hubicka  <jh@suse.cz>
24481         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
24482         weakrefs.
24483         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
24484         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
24485         weakrefs.
24486         (output_weakrefs): Update.
24488 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
24489             Martin Jambor  <mjambor@suse.cz>
24491         PR middle-end/57276
24492         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
24493         value that corresponds to the given aggval is found in values vector.
24495 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
24497         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
24498         sse, sse2, sse3, ssse3 and sse4a flags to options.
24500 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
24502         * gengtype-state.c: (s_expr_writer): New class, to handle
24503         prettifying of output layout of s-expressions.
24504         (state_writer): New class, to write out gtype.state.
24505         (state_written_type_count): Move this variable into member data of
24506         state_writer.
24507         (s_expr_writer::s_expr_writer): New code: constructor for new class
24508         (state_writer::state_writer(): ditto
24509         (s_expr_writer::write_new_line): New function
24510         (s_expr_writer::write_any_indent): ditto
24511         (s_expr_writer::begin_s_expr): ditto
24512         (s_expr_writer::end_s_expr): ditto
24513         (write_state_fileloc): convert to method of state_writer...
24514         (state_writer:: write_state_fileloc): ...and use methods of
24515         s_expr_writer to write indentation into the gtype.state output file
24516         to visually represent the hierarchical structure of the list
24517         structures
24518         (write_state_fields): ditto, renaming to...
24519         (state_writer::write_state_fields)
24520         (write_state_a_string): ditto, renaming to...
24521         (state_writer::write_state_a_string)
24522         (write_state_string_option): ditto, renaming to...
24523         (state_writer::write_state_string_option)
24524         (write_state_type_option): ditto, renaming to...
24525         (state_writer::write_state_type_option)
24526         (write_state_nested_option): ditto, renaming to...
24527         (state_writer::write_state_nested_option)
24528         (write_state_option): ditto, renaming to...
24529         (state_writer::write_state_option)
24530         (write_state_options): ditto, renaming to...
24531         (state_writer::write_state_options)
24532         (write_state_lang_bitmap): ditto, renaming to...
24533         (state_writer::write_state_lang_bitmap)
24534         (write_state_version): ditto, renaming to...
24535         (state_writer::write_state_version)
24536         (write_state_scalar_type): ditto, renaming to...
24537         (state_writer::write_state_scalar_type)
24538         (write_state_string_type): ditto, renaming to...
24539         (state_writer::write_state_string_type)
24540         (write_state_undefined_type): ditto, renaming to...
24541         (state_writer::write_state_undefined_type)
24542         (write_state_struct_union_type): ditto, renaming to...
24543         (state_writer::write_state_struct_union_type)
24544         (write_state_struct_type): ditto, renaming to...
24545         (state_writer::write_state_struct_type)
24546         (write_state_user_struct_type): ditto, renaming to...
24547         (state_writer::write_state_user_struct_type)
24548         (write_state_lang_struct_type): ditto, renaming to...
24549         (state_writer::write_state_lang_struct_type)
24550         (write_state_param_struct_type): ditto, renaming to...
24551         (state_writer::write_state_param_struct_type)
24552         (write_state_pointer_type): ditto, renaming to...
24553         (state_writer::write_state_pointer_type)
24554         (write_state_array_type): ditto, renaming to...
24555         (state_writer::write_state_array_type)
24556         (write_state_gc_used): ditto, renaming to...
24557         (state_writer::write_state_gc_used)
24558         (write_state_common_type_content): ditto, renaming to...
24559         (state_writer::write_state_common_type_content)
24560         (write_state_type): ditto, renaming to...
24561         (state_writer::write_state_type)
24562         (write_state_pair_list): ditto, renaming to...
24563         (state_writer::write_state_pair_list)
24564         (write_state_pair): ditto, renaming to...
24565         (state_writer::write_state_pair)
24566         (write_state_typedefs): ditto, renaming to...
24567         (state_writer::write_state_typedefs)
24568         (write_state_structures): ditto, renaming to...
24569         (state_writer::write_state_structures)
24570         (write_state_param_structs): ditto, renaming to...
24571         (state_writer::write_state_param_structs)
24572         (write_state_variables): ditto, renaming to...
24573         (state_writer::write_state_variables)
24574         (write_state_srcdir): ditto, renaming to...
24575         (state_writer::write_state_srcdir)
24576         (write_state_files_list): ditto, renaming to...
24577         (state_writer::write_state_files_list)
24578         (write_state_languages): ditto, renaming to...
24579         (state_writer::write_state_languages)
24580         (write_state): create a state_writer instance and use it when
24581         writing out the state file
24583 2013-05-17  Mike Stump  <mikestump@comcast.net>
24585         PR rtl-optimization/57304
24586         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
24587         accessing DF_REF_REAL_LOC.
24589 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
24591         PR rtl-optimization/57281
24592         PR rtl-optimization/57300
24593         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
24594         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
24595         what the other splitter did if the registers are dead.
24597 2013-05-17  Richard Biener  <rguenther@suse.de>
24599         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
24600         MEM_REF offsets.
24602 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
24604         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
24605         linking.
24607 2013-05-17  Marek Polacek  <polacek@redhat.com>
24609         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
24610         length when doing non-zero store of storing '\0' to '\0'.
24612 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
24614         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
24615         vect_external_def oprnd1 with loop_vinfo, try to emit
24616         optional cast, negation and and stmts on the loop preheader
24617         edge instead of into the pattern def seq.
24619         PR tree-optimization/57051
24620         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
24621         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
24623 2013-05-16  Nick Clifton  <nickc@redhat.com>
24625         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
24626         (rl78_is_naked_func): New function.
24627         (rl78_expand_prologue): Skip prologue generation for naked functions.
24628         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
24629         * doc/extend.texi (naked): Add RL78 to the list of processors
24630         that supports this attribute.
24632 2013-05-16  Jeff Law  <law@redhat.com>
24634         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
24636 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
24638         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
24639         cache parameters using detect_caches_amd also for CYRIX,
24640         NSC and TM2 signatures.
24642 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
24643             Dzianis Kahanovich  <mahatma@eu.by>
24645         PR target/45359
24646         PR target/46396
24647         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24648         VIA/Centaur processors and determine their cache parameters
24649         using detect_caches_amd.
24651 2013-05-16  Teresa Johnson  <tejohnson@google.com>
24653         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
24654         (rtl_verify_edges): New function.
24655         (rtl_verify_bb_insns): Ditto.
24656         (rtl_verify_bb_pointers): Ditto.
24657         (rtl_verify_bb_insn_chain): Ditto.
24658         (rtl_verify_fallthru): Ditto.
24659         (rtl_verify_bb_layout): Ditto.
24660         (rtl_verify_flow_info_1): Outline checks into new functions.
24661         (rtl_verify_flow_info): Ditto.
24663 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
24665         * cfghooks.c (copy_bbs): Add update_dominance argument.
24666         * cfghooks.h (copy_bbs): Update prototype.
24667         * tree-cfg.c (gimple_duplicate_sese_region):
24668         Add update_dominance argument.
24669         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
24670         * tree-ssa-loop-ch.c (copy_loop_headers): Update
24671         gimple_duplicate_sese_region call.
24672         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
24673         Update copy_bbs call.
24674         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
24675         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
24677 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
24679         * tree-vectorizer.h (NUM_PATTERNS): Increment.
24680         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
24681         vect_recog_rotate_pattern.
24682         (vect_recog_rotate_pattern): New function.
24684 2013-05-16  Jason Merrill  <jason@redhat.com>
24686         * Makefile.in (LLINKER): New variable.
24687         (mostlyclean): Remove link mutex.
24688         * configure.ac: Handle --enable-link-mutex.
24689         * lock-and-run.sh: New script.
24691 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24693         PR target/19599
24694         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
24695         for NULL decl.
24697 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24699         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
24701 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
24703         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
24704         * config/arm/arm.c (next_consecutive_mem): New function.
24705         (gen_movmem_ldrd_strd): Likewise.
24706         * config/arm/arm.md (movmemqi): Update condition and code.
24707         (unaligned_loaddi, unaligned_storedi): New patterns.
24709 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24711         * config.gcc: Obsolete *-*-solaris2.9*.
24712         * doc/install.texi (Specific, *-*-solaris2*): Document it.
24714 2013-05-16  Richard Biener  <rguenther@suse.de>
24716         * passes.c (init_optimization_passes): Move pass_parallelize_loops
24717         earlier, after GRAPHITE transforms and IV canonicalization.
24719 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
24721         * omp-low.c (extract_omp_for_data): For collapsed loops,
24722         if at least one of the loops is known at compile time to
24723         iterate zero times, set count to 0.
24724         (expand_omp_regimplify_p): New function.
24725         (expand_omp_for_generic): For collapsed loops, if at least
24726         one of the loops isn't known to iterate at least once,
24727         add runtime check with setting count to 0.
24728         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
24729         For unsigned types if it isn't known at compile time that
24730         the loop will iterate at least once, add runtime check to bypass
24731         the whole loop if initial condition isn't true.
24733 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
24735         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
24737 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
24739         PR middle-end/57286
24740         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
24741         transformations to avoid an infinite loop.
24743 2013-05-16  Marek Polacek  <polacek@redhat.com>
24745         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
24747 2013-05-15  Leif Ekblad  <leif@rdos.net>
24749         * config/i386/i386.c (ix86_decompose_address): Use
24750         DEFAULT_TLS_SEG_REG to access TLS segment register.
24751         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
24752         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
24753         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
24755 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
24757         PR target/57260
24758         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
24759         sibling calls to functions that would normally be lazily bound,
24760         unless $gp is call-clobbered.
24762 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
24764         * config/i386/i386.c (ix86_option_override_internal): Update
24765         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
24766         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
24767         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
24768         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
24769         of TARGET_3DNOW.
24770         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
24772 2013-05-15  Andreas Schwab  <schwab@suse.de>
24774         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
24775         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
24776         third operand.
24778 2013-05-15  Teresa Johnson  <tejohnson@google.com>
24780         * loop-unroll.c (report_unroll_peel): Check decision before
24781         emitting unroll/peel message.
24783 2013-05-15  Teresa Johnson  <tejohnson@google.com>
24785         * function.h (has_bb_partition): New rtl_data flag.
24786         (bb_reorder_complete): Ditto.
24787         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
24788         instead of flag_reorder_blocks_and_partition.
24789         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
24790         with some enhancements.
24791         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
24792         * bb-reorder.c (connect_traces): Check for has_bb_partition
24793         instead of flag_reorder_blocks_and_partition.
24794         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
24795         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
24796         verify_hot_cold_block_grouping.
24797         (partition_hot_cold_basic_blocks): Set has_bb_partition.
24799 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24801         PR target/19599
24802         * config/arm/predicates.md (call_insn_operand): New predicate.
24803         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
24804         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
24805         if insn is not a tail call.
24806         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
24807         registers.
24808         * config/arm/arm.h (enum reg_class): New caller save register class.
24809         (REG_CLASS_NAMES): Likewise.
24810         (REG_CLASS_CONTENTS): Likewise.
24811         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
24812         without decls.
24814 2013-05-15  Richard Biener  <rguenther@suse.de>
24816         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
24817         of MSG_OPTIMIZED_LOCATIONS.
24818         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
24819         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
24820         message.
24821         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
24822         of MSG_OPTIMIZED_LOCATIONS.
24823         (execute_vect_slp): Likewise.
24824         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
24825         (vect_create_cond_for_alias_checks): Likewise.
24826         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
24827         (vect_recog_widen_mult_pattern): Likewise.
24828         (vect_recog_widen_sum_pattern): Likewise.
24829         (vect_recog_over_widening_pattern): Likewise.
24830         (vect_recog_widen_shift_pattern): Likewise.
24831         (vect_recog_vector_vector_shift_pattern): Likewise.
24832         (vect_recog_divmod_pattern): Likewise.
24833         (vect_recog_mixed_size_cond_pattern): Likewise.
24834         (vect_recog_bool_pattern): Likewise.
24835         (vect_pattern_recog_1): Likewise.
24837 2013-05-15  Martin Jambor  <mjambor@suse.cz>
24839         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
24840         non-functions to builtin_unreachable.
24841         * ipa-inline-transform.c (inline_call): Do not assert estimates were
24842         correct when new direct edges were discovered.
24844 2013-05-15  Martin Jambor  <mjambor@suse.cz>
24846         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
24847         header, print symbol order instead of node uid, print more information
24848         about indirect edge targets.
24849         (ipa_make_edge_direct_to_target): Print symbol order instead of node
24850         uids.
24851         (ipa_make_edge_direct_to_target): Likewise.
24852         (remove_described_reference): Likewise.
24853         (propagate_controlled_uses): Likewise.
24854         (ipa_print_node_params): Also print symbol order.
24855         (ipcp_transform_function): Print symbol order instead of node uids.
24856         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
24857         (cgraph_get_create_real_symbol_node): Likewise.
24858         * ipa-cp.c (print_lattice): Likewise.
24859         (print_all_lattices): Likewise.
24860         (determine_versionability): Likewise.
24861         (initialize_node_lattices): Likewise.
24862         (estimate_local_effects): Likewise.
24863         (update_profiling_info): Likewise.
24864         (create_specialized_node): Likewise.
24865         (perhaps_add_new_callers): Likewise.
24866         (decide_about_value): Likewise.
24867         (decide_whether_version_node): Likewise.
24868         (identify_dead_nodes): Likewise.
24869         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
24870         (dump_inline_summary): Likewise.
24871         (estimate_node_size_and_time): Likewise.
24872         (inline_analyze_function): Likewise.
24873         * ipa-inline.c (report_inline_failed_reason): Likewise.
24874         (want_early_inline_function_p): Likewise.
24875         (edge_badness): Likewise.
24876         (update_edge_key): Likewise.
24877         (inline_small_functions): Likewise.  Add dumping of order to two other
24878         dumps.
24879         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
24880         instead of node uids.
24881         (propagate_pure_const): Likewise.
24882         (propagate_pure_const): Likewise.
24883         * ipa-utils.c (dump_cgraph_node_set): Likewise.
24884         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
24885         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
24886         of node uids.
24887         * tree-pretty-print.c (dump_function_header): Likewise.
24888         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
24889         Print symbol order instead of node uids.
24891 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24893         * config/s390/s390.c (s390_register_move_cost): Don't impose the
24894         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
24896 2013-05-15  Richard Biener  <rguenther@suse.de>
24898         PR tree-optimization/57275
24899         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
24900         return value for fail to do runtime alias checks for gather loads.
24902 2013-05-15  Jan Hubicka  <jh@suse.cz>
24904         PR lto/57038
24905         PR lto/47375
24906         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
24907         weakrefs are not external.
24908         (lto_symtab_merge_decls): Fix thinko when dealing with
24909         non-lto_symtab decls.
24910         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
24911         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
24912         * varpool.c (dump_varpool_node): Dump more flags.
24914 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
24916         * config/i386/i386.c (processor_alias_table): Add instruction
24917         FSGSBASE for AMD bdver3 architecture.
24919 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
24921         * tree.c (warn_deprecated_use): Print file:line using locus color.
24922         * diagnostic.c (diagnostic_report_current_module): Print file:line
24923         and file:line:column using locus color.
24925 2013-05-14  Mike Stump  <mikestump@comcast.net>
24927         * gdbinit.in: Add __null.
24929 2013-05-14  Mike Stump  <mikestump@comcast.net>
24931         * recog.h: Rename struct recog_data to Recog_data.
24932         * recog.c: Likewise.
24933         * reload.c (can_reload_into): Likewise.
24934         * config/picochip/picochip.c: Likewise.
24936 2013-05-14  Mike Stump  <mikestump@comcast.net>
24938         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
24940 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
24942         * resource.h (struct resources): Remove unch_memory member.
24943         (CLEAR_RESOURCE): Don't clear unch_memory.
24944         * resource.c (mark_referenced_resources): Don't set it.
24945         (mark_set_resources): Likewise.
24946         (mark_target_live_regs): Don't clear it.
24947         (init_resource_info): Likewise.
24948         * reorg.c (resource_conflicts_p): Don't compare it.
24949         (redundant_insn): Don't set it.
24951         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
24952         Remove prototypes.
24953         * emit-rtl.c (next_label): Remove unused function.
24954         (skip_consecutive_labels, link_cc0_insns): Move to ...
24955         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
24956         only place where these functions are used, and make them static.
24958 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
24960         * fold-const.c (fold_negate_expr): Handle vectors.
24961         (fold_truth_not_expr): Make it static.
24962         (fold_invert_truthvalue): New static function.
24963         (invert_truthvalue_loc): Handle vectors. Do not call
24964         fold_truth_not_expr directly.
24965         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
24966         <TRUTH_NOT_EXPR>: Do not cast to boolean.
24967         (fold_comparison): Handle vector constants.
24968         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
24969         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
24970         * tree.h (fold_truth_not_expr): Remove declaration.
24972 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
24974         * config/aarch64/aarch64-simd.md
24975         (aarch64_vcond_internal<mode>): Rename to...
24976         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
24977         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
24978         float modes. Clarify all iterator modes.
24979         (vcond<mode><mode>): Use new name for vcond expanders.
24980         (vcond<v_cmp_result><mode>): Likewise.
24981         (vcondu<mode><mode>: Likewise.
24982         * config/aarch64/iterators.md (VDQF_COND): New.
24984 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
24986         PR bootstrap/57266
24987         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
24988         variable for the shift amount. Check that we shift by non-negative
24989         amounts.
24991 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
24993         PR target/42017
24994         * config/arm/arm.h (EPILOGUE_USES): Only return true
24995         for LR_REGNUM after epilogue_completed.
24997 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
24999         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
25000         is error_mark_node.
25002 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25004         PR target/57261
25005         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
25006         and Solaris 11+/x86 with gld.
25007         * configure: Regenerate.
25009 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
25011         * expmed.c (expand_shift_1): Canonicalize rotates by
25012         constant bitsize / 2 to bitsize - 1.
25013         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
25014         case ROTATERT>: Likewise.
25016         Revert:
25017         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
25019         * config/i386/i386.md (rotateinv): New code attr.
25020         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
25021         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
25022         roll $31, %eax, etc.
25024 2013-05-14  Richard Biener  <rguenther@suse.de>
25026         PR middle-end/57235
25027         * tree-eh.c (sink_clobbers): Give up for successors with
25028         multiple predecessors and no virtual uses.
25030 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25032         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
25033         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
25035 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
25037         PR middle-end/57251
25038         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
25039         the case when both op0 and op1 have VOIDmode.
25041 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25043         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
25044         in multiply-accumulate mode.
25046 2013-05-13  Guozhi Wei  <carrot@google.com>
25048         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
25050 2013-05-13  Kai Tietz  <ktietz@redhat.com>
25052         PR target/56975
25053         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
25054         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
25055         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
25056         * config/i386/i386.c (ix86_option_override_internal): Likewise.
25057         (ix86_expand_prologue): Likewise.
25058         (ix86_expand_split_stack_prologue): Likewise.
25059         (legitimate_pic_address_disp_p): Likewise.
25060         (legitimize_pic_address): Likewise.
25061         (legitimize_tls_address): Likewise.
25062         (legitimize_pe_coff_symbol): Likewise.
25063         (output_pic_addr_const): Likewise.
25064         (construct_plt_address): Likewise.
25065         (ix86_expand_call): Likewise.
25066         (x86_output_mi_thunk): Likewise.
25067         (x86_function_profiler): Likewise.
25069 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
25071         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
25072         similar switch cases.
25073         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
25074         (aarch64_simd_mov_to_<mode>low): Delete.
25075         (aarch64_simd_mov_to_<mode>high): Delete.
25076         (move_lo_quad_<mode>): Add w<-r alternative.
25077         (aarch64_simd_move_hi_quad_<mode>): Likewise.
25078         (aarch64_simd_mov_from_*): Update type attribute.
25079         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
25080         statement.
25082 2013-05-13  Jan Hubicka  <jh@suse.cz>
25084         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
25085         * config/i386/i386.c (ix86_compute_frame_layout,
25086         ix86_expand_epilogue, emit_i387_cw_initialization,
25087         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
25088         ix86_local_alignment): Fix use of size/speed predicates.
25090 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
25092         PR tree-optimization/45216
25093         PR tree-optimization/57157
25094         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
25095         the (-Y) & (B - 1) variant if OP is |.
25096         * expmed.c (expand_shift_1): For rotations by const0_rtx just
25097         return shifted.  Use (-op1) & (prec - 1) as other_amount
25098         instead of prec - op1.
25100 2013-05-13  Martin Jambor  <mjambor@suse.cz>
25102         PR middle-end/42371
25103         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
25104         (ipa_constant_data): New type.
25105         (ipa_jump_func): Use ipa_constant_data to hold information about
25106         constant jump functions.
25107         (ipa_get_jf_constant): Adjust to jump function type changes.
25108         (ipa_get_jf_constant_rdesc): New function.
25109         (ipa_param_descriptor): New field controlled_uses.
25110         (ipa_get_controlled_uses): New function.
25111         (ipa_set_controlled_uses): Likewise.
25112         * ipa-ref.h (ipa_find_reference): Declare.
25113         * ipa-prop.c (ipa_cst_ref_desc): New type.
25114         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
25115         changes.
25116         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
25117         New parameter cs.  Adjust all callers.
25118         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
25119         (remove_described_reference): New function.
25120         (jfunc_rdesc_usable): Likewise.
25121         (try_make_edge_direct_simple_call): Decrement controlled use count,
25122         attempt to remove reference if it hits zero.
25123         (combine_controlled_uses_counters): New function.
25124         (propagate_controlled_uses): Likewise.
25125         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
25126         (ipa_edge_duplication_hook): Duplicate reference descriptions.
25127         (ipa_print_node_params): Print described use counter.
25128         (ipa_write_jump_function): Adjust to jump function type changes.
25129         (ipa_read_jump_function): New parameter CS, pass it to
25130         ipa_set_jf_constant.  Adjust caller.
25131         (ipa_write_node_info): Stream controlled use count
25132         (ipa_read_node_info): Likewise.
25133         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
25134         asserting.
25135         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
25136         count.  Remove cloning-added reference if it reaches zero.
25137         * ipa-ref.c (ipa_find_reference): New function.
25139 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25141         * config/i386/i386.c (processor_target_table): Modified default
25142         alignment values for AMD BD and BT architectures.
25144 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
25146         * tree-vect-generic.c (uniform_vector_p): Move ...
25147         * tree.c (uniform_vector_p): ... here.
25148         * tree.h (uniform_vector_p): Declare it.
25149         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
25150         into a scalar.
25152 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
25154         PR tree-optimization/57230
25155         * tree-ssa-strlen.c (handle_char_store): Record length for
25156         array store from STRING_CST.
25158         PR tree-optimization/57230
25159         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
25160         check.
25162 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
25164         * config/epiphany/epiphany.c (epiphany_init): Check size of
25165         NUM_MODES_FOR_MODE_SWITCHING.
25166         (epiphany_expand_prologue):
25167         Remove CONFIG_REGNUM initial value handling code.
25168         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
25169         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
25170         (emit_set_fp_mode, epiphany_mode_after): Likewise.
25171         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
25172         Don't return 1 for FP_MODE_NONE.
25173         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
25174         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
25175         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
25176         * config/epiphany/epiphany.md (save_config): New pattern.
25178 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
25180         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
25182 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
25184         * config/i386/i386.md (memory): Handle sseishft1.
25185         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
25186         (*vec_extractv2di_1): Ditto.
25188 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
25190         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
25191         saved registers.
25193 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25195         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
25196         Add mthumb/march=armv7-a multilib.
25197         Add mthumb/march=armv7-r multilib.
25198         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
25200 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
25202         * config/v850/t-rtems: Add more multilibs.
25204 2013-05-10  Richard Biener  <rguenther@suse.de>
25206         PR tree-optimization/57214
25207         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
25208         not propagate from SSA names that occur in abnormal PHI nodes.
25210 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
25212         * stor-layout.c (element_precision): New function.
25213         * machmode.h (element_precision): Declare it.
25214         * tree.c (build_minus_one_cst): New function.
25215         (element_precision): Likewise.
25216         * tree.h (build_minus_one_cst): Declare new function.
25217         (element_precision): Likewise.
25218         * fold-const.c (operand_equal_p): Use element_precision.
25219         (fold_binary_loc): Handle vector types.
25220         * convert.c (convert_to_integer): Use element_precision.
25221         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
25222         separately.
25224 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
25226         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
25227         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
25228         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
25229         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25230         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
25231         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
25232         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
25233         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25234         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
25235         (Uuw8): New constraints.
25236         (Usb4): Move into alphabetical order.
25237         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
25238         (sd8_operand, ub8_operand, uw8_operand): New predicates.
25239         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
25240         previously unnamed patterns.
25241         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
25242         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
25243         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
25244         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
25245         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
25246         of specific lengths.
25248 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
25250         * config/i386/i386.md (rotateinv): New code attr.
25251         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
25252         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
25253         roll $31, %eax, etc.
25255         PR tree-optimization/45216
25256         PR tree-optimization/57157
25257         * tree-ssa-forwprop.c (simplify_rotate): New function.
25258         (ssa_forward_propagate_and_combine): Call it.
25260 2013-05-10  Richard Biener  <rguenther@suse.de>
25262         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
25263         disable peeling when we version for aliasing.
25264         (vector_alignment_reachable_p): Honor explicit user alignment.
25265         (vect_supportable_dr_alignment): Likewise.
25266         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
25267         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
25268         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
25269         then peeling to arrange for the cost-model check to come first.
25271 2013-05-10  Alan Modra  <amodra@gmail.com>
25273         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
25274         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
25275         * configure: Regenerate.
25277 2013-05-10  Alan Modra  <amodra@gmail.com>
25279         PR target/55033
25280         * varasm.c (default_elf_select_section): Move !DECL_P check..
25281         (get_named_section): ..to here before calling get_section_name.
25282         Adjust assertion.
25283         (default_section_type_flags): Add DECL_P check.
25284         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
25285         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
25287 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
25289         * config/epiphany/epiphany.c (epiphany_expand_prologue):
25290         When using gen_stack_adjust_str with a register offset, add a
25291         REG_FRAME_RELATED_EXPR note.
25293 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
25295         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
25296         (*vec_extractv4si_zext_mem): Ditto.
25297         (*vec_extractv2di): Add 0->x and x->x alternatives.
25298         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
25299         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
25301 2013-05-09  Jason Merrill  <jason@redhat.com>
25303         N3639 C++1y VLA support
25304         * gimplify.c (gimplify_vla_decl): Don't touch an existing
25305         DECL_VALUE_EXPR.
25307         * tree.c (build_constructor_va): New.
25308         * tree.h: Declare it.
25310 2013-05-09  Martin Jambor  <mjambor@suse.cz>
25312         PR lto/57084
25313         * gimple-fold.c (canonicalize_constructor_val): Call
25314         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
25316 2013-05-09  Jan Hubicka  <jh@suse.cz>
25317             Richard Biener  <rguenther@suse.de>
25319         PR lto/54095
25320         * symtab.c (symtab_make_decl_local): Do not add private names.
25322 2013-05-09  Jan Hubicka  <jh@suse.cz>
25324         PR lto/54095
25325         * symtab.c (insert_to_assembler_name_hash): Handle clones.
25326         (unlink_from_assembler_name_hash): Likewise.
25327         (symtab_prevail_in_asm_name_hash, symtab_register_node,
25328         symtab_unregister_node, symtab_initialize_asm_name_hash,
25329         change_decl_assembler_name): Update.
25331 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
25333         * config/aarch64/aarch64.md: New movtf split.
25334         (*movtf_aarch64): Update.
25335         (aarch64_movdi_tilow): Handle TF modes and rename to
25336         aarch64_movdi_<mode>low.
25337         (aarch64_movdi_tihigh): Handle TF modes and rename to
25338         aarch64_movdi_<mode>high
25339         (aarch64_movtihigh_di): Handle TF modes and rename to
25340         aarch64_mov<mode>high_di
25341         (aarch64_movtilow_di): Handle TF modes and rename to
25342         aarch64_mov<mode>low_di
25343         (aarch64_movtilow_tilow): Remove spurious whitespace.
25344         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
25345         splits.
25346         (aarch64_print_operand): Update.
25348 2013-05-09  Alan Modra  <amodra@gmail.com>
25350         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
25351         powerpc64le.
25352         * configure: Regenerate.
25354 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
25356         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
25357         splitter preparation statements.
25358         * config/i386/sse.md (*vec_extract* splitters): Ditto.
25359         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
25360         adjust_address_nv.
25362 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25364         * gimple-ssa-strength-reduction.c (count_candidates): Change
25365         return value to int.
25366         (analyze_candidates_and_replace): Change type of length to int.
25368 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
25370         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
25371         (*vec_extract<mode>): Use VI12_128 mode iterator.
25372         (*vec_extract<mode>_mem): Ditto.
25373         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
25374         attribute.
25376 2013-05-08  Diego Novillo  <dnovillo@google.com>
25378         PR bootstrap/54659
25380         Revert:
25381         2012-08-17  Diego Novillo  <dnovillo@google.com>
25383         PR bootstrap/54281
25384         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
25385         * config.in: Regenerate.
25386         * configure: Regenerate.
25387         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
25389 2013-05-08  Jan Hubicka  <jh@suse.cz>
25391         PR lto/54095
25392         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
25393         * cgraph.h (symtab_node_base): Add unique_name.
25394         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25395         input_overwrite_node, input_varpool_node): Stream unique_name.
25396         * cgraphclones.c (cgraph_create_virtual_clone,
25397         cgraph_function_versioning): Set unique_name.
25398         * ipa.c (function_and_variable_visibility): Set unique_name.
25400 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25402         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
25403         (alloc_cand_and_find_basis): Restrict conditional candidate
25404         processing to CAND_MULTs.
25406 2013-05-08  Jan Hubicka  <jh@suse.cz>
25408         PR lto/54095
25409         lto-symtab.c (lto_symtab_symbol_p): New function.
25410         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
25411         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
25412         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
25413         Skip static symbols.
25415 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
25417         PR tree-optimization/57200
25418         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
25419         Only call inform if the preceding warning_at returns true.
25421 2013-05-07  Han Shen  <shenhan@google.com>
25423         * cfgexpand.c (record_or_union_type_has_array_p): New function.
25424         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
25425         * common.opt (fstack-protector-strong): New option.
25426         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
25427         * doc/invoke.texi (Optimization Options): Document
25428         "-fstack-protector-strong".
25429         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
25431 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
25433         * config/mips/mips.c (mips_machine_reorg2): Return 0.
25435 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
25437         * ira.c (update_equiv_regs): Add insn having equiv memory even if
25438         it is not lhs of the insn.
25439         (setup_reg_equiv): Remove insn having equiv memory which it is not
25440         lhs of the insn.
25441         * lra-constraints.c (process_address): Try to improve generation
25442         code for address base + disp.
25443         (lra_constraints): Make correct the code for checking insn setting
25444         up backward equivalence.  Remove insn only if it is in the init
25445         insn list.
25446         * lra-eliminations.c (update_reg_eliminate): Change return value.
25447         (lra_eliminate): Use the result.
25449 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
25451         * config/i386/sse.md (ssescalarnummask): New mode attribute.
25452         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
25453         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
25454         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
25455         register target operands.
25456         (*vec_extractv8hi_sse2): New pattern.
25457         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
25458         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
25459         (*vec_extract<mode>_mem): New insn and split pattern.
25461 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
25463         * config/arm/arm.c (arm_asan_shadow_offset): New function.
25464         (TARGET_ASAN_SHADOW_OFFSET): Define.
25465         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
25466         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
25468 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25470         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
25471         (incr_vec_index): Return -1 if increment not found.
25472         (create_add_on_incoming_edge): Assert if increment not found.
25473         (record_increment): Limit number of increments recorded.
25474         (all_phi_incrs_profitable): Return false if an increment not found.
25475         (replace_profitable_candidates): Don't process increments that were
25476         not recorded.
25477         (analyze_candidates_and_replace): Limit size of incr_vec.
25479 2013-05-07  Richard Biener  <rguenther@suse.de>
25481         * calls.c (special_function_p): setjmp-like functions are leaf.
25482         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
25483         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
25485 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
25487         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
25488         (aarch64_simd_mov<mode>): New expander.
25489         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
25490         (aarch64_simd_mov_to_<mode>high): Likewise.
25491         (aarch64_simd_mov_from_<mode>low): Likewise.
25492         (aarch64_simd_mov_from_<mode>high): Likewise.
25493         (aarch64_dup_lane<mode>): Update.
25494         (aarch64_dup_lanedi): New instruction pattern.
25495         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
25496         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
25498 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25500         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
25501         (replace_mult_candidate): Remove unnecessary argument; remove
25502         unnecessary parameter from call to introduce_cast_before_cand.
25503         (replace_unconditional_candidate): Remove unnecessary parameter
25504         from call to replace_mult_candidate.
25505         (replace_conditional_candidate): Likewise.
25506         (insert_initializers): Use make_temp_ssa_name.
25507         (introduce_cast_before_cand): Remove unnecessary argument; use
25508         make_temp_ssa_name.
25509         (replace_one_candidate): Remove unnecessary argument; remove
25510         unnecessary parameter from calls to introduce_cast_before_cand.
25511         (replace_profitable_candidates): Remove unnecessary parameters
25512         from calls to replace_one_candidate.
25514 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25516         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
25517         phi def as possibly hiding a basis for a CAND_ADD whose operands
25518         have been commuted in the analysis.
25519         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
25521 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
25523         * config/aarch64/aarch64.md
25524         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
25525         shift value between 0-4.
25527 2013-05-07  Richard Biener  <rguenther@suse.de>
25529         * double-int.h (rshift): New overload.
25530         * double-int.c (rshift): New function.
25531         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
25532         (create_reference_ops_from_ref): Remove.
25533         (vn_reference_insert): Use shared ops for constructing the
25534         reference and copy it.
25536 2013-05-07  Richard Biener  <rguenther@suse.de>
25538         PR middle-end/57190
25539         * tree-eh.c (sink_clobbers): Properly propagate
25540         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
25542 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
25544         PR tree-optimization/57149
25545         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
25546         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
25547         collect_phi_def_edges, execute_late_warn_uninitialized): Use
25548         uninit_undefined_value_p instead of ssa_undefined_value_p.
25550         PR debug/57184
25551         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
25552         for modifier == EXPAND_INITIALIZER.
25554 2013-05-07  Anton Blanchard  <anton@samba.org>
25556         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
25557         for powerpc64 little endian.
25558         * configure: Regenerate.
25560 2013-05-06  Graham Stott  <grahams@btinternet.com>
25562         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
25563         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
25564         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
25565         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
25567 2013-05-06  Graham Stott  <grahams@btinternet.com>
25569         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
25570         codes which allow non-lvalues.
25572 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
25574         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
25575         components are all 1s.
25576         (integer_minus_onep): New function.
25577         * tree.h (integer_minus_onep): Declare it.
25578         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
25579         integer_minus_onep instead of integer_all_onesp.
25581 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25583         PR target/52933
25584         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
25585         variations of these patterns.
25587 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
25589         * config/i386/i386.md (isa): Add x64_sse4 member.
25590         (enabled): Handle x64_sse4.
25591         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
25592         instruction for 64bit SSE4_1 targets.  Update insn attributes.
25593         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
25594         instruction for SSE4_1 targets.  Update insn attributes.
25595         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25596         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
25597         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
25598         const_1 selector.
25599         (*vec_extractv4si): Rename from *sse4_1_pextrd.
25600         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
25601         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
25603 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25605         PR target/57108
25606         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
25608 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
25610         * final.c (do_assembler_dialects): Don't handle curly braces and
25611         vertical bar escaped by % as dialect delimiters.
25612         (output_asm_insn): Print curly braces and vertical bar if escaped
25613         by % and ASSEMBLER_DIALECT defined.
25614         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
25615         * doc/tm.texi: Regenerated.
25617 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
25619         * config/mips/mips.c: Include tree-pass.h.
25620         (mips_reorg): Split in pre- and post-dbr_schedule parts.
25621         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
25622         (pass_mips_machine_reorg2): New machine specific pass.
25623         (insert_pass_mips_machine_reorg2): New pass plugin definition.
25624         (mips_option_override): Register the new pass.
25625         * rtl.h (cleanup_barriers): Remove prototype.
25626         (dbr_schedule): Likewise.
25627         * jump.c (cleanup_barriers): Make static.
25628         * reorg.c (dbr_schedule): Likewise.
25630 2013-05-06  Richard Biener  <rguenther@suse.de>
25632         PR tree-optimization/57185
25633         * tree-parloops.c (add_field_for_reduction): Handle anonymous
25634         SSA names properly.
25636 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
25638         PR target/57106
25639         * config/i386/i386.c (add_parameter_dependencies): Add dependence
25640         between "first_arg" and "insn", not "last" and "insn".
25642 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25644         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
25645         (find_candidates_in_block): Re-enable slsr_process_phi.
25646         (create_phi_basis): Fix double counting of candidate adjustment.
25648 2013-05-06  Richard Biener  <rguenther@suse.de>
25650         PR middle-end/57147
25651         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
25652         the edge is also fallthru, preserve it and just clear the
25653         abnormal flag.
25654         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
25655         also complex, preserve that and just clear the fallthru flag.
25656         * tree-inline.c (update_ssa_across_abnormal_edges): Also
25657         update virtual operands.
25659 2013-05-06  Alan Modra  <amodra@gmail.com>
25661         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
25662         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
25663         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
25664         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
25665         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
25666         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
25668 2013-05-06  Alan Modra  <amodra@gmail.com>
25670         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
25671         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
25672         (DEFAULT_ASM_ENDIAN): Define.
25673         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
25674         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
25675         Update -K PIC clause from sysv4.h.
25676         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
25677         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
25679 2013-05-06  Alan Modra  <amodra@gmail.com>
25681         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
25682         twice for little-endian.
25683         (ashrdi3_no_power, ashrdi3): Support little-endian.
25685 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25687         PR target/55303
25688         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
25689         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
25690         related expanders.
25691         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
25692         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
25693         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
25694         New predicates.
25696 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
25697             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25699         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
25700         * config/pa/pa.opt: Make mbig-switch a no-op.
25701         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
25702         (CASE_VECTOR_MODE): Always return SImode.
25703         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
25704         for the !TARGET_BIG_SWITCH case.
25705         * config/pa/pa-linux.h: Likewise.
25706         * config/pa/pa-openbsd.h: Likewise.
25707         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
25708         * config/pa/pa.md (short_jump): Remove define_insn.
25709         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
25710         (casesi0): Remove define_insn.
25711         (type): Remove btable_branch.
25712         (pa_combine_type): Likewise.
25713         (in_nullified_branch_delay): Likewise.
25714         (in_call_delay): Likewise.
25715         (define_delay): Likewise.
25716         (define_insn_reservation "Z3"): Likewise.
25717         (define_insn_reservation "Z4"): Likewise.
25718         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
25719         (pa_adjust_insn_length): Remove adjustment for btable branches.
25720         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
25721         and mno-big-switch
25723 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
25725         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25726         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
25727         Add m->r,x alternatives.
25728         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
25729         splitters using SWI48x mode iterator.
25730         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
25731         TARGET_64BIT.  Add m->x alternative.
25732         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
25733         Add o->x alternative.  Enable for TARGET_SSE.
25734         (sse_storeq): Remove expander.
25735         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
25736         with memory input operand.
25737         (*vec_extractv2di_1 splitter): New.
25738         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
25739         * config/i386/i386.md (ssevecmodelower): New mode attribute.
25741 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
25743         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
25744         (INT_LOWPART): Delete.
25745         (extract_MB): Adjust.
25746         (extract_ME): Adjust.
25747         (print_operand): Adjust.
25749 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
25751         * config/rs6000/predicates.md (reg_or_add_cint_operand,
25752         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
25753         (reg_or_logical_cint_operand, easy_fp_constant,
25754         logical_const_operand): Delete "CONST_DOUBLE" case.
25755         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
25756         "HOST_BITS_PER_WIDE_INT == 64" test.
25757         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
25758         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
25759         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
25760         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
25761         test.
25762         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
25763         CONST_DOUBLE DImode/VOIDmode case.
25764         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
25765         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
25766         CONST_DOUBLE VOIDmode case.
25767         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
25768         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
25769         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
25770         Delete CONST_DOUBLE case.
25771         (splitters for mov FMOVE64 const_double): Delete
25772         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
25773         "HOST_BITS_PER_WIDE_INT >= 64" test.
25774         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
25775         case.
25776         (mov DI const_double): Delete.
25778 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
25780         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
25781         on op shows all bits zero in mode of a lowpart subreg, return zero.
25783 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
25785         PR target/57150
25786         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
25787         to save TFmode registers and DImode to save TImode registers for
25788         caller save operations.
25789         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
25790         mark being partially clobbered since they only use the first
25791         double word.
25793         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
25794         and TDmode only use the upper 64-bits of each VSX register.
25796 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25798         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
25799         (find_candidates_in_block): Disable slsr_process_phi.
25801 2013-05-03  Guozhi Wei  <carrot@google.com>
25803         * coverage.c (coverage_obj_init): Move the construction of gcov
25804         constructor to ...
25805         (build_init_ctor): ... here.
25807 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25809         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
25810         (slsr_cand_d): Redefine def_phi.
25811         (stride_status, phi_adjust_status, count_phis_status): New enums.
25812         (find_phi_def): New.
25813         (find_basis_for_base_expr): New.
25814         (find_basis_for_candidate): Handle hidden bases.
25815         (alloc_cand_and_find_basis): Handle phi candidates.
25816         (slsr_process_phi): New.
25817         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
25818         (create_mul_imm_cand): Likewise.
25819         (create_add_ssa_cand): Exclude phi base candidates.
25820         (create_add_imm_cand): Likewise.
25821         (slsr_process_cast): Likewise.
25822         (slsr_process_copy): Likewise.
25823         (find_candidates_in_block): Handle phi candidates.
25824         (dump_candidate): Likewise.
25825         (unconditional_cands): Delete.
25826         (unconditional_cands_with_known_stride_p): Delete.
25827         (phi_dependent_cand_p): New.
25828         (cand_increment): Handle phi-dependent candidates.
25829         (replace_dependent): Delete.
25830         (replace_mult_candidate): New.
25831         (replace_unconditional_candidate): New.
25832         (incr_vec_index): Move to avoid forward reference.
25833         (create_add_on_incoming_edge): New.
25834         (create_phi_basis): New.
25835         (replace_dependents): Delete.
25836         (replace_conditional_candidate): New.
25837         (phi_add_costs): New.
25838         (replace_uncond_cands_and_profitable_phis): New.
25839         (record_increment): Handle phi adjustments.
25840         (record_phi_increments): New.
25841         (record_increments): Handle phi adjustments.
25842         (phi_incr_cost): New.
25843         (lowest_cost_path): Handle phis.
25844         (total_savings): Likewise.
25845         (analyze_increments): Likewise.
25846         (ncd_with_phi): New.
25847         (ncd_of_cand_and_phis): New.
25848         (nearest_common_dominator_for_cands): Handle phi increments.
25849         (all_phi_incrs_profitable): New.
25850         (replace_profitable_candidates): Handle phi-dependent candidates.
25851         (analyze_candidates_and_replace): Likewise.
25853 2013-05-03  Teresa Johnson  <tejohnson@google.com>
25855         PR bootstrap/57154
25856         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
25857         do not exceed REG_BR_PROB_BASE.
25859 2013-05-03  Jeff Law  <law@redhat.com>
25861         PR tree-optimization/57144
25862         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
25863         operand of the condition will bit into the new type when eliminating
25864         a cast feeding a condition.
25866 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
25868         PR rtl-optimization/57130
25869         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
25870         of COMPARE as in_code to the recursive call if needed.
25872 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
25874         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
25875         (enabled): Handle new members.
25876         * config/i386/sse.md (*vec_concatv2si): Merge from
25877         *vec_concatv2si_sse2 and vec_concatv2si_sse.
25878         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
25880 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
25882         PR tree-optimization/57027
25883         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
25884         for fnms opportunity, check we got the prerequisite kind
25885         of tree / gimple before using accessor functions.
25887 2013-05-03  Richard Biener  <rguenther@suse.de>
25889         * double-int.h (lshift): New overload without precision
25890         and arith argument.
25891         (operator *=, operator +=, operator -=): Move ...
25892         * double-int.c (operator *=, operator +=, operator -=): ... here
25893         and implement more efficiently.
25894         (mul_double_with_sign): Remove.
25895         (lshift_double): Adjust to take unsinged shift argument, push
25896         dispatching code to callers.
25897         (mul_double_wide_with_sign): Add early out for callers that
25898         are not interested in high parts or overflow.
25899         (lshift): New function.
25900         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
25901         dispatch code here.
25902         (lrotate, rrotate): Use logical shifts.
25903         * expr.c (get_inner_reference): Use lshift.
25904         * fixed-value.c (do_fixed_divide): Likewise.
25905         * tree-dfa.c (get_ref_base_and_extent): Likewise.
25906         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25907         (indirect_refs_may_alias_p): Likewise.
25908         (stmt_kills_ref_p_1): Likewise.
25910 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
25912         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
25914 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
25916         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
25917         scalar form of FABD instruction.
25919 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
25921         * lra-constraints.c (process_alt_operands): Add checking alt
25922         number to choose the best alternative.
25924 2013-05-02  Richard Biener  <rguenther@suse.de>
25926         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
25927         bitmap and its handling.
25928         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
25930 2013-05-02  Richard Biener  <rguenther@suse.de>
25932         PR middle-end/57140
25933         * tree-inline.c (copy_loops): Properly handle removed loops.
25934         (copy_cfg_body): Mark destination loops for fixup if source
25935         loops needed fixup.
25937 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
25939         PR target/56732
25940         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
25941         generating simple_return for naked functions.
25943 2013-05-02  Martin Jambor  <mjambor@suse.cz>
25945         PR middle-end/56988
25946         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
25947         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
25948         flags match.
25949         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
25950         ipa_agg_replacement_value structures.
25951         (known_aggs_to_agg_replacement_list): Likewise.
25952         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
25953         (read_agg_replacement_chain): Likewise.
25954         (ipcp_transform_function): Also check that by_ref flags match.
25956 2013-05-02  Richard Biener  <rguenther@suse.de>
25958         * graphds.h (struct graph): Add obstack member.
25959         * graphds.c (new_graph): Initialize obstack and allocate
25960         vertices from it.
25961         (add_edge): Allocate edge from the obstack.
25962         (free_graph): Free the obstack instead of all edges and vertices.
25964 2013-05-02  Teresa Johnson  <tejohnson@google.com>
25966         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
25967         divides.
25968         * cfg.c (update_bb_profile_for_threading): Ditto.
25969         * tree-inline.c (copy_bb): Ditto.
25970         (copy_edges_for_bb): Ditto.
25971         (initialize_cfun): Ditto.
25972         (copy_cfg_body): Ditto.
25973         (expand_call_inline): Ditto.
25974         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
25975         (estimate_node_size_and_time): Ditto.
25976         (inline_merge_summary): Ditto.
25977         * cgraphclones.c (cgraph_clone_edge): Ditto.
25978         (cgraph_clone_node): Ditto.
25979         * sched-rgn.c (compute_dom_prob_ps): Ditto.
25980         (compute_trg_info): Ditto.
25982 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
25984         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
25985         S reg when fp attribute set.
25986         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
25988 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
25990         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
25991         New pattern.
25992         (*and_one_cmplsi3_compare0_uxtw): Likewise.
25993         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
25994         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
25996 2013-05-02  Richard Biener  <rguenther@suse.de>
25998         * tree-scalar-evolution.c (scev_info_hasher): Remove.
25999         (struct instantiate_cache_entry): New type.
26000         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
26001         (struct instantiate_cache_type): New type.
26002         (set_instantiated_value, get_instantiated_value): Remove.
26003         (get_instantiated_value_entry): New function.
26004         (instantiate_scev_name): Use the new cache and adjust.
26005         (instantiate_scev_poly): Adjust.
26006         (instantiate_scev_binary): Likewise.
26007         (instantiate_array_ref): Likewise.
26008         (instantiate_scev_convert): Likewise.
26009         (instantiate_scev_not): Likewise.
26010         (instantiate_scev_3): Likewise.
26011         (instantiate_scev_2): Likewise.
26012         (instantiate_scev_r): Likewise.
26013         (instantiate_scev): Likewise.
26014         (resolve_mixers): Likewise.
26016 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
26018         PR target/57091
26019         * lra-constraints.c (best_small_class_operands_num): Remove.
26020         (process_alt_operands): Remove small_class_operands_num.  Take
26021         small classes operands into losers and only if the operand is not
26022         matched.  Modify debugging output.
26023         (curr_insn_transform): Remove best_small_class_operands_num.
26024         Print insn name.
26026 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26028         * config/aarch64/aarch64-builtins.c
26029         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
26030         * config/aarch64/aarch64-simd-builtins.def
26031         (reduc_splus_): Add new modes.
26032         (reduc_uplus_): New.
26033         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
26034         (reduc_uplus_v4sf): Likewise.
26035         (reduc_splus_v4sf): Likewise.
26036         (aarch64_addv<mode>): Likewise.
26037         (reduc_uplus_<mode>): Likewise.
26038         (reduc_splus_<mode>): Likewise.
26039         (aarch64_addvv2di): Likewise.
26040         (reduc_uplus_v2di): Likewise.
26041         (reduc_splus_v2di): Likewise.
26042         (aarch64_addvv2si): Likewise.
26043         (reduc_uplus_v2si): Likewise.
26044         (reduc_splus_v2si): Likewise.
26045         (reduc_<sur>plus_<mode>): New.
26046         (reduc_<sur>plus_v2di): Likewise.
26047         (reduc_<sur>plus_v2si): Likewise.
26048         (reduc_<sur>plus_v4sf): Likewise.
26049         (aarch64_addpv4sf): Likewise.
26050         * config/aarch64/arm_neon.h
26051         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
26052         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
26053         add UNSPEC_SADDV, UNSPEC_UADDV.
26054         (SUADDV): New.
26055         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
26057 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26059         * config/aarch64/arm_neon.h
26060         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
26062 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26064         * config/aarch64/aarch64-builtins
26065         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
26067 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26069         * config/aarch64/aarch64-simd-builtins.def
26070         (reduc_smax_): New.
26071         (reduc_smin_): Likewise.
26072         (reduc_umax_): Likewise.
26073         (reduc_umin_): Likewise.
26074         (reduc_smax_nan_): Likewise.
26075         (reduc_smin_nan_): Likewise.
26076         (fmax): Remove.
26077         (fmin): Likewise.
26078         (smax): Update for V2SF, V4SF and V2DF modes.
26079         (smin): Likewise.
26080         (smax_nan): New.
26081         (smin_nan): Likewise.
26082         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
26083         (<su><maxmin><mode>3): ...This, refactor.
26084         (s<maxmin><mode>3): New.
26085         (<maxmin_uns><mode>3): Likewise.
26086         (reduc_<maxmin_uns>_<mode>): Refactor.
26087         (reduc_<maxmin_uns>_v4sf): Likewise.
26088         (reduc_<maxmin_uns>_v2si): Likewise.
26089         (aarch64_<fmaxmin><mode>: Remove.
26090         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
26091         new builtin names.
26092         (vmin<q>_f<32,64>): Likewise.
26093         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
26094         (FMAXMIN): New.
26095         (su): Add mappings for smax, smin, umax, umin.
26096         (maxmin): New.
26097         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
26098         (FMAXMIN): Rename as...
26099         (FMAXMIN_UNS): ...This.
26100         (maxminv): Remove.
26101         (fmaxminv): Likewise.
26102         (fmaxmin): Likewise.
26103         (maxmin_uns): New.
26104         (maxmin_uns_op): Likewise.
26106 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26108         * config/aarch64/arm_neon.h
26109         (vac<ge, gt><sd>_f<32, 64>): Rename to...
26110         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
26111         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
26113 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26115         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
26116         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
26118 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26120         * config/aarch64/aarch64-simd.md
26121         (vcond<mode>_internal): Handle special cases for constant masks.
26122         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
26123         (vcondu<mode><mode>): Likewise.
26124         (vcond<v_cmp_result><mode>): New.
26126 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26128         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
26129         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
26130         * config/aarch64/aarch64-simd-builtins.def
26131         (cmeq): Update to BUILTIN_VALLDI.
26132         (cmgt): Likewise.
26133         (cmge): Likewise.
26134         (cmle): Likewise.
26135         (cmlt): Likewise.
26136         * config/aarch64/arm_neon.h
26137         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
26138         to builtins or C as appropriate.
26140 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26142         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
26143         (cmgeu): ...This.
26144         (cmhi): Rename to...
26145         (cmgtu): ...This.
26146         * config/aarch64/aarch64-simd.md
26147         (simd_mode): Add SF.
26148         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
26149         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
26150         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
26151         (cstore<mode>_neg): ...This.
26152         * config/aarch64/iterators.md
26153         (VALLF): new.
26154         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
26155         (COMPARISONS): New.
26156         (UCOMPARISONS): Likewise.
26157         (optab): Add missing comparisons.
26158         (n_optab): New.
26159         (cmp_1): Likewise.
26160         (cmp_2): Likewise.
26161         (CMP): Likewise.
26162         (cmp): Remove.
26163         (VCMP_S): Likewise.
26164         (VCMP_U): Likewise.
26165         (V_cmp_result): Add DF, SF modes.
26166         (v_cmp_result): Likewise.
26167         (v): Likewise.
26168         (vmtype): Likewise.
26169         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
26171 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
26173         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
26174         define_insn to define_insn_and_split.
26175         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
26176         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
26177         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
26178         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
26179         (thumb2_negscc): Likewise.
26181 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
26183         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
26185 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
26187         * config/arm/thumb2.md: Remove trailing whitespaces.
26189 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26191         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
26192         Use gen_int_mode rather than GEN_INT.
26194 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
26196         * value-prof.c (stream_in_histogram_value): Remove the strayed
26197         debug_gimple_stmt.
26199 2013-04-30  Richard Biener  <rguenther@suse.de>
26201         PR middle-end/57122
26202         * cfghooks.c (split_edge): Properly check for the loop latch edge.
26204 2013-04-30  Richard Biener  <rguenther@suse.de>
26206         PR middle-end/57107
26207         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
26209 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
26211         PR rtl-optimization/56957
26212         PR rtl-optimization/57105
26213         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
26214         variable.  Use just INSN_UID for determining whether an insn
26215         should be only disconnected from the insn stream.
26216         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
26218 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
26220         PR tree-optimization/57104
26221         * tsan.c (instrument_expr): Don't instrument accesses to
26222         DECL_HARD_REGISTER VAR_DECLs.
26224 2013-04-30  Richard Biener  <rguenther@suse.de>
26226         * function.h (loops_for_fn): New inline function.
26227         (set_loops_for_fn): Likewise.
26228         * cfgloop.h (place_new_loop): Add struct function parameter.
26229         (get_loop): Likewise.
26230         (get_loops): Likewise.
26231         (number_of_loops): Likewise.
26232         (fel_next): Adjust.
26233         (fel_init): Likewise.
26234         * cfg.c (get_loop_copy): Adjust.
26235         * cfgloop.c (flow_loops_dump): Likewise.
26236         (record_loop_exits): Likewise.
26237         (verify_loop_structure): Likewise.
26238         * cfgloopanal.c (mark_irreducible_loops): Likewise.
26239         (estimate_reg_pressure_cost): Likewise.
26240         (mark_loop_exit_edges): Likewise.
26241         * cfgloopmanip.c (place_new_loop): Likewise.
26242         (add_loop): Likewise.
26243         (duplicate_loop): Likewise.
26244         * graph.c (draw_cfg_nodes): Likewise.
26245         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
26246         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
26247         (extract_affine_chrec): Likewise.
26248         (build_scop_iteration_domain): Likewise.
26249         * graphite.c (graphite_initialize): Likewise.
26250         * ira-build.c (create_loop_tree_nodes): Likewise.
26251         (more_one_region_p): Likewise.
26252         (rebuild_regno_allocno_maps): Likewise.
26253         (mark_loops_for_removal): Likewise.
26254         (mark_all_loops_for_removal): Likewise.
26255         (remove_unnecessary_regions): Likewise.
26256         (ira_build): Likewise.
26257         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
26258         * loop-init.c (fix_loop_structure): Likewise.
26259         (gate_rtl_move_loop_invariants): Likewise.
26260         (gate_rtl_unswitch): Likewise.
26261         (gate_rtl_unroll_and_peel_loops): Likewise.
26262         (rtl_doloop): Likewise.
26263         * lto-streamer-in.c (input_cfg): Likewise.
26264         * lto-streamer-out.c (output_cfg): Likewise.
26265         * modulo-sched.c (sms_schedule): Likewise.
26266         * predict.c (tree_estimate_probability): Likewise.
26267         (tree_estimate_probability_driver): Likewise.
26268         (estimate_loops): Likewise.
26269         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
26270         (move_sese_region_to_fn): Likewise.
26271         (debug_loop_num): Likewise.
26272         * tree-chrec.c (chrec_evaluate): Likewise.
26273         (hide_evolution_in_other_loops_than_loop): Likewise.
26274         (chrec_component_in_loop_num): Likewise.
26275         (reset_evolution_in_loop): Likewise.
26276         (evolution_function_is_invariant_rec_p): Likewise.
26277         * tree-if-conv.c (main_tree_if_conversion): Likewise.
26278         * tree-inline.c (copy_loops): Likewise.
26279         (copy_cfg_body): Likewise.
26280         (tree_function_versioning): Likewise.
26281         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
26282         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
26283         Likewise.
26284         (add_to_evolution_1): Likewise.
26285         (scev_const_prop): Likewise.
26286         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
26287         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
26288         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
26289         (tree_ssa_lim_initialize): Likewise.
26290         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
26291         (verify_loop_closed_ssa): Likewise.
26292         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
26293         (tree_ssa_loop_im): Likewise.
26294         (tree_ssa_loop_unswitch): Likewise.
26295         (tree_vectorize): Likewise.
26296         (check_data_deps): Likewise.
26297         (tree_ssa_loop_ivcanon): Likewise.
26298         (tree_ssa_loop_bounds): Likewise.
26299         (tree_complete_unroll): Likewise.
26300         (tree_complete_unroll_inner): Likewise.
26301         (tree_parallelize_loops): Likewise.
26302         (tree_ssa_loop_prefetch): Likewise.
26303         (tree_ssa_loop_ivopts): Likewise.
26304         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
26305         * tree-vectorizer.c (vectorize_loops): Likewise.
26307 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
26309         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
26310         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
26311         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
26312         with EABI_LINK_SPEC.
26314 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
26316         PR target/44578
26317         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
26318         alternative.
26320 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
26322         PR target/57097
26323         * lra-constraints.c (process_alt_operands): Discourage a bit more
26324         using memory for pseudos.  Print cost dump for alternatives.
26325         Modify cost values for conflicts with early clobbers.
26326         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
26328 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
26330         PR target/57098
26331         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
26333 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
26335         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
26336         from/to S register.
26337         (movdi_aarch64): Support LDR/STR from/to D register.
26339 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
26341         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
26342         or higher by default.
26344 2013-04-29  Richard Biener  <rguenther@suse.de>
26346         PR middle-end/57075
26347         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
26348         even if not adding abnormal edges for calls that can make
26349         abnormal gotos.
26351 2013-04-29  Richard Biener  <rguenther@suse.de>
26353         PR middle-end/57103
26354         * tree-cfg.c (move_stmt_op): Fix condition under which to update
26355         TREE_BLOCK.
26356         (move_stmt_r): Remove redundant checking.
26358 2013-04-29  Teresa Johnson  <tejohnson@google.com>
26360         PR bootstrap/57077
26361         * basic-block.h (apply_scale): New function.
26362         (apply_probability): Use apply_scale.
26363         * gimple-streamer-in.c (input_bb): Ditto.
26364         * lto-streamer-in.c (input_cfg): Ditto.
26365         * lto-cgraph.c (merge_profile_summaries): Ditto.
26366         * tree-optimize.c (execute_fixup_cfg): Ditto.
26367         * tree-inline.c (copy_bb): Update comment to use apply_scale.
26368         (copy_edges_for_bb): Ditto.
26369         (copy_cfg_body): Ditto.
26371 2013-04-29  Tom de Vries  <tom@codesourcery.com>
26373         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
26374         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
26375         (tail_merge_optimize): Handle current_loops == NULL.
26377 2013-04-26  Jeff Law  <law@redhat.com>
26379         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
26380         (simplify_cond_using_ranges): Generalize code to simplify
26381         COND_EXPRs where one argument is a constant and the other
26382         is an SSA_NAME created by an integral type conversion.
26384 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26386         * config/arm/arm.md (store_minmaxsi): Use only when
26387         optimize_insn_for_size_p.
26389 2013-04-29  Christian Bruel  <christian.bruel@st.com>
26391         PR target/57108
26392         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
26394 2013-04-29  Richard Biener  <rguenther@suse.de>
26396         PR middle-end/57089
26397         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
26398         loop tree make sure to schedule a fixup for the child as well.
26399         (expand_omp_for_generic): Properly add loops.
26400         (expand_omp_for_static_nochunk): Likewise.
26401         (expand_omp_for_static_chunk): Likewise.
26402         (expand_omp_for): For the degenerate case fixup loops.
26403         (expand_omp_sections): Fix default bb placement in loops.
26404         (expand_omp_atomic_pipeline): Properly add loops.
26406 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26408         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
26410 2013-04-29  Tom de Vries  <tom@codesourcery.com>
26412         * tree-ssa-tail-merge.c: Update header comment.
26414 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26416         * config/aarch64/arm_neon.h
26417         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
26418         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
26419         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
26420         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
26421         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
26422         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
26423         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
26424         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
26426 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26428         * config/aarch64/aarch64-simd.md
26429         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
26430         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
26431         fix_trunc, fixuns_trunc.
26432         (ftrunc<VDQF:mode>2): New.
26433         * config/aarch64/iterators.md (optab): Add fix, fixuns.
26434         (fix_trunc_optab): New.
26436 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26438         * config/aarch64/aarch64-builtins.c
26439         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
26440         iceilf, lround, iroundf.
26442 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
26444         PR target/54349
26445         * config/i386/i386.h (enum ix86_tune_indices)
26446         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
26447         New, split from X86_TUNE_INTER_UNIT_MOVES.
26448         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
26449         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
26450         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
26451         (TARGET_INTER_UNIT_MOVES): Remove.
26452         * config/i386/i386.c (initial_ix86_tune_features): Update.
26453         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
26454         (ix86_expand_convert_uns_didf_sse): Use
26455         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26456         (ix86_expand_vector_init_one_nonzero): Ditto.
26457         (ix86_expand_vector_init_interleave): Ditto.
26458         (inline_secondary_memory_needed): Return true for moves from SSE class
26459         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
26460         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
26461         * config/i386/constraints.md (Yi, Ym): Depend on
26462         TARGET_INTER_UNIT_MOVES_TO_VEC.
26463         (Yj, Yn): New constraints.
26464         * config/i386/i386.md (*movdi_internal): Change constraints of
26465         operand 1 from Yi to Yj and from Ym to Yn.
26466         (*movsi_internal): Ditto.
26467         (*movdf_internal): Ditto.
26468         (*movsf_internal): Ditto.
26469         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
26470         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26471         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
26472         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
26473         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
26474         * config/i386/sse.md (movdi_to_sse): Ditto.
26475         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
26476         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
26477         TARGET_INTER_UNIT_MOVES.
26478         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
26479         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
26480         instead of TARGET_INTER_UNIT_MOVES.
26481         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
26482         operand 1 from Yi to Yj and from Ym to Yn.
26484 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26486         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
26487         (float_truncate_hi_): Likewise.
26488         (float_extend_lo_): Likewise.
26489         (float_truncate_lo_): Likewise.
26490         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
26491         (aarch64_float_extend_lo_v2df): Likewise.
26492         (vec_unpacks_hi_v4sf): Likewise.
26493         (aarch64_float_truncate_lo_v2sf): Likewise.
26494         (aarch64_float_truncate_hi_v4sf): Likewise.
26495         (vec_pack_trunc_v2df): Likewise.
26496         (vec_pack_trunc_df): Likewise.
26498 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26500         * config/aarch64/aarch64-builtins.c
26501         (aarch64_fold_builtin): Fold float conversions.
26502         * config/aarch64/aarch64-simd-builtins.def
26503         (floatv2si, floatv4si, floatv2di): New.
26504         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
26505         * config/aarch64/aarch64-simd.md
26506         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
26507         * config/aarch64/iterators.md (FLOATUORS): New.
26508         (optab): Add float, floatuns.
26509         (su_optab): Likewise.
26511 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26513         * config/aarch64/aarch64-builtins.c
26514         (aarch64_builtin_vectorized_function): Use new names for
26515         fcvt builtins.
26516         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
26517         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
26518         (fcvtzu): Split as...
26519         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
26520         (fcvtas): Split as...
26521         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
26522         (fcvtau): Split as...
26523         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
26524         (fcvtps): Split as...
26525         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
26526         (fcvtpu): Split as...
26527         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
26528         (fcvtms): Split as...
26529         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
26530         (fcvtmu): Split as...
26531         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
26532         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
26533         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
26534         (lfrintnusf, lfrintnudf): Likewise.
26535         * config/aarch64/aarch64-simd.md
26536         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
26537         define_insn.
26538         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
26539         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
26540         (fcvt_pattern): Likewise.
26542 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26544         * config/aarch64/aarch64-simd.md
26545         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
26546         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
26548 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26550         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
26551         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
26552         (vrnd<a,m,n,p>_f32): Implement using builtins.
26553         (vrnd<i,x><q>_f<32, 64>): New.
26555 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26557         * config/aarch64/aarch64-builtins.c
26558         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
26559         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
26560         (frintz): Rename to...
26561         (btrunc): ...this.
26562         (frintp): Rename to...
26563         (ceil): ...this.
26564         (frintm): Rename to...
26565         (floor): ...this.
26566         (frinti): Rename to...
26567         (nearbyint): ...this.
26568         (frintx): Rename to...
26569         (rint): ...this.
26570         (frinta): Rename to...
26571         (round): ...this.
26572         * config/aarch64/aarch64-simd.md
26573         (aarch64_frint<frint_suffix><mode>): Delete.
26574         (<frint_pattern><mode>2): Convert to insn.
26575         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
26576         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
26577         (frint_pattern): Likewise.
26578         (frint_suffix): Likewise.
26580 2013-04-29  Richard Biener  <rguenther@suse.de>
26582         PR tree-optimization/57081
26583         * loop-init.c: Include tree-flow.h.
26584         (loop_optimizer_finalize): Free number of iteration estimates.
26585         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
26587 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
26589         PR tree-optimization/57083
26590         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
26591         non-singleton shift count range, zero extend low_bound for uns case.
26593         * config/i386/predicates.md (general_vector_operand): New predicate.
26594         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
26595         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
26596         if they aren't nonimmediate operands.  If their original values
26597         satisfy const_vector_equal_evenodd_p, don't shift them.
26598         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
26599         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
26600         if not nonimmediate_operand.
26601         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
26602         instead of register_operand.
26603         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
26605 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
26607         * stor-layout.c (finalize_size_functions): Allocate a structure and
26608         reset cfun before dumping the functions.
26610 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
26612         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
26614         PR target/56866
26615         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
26616         use xop_pmacsdqh if uns_p.
26617         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
26618         the immediate rotate count.
26620 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
26622         * rtl.h (struct rtx_def): Add comment for field jump.
26623         (LRA_SUBREG_P): New macro.
26624         * recog.c (register_operand): Check LRA_SUBREG_P.
26625         * lra.c (lra): Add note at the end of RTL code. Align non-empty
26626         stack frame.
26627         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
26628         (lra_final_code_change): Skip subreg change for operators.
26629         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
26630         if there are no operand changes.
26631         * lra-constraints.c (curr_insn_set): New.
26632         (match_reload): Set LRA_SUBREG_P.
26633         (emit_spill_move): Ditto.
26634         (check_and_process_move): Use curr_insn_set. Process only single
26635         set insns.  Don't initialize sec_mem_p and change_p.
26636         (simplify_operand_subreg): Use LRA_SUBREG_P.
26637         (reg_in_class_p): New function.
26638         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
26639         of #ifdef.  Add code to remove cycling.
26640         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
26641         non-null disp.  Reload inner instead of disp when base and index
26642         are null.  Try to put lo_sum into register.
26643         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
26644         (check_and_process_move): Move code for move cost check to
26645         simple_move_p.  Remove equiv_substitution.
26646         (simple_move_p): New function.
26647         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
26648         curr_insn_set.  Call check_and_process_move only for single set
26649         insns.  Use the new function.  Move call of check_and_process_move
26650         after operand equiv substitution and address process.
26652 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
26654         PR go/57045
26655         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
26656         with nonlocal goto receivers or returns twice calls, ignore
26657         unininitialized values from abnormal edges to nl goto receiver
26658         or returns twice call.
26660 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
26662         PR tree-optimization/57051
26663         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
26664         and VEC_RSHIFT_EXPR if shift count is a multiple of element
26665         bitsize.
26667 2013-04-26  Richard Biener  <rguenther@suse.de>
26669         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
26670         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
26671         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
26672         (fixup_loop_arrays_after_move): New function.
26673         (move_sese_region_to_fn): Properly outline the loop tree parts
26674         of the SESE region.
26676 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
26678         * config/i386/i386.md (type, unit): Fix long lines.
26680 2013-04-26  Richard Biener  <rguenther@suse.de>
26682         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
26683         (lto-streamer-out.o): Likewise.
26684         * cfgloop.c (init_loops_structure): Export, add struct function
26685         argument and adjust.
26686         (flow_loops_find): Adjust.
26687         * cfgloop.h (enum loop_estimation): Add EST_LAST.
26688         (init_loops_structure): Declare.
26689         * lto-streamer-in.c: Include cfgloop.h.
26690         (input_cfg): Input the loop tree.
26691         * lto-streamer-out.c: Include cfgloop.h.
26692         (output_cfg): Output the loop tree.
26693         (output_struct_function_base): Do not drop PROP_loops.
26695 2013-03-26  Richard Biener  <rguenther@suse.de>
26697         * tree-cfg.c (execute_build_cfg): Build the loop tree.
26698         (pass_build_cfg): Provide PROP_loops.
26699         (move_sese_region_to_fn): Remove loops that are outlined into fn
26700         for now.
26701         * tree-inline.c: Include cfgloop.h.
26702         (initialize_cfun): Do not drop PROP_loops.
26703         (copy_loops): New function.
26704         (copy_cfg_body): Copy loop structure.
26705         (tree_function_versioning): Initialize destination loop tree.
26706         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
26707         (pass_parallelize_loops): Do IL verification.
26708         * loop-init.c (loop_optimizer_init): Fixup loops if required.
26709         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
26710         the CFG make sure we fixup loops as well.
26711         * tree-ssa-tail-merge.c: Include cfgloop.h.
26712         (replace_block_by): When merging loop latches mark loops for fixup.
26713         * lto-streamer-out.c (output_struct_function_base): Drop
26714         PROP_loops for now.
26715         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
26716         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
26717         * ipa-split.c: Include cfgloop.h.
26718         (split_function): Add the new return block to the loop tree root.
26719         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
26720         whether we have removed the forwarder block.
26721         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
26722         * cfgloop.h (place_new_loop): Declare.
26723         * cfgloopmanip.c (place_new_loop): Export.
26724         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
26725         (tree-switch-conversion.o): Likewise.
26726         (tree-complex.o): Likewise.
26727         (tree-inline.o): Likewise.
26728         (tree-ssa-tailmerge.o): Likewise.
26729         (ipa-split.o): Likewise.
26730         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
26731         (tree-ssa-copy.o): Likewise.
26732         * tree-switch-conversion.c: Include cfgloop.h
26733         (process_switch): If we emit a bit-test cascade, schedule loops
26734         for fixup.
26735         * tree-complex.c: Include cfgloop.h.
26736         (expand_complex_div_wide): Properly add new basic-blocks to loops.
26737         * asan.c: Include cfgloop.h.
26738         (create_cond_insert_point): Properly add new basic-blocks to
26739         loops, schedule loop fixup.
26740         * cfgloop.c (verify_loop_structure): Check that looks are not
26741         marked for fixup.
26742         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
26743         to loops.
26744         (expand_omp_for_generic): Likewise.
26745         (expand_omp_sections): Likewise.
26746         (expand_omp_atomic_pipeline): Schedule loops for fixup.
26747         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
26748         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
26749         is initialized, not when loops are present.
26750         * tree-parloops.c (parallelize_loops): Remove checking here.
26751         * passes.c (init_optimization_passes): Schedule a copy-propagation
26752         pass before complete unrolling of inner loops.
26754 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
26756         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
26757         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
26758         (colorize_init): Add argument to _WIN32 version.
26759         * toplev.c: Include diagnostic-color.h.
26760         (process_options): Default to -fdiagnostics-color=auto if
26761         GCC_COLORS env var is in the environment.
26762         * common.opt (fdiagnostics-color=): Add Var and Init.
26763         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
26764         env var is in the environment, the default is auto rather than never.
26766         * diagnostic.h (file_name_as_prefix): Add context argument.
26767         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
26768         the string as locus.
26769         * langhooks.c (lhd_print_error_function): Adjust caller.
26771 2013-04-25  Lawrence Crowl  <crowl@google.com>
26773         * var-tracking.c (shared_hash_def::htab):
26774         Change type to hash_table.  Update dependent calls and types.
26776 2013-04-25  Lawrence Crowl  <crowl@google.com>
26778         * Makefile.in: Update as needed below.
26780         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
26781         Move declaration to after the type's method definitons.
26783         * attribs.c (htab_t scoped_attributes::attribute_hash):
26784         Change type to hash_table.  Update dependent calls and types.
26786         * bitmap.c (htab_t bitmap_desc_hash):
26787         Change type to hash_table.  Update dependent calls and types.
26789         * cselib.c (htab_t cselib_hash_table):
26790         Change type to hash_table.  Update dependent calls and types.
26792         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
26793         (hash_string_slot_node): Move implementation into lto-streamer.h
26794         struct string_slot_hasher.
26795         (eq_string_slot_node): Likewise.
26797         * data-streamer-out.c: Update output_block::string_hash_table
26798         dependent calls and types.
26800         * dwarf2cfi.c (htab_t trace_index):
26801         Change type to hash_table.  Update dependent calls and types.
26803         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
26804         Change type to hash_table.  Update dependent calls and types.
26805         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
26806         (htab_t optimize_external_refs::map): Likewise.
26807         (htab_t output_comp_unit::extern_map): Likewise.
26808         (htab_t output_comdat_type_unit::extern_map): Likewise.
26809         (htab_t output_macinfo::macinfo_htab): Likewise.
26810         (htab_t optimize_location_lists::htab): Likewise.
26811         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
26813         * except.c (htab_t ehspec_hash_type):
26814         Change type to hash_table.  Update dependent calls and types.
26815         (assign_filter_values::ttypes): Likewise.
26816         (assign_filter_values::ehspec): Likewise.
26817         (sjlj_assign_call_site_values::ar_hash): Likewise.
26818         (convert_to_eh_region_ranges::ar_hash): Likewise.
26820         * gcse.c (htab_t pre_ldst_table):
26821         Change type to hash_table.  Update dependent calls and types.
26823         * ggc-common.c (htab_t saving_htab):
26824         Change type to hash_table.  Update dependent calls and types.
26825         (htab_t loc_hash): Likewise.
26826         (htab_t ptr_hash): Likewise.
26827         (call_count): Rename ggc_call_count.
26828         (call_alloc): Rename ggc_call_alloc.
26829         (loc_descriptor): Rename make_loc_descriptor.
26830         (add_statistics): Rename ggc_add_statistics.
26832         * ggc-common.c (saving_htab):
26833         Change type to hash_table.  Update dependent calls and types.
26835         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
26836         (push_gimplify_context): Likewise.
26837         (pop_gimplify_context): Likewise.
26838         (struct gimple_temp_hash_elt): Added.
26839         (struct gimplify_hasher): Likewise.
26840         (struct gimplify_ctx.temp_htab):
26841         Change type to hash_table.  Update dependent calls and types.
26843         * gimple-fold.c: Include gimplify-ctx.h.
26845         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
26846         Change type to hash_table.  Update dependent calls and types.
26847         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
26848         avoid potential global name collision.
26850         * gimplify.c: Include gimplify-ctx.h.
26851         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
26852         (htab_t gimplify_ctx::temp_htab):
26853         Update dependent calls and types for new type hash_table.
26854         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
26855         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
26857         * gimplify-ctx.h: New.
26858         (struct gimple_temp_hash_elt): Move from gimplify.c.
26859         (class gimplify_hasher): New.
26860         (struct gimplify_ctx): Move from gimple.h.
26861         (htab_t gimplify_ctx::temp_htab):
26862         Change type to hash_table.  Update dependent calls and types.
26864         * graphite-clast-to-gimple.c: Include graphite-htab.h.
26865         (htab_t ivs_params::newivs_index):
26866         Change type to hash_table.  Update dependent calls and types.
26867         (htab_t ivs_params::params_index): Likewise.
26868         (htab_t print_generated_program::params_index): Likewise.
26869         (htab_t gloog::newivs_index): Likewise.
26870         (htab_t gloog::params_index): Likewise.
26872         * graphite.c: Include graphite-htab.h.
26873         4htab_t graphite_transform_loops::bb_pbb_mapping):
26874         Change type to hash_table.  Update dependent calls and types.
26876         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
26877         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
26878         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
26880         * graphite-dependences.c: Include graphite-htab.h.
26881         (loop_is_parallel_p): Change hash table type of parameter.
26883         * graphite-htab.h: New.
26884         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
26885         (extern find_pbb_via_hash): Move from graphite-poly.h.
26886         (extern loop_is_parallel_p): Move from graphite-poly.h.
26887         (extern get_loop_body_pbbs): Move from graphite-poly.h.
26889         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
26890         (extern loop_is_parallel_p): Move to graphite-htab.h.
26891         (extern get_loop_body_pbbs): Move to graphite-htab.h.
26893         * haifa-sched.c (htab_t delay_htab):
26894         Change type to hash_table.  Update dependent calls and types.
26895         (htab_t delay_htab_i2): Likewise.
26897         * ira-color.c (htab_t allocno_hard_regs_htab):
26898         Change type to hash_table.  Update dependent calls and types.
26900         * ira-costs.c (htab_t cost_classes_htab):
26901         Change type to hash_table.  Update dependent calls and types.
26903         * loop-invariant.c (htab_t merge_identical_invariants::eq):
26904         Change type to hash_table.  Update dependent calls and types.
26906         * loop-iv.c (htab_t bivs):
26907         Change type to hash_table.  Update dependent calls and types.
26909         * loop-unroll.c (htab_t opt_info::insns_to_split):
26910         Change type to hash_table.  Update dependent calls and types.
26911         (htab_t opt_info::insns_with_var_to_expand): Likewise.
26913         * lto-streamer.h (struct string_slot): Move from data-streamer.h
26914         (struct string_slot_hasher): New.
26915         (htab_t output_block::string_hash_table):
26916         Change type to hash_table.  Update dependent calls and types.
26918         * lto-streamer-in.c (freeing_string_slot_hasher): New.
26919         (htab_t file_name_hash_table):
26920         Change type to hash_table.  Update dependent calls and types.
26922         * lto-streamer-out.c: Update output_block::string_hash_table dependent
26923         calls and types.
26925         * lto-streamer.c (htab_t tree_htab):
26926         Change type to hash_table.  Update dependent calls and types.
26928         * omp-low.c: Include gimplify-ctx.h.
26930         * passes.c (htab_t name_to_pass_map):
26931         Change type to hash_table.  Update dependent calls and types.
26932         (pass_traverse): Rename to passes_pass_traverse.
26934         * plugin.c (htab_t event_tab):
26935         Change type to hash_table.  Update dependent calls and types.
26937         * postreload-gcse.c (htab_t expr_table):
26938         Change type to hash_table.  Update dependent calls and types.
26939         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
26941         * sese.c (debug_rename_map_1): Make extern.
26942         (htab_t copy_bb_and_scalar_dependences::rename_map):
26943         Change type to hash_table.  Update dependent calls and types.
26945         * sese.h (extern debug_rename_map): Move to .c file.
26947         * store-motion.c (htab_t store_motion_mems_table):
26948         Change type to hash_table.  Update dependent calls and types.
26950         * trans-mem.c (htab_t tm_new_mem_hash):
26951         Change type to hash_table.  Update dependent calls and types.
26953         * tree-browser.c (htab_t TB_up_ht):
26954         Change type to hash_table.  Update dependent calls and types.
26956         * tree-cfg.c (htab_t discriminator_per_locus):
26957         Change type to hash_table.  Update dependent calls and types.
26959         * tree-complex.c: Include tree-hasher.h
26960         (htab_t complex_variable_components):
26961         Change type to hash_table.  Update dependent calls and types.
26963         * tree-eh.c (htab_t finally_tree):
26964         Change type to hash_table.  Update dependent calls and types.
26966         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
26967         struct int_tree_hasher.
26968         (extern int_tree_map_eq): Likewise.
26969         (uid_decl_map_hash): Removed.
26970         (extern decl_tree_map_eq): Likewise.
26972         * tree-hasher.h: New.
26973         (struct int_tree_hasher): New.
26974         (typedef int_tree_htab_type): New.
26976         * tree-inline.c: Include gimplify-ctx.h.
26978         * tree-mudflap.c: Include gimplify-ctx.h.
26980         * tree-parloops.c: Include tree-hasher.h.
26981         (htab_t eliminate_local_variables_stmt::decl_address):
26982         Change type to hash_table.  Update dependent calls and types.
26983         (htab_t separate_decls_in_region::decl_copies): Likewise.
26985         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
26986         Change type to hash_table.  Update dependent calls and types.
26988         * tree-sra.c (candidates):
26989         Change type to hash_table.  Update dependent calls and types.
26991         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
26992         in tree-flow.h.
26993         (int_tree_map_hash): Likewise.
26995         * tree-ssa-dom.c (htab_t avail_exprs):
26996         Change type to hash_table.  Update dependent calls and types.
26998         * tree-ssa-live.c (var_map_base_init::tree_to_index):
26999         Change type to hash_table.  Update dependent calls and types.
27001         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
27002         Change type to hash_table.  Update dependent calls and types.
27004         * tree-ssa-phiopt.c (seen_ssa_names):
27005         Change type to hash_table.  Update dependent calls and types.
27007         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
27008         Change type to hash_table.  Update dependent calls and types.
27010         * tree-ssa-uncprop.c (equiv):
27011         Change type to hash_table.  Update dependent calls and types.
27013 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
27015         PR rtl-optimization/57003
27016         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
27017         call note_stores with kill_clobbered_value callback again after
27018         killing regs_invalidated_by_call.
27020 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27022         * config/aarch64/aarch64-simd.md
27023         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
27024         (aarch64_simd_bsl<mode>): Likewise.
27025         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
27027 2013-04-25  Marek Polacek  <polacek@redhat.com>
27029         PR tree-optimization/57066
27030         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
27032 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27034         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
27036 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27038         * config/aarch64/aarch64-builtins.c
27039         (aarch64_fold_builtin): New.
27040         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
27041         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
27042         * config/aarch64/aarch64-simd-builtins.def (abs): New.
27043         * config/aarch64/arm_neon.h
27044         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
27046 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27047             Tejas Belagod  <tejas.belagod@arm.com>
27049         * config/aarch64/aarch64-builtins.c
27050         (aarch64_gimple_fold_builtin): New.
27051         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
27052         * config/aarch64/aarch64-simd-builtins.def (addv): New.
27053         * config/aarch64/aarch64-simd.md (addpv4sf): New.
27054         (addvv4sf): Update.
27055         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
27057 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27059         * config/aarch64/aarch64.md
27060         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
27062 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27064         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
27065         (*ngcsi_uxtw): New pattern.
27067 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27068             Julian Brown  <julian@codesourcery.com>
27070         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
27071         (TB_DREG): Add T_V4HF.
27072         (v4hf_UP): New macro.
27073         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27074         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27075         Handle initialisation of V4HF. Adjust initialisation of reinterpret
27076         built-ins.
27077         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27078         (arm_vector_mode_supported_p): Handle V4HF.
27079         (arm_mangle_map): Handle V4HFmode.
27080         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
27081         * config/arm/arm_neon_builtins.def: Add entries for
27082         vcvtv4hfv4sf, vcvtv4sfv4hf.
27083         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
27084         (neon_vcvtv4hfv4sf): Likewise.
27085         * config/arm/neon-gen.ml: Handle half-precision floating point
27086         features.
27087         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
27088         * config/arm/arm_neon.h: Regenerate.
27089         * config/arm/neon.ml (type elts): Add F16.
27090         (type vectype): Add T_float16x4, T_floatHF.
27091         (type vecmode): Add V4HF.
27092         (type features): Add Requires_FP_bit feature.
27093         (elt_width): Handle F16.
27094         (elt_class): Likewise.
27095         (elt_of_class_width): Likewise.
27096         (mode_of_elt): Refactor.
27097         (type_for_elt): Handle F16, fix error messages.
27098         (vectype_size): Handle T_float16x4.
27099         (vcvt_sh): New function.
27100         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
27101         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
27102         (string_of_mode): Handle V4HF.
27103         * doc/arm-neon-intrinsics.texi: Regenerate.
27105 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27107         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
27108         format specifier in 'X' case.
27110 2013-04-25  Alan Modra  <amodra@gmail.com>
27112         PR target/57052
27113         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
27114         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
27115         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
27116         Repeat for many other rotate/shift and mask patterns using subregs.
27117         Name lshiftrt insns.
27118         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
27119         on WORDS_BIG_ENDIAN.
27121 2013-04-25  Alan Modra  <amodra@gmail.com>
27123         * config.gcc: Support little-endian powerpc-linux targets.
27124         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
27125         (LINK_OS_LINUX_SPEC): Define.
27126         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
27127         Preserve MASK_LITTLE_ENDIAN.
27128         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
27129         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
27130         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
27131         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
27132         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
27133         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
27134         Correct fp word order for little-endian.  Don't shift toc entries
27135         smaller than a word for little-endian.
27136         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
27137         (bswapdi2 splits): Correct low-part subreg for little-endian.
27138         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
27139         low/high where such is correct only for be.
27140         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
27141         little-endian for -mcall-aixdesc.
27143 2013-04-25  Alan Modra  <amodra@gmail.com>
27145         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27146         replace_equiv_address_nv.
27148 2013-04-25  Alan Modra  <amodra@gmail.com>
27150         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
27152 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27154         Revert:
27155         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27156         * rtl.h (struct rtx_def): ...
27158 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27160         PR rtl-optimizations/57046
27161         * lra-constraints (split_reg): Set up lra_risky_transformations_p
27162         for multi-reg splits.
27164 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
27166         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
27168 2013-04-24  Sterling Augustine  <saugustine@google.com>
27170         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
27171         (comp_dir_string, debug_str_dwo_section): New.
27172         (DEBUG_STR_DWO_SECTION): Rename to ...
27173         (DEBUG_DWO_STR_SECTION): ... this.
27174         (DEBUG_NORM_STR_SECTION): Delete.
27175         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
27176         (DEBUG_STR_DWO_SECTION_FLAGS): New.
27177         (find_AT_string): Move most logic to ...
27178         (find_AT_string_in_table): ... here.  New.
27179         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
27180         add_skeleton_AT_string.  Delete logic.
27181         (output_skeleton_debug_sections): Remove call to
27182         add_top_level_skeleton_die_attrs.
27183         (add_comp_dir_attribute): Move logic to comp_dir_string.
27184         (dwarf2out_init): Initialize debug_str_dwo_section.
27185         (output_indirect_string): Call find_string_form.
27186         (output_indirect_strings): Rewrite.
27187         (prune_unused_types): Empty skeleton_debug_str_hash.
27188         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
27189         (dwarf2out_finish):  Call output_indirect_strings.
27191 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
27193         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
27195 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27197         * rtl.h (struct rtx_def): Add comment for field jump.
27198         (LRA_SUBREG_P): New macro.
27199         * recog.c (register_operand): Check LRA_SUBREG_P.
27200         * lra.c (lra): Add note at the end of RTL code. Align non-empty
27201         stack frame.
27202         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
27203         (lra_final_code_change): Skip subreg change for operators.
27204         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
27205         if there are no operand changes.
27206         * lra-constraints.c (curr_insn_set): New.
27207         (match_reload): Set LRA_SUBREG_P.
27208         (emit_spill_move): Ditto.
27209         (check_and_process_move): Use curr_insn_set. Process only single
27210         set insns.  Don't initialize sec_mem_p and change_p.
27211         (simplify_operand_subreg): Use LRA_SUBREG_P.
27212         (reg_in_class_p): New function.
27213         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
27214         of #ifdef.  Add code to remove cycling.
27215         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
27216         non-null disp.  Reload inner instead of disp when base and index
27217         are null.  Try to put lo_sum into register.
27218         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
27219         (check_and_process_move): Move code for move cost check to
27220         simple_move_p.  Remove equiv_substitution.
27221         (simple_move_p): New function.
27222         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
27223         curr_insn_set.  Call check_and_process_move only for single set
27224         insns.  Use the new function.  Move call of check_and_process_move
27225         after operand equiv substitution and address process.
27227 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
27229         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
27230         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
27231         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
27233 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
27235         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
27237 2013-04-24  Marek Polacek  <polacek@redhat.com>
27239         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
27240         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
27241         (select_loops_exit_conditions): Likewise.
27242         (number_of_iterations_for_all_loops): Likewise.
27243         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
27244         (scev_analysis): Likewise.
27246 2013-04-02  Catherine Moore  <clm@codesourcery.com>
27247             Chao-ying Fu  <fu@mips.com>
27249         * config/mips/micromips.md (jraddiusp): New pattern.
27250         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
27251         instruction if possible.
27253 2013-04-24  Alan Modra  <amodra@gmail.com>
27255         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
27257 2013-04-24  Julian Brown  <julian@codesourcery.com>
27258             Chung-Lin Tang  <cltang@codesourcery.com>
27260         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
27261         dependency behavior in enumeration type DIE generation. Add TODO note
27262         to comments about future DW_FORM_sdata/udata re-work of related code.
27264 2013-04-23  Lawrence Crowl  <crowl@google.com>
27266         * Makefile.in: Update as needed below.
27268         * hash-table.h (class hash_table):
27269         Correct many methods with parameter types compare_type to the correct
27270         value_type.  (Correct code was unlikely to notice the change.)
27271         (hash_table::elements_with_deleted) New.
27272         (class hashtable::iterator): New.
27273         (hashtable::begin()): New.
27274         (hashtable::end()): New.
27275         (FOR_EACH_HASH_TABLE_ELEMENT): New.
27277         * statistics.c (statistics_hashes):
27278         Change type to hash_table.  Update dependent calls and types.
27280         * tree-into-ssa.c (var_infos):
27281         Change type to hash_table.  Update dependent calls and types.
27283         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
27284         Change type to hash_table.  Update dependent calls and types.
27286         * tree-ssa-loop-im.c (struct mem_ref.refs):
27287         Change type to hash_table.  Update dependent calls and types.
27289         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
27290         Change type to hash_table.  Update dependent calls and types.
27292         * tree-ssa-sccvn.c (vn_tables_s::nary):
27293         Change type to hash_table.  Update dependent calls and types.
27294         (vn_tables_s::phis): Likewise.
27295         (vn_tables_s::references): Likewise.
27297         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
27298         (vn_reference_eq): Update parameter and return types.
27300         * tree-ssa-structalias.c (pointer_equiv_class_table):
27301         Change type to hash_table.  Update dependent calls and types.
27302         (location_equiv_class_table): Likewise.
27304         * tree-vect-data-refs.c: Consequential changes for making
27305         peeling a hash_table.
27307         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
27308         (destroy_loop_vec_info): Dependent hash_table update.
27310         * tree-vectorizer.h (peeling_htab):
27311         Change type to hash_table.  Update dependent calls and types.
27313 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
27315         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
27316         to check the register content is equal or not.
27317         * lra-constraints.c (match_reload): Use lra_assign_reg_val
27318         to assign register content record.
27319         * lra-eliminations.c (update_reg_eliminate): Use
27320         lra_update_reg_val_offset to update register content offset.
27321         * lra-int.h (struct lra_reg): Add offset member.
27322         (lra_reg_val_equal_p): New static inline function.
27323         (lra_update_reg_val_offset): New static inline function.
27324         (lra_assign_reg_val): New static inline function.
27325         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
27326         to assign register content record.
27327         (initialize_lra_reg_info_element): Initial offset to zero.
27329 2013-04-23  Catherine Moore  <clm@codesourcery.com>
27331         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
27332         operands.  Record compression.
27334 2013-04-23  Xinliang David Li  <davidxl@google.com>
27336         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
27338 2013-04-23  Richard Biener  <rguenther@suse.de>
27340         PR middle-end/57036
27341         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
27342         parameter, only add abnormal goto edges from the copied body
27343         if the call could perform abnormal gotos.
27344         (copy_cfg_body): Adjust.
27346 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
27348         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
27350 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
27352         * coretypes.h (gimple_stmt_iterator): Add struct to make
27353         compatible with C.
27355 2013-04-23  Richard Biener  <rguenther@suse.de>
27357         PR tree-optimization/57026
27358         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
27359         from SSA names occuring in abnormal PHI nodes.
27361 2013-04-22  Andi Kleen  <ak@linux.intel.com>
27363         * lto/lto.c (print_lto_report_1): Fix LTO report names.
27365 2013-04-22  Andi Kleen  <ak@linux.intel.com>
27367         * lto/lto.c (print_lto_report_1): Declare early.
27368         (read_cgraph_and_symbols): Call print_lto_report_1 early.
27370 2013-04-22  Andi Kleen  <ak@linux.intel.com>
27372         * common.opt (-flto-report-wpa): Add.
27373         * doc/invoke.texi (-flto-report-wpa): Add.
27374         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
27375         (lto_main): dito.
27377 2013-04-22  Xinliang David Li  <davidxl@google.com>
27379         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
27380         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
27381         * Makefile.in: New dependency
27383             David Daney <ddaney.cavm@gmail.com>
27385         * configure.ac (gcc_cv_as_micromips_support):  Use the
27386         --fatal-warnings option.
27387         * configure: Regenerate.
27389 2013-04-22  Marek Polacek  <polacek@redhat.com>
27391         PR sanitizer/56990
27392         * tsan.c (instrument_expr): Don't instrument expression
27393         in case its size is zero.
27395 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
27397         PR target/57032
27398         Revert:
27399         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
27401         * config/alpha/alpha.c (TARGET_LRA_P): New define.
27403 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
27405         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
27406         (gimple_stmt_iterator): New typedef.
27407         * gimple.h (gimple_stmt_iterator): Rename to...
27408         (gimple_stmt_iterator_d): ... This.
27409         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
27410         trees be valid for GIMPLE and GENERIC.
27411         (TARGET_GIMPLE_FOLD_BUILTIN): New.
27412         * gimple-fold.c (gimple_fold_call): Call target hook
27413         gimple_fold_builtin.
27414         * hooks.c (hook_bool_gsiptr_false): New.
27415         * hooks.h (hook_bool_gsiptr_false): New.
27416         * target.def (fold_stmt): New.
27417         * doc/tm.texi: Regenerate.
27419 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
27421         PR target/57018
27422         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
27423         a set sp if no stack realignment.
27425 2013-04-22  Nick Clifton  <nickc@redhat.com>
27427         * config.gcc (tilegx-linux): Extend extra_objs rather than
27428         overwriting it.
27429         (tilepro-linux): Likewise.
27431 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
27433         * config/aarch64/aarch64-builtins.c
27434         (CF): Remove.
27435         (CF0, CF1, CF2, CF3, CF4, CF10): New.
27436         (VAR<1-12>): Add MAP parameter.
27437         (BUILTIN_*): Likewise.
27438         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
27439         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
27440         (aarch64_ushl_n<mode>): Likewise.
27441         (aarch64_sshr_n<mode>): Likewise.
27442         (aarch64_ushr_n<mode>): Likewise.
27443         (aarch64_<maxmin><mode>): Likewise.
27444         (aarch64_sqrt<mode>): Likewise.
27445         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
27446         (vshr<q>_n_*): Likewise.
27448 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
27450         * config/aarch64/aarch64-builtins.c
27451         (aarch64_simd_builtin_type_mode): Handle SF types.
27452         (sf_UP): Define.
27453         (BUILTIN_GPF): Define.
27454         (aarch64_init_simd_builtins): Handle SF types.
27455         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
27456         (frecps): Likewise.
27457         (frecpx): Likewise.
27458         * config/aarch64/aarch64-simd.md
27459         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
27460         (aarch64_frecpe<mode>): New.
27461         (aarch64_frecps<mode>): Likewise.
27462         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
27463         (v8type): Add frecp<esx>.
27464         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
27465         (aarch64_frecps<mode>): Likewise.
27466         * config/aarch64/iterators.md (FRECP): New.
27467         (frecp_suffix): Likewise.
27468         * config/aarch64/arm_neon.h
27469         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
27471 2013-04-22  Christian Bruel  <christian.bruel@st.com>
27473         PR target/56995
27474         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
27475         (REG_CLASS_NAMES): Idem.
27476         (REG_CLASS_CONTENTS): Idem.
27477         (REGCLASS_HAS_FP_REG): Idem.
27478         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
27479         (sh_conditional_register_usage): Idem.
27481 2013-04-21  Jeff Law  <law@redhat.com>
27483         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
27484         (ssa_forward_propagate_and_combine): Use it.
27486 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
27488         * lra.c: Update the flow chart diagram.
27490 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
27492         PR rtl-optimization/56847
27493         * lra-constraints.c (process_alt_operands): Discourage alternative
27494         with non-matche doffsettable memory constraint fro memory with
27495         known offset.
27497 2013-04-19  Richard Biener  <rguenther@suse.de>
27499         PR tree-optimization/56982
27500         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
27501         function.
27502         * gimplify.c (gimplify_call_expr): Notice special calls.
27503         (gimplify_modify_expr): Likewise.
27504         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
27505         abnormal control flow receivers.
27506         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
27507         in the same way as cfun->has_nonlocal_labels.
27508         (gimple_purge_dead_abnormal_call_edges): Likewise.
27509         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
27510         receivers start a basic-block.
27512 2013-04-19  Richard Biener  <rguenther@suse.de>
27514         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
27515         member ...
27516         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
27517         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
27518         (SLP_TREE_LOAD_PERMUTATION): Add.
27519         (vect_transform_slp_perm_load): Adjust prototype.
27520         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
27521         (vect_free_slp_instance): Likewise.
27522         (vect_create_new_slp_node): Likewise.
27523         (vect_supported_slp_permutation_p): Remove.
27524         (vect_slp_rearrange_stmts): Adjust.
27525         (vect_supported_load_permutation_p): Likewise.  Inline
27526         vect_supported_slp_permutation_p here.
27527         (vect_analyze_slp_instance): Compute load permutations per
27528         slp node instead of per instance.
27529         (vect_get_slp_defs): Adjust.
27530         (vect_transform_slp_perm_load): Likewise.
27531         (vect_schedule_slp_instance): Remove redundant code.
27532         (vect_schedule_slp): Remove hack for PR56270, add it ...
27533         * tree-vect-stmts.c (vectorizable_load): ... here, do not
27534         CSE loads for SLP.  Adjust.
27536 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
27538         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
27539         spelling in two comments.
27541 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
27543         PR target/56797
27544         * config/arm/arm.c (load_multiple_sequence): Require SP
27545         as base register for loads if SP is in the register list.
27547 2013-04-19  Martin Jambor  <mjambor@suse.cz>
27549         PR tree-optimization/56718
27550         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
27551         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
27552         and made public.  Adjusted all callers.
27553         (ipa_intraprocedural_devirtualization): New function.
27554         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
27555         (ipa_intraprocedural_devirtualization): Likewise.
27556         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
27558 2013-04-19  Richard Biener  <rguenther@suse.de>
27560         PR tree-optimization/57000
27561         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
27563 2013-04-19  Terry Guo  <terry.guo@arm.com>
27565         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
27566         Replace with ...
27567         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
27568         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
27569         (cortex_m4_fmacs): Use new reservations.
27570         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
27572 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
27574         PR rtl-optimization/56999
27575         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
27576         related code.
27577         (lra_coalesce): Remove split_origin_bitmap and related code.
27578         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
27579         ranges if necessary.
27581 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
27583         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
27584         New array.
27585         (ix86_expand_call): Remove clobbered_registers array and use
27586         x86_64_ms_sysv_extra_clobbered_registers instead.
27587         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
27588         Declare here.
27589         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
27590         predicate.
27591         * config/i386/i386.md (*call_rex64_ms_sysv): Use
27592         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
27593         (*call_value_rex64_ms_sysv): Ditto.
27595 2013-04-18  Cary Coutant  <ccoutant@google.com>
27597         * dwarf2out.c (output_pubnames): Check die_perennial_p of
27598         parent instead of die_mark.
27600 2013-04-18  Diego Novillo  <dnovillo@google.com>
27602         * gimple.c (create_gimple_tmp): New.
27603         (get_expr_type): New.
27604         (build_assign): New.
27605         (build_type_cast): New.
27606         * gimple.h (enum ssa_mode): Define.
27607         (gimple_seq_set_location): New.
27608         * asan.c (build_check_stmt): Change some gimple_build_* calls
27609         to use build_assign and build_type_cast.
27611 2013-04-18  Richard Biener  <rguenther@suse.de>
27613         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27614         handle negative step.  Remove redundant checks.
27615         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
27616         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
27617         for negative step and grouped loads fail to vectorize.
27619 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
27621         * emit-rtl.c (reset_insn_used_flags): New function.
27622         (reset_all_used_flags): Use it.
27623         (verify_insn_sharing): New function.
27624         (verify_rtl_sharing): Fix verification for SEQUENCEs.
27626 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
27628         PR tree-optimization/56984
27629         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
27630         and (x >> M) >= N don't register any assertion if N << M is the
27631         minimum value.
27633 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
27635         * lower-subreg.c (resolve_simple_move): If called self-recursive,
27636         do not delete_insn insns that have not yet been emitted, only
27637         unlink them with remove_insn.
27638         * df-scan.c (df_insn_delete): Revert r197492.
27640 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
27642         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
27643         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
27645 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
27647         * config/arm/arm.md (movsicc_insn): Convert define_insn into
27648         define_insn_and_split.
27649         (and_scc,ior_scc,negscc): Likewise.
27650         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
27652 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
27654         * config/arm/arm.c (use_return_insn): Return 0 for targets that
27655         can benefit from using a sequence of LDRD instructions in epilogue
27656         instead of a single LDM instruction.
27658 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27660         PR 45688
27661         * doc/extend.texi: Fix typo.
27663 2013-04-17  Richard Biener  <rguenther@suse.de>
27665         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
27666         (vect_build_slp_tree): ... here.
27667         (vect_build_slp_tree_1): Compute which stmts of the SLP group
27668         match.  Remove special-casing of mismatched complex loads.
27669         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
27670         re-try the match with swapped commutative operands.
27671         (vect_supported_load_permutation_p): Remove special-casing of
27672         mismatched complex loads.
27673         (vect_analyze_slp_instance): Adjust.
27675 2013-04-17  Richard Biener  <rguenther@suse.de>
27677         PR rtl-optimization/56921
27678         * cfgloop.h (struct loop): Add simple_loop_desc member.
27679         (struct niter_desc): Mark with GTY(()).
27680         (simple_loop_desc): Do not use aux field but simple_loop_desc.
27681         * loop-iv.c (get_simple_loop_desc): Likewise.
27682         (free_simple_loop_desc): Likewise.
27684         Revert
27685         2013-04-16  Richard Biener  <rguenther@suse.de>
27687         PR rtl-optimization/56921
27688         * loop-init.c (pass_rtl_move_loop_invariants): Add
27689         TODO_do_not_ggc_collect to todo_flags_finish.
27690         (pass_rtl_unswitch): Same.
27691         (pass_rtl_unroll_and_peel_loops): Same.
27692         (pass_rtl_doloop): Same.
27694 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
27696         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
27697         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
27698         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
27699         references.
27700         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
27701         * tree-streamer.c (record_common_node): Adjust reference in comment.
27703 2013-04-17  Terry Guo  <terry.guo@arm.com>
27705         * config/arm/cortex-m4.md: Add a new bypass.
27707 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27709         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
27710         New pattern.
27711         (*subs_<optab><mode>_multp2): New pattern.
27712         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
27713         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
27715 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27717         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
27718         (*subs_mul_imm_<mode>): New pattern.
27720 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
27722         PR target/56948
27723         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
27724         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
27725         (vsx_movti_32bit): Change j->wa to O->wa.
27727 2013-04-16  Richard Biener  <rguenther@suse.de>
27729         PR rtl-optimization/56921
27730         * loop-init.c (pass_rtl_move_loop_invariants): Add
27731         TODO_do_not_ggc_collect to todo_flags_finish.
27732         (pass_rtl_unswitch): Same.
27733         (pass_rtl_unroll_and_peel_loops): Same.
27734         (pass_rtl_doloop): Same.
27736 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
27738         * config/arm/arm.c (emit_multi_reg_push): New declaration
27739         for an existing function.
27740         (arm_emit_strd_push): New function.
27741         (arm_expand_prologue): Used here.
27742         (arm_emit_ldrd_pop): New function.
27743         (arm_expand_epilogue): Used here.
27744         (arm_get_frame_offsets): Update condition.
27745         (arm_emit_multi_reg_pop): Add a special case for load of a single
27746         register with writeback.
27748 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
27750         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
27751         description.
27753 2013-04-16  Richard Biener  <rguenther@suse.de>
27755         PR tree-optimization/56756
27756         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
27757         (first_mem_ref_loc): New.
27758         (execute_sm): Place the load temporarily before a previous
27759         access instead of in the latch edge to ensure its SSA dependencies
27760         are defined at points dominating the load.
27762 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
27764         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
27765         correct fix by moving header and footer insn to the footer of
27766         the merged basic block.  Clear BB_END of the merged-away block.
27768         PR middle-end/43631
27769         * emit-rtl.c (make_note_raw): New function.
27770         (link_insn_into_chain): New static inline function.
27771         (add_insn): Use it.
27772         (add_insn_before, add_insn_after): Factor insn chain linking code...
27773         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
27774         using link_insn_into_chain.
27775         (note_outside_basic_block_p): New helper function for emit_note_after
27776         and emit_note_before.
27777         (emit_note_after): Use nobb variant of add_insn_after if the note
27778         should not be contained in a basic block.
27779         (emit_note_before): Use nobb variant of add_insn_before if the note
27780         should not be contained in a basic block.
27781         (emit_note_copy): Use make_note_raw.
27782         (emit_note): Likewise.
27783         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
27784         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
27785         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
27786         the moved barrier the tail of the basic block it follows.
27787         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
27789 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
27791         PR tree-optimization/56962
27792         * gimple-ssa-strength-reduction.c (record_increment): Only set
27793         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
27794         either rhs1 or rhs2 is equal to c->base_expr.
27796 2013-04-15  Richard Biener  <rguenther@suse.de>
27798         PR tree-optimization/56933
27799         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
27800         member.
27801         (GROUP_READ_WRITE_DEPENDENCE): Remove.
27802         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
27803         * tree-vect-data-refs.c (vect_analyze_group_access): Move
27804         dependence check ...
27805         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
27806         ... here.
27807         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
27808         GROUP_READ_WRITE_DEPENDENCE.
27810 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27812         * emit-rtl.c (reset_all_used_flags): New function.
27813         (verify_rtl_sharing): Call reset_all_used_flags before and after
27814         performing the checks.
27816 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27818         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
27819         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
27820         * config/arm/constraints.md (De): New constraint.
27821         * config/arm/neon.md (anddi3_neon): Delete.
27822         (neon_vand<mode>): Expand to standard anddi3 pattern.
27823         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
27824         Move earlier in the file.
27825         (neon_inv_logic_op2): Likewise.
27826         (arm_anddi_operand_neon): New predicate.
27828 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27830         * configure.ac (gcc_cv_ld_as_needed): Set
27831         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
27832         Use -z ignore, -z record on *-*-solaris2*.
27833         (HAVE_LD_AS_NEEDED): Update comment.
27834         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
27835         * configure: Regenerate.
27836         * config.in: Regenerate.
27837         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
27838         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
27839         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
27840         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
27841         equivalents.  Fix markup.
27842         * doc/tm.texi: Regenerate.
27844 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
27846         * config/i386/i386.opt: New option mstack-protector-guard=.
27847         * config/i386/i386-opts.h: Add enum stack_protector_guard.
27848         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
27849         TARGET_SSP_TLS_GUARD.
27850         * config/i386/i386.c (ix86_option_override_internal): Set
27851         ix86_stack_protector_guard.
27852         * config/i386/i386.md (stack_protect_set): Enable for
27853         TARGET_SSP_TLS_GUARD only.
27854         (stack_protect_set_<mode>): Ditto.
27855         (stack_protect_test): Ditto.
27856         (stack_protect_test_<mode>): Ditto.
27857         * doc/invoke.texi (i386 Option): Document.
27859 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
27861         PR target/56890
27862         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
27863         (S_MODES): Set H_MODE bit.
27864         (SF_MODES): Set only S_MODE and SF_MODE bits.
27865         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
27866         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
27867         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
27868         <MODE_FLOAT>: Likewise.
27870 2013-04-15  Joey Ye  <joey.ye@arm.com>
27872         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
27874 2013-04-15  Joey Ye  <joey.ye@arm.com>
27876         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
27877         for real far jump.
27878         (thumb_far_jump_used_p): Count instruction size and set
27879         far_jump_used.
27881 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
27883         * reorg.c (fill_simple_delay_slots): Reindent block of code.
27884         * resource.c (mark_target_live_regs): Reformat conditional block.
27886 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
27888         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
27889         notes, they are emitted only just before final.
27890         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
27892 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
27894         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
27895         * cfgrtl.c (delete_insn): Call it here instead.
27896         * lra-spills.c (lra_final_code_change): Use delete_insn.
27897         * haifa-sched.c (sched_remove_insn): Likewise.
27898         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
27899         returning to the nop pool.
27900         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
27901         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
27903 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
27905         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
27906         * doc/tm.texi: Regenerated.
27908 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
27910         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
27911         QImode checks.
27913 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
27915         * df-core.c (df_find_def): Compare register numbers.
27916         (df_find_use): Likewise.
27918 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
27920         PR target/56903
27921         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
27922         lra_in_progress for return.
27924 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
27926         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
27927         define_insn into define_insn_and_split and emit movsicc patterns.
27929 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
27931         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
27933 2013-04-12  Richard Biener  <rguenther@suse.de>
27935         * tree-pass.h (TODO_do_not_ggc_collect): New.
27936         * passes.c (execute_one_ipa_transform_pass): Honor
27937         TODO_do_not_ggc_collect.
27938         (execute_one_pass): Likewise.
27940         Revert
27941         2013-04-10  Richard Biener  <rguenther@suse.de>
27943         * passes.c (init_optimization_passes): Remove reload pass.
27944         * ira.c (do_reload): Merge into ...
27945         (ira): ... this.
27946         (rest_of_handle_reload): Remove.
27947         (pass_reload): Likewise.
27948         * config/i386/i386.c (ix86_option_override): Refer to ira instead
27949         of reload for vzeroupper pass placement.
27951 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
27953         PR tree-optimization/56918
27954         PR tree-optimization/56920
27955         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
27956         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
27957         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
27958         use wide_mul_with_sign method.
27960 2013-04-12  Richard Biener  <rguenther@suse.de>
27962         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
27963         not be considered a gimple constant.
27965 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
27967         * fold-const.c (const_binop): Handle vector shifts by a scalar.
27968         (fold_binary_loc): Call const_binop also for mixed vector-scalar
27969         operations.
27971 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27972             Jakub Jelinek  <jakub@redhat.com>
27974         * opts.c: Include diagnostic-color.h.
27975         (common_handle_option): Handle OPT_fdiagnostics_color_.
27976         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
27977         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
27978         (diagnostic-color.o): New.
27979         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
27980         (diagnostic_color_rule): New enum.
27981         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
27982         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
27983         the location string.
27984         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
27985         either NULL, or color kind.
27986         * diagnostic-color.c: New file.
27987         * diagnostic-color.h: New file.
27988         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
27989         arguments.
27990         * doc/invoke.texi (-fdiagnostics-color): Document.
27991         * pretty-print.h (pp_show_color): Define.
27992         (struct pretty_print_info): Add show_color field.
27993         * diagnostic.c: Include diagnostic-color.h.
27994         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
27995         macros.  Colorize error:, warning: etc. strings and also the location
27996         string.
27997         (diagnostic_show_locus): Colorize the caret line.
27998         * pretty-print.c: Include diagnostic-color.h.
27999         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
28000         inside of %< %> quotes or quoted through q format modifier.
28002 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28004         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
28006 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28008         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
28009         code in CC_NZ mode.
28010         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
28011         pattern.
28013 2013-04-11  Marek Polacek  <polacek@redhat.com>
28015         PR tree-optimization/48184
28016         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
28018 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
28020         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
28021         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
28022         (skip_simple_arithmetic): Tidy up.
28023         * tree.h (skip_simple_constant_arithmetic): Declare.
28025 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28027         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
28029 2013-04-11  Richard Biener  <rguenther@suse.de>
28031         * tree-vect-loop.c (get_initial_def_for_induction): Properly
28032         generate vector constants.
28034 2013-04-11  Richard Biener  <rguenther@suse.de>
28036         PR tree-optimization/56878
28037         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
28038         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
28039         New function.
28040         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28041         Prefer to align the DR with the most invariant base address.
28043 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28045         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
28046         comment.
28048 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
28050         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
28051         floating-point vector comparisons against 0.
28053 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
28055         PR tree-optimization/56899
28056         * fold-const.c (extract_muldiv_1): Apply distributive law
28057         only if TYPE_OVERFLOW_WRAPS (ctype).
28059 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
28061         PR target/56124
28062         * ira-costs.c (scan_one_insn): Check whether the source rtx of
28063         loading has side effect.
28065 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
28067         * config/sparc/sparc.c: Include tree-pass.h.
28068         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
28069         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
28070         head of file.  Change return type.  Split off gate function.
28071         (sparc_gate_work_around_errata): New function.
28072         (pass_work_around_errata): New pass definition.
28073         (insert_pass_work_around_errata) New pass insert definition to
28074         insert pass_work_around_errata just after delayed-branch scheduling.
28075         (sparc_option_override): Insert the pass.
28076         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
28078 2013-04-10  David S. Miller  <davem@davemloft.net>
28080         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
28081         or -mcpu=hypersparc.
28083         * target.def (cstore_mode): New hook.
28084         * target.h: Include insn-codes.h
28085         * targhooks.c: Likewise.
28086         (default_cstore_mode): New function.
28087         * targhooks.h: Declare it.
28088         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
28089         * doc/tm.texi: Rebuild.
28090         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
28091         target hook, rather than inspecting the insn_data.
28092         * config/sparc/sparc.c (sparc_cstore_mode): New function.
28093         (TARGET_CSTORE_MODE): Redefine.
28094         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
28095         result patterns.
28096         * config/sparc/predicates.md (cstore_result_operand): New special
28097         predicate.
28098         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
28099         Use it for operand 0.
28100         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
28101         (*snesi_special): Likewise.
28102         (*snesi_zero): Likewise.
28103         (*seqsi_zero): Likewise.
28104         (*sltu_insn): Likewise.
28105         (*sgeu_insn): Likewise.
28106         (*seqdi_special): Make operand 0 and comparison operation be of
28107         DImode.
28108         (*snedi_special): Likewise.
28109         (*snedi_special_vis3): Likewise.
28110         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
28111         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
28112         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
28113         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
28114         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
28115         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
28116         (*sltu_extend_sp64): Likewise.
28117         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
28118         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
28119         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
28120         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
28121         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
28123 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
28125         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
28126         (aarch64_start_file): Use the new function.
28128 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28129             Jason Merrill  <jason@redhat.com>
28131         * common.opt: Add -gdwarf.
28132         * opts.c (common_handle_option): Handle it.
28133         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
28135 2013-04-10  Richard Biener  <rguenther@suse.de>
28137         * passes.c (execute_todo): Do not call ggc_collect conditional here.
28138         (execute_one_ipa_transform_pass): But unconditionally here.
28139         (execute_one_pass): And here.
28140         (init_optimization_passes): Remove reload pass.
28141         * tree-pass.h (TODO_ggc_collect): Remove.
28142         (pass_reload): Likewise.
28143         * ira.c (do_reload): Merge into ...
28144         (ira): ... this.
28145         (rest_of_handle_reload): Remove.
28146         (pass_reload): Likewise.
28147         * config/i386/i386.c (ix86_option_override): Refer to ira instead
28148         of reload for vzeroupper pass placement.
28149         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
28150         and todo_flags_finish of all passes.
28152 2013-04-10  Richard Biener  <rguenther@suse.de>
28154         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
28155         first_const_oprnd field, rename first_def_type to first_op_type.
28156         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
28157         (vect_get_and_check_slp_defs): Always use the type of the
28158         operand.  Allow mixed vect_external_def, vect_constant_def types.
28159         (vect_get_constant_vectors): Handle mixed vect_external_def,
28160         vect_constant_def types.
28162 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
28164         PR tree-optimization/55524
28165         * tree-ssa-math-opts.c
28166         (convert_mult_to_fma): Don't use an fms construct
28167         when we don't have an fms operation, but fnma, and it looks
28168         likely that we'll be able to use the latter.
28170 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
28172         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
28173         function.
28174         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
28175         inline fail caused by overwritable functions.
28177 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
28179         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
28180         unnecessary bits in the constant power of two case.
28182 2013-04-10  Richard Biener  <rguenther@suse.de>
28184         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
28185         broken code swapping operands.
28186         (vect_build_slp_tree): Do not compute load permutations here.
28187         (vect_analyze_slp_instance): Compute load permutations here,
28188         after building the SLP tree.
28190 2013-04-09  Christian Bruel  <christian.bruel@st.com>
28192         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
28193         of next/prev_real_insn.
28195 2013-04-09  Jan Hubicka  <jh@suse.cz>
28197         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
28198         Drop aliased parameter.
28199         (function_and_variable_visibility): Do not handle alias pairs.
28200         * cgraph.c (varpool_externally_visible_p): Update prototype.
28201         * varpool.c (varpool_add_new_variable): Update.
28203 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28205         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
28207 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
28209         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
28211         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
28213 2013-04-09  Marek Polacek  <polacek@redhat.com>
28215         PR tree-optimization/48762
28216         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
28218 2013-04-09  Richard Biener  <rguenther@suse.de>
28220         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
28221         dealing with cost.
28222         (vect_build_slp_tree): Likewise.
28223         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
28224         calculating the cost of a SLP instance.
28225         (vect_analyze_slp_instance): Use it from here, after building
28226         the SLP tree.
28228 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
28230         PR middle-end/56883
28231         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
28232         expand_omp_for_static_chunk): Use simple_p = true in
28233         force_gimple_operand_gsi calls when assigning to addressable decls.
28235 2013-04-09  Jeff Law  <law@redhat.com>
28237         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
28238         when the boolean was created by converting a wider object which
28239         had a boolean range.
28241 2013-04-09  Richard Biener  <rguenther@suse.de>
28243         * tree-vectorizer.h (slp_void_p): Remove.
28244         (slp_tree): Typedef before _slp_tree declaration.
28245         (struct _slp_tree): Use a vector of slp_tree as children.
28246         (vect_get_place_in_interleaving_chain): Remove.
28247         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
28248         Move ...
28249         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
28250         and make static.
28251         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
28252         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
28253         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
28254         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
28255         Use slp_node instead of slp_void_p and adjust.
28257 2013-04-09  Richard Biener  <rguenther@suse.de>
28259         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
28260         work that is not necessary.
28262 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
28264         PR tree-optimization/56854
28265         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
28266         forward into clobber stmts if it would change MEM_REF lhs into
28267         non-MEM_REF.
28269 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
28271         * tree.c (type_hash_lookup, type_hash_add): Make static.
28272         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
28274 2013-04-09  Richard Biener  <rguenther@suse.de>
28276         * tree.h (unsave_expr_now): Remove.
28277         * tree-inline.c (mark_local_for_remap_r): Remove.
28278         (unsave_expr_1): Likewise.
28279         (unsave_r): Likewise.
28280         (unsave_expr_now): Likewise.
28281         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
28282         (propagate_tree_value): Likewise.
28284 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
28286         * doc/rtl.texi (sequence): Rewrite documentation to match the
28287         current use of SEQUENCE rtl objects.
28288         * rtl.def (SEQUENCE): Likewise.
28290         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
28291         Update documentation.
28292         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
28293         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
28295         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
28297 2013-04-08  Teresa Johnson  <tejohnson@google.com>
28299         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
28300         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
28301         methods.
28302         (estimate_edge_size_and_time): Add comment to suggest using rounding
28303         methods.
28304         (estimate_node_size_and_time): Ditto.
28305         (remap_edge_change_prob): Use helper rounding divide methods.
28306         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
28307         (gimple_mod_pow2_value_transform): Ditto.
28308         (gimple_mod_subtract_transform): Ditto.
28309         (gimple_ic_transform): Ditto.
28310         (gimple_stringops_transform): Ditto.
28311         * stmt.c (conditional_probability): Ditto.
28312         (emit_case_dispatch_table): Ditto.
28313         * lto-cgraph.c (merge_profile_summaries): Ditto.
28314         * tree-optimize.c (execute_fixup_cfg): Ditto.
28315         * cfgcleanup.c (try_forward_edges): Ditto.
28316         * cfgloopmanip.c (scale_loop_profile): Ditto.
28317         (loopify): Ditto.
28318         (duplicate_loop_to_header_edge): Ditto.
28319         (lv_adjust_loop_entry_edge): Ditto.
28320         * tree-vect-loop.c (vect_transform_loop): Ditto.
28321         * profile.c (compute_branch_probabilities): Ditto.
28322         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
28323         * lto-streamer-in.c (input_cfg): Ditto.
28324         * gimple-streamer-in.c (input_bb): Ditto.
28325         * ipa-cp.c (update_profiling_info): Ditto.
28326         (update_specialized_profile): Ditto.
28327         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
28328         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
28329         rounding methods.
28330         * sched-rgn.c (compute_dom_prob_ps): Ditto.
28331         (compute_trg_info): Ditto.
28332         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
28333         (purge_dead_edges): Ditto.
28334         * loop-unswitch.c (unswitch_loop): Ditto.
28335         * cgraphclones.c (cgraph_clone_edge): Ditto.
28336         (cgraph_clone_node): Ditto.
28337         * tree-inline.c (copy_bb): Ditto.
28338         (copy_edges_for_bb): Ditto.
28339         (initialize_cfun): Ditto.
28340         (copy_cfg_body): Ditto.
28341         (expand_call_inline): Ditto.
28343 2013-04-08  Kai Tietz  <ktietz@redhat.com>
28345         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
28346         TARGET_CYGWIN64 by TARGET_64BIT.
28348 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
28350         * config/epiphany/epiphany.md (GPR_1): New constant.
28351         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
28352         * config/epiphany/epiphany.c (gen_compare_reg):
28353         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
28354         is already in place.
28355         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
28356         Don't require being called during rtl expansion; If y operlaps r0,
28357         return 0.
28358         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
28359         (epiphany_expand_epilogue): Likewise.
28361         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
28362         Don't use CC_FPmode for ORDERED / UNORDERED.
28363         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
28365         * config/epiphany/constraints.md (CnL): New constraint.
28366         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
28367         * config/epiphany/predicates.md (add_operand): Allow 1024.
28369         * config/epiphany/epiphany.md (logical_op): New code iterator.
28370         (op_mnc): New code attribute.
28371         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
28372         (mov_f+1, mov_f+2): New peephole2 patterns.
28374         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
28375         (cstoresi4): Also allow re-use of zero result when doing a NE
28376         comparison to a non-zero operand.
28377         Use (clobber (scratch)) for first insn if the gpr output is not needed.
28379         * config/epiphany/epiphany.md (<insn_opname>v2si3):
28380         Use gen_addsi3_i / gen_subsi3_i.
28382 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
28384         PR c++/34949
28385         PR c++/50243
28386         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
28387         contain anything but clobbers, at most one __builtin_stack_restore,
28388         optionally debug stmts and final resx, and if it has at least one
28389         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
28390         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
28391         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
28392         which isn't defaut definition, remove them.
28393         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
28394         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
28395         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
28396         with MEM_REF LHS with SSA_NAME address.
28398 2013-04-08  Jeff Law  <law@redhat.com>
28400         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
28402 2013-04-08  Richard Biener  <rguenther@suse.de>
28404         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
28405         extra newline.
28406         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
28407         determined vector type.
28408         (vect_analyze_data_refs): Likewise.
28409         (vect_get_new_vect_var): Adjust.
28410         (vect_create_destination_var): Preserve SSA name versions.
28411         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
28412         not dump anything here.
28414 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
28416         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
28417         Add member lr_slot_known.
28418         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
28419         if necessary.
28420         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
28421         Remove code that sets lr_slot_offset according to what a previous
28422         version of epiphany_emit_save_restore used to do.
28423         (epiphany_emit_save_restore): When doing an lr save or restore,
28424         set/verify lr_slot_known and lr_slot_offset.
28426 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
28428         PR target/54338
28429         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
28430         in ALL_REGS.
28432 2013-04-08  Richard Biener  <rguenther@suse.de>
28434         * alias.c (find_base_term): Fix thinko in previous change.
28436 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
28438         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
28439         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
28440         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
28441         if possible to compute val.
28442         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
28443         For QImode integers don't require anything about precision.  Use
28444         const_with_all_bytes_same to find out if the constant doesn't have
28445         repeated bytes in it.
28447 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28449         * config/s390/s390.c (s390_expand_insv): Only accept insertions
28450         within mode size.
28452 2013-04-08  Marek Polacek  <polacek@redhat.com>
28454         PR rtl-optimization/48182
28455         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
28456         value to 1.
28458 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28460         PR target/55487
28461         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
28462         nuses, make sure we have a label.
28464 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28466         PR target/56843
28467         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
28468         (rs6000_emit_swdiv_low_precision): Remove.
28469         (rs6000_emit_swdiv): Rewrite to handle between one and four
28470         iterations of Newton-Raphson generally; modify required number of
28471         iterations for some cases.
28472         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
28474 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
28476         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
28477         set-but-unused variable.
28479         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
28480         basic blocks of released function bodies garbage-collectable.
28482         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
28483         (struct rtl_opt_pass): Add TODO_df_finish.
28485         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
28487 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28489         * config/arm/constraints.md (q): New constraint.
28490         * config/arm/ldrdstrd.md: New file.
28491         * config/arm/arm.md (ldrdstrd.md) New include.
28492         (arm_movdi): Use "q" instead of "r" constraint
28493         for double-word memory access.
28494         (movdf_soft_insn): Likewise.
28495         * config/arm/vfp.md (movdi_vfp): Likewise.
28496         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
28497         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
28498         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
28499         (mem_ok_for_ldrd_strd): Likewise.
28500         (output_move_double): Update assertion.
28502 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28504         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
28506 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28508         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
28509         define_insn_and_split.
28510         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
28512 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28514         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
28515         define_insn_and_split.
28516         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
28517         (shiftsi3_compare): New pattern.
28518         (rrx): New pattern.
28519         * config/arm/unspecs.md (UNSPEC_RRX): New.
28521 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28523         * config/arm/arm.md (negdi_extendsidi): New pattern.
28524         (negdi_zero_extendsidi): Likewise.
28526 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28528         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
28529         define_insn_and_split.
28530         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
28531         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
28533 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28535         * config/arm/arm.md (arm_subdi3): Convert define_insn into
28536         define_insn_and_split.
28537         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
28538         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
28540 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28542         * config/arm/arm.md (subsi3_carryin): New pattern.
28543         (subsi3_carryin_const): Likewise.
28544         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
28545         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
28547 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28549         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
28551 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28553         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
28554         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
28556 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28558         * config/arm/arm.c (arm_expand_builtin): Change fcode
28559         type to unsigned int.
28561 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28563         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
28565 2013-04-04  Ian Lance Taylor  <iant@google.com>
28567         * doc/standards.texi (Standards): The Go frontend supports the Go 1
28568         language standard.
28570 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
28572         PR middle-end/56729
28573         * df-scan.c (df_insn_delete): Disable failing assert.
28575 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28577         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
28578         New function prototype.
28579         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
28580         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
28581         (arm_builtin_vectorized_function): New function.
28583 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28585         * config/arm/arm_neon_builtins.def: New file.
28586         * config/arm/arm.c (neon_builtin_data): Move contents to
28587         arm_neon_builtins.def.
28588         (enum arm_builtins): Include neon builtin definitions.
28589         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
28590         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
28592 2013-04-04  Marek Polacek  <polacek@redhat.com>
28594         PR tree-optimization/48186
28595         * predict.c (maybe_hot_frequency_p): Return false if
28596         HOT_BB_FREQUENCY_FRACTION is 0.
28597         (cgraph_maybe_hot_edge_p): Likewise.
28599 2013-04-04  Richard Biener  <rguenther@suse.de>
28601         PR tree-optimization/56826
28602         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
28603         more accurately.
28605 2013-04-04  Richard Biener  <rguenther@suse.de>
28607         PR tree-optimization/56213
28608         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
28609         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
28611 2013-04-04  Richard Biener  <rguenther@suse.de>
28613         PR tree-optimization/56837
28614         * tree-loop-distribution.c (classify_partition): For non-zero
28615         values require that the value has the same precision as its
28616         mode to be useful as memset value.
28618 2013-04-03  Nick Clifton  <nickc@redhat.com>
28620         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
28621         (fmssf4): Use fmsf.s on E3V5 architectures.
28622         (fnmasf4): Use fnmaf.s on E3V5 architectures.
28623         (fnmssf4): Use fnmsf.s on E3V5 architectures.
28625 2013-04-03  Jeff Law  <law@redhat.com>
28627         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
28628         (lra-eliminations.o): Likewise.
28630 2013-04-03  Teresa Johnson  <tejohnson@google.com>
28632         * gcov-io.c (compute_working_sets): Moved most of body of old
28633         compute_working_sets here from profile.c.
28634         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
28635         (gcov_working_set_t): Moved typedef here from basic-block.h
28636         (compute_working_set): Declare.
28637         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
28638         (get_working_sets): Renamed from compute_working_set,
28639         replace most of body with call to new compute_working_sets.
28640         (get_exec_counts): Replace call to compute_working_sets
28641         to get_working_sets.
28642         * profile.h (get_working_sets): Renamed from compute_working_set.
28643         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
28644         to get_working_sets.
28645         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
28646         * gcov-dump.c (dump_working_sets): New function.
28648 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
28650         * hwint.c (sext_hwi, zext_hwi): New functions.
28651         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
28652         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
28653         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
28654         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
28655         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
28656         (sext_hwi, zext_hwi): New functions.
28658 2013-04-03  Jeff Law  <law@redhat.com>
28660         PR tree-optimization/56799
28661         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
28662         back test for widening conversion erroneously dropped in prior change.
28664 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28666         PR target/56809
28667         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
28668         instead of next_real_insn.
28670 2013-04-03  Marek Polacek  <polacek@redhat.com>
28672         PR sanitizer/55702
28673         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
28675 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28677         PR target/56809
28678         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
28679         next_real_insn.
28680         (thumb1_output_casesi): Likewise.
28681         (thumb2_output_casesi): Likewise.
28683 2013-04-03  Richard Biener  <rguenther@suse.de>
28685         PR tree-optimization/56817
28686         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
28687         Split out ...
28688         (tree_unroll_loops_completely_1): ... new function to manually
28689         walk the loop tree, properly defering outer loops of unrolled
28690         loops to later iterations.
28692 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
28694         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
28695         (vectorizable_load): Likewise.
28696         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
28697         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
28699 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
28701         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
28702         BIT_FIELD_REF.
28704 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28706         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
28708 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
28710         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
28712 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
28714         PR tree-optimization/56790
28715         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
28716         folding.
28718 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
28720         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
28721         Handle VEC_MERGE.
28722         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
28723         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
28724         equal arguments.
28726 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
28728         PR c/19449
28729         * tree.h (force_folding_builtin_constant_p): New decl.
28730         * builtins.c (force_folding_builtin_constant_p): New variable.
28731         (fold_builtin_constant_p): Fold immediately also if
28732         force_folding_builtin_constant_p.
28734 2013-04-03  Richard Biener  <rguenther@suse.de>
28736         PR tree-optimization/56812
28737         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
28738         DRs of the same interleaving chain are independent.
28740 2013-04-02  Jason Merrill  <jason@redhat.com>
28742         * gdbinit.in (pbb): Use debug fn.
28744 2013-04-02  Lawrence Crowl  <crowl@google.com>
28746         * sese.h (struct ivtype_map_elt_s): Remove unused.
28747         (extern debug_ivtype_map): Remove unused.
28748         (extern eq_ivtype_map_elts): Remove unused.
28749         * sese.c (debug_ivtype_map): Removed unused.
28750         (debug_ivtype_map_1): Removed unused.
28751         (debug_ivtype_elt): Remove unused.
28752         (eq_ivtype_map_elts): Remove unused.
28754 2013-04-02  Kai Tietz  <ktietz@redhat.com>
28756         PR target/52790
28757         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
28758         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
28759         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
28760         function.
28761         (legitimize_pe_coff_symbol): Likewise.
28762         (is_imported_p): New helper-function.
28763         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
28764         for Windows x64 targets.
28765         (ix86_expand_prologue): Optimize for pe-coff targets.
28766         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
28767         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
28768         medium/large code-model.
28769         (legitimize_pic_address): Likewise.
28770         (legitimize_tls_address): Likewise.
28771         (ix86_expand_call): Likewise.
28772         (x86_output_mi_thunk): Likewise.
28773         (get_dllimport_decl): Add new beimport argument.
28774         (construct_plt_address): Don't assert for x64 pe-coff targets.
28775         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
28776         targets.
28777         (SYMBOL_FLAG_STUBVAR): New macro.
28778         (SYMBOL_REF_STUBVAR_P): Likewise.
28779         * config/i386/winnt.c (stub_list): New structure.
28780         (stub_head): New local variable.
28781         (i386_pe_record_stub): New function.
28782         (i386_pe_file_end): Emit refptr-stubs.
28784 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
28786         PR rtl-optimization/56745
28787         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
28788         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
28790         PR c++/34949
28791         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
28792         and both of them are MEM_REFs, just compare first argument for
28793         equality and attempt to deal even with differing offsets.
28795         PR c++/34949
28796         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
28797         of gimple_clobber_p to be MEM_REF.
28798         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
28799         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
28800         after gimplification.
28801         * asan.c (get_mem_ref_of_assignment): Don't instrument
28802         gimple_clobber_p stmts.
28803         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
28804         gimple_clobber_p stmt if they have MEM_REF lhs and
28805         are dead because of another gimple_clobber_p stmt.
28806         * tree-ssa-live.c (clear_unused_block_pointer): Treat
28807         gimple_clobber_p stmts like debug stmts.
28808         (remove_unused_locals): Remove clobbers with MEM_REF lhs
28809         that refer to unused VAR_DECLs or uninitialized values.
28810         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
28811         gimple_clobber_p stmts if they refer to removed parameters.
28812         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
28813         formatting.
28815 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
28817         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
28818         using SWI48 mode attribute.
28820 2013-04-02  Wei Mi  <wmi@google.com>
28822         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
28823         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
28824         *<rotate_insn><mode>3_mask in i386.md.
28826 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
28828         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
28830 2013-04-02  Richard Biener  <rguenther@suse.de>
28832         PR tree-optimization/56778
28833         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28834         Runtime alias tests are not supported for gather loads.
28835         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
28836         stmts referenced from SSA operands before updating SSA form.
28838 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
28839             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28841         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
28842         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
28843         * config/arm/cortex-a53.md: New file.
28844         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
28845         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
28846         * config/arm/arm.c (arm_issue_rate): Likewise.
28847         * config/arm/arm-tune.md: Regenerate
28848         * config/arm/arm-tables.opt: Regenerate.
28849         * config/arm/arm-cores.def: Add cortex-a53.
28851 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
28853         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
28854         non-static link.
28856 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
28858         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
28859         scalar load/store operations using B/H registers.
28860         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
28862 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
28864         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
28865         scalar move.
28866         * config/aarch64/aarch64.c
28867         (aarch64_simd_scalar_immediate_valid_for_move): New.
28868         * config/aarch64/aarch64-protos.h
28869         (aarch64_simd_scalar_immediate_valid_for_move): New.
28870         * config/aarch64/constraints.md (Dh, Dq): New.
28871         * config/aarch64/iterators.md (hq): New.
28873 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
28875         * reorg.c (get_branch_condition): Deal with conditional returns.
28876         (fill_simple_delay_slots): Remove dead code dealing with jumps.
28878 2013-04-01  Wei Mi  <wmi@google.com>
28880         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
28881         Truncate operand 2 using %b asm operand modifier.
28882         (*<shift_insn><mode>3_mask): Ditto.
28883         (*<rotate_insn><mode>3_mask): Ditto.
28885 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
28887         PR middle-end/56798
28888         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
28890 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
28892         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
28893         of next_real_insn.
28894         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
28896 2013-03-30  Lawrence Crowl  <crowl@google.com>
28898         * dse.c (clear_alias_sets): Remove never set.
28899         (disqualified_clear_alias_sets): Remove never set.
28900         (clear_alias_mode_pool): Remove never set.
28901         (dse_step0): Remove condition that is never true.
28902         (canon_address): Remove condition that is never true.
28903         (dse_step7): Remove condition that is never true.
28904         (rest_of_handle_dse): Remove condition that is never true.
28905         (rest_of_handle_dse::did_global): Remove never read from above.
28906         (dse_step2_spill): Remove never called from above.
28907         (dse_step5_spill): Remove never called from above.
28909 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
28911         * doc/md.texi (Standard Names) <casesi>: Update documentation for
28912         JUMP_TABLE_DATA changes.
28913         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
28914         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
28915         (Insns) <jump_table_data>: New entry.
28916         * doc/tm.texi: Regenerate.
28918         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
28920         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
28921         for table jump at the end of a basic block using tablejump_p.
28922         * targhooks.c (default_invalid_within_doloop): Likewise.
28923         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
28924         target hook implementation that is identical to the default hook.
28925         (rs6000_invalid_within_doloop): Remove.
28927         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
28928         unused variable from tablejump_p call.
28930         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
28931         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
28932         (INSN_DELETED_P): Likewise.
28933         (emit_jump_table_data): New prototype.
28934         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
28935         after 4th as unused.
28936         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
28937         * sched-vis.c (print_insn): Likewise.
28938         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
28939         insn for compatibility with back ends that use next_active_insn to
28940         identify jump table data.
28941         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
28942         (remove_insn): Likewise.
28943         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
28944         to be emitted.
28945         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
28946         (emit_jump_table_data): New function.
28948         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
28949         basic block, a JUMP_TABLE_DATA never is.
28950         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
28951         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
28952         off from code handling real insns.
28953         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
28954         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
28955         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
28956         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
28957         is not a NONDEBUG_INSN_P.
28958         * ira-costs.c (scan_one_insn): Likewise.
28959         * jump.c (mark_all_labels): Likewise.
28960         (mark_jump_label_1): Likewise.
28961         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
28962         * lra.c (get_insn_freq): Expect all insns reaching here to be in
28963         a basic block.
28964         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
28965         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
28966         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
28967         JUMP_TABLE_DATA_P insns.
28968         (calculate_elim_costs_all_insns): Likewise.
28969         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
28970         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
28971         (delete_output_reload): Code style fixups.
28972         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
28973         insn flags on this non-insn.
28974         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
28975         as scheduling barriers, for pre-change compatibility.
28976         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
28977         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
28979         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
28980         redundant JUMP_TABLE_DATA_P test.
28981         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
28982         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
28983         (frv_for_each_packet): Likewise.
28984         * config/i386/i386.c (min_insn_size): Likewise.
28985         (ix86_avoid_jump_mispredicts): Likewise.
28986         * config/m32r/m32r.c (m32r_is_insn): Likewise.
28987         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
28988         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
28989         (mips16_insn_length): Robustify.
28990         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
28991         (mips16_split_long_branches): Likewise.
28992         * config/pa/pa.c (pa_combine_instructions): Likewise.
28993         * config/rs6000/rs6000.c (get_next_active_insn): Treat
28994         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
28995         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
28996         as contributing to pool range lengths.
28997         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
28998         Remove redundant JUMP_TABLE_DATA_P test.
28999         (sh_loop_align): Likewise.
29000         (split_branches): Likewise.
29001         (sh_insn_length_adjustment): Likewise.
29002         * config/spu/spu.c (get_branch_target): Likewise.
29004 2013-03-29  Jan Hubicka  <jh@suse.cz>
29006         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
29007         gcov streaming; stream hot bb threshold to ltrans.
29008         * predict.c (get_hot_bb_threshold): Break out from ....
29009         (maybe_hot_count_p): ... here.
29010         (set_hot_bb_threshold): New function.
29011         * lto-section-in.c (lto_section_name): Add profile.
29012         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
29013         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
29014         and data-streamer.h
29015         (histogram_entry): New structure.
29016         (histogram, histogram_pool): New global vars.
29017         (histogram_hash): New structure.
29018         (histogram_hash::hash): New method.
29019         (histogram_hash::equal): Likewise.
29020         (account_time_size): New function.
29021         (cmp_counts): New function.
29022         (dump_histogram): New function.
29023         (ipa_profile_generate_summary): New function.
29024         (ipa_profile_write_summary): New function.
29025         (ipa_profile_read_summary): New function.
29026         (ipa_profile): Decide on threshold.
29027         (pass_ipa_profile): Add ipa_profile_write_summary and
29028         ipa_profile_read_summary.
29029         * Makefile.in (ipa.o): Update dependencies.
29030         * lto-streamer.h (LTO_section_ipa_profile): New section.
29032 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
29034         * tree.h (VAR_P): New.
29036 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
29038         PR lto/56777
29039         * doc/invoke.texi ([-fwhole-program]): Fix typo.
29041 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
29043         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
29044         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
29045         (control_flow_insn_p): Likewise.
29046         * cfgrtl.c (duplicate_insn_chain): Likewise.
29047         * final.c (get_attr_length_1): Likewise.
29048         (shorten_branches): Likewise.
29049         (final_scan_insn): Likewise.
29050         * function.c (instantiate_virtual_regs): Likewise.
29051         * gcse.c (insert_insn_end_basic_block): Likewise.
29052         * ira-costs.c (scan_one_insn): Likewise.
29053         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
29054         * lra.c (check_rtl): Likewise.
29055         * reload1.c (elimination_costs_in_insn): Likewise.
29056         * reorg.c (follow_jumps): Likewise.
29058         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
29059         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
29060         (thumb_far_jump_used_p): Likewise.
29061         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
29062         (workaround_speculation): Likewise.
29063         (add_sched_insns_for_speculation): Likewise.
29064         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
29065         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
29066         (frv_for_each_packet): Likewise.
29067         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
29068         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
29069         (final_emit_insn_group_barriers): Likewise.
29070         * config/m32r/m32r.c (m32r_is_insn): Likewise.
29071         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
29072         (mips16_insn_length): Likewise.
29073         * config/pa/pa.c (pa_reorg): Likewise.
29074         (pa_combine_instructions): Likewise.
29075         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
29076         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
29077         (sh_reorg): Likewise.
29078         (split_branches): Likewise.
29079         * config/spu/spu.c (get_branch_target): Likewise.
29081         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
29082         JUMP_TABLE_DATA_P.
29084 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
29086         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
29087         Fix declaration name.
29089 2013-03-28  Lawrence Crowl  <crowl@google.com>
29091         * graphds.h (struct graph.indicies): Remove unused.
29092         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
29093         (SCOP_ORIGINAL_PDDRS): Remove unused.
29094         * sese.h (extern insert_loop_close_phis): Removed unused.
29095         (extern insert_guard_phis): Removed unused.
29096         (extern ivtype_map_elt_info): Removed unused.
29097         (new_ivtype_map_elt): Removed unused.
29098         * sese.c (ivtype_map_elt_info): Removed unused.
29100 2013-03-28  Lawrence Crowl  <crowl@google.com>
29102         * Makefile.in: Add several missing include dependences.
29103         (DUMPFILE_H): New.
29104         (test-dump.o): New.  This object is not added to any executable,
29105         but is present for ad-hoc testing.
29106         * bitmap.c
29107         (debug (const bitmap_head_def &)): New.
29108         (debug (const bitmap_head_def *)): New.
29109         * bitmap.h
29110         (extern debug (const bitmap_head_def &)): New.
29111         (extern debug (const bitmap_head_def *)): New.
29112         * cfg.c
29113         (debug (edge_def &)): New.
29114         (debug (edge_def *)): New.
29115         * cfghooks.c
29116         (debug (basic_block_def &)): New.
29117         (debug (basic_block_def *)): New.
29118         * dumpfile.h
29119         (dump_node (const_tree, int, FILE *)): Correct source file.
29120         * dwarf2out.c
29121         (debug (die_struct &)): New.
29122         (debug (die_struct *)): New.
29123         * dwarf2out.h
29124         (extern debug (die_struct &)): New.
29125         (extern debug (die_struct *)): New.
29126         * gimple-pretty-print.c
29127         (debug (gimple_statement_d &)): New.
29128         (debug (gimple_statement_d *)): New.
29129         * gimple-pretty-print.h
29130         (extern debug (gimple_statement_d &)): New.
29131         (extern debug (gimple_statement_d *)): New.
29132         * ira-build.c
29133         (debug (ira_allocno_copy &)): New.
29134         (debug (ira_allocno_copy *)): New.
29135         (debug (ira_allocno &)): New.
29136         (debug (ira_allocno *)): New.
29137         * ira-int.h
29138         (extern debug (ira_allocno_copy &)): New.
29139         (extern debug (ira_allocno_copy *)): New.
29140         (extern debug (ira_allocno &)): New.
29141         (extern debug (ira_allocno *)): New.
29142         * ira-lives.c
29143         (debug (live_range &)): New.
29144         (debug (live_range *)): New.
29145         * lra-int.h
29146         (debug (lra_live_range &)): New.
29147         (debug (lra_live_range *)): New.
29148         * lra-lives.c
29149         (debug (lra_live_range &)): New.
29150         (debug (lra_live_range *)): New.
29151         * omega.c
29152         (debug (omega_pb_d &)): New.
29153         (debug (omega_pb_d *)): New.
29154         * omega.h
29155         (extern debug (omega_pb_d &)): New.
29156         (extern debug (omega_pb_d *)): New.
29157         * print-rtl.c
29158         (debug (const rtx_def &)): New.
29159         (debug (const rtx_def *)): New.
29160         * print-tree.c
29161         (debug_tree (tree): Move within file.
29162         (debug_raw (const tree_node &)): New.
29163         (debug_raw (const tree_node *)): New.
29164         (dump_tree_via_hooks (const tree_node *, int)): New.
29165         (debug (const tree_node &)): New.
29166         (debug (const tree_node *)): New.
29167         (debug_verbose (const tree_node &)): New.
29168         (debug_verbose (const tree_node *)): New.
29169         (debug_head (const tree_node &)): New.
29170         (debug_head (const tree_node *)): New.
29171         (debug_body (const tree_node &)): New.
29172         (debug_body (const tree_node *)): New.
29173         (debug_vec_tree (tree): Move and reimplement in terms of dump.
29174         (debug (vec<tree, va_gc> &)): New.
29175         (debug (vec<tree, va_gc> *)): New.
29176         * rtl.h
29177         (extern debug (const rtx_def &)): New.
29178         (extern debug (const rtx_def *)): New.
29179         * sbitmap.c
29180         (debug_raw (simple_bitmap_def &)): New.
29181         (debug_raw (simple_bitmap_def *)): New.
29182         (debug (simple_bitmap_def &)): New.
29183         (debug (simple_bitmap_def *)): New.
29184         * sbitmap.h
29185         (extern debug (simple_bitmap_def &)): New.
29186         (extern debug (simple_bitmap_def *)): New.
29187         (extern debug_raw (simple_bitmap_def &)): New.
29188         (extern debug_raw (simple_bitmap_def *)): New.
29189         * sel-sched-dump.c
29190         (debug (vinsn_def &)): New.
29191         (debug (vinsn_def *)): New.
29192         (debug_verbose (vinsn_def &)): New.
29193         (debug_verbose (vinsn_def *)): New.
29194         (debug (expr_def &)): New.
29195         (debug (expr_def *)): New.
29196         (debug_verbose (expr_def &)): New.
29197         (debug_verbose (expr_def *)): New.
29198         (debug (vec<rtx> &)): New.
29199         (debug (vec<rtx> *)): New.
29200         * sel-sched-dump.h
29201         (extern debug (vinsn_def &)): New.
29202         (extern debug (vinsn_def *)): New.
29203         (extern debug_verbose (vinsn_def &)): New.
29204         (extern debug_verbose (vinsn_def *)): New.
29205         (extern debug (expr_def &)): New.
29206         (extern debug (expr_def *)): New.
29207         (extern debug_verbose (expr_def &)): New.
29208         (extern debug_verbose (expr_def *)): New.
29209         (extern debug (vec<rtx> &)): New.
29210         (extern debug (vec<rtx> *)): New.
29211         * sel-sched-ir.h
29212         (_list_iter_cond_expr): Make inline instead of static.
29213         * sreal.c
29214         (debug (sreal &)): New.
29215         (debug (sreal *)): New.
29216         * sreal.h
29217         (extern debug (sreal &)): New.
29218         (extern debug (sreal *)): New.
29219         * tree.h
29220         (extern debug_raw (const tree_node &)): New.
29221         (extern debug_raw (const tree_node *)): New.
29222         (extern debug (const tree_node &)): New.
29223         (extern debug (const tree_node *)): New.
29224         (extern debug_verbose (const tree_node &)): New.
29225         (extern debug_verbose (const tree_node *)): New.
29226         (extern debug_head (const tree_node &)): New.
29227         (extern debug_head (const tree_node *)): New.
29228         (extern debug_body (const tree_node &)): New.
29229         (extern debug_body (const tree_node *)): New.
29230         (extern debug (vec<tree, va_gc> &)): New.
29231         (extern debug (vec<tree, va_gc> *)): New.
29232         * tree-cfg.c
29233         (debug (struct loop &)): New.
29234         (debug (struct loop *)): New.
29235         (debug_verbose (struct loop &)): New.
29236         (debug_verbose (struct loop *)): New.
29237         * tree-dump.c: Add header dependence.
29238         * tree-flow.h
29239         (extern debug (struct loop &)): New.
29240         (extern debug (struct loop *)): New.
29241         (extern debug_verbose (struct loop &)): New.
29242         (extern debug_verbose (struct loop *)): New.
29243         * tree-data-ref.c
29244         (debug (data_reference &)): New.
29245         (debug (data_reference *)): New.
29246         (debug (vec<data_reference_p> &)): New.
29247         (debug (vec<data_reference_p> *)): New.
29248         (debug (vec<ddr_p> &)): New.
29249         (debug (vec<ddr_p> *)): New.
29250         * tree-data-ref.h
29251         (extern debug (data_reference &)): New.
29252         (extern debug (data_reference *)): New.
29253         (extern debug (vec<data_reference_p> &)): New.
29254         (extern debug (vec<data_reference_p> *)): New.
29255         (extern debug (vec<ddr_p> &)): New.
29256         (extern debug (vec<ddr_p> *)): New.
29257         * tree-ssa-alias.c
29258         (debug (pt_solution &)): New.
29259         (debug (pt_solution *)): New.
29260         * tree-ssa-alias.h
29261         (extern debug (pt_solution &)): New.
29262         (extern debug (pt_solution *)): New.
29263         * tree-ssa-alias.c
29264         (debug (_var_map &)): New.
29265         (debug (_var_map *)): New.
29266         (debug (tree_live_info_d &)): New.
29267         (debug (tree_live_info_d *)): New.
29268         * tree-ssa-alias.h
29269         (extern debug (_var_map &)): New.
29270         (extern debug (_var_map *)): New.
29271         (extern debug (tree_live_info_d &)): New.
29272         (extern debug (tree_live_info_d *)): New.
29274 2013-03-28  Jan Hubicka  <jh@suse.cz>
29276         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
29278 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
29280         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
29281         record only when desired or required.
29283 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
29285         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
29286         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
29288 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29290         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
29291         (*andsi3_compare0_uxtw): New pattern.
29292         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
29293         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
29295 2013-03-28  Jan Hubicka  <jh@suse.cz>
29297         * data-streamer-in.c (streamer_read_gcov_count): New function.
29298         * gimple-streamer-out.c: Include value-prof.h.
29299         (output_gimple_stmt): Output histogram.
29300         (output_bb): Use streamer_write_gcov_count.
29301         * value-prof.c: Include data-streamer.h
29302         (dump_histogram_value): Add HIST_TYPE_MAX.
29303         (stream_out_histogram_value): New function.
29304         (stream_in_histogram_value): New function.
29305         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
29306         (stream_out_histogram_value, stream_in_histogram_value): Declare.
29307         * data-streamer-out.c (streamer_write_gcov_count): New function.
29308         (streamer_write_gcov_count_stream): New function.
29309         * lto-cgraph.c (lto_output_edge): Update counter streaming.
29310         (lto_output_node): Likewise.
29311         (input_node, input_edge): Likewise.
29312         * lto-streamer-out.c (output_cfg): Update streaming.
29313         * lto-streamer-in.c (input_cfg): Likewise.
29314         * data-streamer.h (streamer_write_gcov_count,
29315         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
29316         * gimple-streamer-in.c: Include value-prof.h
29317         (input_gimple_stmt): Input histograms.
29318         (input_bb): Update profile streaming.
29320 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
29322         * genmodes.c (emit_max_int): New function.
29323         (emit_insn_modes_h): Added call to emit_max_function.
29324         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
29325         Added doc.
29326         * machmode.def: Fixed comment.
29328 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
29330         * combine.c (try_combine): Removed useless assert.
29331         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
29333 2013-03-28  Marek Polacek  <polacek@redhat.com>
29334             Richard Biener  <rguenther@suse.de>
29336         PR tree-optimization/56695
29337         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
29338         build signed result of a vector comparison.
29339         * tree-cfg.c (verify_gimple_comparison): Check that a result
29340         of a vector comparison has signed type.
29342 2013-03-28  Richard Biener  <rguenther@suse.de>
29344         PR tree-optimization/37021
29345         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
29346         do not restrict gaps between groups.
29347         * tree-vect-stmts.c (vectorizable_load): Properly account for
29348         a gap between groups.
29350 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
29352         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
29353         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
29354         is not enabled.
29356 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
29358         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
29359         * doc/extend.texi (Named Address Spaces): Ditto.
29360         (Variable Attributes): Ditto.
29362 2013-03-27  Kai Tietz  <ktietz@redhat.com>
29364         * config.build: Add support for cygwin x64 target.
29365         * config.gcc: Likewise.
29366         * config.host: Likewise.
29367         * configure.ac: Likewise
29368         * configure: Regenerated.
29370 2013-03-27  Kai Tietz  <ktietz@redhat.com>
29372         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
29373         * config/i386/t-cygwin-w64: New file.
29374         * config/i386/cygwin-w64.h: New file.
29375         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
29376         and add support for x64-cygwin target.
29377         (CPP_SPEC): Likewise.
29378         (CXX_WRAP_SPEC_LIST): Undefine before define.
29379         (LIBGCJ_SONAME): Use 15 as version.
29381 2013-03-27  Richard Biener  <rguenther@suse.de>
29383         PR tree-optimization/56716
29384         * tree-ssa-structalias.c (perform_var_substitution): Adjust
29385         dumping for ref nodes.
29387 2013-03-27  Martin Jambor  <mjambor@suse.cz>
29389         PR tree-optimization/55334
29390         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
29391         restricted pointers to arrays.
29393 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
29395         * Makefile.in (.SUFFIXES): Add .cc.
29396         (.c.o): Apply same recipe for implicit rule .cc.o.
29398 2013-03-27  Richard Biener  <rguenther@suse.de>
29400         PR tree-optimization/37021
29401         * tree-vect-data-refs.c (vect_check_strided_load): Allow
29402         REALPART/IMAGPART_EXPRs around the supported refs.
29403         * tree-ssa-structalias.c (find_func_aliases): Assume that
29404         floating-point values are not used to transfer pointers.
29406 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
29408         * target.def (TARGET_HAS_IFUNC_P): New target hook.
29409         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
29410         * doc/tm.texi: Regenerate.
29411         * targhooks.h (default_has_ifunc_p): New.
29412         * targhooks.c (default_has_ifunc_p): Ditto.
29413         * config/linux-protos.h: New file.
29414         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
29415         hook for linux which disables support of indirect functions in android.
29416         * config/linux-android.c: New file.
29417         * config/t-linux-android.c: Ditto.
29418         * config.gcc: Added new object file linux-android.o.
29419         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
29420         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
29421         * varasm.c (do_assemble_alias): Likewise.
29422         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
29423         doesn't support indirect functions.
29424         * configure: Regenerate.
29426 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
29428         PR target/56102
29429         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
29430         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
29431         mult-word mode.
29433 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29435         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
29437 2013-03-27  Terry Guo  <terry.guo@arm.com>
29439         * config/arm/arm-cores.def: Added core cortex-r7.
29440         * config/arm/arm-tune.md: Regenerated.
29441         * config/arm/arm-tables.opt: Regenerated.
29442         * doc/invoke.texi: Added entry for core cortex-r7.
29444 2013-03-27  Walter Lee  <walt@tilera.com>
29446         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
29447         double-decrement of next_scratch_regno.
29449 2013-03-27  Walter Lee  <walt@tilera.com>
29451         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
29452         input operands.
29453         (insn_v1mulus): Ditto.
29454         (insn_v2muls): Ditto.
29456 2013-03-27  Walter Lee  <walt@tilera.com>
29458         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
29459         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
29461 2013-03-27  Walter Lee  <walt@tilera.com>
29463         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
29464         (*sibcall_value): Ditto.
29466 2013-03-27  Walter Lee  <walt@tilera.com>
29468         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
29469         (insn_mnz_v8qi): ... this ...
29470         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
29471         vector equivalent.
29472         (insn_v<n>mnz): Replaced by ...
29473         (insn_v1mnz): ... this ...
29474         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
29475         equivalent.
29476         (insn_mz_<mode>): Replaced by ...
29477         (insn_mz_v8qi): ... this ...
29478         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
29479         vector equivalent.
29480         (insn_v<n>mz): Replaced by ...
29481         (insn_v1mz): ... this ...
29482         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
29483         equivalent.
29485 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
29487         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
29489 2013-03-26  Roland McGrath  <mcgrathr@google.com>
29491         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
29492         than fprintf with a non-constant, non-format string.
29494 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
29496         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
29497         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
29498         operand 0 predicate.
29499         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
29500         attribute.  Use general_x64nomem_operand as operand 1 predicate.
29501         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
29502         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
29503         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
29504         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
29505         (mov<mode>_insv_1): Remove expander.  Merge insn with
29506         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
29507         Use general_x64nomem_operand as operand 1 predicate.
29508         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
29509         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
29510         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
29511         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
29512         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
29513         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
29514         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
29515         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
29516         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
29517         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
29518         (general_x64nomem_operand): Ditto.
29520 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29522         * config/rtems.opt: Add -pthread option.
29524 2013-03-26  Richard Biener  <rguenther@suse.de>
29526         * alias.c (find_base_term): Avoid redundant and not used recursion.
29527         (base_alias_check): Get the initial base term from the caller.
29528         (true_dependence_1): Compute and pass base terms to base_alias_check.
29529         (write_dependence_p): Likewise.
29530         (may_alias_p): Likewise.
29532 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
29534         * config/aarch64/aarch64.c (aarch64_classify_address): Support
29535         PC-relative load in SI modes and above only.
29537 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
29539         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
29540         * config/arm/iwmmxt.md (WCGR0): Update.
29541         (WCGR1, WCGR2, WCGR3): Likewise.
29543 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
29545         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
29546         Use x64 and nox64 isa attributes.
29548 2013-03-26  Richard Biener  <rguenther@suse.de>
29550         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
29551         alignment computations and rely on get_object_alignment_1
29552         for the !TYPE_P case.
29553         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
29555 2013-03-26  Walter Lee  <walt@tilera.com>
29557         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
29558         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
29560 2013-03-25  Jeff Law  <law@redhat.com>
29562         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
29563         check for INTEGRAL_TYPE_P that was missing due to checking in
29564         wrong version of prior patch.
29566 2013-03-25  Walter Lee  <walt@tilera.com>
29568         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
29569         TILEGX_INSN_SHUFFLEBYTES1.
29570         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
29571         shufflebytes1.
29572         (tilegx_builtins): Ditto.
29573         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
29575 2013-03-25  Walter Lee  <walt@tilera.com>
29577         * config/tilegx/tilegx.md (floatsisf2): New pattern.
29578         (floatunssisf2): New pattern.
29579         (floatsidf2): New pattern.
29580         (floatunssidf2): New pattern.
29582 2013-03-25  Walter Lee  <walt@tilera.com>
29584         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
29585         tests for constraint J, K, N, P.
29587 2013-03-25  Walter Lee  <walt@tilera.com>
29589         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
29590         Use indirect/pcrel encoding.
29591         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
29592         Ditto.
29594 2013-03-25  Steve Ellcey  <sellcey@mips.com>
29596         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
29597         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
29598         * config/mips/mips.c (mips_option_override): Set IMADD default.
29599         * config/mips/mips.h (PTF_AVOID_IMADD): New.
29600         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
29601         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
29602         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
29603         * doc/invoke.texi (-mimadd/-mno-imadd): New.
29605 2013-03-25  Jeff Law  <law@redhat.com>
29607         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
29608         slightly to avoid creating and folding useless trees.  Simplify
29609         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
29611 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
29613         * config/i386/i386.md (*zero_extendsidi2): Merge with
29614         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
29615         * config/i386/predicates.md (x86_64_zext_operand): Rename from
29616         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
29617         targets.  Clarify comment.
29619 2013-03-25  Martin Jambor  <mjambor@suse.cz>
29621         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
29622         pass-through jump functions differently.
29623         (ipa_read_jump_function): Likewise.  Also use setter functions to set
29624         up jump functions.
29626 2013-03-25  Martin Jambor  <mjambor@suse.cz>
29628         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
29629         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
29630         process it.
29631         (ipa_get_indirect_edge_target): New function.
29632         (devirtualization_time_bonus): New parameter known_aggs, pass it to
29633         ipa_get_indirect_edge_target.  Update all callers.
29634         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
29635         ipa_get_indirect_edge_target_1 instead of calling
29636         ipa_get_indirect_edge_target.
29637         (create_specialized_node): Pass aggvlas to
29638         ipcp_discover_new_direct_edges.
29640 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29642         * config/arm/arm.md (f_sels, f_seld): New types.
29643         (*cmov<mode>): New pattern.
29644         * config/arm/predicates.md (arm_vsel_comparison_operator): New
29645         predicate.
29647 2013-03-25  Kai Tietz  <ktietz@redhat.com>
29649         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
29650         POSIX-printf for mingw-hosted  builds.
29652 2013-03-25  Richard Biener  <rguenther@suse.de>
29654         PR middle-end/56694
29655         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
29656         must-not-throw stmt location.
29658 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29660         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
29661         Emit load-acquire versions when acq is true.
29662         (arm_emit_store_exclusive): Add rel parameter.
29663         Emit store-release versions when rel is true.
29664         (arm_split_compare_and_swap): Use acquire-release instructions
29665         instead.
29666         of barriers when appropriate.
29667         (arm_split_atomic_op): Likewise.
29668         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
29669         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
29670         (VUNSPEC_SLX): Likewise.
29671         (VUNSPEC_LDA): Likewise.
29672         (VUNSPEC_STL): Likewise.
29673         * config/arm/sync.md (atomic_load<mode>): New pattern.
29674         (atomic_store<mode>): Likewise.
29675         (arm_load_acquire_exclusive<mode>): Likewise.
29676         (arm_load_acquire_exclusivesi): Likewise.
29677         (arm_load_acquire_exclusivedi): Likewise.
29678         (arm_store_release_exclusive<mode>): Likewise.
29680 2013-03-25  Catherine Moore  <clm@codesourcery.com>
29682         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
29683         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
29684         * config/mip/predicates.md (lwsp_swsp_operand,
29685         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
29686         sb16_operand, db4_operand, db7_operand, ib3_operand,
29687         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
29688         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
29689         andi16_operand): New predicates.
29690         * config/mips/mips.md (compression): New attribute.
29691         (enabled): New attribute.
29692         (length): Consider compression in computing length.
29693         (shift_compression): New code attribute.
29694         (*add<mode>3): New operands. Record compression.
29695         (sub<mode>3): Likewise.
29696         (one_cmpl<mode>2): Likewise.
29697         (*and<mode>3): Likewise.
29698         (*ior<mode>3): Likewise.
29699         (unnamed pattern for xor): Likewise.
29700         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
29701         (*<optab><mode>3): Likewise.
29702         (*mov<mode>_internal: Likewise.
29703         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
29704         (mips_unsigned_immediate_p): New.
29705         (umips_lwsp_swsp_address_p): New.
29706         (m16_based_address_p): New.
29707         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
29708         (mips_unsigned_immediate_p): New prototype.
29709         (lwsp_swsp_address_p): New prototype.
29710         (m16_based_address_p): New prototype.
29711         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
29712         (mips_signed_immediate_p): New function.
29713         (m16_based_address_p): New function.
29714         (lwsp_swsp_address_p): New function.
29715         (mips_print_operand_punctuation): Recognize short delay slot insns
29716         for microMIPS.add<mode>3"
29718 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29720         PR target/56720
29721         * config/arm/iterators.md (v_cmp_result): New mode attribute.
29722         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
29724 2013-03-25  Richard Biener  <rguenther@suse.de>
29726         PR tree-optimization/56689
29727         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
29728         any edge.
29730 2013-03-25  Richard Biener  <rguenther@suse.de>
29732         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
29733         of bitmap.
29734         (memory_references): Likewise.
29735         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
29736         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
29737         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
29738         (gather_mem_refs_in_loops): Fold into ...
29739         (analyze_memory_references): ... this.  Move initialization
29740         to tree_ssa_lim_initialize.
29741         (fill_always_executed_in): Rename to ...
29742         (fill_always_executed_in_1): ... this.
29743         (fill_always_executed_in): Move contains_call computation to
29744         this new function from ...
29745         (tree_ssa_lim_initialize): ... here.
29746         (tree_ssa_lim): Call fill_always_executed_in.
29748 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
29750         * postreload.c (reload_combine): Fix code detecting returns.
29752 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
29754         * function.c (emit_use_return_register_into_block): On cc0 targets,
29755         do not emit the sequence between cc0 setter and user.
29757 2013-03-25  Kai Tietz  <ktietz@redhat.com>
29759         * config/i386/predicates.md (local_symbolic_operand): Interpret
29760         dll-imported symbols as none-local.
29762 2013-03-25  Richard Biener  <rguenther@suse.de>
29764         * tree-ssa-loop-im.c (struct depend): Remove.
29765         (struct lim_aux_data): Make depends a vec of gimples.
29766         (free_lim_aux_data): Adjust.
29767         (add_dependency): Likewise.
29768         (set_level): Likewise.
29770 2013-03-25  Richard Biener  <rguenther@suse.de>
29772         PR middle-end/56434
29773         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
29774         the pointer returned by calls with ECF_MALLOC set.
29776 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
29778         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
29780 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
29782         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
29783         using MMXMODE mode iterator.
29784         (*move<mode>_internal): Merge with *movv2sf_internal and
29785         *movv2sf_internal_rex64 using MMXMODE mode iterator.
29787 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
29789         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
29790         (record_last_mem_set_info): Likewise.
29792         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
29793         of XNEWVEC followed by memset.
29794         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
29796 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
29798         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29799         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
29800         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
29801         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
29802         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
29803         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
29804         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
29805         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
29806         BARRIER_P instead of GET_CODE.
29808 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
29810         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
29811         inaccuracy in the probing code.
29813         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
29814         (ctrapdi4): Likewise.
29816 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
29818         * calls.c (expand_call): Add missing guard to code handling return
29819         of non-BLKmode structures in MSB.
29820         * function.c (expand_function_end): Likewise.
29822 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
29824         * combine.c (try_combine): Adjust comment.  Do not add the set of
29825         insn #0 if the destination indirectly is set or dies in insn #2.
29826         Tidy up code to distribute a new note.
29828 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
29830         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
29831         also for alternatives 16 and 17.
29833 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
29835         * config/i386/sse.md (*mov<mode>_internal): Merge with
29836         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
29837         Emit insn template depending on type attribute.  Use
29838         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
29839         movd instead of movq mnemonic for interunit moves.  Rewrite mode
29840         attribute calculation.  Remove unit attribute calculation.
29841         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
29842         Set prefix_data16 attribute for DImode ssemov types.
29843         Use Ym instead of y for SSE-MMX conversion alternatives.
29844         Reorder operand constraints.
29846 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
29848         * df.h (df_insn_delete): Adjust prototype.
29849         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
29850         and let it decide whether mark the basic block dirty.
29851         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
29852         * df-scan.c (df_insn_info_delete): New helper function, split
29853         off from df_insn_delete.
29854         (df_scan_free_bb_info): Use it.
29855         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
29856         Likewise.
29857         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
29858         that the insn is actually an insn and it has a non-NULL basic block.
29859         Do not mark basic block dirty if only deleting a DEBUG_INSN.
29861 2013-03-22  Richard Biener  <rguenther@suse.de>
29863         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
29864         dep_ref members.
29865         (mem_ref_alloc): Do not allocate them.
29866         (refs_independent_p): Do not query or maintain a cache.
29868 2013-03-22  Richard Biener  <rguenther@suse.de>
29870         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
29871         (gather_mem_refs_in_loops): Do not compute it.
29872         (analyze_memory_references): Do not allocate it.
29873         (tree_ssa_lim_finalize): Do not free it.
29874         (for_all_locs_in_loop): Do not query all_refs_in_loop.
29876 2013-03-22  Richard Biener  <rguenther@suse.de>
29878         * is-a.h (as_a): Use gcc_checking_assert.
29880 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
29882         * config/aarch64/aarch64.c (aarch64_print_operand): New
29883         format specifier for printing a constant in hex.
29884         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
29885         format specifier for printing second operand.
29887 2013-03-22  Richard Biener  <rguenther@suse.de>
29889         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
29890         bitmaps.
29891         (gather_mem_refs_in_loops): Perform store accumulation here.
29892         (create_vop_ref_mapping_loop): Remove.
29893         (create_vop_ref_mapping): Likewise.
29894         (analyze_memory_references): Initialize refs_stored_in_loop.
29895         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
29896         (record_indep_loop): Remove.
29897         (record_dep_loop): New function.
29898         (ref_indep_loop_p_1): Adjust to only walk over references
29899         in the loop, not its subloops.
29900         (ref_indep_loop_p): Rename to ...
29901         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
29902         maintaining a more fine-grained cache.
29903         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
29904         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
29906 2013-03-22  Richard Biener  <rguenther@suse.de>
29908         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
29909         (struct mem_ref): Make accesses_in_loop a vec of a vec of
29910         aggregate mem_ref_loc.
29911         (free_mem_ref_locs): Inline into ...
29912         (memref_free): ... this and adjust.
29913         (mem_ref_alloc): Adjust.
29914         (mem_ref_locs_alloc): Remove.
29915         (record_mem_ref_loc): Adjust.
29916         (get_all_locs_in_loop): Rewrite into ...
29917         (for_all_locs_in_loop): ... this iterator.
29918         (rewrite_mem_ref_loc): New functor.
29919         (rewrite_mem_refs): Use for_all_locs_in_loop.
29920         (sm_set_flag_if_changed): New functor.
29921         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
29922         (ref_always_accessed): New functor.
29923         (ref_always_accessed_p): Use for_all_locs_in_loop.
29925 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
29927         * tree-pass.h (PROP_gimple_lvec): New.
29928         * passes.c (dump_properties): Handle PROP_gimple_lvec.
29929         (init_optimization_passes): Move pass_lower_vector.
29930         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
29931         PROP_gimple_lvec.
29932         (pass_lower_vector): Provide PROP_gimple_lvec.
29933         (pass_lower_vector_ssa): Likewise.
29934         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
29936 2013-03-21  Mark Wielaard  <mjw@redhat.com>
29938         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
29940 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
29942         * config/i386/i386.md (*movdi_internal): Disparage slightly
29943         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
29944         conversion alternatives.
29946 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
29948         PR middle-end/48087
29949         * diagnostic.def (DK_WERROR): New kind.
29950         * diagnostic.h (werrorcount): Define.
29951         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
29952         promoted to DK_ERROR, increment DK_WERROR counter instead of
29953         DK_ERROR counter.
29954         * toplev.c (toplev_main): Call print_ignored_options even if
29955         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
29956         even if just werrorcount is non-zero.
29958         PR debug/55608
29959         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
29960         on failure.
29961         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
29962         (string_cst_pool_decl): New function.
29963         (optimize_one_addr_into_implicit_ptr): New function.
29964         (resolve_addr_in_expr): Optimize DWARF location expression
29965         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
29966         which doesn't live in memory, but has DW_AT_location or
29967         DW_AT_const_value, or refers to a string literal, into
29968         DW_OP_GNU_implicit_pointer.
29969         (optimize_location_into_implicit_ptr): New function.
29970         (resolve_addr): If removing DW_AT_location of a variable because
29971         it was DW_OP_addr of address of the variable, but the variable doesn't
29972         live in memory, try to emit const value attribute for the initializer.
29974 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
29976         * tree.h (VECTOR_TYPE_P): New macro.
29977         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
29978         TYPE_MODE): Use it.
29979         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
29980         VEC_COND_EXPR cannot be lvalues.
29981         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
29983 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
29985         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
29986         Restrict the transformation to equal modes.
29988 2013-03-21  Richard Biener  <rguenther@suse.de>
29990         PR tree-optimization/39326
29991         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
29992         (MEM_ANALYZABLE): Adjust.
29993         (record_mem_ref_loc): Move bitmap ops ...
29994         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
29995         unanalyzable refs, do not record locations for it.
29996         (analyze_memory_references): Allocate ref zero as shared
29997         unanalyzable ref.
29998         (refs_independent_p): Do not test for unanalyzed mems here.
29999         (ref_indep_loop_p_1): Special-case disambiguation against
30000         the unanalyzed ref.
30001         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
30003 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
30005         * config/arm/arm-protos.h (tune_params): Add
30006         prefer_neon_for_64bits field.
30007         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
30008         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
30009         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
30010         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
30011         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
30012         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
30013         (arm_option_override): Handle -mneon-for-64bits new option.
30014         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
30015         (prefer_neon_for_64bits): Declare new variable.
30016         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
30017         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
30018         (arch_enabled): Handle new arch types. Remove support for onlya8
30019         and nota8.
30020         (one_cmpldi2): Use new arch names.
30021         (zero_extend<mode>di2, extend<mode>di2): Ditto.
30022         * config/arm/arm.opt (mneon-for-64bits): Add option.
30023         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
30024         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
30025         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
30026         of onlya8.
30027         * doc/invoke.texi (-mneon-for-64bits): Document.
30029 2013-03-21  Richard Biener  <rguenther@suse.de>
30031         PR tree-optimization/39326
30032         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
30033         (sort_bbs_in_loop_postorder_cmp): New function.
30034         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
30036 2013-03-21  Richard Biener  <rguenther@suse.de>
30038         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
30039         (vect_insert_into_interleaving_chain): Likewise.
30040         (vect_drs_dependent_in_basic_block): Inline ...
30041         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
30042         split out from ...
30043         (vect_analyze_data_ref_dependence): ... here.  Simplify.
30044         (vect_check_interleaving): Simplify.
30045         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
30046         (vect_slp_analyze_data_ref_dependences): ... this new function.
30047         (dr_group_sort_cmp): New function.
30048         (vect_analyze_data_ref_accesses): Compute data-reference groups
30049         here instead of in vect_analyze_data_ref_dependence.  Use
30050         a more efficient algorithm.
30051         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
30052         vect_slp_analyze_data_ref_dependences.  Call
30053         vect_analyze_data_ref_accesses earlier.
30054         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
30055         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
30056         (vect_slp_analyze_data_ref_dependences): New prototype.
30058 2013-03-21  Richard Biener  <rguenther@suse.de>
30060         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
30061         ref is stored in the loop.
30062         (find_refs_for_sm): Walk only over all stores.
30063         (store_motion_loop): Allocate from lim_bitmap_obstack.
30064         (store_motion): Likewise.
30066 2013-03-21  Richard Biener  <rguenther@suse.de>
30068         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
30069         Update virtual SSA form.
30071 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30073         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
30074         * configure: Regenerate.
30075         * config.in: Regenerate.
30076         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
30077         if !HAVE_LD_EH_FRAME_CIEV3.
30079 2013-03-21  Richard Biener  <rguenther@suse.de>
30081         * tree-cfg.c (verify_expr_no_block): New function.
30082         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
30083         nor DECL_VALUE_EXPR have locations with associated blocks.
30084         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
30085         (clear_unused_block_pointer): Remove code dealing with
30086         blocks in DECL_DEBUG_EXPR locations.
30088 2013-03-21  Richard Biener  <rguenther@suse.de>
30090         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
30091         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
30092         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
30093         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
30094         instead of DECL_DEBUG_EXPR_IS_FROM.
30095         * gimplify.c (gimplify_modify_expr): Likewise.
30096         * tree-cfg.c (verify_expr_location_1): Likewise.
30097         * tree-complex.c (create_one_component_var): Likewise.
30098         * tree-sra.c (create_access_replacement): Likewise.
30099         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
30100         (clear_unused_block_pointer): Likewise.
30101         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
30102         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
30103         * var-tracking.c (var_debug_decl): Likewise.
30104         (track_expr_p): Likewise.
30105         * tree-inline.c (add_local_variables): Likewise.  Set
30106         DECL_HAS_DEBUG_EXPR_P after copying it.
30107         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
30108         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
30110 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
30112         PR bootstrap/56656
30113         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
30114         * configure: Regenerate.
30115         * config.in: Regenerate.
30116         * config/i386/i386.md (*movdf_internal): Use
30117         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
30118         movd instead of movq mnemonic for interunit moves.
30119         (*movdi_internal): Ditto.
30121 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30123         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
30124         (abd<mode>_3): New pattern.
30125         (aba<mode>_3): New pattern.
30126         (fabd<mode>_3): New pattern.
30128 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30130         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
30131         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
30132         occurrence of REGISTER_PREFIX as its empty string.
30134 2013-03-20  Jeff Law  <law@redhat.com>
30136         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
30137         addititional equivalences for equality comparisons between an SSA_NAME
30138         and a constant where the SSA_NAME was set from a widening conversion.
30140 2013-03-20  Walter Lee  <walt@tilera.com>
30142         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
30144 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
30146         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
30147         depending on type attribute.
30148         (*movti_internal): Ditto.
30149         (*movtf_internal): Ditto.
30150         (*movxf_internal): Ditto.
30151         (*movdf_internal): Ditto.
30152         (*movsf_internal): Ditto.
30154 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
30156         * config/i386/i386.md (*movti_internal): Set prefix attribute to
30157         maybe_vex for sselog1 and ssemov types.
30158         (*movdi_internal): Reorder operand constraints.
30159         (*movsi_internal): Ditto.  Set prefix attribute to
30160         maybe_vex for sselog1 and ssemov types.
30161         (*movtf_internal): Set prefix attribute to maybe_vex
30162         for sselog1 and ssemov types.
30163         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
30164         DImode ssemov types.  Reorder operand constraints.
30165         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
30166         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
30167         attribute for SImode ssemov types.  Reorder operand constraints.
30169 2013-03-20  Martin Jambor  <mjambor@suse.cz>
30171         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
30172         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
30174 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
30176         * config/rs6000/predicates.md (indexed_address, update_address_mem
30177         update_indexed_address_mem): New predicates.
30178         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
30179         attribute for load/store instructions.
30180         * config/rs6000/dfp.md (movsd_store): Likewise.
30181         (movsd_load): Likewise.
30182         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
30183         (unnamed HI->DI extend define_insn): Likewise.
30184         (unnamed SI->DI extend define_insn): Likewise.
30185         (unnamed QI->SI extend define_insn): Likewise.
30186         (unnamed QI->HI extend define_insn): Likewise.
30187         (unnamed HI->SI extend define_insn): Likewise.
30188         (unnamed HI->SI extend define_insn): Likewise.
30189         (extendsfdf2_fpr): Likewise.
30190         (movsi_internal1): Likewise.
30191         (movsi_internal1_single): Likewise.
30192         (movhi_internal): Likewise.
30193         (movqi_internal): Likewise.
30194         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
30195         attribute for load/store instructions.
30196         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
30197         instructions.
30198         (mov<mode>_softfloat): Likewise.
30199         (mov<mode>_hardfloat32): Likewise.
30200         (mov<mode>_hardfloat64): Likewise.
30201         (mov<mode>_softfloat64): Likewise.
30202         (movdi_internal32): Likewise.
30203         (movdi_internal64): Likewise.
30204         (probe_stack_<mode>): Likewise.
30206 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
30208         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
30209         floating point, and decimal floating point to reload iterator.
30211         * config/rs6000/constraints.md (wl constraint): New constraints to
30212         return FLOAT_REGS if certain options are used to reduce the number
30213         of separate patterns that exist in the file.
30214         (wx constraint): Likewise.
30215         (wz constraint): Likewise.
30217         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30218         -mdebug=reg, print wg, wl, wx, and wz constraints.
30219         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30220         Initialize the reload functions for 64-bit binary/decimal floating
30221         point types.
30222         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30223         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30224         create the buffer on the stack to overcome not having a 32-bit
30225         load and store.
30226         (rs6000_emit_move): Likewise.
30227         (rs6000_secondary_memory_needed_rtx): Likewise.
30228         (rs6000_alloc_sdmode_stack_slot): Likewise.
30229         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30230         via xxlxor, just like DFmode 0.0.
30232         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
30233         define as 1 if we are running on a power7 or newer.
30234         (enum r6000_reg_class_enum): Add new constraints.
30236         * config/rs6000/dfp.md (movsd): Delete, combine with binary
30237         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
30238         with other moves by using conditional constraits (wg).  Use LFIWZX
30239         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
30240         (movsd splitter): Likewise.
30241         (movsd_hardfloat): Likewise.
30242         (movsd_softfloat): Likewise.
30244         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
30245         binary and decimal floating point moves.
30246         (fmove_ok): New attributes to combine binary and decimal floating
30247         point moves, and to combine power6x (mfpgpr) moves along normal
30248         floating moves.
30249         (real_value_to_target): Likewise.
30250         (f32_lr): Likewise.
30251         (f32_lm): Likewise.
30252         (f32_li): Likewise.
30253         (f32_sr): Likewise.
30254         (f32_sm): Likewise.
30255         (f32_si): Likewise.
30256         (movsf): Combine binary and decimal floating point moves.  Combine
30257         power6x (mfpgpr) moves with other moves by using conditional
30258         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
30259         (mov<mode> for SFmode/SDmode); Likewise.
30260         (SFmode/SDmode splitters): Likewise.
30261         (movsf_hardfloat): Likewise.
30262         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
30263         (movsf_softfloat): Likewise.
30264         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
30266         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
30267         wx and wz constraints.
30269         * config/rs6000/constraints.md (wg constraint): New constraint to
30270         return FLOAT_REGS if -mmfpgpr (power6x) was used.
30272         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
30273         constraint.
30275         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30276         -mdebug=reg, print wg, wl, wx, and wz constraints.
30277         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30278         Initialize the reload functions for 64-bit binary/decimal floating
30279         point types.
30280         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30281         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30282         create the buffer on the stack to overcome not having a 32-bit
30283         load and store.
30284         (rs6000_emit_move): Likewise.
30285         (rs6000_secondary_memory_needed_rtx): Likewise.
30286         (rs6000_alloc_sdmode_stack_slot): Likewise.
30287         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30288         via xxlxor, just like DFmode 0.0.
30290         * config/rs6000/dfp.md (movdd): Delete, combine with binary
30291         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
30292         with other moves by using conditional constraits (wg).  Use LFIWZX
30293         and STFIWX for loading SDmode on power7.
30294         (movdd splitters): Likewise.
30295         (movdd_hardfloat32): Likewise.
30296         (movdd_softfloat32): Likewise.
30297         (movdd_hardfloat64_mfpgpr): Likewise.
30298         (movdd_hardfloat64): Likewise.
30299         (movdd_softfloat64): Likewise.
30301         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
30302         64-bit binary and decimal floating point moves.
30303         (FMOVE64X): Likewise.
30304         (movdf): Combine 64-bit binary and decimal floating point moves.
30305         Combine power6x (mfpgpr) moves with other moves by using
30306         conditional constraits (wg).
30307         (mov<mode> for DFmode/DDmode): Likewise.
30308         (DFmode/DDmode splitters): Likewise.
30309         (movdf_hardfloat32): Likewise.
30310         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
30311         (movdf_softfloat32): Likewise.
30312         (movdf_hardfloat64_mfpgpr): Likewise.
30313         (movdf_hardfloat64): Likewise.
30314         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
30315         (movdf_softfloat64): Likewise.
30316         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
30317         (reload_<mode>_load): Move to later in the file so they aren't in
30318         the middle of the floating point move insns.
30319         (reload_<mode>_store): Likewise.
30321         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
30322         constraint.
30324         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
30325         constraint if -mdebug=reg.
30326         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
30327         Enable using dd reload support if needed.
30329         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
30330         binary and decimal floating point moves in rs6000.md.
30331         (movtd_internal): Likewise.
30333         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
30334         decimal floating point moves.
30335         (movtf): Likewise.
30336         (movtf_internal): Likewise.
30337         (mov<mode>_internal, TDmode/TFmode): Likewise.
30338         (movtf_softfloat): Likewise.
30339         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
30341         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
30342         movdi_internal64, using wg constraint for move direct operations.
30343         (movdi_internal64): Likewise.
30345         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
30346         MODES_TIEABLE_P for selected modes.  Print the numerical value of
30347         the various virtual registers. Use GPR/FPR first/last values,
30348         instead of hard coding the register numbers.  Print which modes
30349         have reload functions registered.
30350         (rs6000_option_override_internal): If -mdebug=reg, trace the options
30351         settings before/after setting cpu, target and subtarget settings.
30352         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
30353         and for secondary reload failures in rs6000_secondary_reload_inner.
30354         (rs6000_secondary_reload_fail): Likewise.
30355         (rs6000_secondary_reload_inner): Likewise.
30357         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
30358         macros for first/last GPR and FPR registers.
30359         (LAST_GPR_REGNO): Likewise.
30360         (FIRST_FPR_REGNO): Likewise.
30361         (LAST_FPR_REGNO): Likewise.
30363         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
30364         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
30365         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
30366         (vcond<mode><mode>): Likewise.
30367         (vcondu<mode><mode>): Likewise.
30368         (vector_gtu<mode>): Likewise.
30369         (vector_gte<mode>): Likewise.
30370         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
30371         to prevent the compiler from converting DImode operations to TImode.
30372         (ior<mode>3): Likewise.
30373         (and<mode>3): Likewise.
30374         (one_cmpl<mode>2): Likewise.
30375         (nor<mode>3): Likewise.
30376         (andc<mode>3): Likewise.
30378         * config/rs6000/constraints.md (wt constraint): New constraint
30379         that returns VSX_REGS if TImode is allowed in VSX registers.
30381         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
30382         constant under VSX.
30384         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
30385         similar to TImode, but it is restricted to being in the GPRs.
30387         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
30388         TImode to occupy a single VSX register.
30390         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
30391         -mvsx-timode for power7/power8.
30392         (power7 cpu): Likewise.
30393         (power8 cpu): Likewise.
30395         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
30396         sure that TFmode/TDmode take up two registers if they are ever
30397         allowed in the upper VSX registers.
30398         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
30399         registers.
30400         (rs6000_init_hard_regno_mode_ok): Likewise.
30401         (rs6000_debug_reg_global): Add debugging for PTImode and wt
30402         constraint.  Print if LRA is turned on.
30403         (rs6000_option_override_internal): Give an error if -mvsx-timode
30404         and VSX is not enabled.
30405         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
30406         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
30407         to reg+offset addressing.  Use PTImode when checking offset
30408         addresses for validity.
30409         (reg_offset_addressing_ok_p): Likewise.
30410         (rs6000_legitimate_offset_address_p): Likewise.
30411         (rs6000_legitimize_address): Likewise.
30412         (rs6000_legitimize_reload_address): Likewise.
30413         (rs6000_legitimate_address_p): Likewise.
30414         (rs6000_eliminate_indexed_memrefs): Likewise.
30415         (rs6000_emit_move): Likewise.
30416         (rs6000_secondary_reload): Likewise.
30417         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
30418         reloads to fpr registers to continue to use reg+offset addressing,
30419         but 64-bit reloads to altivec registers need reg+reg addressing.
30420         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
30421         it.  Treat LO_SUM like a PLUS operation.
30422         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
30423         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
30424         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
30425         registers to share a register with a smaller sized type, since VSX
30426         puts scalars in the upper 64-bits.
30427         (print_operand): Add support for PTImode.
30428         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
30429         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
30430         registers, but don't have arithmetic support.
30431         (rs6000_memory_move_cost): Add test for VSX.
30432         (rs6000_opt_masks): Add -mvsx-timode.
30434         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
30435         for TImode.
30436         (VSs): Likewise.
30437         (VSr): Use wt constraint for TImode.
30438         (VSv): Drop TImode support.
30439         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
30440         (vsx_movti_64bit): Likewise.
30441         (vsx_movti_32bit): Likewise.
30442         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
30443         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
30444         one '?' on the appropriate output constraint.  Do not allow TImode
30445         logical operations on 32-bit systems.
30446         (vsx_ior<mode>3): Likewise.
30447         (vsx_xor<mode>3): Likewise.
30448         (vsx_one_cmpl<mode>2): Likewise.
30449         (vsx_nor<mode>3): Likewise.
30450         (vsx_andc<mode>3): Likewise.
30451         (vsx_concat_<mode>): Likewise.
30452         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
30454         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
30455         OPTION_MASK_VSX_TIMODE.
30456         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
30457         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
30459         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
30460         (TI2 iterator): New iterator for TImode, PTImode.
30461         (wd mode attribute): Add values for vector types.
30462         (movti_string): Replace TI move operations with operations for TImode
30463         and PTImode.  Add support for TImode being allowed in VSX registers.
30464         (mov<mode>_string, TImode/PTImode): Likewise.
30465         (movti_ppc64): Likewise.
30466         (mov<mode>_ppc64, TImode/PTImode): Likewise.
30467         (TI mode splitters): Likewise.
30469         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
30470         constraint.
30472 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
30474         PR tree-optimization/56355
30475         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
30476         Also handle integers with undefined overflow.
30478 2013-03-20  Catherine Moore  <clm@codesourcery.com>
30479             Maciej W. Rozycki  <macro@codesourcery.com>
30480             Tom de Vries  <tom@codesourcery.com>
30481             Nathan Sidwell  <nathan@codesourcery.com>
30482             Iain Sandoe  <iain@codesourcery.com>
30483             Nathan Froyd  <froydnj@codesourcery.com>
30484             Chao-ying Fu  <fu@mips.com>
30486         * doc/extend.texi: (micromips, nomicromips, nocompression):
30487         Document new function attributes.
30488         * doc/invoke.texi (minterlink-compressed, mmicromips,
30489         m14k, m14ke, m14kec): Document new options.
30490         (minterlink-mips16): Update documentation.
30491         * doc/md.texi (ZC, ZD): Document new constraints.
30492         * configure.ac (gcc_cv_as_micromips): Check if linker
30493         supports the .set micromips directive.
30494         * configure: Regenerate.
30495         * config.in: Regenerate.
30496         * config/mips/mips-tables.opt: Regenerate.
30497         * config/mips/micromips.md: New file.
30498         * constraints.md (ZC, ZD): New constraints.
30499         * config/mips/predicates.md (movep_src_register): New predicate.
30500         (movep_src_operand): New predicate.
30501         (non_volatile_mem_operand): New predicate.
30502         * config/mips/mips.md (multimem): New type.
30503         (length): Differentiate between 17-bit and 18-bit branch offsets.
30504         (MOVEP1, MOVEP2): New mode iterator.
30505         (mov_<load>l): Use ZC constraint.
30506         (mov_<load>r): Likewise.
30507         (mov_<store>l): Likewise.
30508         (mov_<store>r): Likewise.
30509         (*branch_equality<mode>_inverted): Add microMIPS support.
30510         (*branch_equality<mode>): Likewise.
30511         (*jump_absolute): Likewise.
30512         (indirect_jump_<mode>): Likewise.
30513         (tablejump_<mode>): Likewise.
30514         (<optab>_internal): Likewise.
30515         (sibcall_internal): Likewise.
30516         (sibcall_value_internal): Likewise.
30517         (prefetch): Use constraint ZD.
30518         * config/mips/mips.opt (minterlink-compressed): New option.
30519         (minterlink-mips16): Now an alias for minterlink-compressed.
30520         (mmicromips): New option.
30521         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
30522         (compare_and_swap_12): Likewise.
30523         (sync_add<mode>): Likewise.
30524         (sync_<optab>_12): Likewise.
30525         (sync_old_<optab>_12): Likewise.
30526         (sync_new_<optab>_12): Likewise.
30527         (sync_nand_12): Likewise.
30528         (sync_old_nand_12): Likewise.
30529         (sync_new_nand_12): Likewise.
30530         (sync_sub<mode>): Likewise.
30531         (sync_old_add<mode>): Likewise.
30532         (sync_old_sub<mode>): Likewise.
30533         (sync_new_add<mode>): Likewise.
30534         (sync_new_sub<mode>): Likewise.
30535         (sync_<optab><mode>): Likewise.
30536         (sync_old_<optab><mode>): Likewise.
30537         (sync_new_<optab><mode>): Likewise.
30538         (sync_nand<mode>): Likewise.
30539         (sync_old_nand<mode>): Likewise.
30540         (sync_new_nand<mode>): Likewise.
30541         (sync_lock_test_and_set<mode>): Likewise.
30542         (test_and_set_12): Likewise.
30543         (atomic_compare_and_swap<mode>): Likewise.
30544         (atomic_exchange<mode>_llsc): Likewise.
30545         (atomic_fetch_add<mode>_llsc): Likewise.
30546         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
30547         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
30548         (umips_save_restore_pattern_p): Likewise.
30549         (umips_load_store_pair_p): Likewise.
30550         (umips_output_load_store_pair): Likewise.
30551         (umips_movep_target_p): Likewise.
30552         (umips_12bit_offset_address_p): Likewise.
30553         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
30554         (mips_base_mips16): Rename this...
30555         (mips_base_compression_flags): ...to this. Update all uses.
30556         (mips_attribute_table): Add micromips, nomicromips and nocompression.
30557         (mips_mips16_decl_p): Delete.
30558         (mips_nomips16_decl_p): Delete.
30559         (mips_get_compress_on_flags): New function.
30560         (mips_get_compress_off_flags): New function.
30561         (mips_get_compress_mode): New function.
30562         (mips_get_compress_on_name): New function.
30563         (mips_get_compress_off_name): New function.
30564         (mips_insert_attributes): Support multiple compression types.
30565         (mips_merge_decl_attributes): Likewise.
30566         (umips_12bit_offset_address_p): New function.
30567         (mips_start_function_definition): Emit .set micromips directive.
30568         (mips_call_may_need_jalx_p): New function.
30569         (mips_function_ok_for_sibcall): Add microMIPS support.
30570         (mips_print_operand_punctuation): Support short delay slots and
30571         compact jumps.
30572         (umips_swm_mask, umips_swm_encoding): New.
30573         (umips_build_save_restore): New function.
30574         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
30575         (was_mips16_p): Remove.
30576         (old_compression_mode): New.
30577         (mips_set_compression_mode): New function.
30578         (mips_set_current_function): Add microMIPS support.
30579         (mips_option_override): Likewise.
30580         (umips_save_restore_pattern_p): New function.
30581         (umips_output_save_restore): New function.
30582         (umips_load_store_pair_p_1): New function.
30583         (umips_load_store_pair_p): New function.
30584         (umips_output_load_store_pair_1): New function.
30585         (umips_output_load_store_pair): New function.
30586         (umips_movep_target_p) New function.
30587         (mips_prepare_pch_save): Add microMIPS support.
30588         * config/mips/mips.h (TARGET_COMPRESSION): New.
30589         (TARGET_CPU_CPP_BUILTINS): Update macro
30590         to use new compression flags and to support microMIPS.
30591         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
30592         (MIPS_ARCH_FLOAT_SPEC): Likewise.
30593         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
30594         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
30595         (ASM_SPEC): Support mmicromips and mno-micromips.
30596         (M16STORE_REG_P): New macro.
30597         (MIPS_CALL): Support TARGET_MICROMIPS.
30598         (MICROMIPS_J): New macro.
30599         (mips_base_mips16): Rename this...
30600         (mips_base_compression_flags): ...to this.
30601         (UMIPS_12BIT_OFFSET_P): New macro.
30602         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
30603         (MULTILIB_DIRNAMES): Likewise.
30604 2013-03-20  Richard Biener  <rguenther@suse.de>
30606         PR tree-optimization/56661
30607         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
30608         the result does not have to be distinct.
30610 2013-03-20  Richard Biener  <rguenther@suse.de>
30612         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
30613         remap_gimple_op_r.
30615 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30616             Steven Bosscher  <steven@gcc.gnu.org>
30618         PR rtl-optimization/56605
30619         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
30621 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
30623         PR bootstrap/56656
30624         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
30625         that require movd instead of movq.
30627 2013-03-20  Richard Biener  <rguenther@suse.de>
30629         * tree-ssa-structalias.c (struct variable_info): Add pointer
30630         to the first field of an aggregate with sub-vars.  Make
30631         this and the pointer to the next subfield its ID.
30632         (vi_next): New function.
30633         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
30634         storedanything_id, integer_id): Increment by one.
30635         (new_var_info, get_call_vi, lookup_call_clobber_vi,
30636         get_call_clobber_vi): Adjust.
30637         (solution_set_expand): Simplify and speedup.
30638         (solution_set_add): Inline into ...
30639         (set_union_with_increment): ... this.  Adjust accordingly.
30640         (do_sd_constraint): Likewise.
30641         (do_ds_constraint): Likewise.
30642         (do_complex_constraint): Simplify.
30643         (build_pred_graph): Adjust.
30644         (solve_graph): Likewise.  Simplify and speedup.
30645         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
30646         get_constraint_for_component_ref, get_constraint_for_1,
30647         first_vi_for_offset, first_or_preceding_vi_for_offset,
30648         create_function_info_for, create_variable_info_for_1,
30649         create_variable_info_for, intra_create_variable_infos): Adjust.
30650         (init_base_vars): Push NULL for ID zero.
30651         (compute_points_to_sets): Adjust.
30653 2013-03-20  Richard Biener  <rguenther@suse.de>
30655         * cfgloop.c (verify_loop_structure): Streamline and avoid
30656         ICEing on corrupt loop tree.
30657         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
30658         loop tree.
30660 2013-03-20  Richard Biener  <rguenther@suse.de>
30662         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
30663         check whether an SSA update is needed.
30665 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
30667         * config/mips/constraints.md (T): Rename to...
30668         (Yf): ...this.
30669         (U): Rename to...
30670         (Yd): ...this.
30671         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
30672         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
30674 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
30676         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
30677         (*subsi3_carryin_uxtw): Likewise.
30679 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
30681         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
30682         (*rorsi3_insn_uxtw): Likewise.
30684 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
30686         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
30687         (*extrsi5_insn_uxtw): Likewise.
30689 2013-03-19  Richard Biener  <rguenther@suse.de>
30691         PR tree-optimization/56273
30692         * passes.c (init_optimization_passes): Move second VRP after DOM.
30694 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
30696         * config/i386/i386.md (*movti_internal): Merge from
30697         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
30698         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
30699         nox64 isa attributes.
30701 2013-03-18  Richard Biener  <rguenther@suse.de>
30703         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
30704         (unite): Likewise.
30705         (merge_node_constraints): Likewise.
30706         (build_succ_graph): Likewise.
30707         (valid_graph_edge): Inline into single caller.
30708         (unify_nodes): Likewise.  Use bitmap_set_bit return value
30709         and cache varinfo.
30710         (scc_visit): Fix formatting and variable use.
30711         (do_sd_constraint): Use gcc_checking_assert.
30712         (do_ds_constraint): Likewise.
30713         (do_complex_constraint): Likewise.
30714         (condense_visit): Likewise.  Cleanup.
30715         (dump_pred_graph): New function.
30716         (perform_var_substitution): Dump the pred-graph before
30717         variable substitution.
30718         (find_equivalent_node): Use gcc_checking_assert.
30719         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
30721 2013-03-18  Richard Biener  <rguenther@suse.de>
30723         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30724         Remove cond_expr_stmt_list argument and do not gimplify the
30725         built expression.
30726         (vect_loop_versioning): Adjust.
30727         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
30728         Cleanup to use less temporaries.
30729         (vect_create_data_ref_ptr): Cleanup.
30731 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
30733         PR tree-optimization/56635
30734         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
30735         require types_compatible_p types.
30737 2013-03-18  Nick Clifton  <nickc@redhat.com>
30739         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
30740         spurious backslash.
30742         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
30743         Add missing line to comment describing function.
30745 2013-03-18  Richard Biener  <rguenther@suse.de>
30747         PR tree-optimization/56210
30748         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30749         Handle string / character search functions.
30750         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30752 2013-03-18  Richard Biener  <rguenther@suse.de>
30754         PR middle-end/56483
30755         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
30756         and implement properly.
30757         * gimple.h (gimple_cond_single_var_p): Remove.
30759 2013-03-18  Richard Biener  <rguenther@suse.de>
30761         * tree-data-ref.h (find_data_references_in_loop): Declare.
30762         * tree-data-ref.c (get_references_in_stmt): Use a stack
30763         vector pre-allocated in the callers.
30764         (find_data_references_in_stmt): Adjust.
30765         (graphite_find_data_references_in_stmt): Likewise.
30766         (create_rdg_vertices): Likewise.
30767         (find_data_references_in_loop): Export.
30768         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
30769         Compute dependences here...
30770         (vect_analyze_data_refs): ...not here.  When we encounter
30771         a non-vectorizable data reference in basic-block vectorization
30772         truncate the data reference vector.  Do not bother to
30773         fixup data-dependence information for gather loads.
30774         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
30775         of data references, as reported.
30777 2013-03-18  Richard Biener  <rguenther@suse.de>
30779         PR tree-optimization/3713
30780         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
30781         has_constants and expr.
30782         (stmt_has_constants): Properly valueize SSA names when deciding
30783         whether the stmt has constants.
30785 2013-03-18  Richard Biener  <rguenther@suse.de>
30787         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
30788         whole function when there is nothing to do.
30789         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
30790         * tree-vectorizer.c (vectorize_loops): Update virtual and
30791         loop-closed SSA once.
30792         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
30794 2013-03-18  Richard Biener  <rguenther@suse.de>
30796         PR middle-end/56113
30797         * domwalk.c (bb_postorder): New global static.
30798         (cmp_bb_postorder): New function.
30799         (walk_dominator_tree): Replace scheme imposing an order for
30800         visiting dominator sons by one sorting them at the time they
30801         are pushed on the stack.
30803 2013-03-18  Richard Biener  <rguenther@suse.de>
30805         PR tree-optimization/39326
30806         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
30807         (struct mem_ref): Replace mem member with ao_ref typed member.
30808         (MEM_ANALYZABLE): Adjust.
30809         (memref_eq): Likewise.
30810         (mem_ref_alloc): Likewise.
30811         (gather_mem_refs_stmt): Likewise.
30812         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
30813         (execute_sm_if_changed_flag_set): Adjust.
30814         (execute_sm): Likewise.
30815         (ref_always_accessed_p): Likewise.
30816         (refs_independent_p): Likewise.
30817         (can_sm_ref_p): Likewise.
30819 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
30821         PR c/56566
30822         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
30823         return 1 even for !unsignedp.
30825 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
30827         * config/i386/i386.md (isa): Add x64 and nox64.
30828         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
30829         (*pushtf): Enable *roF alternative for x64 isa only.
30830         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
30831         mode attribute of integer alternatives to DImode for TARGET_64BIT.
30832         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
30833         (*movtf_internal): Merge from *movtf_internal_rex64 and
30834         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
30835         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
30836         nox64 isa attributes.
30837         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
30838         nox64 isa attributes.
30839         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
30841 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
30843         * config/alpha/alpha.c (TARGET_LRA_P): New define.
30845 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
30847         PR target/56640
30848         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
30849         class names.  Remove trailing comma after "ALL_REGS".
30851 2013-03-16  Jan Hubicka  <jh@suse.cz>
30853         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
30854         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
30855         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
30856         of cgraph_get_create_node.
30857         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
30859 2013-03-16  Jason Merrill  <jason@redhat.com>
30861         PR debug/49090
30862         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
30863         with DW_AT_default_value.
30865 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
30867         * BASE-VER: Set to 4.9.0.
30869 2013-03-14  Andi Kleen  <ak@linux.intel.com>
30871         PR target/56619
30872         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
30873         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
30874         Document _x* TSX intrinsics.
30876 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
30877             David Holsgrove  <david.holsgrove@xilinx.com>
30879         * configure.ac: Add MicroBlaze TLS support detection.
30880         * configure: Regenerate.
30881         * config/microblaze/microblaze-protos.h
30882         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
30883         symbol_mentioned_p, label_mentioned_p): Add prototypes.
30884         * config/microblaze/microblaze.c (microblaze_address_type): Add
30885         ADDRESS_TLS and tls_reloc address types.
30886         (microblaze_address_info): Add tls_reloc.
30887         (TARGET_HAVE_TLS): Define.
30888         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
30889          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
30890          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
30891         load_tls_operand,  microblaze_call_tls_get_addr,
30892         microblaze_legitimize_tls_address): New functions.
30893         (microblaze_classify_unspec): Handle UNSPEC_TLS.
30894         (get_base_reg): Use microblaze_tls_symbol_p.
30895         (microblaze_classify_address): Handle TLS.
30896         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
30897         label_mentioned_p and microblaze_tls_referenced_p.
30898         (microblaze_legitimize_address): Handle TLS.
30899         (microblaze_address_insns): Handle ADDRESS_TLS.
30900         (pic_address_needs_scratch): Handle TLS.
30901         (print_operand_address): Handle TLS.
30902         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
30903         (microblaze_expand_move): Handle TLS.
30904         (microblaze_legitimate_constant_p): Check
30905         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
30906         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
30907         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
30908         (PIC_OFFSET_TABLE_REGNUM): Set.
30909         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
30910         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
30911         (addsi3, movsi_internal2, movdf_internal): Update constraints
30912         * config/microblaze/predicates.md (arith_plus_operand): Define
30913         (move_operand): Redefine as move_src_operand,
30914         check microblaze_tls_referenced_p.
30916 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
30918         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
30919         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
30921 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
30923         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
30924         CC mode for AND.
30926 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
30928         PR tree-optimization/53265
30929         * common.opt (Waggressive-loop-optimizations): New option.
30930         * tree-ssa-loop-niter.c: Include tree-pass.h.
30931         (do_warn_aggressive_loop_optimizations): New function.
30932         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
30933         if number_of_latch_executions returned constant.
30934         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
30935         early.  If number_of_latch_executions returned constant, set
30936         nb_iterations_upper_bound back to it.
30937         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
30938         field.
30939         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
30940         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
30942         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
30943         (MULTILIB_OSDIRNAMES): Set.
30944         * genmultilib: If defaultosdirname doesn't start with :: , set
30945         defaultosdirname2 instead, clear it and emit two . multilib_raw
30946         entries instead of just one.
30948 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
30950         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
30951         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
30952         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
30953         (SUBTARGET_OVERRIDE_OPTIONS): New.
30955 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
30957         PR target/49880
30958         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
30959         (musermode): Convert to Var(TARGET_USERMODE).
30960         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
30961         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
30962         * config/sh/sh.c (sh_option_override): Use
30963         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
30964         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
30965         condition.
30966         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
30967         TARGET_SH4.
30968         (udivsi3_i4_single, divsi3_i4_single): Use
30969         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
30971 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
30973         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
30974         default setting.
30976 2013-03-13  Richard Biener  <rguenther@suse.de>
30978         PR tree-optimization/56608
30979         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
30980         calls when vectorizing basic-blocks.
30982 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
30984         PR plugins/45078
30985         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
30986         tm_file.
30988 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
30990         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
30992 2013-03-11  Jan Hubicka  <jh@suse.cz>
30994         PR lto/56557
30995         * lto-streamer-out.c (output_symbol_p): Skip references from
30996         constructors of external variables.
30998 2013-03-11  Jan Hubicka  <jh@suse.cz>
31000         PR middle-end/56571
31001         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
31002         from pseudos.
31003         * emit-rtl.c (verify_rtx_sharing): Likewise.
31004         (copy_insn_1): Likewise.
31005         * rtl.c (copy_rtx): Likewise.
31007 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
31009         PR target/56591
31010         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
31011         output_operand_lossage message.
31013 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
31015         PR target/56470
31016         * arm.c (shift_op): Validate RTL pattern on the fly.
31017         (arm_print_operand, case 'S'): Don't use shift_operator to validate
31018         the RTL.
31020 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31022         PR target/56347
31023         * config/pa/pa.md (call_value): Check for calls to powf and direct to
31024         new call patterns that clobber %fr12.
31025         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
31026         split and postreload patterns.
31027         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
31028         registers %fr12 and %fr12R as call used.
31030 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
31032         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
31033         (canon_address, record_store, replace_read, check_mem_read_rtx,
31034         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
31035         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
31036         rest_of_handle_dse): Likewise.
31038 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
31040         PR middle-end/56524
31041         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
31042         Add base_optabs.
31043         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
31044         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
31045         (save_optabs_if_changed): Replace with...
31046         (init_tree_optimization_optabs): ...this.
31047         * optabs.c (save_optabs_if_changed): Rename to...
31048         (init_tree_optimization_optabs): ...this.  Take the optimization node
31049         as argument.  Do nothing if the base optabs are already correct.
31050         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
31051         to recompute optabs.
31052         * function.h (function): Remove optabs field.
31053         * function.c (invoke_set_current_function_hook): Call
31054         init_tree_optimization_optabs.  Use the result to initialize
31055         this_fn_optabs.
31057 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
31059         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
31060         if GTMA_HAS_NO_INSTRUMENTATION.
31061         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
31062         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
31063         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
31064         * gimple-pretty-print.c (dump_gimple_transaction): Handle
31065         GTMA_HAS_NO_INSTRUMENTATION.
31067 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
31069         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
31070         libasan_preinit.o.
31072 2013-03-08  Marek Polacek  <polacek@redhat.com>
31073             Jakub Jelinek  <jakub@redhat.com>
31075         PR tree-optimization/56478
31076         * predict.c (is_comparison_with_loop_invariant_p): Change the
31077         type of loop_step to tree.
31078         (predict_loops): Adjust.
31079         (predict_iv_comparison): Perform the computations on double_ints.
31081 2013-03-08  Richard Biener  <rguenther@suse.de>
31083         PR tree-optimization/56570
31084         * tree-cfg.c (verify_expr_location_1): Verify locations for
31085         DECL_DEBUG_EXPR.
31086         * tree-sra.c (create_access_replacement): Strip locations
31087         from DECL_DEBUG_EXPRs.
31089 2013-03-08  Richard Biener  <rguenther@suse.de>
31091         * tree-inline.c (expand_call_inline): Do not associate
31092         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
31093         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
31095 2013-03-08  Richard Biener  <rguenther@suse.de>
31097         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
31098         or block changes with -Og.  Fix for location / block encoding
31099         changes and PHI arguments with locations.
31101 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
31103         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
31104         for all counters.
31105         (struct output_info): Likewise.
31106         (register_overhead): Remove bad gcc_assert.
31107         (bitmap_find_bit): If there is only a single bitmap element, do not
31108         count a miss as a search.
31109         (print_statistics): Update for counter type changes.
31110         (dump_bitmap_statistics): Likewise.  Print headers such that they
31111         are properly lined up with the printed counters.
31113 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
31115         PR tree-optimization/56559
31116         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
31117         check that it has only a single use.
31119 2013-03-07  Richard Biener  <rguenther@suse.de>
31121         * doc/invoke.texi (fwhole-program): Discourage use in combination
31122         with -flto.
31124 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
31126         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
31128         PR tree-optimization/56539
31129         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
31130         instead of GSI_CONTINUE_LINKING as last argument to
31131         force_gimple_operand_gsi.  Adjust function comment.
31133         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
31134         aarch64-cores.def.
31136         PR middle-end/56548
31137         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
31138         promoted mode, convert the result back to the original mode.
31140 2013-03-06  Richard Biener  <rguenther@suse.de>
31142         PR middle-end/56294
31143         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
31144         (insert_updated_phi_nodes_compare_uids): New function.
31145         (update_ssa): Sort symbols_to_rename after UID before
31146         traversing it to insert PHI nodes.
31148 2013-03-06  Richard Biener  <rguenther@suse.de>
31150         PR middle-end/50494
31151         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
31152         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
31154         Revert
31155         2013-02-13  Richard Biener  <rguenther@suse.de>
31157         PR lto/50494
31158         * varasm.c (output_constant_def_1): Get the decl representing
31159         the constant as argument.
31160         (output_constant_def): Wrap output_constant_def_1.
31161         (make_decl_rtl): Use output_constant_def_1 with the decl
31162         representing the constant.
31163         (build_constant_desc): Optionally re-use a decl already
31164         representing the constant.
31165         (tree_output_constant_def): Adjust.
31167 2013-03-06  Joey Ye  <joey.ye@arm.com>
31169         PR lto/50293
31170         * gcc.c (convert_white_space): New function.
31171         (main): Handles white space in function name.
31173 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
31175         PR target/56529
31176         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
31177         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
31178         to SH_DIV_CALL_TABLE for TARGET_SH2.
31179         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
31180         list.
31181         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
31182         call-table options.
31184 2013-03-05  Sterling Augustine  <saugustine@google.com>
31185             Cary Coutant  <ccoutant@google.com>
31187         PR debug/55364
31188         * dwarf2out.c (resolve_addr): Don't call
31189         remove_loc_list_addr_table_entries a second time for the same
31190         expression.
31192 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31194         PR debug/56510
31195         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
31196         (avoid_complex_debug_insns): New function.
31197         (expand_debug_locations): Call it.
31199         PR rtl-optimization/56484
31200         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
31201         lifetimes of hard registers on small register class machines.
31203 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
31205         * config/microblaze/microblaze-protos.h: Rename
31206         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
31207         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
31208         fast_interrupt.
31209         (microblaze_fast_interrupt_function_p): New function.
31210         (microblaze_is_interrupt_handler): Rename to
31211         microblaze_is_interrupt_variant and add fast_interrupt check.
31212         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
31213         (save_restore_insns): Likewise.
31214         (compute_frame_size): Likewise.
31215         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
31216         (microblaze_globalize_label): Likewise.
31217         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
31218         * config/microblaze/microblaze.md: Use wrapper
31219         microblaze_is_interrupt_variant.
31221 2013-03-05  Kai Tietz  <ktietz@redhat.com>
31223         * sdbout.c (sdbout_one_type): Switch to current function's section
31224         supporting cold/hot.
31226 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
31228         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
31229         -mxl-reorder.
31231 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31233         PR middle-end/56461
31234         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
31235         if VALGRIND_GET_VBITS is defined, temporarily make object
31236         memory all defined, and restore previous valgrind addressability
31237         and definability afterwards.  Free this_object at the end.
31239         PR middle-end/56461
31240         * lra.c (lra): Call lra_clear_live_ranges if live_p,
31241         right before calling lra_create_live_ranges, also call it
31242         when clearing live_p.  Only call lra_clear_live_ranges
31243         at the end if live_p.
31245         PR middle-end/56461
31246         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
31248 2013-03-05  Richard Biener  <rguenther@suse.de>
31250         PR tree-optimization/56521
31251         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
31252         value-id.
31254 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
31256         PR c++/55135
31257         * except.h (remove_unreachable_eh_regions): New prototype.
31258         * except.c (remove_eh_handler_splicer): New function, split out
31259         of remove_eh_handler.
31260         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
31261         warning about running it on many EH regions one at a time.
31262         (remove_unreachable_eh_regions_worker): New function, walk the
31263         EH tree in depth-first order and remove non-marked regions.
31264         (remove_unreachable_eh_regions): New function.
31265         * tree-eh.c (mark_reachable_handlers): New function, split out
31266         from remove_unreachable_handlers.
31267         (remove_unreachable_handlers): Use mark_reachable_handlers and
31268         remove_unreachable_eh_regions.
31269         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
31270         and remove_unreachable_eh_regions.
31272 2013-03-05  Richard Biener  <rguenther@suse.de>
31274         PR middle-end/56525
31275         * loop-init.c (fix_loop_structure): Remove loops in two stages,
31276         not freeing them until the end.
31278 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31280         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
31282 2013-03-05  Richard Biener  <rguenther@suse.de>
31284         PR tree-optimization/56270
31285         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
31286         of loads after scheduling an SLP instance.
31288 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31290         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
31291         tic6x.exp.
31292         (check_gcc_parallelize): Run guality.exp as a separate job from
31293         vect.exp with unsorted.exp and $(dg_target_exps) separately from
31294         struct-layout-1.exp with stackalign.exp.
31296         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
31298         PR middle-end/56461
31299         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
31300         load_index sbitmap even if some bit in it isn't set.
31302         PR middle-end/56461
31303         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
31304         (discover_iteration_bound_by_body_walk): Change queues to
31305         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
31306         spelling in comment.  Call safe_push on queues[bound_index] directly.
31307         Release queues[queue_index] in every iteration unconditionally.
31308         Release bounds vector.
31310         PR middle-end/56461
31311         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
31312         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
31313         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
31314         inner_phis vector.
31316 2013-03-05  Richard Biener  <rguenther@suse.de>
31318         PR lto/56515
31319         * tree-inline.c (remap_blocks_to_null): New function.
31320         (expand_call_inline): When expanding a call stmt without
31321         an associated block inline remap all callee blocks to NULL.
31323 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31325         PR rtl-optimization/56494
31326         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
31327         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
31328         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
31330         PR middle-end/56461
31331         * sel-sched-ir.c (free_sched_pools): Release
31332         succs_info_pool.stack[succs_info_pool.max_top] vectors too
31333         if succs_info_pool.max_top isn't -1.
31335         PR bootstrap/56509
31336         * opts.c (opts_obstack, opts_concat): Moved to...
31337         * opts-common.c (opts_obstack, opts_concat): ... here.
31339 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
31341         PR middle-end/56461
31342         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
31344 2013-03-04  Martin Jambor  <mjambor@suse.cz>
31346         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
31347         all appropriate places.
31349 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31351         PR tree-optimization/56424
31352         * ipa-split.c (split_function): Do not set the RSO flag if result is
31353         not by reference and its type is a register type.
31355 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
31357         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
31358         (microblaze_legitimate_pic_operand): Likewise
31359         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
31360         new function microblaze_legitimate_pic_operand
31361         * config/microblaze/microblaze-protos.h
31362         (microblaze_legitimate_pic_operand): Declare.
31364 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
31366         * config/microblaze/predicates.md (call_insn_simple_operand):
31367         New predicate for supported rtx code types.
31368         * config/microblaze/microblaze.md (call_internal1): Use
31369         call_insn_simple_operand predicate.
31371 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
31373         PR middle-end/56461
31374         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
31375         partitions.ordered_remove.
31377         PR middle-end/56461
31378         * tree-vect-stmts.c (vectorizable_conversion): Don't call
31379         vec_oprnds0.create (1) for modifier == NONE.
31381         PR middle-end/56461
31382         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
31383         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
31384         vec_oprnds1 right before pushing anything to it for
31385         scalar_shift_arg.
31387         PR middle-end/56461
31388         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
31389         set nbbs to 0 instead of having separate code path.
31390         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
31391         instead of false as last argument if returning NULL.
31393 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
31395         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
31396         the attribute is now called "target" instead of "option".
31397         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
31398         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
31399         attribute/pragma name for TARGET_OPTION_VALID_P and
31400         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
31401         * doc/tm.texi: Regenerated.
31403 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
31405         * config/microblaze/microblaze.c:
31406         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
31407         * config/microblaze/microblaze.h: Add -mxl-reorder to
31408         DRIVER_SELF_SPECS.
31409         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
31410         instructions emitted if TARGET_REORDER.
31411         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
31412         or 0 for -m/-mno case, but initialises as 2 to detect default use case
31413         separately.
31415 2013-03-01  Xinliang David Li  <davidxl@google.com>
31417         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
31418         walk length.
31420 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
31422         PR middle-end/56461
31423         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
31424         vector even when returning true.  Fix up function comment formatting.
31426         PR middle-end/56461
31427         * ira-build.c (ira_loop_nodes_count): New variable.
31428         (create_loop_tree_nodes): Initialize it.
31429         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
31431         PR middle-end/56461
31432         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
31433         method on dr_chain and result_chain.
31434         * tree-vect-stmts.c (vectorizable_store): Only call
31435         result_chain.create if j == 0.
31437         PR middle-end/56461
31438         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
31439         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
31440         before overwriting it.
31442 2013-03-01  Tobias Burnus  <burnus@net-b.de>
31444         * doc/extended.texi (C Extensions): Change order in @menu
31445         to match @node.
31446         (Other MIPS Built-in Functions): Move last MIPS entry before
31447         "picoChip Built-in Functions".
31448         (SH Built-in Functions): Move after RX Built-in Functions.
31449         * doc/gcc.texi (Introduction): Change order in @menu
31450         to match @node.
31451         * doc/md.texi (Constraints): Ditto.
31452         * gty.texi (Type Information): Ditto.
31453         (User-provided marking routines for template types): Make
31454         subsection.
31455         * doc/invoke.texi (AArch64 Options): Move before
31456         "Adapteva Epiphany Options".
31458 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
31459             Jakub Jelinek  <jakub@redhat.com>
31461         PR sanitizer/56454
31462         * asan.c (gate_asan): Lookup no_sanitize_address instead of
31463         no_address_safety_analysis attribute.
31464         * doc/extend.texi (no_address_safety_attribute): Rename to
31465         no_sanitize_address attribute, mention no_address_safety_analysis
31466         attribute as deprecated alias.
31468 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
31470         PR middle-end/56461
31471         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
31472         type to vec<vec<tree> > *.
31473         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
31474         to be vec<tree> instead of vec<tree> *, set vec_defs
31475         to vNULL and call vec_defs.create (number_of_vects), adjust other
31476         uses of vec_defs.
31477         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
31478         vectorizable_condition): Adjust vect_get_slp_defs callers.
31480 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
31482         * config/aarch64/aarch64.c
31483         (aarch64_float_const_representable): Remove unused variable.
31485 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
31487         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
31489 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
31491         * config/aarch64/aarch64-builtins.c
31492         (aarch64_init_simd_builtins): Make static.
31494 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
31496         * config/aarch64/aarch64.c
31497         (aarch64_simd_make_constant): Make static.
31499 2013-02-28  Martin Jambor  <mjambor@suse.cz>
31501         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
31502         with no initialization to the RHS of debug statements.
31504 2013-02-28  Martin Jambor  <mjambor@suse.cz>
31506         PR tree-optimization/56294
31507         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
31508         Adjust dumping.
31509         (get_access_replacement): Do not call create_access_replacement.
31510         Assert a replacement exists.
31511         (get_repl_default_def_ssa_name): Create the replacement declaration
31512         itself.
31514 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31516         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
31517         final_end_function.
31519 2013-02-28  Marek Polacek  <polacek@redhat.com>
31521         PR rtl-optimization/56466
31522         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
31523         if we're changing a loop.
31524         (peel_loops_completely): Likewise.
31526 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
31528         PR c++/55813
31529         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
31531 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
31533         PR target/56445
31534         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
31535         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
31536         INTX_FTYPE_FX, FX_FTYPE_INTX.
31537         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
31539 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
31541         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
31542         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
31543         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
31544         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
31545         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
31546         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
31547         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
31548         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
31549         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
31550         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
31551         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
31552         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
31553         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
31554         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
31555         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
31556         (avrxmega6): Increase max flash segments from 5 to 6.
31557         * config/avr/t-multilib: Regenerate.
31558         * config/avr/avr-tables.opt: Regenerate.
31559         * doc/avr-mmcu.texi: Regenerate.
31561 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
31563         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
31564         (avr_device_to_arch): Rename to avr_device_to_ld.
31565         (avr_device_to_as): New prototype.
31566         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
31567         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
31568         * config/avr/driver-avr.c (avr_device_to_as): New.
31569         (avr_device_to_arch): Rename to avr_device_to_ld.
31571 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
31573         PR middle-end/56461
31574         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
31575         method on dr_chain and result_chain.
31577         PR middle-end/56461
31578         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
31579         pointer_set_destroy on not_executed_last_iteration.
31581         PR middle-end/56461
31582         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
31584         PR middle-end/56461
31585         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
31586         FOR_EACH_DEFINED_FUNCTION when freeing state.
31588         PR middle-end/56461
31589         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
31590         pool_free.
31591         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
31592         overwriting it.
31594         PR middle-end/56461
31595         * ipa-cp.c (decide_whether_version_node): Call vec_free on
31596         known_aggs[i].items and release known_aggs vector.
31598         PR middle-end/56461
31599         * ipa-reference.c (propagate): Free node_info even for alias nodes.
31601 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
31603         * config/microblaze/microblaze.c (microblaze_emit_compare):
31604         Use xor for EQ/NE comparisions.
31605         * config/microblaze/microblaze.md (cstoresf4): Add constraints
31606         (cbranchsf4): Adjust operator to comparison_operator.
31608 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
31610         PR middle-end/56461
31611         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
31612         vector.
31613         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
31614         vec_safe_push, always update *slot.
31615         (redirect_edge_var_map_clear): Use vec_free.
31616         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
31617         (free_var_map_entry): Use vec_free.
31618         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
31619         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
31621 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
31623         PR middle-end/45472
31624         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
31625         when the may_trap_p bit of the exprs being merged differs.
31626         Reorder tests for speculativeness in the logical and operator.
31628 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
31630         * incpath.c (add_standard_paths): Use reconcat instead of concat
31631         where appropriate and avoid leaking memory.
31633         * opts.h: Include obstack.h.
31634         (opts_concat): New prototype.
31635         (opts_obstack): New declaration.
31636         * opts.c (opts_concat): New function.
31637         (opts_obstack): New variable.
31638         (init_options_struct): Call gcc_init_obstack on opts_obstack.
31639         (finish_options): Use opts_concat instead of concat
31640         and XOBNEWVEC instead of XNEWVEC.
31641         * opts-common.c (generate_canonical_option, decode_cmdline_option,
31642         generate_option): Likewise.
31643         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
31644         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
31646         PR target/56455
31647         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
31648         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
31650 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
31652         PR middle-end/56461
31653         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
31655 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
31657         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
31658         (arm_block_move_unaligned_straight): Likewise.
31659         (arm_adjust_block_mem): Likewise.
31661 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
31663         PR target/48901
31664         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
31665         temp, cond and label.
31666         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
31668         PR target/52500
31669         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
31670         * config/c6x/c6x.h (dbx_register_map): Update declaration.
31672         PR target/52501
31673         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
31674         of prologue/epilogue functions.
31676         PR target/52550
31677         * config/tilegx/tilegx.c (tilegx_expand_prologue):
31678         Remove unused variable cfa_offset.
31679         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
31681         PR target/54639
31682         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
31683         type promotion to unsigned.
31685         PR target/54640
31686         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
31687         for HOST_WIDE_INT of 32 bit / same size as int.
31688         (arm_block_move_unaligned_straight): Likewise.
31689         (arm_adjust_block_mem): Likewise.
31691         PR target/54662
31692         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
31693         ALL_CFLAGS.
31695 2013-02-26  Marek Polacek  <polacek@redhat.com>
31697         PR tree-optimization/56426
31698         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
31700 2013-02-26  Richard Biener  <rguenther@suse.de>
31702         PR target/56444
31703         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
31704         unused variable loops.
31706 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
31708         PR tree-optimization/56448
31709         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
31710         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
31711         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
31712         later operands of the references, or even first operand for
31713         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
31715         PR tree-optimization/56443
31716         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
31717         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
31718         to type_for_mode langhook.
31720 2013-02-25  Matt Turner  <mattst88@gmail.com>
31722         * doc/invoke.texi: Document r4700.
31724 2013-02-25  Richard Biener  <rguenther@suse.de>
31726         PR tree-optimization/56175
31727         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
31728         split out from ...
31729         (simplify_bitwise_binary): ... here.  Also guard the conversion
31730         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
31732 2013-02-25  Catherine Moore  <clm@codesourcery.com>
31734         Revert:
31735         2013-02-24  Catherine Moore  <clm@codesourcery.com>
31736             Maciej W. Rozycki  <macro@codesourcery.com>
31737             Tom de Vries  <tom@codesourcery.com>
31738             Nathan Sidwell  <nathan@codesourcery.com>
31739             Iain Sandoe  <iain@codesourcery.com>
31740             Nathan Froyd  <froydnj@codesourcery.com>
31741             Chao-ying Fu  <fu@mips.com>
31743         * doc/extend.texi: (micromips, nomicromips, nocompression):
31744         Document new function attributes.
31745         * doc/invoke.texi (minterlink-compressed, mmicromips,
31746         m14k, m14ke, m14kec): Document new options.
31747         (minterlink-mips16): Update documentation.
31748         * doc/md.texi (ZC, ZD): Document new constraints.
31749         * configure.ac (gcc_cv_as_micromips): Check if linker
31750         supports the .set micromips directive.
31751         * configure: Regenerate.
31752         * config.in: Regenerate.
31753         * config/mips/mips-tables.opt: Regenerate.
31754         * config/mips/micromips.md: New file.
31755         * constraints.md (ZC, AD): New constraints.
31756         * config/mips/predicates.md (movep_src_register): New predicate.
31757         (movep_src_operand): New predicate.
31758         (non_volatile_mem_operand): New predicate.
31759         * config/mips/mips.md (multimem): New type.
31760         (length): Differentiate between 17-bit and 18-bit branch offsets.
31761         (MOVEP1, MOVEP2): New mode iterator.
31762         (mov_<load>l): Use ZC constraint.
31763         (mov_<load>r): Likewise.
31764         (mov_<store>l): Likewise.
31765         (mov_<store>r): Likewise.
31766         (*branch_equality<mode>_inverted): Add microMIPS support.
31767         (*branch_equality<mode>): Likewise.
31768         (*jump_absolute): Likewise.
31769         (indirect_jump_<mode>): Likewise.
31770         (tablejump_<mode>): Likewise.
31771         (<optab>_internal): Likewise.
31772         (sibcall_internal): Likewise.
31773         (sibcall_value_internal): Likewise.
31774         (prefetch): Use constraint ZD.
31775         * config/mips/mips.opt (minterlink-compressed): New option.
31776         (minterlink-mips16): Now an alias for minterlink-compressed.
31777         (mmicromips): New option.
31778         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31779         (compare_and_swap_12): Likewise.
31780         (sync_add<mode>): Likewise.
31781         (sync_<optab>_12): Likewise.
31782         (sync_old_<optab>_12): Likewise.
31783         (sync_new_<optab>_12): Likewise.
31784         (sync_nand_12): Likewise.
31785         (sync_old_nand_12): Likewise.
31786         (sync_new_nand_12): Likewise.
31787         (sync_sub<mode>): Likewise.
31788         (sync_old_add<mode>): Likewise.
31789         (sync_old_sub<mode>): Likewise.
31790         (sync_new_add<mode>): Likewise.
31791         (sync_new_sub<mode>): Likewise.
31792         (sync_<optab><mode>): Likewise.
31793         (sync_old_<optab><mode>): Likewise.
31794         (sync_new_<optab><mode>): Likewise.
31795         (sync_nand<mode>): Likewise.
31796         (sync_old_nand<mode>): Likewise.
31797         (sync_new_nand<mode>): Likewise.
31798         (sync_lock_test_and_set<mode>): Likewise.
31799         (test_and_set_12): Likewise.
31800         (atomic_compare_and_swap<mode>): Likewise.
31801         (atomic_exchange<mode>_llsc): Likewise.
31802         (atomic_fetch_add<mode>_llsc): Likewise.
31803         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31804         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31805         (umips_save_restore_pattern_p): Likewise.
31806         (umips_load_store_pair_p): Likewise.
31807         (umips_output_load_store_pair): Likewise.
31808         (umips_movep_target_p): Likewise.
31809         (umips_12bit_offset_address_p): Likewise.
31810         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31811         (mips_base_mips16): Rename this...
31812         (mips_base_compression_flags): ...to this. Update all uses.
31813         (mips_attribute_table): Add micromips, nomicromips and nocompression.
31814         (mips_mips16_decl_p): Delete.
31815         (mips_nomips16_decl_p): Delete.
31816         (mips_get_compress_on_flags): New function.
31817         (mips_get_compress_off_flags): New function.
31818         (mips_get_compress_mode): New function.
31819         (mips_get_compress_on_name): New function.
31820         (mips_get_compress_off_name): New function.
31821         (mips_insert_attributes): Support multiple compression types.
31822         (mips_merge_decl_attributes): Likewise.
31823         (umips_12bit_offset_address_p): New function.
31824         (mips_start_function_definition): Emit .set micromips directive.
31825         (mips_call_may_need_jalx_p): New function.
31826         (mips_function_ok_for_sibcall): Add microMIPS support.
31827         (mips_print_operand_punctuation): Support short delay slots and
31828         compact jumps.
31829         (umips_swm_mask, umips_swm_encoding): New.
31830         (umips_build_save_restore): New function.
31831         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31832         (was_mips16_p): Remove.
31833         (old_compression_mode): New.
31834         (mips_set_compression_mode): New function.
31835         (mips_set_current_function): Add microMIPS support.
31836         (mips_option_override): Likewise.
31837         (umips_save_restore_pattern_p): New function.
31838         (umips_output_save_restore): New function.
31839         (umips_load_store_pair_p_1): New function.
31840         (umips_load_store_pair_p): New function.
31841         (umips_output_load_store_pair_1): New function.
31842         (umips_output_load_store_pair): New function.
31843         (umips_movep_target_p) New function.
31844         (mips_prepare_pch_save): Add microMIPS support.
31845         * config/mips/mips.h (TARGET_COMPRESSION): New.
31846         (TARGET_CPU_CPP_BUILTINS): Update macro
31847         to use new compression flags and to support microMIPS.
31848         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31849         (MIPS_ARCH_FLOAT_SPEC): Likewise.
31850         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31851         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31852         (ASM_SPEC): Support mmicromips and mno-micromips.
31853         (M16STORE_REG_P): New macro.
31854         (MIPS_CALL): Support TARGET_MICROMIPS.
31855         (MICROMIPS_J): New macro.
31856         (mips_base_mips16): Rename this...
31857         (mips_base_compression_flags): ...to this.
31858         (UMIPS_12BIT_OFFSET_P): New macro.
31859         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31860         (MULTILIB_DIRNAMES): Likewise.
31862 2013-02-25  Tom de Vries  <tom@codesourcery.com>
31864         PR rtl-optimization/56131
31865         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
31866         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
31867         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
31869 2013-02-25  Tobias Burnus  <burnus@net-b.de>
31871         * doc/invoke.texi (-fsanitize=): Move from optimization
31872         to debugging options.
31874 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
31876         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
31878 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
31879             Alexander Monakov  <amonakov@ispras.ru>
31881         PR middle-end/56077
31882         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
31883         flush pending lists also on non-jumps.  Adjust comment.
31885 2013-02-24  Catherine Moore  <clm@codesourcery.com>
31886             Maciej W. Rozycki  <macro@codesourcery.com>
31887             Tom de Vries  <tom@codesourcery.com>
31888             Nathan Sidwell  <nathan@codesourcery.com>
31889             Iain Sandoe  <iain@codesourcery.com>
31890             Nathan Froyd  <froydnj@codesourcery.com>
31891             Chao-ying Fu  <fu@mips.com>
31893         * doc/extend.texi: (micromips, nomicromips, nocompression):
31894         Document new function attributes.
31895         * doc/invoke.texi (minterlink-compressed, mmicromips,
31896         m14k, m14ke, m14kec): Document new options.
31897         (minterlink-mips16): Update documentation.
31898         * doc/md.texi (ZC, ZD): Document new constraints.
31899         * configure.ac (gcc_cv_as_micromips): Check if linker
31900         supports the .set micromips directive.
31901         * configure: Regenerate.
31902         * config.in: Regenerate.
31903         * config/mips/mips-tables.opt: Regenerate.
31904         * config/mips/micromips.md: New file.
31905         * constraints.md (ZC, AD): New constraints.
31906         * config/mips/predicates.md (movep_src_register): New predicate.
31907         (movep_src_operand): New predicate.
31908         (non_volatile_mem_operand): New predicate.
31909         * config/mips/mips.md (multimem): New type.
31910         (length): Differentiate between 17-bit and 18-bit branch offsets.
31911         (MOVEP1, MOVEP2): New mode iterator.
31912         (mov_<load>l): Use ZC constraint.
31913         (mov_<load>r): Likewise.
31914         (mov_<store>l): Likewise.
31915         (mov_<store>r): Likewise.
31916         (*branch_equality<mode>_inverted): Add microMIPS support.
31917         (*branch_equality<mode>): Likewise.
31918         (*jump_absolute): Likewise.
31919         (indirect_jump_<mode>): Likewise.
31920         (tablejump_<mode>): Likewise.
31921         (<optab>_internal): Likewise.
31922         (sibcall_internal): Likewise.
31923         (sibcall_value_internal): Likewise.
31924         (prefetch): Use constraint ZD.
31925         * config/mips/mips.opt (minterlink-compressed): New option.
31926         (minterlink-mips16): Now an alias for minterlink-compressed.
31927         (mmicromips): New option.
31928         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31929         (compare_and_swap_12): Likewise.
31930         (sync_add<mode>): Likewise.
31931         (sync_<optab>_12): Likewise.
31932         (sync_old_<optab>_12): Likewise.
31933         (sync_new_<optab>_12): Likewise.
31934         (sync_nand_12): Likewise.
31935         (sync_old_nand_12): Likewise.
31936         (sync_new_nand_12): Likewise.
31937         (sync_sub<mode>): Likewise.
31938         (sync_old_add<mode>): Likewise.
31939         (sync_old_sub<mode>): Likewise.
31940         (sync_new_add<mode>): Likewise.
31941         (sync_new_sub<mode>): Likewise.
31942         (sync_<optab><mode>): Likewise.
31943         (sync_old_<optab><mode>): Likewise.
31944         (sync_new_<optab><mode>): Likewise.
31945         (sync_nand<mode>): Likewise.
31946         (sync_old_nand<mode>): Likewise.
31947         (sync_new_nand<mode>): Likewise.
31948         (sync_lock_test_and_set<mode>): Likewise.
31949         (test_and_set_12): Likewise.
31950         (atomic_compare_and_swap<mode>): Likewise.
31951         (atomic_exchange<mode>_llsc): Likewise.
31952         (atomic_fetch_add<mode>_llsc): Likewise.
31953         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31954         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31955         (umips_save_restore_pattern_p): Likewise.
31956         (umips_load_store_pair_p): Likewise.
31957         (umips_output_load_store_pair): Likewise.
31958         (umips_movep_target_p): Likewise.
31959         (umips_12bit_offset_address_p): Likewise.
31960         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31961         (mips_base_mips16): Rename this...
31962         (mips_base_compression_flags): ...to this. Update all uses.
31963         (mips_attribute_table): Add micromips, nomicromips and nocompression.
31964         (mips_mips16_decl_p): Delete.
31965         (mips_nomips16_decl_p): Delete.
31966         (mips_get_compress_on_flags): New function.
31967         (mips_get_compress_off_flags): New function.
31968         (mips_get_compress_mode): New function.
31969         (mips_get_compress_on_name): New function.
31970         (mips_get_compress_off_name): New function.
31971         (mips_insert_attributes): Support multiple compression types.
31972         (mips_merge_decl_attributes): Likewise.
31973         (umips_12bit_offset_address_p): New function.
31974         (mips_start_function_definition): Emit .set micromips directive.
31975         (mips_call_may_need_jalx_p): New function.
31976         (mips_function_ok_for_sibcall): Add microMIPS support.
31977         (mips_print_operand_punctuation): Support short delay slots and
31978         compact jumps.
31979         (umips_swm_mask, umips_swm_encoding): New.
31980         (umips_build_save_restore): New function.
31981         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31982         (was_mips16_p): Remove.
31983         (old_compression_mode): New.
31984         (mips_set_compression_mode): New function.
31985         (mips_set_current_function): Add microMIPS support.
31986         (mips_option_override): Likewise.
31987         (umips_save_restore_pattern_p): New function.
31988         (umips_output_save_restore): New function.
31989         (umips_load_store_pair_p_1): New function.
31990         (umips_load_store_pair_p): New function.
31991         (umips_output_load_store_pair_1): New function.
31992         (umips_output_load_store_pair): New function.
31993         (umips_movep_target_p) New function.
31994         (mips_prepare_pch_save): Add microMIPS support.
31995         * config/mips/mips.h (TARGET_COMPRESSION): New.
31996         (TARGET_CPU_CPP_BUILTINS): Update macro
31997         to use new compression flags and to support microMIPS.
31998         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31999         (MIPS_ARCH_FLOAT_SPEC): Likewise.
32000         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32001         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32002         (ASM_SPEC): Support mmicromips and mno-micromips.
32003         (M16STORE_REG_P): New macro.
32004         (MIPS_CALL): Support TARGET_MICROMIPS.
32005         (MICROMIPS_J): New macro.
32006         (mips_base_mips16): Rename this...
32007         (mips_base_compression_flags): ...to this.
32008         (UMIPS_12BIT_OFFSET_P): New macro.
32009         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32010         (MULTILIB_DIRNAMES): Likewise.
32012 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
32014         PR target/52555
32015         * target-globals.c (save_target_globals): For init_reg_sets and
32016         target_reinit remporarily set this_fn_optabs to this_target_optabs.
32018 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
32020         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
32021         * config/aarch64/t-aarch64
32022         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
32024 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
32026         PR inline-asm/56148
32027         * lra-constraints.c (process_alt_operands): Reload operand
32028         conflicting with earlier clobber only if no more other conflicting
32029         operands.
32031 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
32033         PR sanitizer/56393
32034         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
32035         if not linking a shared library.
32037 2013-02-22  Seth LaForge  <sethml@google.com>
32039         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
32041 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
32043         * config/arm/arm.md (split for extendsidi): Update condition.
32044         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
32045         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
32046         (qhs_zextenddi_cstr): Likewise.
32048 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
32050         PR middle-end/56420
32051         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
32052         avoid signed wrapping.
32053         (expand_mult): Handle properly multiplication by
32054         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
32055         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
32056         in the compiler if coeff is HOST_WIDE_INT_MIN.
32057         (expand_divmod): Don't make ext_op1 static, change it's type to
32058         uhwi.  Avoid undefined behavior in -INTVAL (op1).
32060         PR rtl-optimization/50339
32061         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
32062         field.
32063         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
32064         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
32065         into splitting_ashiftrt field.
32066         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
32067         ASHIFTRT.
32068         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
32069         choices.
32071 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
32073         PR middle-end/56108
32074         * trans-mem.c (execute_tm_mark): Do not expand transactions that
32075         are sure to go irrevocable.
32077 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
32079         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
32080         scalars are valid operands.
32082 2013-02-21  Martin Jambor  <mjambor@suse.cz>
32084         PR tree-optimization/56310
32085         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
32086         only matching indices and non-negative final offsets.
32087         (intersect_aggregates_with_edge): Pass src_idx to
32088         agg_replacements_to_vector.  Pass src_idx insstead of index to
32089         intersect_with_agg_replacements.
32091 2013-02-21  Martin Jambor  <mjambor@suse.cz>
32093         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
32094         instead of hard-wired defaults.
32096 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
32098         * doc/invoke.texi (MIPS Options): Update documentation of the
32099         floating-point multiply-accumulate instruction restrictions.
32101 2013-02-21  Kostya Serebryany  <kcc@google.com>
32103         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
32104         asan_shadow_offset on x86_64 linux.
32106 2013-02-21  Richard Biener  <rguenther@suse.de>
32108         PR tree-optimization/56415
32109         Revert
32110         2013-02-11  Richard Biener  <rguenther@suse.de>
32112         PR tree-optimization/56273
32113         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32114         first VRP run.
32116 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
32118         PR bootstrap/56258
32119         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
32120         instead of @itemx.
32122         PR inline-asm/56405
32123         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
32124         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
32126 2013-02-20  Jan Hubicka  <jh@suse.cz>
32128         PR tree-optimization/56265
32129         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
32130         when target is referenced for first time.
32132 2013-02-20  Richard Biener  <rguenther@suse.de>
32134         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
32135         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
32136         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
32137         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
32138         not return anything.
32139         (rename_ssa_copies): Do not remove unused locals.
32140         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
32141         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
32142         * passes.c (execute_function_todo): Do not schedule unused locals
32143         removal if cleanup_tree_cfg did something.
32144         * tree-ssa-live.c (remove_unused_locals): Dump statistics
32145         about the number of removed locals.
32147 2013-02-20  Richard Biener  <rguenther@suse.de>
32149         PR tree-optimization/56398
32150         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
32152 2013-02-20  Martin Jambor  <mjambor@suse.cz>
32154         PR tree-optimization/55334
32155         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
32156         restricted pointers to arrays.
32158 2013-02-20  Richard Biener  <rguenther@suse.de>
32159             Jakub Jelinek  <jakub@redhat.com>
32161         PR tree-optimization/56396
32162         * tree-ssa-ccp.c (n_const_val): New static variable.
32163         (get_value): Return NULL for SSA names we don't have a lattice
32164         entry for.
32165         (ccp_initialize): Initialize n_const_val.
32166         * tree-ssa-copy.c (n_copy_of): New static variable.
32167         (init_copy_prop): Initialize n_copy_of.
32168         (get_value): Return NULL_TREE for SSA names we don't have a
32169         lattice entry for.
32171 2013-02-20  Martin Jambor  <mjambor@suse.cz>
32173         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
32175 2013-02-20  Richard Biener  <rguenther@suse.de>
32177         * genpreds.c (write_lookup_constraint): Do not compare first
32178         letter of the constraint again.
32180 2013-02-20  Richard Biener  <rguenther@suse.de>
32182         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
32183         and ceil_log2.
32184         (get_use_iv_cost): Terminate hashtable walk when coming across
32185         an empty entry.
32187 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
32189         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
32190         reassociation for avx2 targets.
32192 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32194         * config/microblaze/microblaze.c: microblaze_has_clz = 0
32195         Add version check for v8.10.a to enable microblaze_has_clz
32196         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
32197         version and TARGET_PATTERN_COMPARE check
32198         * config/microblaze/microblaze.md: New clzsi2 instruction
32200 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32202         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
32203         function before branching.
32205 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
32207         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
32208         DUMP_INSN_RTX_UID.
32209         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
32211 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
32213         PR middle-end/55889
32214         * sel-sched.c: Include ira.h.
32215         (implicit_clobber_conflict_p): New function.
32216         (moveup_expr): Use it.
32217         * Makefile.in (sel-sched.o): Depend on ira.h.
32219 2013-02-19  Richard Biener  <rguenther@suse.de>
32221         PR tree-optimization/56384
32222         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
32223         (vn_hash_type): Split out from ...
32224         (vn_hash_constant_with_type): ... here.
32225         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
32226         (vn_phi_eq): Compare types from vn_phi_s structure.
32227         (vn_phi_lookup): Populate vn_phi_s type.
32228         (vn_phi_insert): Likewise.
32230 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
32232         PR tree-optimization/56350
32233         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
32234         if haven't found reduction or nested cycle operand, rather than
32235         asserting we must find it.
32237         PR tree-optimization/56381
32238         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
32239         to fold_build3.
32241 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
32242             Jakub Jelinek  <jakub@redhat.com>
32244         PR target/52555
32245         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
32246         (swap_optab_enable): Same.
32247         (init_all_optabs): Use argument instead of global.
32248         * tree.h (struct tree_optimization_option): New field target_optabs.
32249         * expr.h (init_all_optabs): Add argument to prototype.
32250         (TREE_OPTIMIZATION_OPTABS): New.
32251         (save_optabs_if_changed): Protoize.
32252         * optabs.h: Declare this_fn_optabs.
32253         * optabs.c (save_optabs_if_changed): New.
32254         Declare this_fn_optabs.
32255         (init_optabs): Add argument to init_all_optabs() call.
32256         * function.c (invoke_set_current_function_hook): Handle per
32257         function optabs.
32258         * function.h (struct function): New field optabs.
32259         * config/mips/mips.c (mips_set_mips16_mode): Handle when
32260         optimization_current_node has changed.
32261         * target-globals.h (save_target_globals_default_opts): Protoize.
32262         * target-globals.c (save_target_globals_default_opts): New.
32264 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32266         PR target/56347
32267         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
32268         registers %fr12 and %fr12R as call used.
32270         PR target/56214
32271         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
32272         and HImode, require all displacements to be an integer multiple of
32273         their mode size.
32274         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
32275         only allow QImode and HImode when reload is in progress and strict is
32276         true.  Likewise for symbolic addresses.  Use base14_operand to check
32277         displacements in REG+BASE addresses.
32279 2013-02-18  Richard Biener  <rguenther@suse.de>
32281         PR tree-optimization/56366
32282         * tree-vect-loop.c (get_initial_def_for_induction): Properly
32283         handle sign-conversion of outer-loop initial induction value.
32285 2013-02-18  Richard Biener  <rguenther@suse.de>
32287         PR middle-end/56349
32288         * cfghooks.c (merge_blocks): If we merge a latch into another
32289         block adjust references to it.
32290         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
32291         (verify_loop_structure): Verify that a recorded latch is in fact
32292         a latch.
32294 2013-02-18  Richard Biener  <rguenther@suse.de>
32296         PR tree-optimization/56321
32297         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
32298         order SSA name release and virtual operand unlinking.
32300 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32302         * config/microblaze/microblaze.md (save_stack_block): Define.
32303         (restore_stack_block): Likewise.
32305 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32307         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
32308         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
32309         * config/microblaze/microblaze.c (microblaze_option_override):
32310         Bail out early for PIC modes when target does not support PIC.
32312 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32314         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
32315         Replace with a microblaze version.
32316         (microblaze_trampoline_init): Adapt for microblaze.
32317         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
32318         microblaze.
32320 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
32321             Dodji Seketeli  <dodji@redhat.com>
32323         PR asan/56330
32324         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
32325         (instrument_mem_region_access): Do not forget to always put
32326         instrumentation of the of 'base' and 'base + len' in a "if (len !=
32327         0) statement, even for cases where either 'base' or 'base + len'
32328         are not instrumented -- because they have been previously
32329         instrumented.  Simplify the logic by putting all the statements
32330         instrument 'base + len' inside a sequence, and then insert that
32331         sequence right before the current insertion point.  Then, to
32332         instrument 'base + len', just get an iterator on that statement.
32333         And do not forget to update the pointer to iterator the function
32334         received as argument.
32336 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
32338         PR rtl-optimization/56348
32339         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
32341 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
32343         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
32344         (clean_graph_dump_file): Pass base to start_graph_dump.
32346 2013-02-14  Richard Henderson  <rth@redhat.com>
32348         PR target/55941
32349         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
32351 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
32353         * collect2-aix.h: Define F_LOADONLY.
32355 2013-02-14  Richard Biener  <rguenther@suse.de>
32357         PR lto/50494
32358         * varasm.c (output_constant_def_1): Get the decl representing
32359         the constant as argument.
32360         (output_constant_def): Wrap output_constant_def_1.
32361         (make_decl_rtl): Use output_constant_def_1 with the decl
32362         representing the constant.
32363         (build_constant_desc): Optionally re-use a decl already
32364         representing the constant.
32365         (tree_output_constant_def): Adjust.
32367 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
32369         Fix an asan crash
32370         * asan.c (instrument_builtin_call):  Really put the length of the
32371         second source argument into src1_len.
32373 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
32375         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
32376         argument.  If it is false, don't create edge from then_bb to
32377         fallthru_bb.
32378         (insert_if_then_before_iter): Pass true to it.
32379         (build_check_stmt): Pass false to it.
32380         (transform_statements): Flush hash table only on extended basic
32381         block boundaries, rather than at the beginning of every bb.
32382         Don't flush hash table on nonfreeing_call_p calls.
32383         * tree-flow.h (nonfreeing_call_p): New prototype.
32384         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
32386 2013-02-13  David S. Miller  <davem@davemloft.net>
32388         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
32390 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
32392         PR target/56184
32393         * ira.c (max_regno_before_ira): Move from ...
32394         (ira): ... here.
32395         (fix_reg_equiv_init): Use max_regno_before_ira instead of
32396         vec_safe_length.
32398 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
32400         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
32402 2013-02-13  Richard Biener  <rguenther@suse.de>
32404         PR lto/56295
32405         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
32406         globals in MEM_REFs.
32408 2013-02-13  Richard Biener  <rguenther@suse.de>
32410         * loop-init.c (loop_optimizer_init): Clear loop state when
32411         re-initializing preserved loops.
32412         * loop-unswitch.c (unswitch_single_loop): Return whether
32413         we unswitched the loop.  Do not verify loop state here.
32414         (unswitch_loops): When we unswitched a loop discover new loops.
32416 2013-02-13  Kostya Serebryany  <kcc@google.com>
32418         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
32419         on x86_64 linux.
32420         * sanitizer.def: Rename __asan_init to __asan_init_v1.
32422 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
32424         Avoid instrumenting duplicated memory access in the same basic block
32425         * Makefile.in (asan.o): Add new dependency on hash-table.h
32426         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
32427         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
32428         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
32429         (free_mem_ref_resources, has_mem_ref_been_instrumented)
32430         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
32431         (get_mem_ref_of_assignment): New functions.
32432         (get_mem_refs_of_builtin_call): Extract from
32433         instrument_builtin_call and tweak a little bit to make it fit with
32434         the new signature.
32435         (instrument_builtin_call): Use the new
32436         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
32437         of is_gimple_builtin_call.
32438         (instrument_derefs, instrument_mem_region_access): Insert the
32439         instrumented memory reference into the hash table.
32440         (maybe_instrument_assignment): Renamed instrument_assignment into
32441         this, and change it to advance the iterator when instrumentation
32442         actually happened and return true in that case.  This makes it
32443         homogeneous with maybe_instrument_assignment, and thus give a
32444         chance to callers to be more 'regular'.
32445         (transform_statements): Clear the memory reference hash table
32446         whenever we enter a new BB, when we cross a function call, or when
32447         we are done transforming statements.  Use
32448         maybe_instrument_assignment instead of instrumentation.  No more
32449         need to special case maybe_instrument_assignment and advance the
32450         iterator after calling it; it's now handled just like
32451         maybe_instrument_call.  Update comment.
32453 2013-02-13  Richard Biener  <rguenther@suse.de>
32455         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
32456         Fix loop discovery code.
32458 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
32460         PR inline-asm/56148
32461         * lra-constraints.c (process_alt_operands): Match early clobber
32462         operand with itself.  Check conflicts with earlyclobber only if
32463         the operand is not reloaded.  Prefer to reload conflicting operand
32464         if earlyclobber and matching operands are the same.
32466 2013-02-12  Richard Biener  <rguenther@suse.de>
32468         PR lto/56297
32469         * lto-streamer-out.c (write_symbol): Do not output symbols
32470         for hard register variables.
32472 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
32474         PR target/54222
32475         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
32476         (umulsidi3_insn, mulsidi3_insn): New insns.
32478 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
32480         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
32481         (struct tune_params): Add vec_costs field.
32482         * config/arm/arm.c (arm_builtin_vectorization_cost)
32483         (arm_add_stmt_cost): New functions.
32484         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
32485         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
32486         (arm_default_vec_cost): New struct of type cpu_vec_costs.
32487         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
32488         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
32489         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
32490         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
32492 2013-02-12  Richard Biener  <rguenther@suse.de>
32494         PR lto/56295
32495         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
32496         decls again if possible.
32498 2013-02-12  Richard Biener  <rguenther@suse.de>
32500         PR middle-end/56288
32501         * tree-ssa.c (verify_ssa_name): Fix check, move
32502         SSA_NAME_IN_FREE_LIST check up.
32504 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
32505             Steven Bosscher   <steven@gcc.gnu.org>
32507         PR rtl-optimization/56151
32508         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
32509         equal to op0 or op1, and last_insn pattern is CODE operation
32510         with MEM dest and one of the operands matches that MEM.
32512 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
32514         * doc/extend.texi: Document Function Multiversioning and "default"
32515         parameter string to target attribute.
32516         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
32517         target attribute parameter is "default".
32518         (ix86_compare_version_priority): Remove checks for target attribute.
32519         (ix86_mangle_function_version_assembler_name): Change error to sorry.
32520         Remove check for target attribute equal to NULL. Add assert.
32521         (ix86_generate_version_dispatcher_body): Change error to sorry.
32523 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
32524             Jack Howarth  <howarth@bromo.med.uc.edu>
32525             Patrick Marlier  <patrick.marlier@gmail.com>
32527         PR libitm/55693
32528         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
32529         define ENDFILE_SPEC as TM_DESTRUCTOR.
32530         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
32532 2013-02-11  Alexander Potapenko  <glider@google.com>
32533             Jack Howarth  <howarth@bromo.med.uc.edu>
32534             Jakub Jelinek  <jakub@redhat.com>
32536         PR sanitizer/55617
32537         * config/darwin.c (cdtor_record): Rename ctor_record.
32538         (sort_cdtor_records): Rename sort_ctor_records.
32539         (finalize_dtors): New routine to sort destructors by
32540         priority before use in assemble_integer.
32541         (machopic_asm_out_destructor): Use finalize_dtors if needed.
32543 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
32545         PR rtl-optimization/56275
32546         * simplify-rtx.c (avoid_constant_pool_reference): Check that
32547         offset is non-negative and less than cmode size before
32548         calling simplify_subreg.
32550 2013-02-11  Richard Biener  <rguenther@suse.de>
32552         PR tree-optimization/56264
32553         * cfgloop.h (fix_loop_structure): Adjust prototype.
32554         * loop-init.c (fix_loop_structure): Return the number of
32555         newly discovered loops.
32556         * tree-cfgcleanup.c (repair_loop_structures): When new loops
32557         are discovered, do a full loop-closed SSA rewrite.
32559 2013-02-11  Richard Biener  <rguenther@suse.de>
32561         PR tree-optimization/56273
32562         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32563         first VRP run.
32564         (check_array_ref): Fix missing newline in dumps.
32565         (search_for_addr_array): Likewise.
32567 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
32569         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
32571 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
32573         PR target/56256
32574         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
32576 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
32578         PR rtl-optimization/56246
32579         * lra-constraints.c (simplify_operand_subreg): Try to reuse
32580         reload pseudo.
32581         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
32582         constraints are satisfied.
32584 2013-02-08  Jeff Law  <law@redhat.com>
32586         PR debug/53948
32587         * emit-rtl.c (reg_is_parm_p): New function.
32588         * regs.h (reg_is_parm_p): New prototype.
32589         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
32590         callee-clobbered registers.
32592 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
32594         PR target/56043
32595         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
32596         If there is no implicit builtin declaration, just return NULL.
32598 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
32600         * config/i386/sse.md (FMAMODEM): New mode iterator.
32601         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
32602         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
32604 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
32606         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
32607         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
32608         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
32610 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32612         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
32613         (microblaze*-*-elf): Likewise.
32614         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
32615         LINK_SPEC.
32616         * config/microblaze/microblaze-c.c: Add builtin defines for
32617         _LITTLE_ENDIAN and _BIG_ENDIAN.
32618         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
32619         add to TARGET_DEFAULT flags.
32620         Expand ASM_SPEC and LINK_SPEC.
32621         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
32622         * config/microblaze/microblaze.md: Update extendsidi2 and
32623         movdi_internal instructions to use low-order / high-order reg
32624         print_operands.
32625         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
32626         options and inversemask / mask of LITTLE_ENDIAN.
32627         * config/microblaze/t-microblaze: Expand multilib options to
32628         include mlittle-endian (le) and update exceptions patterns.
32630 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
32632         PR rtl-optimization/56195
32633         * lra-constraints.c (get_reload_reg): Don't reuse regs
32634         if they have smaller mode than requested, if they have
32635         wider mode than requested, try to return a SUBREG.
32637         PR tree-optimization/56250
32638         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
32639         if type is unsigned and code isn't MULT_EXPR.
32641 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
32643         PR tree-optimization/56064
32644         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
32645         bits according to mode.
32646         * fixed-value.h (fixed_from_double_int)
32647         (const_fixed_from_double_int): Adjust comments.
32649 2013-02-08  Richard Biener  <rguenther@suse.de>
32651         PR lto/56231
32652         * lto-streamer.h (struct data_in): Remove current_file, current_line
32653         and current_col members.
32654         * lto-streamer-out.c (lto_output_location): Stream changed bits
32655         en-block for efficiency.
32656         * lto-streamer-in.c (clear_line_info): Remove.
32657         (lto_input_location): Cache current file, line and column
32658         globally via local statics.  Read changed bits en-block.
32659         (input_function): Do not call clear_line_info.
32660         (lto_read_body): Likewise.
32661         (lto_input_toplevel_asms): Likewise.
32663 2013-02-08  Michael Matz  <matz@suse.de>
32665         PR tree-optimization/52448
32666         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
32667         (nt_call_phase): New static.
32668         (add_or_mark_expr): Only mark accesses with newer phase than any
32669         call seen.
32670         (nonfreeing_call_p): New.
32671         (nt_init_block): Update nt_call_phase, mark blocks as visited.
32672         (nt_fini_block): Keep blocks marked as visited.
32673         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
32675 2013-02-08  Richard Biener  <rguenther@suse.de>
32677         * ira.c (ira): Free broken dominator information.
32679 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
32681         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
32683 2013-02-08  Marek Polacek  <polacek@redhat.com>
32685         * cfgloop.c (verify_loop_structure): Add more checking of headers.
32687 2013-02-08  Richard Biener  <rguenther@suse.de>
32689         PR middle-end/56181
32690         * cfgloop.h (flow_loops_find): Adjust.
32691         (bb_loop_header_p): Declare.
32692         * cfgloop.c (bb_loop_header_p): New function split out from ...
32693         (flow_loops_find): ... here.  Adjust function signature,
32694         support incremental loop structure update.
32695         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
32696         * cfgloopmanip.c (fix_loop_structure): Move ...
32697         * loop-init.c (fix_loop_structure): ... here.
32698         (apply_loop_flags): Split out from ...
32699         (loop_optimizer_init): ... here.
32700         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
32701         in incremental mode, only remove dead loops here.
32703 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
32705         PR target/54222
32706         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
32707         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
32708         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
32709         (*round<mode>3.libgcc): New insns for fixed-modes.
32710         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
32711         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
32712         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
32713         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
32714         implementations.  Define to __builtin_avr_absFX,
32715         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
32716         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
32717         __builtin_avr_countlsFX, respectively.
32718         * config/avr/avr-c.c (target.h): Include it.
32719         (enum avr_builtin_id): New enum.
32720         (avr_resolve_overloaded_builtin): New static function.
32721         (avr_register_target_pragmas): Use it to set
32722         targetm.resolve_overloaded_builtin.
32723         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
32724         tree nodes used by DEF_BUILTIN.
32725         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
32726         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
32727         <AVR_BUILTIN_xxBITS>: Same.
32729 2013-02-08  Richard Biener  <rguenther@suse.de>
32731         * cfgloop.c (verify_loop_structure): Properly handle
32732         a loop exiting to another loop header.
32733         * ira-int.h (ira_loops): Remove.
32734         * ira.c (ira_loops): Remove.
32735         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
32736         (do_reload): Use loop_optimizer_finalize.
32737         * ira-build.c (create_loop_tree_nodes): Use get_loops and
32738         number_of_loops to access the loop tree.
32739         (more_one_region_p): Likewise.
32740         (finish_loop_tree_nodes): Likewise.
32741         (rebuild_regno_allocno_maps): Likewise.
32742         (mark_loops_for_removal): Likewise.
32743         (mark_all_loops_for_removal): Likewise.
32744         (remove_unnecessary_regions): Likewise.
32745         (ira_build): Likewise.
32746         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
32748 2013-02-08  Richard Biener  <rguenther@suse.de>
32750         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
32751         * ipa-pure-const.c (analyze_function): Avoid calling
32752         mark_irreducible_loops twice.
32753         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
32755 2013-02-07  David S. Miller  <davem@davemloft.net>
32757         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
32758         on 'reg'.
32759         * var-tracking.c (vt_add_function_parameter): Test the presence of
32760         HAVE_window_save properly and do not remap argument registers when
32761         we have a leaf function.
32763 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
32765         PR bootstrap/56227
32766         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
32767         instead of "ll".
32768         * config/i386/i386.c (ix86_print_operand): Ditto.
32770 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
32772         * lra-constraints.c (process_alt_operands): Fix recently added comment.
32774 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
32776         PR rtl-optimization/56225
32777         * lra-constraints.c (process_alt_operands): Check that reload hard
32778         reg can hold value for strict_low_part.
32780 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
32782         PR debug/56154
32783         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
32784         dwarf2out_end_function.
32785         (in_first_function_p, maybe_at_text_label_p,
32786         first_loclabel_num_not_at_text_label): New variables.
32787         (dwarf2out_var_location): In the first function find out
32788         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
32789         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
32790         functions.
32792 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
32794         PR rtl-optimization/56178
32795         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
32796         SUBREG of a register.  Tidy up related block of code.
32797         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
32798         note if the source is a register or a SUBREG of a register.
32800 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
32802         PR target/56228
32803         * config/rs6000/rs6000.md (ptrm): New mode attr.
32804         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
32805         call_value_indirect_aix<pttrsize>,
32806         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
32807         m in constraints.
32809 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32811         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
32812         if -bnortl. Convert to strcmp and strncmp.
32814 2013-02-07  Alan Modra  <amodra@gmail.com>
32816         PR target/54009
32817         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
32818         addresses won't wrap when offsetting.
32819         (rs6000_secondary_reload): Provide secondary reloads needed for
32820         wrapping LO_SUM addresses.
32822 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
32824         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
32825         MACH, just __MACH__.
32827 2013-02-06  Richard Biener  <rguenther@suse.de>
32829         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
32830         instead of calling fix_loop_structure.
32832 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
32834         PR middle-end/56217
32835         * omp-low.c (use_pointer_for_field): Return false if
32836         lower_send_shared_vars doesn't generate any copy-out code.
32838 2013-02-06  Tom de Vries  <tom@codesourcery.com>
32840         PR rtl-optimization/56131
32841         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
32842         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
32843         of the label is NULL.  Add comment.
32845 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
32847         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
32849         PR sanitizer/55374
32850         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
32851         (STATIC_LIBTSAN_LIBS): Likewise.
32852         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
32853         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
32854         is defined, don't add anything else beyond that.
32855         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
32856         (LINK_COMMAND_SPEC): Use them.
32858         PR tree-optimization/56205
32859         * tree-stdarg.c (check_all_va_list_escapes): Return true if
32860         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
32861         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
32863 2013-02-05  Richard Biener  <rguenther@suse.de>
32865         PR tree-optimization/53342
32866         PR tree-optimization/53185
32867         * tree-vectorizer.h (vect_check_strided_load): Remove.
32868         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
32869         not disallow peeling for vectorized strided loads.
32870         (vect_check_strided_load): Make static and simplify.
32871         (vect_analyze_data_refs): Adjust.
32872         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
32873         correctly when vectorizing strided loads.
32875 2013-02-05  Richard Biener  <rguenther@suse.de>
32877         * doc/install.texi: Refer to ISL, not PPL.
32879 2013-02-05  Jan Hubicka  <jh@suse.cz>
32881         PR tree-optimization/55789
32882         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
32884 2013-02-05  Jan Hubicka  <jh@suse.cz>
32886         PR tree-optimization/55789
32887         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
32888         the dead call anyway.
32890 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
32892         PR sanitizer/55374
32893         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
32895 2013-02-04  Alexander Potapenko  <glider@google.com>
32896             Jack Howarth  <howarth@bromo.med.uc.edu>
32897             Jakub Jelinek  <jakub@redhat.com>
32899         PR sanitizer/55617
32900         * config/darwin.c (sort_ctor_records): Stabilized qsort
32901         on constructor priority by using original position.
32902         (finalize_ctors): New routine to sort constructors by
32903         priority before use in assemble_integer.
32904         (machopic_asm_out_constructor): Use finalize_ctors if needed.
32906 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
32908         PR libstdc++/54314
32909         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
32910         about visibility on artificial decls.
32911         * config/sol2.c (solaris_assemble_visibility): Likewise.
32913 2013-02-04  Kai Tietz  <ktietz@redhat.com>
32915         PR target/56186
32916         * config/i386/i386.c (function_value_ms_64): Add additional valtype
32917         argument and improve checking of return-argument types for 16-byte
32918         modes.
32919         (ix86_function_value_1): Add additional valtype argument on call
32920         of function_value_64.
32921         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
32922         handling infunction_value_64 function.
32924 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
32926         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
32928 2013-02-04  Richard Biener  <rguenther@suse.de>
32930         PR tree-optimization/56188
32931         * tree-ssa-structalias.c (label_visit): Consider case with
32932         initially non-empty points-to set.
32933         (perform_var_substitution): Dump node mapping and clean up.
32935 2013-02-04  Richard Guenther  <rguenther@suse.de>
32937         PR lto/56168
32938         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
32939         node prevail as last resort.
32940         (lto_symtab_merge_decls): Remove guard on LTRANS here.
32941         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
32943 2013-02-04  Richard Biener  <rguenther@suse.de>
32945         PR tree-optimization/56113
32946         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
32947         Merge into ...
32948         (equiv_class_lookup_or_add): ... this.
32949         (label_visit): Adjust and fix error in previous patch.
32950         (perform_var_substitution): Adjust.
32952 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
32954         * config/sh/divtab.c: Fix formatting and comments throughout the file.
32955         * config/sh/sh4-300.md: Likewise.
32956         * config/sh/sh4a.md: Likewise.
32957         * config/sh/constraints.md: Likewise.
32958         * config/sh/sh.md: Likewise.
32959         * config/sh/netbsd-elf.h: Likewise.
32960         * config/sh/predicates.md: Likewise.
32961         * config/sh/sh-protos.h: Likewise.
32962         * config/sh/ushmedia.h: Likewise.
32963         * config/sh/linux.h: Likewise.
32964         * config/sh/sh.c: Likewise.
32965         * config/sh/superh.h: Likewise.
32966         * config/sh/elf.h: Likewise.
32967         * config/sh/sh4.md: Likewise.
32968         * config/sh/sh.h: Likewise.
32970 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32972         * config/pa/constraints.md: Adjust unused letters.  Change "T"
32973         constraint to match_test floating_point_store_memory_operand().
32974         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
32975         (base14_operand): New.
32976         (floating_point_store_memory_operand): New.
32977         (integer_store_memory_operand): Revise to use base14_operand and
32978         reg_plus_base_memory_operand.
32979         (move_dest_operand): Allow symbolic_memory_operands.
32980         (symbolic_memory_operand): Check for LO_SOM.
32981         (symbolic_operand): Change default case to break.
32982         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
32983         CONST_DOUBLE values to be reloaded by putting them into memory when
32984         the destination is a floating point register.
32985         (movdf): Remove code to handle CONST_DOUBLE.
32986         (movsf): Likewise.
32987         (reload_indf_r1): New.
32988         (reload_insf_r1): New.
32989         Consistently use "Q" and "T" constraints with integer and floating
32990         point move instructions, respectively.
32991         (movdi): Remove FAIL.
32992         Change predicate for source operand unamed DImode move from
32993         general_operand to move_src_operand.
32994         (umulsidi3): Change predicate for destination operand to
32995         register_operand.
32996         Likewise for similar unamed patterns.
32997         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
32998         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
32999         (hppa_legitimize_address): Simplify mask calculation.
33000         (pa_emit_move_sequence): Revised handling of secondary reloads from
33001         REG+D addresses for floating point loads and stores.  Directly handle
33002         loading CONST0_RTX (mode) to a floating point register.
33003         (pa_secondary_reload): Handle reloading DF and SFmode constant values
33004         to floating point registers.  Don't restrict secondary reloads to
33005         floating point registers to integer modes.  Revise some comments and
33006         cleanup some code.
33007         (TARGET_LEGITIMATE_ADDRESS_P): Define.
33008         (pa_legitimate_address_p): New.
33009         (pa_legitimize_reload_address): New.
33010         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
33011         (STRICT_REG_OK_FOR_BASE_P): New.
33012         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
33013         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
33015 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
33016             Andrew Dixie  <andrewd@gentrack.com>
33018         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
33019         flag set.
33021 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
33023         * expmed.c (extract_bit_field_1): Pass the full width of the
33024         structure to get_best_reg_extraction_insn.
33026 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
33028         PR target/54601
33029         * configure.ac (use_cxa_atexit): Add AIX.
33030         * configure: Regenerate.
33032         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
33034 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
33036         PR debug/54793
33037         * final.c (need_profile_function): New variable.
33038         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
33039         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
33040         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
33041         notes, targetm.asm_out.function_prologue doesn't emit anything,
33042         HAVE_prologue and profiler should be emitted before prologue,
33043         set need_profile_function instead of emitting it.
33044         (final_scan_insn): If need_profile_function, emit
33045         profile_function on the first NOTE_INSN_BASIC_BLOCK or
33046         NOTE_INSN_FUNCTION_BEG note.
33048 2013-02-01  Richard Henderson  <rth@redhat.com>
33050         * config/rs6000/rs6000.md (smulditi3): New.
33051         (umulditi3): New.
33053         * config/alpha/alpha.md (umulditi3): New.
33055 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
33057         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
33058         (ASM_OUTPUT_ALIGNED_LOCAL): New.
33060 2013-02-01  Richard Biener  <rguenther@suse.de>
33062         PR tree-optimization/56113
33063         * tree-ssa-structalias.c (label_visit): Reduce work for
33064         single-predecessor nodes.
33066 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
33068         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
33069         range isn't testing for zero.
33071 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
33073         PR middle-end/56113
33074         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
33076 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
33077             Nick Clifton  <nickc@redhat.com>
33079         * config/v850/constraints.md (Q): Define as a memory constraint.
33080         * config/v850/predicates.md (label_ref_operand): New predicate.
33081         (e3v5_shift_operand): New predicate.
33082         (ior_operator): New predicate.
33083         * config/v850/t-v850: Add e3v5 multilib.
33084         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
33085         (v850_gen_movdi): Prototype.
33086         * config/v850/v850.c: Add support for e3v5 architecture.
33087         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
33088         TARGET_V850E_UP.
33089         (construct_save_jarl): Add e3v5 long JARL support.
33090         (v850_adjust_insn_length): New function.  Adjust length of call
33091         insns when using e3v5 instructions.
33092         (v850_gen_movdi): New function: Generate instructions to move a
33093         DImode value.
33094         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
33095         (CPP_SPEC): Define __v850e3v5__ as appropriate.
33096         (TARGET_USE_FPU): Enable for e3v5.
33097         (CONST_OK_FOR_W): New macro.
33098         (ADJUST_INSN_LENGTH): Define.
33099         * config/v850/v850.md (UNSPEC_LOOP): Define.
33100         (attr cpu): Add v850e3v5.
33101         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
33102         (movdi): New pattern.
33103         (movdi_internal): New pattern.
33104         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
33105         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
33106         (cstoresf4): Likewise.
33107         (cstoredf4): Likewise.
33108         (insv): New pattern.
33109         (rotlso3_a): New pattern.
33110         (rotlsi3_b): New pattern
33111         (rotlsi3_v850e3v5): New pattern.
33112         (doloop_begin): New pattern.
33113         (fix_loop_counter): New pattern.
33114         (doloop_end): New pattern.
33115         (branch_normal): Add e3v5 long branch support.
33116         (branch_invert): Likewise.
33117         (branch_z_normal): Likewise.
33118         (branch_z_invert): Likewise.
33119         (branch_nz_normal): Likewise.
33120         (branch_nz_invert): Likewise.
33121         (call_internal_short): Add e3v5 register-indirect JARL support.
33122         (call_internal_long): Likewise.
33123         (call_value_internal_short): Likewise.
33124         (call_value_internal_long): Likewise.
33125         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
33126         (mloop): New option.
33127         * config.gcc: Add support for configuring v840e3v5 target.
33128         * doc/invoke.texi: Document new v850 specific command line options.
33130 2013-01-31  Paul Koning  <ni1d@arrl.net>
33132         PR debug/55059
33133         PR debug/54508
33134         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
33135         children if parent is a class.
33136         (prune_unused_types_prune): Don't add DW_AT_declaration.
33138 2013-01-31  Richard Biener  <rguenther@suse.de>
33140         PR tree-optimization/56157
33141         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
33142         match up operand with SLP child.
33144 2013-01-31  Jason Merrill  <jason@redhat.com>
33146         PR debug/54410
33147         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
33148         parameters the first time.
33149         (gen_scheduled_generic_parms_dies): Check completeness here.
33151 2013-01-31  Richard Biener  <rguenther@suse.de>
33153         PR middle-end/53073
33154         * common.opt (faggressive-loop-optimizations): New flag,
33155         enabled by default.
33156         * doc/invoke.texi (faggressive-loop-optimizations): Document.
33157         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
33158         infer_loop_bounds_from_undefined by it.
33160 2013-01-31  Richard Biener  <rguenther@suse.de>
33162         PR tree-optimization/56150
33163         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
33164         visit virtual operands.
33165         (find_uses_to_rename_bb): Likewise.
33167 2013-01-31  Richard Biener  <rguenther@suse.de>
33169         PR tree-optimization/56150
33170         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
33171         mixed store non-store stmts.
33173 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
33175         PR sanitizer/55374
33176         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
33177         LIBASAN_EARLY_SPEC is defined.
33178         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
33179         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
33180         before %o.
33181         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
33183         PR c++/55742
33184         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
33185         invalid args instead of ICEing on it.
33186         (ix86_valid_target_attribute_tree): Return error_mark_node if
33187         ix86_valid_target_attribute_inner_p failed.
33188         (ix86_valid_target_attribute_p): Return false only if
33189         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
33190         target("default") attribute.
33191         (sorted_attr_string): Change argument from const char * to tree,
33192         merge in all target attribute arguments rather than just one.
33193         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
33194         instead of free.  Avoid using strcat.
33195         (ix86_mangle_function_version_assembler_name): Mangle
33196         target("default") as if no target attribute is present.  Adjust
33197         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
33198         instead of xmalloc and XDELETEVEC instead of free.
33199         (ix86_function_versions): Don't return true if one of the decls
33200         doesn't have target attribute.  If they don't and one of the decls
33201         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
33202         sorted_attr_string caller.  Use XDELETEVEC instead of free.
33203         (ix86_supports_function_versions): Remove.
33204         (make_name): Fix up formatting.
33205         (make_dispatcher_decl): Remove resolver_name and its initialization.
33206         Avoid leaking memory.
33207         (is_function_default_version): Return true if there is
33208         target("default") attribute rather than no target attribute at all.
33209         (make_resolver_func): Avoid leaking memory.
33210         (ix86_generate_version_dispatcher_body): Likewise.
33211         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
33212         * target.def (supports_function_versions): Remove.
33213         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
33214         * doc/tm.texi: Regenerated.
33216 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33218         PR rtl-optimization/56144
33219         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
33220         for values with side effects.
33222 2013-01-30  Richard Biener  <rguenther@suse.de>
33224         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
33225         (sparseset_pop): Likewise.
33226         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
33227         to be able to use quick_push in the worker loop.
33229 2013-01-30  Marek Polacek  <polacek@redhat.com>
33231         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
33233 2013-01-30  Richard Biener  <rguenther@suse.de>
33235         PR lto/56147
33236         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
33238 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
33240         PR tree-optimization/56064
33241         * fixed-value.c (fixed_from_double_int): New function.
33242         * fixed-value.h (fixed_from_double_int): New prototype.
33243         (const_fixed_from_double_int): New static inline function.
33244         * fold-const.c (native_interpret_fixed): New static function.
33245         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
33246         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
33247         (native_encode_fixed): New static function.
33248         (native_encode_expr) <FIXED_CST>: Use it.
33249         (native_interpret_int): Move double_int worker code to...
33250         * double-int.c (double_int::from_buffer): ...this new static method.
33251         * double-int.h (double_int::from_buffer): Prototype it.
33253 2013-01-30  Richard Biener  <rguenther@suse.de>
33255         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
33256         New pointer-map and obstack.
33257         (init_alias_vars): Allocate pointer-map and obstack.
33258         (delete_points_to_sets): Free them.
33259         (find_what_var_points_to): Cache result.
33260         (find_what_p_points_to): Adjust for changed interface of
33261         find_what_var_points_to.
33262         (compute_points_to_sets): Likewise.
33263         (ipa_pta_execute): Likewise.
33265 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33267         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
33268         * configure: Regenerate.
33269         * config.in: Regenerate.
33270         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
33271         #nobits/#progbits if supported.
33273 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
33275         PR target/56121
33276         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
33277         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
33278         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
33280 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33282         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
33283         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
33285 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33287         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
33288         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
33290 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33292         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
33293         declaration.
33294         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
33295         * config/arm/cortex-a7.md: New bypasses using
33296         arm_mac_accumulator_is_result.
33298 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33300         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
33301         (cortex_a7_neon_mla): Likewise.
33302         (cortex_a7_fpfmad): New reservation.
33303         (cortex_a7_fpmacs): Use ffmas and update required units.
33304         (cortex_a7_fpmuld): Update required units and latency.
33305         (cortex_a7_fpmacd): Likewise.
33306         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
33307         (cortex_a7_neon). Likewise.
33308         (bypass) Update participating units.
33310 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33312         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
33313         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
33314         from fmac to ffma.
33315         * config/arm/vfp11.md (vfp_farith): Use ffmas.
33316         (vfp_fmul): Use ffmad.
33317         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
33318         (cortex_r4_fmacd): Use ffmad.
33319         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
33320         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
33321         (cortex_a9_fmacd): Use ffmad.
33322         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
33323         (cortex_a8_vfp_macd): Use ffmad.
33324         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
33325         (cortex_a5_fpmacd): Use ffmad.
33326         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
33327         (cortex_a15_vfp_macd): Use ffmad.
33328         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
33330 2013-01-29  Jason Merrill  <jason@redhat.com>
33332         PR libstdc++/54314
33333         * varasm.c (default_assemble_visibility): Don't warn about
33334         visibility on artificial decls.
33336 2013-01-29  Richard Biener  <rguenther@suse.de>
33338         PR tree-optimization/56113
33339         * tree-ssa-structalias.c (equiv_class_lookup): Also return
33340         the bitmap leader.
33341         (label_visit): Free duplicate bitmaps and record the leader instead.
33342         (perform_var_substitution): Adjust.
33344 2013-01-29  Richard Biener  <rguenther@suse.de>
33346         PR tree-optimization/55270
33347         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
33348         the CFG, schedule loops for fixup.
33350 2013-01-29  Nick Clifton  <nickc@redhat.com>
33352         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
33353         SP_REG.
33355 2013-01-28  Leif Ekblad  <leif@rdos.net>
33357         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
33358         * config/i386/i386.h (TARGET_RDOS): New macro.
33359         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
33360         * config/i386/i386.c (ix86_option_override_internal): For 64bit
33361         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
33362         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
33363         DEFAULT_LARGE_SECTION_THRESHOLD.
33364         * config/i386/i386.md (R14_REG, R15_REG): New constants.
33365         * config/i386/rdos.h: New file.
33366         * config/i386/rdos64.h: New file.
33368 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
33370         PR other/54814
33371         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
33372         TEST_HARD_REG_BIT.
33374 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
33376         PR rtl-optimization/56117
33377         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
33378         call cselib_lookup_from_insn on the MEM before calling
33379         add_insn_mem_dependence.
33381 2013-01-28  Richard Biener  <rguenther@suse.de>
33383         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
33384         to a stmt that didn't have one.
33385         (copy_phis_for_bb): Likewise for PHI arguments.
33386         (copy_debug_stmt): Likewise for debug stmts.
33388 2013-01-28  Richard Biener  <rguenther@suse.de>
33390         PR tree-optimization/56034
33391         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
33392         (partition_builtin_p): Adjust.
33393         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
33394         it is the last partition.
33395         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
33396         up the vertex for the definition.
33397         (classify_partition): Classify whether a partition is a
33398         PKIND_REDUCTION, thus has uses outside of the loop.
33399         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
33400         Merge all PKIND_REDUCTION partitions into the last partition.
33401         (tree_loop_distribution): Seed partitions from reductions as well.
33403 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
33405         PR tree-optimization/56125
33406         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
33407         pow(x,c) into sqrt(x) * powi(x, n/2) or
33408         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
33409         optimizing for size.
33410         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
33411         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
33412         integer.
33414         PR tree-optimization/56094
33415         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
33416         to UNKNOWN_LOCATION while gimplifying expr.
33418 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
33420         PR target/56114
33421         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
33422         operand 0 in movabs insn template for -masm=intel asm alternative.
33423         (*movabs<mode>_2): Ditto for operand 1.
33425 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
33427         PR target/54663
33428         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
33429         of microblaze-c.o
33431 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33433         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
33434         tm_file.
33436 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
33438         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
33439         Undef to avoid warning.
33441 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33443         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
33444         * configure: Regenerate.
33446 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
33448         PR tree-optimization/56098
33449         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
33450         for stmts with volatile ops.
33451         (cond_store_replacement): Don't optimize if assign has volatile ops.
33452         (cond_if_else_store_replacement_1): Don't optimize if either
33453         then_assign or else_assign have volatile ops.
33454         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
33455         volatile ops.
33457 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
33459         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
33461 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
33463         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
33464         missing ':' in asm example.
33466 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
33468         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
33469         entries into lane and laneq entries.
33470         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
33471         Remove AdvSIMD scalar modes.
33472         (aarch64_sq<r>dmulh_laneq<mode>): New.
33473         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
33474         modes.
33475         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
33476         builtin implementations to relfect changes in RTL in aarch64-simd.md.
33477         * config/aarch64/iterators.md (VCOND): New.
33478         (VCONQ): New.
33480 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
33482         PR target/54222
33483         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
33484         Add NULL LIBNAME argument to existing definitions.
33485         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
33486         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
33487         * config/avr/avr.c (DEF_BUILTIN): Same.
33488         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
33489         (avr_expand_builtin): Expand to a vanilla call if a libgcc
33490         implementation is available (DECL_ASSEMBLER_NAME is set).
33491         (avr_fold_absfx): New static function.
33492         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
33493         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
33494         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
33495         AVR_BUILTIN_ABSLLK.
33496         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
33497         (abshk, absk, abslk, absllk): Provide as static inline functions.
33499 2013-01-25  Marek Polacek  <polacek@redhat.com>
33501         PR tree-optimization/56035
33502         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
33504 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
33506         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
33507         (*movtf_internal_rex64): Add (!o,C) alternative
33508         (*movxf_internal_rex64): Ditto.
33509         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
33511 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
33513         * doc/invoke.texi: fix typo.
33514         * doc/objc.texi: fix typo.
33516 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
33518         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
33519         for the first two alternatives.
33521 2013-01-24  Diego Novillo  <dnovillo@google.com>
33523         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
33524         (ggc-zone.o): Remove.
33525         * configure.ac: Remove option --with-gc.
33526         * configure: Re-generate.
33527         * doc/install.texi: Remove documentation for --with-gc.
33528         * gengtype.c (write_enum_defn): Remove.  Update all users.
33529         (write_Types_process_field): Remove generation of gt_e_* argument.
33530         (output_type_enum): Remove.  Update all users.
33531         (write_enum_defn): Remove.  Update all users.
33532         (enum alloc_zone): Remove.  Update all users.
33533         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
33534         * ggc-common.c (ggc_splay_alloc): Remove first argument.
33535         Update all callers.
33536         (struct ptr_data): Remove field TYPE.  Update all users.
33537         (gt_pch_note_object): Remove argument TYPE.  Update all users.
33538         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
33539         Update all users.
33540         * ggc-none.c (ggc_alloc_typed_stat): Remove.
33541         (struct alloc_zone): Remove.
33542         (ggc_internal_alloc_zone_stat): Remove.
33543         (ggc_internal_cleared_alloc_zone_stat): Remove.
33544         * ggc-page.c (ggc_alloc_typed_stat): Remove.
33545         (ggc_pch_count_object): Remove last argument.  Update all users.
33546         (ggc_pch_alloc_object): Remove last argument.  Update all users.
33547         (struct alloc_zone): Remove.
33548         * ggc-zone.c: Remove.
33549         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
33550         (struct alloc_zone): Remove.
33551         (ggc_alloc_typed_stat): Remove.
33552         (ggc_alloc_typed): Remove.
33553         (ggc_splay_alloc): Remove first argument.
33554         (rtl_zone): Remove.  Update all users.
33555         (tree_zone): Remove.  Update all users.
33556         (tree_id_zone): Remove.  Update all users.
33557         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
33558         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
33559         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
33560         * tree-ssanames.c: Remove references to zone allocator in comments.
33562 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
33564         * config/avr/avr.c (avr_out_fract): Make register numbers that
33565         might be outside of source operand signed.
33567 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
33569         * config/i386/constraints.md (Yf): New constraint.
33570         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
33571         of f constraint to conditionaly disable x87 register preferences.
33572         (*movdf_internal): Ditto.
33573         (*movsf_internal): Ditto.
33575 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
33577         PR inline-asm/55934
33578         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
33579         that have operands with impossible constraints.
33580         Add a FIXME for a speed-up opportunity.
33581         * lra-constraints.c (process_alt_operands): Verify that a class
33582         selected from constraints on asms is valid for the operand mode.
33583         (curr_insn_transform): Remove incorrect comment.
33585 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
33587         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
33588         TOC operand is a valid symbol ref in the constant pool.
33590 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33592         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
33594 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
33596         PR target/54222
33597         * config/avr/stdfix.h: New file.
33598         * t-avr (stdfix-gcc.h): New rule to build it.
33599         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
33601 2013-01-23  Kostya Serebryany  <kcc@google.com>
33603         * config/darwin.h: remove dependency on
33604         CoreFoundation (asan on Mac OS).
33606 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
33608         PR target/49069
33609         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
33610         instead of cmpdi_operand for first comparison operand.
33611         Don't assert that comparison operands aren't both constants.
33613 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
33615         * doc/install.texi (Downloading the Source): Update references to
33616         downloading separate components.
33618 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
33620         * doc/extend.texi (__int128): Improve grammar.
33622 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
33624         PR target/56028
33625         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
33626         alternative to (o,r).
33627         (*movdi_internal_rex64): Remove (!o,n) alternative.
33628         (DImode immediate->memory splitter): Remove.
33629         (DImode immediate->memory peephole2): Remove.
33630         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
33631         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
33632         alternative to (!o,*r).
33633         (*movtf_internal_sse): New pattern.
33634         (*movxf_internal_rex64): New pattern.
33635         (*movxf_internal): Disable for TARGET_64BIT.
33636         (*movdf_internal_rex64): Remove (!o,F) alternative.
33638 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
33640         PR middle-end/56074
33641         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
33642         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
33643         * tree-vect-loop-manip.c (find_loop_location): Also ignore
33644         stmt locations where LOCATION_LOCUS of the stmt location is
33645         UNKNOWN_LOCATION or BUILTINS_LOCATION.
33647         PR target/55686
33648         * config/i386/i386.md (UNSPEC_STOS): New.
33649         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
33650         *strsetqi_1): Add UNSPEC_STOS.
33652 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
33654         PR c++/56067
33655         * doc/invoke.texi: Remove left over -Wsynth example.
33657 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
33659         PR tree-optimization/56051
33660         * fold-const.c (fold_binary_loc): Don't fold
33661         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
33662         a narrowing conversion, or widening conversion from signed
33663         to unsigned.
33665 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
33667         PR rtl-optimization/56023
33668         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
33669         dependent on debug instruction.
33671 2013-01-21  Martin Jambor  <mjambor@suse.cz>
33673         PR middle-end/56022
33674         * function.c (allocate_struct_function): Call
33675         invoke_set_current_function_hook earlier.
33677 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
33679         * reload1.c (init_reload): Only initialize reload_obstack
33680         during the first call.
33682 2013-01-21  Marek Polacek  <polacek@redhat.com>
33684         * cfgloop.c (verify_loop_structure): Fix up grammar.
33686 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
33688         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
33689         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
33691 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33693         PR target/56058
33694         * config/arm/marvell-pj4.md: Update copyright year.
33695         Fix up use of alu to alu_reg and simple_alu_imm.
33697 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
33699         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
33701 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
33703         PR target/55433
33704         * lra-constraints.c (curr_insn_transform): Don't reuse original
33705         insn for secondary memory move when memory mode should be different.
33707 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33709         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
33710         atomic_storedi_1): New patterns.
33712 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
33714         btver2 pipeline descriptions.
33715         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
33716         descriptions.
33717         * config/i386/i386.md (btver2_decode): New type attributes.
33718         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
33719         type attributes.
33720         * config/i386/btver2.md: New file describing btver2 pipelines.
33722 2013-01-19  Andrew Pinski  <apinski@cavium.com>
33724         PR tree-optimization/52631
33725         * tree-ssa-sccvn (visit_use): Before looking up the original
33726         statement, try looking up the simplified expression.
33728 2013-01-19  Anthony Green  <green@moxielogic.com>
33730         * config/moxie/moxie.c (moxie_expand_prologue): Set
33731         current_function_static_stack_size.
33733 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
33735         PR tree-optimization/56029
33736         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
33737         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
33739 2013-01-18  Sharad Singhai  <singhai@google.com>
33741         PR tree-optimization/55995
33742         * dumpfile.c (dump_loc): Print location only if available.
33743         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
33745 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
33747         PR target/55433
33748         * lra-constraints.c (curr_insn_transform): Reuse original insn for
33749         secondary memory move.
33750         (inherit_reload_reg): Use rclass instead of cl for
33751         check_secondary_memory_needed_p.
33753 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
33755         PR middle-end/56015
33756         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
33757         the case where writing real complex part of target modifies op1.
33759 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
33761         * config/aarch64/aarch64-simd.md
33762         (aarch64_vcond_internal<mode>): Handle unordered cases.
33763         * config/aarch64/iterators.md (v_cmp_result): New.
33765 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
33766             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33768         * config/arm/marvell-pj4.md: New file.
33769         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
33770         * config/arm/arm.md (generic_sched): Add marvell_pj4.
33771         (generic_vfp): Likewise.
33772         * config/arm/arm-cores.def: Add marvell-pj4.
33773         * config/arm/arm-tune.md: Regenerate.
33774         * config/arm/arm-tables.opt: Regenerate.
33775         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
33776         * doc/invoke.texi: Document marvell-pj4.
33778 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
33780         * config/aarch64/arm_neon.h: Map scalar types to standard types.
33782 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
33784         PR debug/54114
33785         PR debug/54402
33786         PR debug/49888
33787         * var-tracking.c (negative_power_of_two_p): New.
33788         (global_get_addr_cache, local_get_addr_cache): New.
33789         (get_addr_from_global_cache, get_addr_from_local_cache): New.
33790         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
33791         heading comment.
33792         (vt_stack_offset_p): Remove.
33793         (vt_canon_true_dep): Always canonicalize loc's address.
33794         (clobber_overlapping_mems): Make sure we have a MEM.
33795         (local_get_addr_clear_given_value): New.
33796         (val_reset): Clear local cached entries.
33797         (compute_bb_dataflow): Create and release the local cache.
33798         Disable duplicate MEMs clobbering.
33799         (emit_notes_in_bb): Clobber MEMs likewise.
33800         (vt_emit_notes): Create and release the local cache.
33801         (vt_initialize, vt_finalize): Create and release the global
33802         cache, respectively.
33803         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
33805 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
33807         PR libmudflap/53359
33808         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
33809         not found in the symtab.
33811 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
33813         PR debug/56006
33814         PR rtl-optimization/55547
33815         PR rtl-optimization/53827
33816         PR debug/53671
33817         PR debug/49888
33818         * alias.c (offset_overlap_p): New, factored out of...
33819         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
33820         the conservative special case for symbolic constants.  Don't
33821         adjust zero sizes on alignment.
33823 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
33825         PR rtl-optimization/52573
33826         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
33827         REG_UNUSED for the same register.
33829 2013-01-17  Richard Biener  <rguenther@suse.de>
33830             Marek Polacek  <polacek@redhat.com>
33832         PR rtl-optimization/55833
33833         * loop-unswitch.c (unswitch_loops): Move loop verification...
33834         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
33835         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
33836         Set it to true when we're removing a loop from hierarchy tree in
33837         an irreducible region.
33838         (fix_bb_placements): Adjust caller.
33839         (fix_loop_placements): Likewise.
33841 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
33843         * config/avr/builtins.def (DEF_BUILTIN): Factor out
33844         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
33845         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
33846         Remove ID.  Adjust comments.
33847         * config/avr/avr-c.c (avr_builtin_name): Remove.
33848         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
33849         * config/avr/avr.c (avr_tolower): New static function.
33850         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
33851         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
33852         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
33853         default expansion.
33855 2013-01-17  Jan Hubicka  <jh@suse.cz>
33857         PR tree-optimization/55273
33858         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
33860 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
33862         PR target/55981
33863         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
33864         store through atomic_store<mode>_1.
33865         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
33867 2013-01-17  Martin Jambor  <mjambor@suse.cz>
33869         PR tree-optimizations/55264
33870         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
33871         for virtual methods.
33872         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
33873         virtual methods before inlining is over.
33874         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
33875         virtual functions.
33876         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
33877         non-virtual.
33879 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
33881         PR rtl-optimization/56005
33882         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
33883         pending reads for prefetch.
33885 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
33887         * config/aarch64/aarch64.md
33888         (*cstoresi_neg_uxtw): New pattern.
33889         (*cmovsi_insn_uxtw): New pattern.
33890         (*<optab>si3_uxtw): New pattern.
33891         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
33892         (*<optab>si3_insn_uxtw): New pattern.
33893         (*bswapsi2_uxtw): New pattern.
33895 2013-01-16  Richard Biener  <rguenther@suse.de>
33897         * tree-inline.c (tree_function_versioning): Remove set but
33898         never used variable.
33900 2013-01-16  Richard Biener  <rguenther@suse.de>
33902         PR tree-optimization/55964
33903         * tree-flow.h (rename_variables_in_loop): Remove.
33904         (rename_variables_in_bb): Likewise.
33905         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
33906         (copy_loop_before): Adjust and delete update-ssa status.
33907         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
33908         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
33909         (rename_variables_in_loop): Remove.
33910         (slpeel_update_phis_for_duplicate_loop): Likewise.
33911         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
33912         use available cfg machinery instead of duplicating it.
33913         Update PHI nodes and perform poor-mans SSA update here.
33914         (slpeel_tree_peel_loop_to_edge): Adjust.
33916 2013-01-16  Richard Biener  <rguenther@suse.de>
33918         PR tree-optimization/54767
33919         PR tree-optimization/53465
33920         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
33921         (vrp_visit_phi_node): For PHI arguments coming via backedges
33922         drop all symbolical range information.
33923         (execute_vrp): Compute backedges.
33925 2013-01-16  Richard Biener  <rguenther@suse.de>
33927         * doc/install.texi: Update CLooG and ISL requirements to
33928         0.18.0 and 0.11.1.
33930 2013-01-16  Christian Bruel  <christian.bruel@st.com>
33932         PR target/55301
33933         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
33934         (broken_move): Handle UNSPECV_SP_SWITCH_B.
33935         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
33937 2013-01-16  DJ Delorie  <dj@redhat.com>
33939         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
33940         (UNSPECV_SP_SWITCH_E): New.
33941         (sp_switch_1): Change to an unspec.
33942         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
33943         replace $r15.
33945 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
33947         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
33948         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
33949         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
33950         (expand_mem_thread_fence): Ditto.
33951         (expand_mem_signal_fence): Ditto.
33952         (expand_atomic_load): Ditto.
33953         (expand_atomic_store): Ditto.
33955 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
33957         PR rtl-optimization/55547
33958         PR rtl-optimization/53827
33959         PR debug/53671
33960         PR debug/49888
33961         * alias.c (memrefs_conflict_p): Set sizes to negative after
33962         AND adjustments.
33964 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
33966         PR target/55940
33967         * function.c (thread_prologue_and_epilogue_insns): Always
33968         add crtl->drap_reg to set_up_by_prologue.set, even if
33969         stack_realign_drap is false.
33971 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
33973         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
33974         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
33975         *call): Fix indention.
33977 2013-01-15  Tom de Vries  <tom@codesourcery.com>
33979         PR target/55876
33980         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
33981         Update comment.
33983 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
33985         PR rtl-optimization/55153
33986         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
33988 2013-01-15  Martin Jambor  <mjambor@suse.cz>
33990         PR tree-optimization/55920
33991         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
33992         accesses as grp_to_be_debug_replaced.
33994 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
33996         PR tree-optimization/55920
33997         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
33998         there is non-useless type conversion needed from debug rhs to lhs,
33999         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
34001 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
34002             Mikael Pettersson  <mikpe@it.uu.se>
34004         PR target/43961
34005         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
34006         Thumb.
34007         (ASM_OUTPUT_CASE_LABEL): Remove.
34008         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
34009         * final.c (shorten_branches): Update alignment of labels before
34010         jump tables if CASE_VECTOR_SHORTEN_MODE.
34012 2013-01-15  Richard Biener  <rguenther@suse.de>
34014         PR bootstrap/55961
34015         * system.h: Do not include gmp.h for building host tools.
34017 2013-01-15  Richard Biener  <rguenther@suse.de>
34019         PR middle-end/55882
34020         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
34021         account for bitpos when computing alignment.
34023 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
34025         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
34026         (ix86_target_macros_internal): Likewise.
34028         * config/i386/i386.c (m_CORE2I7): Removed.
34029         (m_CORE_HASWELL): New macro.
34030         (m_CORE_ALL): Likewise.
34031         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
34032         (initial_ix86_arch_features): Likewise.
34033         (processor_target_table): Initializations for Core avx2.
34034         (cpu_names): New names "core-avx2".
34035         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
34036         PROCESSOR_CORE_HASWELL.
34037         (ix86_issue_rate): New case.
34038         (ia32_multipass_dfa_lookahead): Likewise.
34039         (ix86_sched_init_global): Likewise.
34041         * config/i386/i386.h (TARGET_HASWELL): New macro.
34042         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
34043         (processor_type): New PROCESSOR_HASWELL.
34045 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
34047         PR tree-optimization/55955
34048         * tree-vect-loop.c (vectorizable_reduction): Give up early on
34049         *SHIFT_EXPR and *ROTATE_EXPR codes.
34051         PR tree-optimization/48766
34052         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
34053         -ftrapv disable -fwrapv.
34055 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
34057         PR target/55974
34058         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
34059         etc. to 1 and not to __flash.
34060         Use LL suffix for __INT24_MAX__ with -mint8.
34061         Use ULL suffix for __UINT24_MAX__ with -mint8.
34063 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
34065         * config/avr/avr-arch.h
34066         (struct base_arch_s): Use typedef avr_arch_t instead.
34067         (struct arch_info_s): Use typedef avr_arch_info_t instead.
34068         (struct mcu_type_s): Use typedef avr_mcu_t instead.
34069         * config/avr/avr.c: Same.
34070         * config/avr/avr-devices.c: Same.
34071         * config/avr/driver-avr.c: Same.
34072         * config/avr/gen-avr-mmcu-texi.c: Same.
34073         * config/avr/avr-mcus.def: Adjust comment.
34075 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
34077         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
34078         * config/aarch64/iterators.md (VALLDI): New.
34080 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
34081             Andi Kleen  <ak@linux.intel.com>
34083         PR target/55948
34084         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
34085         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
34086         memmodel flag.
34088 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
34090         * config/avr/avr-stdint.h: Remove trailing blanks.
34091         * config/avr/avr-log.h: Same.
34092         * config/avr/avr-arch.h: Same.
34093         * config/avr/avr-devices.c: Same.
34094         * config/avr/avr-dimode.md: Same.
34095         * config/avr/predicates.md: Same.
34096         * config/avr/avr-c.c: Same.  And fix typo.
34098         * config/avr/avr-protos.h: Same.  And:
34099         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
34100         (init_cumulative_args): Rename to avr_init_cumulative_args.
34101         (expand_prologue): Rename to avr_expand_prologue.
34102         (expand_epilogue): Rename to avr_expand_epilogue.
34103         (adjust_insn_length): Rename to avr_adjust_insn_length.
34104         (notice_update_cc): Rename to avr_notice_update_cc.
34105         (final_prescan_insn): Rename to avr_final_prescan_insn.
34106         * config/avr/avr.c: Same.
34107         * config/avr/avr.h: Same.
34108         * config/avr/avr.md: Remove trailing blanks.
34109         (prologue): Use avr_expand_prologue.
34110         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
34112 2013-01-14  Richard Biener  <rguenther@suse.de>
34114         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
34115         verify_location, collect_subblocks): New functions.
34116         (verify_gimple_in_cfg): Verify that locations only reference
34117         BLOCKs in the functions BLOCK tree.
34119 2013-01-14  Richard Biener  <rguenther@suse.de>
34121         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
34122         PHI argument.
34123         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
34124         unshare reference.
34125         (insert_out_of_ssa_copy_on_edge): Likewise.
34126         (rewrite_close_phi_out_of_ssa): Likewise.
34127         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
34128         debug expressions.
34129         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
34130         propagated constants.
34131         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
34132         can not be shared.
34134 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
34136         * config/avr/avr-modes.def: Add GPL copyright notice.
34138 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
34140         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
34141         MEMMODEL_MASK to determine memory model.
34142         (atomic_store<mode>): Ditto from operands[2].
34143         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
34145 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
34147         PR fortran/55935
34148         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
34149         (fold_gimple_assign): Don't call unshare_expr here.
34150         (fold_ctor_reference): Call unshare_expr.
34152 2013-01-13  Terry Guo  <terry.guo@arm.com>
34154         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
34155         * doc/fragments.texi: Document MULTILIB_REUSE.
34156         * gcc.c (multilib_reuse): New internal spec.
34157         (set_multilib_dir): Also search multilib from multilib_reuse.
34158         * genmultilib (tmpmultilib3): Refactor code.
34159         (tmpmultilib4): Ditto.
34160         (multilib_reuse): New multilib argument.
34162 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
34164         * Makefile.in: Update copyright.
34166 2013-01-12  Tom de Vries  <tom@codesourcery.com>
34168         PR middle-end/55890
34169         * calls.c (expand_call): Check if arg_nr is valid.
34171 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
34173         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
34174         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
34175         documentation.  Add missing '__' in front of
34176         __builtin_ia32_packssdw256.
34178 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34180         PR target/55719
34181         * config/s390/s390.c (s390_preferred_reload_class): Do not return
34182         NO_REGS for larl operands.
34183         (s390_reload_larl_operand): Use s390_load_address instead of
34184         emit_move_insn.
34186 2013-01-11  Richard Biener  <rguenther@suse.de>
34188         * tree-cfg.c (verify_node_sharing_1): Split out from ...
34189         (verify_node_sharing): ... here.
34190         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
34192 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
34194         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
34195         Substitute TREECHECKING.
34196         * configure: Regenerate.
34197         * Makefile.in (TREECHECKING): New.
34199 2013-01-11  Richard Guenther  <rguenther@suse.de>
34201         PR tree-optimization/44061
34202         * tree-vrp.c (extract_range_basic): Compute zero as
34203         value-range for __builtin_constant_p of function parameters.
34205 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
34207         Update copyright years.
34209 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
34211         PR rtl-optimization/55672
34212         * lra-eliminations.c (mark_not_eliminable): Permit addition with
34213         const to be eliminable.
34215 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
34217         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
34218         * configure: Regenerate.
34220 2013-01-10  Richard Biener  <rguenther@suse.de>
34222         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
34224 2013-01-10  Richard Biener  <rguenther@suse.de>
34226         PR bootstrap/55792
34227         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
34228         locations for virtual PHI arguments.
34229         (rewrite_update_phi_arguments): Likewise.
34231 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
34233         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
34234         on to assembler.
34236 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
34238         PR tree-optimization/55921
34239         * tree-complex.c (expand_complex_asm): New function.
34240         (expand_complex_operations_1): Call it for GIMPLE_ASM.
34242 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34244         PR target/55718
34245         * config/s390/s390.c (s390_symref_operand_p)
34246         (s390_loadrelative_operand_p): Merge the two functions.
34247         (s390_check_qrst_address, print_operand_address): Add parameters
34248         to s390_loadrelative_operand_p invokation.
34249         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
34250         (s390_reload_larl_operand, s390_secondary_reload): Use
34251         s390_loadrelative_operand_p instead of s390_symref_operand_p.
34252         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
34254 2013-01-09  Mike Stump  <mikestump@comcast.net>
34256         * dse.c (record_store): Remove unnecessary assert.
34258 2013-01-09  Jan Hubicka  <jh@suse.cz>
34260         PR tree-optimization/55569
34261         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
34262         * cfgloop.h (scale_loop_profile): Likewise.
34264 2013-01-09  Jan Hubicka  <jh@suse.cz>
34266         PR lto/45375
34267         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
34268         functions.
34269         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
34271 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
34273         PR middle-end/55114
34274         * expr.h (maybe_emit_group_store): Declare.
34275         * expr.c (maybe_emit_group_store): New function.
34276         * builtins.c (expand_builtin_int_roundingfn): Call it.
34277         (expand_builtin_int_roundingfn_2): Likewise.
34279 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
34281         PR rtl-optimization/55829
34282         * lra-constraints.c (match_reload): Add code for absent output.
34283         (curr_insn_transform): Add code for reloads of matched inputs
34284         without output.
34286 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
34288         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
34289         attribute of movddup insn to DF.
34290         (*vec_interleave_lowv2df): Ditto.
34291         (vec_dupv2df): Ditto.
34293 2013-01-09  Jan Hubicka  <jh@suse.cz>
34295         PR tree-optimiation/55875
34296         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
34297         EVERY_ITERATION parameter.
34298         (number_of_iterations_exit): Check if exit is executed every iteration.
34299         (idx_infer_loop_bounds): Similarly here.
34300         (n_of_executions_at_most): Simplify
34301         to only test for cases where statement is dominated by the
34302         particular bound; handle correctly the "postdominance" test.
34303         (scev_probably_wraps_p): Use max loop iterations info
34304         as a global bound first.
34306 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
34307             Nick Clifton  <nickc@redhat.com>
34309         * config/v850/v850.md (cbranchsf4): New pattern.
34310         (cstoresf4): New pattern.
34311         (cbranchdf4): New pattern.
34312         (cstoredf4): New pattern.
34313         (movsicc): Disallow floating point comparisons.
34314         (cmpsf_le_insn): Fix order of operators.
34315         (cmpsf_lt_insn): Likewise.
34316         (cmpsf_eq_insn): Likewise.
34317         (cmpdf_le_insn): Likewise.
34318         (cmpdf_lt_insn): Likewise.
34319         (cmpdf_eq_insn): Likewise.
34320         (cmpsf_ge_insn): Use LE comparison.
34321         (cmpdf_ge_insn): Likewise.
34322         (cmpsf_gt_insn): Use LT comparison.
34323         (cmpdf_gt_insn): Likewise.
34324         (cmpsf_ne_insn): Delete pattern.
34325         (cmpdf_ne_insn): Delete pattern.
34326         * config/v850/v850.c (v850_gen_float_compare): Use
34327         gen_cmpdf_eq_insn for NE comparison.
34328         (v850_float_z_comparison_operator)
34329         (v850_float_nz_comparison_operator): Move from here ...
34330         * config/v850/predicates.md: ... to here.  Move GT and GE
34331         comparisons into v850_float_z_comparison_operator.
34332         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
34333         Delete prototype.
34334         (v850_float_nz_comparison_operator): Likewise.
34336 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34338         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
34339         with calls to gen_insvsi/gen_insvdi.
34341 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
34343         * config/i386/i386.c (initial_ix86_tune_features): Set up
34344         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
34346 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
34347             Jakub Jelinek  <jakub@redhat.com>
34349         PR tree-optimization/48189
34350         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
34351         If nitercst is 0, don't predict the exit edge.
34353 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34355         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
34356         in asm_fprintf with reg_names.
34357         (aarch64_print_operand_address): Likewise.
34358         (aarch64_return_addr): Likewise.
34359         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
34361 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34363         * config/pa/pa.h (VAL_U6_BITS_P): Define.
34364         (INT_U6_BITS): Likewise.
34365         * config/pa/predicates.md (uint6_operand): New predicate.
34366         (shift5_operand, shift6_operand): Likewise.
34367         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
34368         arith32_operand.
34369         (lshrdi3): Use shift6_operand.
34370         (shrpsi4, shrpdi4): New insn patterns.
34371         (extzv): Delete expander.
34372         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
34373         predicates in unamed zero extract patterns.  Tighten common constraint.
34374         (extv): Delete expander.
34375         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
34376         predicates in unamed sign extract patterns.  Tighten common constraint.
34377         (insv): Delete expander.
34378         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
34379         predicates in unamed insert patterns.  Tighten common constraint.
34380         Change uint32_operand predicate to uint6_operand predicate in unamed
34381         DImode pattern to insert constant values of type 1...1xxxx.
34383 2013-01-04  Jan Hubicka  <jh@suse.cz>
34385         PR tree-optimization/55823
34386         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
34387         issue.
34389 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
34390             Uros Bizjak  <ubizjak@gmail.com>
34392         PR rtl-optimization/55845
34393         * df-problems.c (can_move_insns_across): Stop scanning at
34394         volatile_insn_p source instruction or give up if
34395         across_from .. across_to range contains any volatile_insn_p
34396         instructions.
34398 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
34400         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
34401         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
34402         Declare.
34403         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
34404         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
34406 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
34408         PR fortran/55341
34409         * asan.c (asan_clear_shadow): New function.
34410         (asan_emit_stack_protection): Use it.
34412 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
34414         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
34415         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
34416         with tab instead of space.
34418 2013-01-08  Nick Clifton  <nickc@redhat.com>
34420         * config/rl78/rl78.c (rl78_expand_prologue): Always select
34421         register bank 0 at the start of an interrupt handler.
34422         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
34423         MDBH registers.
34425 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
34427         * config/aarch64/aarch64-simd.md
34428         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
34429         (aarch64_simd_bsl): Likewise.
34430         (aarch64_vcond_internal<mode>): Likewise.
34431         (vcond<mode><mode>): Likewise.
34432         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
34433         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
34435 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
34437         * config/aarch64/aarch64-builtins.c
34438         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
34440 2013-01-08  Martin Jambor  <mjambor@suse.cz>
34442         PR debug/55579
34443         * tree-sra.c (analyze_access_subtree): Return true also after
34444         potentially creating a debug-only replacement.
34446 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
34448         PR middle-end/55890
34449         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
34451         PR tree-optimization/54120
34452         * tree-vrp.c (range_fits_type_p): Don't allow
34453         src_precision < precision from signed vr to unsigned_p
34454         if vr->min or vr->max is negative.
34455         (simplify_float_conversion_using_ranges): Test can_float_p
34456         against CODE_FOR_nothing.
34458 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
34459             Richard Biener  <rguenther@suse.de>
34461         PR middle-end/55851
34462         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
34463         types instead of just INTEGER_TYPE types.
34465 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
34467         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
34468         TF_SIZE): Define.
34470 2013-01-07  Steve Ellcey  <sellcey@mips.com>
34472         PR target/42661
34473         * config/mips/mips.opt: Change mad to mmad to match documentation.
34475 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34477         PR target/55897
34478         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
34479         .progmemx.data now.
34481 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34483         PR target/55897
34484         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
34485         (avr_addrspace_t): Add .section_name field.
34486         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
34487         array size.
34488         (avr_addrspace): Same.  Initialize .section_name.  Remove last
34489         NULL entry.  Put __memx into .progmemx.data.
34490         (progmem_section_prefix): Remove.
34491         (avr_asm_init_sections): No need to initialize progmem_section.
34492         (avr_asm_named_section): Use avr_addrspace[].section_name to get
34493         section name prefix.
34494         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
34495         retrieve the progmem section.
34496         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
34497         boundary to run over avr_addrspace[].
34498         (avr_register_target_pragmas): Ditto.
34500 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
34502         * varasm.c (output_constant_def_contents): For asan_protect_global
34503         protected strings, adjust DECL_ALIGN if needed, before testing for
34504         anchored symbols.
34505         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
34506         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
34507         normal decls.
34508         (output_object_block): For asan protected decls, emit asan padding
34509         after their contents.
34510         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
34511         (asan_finish_file): Test it here instead.
34513 2013-01-07  Nick Clifton  <nickc@redhat.com>
34514             Matthias Klose  <doko@debian.org>
34515             Doug Kwan  <dougkwan@google.com>
34516             H.J. Lu  <hongjiu.lu@intel.com>
34518         PR driver/55470
34519         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
34521         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
34523         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
34525         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
34527         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
34529 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34531         PR target/54461
34532         * doc/install.texi (Cross-Compiler-Specific Options): Document
34533         --with-avrlibc.
34535 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
34537         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
34538         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
34539         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
34540         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
34541         vqmovun_high_s64): Fix source operand number and update copyright.
34543 2013-01-07  Richard Biener  <rguenther@suse.de>
34545         PR middle-end/55890
34546         * gimple.h (gimple_call_builtin_p): New overload.
34547         * gimple.c (validate_call): New function.
34548         (gimple_call_builtin_p): Likewise.
34549         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34550         Use gimple_call_builtin_p.
34551         (find_func_clobbers): Likewise.
34552         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
34553         (strlen_optimize_stmt): Likewise.
34555 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
34557         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
34558         (vld1q_dup_*): Likewise.
34559         (vld1_*): Likewise.
34560         (vld1q_*): Likewise.
34561         (vld1_lane_*): Likewise.
34562         (vld1q_lane_*): Likewise.
34564 2013-01-07  Richard Biener  <rguenther@suse.de>
34566         * lto-streamer.h (LTO_minor_version): Bump to 2.
34568 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
34570         * config/aarch64/aarch64-protos.h
34571         (aarch64_const_double_zero_rtx_p): Rename to...
34572         (aarch64_float_const_zero_rtx_p): ...this.
34573         (aarch64_float_const_representable_p): New.
34574         (aarch64_output_simd_mov_immediate): Likewise.
34575         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
34576         move immediate case.
34577         * config/aarch64/aarch64.c
34578         (aarch64_const_double_zero_rtx_p): Rename to...
34579         (aarch64_float_const_zero_rtx_p): ...this.
34580         (aarch64_print_operand): Allow printing of new constants.
34581         (aarch64_valid_floating_const): New.
34582         (aarch64_legitimate_constant_p): Check for valid floating-point
34583         constants.
34584         (aarch64_simd_valid_immediate): Likewise.
34585         (aarch64_vect_float_const_representable_p): New.
34586         (aarch64_float_const_representable_p): Likewise.
34587         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
34588         (aarch64_output_simd_mov_immediate): New.
34589         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
34590         (*movdf_aarch64): Likewise.
34591         * config/aarch64/constraints.md (Ufc): New.
34592         (Y): call aarch64_float_const_zero_rtx.
34593         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
34595 2013-01-07  Richard Biener  <rguenther@suse.de>
34597         PR tree-optimization/55888
34598         PR tree-optimization/55862
34599         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
34600         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
34601         not if it is contained therein.
34603 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34605         * config/avr/t-avr: Typo.
34607 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34609         PR55243
34610         * config/avr/t-avr: Don't automatically rebuild
34611         $(srcdir)/config/avr/t-multilib
34612         $(srcdir)/config/avr/avr-tables.opt
34613         $(srcdir)/doc/avr-mmcu.texi
34614         (avr-mcus): New phony target to build them on request.
34615         (s-avr-mlib, s-avr-mmcu-texi): Remove.
34616         * avr/avr-mcus.def: Adjust comments.
34618 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
34620         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
34622 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
34624         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
34626 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
34628         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
34630 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
34632         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
34633         to generate profiling.
34634         * config/rs6000/aix64.h (LIB_SPEC): Same.
34636 2013-01-04  Andrew Pinski  <apinski@cavium.com>
34638         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
34639         New function.
34640         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
34642 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
34644         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
34645         unconditionally.
34646         (ix86_expand_move): Ditto.
34647         (ix86_zero_extend_to_Pmode): Ditto.
34648         (ix86_expand_call): Ditto.
34649         (ix86_expand_special_args_builtin): Ditto.
34650         (ix86_expand_builtin): Ditto.
34652 2013-01-04  Richard Biener  <rguenther@suse.de>
34654         PR tree-optimization/55862
34655         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
34656         translating them through PHI nodes.
34658 2013-01-04  Martin Jambor  <mjambor@suse.cz>
34660         PR tree-optimization/55755
34661         * tree-sra.c (sra_modify_assign): Do not check that an access has no
34662         children when trying to avoid producing a VIEW_CONVERT_EXPR.
34664 2013-01-04  Marek Polacek  <polacek@redhat.com>
34666         PR middle-end/55859
34667         * opts.c (default_options_optimization): Clarify error message.
34669 2013-01-04  Richard Biener  <rguenther@suse.de>
34671         PR middle-end/55863
34672         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
34673         reassociation.
34675 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34677         PR target/53789
34678         * config/pa/pa.md (movsi): Revert previous change.
34679         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
34680         references.
34682 2013-01-03  Richard Henderson  <rth@redhat.com>
34684         * config/i386/i386.c (ix86_expand_move): Always assign to op1
34685         after eliminating TLS symbols.
34687 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
34689         PR bootstrap/50167
34690         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
34691         * graphite-poly.c (debug_gmp_value): Likewise.
34693 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
34695         PR target/55712
34696         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
34697         selected code model, define __code_mode_small__, __code_model_medium__,
34698         __code_model_large__, __code_model_32__ or __code_model_kernel__.
34699         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
34700         xchg temporary register with %k.  Declare temporary register as
34701         early clobbered.
34702         [__x86_64__]: For medium and large code models, preserve %rbx register.
34704 2013-01-03  Richard Biener  <rguenther@suse.de>
34706         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
34707         (dump_subscript): Adjust.
34708         (finalize_ddr_dependent): Do not dump redundant info.
34709         (analyze_siv_subscript): Adjust.
34710         (subscript_dependence_tester): Likewise.
34711         (compute_affine_dependence): Likewise.
34713 2013-01-03  Richard Biener  <rguenther@suse.de>
34715         Revert
34716         2013-01-03  Richard Biener  <rguenther@suse.de>
34718         PR tree-optimization/55857
34719         * tree-vect-stmts.c (vectorizable_load): Do not setup
34720         re-alignment for invariant loads.
34722         2013-01-02  Richard Biener  <rguenther@suse.de>
34724         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
34725         invariant load do not generate a vector load from the scalar location.
34727 2013-01-03  Richard Biener  <rguenther@suse.de>
34729         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
34730         for not vectorizing.
34731         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
34732         not build INDIRECT_REFs, call get_name once only.
34733         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
34734         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
34736 2013-01-03  Richard Biener  <rguenther@suse.de>
34738         PR tree-optimization/55857
34739         * tree-vect-stmts.c (vectorizable_load): Do not setup
34740         re-alignment for invariant loads.
34742 2013-01-03  Richard Biener  <rguenther@suse.de>
34744         PR lto/55848
34745         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
34746         prefer a built-in decl.
34748 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
34750         * gcc.c (process_command): Update copyright notice dates.
34751         * gcov.c (print_version): Likewise.
34752         * gcov-dump.c (print_version): Likewise.
34754         PR rtl-optimization/55838
34755         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
34756         iv0.step, iv1.step and step.
34758 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
34759             Marc Glisse  <marc.glisse@inria.fr>
34761         PR tree-optimization/55832
34762         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
34763         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
34764         integer_{one,zero}_node.
34766 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
34768         PR debug/54402
34769         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
34770         * var-tracking.c (reverse_op): Don't add reverse ops to
34771         VALUEs that have already
34772         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
34774 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
34776         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
34778 2013-01-02  Teresa Johnson  <tejohnson@google.com>
34780         * dumpfile.c (dump_loc): Print filename with location.
34781         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
34782         new location_t parameter to emit complete unroll message with
34783         new dump framework.
34784         (canonicalize_loop_induction_variables): Compute loops location
34785         and pass to try_unroll_loop_completely.
34786         * loop-unroll.c (report_unroll_peel): New function.
34787         (peel_loops_completely): Use new dump format with location
34788         for main dumpfile message, and invoke report_unroll_peel on success.
34789         (decide_unrolling_and_peeling): Ditto.
34790         (decide_peel_once_rolling): Remove old dumpfile message subsumed
34791         by report_unroll_peel.
34792         (decide_peel_completely): Ditto.
34793         (decide_unroll_constant_iterations): Ditto.
34794         (decide_unroll_runtime_iterations): Ditto.
34795         (decide_peel_simple): Ditto.
34796         (decide_unroll_stupid): Ditto.
34797         * cfgloop.c (get_loop_location): New function.
34798         * cfgloop.h (get_loop_location): Declare.
34800 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
34802         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
34803         NULL.
34805 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34807         PR middle-end/55198
34808         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
34809         BLKmode objects when EXPAND_MEMORY is specified.
34811 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
34813         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
34814         in loop predicate.
34815         (fold_builtin_cpu): Do not share cpu model decls across statements.
34817 2013-01-02  Jason Merrill  <jason@redhat.com>
34819         PR c++/55804
34820         * tree.c (build_array_type_1): Revert earlier change.
34822 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
34824         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
34825         "cortex-a57".
34826         * config/aarch64/aarch64-tune.md: Re-generate.
34828 2013-01-02  Richard Biener  <rguenther@suse.de>
34830         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
34831         invariant load do not generate a vector load from the scalar location.
34833 2013-01-02  Richard Biener  <rguenther@suse.de>
34835         PR bootstrap/55784
34836         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
34837         * configure: Regenerate.
34839 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
34841         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
34842         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
34843         (expand_builtin_int_roundingfn_2): Keep the original target around
34844         for the fallback case.
34846 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
34848         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
34849         to be clear for sign changes.
34851 2013-01-01  Jan Hubicka  <jh@suse.cz>
34853         * ipa-inline-analysis.c: Fix formatting.
34855 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
34857         PR tree-optimization/55831
34858         * tree-vect-loop.c (get_initial_def_for_induction): Use
34859         gsi_after_labels instead of gsi_start_bb.
34861 Copyright (C) 2013 Free Software Foundation, Inc.
34863 Copying and distribution of this file, with or without modification,
34864 are permitted in any medium without royalty provided the copyright
34865 notice and this notice are preserved.