2013-11-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blob1cfbefef29d45c8a5c3ad3abc01685203bff1d72
1 2013-11-21  Richard Biener  <rguenther@suse.de>
3         PR tree-optimization/59058
4         * tree-loop-distribution.c (struct partition_s): Add plus_one
5         member.
6         (build_size_arg_loc): Apply niter adjustment here.
7         (generate_memset_builtin): Adjust.
8         (generate_memcpy_builtin): Likewise.
9         (classify_partition): Do not use number_of_exit_cond_executions
10         but record whether niter needs to be adjusted.
12 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
14         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
15         could throw.
17 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
19         PR target/53976
20         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
21         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
22         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
23         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
24         sh_optimize_sett_clrt pass.o to extra_objs.
26 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
28         * cfg.c (dump_edge_info): Remove redundant comment.
29         * cfgcleanup.c (outgoing_edges_match): Reword reference to
30         EXIT_BLOCK_PTR in comment.
31         (try_optimize_cfg): Likewise.
32         * cfgrtl.c (last_bb_in_partition): Likewise.
33         * cgraph.c (cgraph_node_cannot_return): Likewise.
34         * function.c (thread_prologue_and_epilogue_insns): Likewise.
35         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
36         * ipa-split.c (consider_split): Likewise.
37         * profile.c (find_spanning_tree): Likewise.
38         * sched-int.h (common_sched_info_def.add_block): Likewise.
39         * dominance.c (calc_dfs_tree_nonrec): Reword references in
40         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
41         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
42         in comments to now removed ENTRY_BLOCK_PTR macro.
43         (tree_forwarder_block_p): Reword reference in comment to
44         EXIT_BLOCK_PTR.
45         * tree-inline.c (copy_cfg_body): Reword references in comments to
46         now removed ENTRY_BLOCK_PTR macro.
47         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
48         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
49         a comma to the comment to clarify the meaning.
51 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
53         * gimplify.h (gimplify_hasher : typed_free_remove, struct gimplify_ctx):
54         Move to gimplify.c.
55         (free_gimplify_stack): Add prototype.
56         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
57         (struct gimplify_ctx): Relocate here.
58         (gimplify_ctxp): Make static.
59         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a 
60         list of struct gimplify_ctx.
61         (push_gimplify_context): Add default parameters and allocate a struct
62         from the pool.
63         (pop_gimplify_context): Free a struct back to the pool.
64         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
65         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
66         use a local 'struct gimplify_ctx'.
67         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
68         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
69         Likewise.
70         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
71         lower_omp_ordered, lower_omp_critical, lower_omp_for,
72         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
73         lower_omp_teams, execute_lower_omp): Likewise.
74         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
75         * tree-inline.c (optimize_inline_calls): Likewise.
77 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
79         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
80         (vsx_extract_<mode>): Likewise.
81         (*vsx_extract_<mode>_one_le): New LE variant on
82         *vsx_extract_<mode>_zero.
83         (vsx_extract_v4sf): Adjust for little endian.
85 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
87         PR rtl-optimization/59133
88         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
89         new pseudos.
90         (lra_create_new_reg_with_unique_value): Pass new argument value.
91         (lra_emit_add, lra_emit_move): Ditto.
92         * lra-constraints.c (in_class_p): Add check for move for a new
93         insn.
94         (change_class): Rename to lra_change_class.  Move to lra-int.h.
95         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
96         change_class.
97         (process_addr_reg, process_addr): Ditto.
98         (curr_insn_transform): Ditto.  Add check on old pseudo for
99         optional reload.
100         * lra-int.h (lra_get_regno_hard_regno): Move below.
101         (lra_change_class): Renamed change_class from lra.c.
103 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
105         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
106         the children of a NULL pointer.
108 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
110         * lra.c (lra): Set lra_in_progress before check_rtl call.
111         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
112         adding clobber regs when LRA is running.
114 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
116         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
117         restriction for ISA_MIPS32R2.
118         (ISA_HAS_LXC1_SXC1): New macro.
119         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
120         (ISA_HAS_NMADD4_NMSUB4): Likewise.
121         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
122         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
123         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
124         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
125         (*<ANYF:storex>_<P:mode>): Likewise.
127 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
129         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
130         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
131         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
132         * config/mips/mips.md (recip_condition): Remove mode attribute.
133         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
134         <recip_condition>.
135         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
137 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
139         PR target/59207
140         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
141         Make sure neg2_ovf is set before being used.
143 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
145         * plugin.def: Add comment about register_callback and
146         invoke_plugin_callbacks_full.
148         * plugin.c (register_callback, invoke_plugin_callbacks_full):
149         Handle PLUGIN_INCLUDE_FILE event.
151 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
153         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
154         allow subregs of TDmode in FPRs of smaller size in little-endian.
155         (rs6000_split_multireg_move): When splitting an access to TDmode
156         in FPRs, do not use simplify_gen_subreg.
158 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
160         PR middle-end/21718
161         * real.c: Remove comment about decimal string conversion and
162         rounding errors.
163         (real_from_string): Use MPFR to convert nonzero decimal constant
164         to REAL_VALUE_TYPE.
166 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
168         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
169         endianness of the D registers for the legacy encodings.
171 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
173         PR rtl-optimization/54300
174         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
175         outputs in a single-set are killed from the value chains.
177 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
179         * cgraph.h (varpool_node): Add need_bounds_init field.
180         * lto-cgraph.c (lto_output_varpool_node): Output
181         need_bounds_init value.
182         (input_varpool_node): Read need_bounds_init value.
183         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
185 2013-11-20  Jan Hubicka  <jh@suse.cz>
187         * opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker-plugin.
188         * common.opt (fuse-linker-plugin): Add var.
190 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
192         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
193         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
194         (gen_type_die_with_usage): Skip pointer bounds.
195         (dwarf2out_global_decl): Likewise.
197 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
199         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
200         from all insns.
202 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
204         PR target/57756
205         * config/i386/i386.c (ix86_option_override_internal): Add missed
206         argument prefix for 'ix86_fpmath'.
207         * config/i386/ssemath.h: Add missed definition of
208         TARGET_FPMATH_DEFAULT_P macros.
210 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
211             Mike Stump  <mikestump@comcast.net>
212             Richard Sandiford  <rdsandiford@googlemail.com>
214         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
215         instead of TREE_INT_CST_LOW, in cases where there is a protecting
216         tree_fits_shwi_p or tree_fits_uhwi_p.
217         * builtins.c (fold_builtin_powi): Likewise.
218         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
219         Likewise.
220         * dbxout.c (dbxout_symbol): Likewise.
221         * expr.c (expand_expr_real_1): Likewise.
222         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
223         (fold_binary_loc): Likewise.
224         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
225         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
226         * omp-low.c (lower_omp_for_lastprivate): Likewise.
227         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
228         * stor-layout.c (compute_record_mode): Likewise.
229         * tree-cfg.c (verify_expr): Likewise.
230         * tree-dfa.c (get_ref_base_and_extent): Likewise.
231         * tree-pretty-print.c (dump_array_domain): Likewise.
232         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
233         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
234         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
235         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
236         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
237         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
238         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
239         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
240         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
241         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
242         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
243         (create_variable_info_for_1): Likewise.
244         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
245         (vect_verify_datarefs_alignment): Likewise.
246         (vect_analyze_data_ref_accesses): Likewise.
247         (vect_prune_runtime_alias_test_list): Likewise.
248         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
250 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
252         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
253         overflow.  Use tree_to_shwi.
255 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
257         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
258         HOST_WIDE_INTs when folding (x >> c) << c.
260 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
261             Dominik Vogt  <vogt@linux.vnet.ibm.com>
263         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
264         int comparisons with an out of range condition code.
265         (s390_optimize_nonescaping_tx): Skip empty BBs.
266         Generate the new tbegin RTX when removing the FPR clobbers (with
267         two SETs).
268         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
269         result before doing the retry calculations.
270         (s390_init_builtins): Make tbegin "returns_twice" and tabort
271         "noreturn".
272         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
273         the TDB setting part of an tbegin.
274         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
275         ("tx_assist"): Set unused argument to an immediate zero instead of
276         loading zero into a GPR and pass it as argument.
277         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
278         Remove inline and related attributes.
279         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
280         (__TM_is_illegal, __TM_is_footprint_exceeded)
281         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value
282         check.
284 2013-11-20  Richard Biener  <rguenther@suse.de>
286         PR lto/59035
287         * lto-opts.c (lto_write_options): Write defaults only if
288         they were not explicitely specified.  Also write
289         -ffp-contract default.
290         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
291         conservatively.
292         (run_gcc): Pass through -ffp-contract.
294 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
296         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
298 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
300         * gcc/config/aarch64/aarch64-builtins.c
301         (aarch64_simd_itype): Remove.
302         (aarch64_simd_builtin_datum): Remove itype, add
303         qualifiers pointer.
304         (VAR1): Use qualifiers.
305         (aarch64_build_scalar_type): New.
306         (aarch64_build_vector_type): Likewise.
307         (aarch64_build_type): Likewise.
308         (aarch64_init_simd_builtins): Refactor, remove special cases,
309         consolidate main loop.
310         (aarch64_simd_expand_args): Likewise.
312 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
314         PR c/53001
315         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
317 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
319         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
321 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
323         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
324         to "vec<>" instances.
325         (build_pretty_printer): Register the vec<>* prettyprinter.
327 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
329         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
330         (GdbSubprinter.handles_type): New.
331         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
332         (GdbSubprinterRegex): New subclass of GdbSubprinter.
333         (GdbPrettyPrinters.add_printer): Remove in favor of...
334         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
335         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
336         (GdbPrettyPrinters.__call__): Update search for subprinter
337         to use handles_type method.
338         (build_pretty_printer): Update registration of subprinters to
339         use the new API above, supporting multiple spelling of each type,
340         and allowing for future regex-based subprinters.
342 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
344         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
345         V16QI vector splat case for little endian.
347 2013-11-19  Jeff Law  <law@redhat.com>
349         * tree-ssa-threadedge.c (thread_across_edge): After threading
350         through a joiner, allow threading a normal block requiring duplication.
352         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
353         jump threading requests that would muck up the loop structures.
355         * tree-ssa-threadupdate.c: Fix trailing whitespace.
356         * tree-ssa-threadupdate.h: Likewise.
358 2013-11-19  Mike Stump  <mikestump@comcast.net>
360         * gdbinit.in: Add pmz to print out mpz values.
362 2013-11-20  Jan Hubicka  <jh@suse.cz>
364         * common.opt (ffat-lto-objects): Disable by default.
365         * doc/invoke.texi (fat-lto-objects): Update documentation.
366         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
368 2013-11-19  Martin Jambor  <mjambor@suse.cz>
370         PR rtl-optimization/59099
371         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
372         here.
373         (ira): Move init_reg_equiv and call to
374         split_live_ranges_for_shrink_wrap up, remove analyses around call
375         to find_moveable_pseudos.
377 2013-11-20  Alan Modra  <amodra@gmail.com>
379         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
380         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
381         to strict alignment on older processors when little-endian.
382         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
383         for ELFv2.
385 2013-11-19  Teresa Johnson  <tejohnson@google.com>
387         * common/config/i386/i386-common.c: Enable
388         -freorder-blocks-and-partition at -O2 and up for x86.
389         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
390         * opts.c (finish_options): Only warn if
391         -freorder-blocks-and-partition was set on command line.
393 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
395         * final.c (final_scan_insn): Emit a label for the split
396         cold function part.  Label name is formed by suffixing
397         the original function name with "cold".
399 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
401         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
402         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
403         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
404         (EXIT_BLOCK_PTR_FOR_FN): ...this.
405         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
406         cfun be explicit.
407         (EXIT_BLOCK_PTR): Likewise.
408         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
409         (FOR_ALL_BB_FN): Update for renaming of
410         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
412         * cfg.c (init_flow): Likewise.
413         (check_bb_profile): Likewise.
414         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
415         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
416         * cfghooks.c (account_profile_record): Likewise.
417         * cfgloop.c (init_loops_structure): Likewise.
418         * cgraphbuild.c (record_eh_tables): Likewise.
419         (compute_call_stmt_bb_frequency): Likewise.
420         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
421         * lto-streamer-in.c (input_cfg): Likewise.
422         * predict.c (maybe_hot_frequency_p): Likewise.
423         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
424         * tree-inline.c (initialize_cfun): Likewise.
425         (copy_cfg_body): Likewise.
426         (copy_body): Likewise.
427         (tree_function_versioning): Likewise.
429         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
430         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
431         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
432         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
433         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
434         (connect_traces): Likewise.
435         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
436         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
437         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
438         macro.
439         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
440         EXIT_BLOCK_PTR.
441         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
442         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
443         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
444         (rotate_loop): Likewise.
445         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
446         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
447         EXIT_BLOCK_PTR.
448         (alloc_aux_for_edges): Likewise.
449         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
450         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
451         EXIT_BLOCK_PTR.
452         (compact_blocks): Likewise.
453         (clear_edges): Likewise.
454         * cfganal.c (single_pred_before_succ_order): Remove usage of
455         ENTRY_BLOCK_PTR macro.
456         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
457         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
458         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
459         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
460         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
461         EXIT_BLOCK_PTR.
462         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
463         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
464         EXIT_BLOCK_PTR.
465         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
466         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
467         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
468         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
469         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
470         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
471         EXIT_BLOCK_PTR.
472         (print_edge_list): Likewise.
473         (create_edge_list): Likewise.
474         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
475         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
476         EXIT_BLOCK_PTR.
477         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
478         macro.
479         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
480         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
481         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
482         (try_optimize_cfg): Likewise.
483         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
484         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
485         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
486         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
487         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
488         (try_forward_edges): Likewise.
489         (try_simplify_condjump): Likewise.
490         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
491         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
492         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
493         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
494         EXIT_BLOCK_PTR.
495         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
496         (expand_gimple_tailcall): Likewise.
497         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
498         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
499         (tidy_fallthru_edges): Likewise.
500         (verify_flow_info): Likewise.
501         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
502         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
503         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
504         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
505         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
506         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
507         (get_loop_body_in_dom_order): Likewise.
508         (get_loop_body): Likewise.
509         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
510         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
511         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
512         macro.
513         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
514         (fix_bb_placement): Likewise.
515         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
516         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
517         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
518         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
519         EXIT_BLOCK_PTR.
520         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
521         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
522         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
523         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
524         macro.
525         (fixup_fallthru_exit_predecessor): Remove uses of macros:
526         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
527         (fixup_reorder_chain): Likewise.
528         (relink_block_chain): Likewise.
529         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
530         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
531         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
532         (force_one_exit_fallthru): Likewise.
533         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
534         EXIT_BLOCK_PTR.
535         (rtl_verify_edges): Likewise.
536         (commit_edge_insertions): Likewise.
537         (commit_one_edge_insertion): Likewise.
538         (rtl_split_edge): Likewise.
539         (force_nonfallthru_and_redirect): Likewise.
540         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
541         (skip_insns_after_block): Likewise.
542         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
543         EXIT_BLOCK_PTR.
544         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
545         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
546         EXIT_BLOCK_PTR.
547         (contains_no_active_insn_p): Likewise.
548         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
549         (entry_of_function): Likewise.
550         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
551         (fixup_new_cold_bb): Likewise.
552         (patch_jump_insn): Likewise.
553         (try_redirect_by_replacing_jump): Likewise.
554         (block_label): Likewise.
555         (could_fall_through): Likewise.
556         (can_fallthru): Likewise.
557         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
558         ENTRY_BLOCK_PTR macro.
559         (rebuild_cgraph_edges): Likewise.
560         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
561         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
562         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
563         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
564         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
565         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
566         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
567         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
568         macro.
569         (reg_nonzero_bits_for_combine): Likewise.
570         (set_nonzero_bits_and_sign_copies): Likewise.
571         (combine_instructions): Likewise.
572         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
573         EXIT_BLOCK_PTR.
574         (bypass_conditional_jumps): Likewise.
575         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
576         (find_implicit_sets): Likewise.
577         (cprop_jump): Likewise.
578         * cse.c (cse_cc_succs): Likewise.
579         (cse_find_path): Likewise.
580         * df-problems.c (df_lr_confluence_0): Likewise.
581         * df-scan.c (df_entry_block_defs_collect): Remove usage of
582         ENTRY_BLOCK_PTR macro.
583         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
584         * dominance.c (iterate_fix_dominators): Remove usage of
585         ENTRY_BLOCK_PTR macro.
586         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
587         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
588         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
589         EXIT_BLOCK_PTR.
590         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
591         macro.
592         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
593         EXIT_BLOCK_PTR.
594         * domwalk.c (cmp_bb_postorder): Likewise.
595         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
596         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
597         macro.
598         (sjlj_emit_function_enter): Likewise.
599         * final.c (compute_alignments): Likewise.
600         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
601         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
602         (reposition_prologue_and_epilogue_notes): Remove usage of
603         EXIT_BLOCK_PTR macro.
604         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
605         EXIT_BLOCK_PTR.
606         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
607         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
608         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
609         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
610         (compute_code_hoist_vbeinout): Likewise.
611         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
612         (pre_expr_reaches_here_p_work): Likewise.
613         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
614         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
615         EXIT_BLOCK_PTR.
616         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
617         ENTRY_BLOCK_PTR macro.
618         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
619         macro.
620         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
621         ENTRY_BLOCK_PTR macro.
622         * graphite-scop-detection.c (build_scops): Likewise.
623         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
624         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
625         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
626         macro.
627         (unlink_bb_notes): Likewise.
628         (create_check_block_twin): Likewise.
629         (init_before_recovery): Likewise.
630         (sched_extend_bb): Likewise.
631         (priority): Likewise.
632         * hw-doloop.c (reorder_loops): Likewise.
633         (discover_loop): Likewise.
634         * ifcvt.c (dead_or_predicable): Remove uses of macros:
635         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
636         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
637         (block_has_only_trap): Likewise.
638         (cond_exec_find_if_block): Likewise.
639         (merge_if_block): Likewise.
640         * ipa-inline-analysis.c (param_change_prob): Remove usage of
641         ENTRY_BLOCK_PTR macro.
642         (record_modified): Likewise.
643         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
644         EXIT_BLOCK_PTR macro.
645         (local_pure_const): Likewise.
646         * ipa-split.c (split_function): Remove uses of macros:
647         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
648         (find_split_points): Likewise.
649         (consider_split): Likewise.
650         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
651         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
652         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
653         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
654         * ira-emit.c (entered_from_non_parent_p): Remove usage of
655         ENTRY_BLOCK_PTR macro.
656         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
657         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
658         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
659         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
660         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
661         macro.
662         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
663         EXIT_BLOCK_PTR.
664         (compute_farthest): Likewise.
665         (compute_available): Likewise.
666         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
667         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
668         EXIT_BLOCK_PTR.
669         (compute_earliest): Likewise.
670         (compute_antinout_edge): Likewise.
671         * loop-iv.c (simplify_using_initial_values): Remove usage of
672         ENTRY_BLOCK_PTR macro.
673         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
674         macro.
675         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
676         macro.
677         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
678         macro.
679         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
680         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
681         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
682         macro.
683         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
684         macro.
685         * lto-streamer-out.c (output_cfg): Likewise.
686         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
687         EXIT_BLOCK_PTR.
688         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
689         * mode-switching.c (optimize_mode_switching): Likewise.
690         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
691         * modulo-sched.c (rest_of_handle_sms): Likewise.
692         (canon_loop): Likewise.
693         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
694         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
695         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
696         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
697         macro.
698         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
699         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
700         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
701         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
702         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
703         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
704         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
705         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
706         (gimple_predict_edge): Likewise.
707         (probably_never_executed): Likewise.
708         * profile.c (find_spanning_tree): Remove uses of macros:
709         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
710         (branch_prob): Likewise.
711         (compute_branch_probabilities): Likewise.
712         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
713         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
714         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
715         (set_bb_counts): Likewise.
716         (correct_negative_edge_counts): Likewise.
717         (get_exec_counts): Likewise.
718         (instrument_values): Likewise.
719         (instrument_edges): Likewise.
720         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
721         EXIT_BLOCK_PTR.
722         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
723         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
724         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
725         (reg_to_stack): Likewise.
726         * regs.h (REG_N_SETS): Likewise.
727         * reload.c (find_dummy_reload): Likewise.
728         (combine_reloads): Likewise.
729         (push_reload): Likewise.
730         * reload1.c (has_nonexceptional_receiver): Remove usage of
731         EXIT_BLOCK_PTR macro.
732         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
733         macro.
734         (find_basic_block): Likewise.
735         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
736         (schedule_ebbs): Likewise.
737         * sched-int.h (sel_sched_p): Likewise.
738         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
739         macro.
740         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
741         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
742         EXIT_BLOCK_PTR.
743         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
744         (extend_rgns): Likewise.
745         (find_single_block_region): Likewise.
746         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
747         ENTRY_BLOCK_PTR macro.
748         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
749         (sel_create_recovery_block): Likewise.
750         (bb_ends_ebb_p): Likewise.
751         (sel_bb_end): Likewise.
752         (sel_bb_head): Likewise.
753         (free_lv_sets): Likewise.
754         (init_lv_sets): Likewise.
755         (tidy_control_flow): Likewise.
756         (maybe_tidy_empty_bb): Likewise.
757         * sel-sched-ir.h (_succ_iter_cond): Likewise.
758         (_succ_iter_start): Likewise.
759         (sel_bb_empty_or_nop_p): Likewise.
760         (get_loop_exit_edges_unique_dests): Likewise.
761         (inner_loop_header_p): Likewise.
762         * sel-sched.c (create_block_for_bookkeeping): Likewise.
763         (find_block_for_bookkeeping): Likewise.
764         * store-motion.c (remove_reachable_equiv_notes): Likewise.
765         (insert_store): Likewise.
766         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
767         ENTRY_BLOCK_PTR macro.
768         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
769         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
770         (gate_tm_init): Likewise.
771         (tm_region_init): Likewise.
772         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
773         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
774         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
775         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
776         EXIT_BLOCK_PTR.
777         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
778         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
779         EXIT_BLOCK_PTR.
780         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
781         macro.
782         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
783         EXIT_BLOCK_PTR.
784         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
785         macro.
786         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
787         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
788         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
789         (build_gimple_cfg): Likewise.
790         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
791         (gimple_can_merge_blocks_p): Likewise.
792         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
793         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
794         * tree-complex.c (update_parameter_components): Remove usage of
795         ENTRY_BLOCK_PTR macro.
796         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
797         EXIT_BLOCK_PTR macro.
798         * tree-inline.c (tree_function_versioning): Remove uses of macros:
799         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
800         (delete_unreachable_blocks_update_callgraph): Likewise.
801         (initialize_cfun): Likewise.
802         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
803         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
804         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
805         * tree-into-ssa.c (update_ssa): Likewise.
806         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
807         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
808         (rewrite_into_ssa): Likewise.
809         (rewrite_debug_stmt_uses): Likewise.
810         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
811         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
812         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
813         ENTRY_BLOCK_PTR macro.
814         * tree-scalar-evolution.h (block_before_loop): Likewise.
815         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
816         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
817         EXIT_BLOCK_PTR.
818         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
819         macro.
820         (propagate_dereference_distances): Remove uses of macros:
821         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
822         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
823         macro.
824         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
825         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
826         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
827         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
828         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
829         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
830         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
831         (mark_control_dependent_edges_necessary): Remove uses of macros:
832         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
833         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
834         ENTRY_BLOCK_PTR macro.
835         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
836         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
837         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
838         (calculate_live_on_exit): Likewise.
839         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
840         (loe_visit_block): Likewise.
841         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
842         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
843         (live_on_entry): Likewise.
844         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
845         EXIT_BLOCK_PTR macro.
846         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
847         ENTRY_BLOCK_PTR macro.
848         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
849         (bound_difference): Likewise.
850         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
851         of EXIT_BLOCK_PTR macro.
852         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
853         of ENTRY_BLOCK_PTR macro.
854         * tree-ssa-math-opts.c (register_division_in): Likewise.
855         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
856         * tree-ssa-pre.c (compute_avail): Likewise.
857         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
858         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
859         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
860         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
861         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
862         EXIT_BLOCK_PTR.
863         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
864         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
865         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
866         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
867         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
868         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
869         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
870         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
871         (find_pdom): Likewise.
872         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
873         * tree-stdarg.c (reachable_at_most_once): Likewise.
874         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
875         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
876         (eliminate_tail_call): Likewise.
877         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
878         macro.
879         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
880         * var-tracking.c (vt_initialize): Remove uses of macros:
881         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
882         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
883         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
884         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
885         EXIT_BLOCK_PTR.
886         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
887         macro.
888         * config/bfin/bfin.c (hwloop_optimize): Likewise.
889         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
890         of EXIT_BLOCK_PTR macro.
891         * config/arm/arm.c (require_pic_register): Remove usage of
892         ENTRY_BLOCK_PTR macro.
893         (arm_r3_live_at_start_p): Likewise.
894         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
895         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
896         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
897         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
898         ENTRY_BLOCK_PTR macro.
899         * config/i386/i386.c (ix86_count_insn): Likewise.
900         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
901         (ix86_pad_short_function): Likewise.
902         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
903         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
904         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
905         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
906         (ix86_expand_epilogue): Likewise.
907         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
908         (ia64_expand_prologue): Likewise.
910 2013-11-19  Catherine Moore  <clm@codesourcery.com>
912         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
913         * config/mips/mips.opt (mfix-rm7000): New option.
914         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
915         * config/mips/mips.c (mips_reorg_process_insns): Disable
916         noreorder for TARGET_FIX_RM7000.
918 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
920         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
922 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
924         * config/arm/arm.c (arm_new_rtx_costs):
925         Handle narrow mode add-shifts properly.
926         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
927         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
928         Declare extern.
930 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
932         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
934 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
936         * config/rs6000/vector.md ("mov<mode>"): Do not call
937         rs6000_emit_le_vsx_move to move into or out of GPRs.
938         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
939         source and destination are not GPR hard regs.
941 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
943         * basic-block.h (n_edges_for_function): Rename macro to...
944         (n_edges_for_fn): ...this.
945         (n_edges): Eliminate macro as work towards making uses of
946         cfun be explicit.
948         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
949         to "n_edges_for_fn".
951         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
952         (clear_edges): Likewise.
953         (free_edge): Likewise.
954         * cfghooks.c (dump_flow_info): Likewise.
955         * cprop.c (is_too_expensive): Likewise.
956         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
957         * gcse.c (is_too_expensive): Likewise.
958         (prune_insertions_deletions): Likewise.
959         * mcf.c (create_fixup_graph): Likewise.
960         * sched-rgn.c (haifa_find_rgns): Likewise.
961         * tree-cfg.c (gimple_dump_cfg): Likewise.
962         * var-tracking.c (variable_tracking_main_1): Likewise.
964 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
966         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
967         length lines.
969 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
971         * config/aarch64/aarch64.md
972         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
974 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
976         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
978 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
980         * varasm.c (align_variable): Give error instead of warning for
981         unsupported alignment.
982         (assemble_noswitch_variable): Likewise.
984 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
986         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
987         cb_file_change.
989 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
991         * loop-doloop.c (doloop_optimize_loops): Remove unused
992         loop iterator argument from FOR_EACH_LOOP.
994 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
996         Convert gimple types from a union to C++ inheritance.
997         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
998         * coretypes.h (union gimple_statement_d): Remove declaration.
999         (gimple): Convert from being a "union gimple_statement_d *"
1000         to a "struct gimple_statement_base *".
1001         (const_gimple): Likewise (with "const").
1002         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
1003         (ggc_alloc_cleared_gimple_statement_stat): ...this.
1004         * gimple-pretty-print.c (debug): Change parameter from a
1005         "gimple_statement_d &" to a "gimple_statement_base &".
1006         (debug): Change parameter from a "gimple_statement_d *" to
1007         a "gimple_statement_base *".
1008         * gimple-pretty-print.h (debug): Update declarations as above.
1009         * gimple.c (gimple_alloc_stat): Update for renaming of
1010         ggc_alloc_cleared_gimple_statement_d_stat to
1011         ggc_alloc_cleared_gimple_statement_stat.
1012         * gimple.h: Include "is-a.h" for use by is_a_helper
1013         specializations in followup autogenerated patch.
1014         (struct gimple statement_base): Make this type usable as a base
1015         class by adding "desc", "tag" and "variable_size" to GTY, thus
1016         using opting-in to gengtype's support for simple inheritance.
1017         (gimple_statement_with_ops_base): Convert to a subclass of
1018         gimple_statement_base, dropping initial "gsbase" field.  Note that
1019         this type is abstract, with no GSS_ value, and thus no GTY tag value.
1020         (gimple_statement_with_ops): Convert to a subclass of
1021         gimple_statement_with_ops_base, dropping initial "opbase" field.
1022         Add tag value to GTY marking.  Update marking of op field to
1023         reflect how num_ops field is accessed via inheritance.
1024         (gimple_statement_with_memory_ops_base): Convert to a subclass of
1025         gimple_statement_with_ops_base, dropping initial "opbase" field.
1026         Add tag value to GTY marking.
1027         (gimple_statement_with_memory_ops): Convert to a subclass of
1028         public gimple_statement_with_memory_ops_base, dropping initial
1029         "membase" field.  Add tag value to GTY marking.  Update marking
1030         of op field to reflect how num_ops field is accessed via inheritance.
1031         (gimple_statement_call): Analogous changes that also update the
1032         marking of the "u" union.
1033         (gimple_statement_omp): Convert to a subclass of
1034         gimple_statement_base, dropping initial "gsbase" field, adding
1035         tag value to GTY marking.
1036         (gimple_statement_bind): Likewise.
1037         (gimple_statement_catch): Likewise.
1038         (gimple_statement_eh_filter): Likewise.
1039         (gimple_statement_eh_else): Likewise.
1040         (gimple_statement_eh_mnt): Likewise.
1041         (gimple_statement_phi): Likewise.
1042         (gimple_statement_eh_ctrl): Likewise.
1043         (gimple_statement_try): Likewise.
1044         (gimple_statement_wce): Likewise.
1045         (gimple_statement_asm): Convert to a subclass of
1046         gimple_statement_with_memory_ops_base, dropping initial
1047         "membase" field, adding tag value to GTY marking, and updating
1048         marking of op field.
1049         (gimple_statement_omp_critical): Convert to a subclass of
1050         gimple_statement_omp, dropping initial "omp" field, adding tag
1051         value to GTY marking.
1052         (gimple_statement_omp_for): Likewise.
1053         (gimple_statement_omp_parallel): Likewise.
1054         (gimple_statement_omp_task): Convert to a subclass of
1055         gimple_statement_omp_parallel, dropping initial "par" field,
1056         adding tag value to GTY marking.
1057         (gimple_statement_omp_sections): Convert to a subclass of
1058         gimple_statement_omp, dropping initial "omp" field, adding
1059         tag value to GTY marking.
1060         (gimple_statement_omp_continue): Convert to a subclass of
1061         gimple_statement_base, dropping initial "gsbase" field, adding
1062         tag value to GTY marking.
1063         (gimple_statement_omp_single): Convert to a subclass of
1064         gimple_statement_omp, dropping initial "omp" field, adding
1065         tag value to GTY marking.
1066         (gimple_statement_omp_atomic_load): Convert to a subclass of
1067         gimple_statement_base, dropping initial "gsbase" field, adding
1068         tag value to GTY marking.
1069         (gimple_statement_omp_atomic_store): Convert to a subclass of
1070         gimple_statement_base, dropping initial "gsbase" field, adding
1071         tag value to GTY marking.
1072         (gimple_statement_transaction): Convert to a subclass of
1073         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
1074         field, adding tag value to GTY marking.
1075         (union gimple_statement_d): Remove.
1076         * system.h (CONST_CAST_GIMPLE): Update to use
1077         "struct gimple_statement_base *" rather than
1078         "union gimple_statement_d *".
1079         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
1080         gimple_statement_d to gimple_statement_base.
1082         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
1083         (gimple_set_use_ops): Port from union to usage of as_a.
1084         (gimple_set_vuse): Likewise.
1085         (gimple_set_vdef): Likewise.
1086         (gimple_call_internal_fn): Port from union to a static_cast,
1087         given that the type has already been asserted.
1088         (gimple_omp_body_ptr): Port from unchecked union usage to
1089         a static_cast.
1090         (gimple_omp_set_body): Likewise.
1092         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
1093         gimple types to a true class hierarchy.
1094         (update_call_edge_frequencies): Likewise.
1095         (gsi_insert_seq_nodes_before): Likewise.
1096         (gsi_insert_seq_nodes_after): Likewise.
1097         (gsi_split_seq_after): Likewise.
1098         (gsi_set_stmt): Likewise.
1099         (gsi_split_seq_before): Likewise.
1100         (gsi_remove): Likewise.
1101         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
1102         (gsi_next): Likewise.
1103         (gsi_prev): Likewise.
1104         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
1105         * gimple-ssa.h (gimple_vuse_op): Likewise.
1106         (gimple_vdef_op): Likewise.
1107         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
1108         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1109         * gimple.c (gimple_set_code): Likewise.
1110         (gimple_alloc_stat): Likewise.
1111         (gimple_set_subcode): Likewise.
1112         (gimple_build_call_internal_1): Likewise.
1113         (gimple_check_failed): Likewise.
1114         (gimple_call_flags): Likewise.
1115         (gimple_set_bb): Likewise.
1116         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
1117         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
1118         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
1119         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
1120         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
1121         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
1122         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
1123         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
1124         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
1125         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
1126         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
1127         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
1128         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
1129         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
1130         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
1131         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
1132         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
1133         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
1134         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
1135         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
1136         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
1137         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
1138         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
1139         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
1140         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
1141         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
1142         Likewise.
1143         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
1144         Likewise.
1145         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
1146         Likewise.
1147         (is_a_helper <const gimple_statement_omp_atomic_store>
1148         (const_gimple)): Likewise.
1149         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
1150         Likewise.
1151         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
1152         Likewise.
1153         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
1154         Likewise.
1155         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
1156         Likewise.
1157         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
1158         Likewise.
1159         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
1160         Likewise.
1161         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
1162         Likewise.
1163         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
1164         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
1165         Likewise.
1166         (gimple_seq_last): Update for conversion of gimple types to a true
1167         class hierarchy.
1168         (gimple_seq_set_last): Likewise.
1169         (gimple_code): Likewise.
1170         (gimple_bb): Likewise.
1171         (gimple_block): Likewise.
1172         (gimple_set_block): Likewise.
1173         (gimple_location): Likewise.
1174         (gimple_location_ptr): Likewise.
1175         (gimple_set_location): Likewise.
1176         (gimple_no_warning_p): Likewise.
1177         (gimple_set_no_warning): Likewise.
1178         (gimple_set_visited): Likewise.
1179         (gimple_visited_p): Likewise.
1180         (gimple_set_plf): Likewise.
1181         (gimple_plf): Likewise.
1182         (gimple_set_uid): Likewise.
1183         (gimple_uid): Likewise.
1184         (gimple_init_singleton): Likewise.
1185         (gimple_modified_p): Likewise.
1186         (gimple_set_modified): Likewise.
1187         (gimple_expr_code): Likewise.
1188         (gimple_has_volatile_ops): Likewise.
1189         (gimple_set_has_volatile_ops): Likewise.
1190         (gimple_omp_subcode): Likewise.
1191         (gimple_omp_set_subcode): Likewise.
1192         (gimple_omp_return_set_nowait): Likewise.
1193         (gimple_omp_section_set_last): Likewise.
1194         (gimple_omp_parallel_set_combined_p): Likewise.
1195         (gimple_omp_atomic_set_need_value): Likewise.
1196         (gimple_omp_atomic_set_seq_cst): Likewise.
1197         (gimple_num_ops): Likewise.
1198         (gimple_set_num_ops): Likewise.
1199         (gimple_assign_nontemporal_move_p): Likewise.
1200         (gimple_assign_set_nontemporal_move): Likewise.
1201         (gimple_assign_rhs_code): Likewise.
1202         (gimple_assign_set_rhs_code): Likewise.
1203         (gimple_call_internal_p): Likewise.
1204         (gimple_call_with_bounds_p): Likewise.
1205         (gimple_call_set_with_bounds): Likewise.
1206         (gimple_call_set_tail): Likewise.
1207         (gimple_call_tail_p): Likewise.
1208         (gimple_call_set_return_slot_opt): Likewise.
1209         (gimple_call_return_slot_opt_p): Likewise.
1210         (gimple_call_set_from_thunk): Likewise.
1211         (gimple_call_from_thunk_p): Likewise.
1212         (gimple_call_set_va_arg_pack): Likewise.
1213         (gimple_call_va_arg_pack_p): Likewise.
1214         (gimple_call_set_nothrow): Likewise.
1215         (gimple_call_set_alloca_for_var): Likewise.
1216         (gimple_call_alloca_for_var_p): Likewise.
1217         (gimple_call_copy_flags): Likewise.
1218         (gimple_cond_code): Likewise.
1219         (gimple_cond_set_code): Likewise.
1220         (gimple_cond_make_false): Likewise.
1221         (gimple_cond_make_true): Likewise.
1222         (gimple_asm_volatile_p): Likewise.
1223         (gimple_asm_set_volatile): Likewise.
1224         (gimple_asm_set_input): Likewise.
1225         (gimple_asm_input_p): Likewise.
1226         (gimple_try_kind): Likewise.
1227         (gimple_try_set_kind): Likewise.
1228         (gimple_try_catch_is_cleanup): Likewise.
1229         (gimple_try_set_catch_is_cleanup): Likewise.
1230         (gimple_wce_cleanup_eh_only): Likewise.
1231         (gimple_wce_set_cleanup_eh_only): Likewise.
1232         (gimple_debug_bind_p): Likewise.
1233         (gimple_debug_source_bind_p): Likewise.
1234         (gimple_omp_for_set_kind): Likewise.
1235         (gimple_omp_for_set_combined_p): Likewise.
1236         (gimple_omp_for_set_combined_into_p): Likewise.
1237         (gimple_omp_target_set_kind): Likewise.
1238         (gimple_transaction_subcode): Likewise.
1239         (gimple_transaction_set_subcode): Likewise.
1240         (gimple_predict_predictor): Likewise.
1241         (gimple_predict_set_predictor): Likewise.
1242         (gimple_predict_outcome): Likewise.
1243         (gimple_predict_set_outcome): Likewise.
1244         (gimple_transaction_set_label): Likewise.
1245         (gimple_transaction_set_body): Likewise.
1246         (gimple_transaction_label_ptr): Likewise.
1247         (gimple_transaction_label): Likewise.
1248         (gimple_transaction_body_ptr): Likewise.
1249         (gimple_omp_continue_set_control_use): Likewise.
1250         (gimple_omp_continue_control_use_ptr): Likewise.
1251         (gimple_omp_continue_control_use): Likewise.
1252         (gimple_omp_continue_set_control_def): Likewise.
1253         (gimple_omp_continue_control_def_ptr): Likewise.
1254         (gimple_omp_continue_control_def): Likewise.
1255         (gimple_omp_atomic_load_rhs_ptr): Likewise.
1256         (gimple_omp_atomic_load_rhs): Likewise.
1257         (gimple_omp_atomic_load_set_rhs): Likewise.
1258         (gimple_omp_atomic_load_lhs_ptr): Likewise.
1259         (gimple_omp_atomic_load_lhs): Likewise.
1260         (gimple_omp_atomic_load_set_lhs): Likewise.
1261         (gimple_omp_atomic_store_val_ptr): Likewise.
1262         (gimple_omp_atomic_store_val): Likewise.
1263         (gimple_omp_atomic_store_set_val): Likewise.
1264         (gimple_omp_for_cond): Likewise.
1265         (gimple_omp_for_set_cond): Likewise.
1266         (gimple_omp_sections_set_control): Likewise.
1267         (gimple_omp_sections_control_ptr): Likewise.
1268         (gimple_omp_sections_control): Likewise.
1269         (gimple_omp_sections_set_clauses): Likewise.
1270         (gimple_omp_sections_clauses_ptr): Likewise.
1271         (gimple_omp_sections_clauses): Likewise.
1272         (gimple_omp_teams_set_clauses): Likewise.
1273         (gimple_omp_teams_clauses_ptr): Likewise.
1274         (gimple_omp_teams_clauses): Likewise.
1275         (gimple_omp_target_set_data_arg): Likewise.
1276         (gimple_omp_target_data_arg_ptr): Likewise.
1277         (gimple_omp_target_data_arg): Likewise.
1278         (gimple_omp_target_set_child_fn): Likewise.
1279         (gimple_omp_target_child_fn_ptr): Likewise.
1280         (gimple_omp_target_child_fn): Likewise.
1281         (gimple_omp_target_set_clauses): Likewise.
1282         (gimple_omp_target_clauses_ptr): Likewise.
1283         (gimple_omp_target_clauses): Likewise.
1284         (gimple_omp_single_set_clauses): Likewise.
1285         (gimple_omp_single_clauses_ptr): Likewise.
1286         (gimple_omp_single_clauses): Likewise.
1287         (gimple_omp_task_set_arg_align): Likewise.
1288         (gimple_omp_task_arg_align_ptr): Likewise.
1289         (gimple_omp_task_arg_align): Likewise.
1290         (gimple_omp_task_set_arg_size): Likewise.
1291         (gimple_omp_task_arg_size_ptr): Likewise.
1292         (gimple_omp_task_arg_size): Likewise.
1293         (gimple_omp_task_set_copy_fn): Likewise.
1294         (gimple_omp_task_copy_fn_ptr): Likewise.
1295         (gimple_omp_task_copy_fn): Likewise.
1296         (gimple_omp_task_set_data_arg): Likewise.
1297         (gimple_omp_task_data_arg_ptr): Likewise.
1298         (gimple_omp_task_data_arg): Likewise.
1299         (gimple_omp_task_set_child_fn): Likewise.
1300         (gimple_omp_task_child_fn_ptr): Likewise.
1301         (gimple_omp_task_child_fn): Likewise.
1302         (gimple_omp_task_set_clauses): Likewise.
1303         (gimple_omp_task_clauses_ptr): Likewise.
1304         (gimple_omp_task_clauses): Likewise.
1305         (gimple_omp_parallel_set_data_arg): Likewise.
1306         (gimple_omp_parallel_data_arg_ptr): Likewise.
1307         (gimple_omp_parallel_data_arg): Likewise.
1308         (gimple_omp_parallel_set_child_fn): Likewise.
1309         (gimple_omp_parallel_child_fn_ptr): Likewise.
1310         (gimple_omp_parallel_child_fn): Likewise.
1311         (gimple_omp_parallel_set_clauses): Likewise.
1312         (gimple_omp_parallel_clauses_ptr): Likewise.
1313         (gimple_omp_parallel_clauses): Likewise.
1314         (gimple_omp_for_set_pre_body): Likewise.
1315         (gimple_omp_for_pre_body_ptr): Likewise.
1316         (gimple_omp_for_set_incr): Likewise.
1317         (gimple_omp_for_incr_ptr): Likewise.
1318         (gimple_omp_for_incr): Likewise.
1319         (gimple_omp_for_set_final): Likewise.
1320         (gimple_omp_for_final_ptr): Likewise.
1321         (gimple_omp_for_final): Likewise.
1322         (gimple_omp_for_set_initial): Likewise.
1323         (gimple_omp_for_initial_ptr): Likewise.
1324         (gimple_omp_for_initial): Likewise.
1325         (gimple_omp_for_set_index): Likewise.
1326         (gimple_omp_for_index_ptr): Likewise.
1327         (gimple_omp_for_index): Likewise.
1328         (gimple_omp_for_collapse): Likewise.
1329         (gimple_omp_for_set_clauses): Likewise.
1330         (gimple_omp_for_clauses_ptr): Likewise.
1331         (gimple_omp_for_clauses): Likewise.
1332         (gimple_omp_critical_set_name): Likewise.
1333         (gimple_omp_critical_name_ptr): Likewise.
1334         (gimple_omp_critical_name): Likewise.
1335         (gimple_eh_dispatch_set_region): Likewise.
1336         (gimple_eh_dispatch_region): Likewise.
1337         (gimple_resx_set_region): Likewise.
1338         (gimple_resx_region): Likewise.
1339         (gimple_phi_set_arg): Likewise.
1340         (gimple_phi_arg): Likewise.
1341         (gimple_phi_set_result): Likewise.
1342         (gimple_phi_result_ptr): Likewise.
1343         (gimple_phi_result): Likewise.
1344         (gimple_phi_num_args): Likewise.
1345         (gimple_phi_capacity): Likewise.
1346         (gimple_wce_set_cleanup): Likewise.
1347         (gimple_wce_cleanup_ptr): Likewise.
1348         (gimple_try_set_cleanup): Likewise.
1349         (gimple_try_set_eval): Likewise.
1350         (gimple_try_cleanup_ptr): Likewise.
1351         (gimple_try_eval_ptr): Likewise.
1352         (gimple_eh_else_set_e_body): Likewise.
1353         (gimple_eh_else_set_n_body): Likewise.
1354         (gimple_eh_else_e_body_ptr): Likewise.
1355         (gimple_eh_else_n_body_ptr): Likewise.
1356         (gimple_eh_must_not_throw_set_fndecl): Likewise.
1357         (gimple_eh_must_not_throw_fndecl): Likewise.
1358         (gimple_eh_filter_set_failure): Likewise.
1359         (gimple_eh_filter_set_types): Likewise.
1360         (gimple_eh_filter_failure_ptr): Likewise.
1361         (gimple_eh_filter_types_ptr): Likewise.
1362         (gimple_eh_filter_types): Likewise.
1363         (gimple_catch_set_handler): Likewise.
1364         (gimple_catch_set_types): Likewise.
1365         (gimple_catch_handler_ptr): Likewise.
1366         (gimple_catch_types_ptr): Likewise.
1367         (gimple_catch_types): Likewise.
1368         (gimple_asm_string): Likewise.
1369         (gimple_asm_set_label_op): Likewise.
1370         (gimple_asm_label_op): Likewise.
1371         (gimple_asm_set_clobber_op): Likewise.
1372         (gimple_asm_clobber_op): Likewise.
1373         (gimple_asm_set_output_op): Likewise.
1374         (gimple_asm_output_op_ptr): Likewise.
1375         (gimple_asm_output_op): Likewise.
1376         (gimple_asm_set_input_op): Likewise.
1377         (gimple_asm_input_op_ptr): Likewise.
1378         (gimple_asm_input_op): Likewise.
1379         (gimple_asm_nlabels): Likewise.
1380         (gimple_asm_nclobbers): Likewise.
1381         (gimple_asm_noutputs): Likewise.
1382         (gimple_asm_ninputs): Likewise.
1383         (gimple_bind_set_block): Likewise.
1384         (gimple_bind_block): Likewise.
1385         (gimple_bind_add_seq): Likewise.
1386         (gimple_bind_add_stmt): Likewise.
1387         (gimple_bind_set_body): Likewise.
1388         (gimple_bind_body_ptr): Likewise.
1389         (gimple_bind_append_vars): Likewise.
1390         (gimple_bind_set_vars): Likewise.
1391         (gimple_bind_vars): Likewise.
1392         (gimple_call_clobber_set): Likewise.
1393         (gimple_call_use_set): Likewise.
1394         (gimple_call_set_internal_fn): Likewise.
1395         (gimple_call_set_fntype): Likewise.
1396         (gimple_call_fntype): Likewise.
1397         (gimple_omp_return_lhs_ptr): Likewise.
1398         (gimple_omp_return_lhs): Likewise.
1399         (gimple_omp_return_set_lhs): Likewise.
1400         (gimple_omp_taskreg_set_data_arg): Likewise.
1401         (gimple_omp_taskreg_data_arg_ptr): Likewise.
1402         (gimple_omp_taskreg_data_arg): Likewise.
1403         (gimple_omp_taskreg_set_child_fn): Likewise.
1404         (gimple_omp_taskreg_child_fn_ptr): Likewise.
1405         (gimple_omp_taskreg_child_fn): Likewise.
1406         (gimple_omp_taskreg_set_clauses): Likewise.
1407         (gimple_omp_taskreg_clauses_ptr): Likewise.
1408         (gimple_omp_taskreg_clauses): Likewise.
1409         (gimple_vuse): Likewise.
1410         (gimple_vdef): Likewise.
1411         (gimple_vuse_ptr): Likewise.
1412         (gimple_vdef_ptr): Likewise.
1413         * tree-inline.c (copy_debug_stmt): Likewise.
1414         * tree-phinodes.c (make_phi_node): Likewise.
1416         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
1417         (is_a_helper <gimple_statement_with_ops>::test): New.
1418         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
1419         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
1421         * gimple-streamer-in.c (input_gimple_stmt): Port from union
1422         access to use of as_a.
1423         * gimple.c (gimple_build_asm_1): Likewise.
1424         (gimple_build_try): Likewise.  Also, return a specific subclass
1425         rather than just gimple.
1426         (gimple_build_resx): Port from union access to use of as_a.
1427         (gimple_build_eh_dispatch): Likewise.
1428         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
1429         now that gengtype no longer provides a typed allocator function.
1430         (gimple_copy): Likewise.
1431         * gimple.h (gimple_build_try): Return a specific subclass rather
1432         than just gimple.
1433         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
1434         with subclass access by making use of new return type of
1435         gimple_build_try.
1436         * tree-phinodes.c: (allocate_phi_node): Return a
1437         "gimple_statement_phi *" rather than just a gimple.
1438         (resize_phi_node): Likewise.
1439         (make_phi_node): Replace union access with subclass access by
1440         making use of new return type of allocate_phi_node.
1441         (reserve_phi_args_for_new_edge): Replace union access with as_a.
1442         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
1443         than just a gimple.
1444         (remove_phi_args): Update for change to remove_phi_arg_num.
1446         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
1447         code field to reflect inheritance, rather than embedding of
1448         the base gimple type.
1450 2013-11-19  Richard Biener  <rguenther@suse.de>
1452         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
1453         and destructor and make fel_next a member function.
1454         (fel_next): Transform into ...
1455         (loop_iterator::next): ... this.
1456         (fel_init): Transform into ...
1457         (loop_iterator::loop_iterator): ... this.
1458         (loop_iterator::~loop_iterator): New.
1459         (FOR_EACH_LOOP): Remove loop-iterator argument.
1460         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
1461         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
1462         graphite-clast-to-gimple.c, graphite-scop-detection.c,
1463         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
1464         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
1465         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
1466         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
1467         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
1468         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
1469         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
1470         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
1471         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
1472         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
1473         FOR_EACH_LOOP_BREAK with break.
1475 2013-11-19  Richard Biener  <rguenther@suse.de>
1477         PR tree-optimization/59164
1478         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1479         Uncomment assert.
1480         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
1481         whether we can create an epilogue loop to reflect thecases where
1482         we create one.
1484 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
1486         * graphite-sese-to-poly.c: Include expr.h.
1488 2013-11-19  Richard Biener  <rguenther@suse.de>
1490         PR middle-end/58956
1491         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
1492         loads into stmts that may clobber it.
1494 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
1496         * cgraphunit.c (symtab_terminator): New variable.
1497         (queued_nodes): Renamed from first.  Use symtab_terminator as
1498         initializer.
1499         (analyze_functions): Adjust accordingly.
1500         (cgraph_process_new_functions): Return void.
1501         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
1503 2013-11-19  Marek Polacek  <polacek@redhat.com>
1505         * opts.c (common_handle_option): Add -fsanitize=null option.
1506         Turn off -fdelete-null-pointer-checks option when doing the
1507         NULL pointer checking.
1508         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
1509         * tree-pass.h (make_pass_ubsan): Declare.
1510         (make_pass_sanopt): Declare.
1511         * timevar.def (TV_TREE_UBSAN): New timevar.
1512         * passes.def: Add pass_sanopt and pass_ubsan.
1513         * ubsan.h (ubsan_null_ckind): New enum.
1514         (ubsan_mismatch_data): New struct.
1515         (ubsan_expand_null_ifn): Declare.
1516         (ubsan_create_data): Adjust declaration.
1517         (ubsan_type_descriptor): Likewise.
1518         * asan.c: Include "ubsan.h".
1519         (pass_data_sanopt): New pass.
1520         (execute_sanopt): New function.
1521         (gate_sanopt): Likewise.
1522         (make_pass_sanopt): Likewise.
1523         (class pass_sanopt): New class.
1524         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
1525         gimple-iterator.h and cfgloop.h.
1526         (PROB_VERY_UNLIKELY): Define.
1527         (tree_type_map_hash): New function.
1528         (ubsan_type_descriptor): Add new parameter.
1529         Improve type name generation.
1530         (ubsan_create_data): Add new parameter.  Add pointer data into
1531         ubsan structure.
1532         (ubsan_expand_null_ifn): New function.
1533         (instrument_member_call): Likewise.
1534         (instrument_mem_ref): Likewise.
1535         (instrument_null): Likewise.
1536         (ubsan_pass): Likewise.
1537         (gate_ubsan): Likewise.
1538         (make_pass_ubsan): Likewise.
1539         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
1540         (class pass_ubsan): New class.
1541         (pass_data_ubsan): New pass.
1542         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
1543         * internal-fn.c (expand_UBSAN_NULL): New function.
1544         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
1545         even when !flag_toplevel_reorder.
1546         * internal-fn.def (UBSAN_NULL): New.
1548 2013-11-19  Jan Hubicka  <jh@suse.cz>
1550         * cgraph.c (cgraph_create_indirect_edge): Use
1551         get_polymorphic_call_info.
1552         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
1553         maybe_in_construction and maybe_derived_type.
1554         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
1555         (ipa_dummy_polymorphic_call_context): New global var.
1556         (possible_polymorphic_call_targets): Add context paramter.
1557         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
1558         (possible_polymorphic_call_target_p): Likewise.
1559         (get_polymorphic_call_info): New function.
1560         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
1561         (add_type_duplicate): Remove forgotten debug output.
1562         (method_class_type): Add sanity check.
1563         (maybe_record_node): Add FINALP parameter.
1564         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
1565         by info by get_binfo_at_offset.
1566         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
1567         parameters; pass them to record-binfo.
1568         (polymorphic_call_target_d): Add context and FINAL.
1569         (polymorphic_call_target_hasher::hash): Hash context.
1570         (polymorphic_call_target_hasher::equal): Compare context.
1571         (free_polymorphic_call_targets_hash):
1572         (get_class_context): New function.
1573         (contains_type_p): New function.
1574         (get_polymorphic_call_info): New function.
1575         (walk_bases): New function.
1576         (possible_polymorphic_call_targets): Add context parameter; honnor it.
1577         (dump_possible_polymorphic_call_targets): Dump context.
1578         (possible_polymorphic_call_target_p): Add context.
1579         (update_type_inheritance_graph): Update comment.s
1580         (ipa_set_jf_known_type): Assert that compoentn type is known.
1581         (ipa_note_param_call): Do not tamper with offsets.
1582         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
1583         outer type.
1584         (update_indirect_edges_after_inlining): Likewise.
1585         (ipa_write_indirect_edge_info): Stream new fields.
1586         (ipa_read_indirect_edge_info): Stream in new fields.
1588 2013-11-19  Jan Hubicka  <jh@suse.cz>
1590         * tree-pretty-print.c (dump_generic_node): Print class type of
1591         OBJ_TYPE_REF.
1593 2013-11-19  Joey Ye  <joey.ye@arm.com>
1595         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
1596         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
1597         for new option.
1598         * config/arm/arm.c (arm_option_override): By default disable
1599         -marm-pic-data-is-text-relative.
1600         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
1601         (arm_assemble_integer): Likewise.
1602         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
1603         New macro to initialize -marm-pic-data-is-text-relative.
1605 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
1607         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
1608         (address_cost_data): New field.
1609         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
1610         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
1612 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
1614         * config/aarch64/aarch64.md: Remove v8type from all insns.
1616 2013-11-19  Richard Biener  <rguenther@suse.de>
1618         PR tree-optimization/57517
1619         * tree-predcom.c (combinable_refs_p): Verify the combination
1620         is always executed when the refs are.
1622 2013-11-19  Jeff Law  <law@redhat.com>
1624         * tree-ssa-threadupdate.c: Include ssa-iterators.h
1625         (copy_phi_arg_into_existing_phi): New function.
1626         (any_remaining_duplicated_blocks): Likewise.
1627         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
1628         blocks on a jump threading path.
1630         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
1631         thread through a joiner which has the latch edge.
1633 2013-11-19  Jan Hubicka  <jh@suse.cz>
1635         * md.texi (setmem): Document new parameter.
1636         * optabs.c (maybe_gen_insn): Support 9 operands.
1637         * builtins.c (determine_block_size): Add probable_max_size;
1638         support anti-ranges.
1639         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
1640         probable_max_size.
1641         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
1642         emit_block_move, clear_storage_hints, set_storage_via_setmem):
1643         Likewise.
1644         * expr.h (emit_block_move_hints, clear_storage_hints,
1645         set_storage_via_setmem): Update prototype.
1646         * i386.md (setmem, movmem patterns): Add 9th operand.
1647         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
1648         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
1649         argument; pass it to decide_alg.
1651 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1653         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
1654         (n_basic_blocks_for_fn): ...this.
1656         (n_basic_blocks): Eliminate macro as work towards making uses of
1657         cfun be explicit.
1659         * cfgloop.c (init_loops_structure): Update for renaming of
1660         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
1661         * graph.c (draw_cfg_nodes_no_loops): Likewise.
1662         * ipa-utils.c (ipa_merge_profiles): Likewise.
1663         * lto-streamer-in.c (make_new_block): Likewise.
1664         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1665         (dump_function_to_file): Likewise.
1667         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
1668         macro with "n_basic_blocks_for_fn (cfun)".
1669         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
1670         (duplicate_computed_gotos): Likewise.
1671         (reorder_basic_blocks): Likewise.
1672         * bt-load.c (augment_live_range): Likewise.
1673         * cfg.c (expunge_block): Likewise.
1674         (compact_blocks): Likewise.
1675         * cfganal.c (single_pred_before_succ_order): Likewise.
1676         (compute_idf): Likewise.
1677         (flow_dfs_compute_reverse_init): Likewise.
1678         (pre_and_rev_post_order_compute): Likewise.
1679         (pre_and_rev_post_order_compute_fn): Likewise.
1680         (inverted_post_order_compute): Likewise.
1681         (post_order_compute): Likewise.
1682         (print_edge_list): Likewise.
1683         (find_unreachable_blocks): Likewise.
1684         (mark_dfs_back_edges): Likewise.
1685         * cfgcleanup.c (try_optimize_cfg): Likewise.
1686         (try_forward_edges): Likewise.
1687         * cfghooks.c (dump_flow_info): Likewise.
1688         * cfgloop.c (verify_loop_structure): Likewise.
1689         (get_loop_body): Likewise.
1690         (flow_loops_find): Likewise.
1691         * cfgloopmanip.c (add_loop): Likewise.
1692         (remove_path): Likewise.
1693         (find_path): Likewise.
1694         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1695         (rtl_verify_bb_layout): Likewise.
1696         (entry_of_function): Likewise.
1697         (rtl_create_basic_block): Likewise.
1698         * coverage.c (coverage_compute_cfg_checksum): Likewise.
1699         * cprop.c (one_cprop_pass): Likewise.
1700         (is_too_expensive): Likewise.
1701         * df-core.c (df_compute_cfg_image): Likewise.
1702         (df_compact_blocks): Likewise.
1703         (df_worklist_dataflow_doublequeue): Likewise.
1704         * dominance.c (calculate_dominance_info): Likewise.
1705         (calc_dfs_tree): Likewise.
1706         (calc_dfs_tree_nonrec): Likewise.
1707         (init_dom_info): Likewise.
1708         * domwalk.c (cmp_bb_postorder): Likewise.
1709         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1710         (generate_setjmp_warnings): Likewise.
1711         * fwprop.c (build_single_def_use_links): Likewise.
1712         * gcse.c (is_too_expensive): Likewise.
1713         (one_code_hoisting_pass): Likewise.
1714         (one_pre_gcse_pass): Likewise.
1715         * graphite.c (graphite_initialize): Likewise.
1716         * haifa-sched.c (haifa_sched_init): Likewise.
1717         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
1718         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
1719         * ira-build.c (ira_build): Likewise.
1720         * lcm.c (compute_nearerout): Likewise.
1721         (compute_available): Likewise.
1722         (compute_laterin): Likewise.
1723         (compute_antinout_edge): Likewise.
1724         * lra-lives.c (lra_create_live_ranges): Likewise.
1725         * lra.c (has_nonexceptional_receiver): Likewise.
1726         * mcf.c (create_fixup_graph): Likewise.
1727         * profile.c (branch_prob): Likewise.
1728         * reg-stack.c (convert_regs_2): Likewise.
1729         * regrename.c (regrename_analyze): Likewise.
1730         * reload1.c (has_nonexceptional_receiver): Likewise.
1731         * reorg.c (dbr_schedule): Likewise.
1732         * sched-deps.c (sched_deps_init): Likewise.
1733         * sched-ebb.c (schedule_ebbs): Likewise.
1734         * sched-rgn.c (extend_regions): Likewise.
1735         (schedule_insns): Likewise.
1736         (sched_rgn_init): Likewise.
1737         (extend_rgns): Likewise.
1738         (haifa_find_rgns): Likewise.
1739         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
1740         (sel_recompute_toporder): Likewise.
1741         * sel-sched.c (run_selective_scheduling): Likewise.
1742         * store-motion.c (one_store_motion_pass): Likewise.
1743         (remove_reachable_equiv_notes): Likewise.
1744         * tracer.c (tracer): Likewise.
1745         (tail_duplicate): Likewise.
1746         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
1747         (dump_cfg_stats): Likewise.
1748         (gimple_dump_cfg): Likewise.
1749         (create_bb): Likewise.
1750         (build_gimple_cfg): Likewise.
1751         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
1752         * tree-inline.c (optimize_inline_calls): Likewise.
1753         (fold_marked_statements): Likewise.
1754         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
1755         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1756         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1757         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
1758         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1759         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
1760         * tree-ssa-pre.c (do_pre): Likewise.
1761         (init_pre): Likewise.
1762         (compute_avail): Likewise.
1763         * tree-ssa-reassoc.c (init_reassoc): Likewise.
1764         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1765         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
1766         (init_worklist): Likewise.
1767         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1768         * var-tracking.c (variable_tracking_main_1): Likewise.
1769         (vt_find_locations): Likewise.
1770         (vt_stack_adjustments): Likewise.
1771         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1772         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1774 2013-11-18  Jan Hubicka  <jh@suse.cz>
1776         * profile.c (compute_branch_probabilities): Do not sanity check
1777         run_max.
1779 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
1781         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
1782         GET_MODE_PRECISION.
1783         * fold-const.c (fold_single_bit_test_into_sign_test)
1784         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
1786 2013-11-18  Teresa Johnson  <tejohnson@google.com>
1788         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
1789         cfglayout after bb reordering.
1790         * passes.def: Move compgotos before bb reordering since it goes into
1791         cfglayout.
1793 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
1795         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
1796         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
1797         static.
1798         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
1799         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
1800         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
1801         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
1802         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
1803         Remove all_lto_gen_passes.
1804         * passes.c (pass_manager::dump_passes): Remove its use.
1805         (pass_manager::register_pass): Likewise.
1806         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
1807         (pass_manager::pass_manager): Don't initialize or use it.
1808         (write_lto): New static function.
1809         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
1810         instead of using all_lto_gen_passes.
1811         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
1812         pass_ipa_lto_finish_out): Delete.
1813         * tree-pass.h (make_pass_ipa_lto_gimple_out,
1814         make_pass_ipa_lto_finish_out): Don't declare.
1816 2013-11-18  Jeff Law  <law@redhat.com>
1818         * tree-ssa-threadupdate.c (redirection_data): Record two
1819         duplicated blocks instead of just one.
1820         (local_info): Explain why we don't create a template for the
1821         second duplicated block in a thread path.
1822         (create_block_for_threading): Accept argument indicating array
1823         index into redirection_data to store its result.
1824         (lookup_redirection_data): Initialize both duplicate blocks.
1825         (ssa_create_duplicates): If a jump threading path needs multiple
1826         blocks duplicated, then duplicate them.
1827         (ssa_fix_duplicate_block_edges): Corresponding changes.
1828         (ssa_fixup_template_block, thread_single_edge):  Likewise.
1830 2013-11-18  Marek Polacek  <polacek@redhat.com>
1832         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
1834 2013-11-18  Andrew Pinski <apinski@cavium.com>
1835             Steve Ellcey  <sellcey@mips.com>
1837         PR target/56552
1838         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
1839         type restriction from equality_operator on conditonal move.
1840         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
1841         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
1843 2013-11-18  Jeff Law  <law@redhat.com>
1845         * tree-ssa-threadupdate.c: Fix file block comment.
1846         Fix minor indention issue.
1848 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
1850         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
1851         ix86_address_subreg_operand.  Move subreg checks to
1852         ix86_validate_address_register.  Move address override check to
1853         ix86_legitimate_address_p.
1854         (ix86_validate_address_register): New function.
1855         (ix86_legitimate_address_p): Call ix86_validate_address_register
1856         to validate base and index registers.  Add address override check
1857         from ix86_decompose_address.
1858         (ix86_decompose_address): Remove.
1860 2013-11-18  Richard Biener  <rguenther@suse.de>
1862         PR tree-optimization/59125
1863         PR tree-optimization/54570
1864         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
1865         is not complete do not treat component-references with offset zero
1866         but different fields as equal.
1867         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
1868         (compute_object_sizes): Apply TLC.  Propagate the constant
1869         results into all uses and fold their stmts.
1870         * passes.def (pass_all_optimizations): Move pass_object_sizes
1871         after the first pass_forwprop and before pass_fre.
1873 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1875         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
1876         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
1877         (tree_ctz): Remove cast to unsigned type.
1878         * builtins.c (fold_builtin_memory_op): Likewise.
1879         * dwarf2out.c (descr_info_loc): Likewise.
1880         * godump.c (go_output_typedef): Likewise.
1881         * omp-low.c (expand_omp_simd): Likewise.
1882         * stor-layout.c (excess_unit_span): Likewise.
1883         * tree-object-size.c (addr_object_size): Likewise.
1884         * tree-sra.c (analyze_all_variable_accesses): Likewise.
1885         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
1886         (simplify_rotate): Likewise.
1887         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
1888         (handle_pointer_plus): Likewise.
1889         * tree-switch-conversion.c (check_range): Likewise.
1890         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
1891         * tsan.c (instrument_builtin_call): Likewise.
1892         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
1893         * trans-mem.c (tm_log_add): Likewise.
1894         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
1895         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
1896         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
1897         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
1899 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1901         * tree.h (host_integerp, tree_low_cst): Delete.
1902         * tree.c (host_integerp, tree_low_cst): Delete.
1904 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1906         * expr.h: Update comments to refer to tree_to_[su]hwi rather
1907         than tree_low_cst.
1908         * fold-const.c (fold_binary_loc): Likewise.
1909         * expr.c (store_constructor): Use tree_to_uhwi rather than
1910         tree_low_cst.
1911         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
1912         * stmt.c (emit_case_dispatch_table): Likewise.
1913         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
1915 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1917         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
1918         config/aarch64/aarch64.c, config/alpha/predicates.md,
1919         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
1920         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
1921         config/mep/mep-pragma.c, config/mips/mips.c,
1922         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
1923         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
1924         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
1925         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
1926         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
1927         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
1928         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
1929         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
1930         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
1931         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
1933 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1935         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
1936         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
1937         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
1938         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
1939         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
1940         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
1941         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
1942         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
1943         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
1944         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
1945         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
1947 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1949         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
1950         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
1952 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1954         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
1955         than host_integerp.
1957 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1959         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
1960         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
1961         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
1962         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
1963         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
1964         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
1965         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
1966         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
1967         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
1968         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
1969         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
1970         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
1971         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
1972         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
1973         tree_fits_uhwi_p throughout.
1975 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1977         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
1978         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
1979         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
1980         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
1981         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
1982         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
1983         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
1984         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
1985         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
1986         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
1987         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
1988         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
1989         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
1990         throughout.
1992 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1994         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
1995         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
1997 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
1999         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
2000         flag if it kills its address, not its post-increment.
2002 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
2004         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2005         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2006         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2007         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2008         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2009         (gimple_call_with_bounds_p): New.
2010         (gimple_call_set_with_bounds): New.
2011         (gimple_call_num_nobnd_args): Remove.
2012         (gimple_call_nobnd_arg): Remove.
2013         * tree.h (CALL_WITH_BOUNDS_P): New.
2014         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2016 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
2018         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
2019         (symtab_node_name): Rename to symtab_node::name.
2020         (cgraph_node_asm_name): Remove.
2021         (varpool_node_asm_name): Remove.
2022         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
2023         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
2024         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
2025         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
2026         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
2028 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2030         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
2031         * config/arm/arm.c (arm_cortex_a53_tune): New.
2032         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
2034 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2036         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
2037         (case ${target}): Add bdver4.
2038         * config/i386/bdver3.md: Add bdver4.
2039         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2040         -march=native recognize bdver4 processors.
2041         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2042         bdver4 def_and_undef
2043         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
2044         (m_BDVER4): New definition.
2045         (m_AMD_MULTIPLE): Includes m_BDVER4.
2046         (processor_target_table): Add bdver4 entry.
2047         (static const char *const cpu_names): Add bdver4 entry.
2048         (software_prefetching_beneficial_p): Add bdver3.
2049         (ix86_option_override_internal): Add bdver4 instruction sets.
2050         (ix86_issue_rate): Add bdver4.
2051         (ix86_adjust_cost): Add bdver4.
2052         (ia32_multipass_dfa_lookahead): Add bdver4.
2053         (enum processor_model): Add M_AMDFAM15H_BDVER4.
2054         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
2055         (has_dispatch): Add bdver4.
2056         * config/i386/i386.h (TARGET_BDVER4): New definition.
2057         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
2058         (enum processor_type): Add PROCESSOR_BDVER4.
2059         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
2060         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
2061         * doc/extend.texi: Add details about bdver4.
2062         * doc/invoke.texi: Add details about bdver4. Add
2063         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
2065 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2067         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
2068         sdmode_stack_slot also in little-endian mode.
2070 2013-11-17  Jan Hubicka  <jh@suse.cz>
2072         * doc/md.texi (setmem, movstr): Update documentation.
2073         * builtins.c (determine_block_size): New function.
2074         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
2075         (expand_builtin_memset_args): Use it and pass it to
2076         set_storage_via_setmem.
2077         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
2078         parameters; update call to expander.
2079         (emit_block_move_hints): Add min_size/max_size parameters.
2080         (clear_storage_hints): Likewise.
2081         (set_storage_via_setmem): Likewise.
2082         (clear_storage): Update.
2083         * expr.h (emit_block_move_hints, clear_storage_hints,
2084         set_storage_via_setmem): Update prototypes.
2085         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
2086         (ix86_expand_movmem, ix86_expand_setmem): Remove.
2087         (ix86_expand_movmem, ix86_expand_setmem): Remove.
2088         * i386.md (movmem, setmem): Pass parameters.
2090 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
2092         PR target/59153
2093         * config/i386/i386.c (ix86_address_subreg_operand): Do not
2094         reject non-integer subregs.
2095         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
2096         Move check for invalid x32 constant addresses ...
2097         (ix86_legitimate_address_p): ... here.
2099 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2101         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
2102         parameter and use it in REG_FRAME_RELATED_EXPR note.
2103         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
2104         parameter.
2105         (rs6000_emit_prologue): Likewise, but for little endian VSX
2106         stores, pass the source register of the store instead.
2108 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
2110         * gimple.h: Reorder prototypes to match .c declaration order, and
2111         remove protyotypes for functions not in gimple.c.
2112         (LABEL): Move to tree-into-ssa.c.
2113         * gimple.c: Remove unused prototypes.
2114         (get_base_address): Move to tree.c.
2115         * tree.c (get_base_address): Relocate from gimple.c.
2116         * builtins.h (validate_gimple_arglist): Add prototype.
2117         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
2118         * cfgexpand.h: New File.
2119         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
2120         * tree.h (build_addr): Move to tree-nested.h.
2121         * tree-nested.h: New File.
2122         (build_addr, lower_nested_functions, insert_field_into_struct): Add
2123         prototypes.
2124         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
2125         * ipa-inline-analysis.c: Include cfgexpand.h.
2126         * cgraphunit.c: Include tree-nested.h.
2127         * omp-low.c: Likewise.
2128         * tree-parloops.c: Likewise.
2129         * gimple-low.h: Likewise.
2130         * tree-profile.h: Likewise.
2131         * expr.c: Include cfgexpand.h.
2132         * tree-affine.c: Likewise.
2133         * tree-ssa.c: Likewise.
2134         * tree-ssa-loop-im.c: Include trans-mem.h.
2135         * tree-ssa-tail-merge.c: Likewise.
2136         * value-prof.c: Include builtins.h and tree-nested.h.
2137         * tree-into-ssa.c (LABEL): Define here.
2139 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
2141         * config/arc/arc.c (arc_predicate_delay_insns): New function.
2142         (pass_data_arc_predicate_delay_insns): New pass_data instance.
2143         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
2144         (make_pass_arc_predicate_delay_insns): New function.
2145         (arc_init): Register pass_arc_predicate_delay_insns if
2146         flag_delayed_branch is active.
2148 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
2150         * config/arc/constraints.md (Rcq): Simplify register number test.
2152 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
2154         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
2156 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2158         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
2159         is null.
2161 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
2163         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
2164         * gimple-pretty-print.c (dump_omp_for): Add case for
2165         GF_OMP_FOR_KIND_CILKSIMD.
2166         * gimple.h (enum gf_mask): Restructure entries to add
2167         GF_OMP_FOR_KIND_CILKSIMD.
2168         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
2169         (gimplify_omp_for): Handle CILK_SIMD.
2170         (gimplify_expr): Add ccase for CILK_SIMD.
2171         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
2172         (build_outer_var_ref): Same.
2173         (check_omp_nesting_restrictions): Same.
2174         (lower_rec_input_clauses): Same.
2175         (lower_lastprivate_clauses): Same.
2176         (expand_omp_for): Same.
2177         (execute_expand_omp): Check flag_enable_cilkplus.
2178         (execute_lower_omp): Same.
2179         (diagnose_sb_0): Handle CILK_SIMD.
2180         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
2181         (setjmp_or_longjmp_p): New.
2182         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
2183         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
2184         * tree.def: Add tree code for CILK_SIMD.
2186 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2188         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
2189         Remove.
2190         (altivec_vperm_<mode>): Revert earlier little endian change.
2191         (*altivec_vperm_<mode>_internal): Remove.
2192         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
2193         (*altivec_vperm_<mode>_uns_internal): Remove.
2194         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
2196 2013-11-15  Jeff Law  <law@redhat.com>
2198         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
2199         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
2200         * gimple-ssa-isolate-paths.c
2201         (find_implicit_erroneous_behaviour): Corresponding changes.
2202         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
2203         (find_explicit_erroneous_behaviour): Likewise.
2205 2013-11-15  Jeff Law  <law@redhat.com>
2207         * ifcvt.c (find_cond_trap): Properly handle case where
2208         trap_bb == else_bb.
2210 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
2212         * configure: Regenerate.
2214 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
2216         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
2217         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
2218         where it is incorrect or missing.
2220 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
2222         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
2223         host_integerp test.
2224         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
2225         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
2226         constant.
2227         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
2228         pair with a TREE_CODE test and TREE_INT_CST_LOW.
2229         * tree-vect-generic.c (expand_vector_divmod): Likewise.
2231 2013-11-15  Richard Biener  <rguenther@suse.de>
2233         PR tree-optimization/50262
2234         * tree-ssa-alias.h (struct pt_solution): Split
2235         vars_contains_global into vars_contains_nonlocal,
2236         vars_contains_escaped and vars_contains_escaped_heap.
2237         * tree-ssa-structalias.c (label_visit): Expand comment.
2238         (handle_lhs_call): Adjust comment.
2239         (set_uids_in_ptset): Set the new flags appropriately.
2240         (pt_solution_set): Adjust.
2241         (pt_solution_set_var): Likewise.
2242         (pt_solution_ior_into): Likewise.
2243         (pt_solution_includes_global): Likewise.
2244         (pt_solutions_intersect_1): Optimize escaped handling.
2245         (compute_points_to_sets): Remove heap variable globalization.
2246         (ipa_escaped_pt): Adjust initializer.
2247         (pass_data_ipa_pta): Do not run TODO_update_ssa.
2248         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
2249         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
2251 2013-11-15  Richard Biener  <rguenther@suse.de>
2253         * tree-loop-distribution.c (tree_loop_distribution): Make sure
2254         to distribute all stores.
2256 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2258         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
2260 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
2262         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
2263         * configure.ac: Determine target_header_dir earlier.
2264         (--with-glibc-version): New configure option.
2265         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
2266         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
2267         * configure: Regenerate.
2268         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
2269         native toolchains for default.
2270         (--with-glibc-version): Document.
2272 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
2274         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
2276 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
2278         * lto-streamer-in.c (input function): Call cgraph_create_node if
2279         cgraph_get_node failed.
2281 2013-11-14   Olivier Hainque  <hainque@adacore.com>
2283         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
2284         defer allocation of DECL_IGNORED_P variables at toplevel unless really
2285         small.  Factorize size threshold computation from the existing one.
2286         (expand_used_vars): Refine comment.
2288 2013-11-14  Cong Hou  <congh@google.com>
2290         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
2291         address field as it can be obtained from dr.  Rename the struct.
2292         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
2293         steps of data references during sort.
2294         (vect_prune_runtime_alias_test_list): Adjust with the change to
2295         struct dr_with_seg_len.
2296         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2297         Adjust with the change to struct dr_with_seg_len.
2299 2013-11-14  Jeff Law  <law@redhat.com>
2301         PR middle-end/59127
2302         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
2303         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
2304         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
2305         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
2306         edges, then ignore it.  If the statement exhibiting erroneous
2307         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
2308         then we can not optimize.
2309         (find_explicit_erroneous_behaviour): Likewise.
2311 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
2313         * gimplify-me.h:  New file.  Add prototypes.
2314         * gimplify.h: Don't include gimple.h.
2315         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
2316         Relocate from gimple.h.
2317         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
2318         is_gimple_sizepos): Move to gimplify.h.
2319         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
2320         (enum gsi_iterator_update): Move to gimple-iterator.h.
2321         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
2322         * gimplify-me.c: New File.
2323         (force_gimple_operand_1, force_gimple_operand,
2324         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2325         gimple_regimplify_operands): Relocate from gimplify.c.
2326         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
2327         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2328         gimple_regimplify_operands): Move to gimplify-me.c.
2329         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
2330         from gimple.h.
2331         * Makefile.in (OBJS): Add gimplify-me.o
2332         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
2333         required.
2334         * cfgloopmanip.c: Likewise.
2335         * cgraphunit.c: Likewise.
2336         * cilk-common.c: Likewise.
2337         * fold-const.c: Likewise.
2338         * function.c: Likewise.
2339         * gimple-expr.c: Likewise.
2340         * gimple-fold.c: Likewise.
2341         * gimple-ssa-strength-reduction.c: Likewise.
2342         * gimple.c: Likewise.
2343         * graphite-clast-to-gimple.c: Likewise.
2344         * graphite-sese-to-poly.c: Likewise.
2345         * ipa-prop.c: Likewise.
2346         * ipa-split.c: Likewise.
2347         * ipa.c: Likewise.
2348         * langhooks.c: Likewise.
2349         * omp-low.c: Likewise.
2350         * sese.c: Likewise.
2351         * stor-layout.c: Likewise.
2352         * targhooks.c: Likewise.
2353         * trans-mem.c: Likewise.
2354         * tree-affine.c: Likewise.
2355         * tree-cfg.c: Likewise.
2356         * tree-cfgcleanup.c: Likewise.
2357         * tree-complex.c: Likewise.
2358         * tree-if-conv.c: Likewise.
2359         * tree-inline.c: Likewise.
2360         * tree-loop-distribution.c: Likewise.
2361         * tree-nested.c: Likewise.
2362         * tree-parloops.c: Likewise.
2363         * tree-predcom.c: Likewise.
2364         * tree-profile.c: Likewise.
2365         * tree-scalar-evolution.c: Likewise.
2366         * tree-sra.c: Likewise.
2367         * tree-ssa-address.c: Likewise.
2368         * tree-ssa-ccp.c: Likewise.
2369         * tree-ssa-dce.c: Likewise.
2370         * tree-ssa-forwprop.c: Likewise.
2371         * tree-ssa-ifcombine.c: Likewise.
2372         * tree-ssa-loop-im.c: Likewise.
2373         * tree-ssa-loop-ivopts.c: Likewise.
2374         * tree-ssa-loop-manip.c: Likewise.
2375         * tree-ssa-loop-niter.c: Likewise.
2376         * tree-ssa-loop-prefetch.c: Likewise.
2377         * tree-ssa-loop-unswitch.c: Likewise.
2378         * tree-ssa-math-opts.c: Likewise.
2379         * tree-ssa-phiopt.c: Likewise.
2380         * tree-ssa-phiprop.c: Likewise.
2381         * tree-ssa-pre.c: Likewise.
2382         * tree-ssa-propagate.c: Likewise.
2383         * tree-ssa-reassoc.c: Likewise.
2384         * tree-ssa-sccvn.c: Likewise.
2385         * tree-ssa-strlen.c: Likewise.
2386         * tree-ssa.c: Likewise.
2387         * tree-switch-conversion.c: Likewise.
2388         * tree-tailcall.c: Likewise.
2389         * tree-vect-data-refs.c: Likewise.
2390         * tree-vect-generic.c: Likewise.
2391         * tree-vect-loop-manip.c: Likewise.
2392         * tree-vect-loop.c: Likewise.
2393         * tree-vect-patterns.c: Likewise.
2394         * tree-vect-stmts.c: Likewise.
2395         * tree.c: Likewise.
2396         * tsan.c: Likewise.
2397         * value-prof.c: Likewise.
2398         * config/aarch64/aarch64.c: Likewise.
2399         * config/alpha/alpha.c: Likewise.
2400         * config/darwin.c: Likewise.
2401         * config/i386/i386.c: Likewise.
2402         * config/ia64/ia64.c: Likewise.
2403         * config/mep/mep.c: Likewise.
2404         * config/mips/mips.c: Likewise.
2405         * config/rs6000/rs6000.c: Likewise.
2406         * config/s390/s390.c: Likewise.
2407         * config/sh/sh.c: Likewise.
2408         * config/sparc/sparc.c: Likewise.
2409         * config/spu/spu.c: Likewise.
2410         * config/stormy16/stormy16.c: Likewise.
2411         * config/tilegx/tilegx.c: Likewise.
2412         * config/tilepro/tilepro.c: Likewise.
2413         * config/xtensa/xtensa.c: Likewise.
2415 2013-11-14  Diego Novillo  <dnovillo@google.com>
2417         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
2419 2013-11-14  Diego Novillo  <dnovillo@google.com>
2421         * tree.h: Include fold-const.h.
2422         (aggregate_value_p): Moved to function.h.
2423         (alloca_call_p): Moved to calls.h.
2424         (allocate_struct_function): Moved to function.h.
2425         (apply_tm_attr): Moved to attribs.h.
2426         (array_at_struct_end_p): Moved to expr.h.
2427         (array_ref_element_size): Moved to tree-dfa.h.
2428         (array_ref_low_bound): Moved to tree-dfa.h.
2429         (array_ref_up_bound): Moved to tree.h.
2430         (assemble_alias): Moved to cgraph.h.
2431         (bit_from_pos): Moved to stor-layout.h.
2432         (build_addr): Moved to tree-nested.h.
2433         (build_duplicate_type): Moved to tree-inline.h.
2434         (build_fold_addr_expr): Moved to fold-const.h.
2435         (build_fold_addr_expr_with_type): Moved to fold-const.h.
2436         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
2437         (build_fold_indirect_ref): Moved to fold-const.h.
2438         (build_fold_indirect_ref_loc): Moved to fold-const.h.
2439         (build_personality_function): Moved to tree.h.
2440         (build_range_check): Moved to fold-const.h.
2441         (build_simple_mem_ref): Moved to fold-const.h.
2442         (build_simple_mem_ref_loc): Moved to fold-const.h.
2443         (build_tm_abort_call): Moved to trans-mem.h.
2444         (byte_from_pos): Moved to stor-layout.h.
2445         (call_expr_flags): Moved to calls.h.
2446         (can_move_by_pieces): Moved to expr.h.
2447         (categorize_ctor_elements): Moved to expr.h.
2448         (change_decl_assembler_name): Moved to gcc-symtab.h.
2449         (combine_comparisons): Moved to fold-const.h.
2450         (complete_ctor_at_level_p): Moved to tree.h.
2451         (component_ref_field_offset): Moved to tree-dfa.h.
2452         (compute_builtin_object_size): Moved to tree-object-size.h.
2453         (compute_record_mode): Moved to stor-layout.h.
2454         (constant_boolean_node): Moved to fold-const.h.
2455         (constructor_static_from_elts_p): Moved to varasm.h.
2456         (cxx11_attribute_p): Moved to attribs.h.
2457         (debug_body): Moved to print-tree.h.
2458         (debug_find_tree): Moved to tree-inline.h.
2459         (debug_fold_checksum): Moved to fold-const.h.
2460         (debug_head): Moved to print-tree.h.
2461         (debug_head): Moved to print-tree.h.
2462         (debug_raw): Moved to print-tree.h.
2463         (debug_tree): Moved to print-tree.h.
2464         (debug_vec_tree): Moved to print-tree.h.
2465         (debug_verbose): Moved to print-tree.h.
2466         (debug_verbose): Moved to print-tree.h.
2467         (decl_attributes): Moved to attribs.h.
2468         (decl_binds_to_current_def_p): Moved to varasm.h.
2469         (decl_default_tls_model): Moved to varasm.h.
2470         (decl_replaceable_p): Moved to varasm.h.
2471         (div_if_zero_remainder): Moved to fold-const.h.
2472         (double_int mem_ref_offset): Moved to fold-const.h.
2473         (dump_addr): Moved to print-tree.h.
2474         (element_precision): Moved to machmode.h.
2475         (expand_dummy_function_end): Moved to function.h.
2476         (expand_function_end): Moved to function.h.
2477         (expand_function_start): Moved to function.h.
2478         (expand_label): Moved to stmt.h.
2479         (expr_first): Moved to tree-iterator.h.
2480         (expr_last): Moved to tree-iterator.h.
2481         (finalize_size_functions): Moved to stor-layout.h.
2482         (finish_builtin_struct): Moved to stor-layout.h.
2483         (finish_record_layout): Moved to stor-layout.h.
2484         (fixup_signed_type): Moved to stor-layout.h.
2485         (fixup_unsigned_type): Moved to stor-layout.h.
2486         (flags_from_decl_or_type): Moved to calls.h.
2487         (fold): Moved to fold-const.h.
2488         (fold_abs_const): Moved to fold-const.h.
2489         (fold_binary): Moved to fold-const.h.
2490         (fold_binary_loc): Moved to fold-const.h.
2491         (fold_binary_to_constant): Moved to fold-const.h.
2492         (fold_build1): Moved to fold-const.h.
2493         (fold_build1_initializer_loc): Moved to fold-const.h.
2494         (fold_build1_loc): Moved to fold-const.h.
2495         (fold_build1_stat_loc): Moved to fold-const.h.
2496         (fold_build2): Moved to fold-const.h.
2497         (fold_build2_initializer_loc): Moved to fold-const.h.
2498         (fold_build2_loc): Moved to fold-const.h.
2499         (fold_build2_stat_loc): Moved to fold-const.h.
2500         (fold_build3): Moved to fold-const.h.
2501         (fold_build3_loc): Moved to fold-const.h.
2502         (fold_build3_stat_loc): Moved to fold-const.h.
2503         (fold_build_call_array): Moved to fold-const.h.
2504         (fold_build_call_array_initializer): Moved to fold-const.h.
2505         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
2506         (fold_build_call_array_loc): Moved to fold-const.h.
2507         (fold_build_cleanup_point_expr): Moved to fold-const.h.
2508         (fold_convert): Moved to fold-const.h.
2509         (fold_convert_loc): Moved to fold-const.h.
2510         (fold_convertible_p): Moved to fold-const.h.
2511         (fold_defer_overflow_warnings): Moved to fold-const.h.
2512         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
2513         (fold_fma): Moved to fold-const.h.
2514         (fold_ignored_result): Moved to fold-const.h.
2515         (fold_indirect_ref): Moved to fold-const.h.
2516         (fold_indirect_ref_1): Moved to fold-const.h.
2517         (fold_indirect_ref_loc): Moved to fold-const.h.
2518         (fold_read_from_constant_string): Moved to fold-const.h.
2519         (fold_real_zero_addition_p): Moved to fold-const.h.
2520         (fold_single_bit_test): Moved to fold-const.h.
2521         (fold_strip_sign_ops): Moved to fold-const.h.
2522         (fold_ternary): Moved to fold-const.h.
2523         (fold_ternary_loc): Moved to fold-const.h.
2524         (fold_unary): Moved to tree-data-ref.h.
2525         (fold_unary_ignore_overflow): Moved to fold-const.h.
2526         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
2527         (fold_unary_loc): Moved to fold-const.h.
2528         (fold_unary_to_constant): Moved to fold-const.h.
2529         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
2530         (fold_undefer_overflow_warnings): Moved to fold-const.h.
2531         (folding_initializer): Moved to fold-const.h.
2532         (free_temp_slots): Moved to function.h.
2533         (generate_setjmp_warnings): Moved to function.h.
2534         (get_attribute_name): Moved to attribs.h.
2535         (get_identifier): Moved to stringpool.h.
2536         (get_identifier_with_length): Moved to stringpool.h.
2537         (get_inner_reference): Moved to tree.h.
2538         (gimple_alloca_call_p): Moved to calls.h.
2539         (gimplify_parameters): Moved to function.h.
2540         (highest_pow2_factor): Moved to expr.h.
2541         (indent_to): Moved to print-tree.h.
2542         (init_attributes): Moved to attribs.h.
2543         (init_dummy_function_start): Moved to function.h.
2544         (init_function_start): Moved to function.h.
2545         (init_inline_once): Moved to tree-inline.h.
2546         (init_object_sizes): Moved to tree-object-size.h.
2547         (init_temp_slots): Moved to function.h.
2548         (init_tree_optimization_optabs): Moved to optabs.h.
2549         (initialize_sizetypes): Moved to stor-layout.h.
2550         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
2551         (initializer_constant_valid_p): Moved to varasm.h.
2552         (int_const_binop): Moved to fold-const.h.
2553         (internal_reference_types): Moved to stor-layout.h.
2554         (invert_tree_comparison): Moved to fold-const.h.
2555         (invert_truthvalue): Moved to fold-const.h.
2556         (invert_truthvalue_loc): Moved to fold-const.h.
2557         (is_tm_ending_fndecl): Moved to trans-mem.h.
2558         (is_tm_may_cancel_outer): Moved to trans-mem.h.
2559         (is_tm_pure): Moved to trans-mem.h.
2560         (is_tm_safe): Moved to trans-mem.h.
2561         (layout_decl): Moved to stor-layout.h.
2562         (layout_type): Moved to stor-layout.h.
2563         (lookup_attribute_spec): Moved to attribs.h.
2564         (make_accum_type): Moved to stor-layout.h.
2565         (make_decl_one_only): Moved to varasm.h.
2566         (make_decl_rtl): Moved to tree.h.
2567         (make_decl_rtl_for_debug): Moved to varasm.h.
2568         (make_fract_type): Moved to stor-layout.h.
2569         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
2570         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
2571         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
2572         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
2573         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
2574         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
2575         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
2576         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
2577         (make_range): Moved to fold-const.h.
2578         (make_range_step): Moved to fold-const.h.
2579         (make_sat_signed_accum_type): Moved to stor-layout.h.
2580         (make_sat_signed_fract_type): Moved to stor-layout.h.
2581         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
2582         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
2583         (make_signed_accum_type): Moved to stor-layout.h.
2584         (make_signed_fract_type): Moved to stor-layout.h.
2585         (make_signed_type): Moved to stor-layout.h.
2586         (make_unsigned_accum_type): Moved to stor-layout.h.
2587         (make_unsigned_fract_type): Moved to stor-layout.h.
2588         (make_unsigned_type): Moved to stor-layout.h.
2589         (mark_decl_referenced): Moved to varasm.h.
2590         (mark_referenced): Moved to varasm.h.
2591         (may_negate_without_overflow_p): Moved to fold-const.h.
2592         (maybe_get_identifier): Moved to stringpool.h.
2593         (merge_ranges): Moved to fold-const.h.
2594         (merge_weak): Moved to varasm.h.
2595         (mode_for_size_tree): Moved to stor-layout.h.
2596         (multiple_of_p): Moved to fold-const.h.
2597         (must_pass_in_stack_var_size): Moved to calls.h.
2598         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
2599         (native_encode_expr): Moved to fold-const.h.
2600         (native_interpret_expr): Moved to fold-const.h.
2601         (non_lvalue): Moved to fold-const.h.
2602         (non_lvalue_loc): Moved to fold-const.h.
2603         (normalize_offset): Moved to stor-layout.h.
2604         (normalize_rli): Moved to stor-layout.h.
2605         (notice_global_symbol): Moved to varasm.h.
2606         (omit_one_operand): Moved to fold-const.h.
2607         (omit_one_operand_loc): Moved to fold-const.h.
2608         (omit_two_operands): Moved to fold-const.h.
2609         (omit_two_operands_loc): Moved to fold-const.h.
2610         (operand_equal_p): Moved to tree-data-ref.h.
2611         (parse_input_constraint): Moved to stmt.h.
2612         (parse_output_constraint): Moved to stmt.h.
2613         (place_field): Moved to stor-layout.h.
2614         (pop_function_context): Moved to function.h.
2615         (pop_temp_slots): Moved to function.h.
2616         (pos_from_bit): Moved to stor-layout.h.
2617         (preserve_temp_slots): Moved to function.h.
2618         (print_node): Moved to print-tree.h.
2619         (print_node_brief): Moved to print-tree.h.
2620         (print_rtl): Moved to rtl.h.
2621         (process_pending_assemble_externals): Moved to varasm.h.
2622         (ptr_difference_const): Moved to fold-const.h.
2623         (push_function_context): Moved to function.h.
2624         (push_struct_function): Moved to function.h.
2625         (push_temp_slots): Moved to function.h.
2626         (record_tm_replacement): Moved to trans-mem.h.
2627         (relayout_decl): Moved to stor-layout.h.
2628         (resolve_asm_operand_names): Moved to stmt.h.
2629         (resolve_unique_section): Moved to varasm.h.
2630         (rli_size_so_far): Moved to stor-layout.h.
2631         (rli_size_unit_so_far): Moved to stor-layout.h.
2632         (round_down): Moved to fold-const.h.
2633         (round_down_loc): Moved to fold-const.h.
2634         (round_up): Moved to fold-const.h.
2635         (round_up_loc): Moved to fold-const.h.
2636         (set_decl_incoming_rtl): Moved to emit-rtl.h.
2637         (set_decl_rtl): Moved to tree.h.
2638         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
2639         (set_user_assembler_name): Moved to varasm.h.
2640         (setjmp_call_p): Moved to calls.h.
2641         (size_binop): Moved to fold-const.h.
2642         (size_binop_loc): Moved to fold-const.h.
2643         (size_diffop): Moved to fold-const.h.
2644         (size_diffop_loc): Moved to fold-const.h.
2645         (size_int_kind): Moved to fold-const.h.
2646         (stack_protect_epilogue): Moved to function.h.
2647         (start_record_layout): Moved to stor-layout.h.
2648         (supports_one_only): Moved to varasm.h.
2649         (swap_tree_comparison): Moved to fold-const.h.
2650         (tm_malloc_replacement): Moved to trans-mem.h.
2651         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
2652         (tree build_invariant_address): Moved to fold-const.h.
2653         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
2654         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
2655         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
2656         (tree_expr_nonnegative_p): Moved to fold-const.h.
2657         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
2658         (tree_output_constant_def): Moved to varasm.h.
2659         (tree_overlaps_hard_reg_set): Moved to stmt.h.
2660         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
2661         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
2662         (tree_swap_operands_p): Moved to fold-const.h.
2663         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
2664         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
2665         (update_alignment_for_field): Moved to stor-layout.h.
2666         (use_register_for_decl): Moved to function.h.
2667         (variable_size): Moved to rtl.h.
2668         (vector_type_mode): Moved to stor-layout.h.
2669         * cgraph.h: Corresponding changes.
2670         * emit-rtl.h: Corresponding changes.
2671         * expr.h: Corresponding changes.
2672         * function.h: Corresponding changes.
2673         * optabs.h: Corresponding changes.
2674         * trans-mem.h: Corresponding changes.
2675         Protect against multiple inclusion.
2676         * tree-inline.h: Corresponding changes.
2677         * tree-iterator.h: Corresponding changes.
2678         * tree-dfa.h: Include expr.h.
2679         * tree-ssanames.h: Include stringpool.h.
2680         * attribs.h: New file.
2681         * calls.h: New file.
2682         * fold-const.h: New file.
2683         * gcc-symtab.h: New file.
2684         * print-rtl.h: New file.
2685         * print-tree.h: New file.
2686         * stmt.h: New file.
2687         * stor-layout.h: New file.
2688         * strinpool.h: New file.
2689         * tree-nested.h: New file
2690         * tree-object-size.h: New file.
2691         * varasm.h: New file.
2693 2013-11-14  Diego Novillo  <dnovillo@google.com>
2695         * alias.c: Include varasm.h.
2696         Include expr.h.
2697         * asan.c: Include calls.h.
2698         Include stor-layout.h.
2699         Include varasm.h.
2700         * attribs.c: Include stringpool.h.
2701         Include attribs.h.
2702         Include stor-layout.h.
2703         * builtins.c: Include stringpool.h.
2704         Include stor-layout.h.
2705         Include calls.h.
2706         Include varasm.h.
2707         Include tree-object-size.h.
2708         * calls.c: Include stor-layout.h.
2709         Include varasm.h.
2710         Include stringpool.h.
2711         Include attribs.h.
2712         * cfgexpand.c: Include stringpool.h.
2713         Include varasm.h.
2714         Include stor-layout.h.
2715         Include stmt.h.
2716         Include print-tree.h.
2717         * cgraph.c: Include varasm.h.
2718         Include calls.h.
2719         Include print-tree.h.
2720         * cgraphclones.c: Include stringpool.h.
2721         Include function.h.
2722         Include emit-rtl.h.
2723         Move inclusion of rtl.h earlier in the file.
2724         * cgraphunit.c: Include varasm.h.
2725         Include stor-layout.h.
2726         Include stringpool.h.
2727         * cilk-common.c: Include stringpool.h.
2728         Include stor-layout.h.
2729         * combine.c: Include stor-layout.h.
2730         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
2731         Include stringpool.h.
2732         Include calls.h.
2733         * config/aarch64/aarch64.c: Include stringpool.h.
2734         Include stor-layout.h.
2735         Include calls.h.
2736         Include varasm.h.
2737         * config/alpha/alpha.c: Include stor-layout.h.
2738         Include calls.h.
2739         Include varasm.h.
2740         * config/arc/arc.c: Include varasm.h.
2741         Include stor-layout.h.
2742         Include stringpool.h.
2743         Include calls.h.
2744         * config/arm/arm.c: Include stringpool.h.
2745         Include stor-layout.h.
2746         Include calls.h.
2747         Include varasm.h.
2748         * config/avr/avr-c.c: Include stor-layout.h.
2749         * config/avr/avr-log.c: Include print-tree.h.
2750         * config/avr/avr.c: Include print-tree.h.
2751         Include calls.h.
2752         Include stor-layout.h.
2753         Include stringpool.h.
2754         * config/bfin/bfin.c: Include varasm.h.
2755         Include calls.h.
2756         * config/c6x/c6x.c: Include stor-layout.h.
2757         Include varasm.h.
2758         Include calls.h.
2759         Include stringpool.h.
2760         * config/cr16/cr16.c: Include stor-layout.h.
2761         Include calls.h.
2762         * config/cris/cris.c: Include varasm.h.
2763         Include stor-layout.h.
2764         Include calls.h.
2765         Include stmt.h.
2766         * config/darwin.c: Include stringpool.h.
2767         Include varasm.h.
2768         Include stor-layout.h.
2769         * config/epiphany/epiphany.c: Include stor-layout.h.
2770         Include varasm.h.
2771         Include calls.h.
2772         Include stringpool.h.
2773         * config/fr30/fr30.c: Include stor-layout.h.
2774         Include varasm.h.
2775         * config/frv/frv.c: Include varasm.h.
2776         Include stor-layout.h.
2777         Include stringpool.h.
2778         * config/h8300/h8300.c: Include stor-layout.h.
2779         Include varasm.h.
2780         Include calls.h.
2781         Include stringpool.h.
2782         * config/i386/i386.c: Include stringpool.h.
2783         Include attribs.h.
2784         Include calls.h.
2785         Include stor-layout.h.
2786         Include varasm.h.
2787         * config/i386/winnt-cxx.c: Include stringpool.h.
2788         Include attribs.h.
2789         * config/i386/winnt.c: Include stringpool.h.
2790         Include varasm.h.
2791         * config/ia64/ia64-c.c: Include stringpool.h.
2792         * config/ia64/ia64.c: Include stringpool.h.
2793         Include stor-layout.h.
2794         Include calls.h.
2795         Include varasm.h.
2796         * config/iq2000/iq2000.c: Include stor-layout.h.
2797         Include calls.h.
2798         Include varasm.h.
2799         * config/lm32/lm32.c: Include calls.h.
2800         * config/m32c/m32c.c: Include stor-layout.h.
2801         Include varasm.h.
2802         Include calls.h.
2803         * config/m32r/m32r.c: Include stor-layout.h.
2804         Include varasm.h.
2805         Include stringpool.h.
2806         Include calls.h.
2807         * config/m68k/m68k.c: Include calls.h.
2808         Include stor-layout.h.
2809         Include varasm.h.
2810         * config/mcore/mcore.c: Include stor-layout.h.
2811         Include varasm.h.
2812         Include stringpool.h.
2813         Include calls.h.
2814         * config/mep/mep.c: Include varasm.h.
2815         Include calls.h.
2816         Include stringpool.h.
2817         Include stor-layout.h.
2818         * config/microblaze/microblaze.c: Include varasm.h.
2819         Include stor-layout.h.
2820         Include calls.h.
2821         * config/mips/mips.c: Include varasm.h.
2822         Include stringpool.h.
2823         Include stor-layout.h.
2824         Include calls.h.
2825         * config/mmix/mmix.c: Include varasm.h.
2826         Include stor-layout.h.
2827         Include calls.h.
2828         * config/mn10300/mn10300.c: Include stor-layout.h.
2829         Include varasm.h.
2830         Include calls.h.
2831         * config/moxie/moxie.c: Include stor-layout.h.
2832         Include varasm.h.
2833         Include calls.h.
2834         * config/msp430/msp430.c: Include stor-layout.h.
2835         Include calls.h.
2836         * config/nds32/nds32.c: Include stor-layout.h.
2837         Include varasm.h.
2838         Include calls.h.
2839         * config/pa/pa.c: Include stor-layout.h.
2840         Include stringpool.h.
2841         Include varasm.h.
2842         Include calls.h.
2843         * config/pdp11/pdp11.c: Include stor-layout.h.
2844         Include varasm.h.
2845         Include calls.h.
2846         * config/picochip/picochip.c: Include calls.h.
2847         Include stor-layout.h.
2848         Include stringpool.h.
2849         Include varasm.h.
2850         * config/rl78/rl78.c: Include varasm.h.
2851         Include stor-layout.h.
2852         Include calls.h.
2853         * config/rs6000/rs6000-c.c: Include stor-layout.h.
2854         Include stringpool.h.
2855         * config/rs6000/rs6000.c: Include stringpool.h.
2856         Include stor-layout.h.
2857         Include calls.h.
2858         Include print-tree.h.
2859         Include varasm.h.
2860         * config/rx/rx.c: Include varasm.h.
2861         Include stor-layout.h.
2862         Include calls.h.
2863         * config/s390/s390.c: Include print-tree.h.
2864         Include stringpool.h.
2865         Include stor-layout.h.
2866         Include varasm.h.
2867         Include calls.h.
2868         * config/score/score.c: Include stringpool.h.
2869         Include calls.h.
2870         Include varasm.h.
2871         Include stor-layout.h.
2872         * config/sh/sh-c.c: Include stringpool.h.
2873         Include attribs.h.h.
2874         * config/sh/sh.c: Include stringpool.h.
2875         Include stor-layout.h.
2876         Include calls.h.
2877         Include varasm.h.
2878         * config/sol2-c.c: Include stringpool.h.
2879         Include attribs.h.
2880         * config/sol2-cxx.c: Include stringpool.h.
2881         * config/sol2.c: Include stringpool.h.
2882         Include varasm.h.
2883         * config/sparc/sparc.c: Include stringpool.h.
2884         Include stor-layout.h.
2885         Include calls.h.
2886         Include varasm.h.
2887         * config/spu/spu-c.c: Include stringpool.h.
2888         * config/spu/spu.c: Include stringpool.h.
2889         Include stor-layout.h.
2890         Include calls.h.
2891         Include varasm.h.
2892         * config/stormy16/stormy16.c: Include stringpool.h.
2893         Include stor-layout.h.
2894         Include varasm.h.
2895         Include calls.h.
2896         * config/tilegx/tilegx.c: Include stringpool.h.
2897         Include stor-layout.h.
2898         Include varasm.h.
2899         Include calls.h.
2900         * config/tilepro/tilepro.c: Include stringpool.h.
2901         Include stor-layout.h.
2902         Include varasm.h.
2903         Include calls.h.
2904         * config/v850/v850-c.c: Include stringpool.h.
2905         Include attribs.h.
2906         * config/v850/v850.c: Include stringpool.h.
2907         Include stor-layout.h.
2908         Include varasm.h.
2909         Include calls.h.
2910         * config/vax/vax.c: Include calls.h.
2911         Include varasm.h.
2912         * config/vms/vms.c: Include stringpool.h.
2913         * config/vxworks.c: Include stringpool.h.
2914         * config/xtensa/xtensa.c: Include stringpool.h.
2915         Include stor-layout.h.
2916         Include calls.h.
2917         Include varasm.h.
2918         * convert.c: Include stor-layout.h.
2919         * coverage.c: Include stringpool.h.
2920         Include stor-layout.h.
2921         * dbxout.c: Include varasm.h.
2922         Include stor-layout.h.
2923         * dojump.c: Include stor-layout.h.
2924         * dse.c: Include stor-layout.h.
2925         * dwarf2asm.c: Include stringpool.h.
2926         Include varasm.h.
2927         * dwarf2cfi.c: Include stor-layout.h.
2928         * dwarf2out.c: Include rtl.h.
2929         Include stringpool.h.
2930         Include stor-layout.h.
2931         Include varasm.h.
2932         Include function.h.
2933         Include emit-rtl.h.
2934         Move inclusion of rtl.h earlier in the file.
2935         * emit-rtl.c: Include varasm.h.
2936         * except.c: Include stringpool.h.
2937         Include stor-layout.h.
2938         * explow.c: Include stor-layout.h.
2939         * expmed.c: Include stor-layout.h.
2940         * expr.c: Include stringpool.h.
2941         Include stor-layout.h.
2942         Include attribs.h.
2943         Include varasm.h.
2944         * final.c: Include varasm.h.
2945         * fold-const.c: Include stor-layout.h.
2946         Include calls.h.
2947         Include tree-iterator.h.
2948         * function.c: Include stor-layout.h.
2949         Include varasm.h.
2950         Include stringpool.h.
2951         * genattrtab.c (write_header): Emit includes for varasm.h,
2952         stor-layout.h and calls.h.
2953         * genautomata.c (main): Likewise.
2954         * genemit.c: Likewise.
2955         * genopinit.c: Likewise.
2956         * genoutput.c (output_prologue): Likewise.
2957         * genpeep.c: Likewise.
2958         * genpreds.c (write_insn_preds_c): Likewise.
2959         * gengtype.c (open_base_files): Add stringpool.h.
2960         * gimple-expr.c: Include stringpool.h.
2961         Include stor-layout.h.
2962         * gimple-fold.c: Include stringpool.h.
2963         Include expr.h.
2964         Include stmt.h.
2965         Include stor-layout.h.
2966         * gimple-low.c: Include tree-nested.h.
2967         Include calls.h.
2968         * gimple-pretty-print.c: Include stringpool.h.
2969         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
2970         Include expr.h.
2971         * gimple-walk.c: Include stmt.h.
2972         * gimple.c: Include calls.h.
2973         Include stmt.h.
2974         Include stor-layout.h.
2975         * gimplify.c: Include stringpool.h.
2976         Include calls.h.
2977         Include varasm.h.
2978         Include stor-layout.h.
2979         Include stmt.h.
2980         Include print-tree.h.
2981         Include expr.h.
2982         * gimplify-me.c: Include stmt.h
2983         Include stor-layout.h
2984         * internal-fn.c: Include stor-layout.h.
2985         * ipa-devirt.c: Include print-tree.h.
2986         Include calls.h.
2987         * ipa-inline-analysis.c: Include stor-layout.h.
2988         Include stringpool.h.
2989         Include print-tree.h.
2990         * ipa-inline.c: Include trans-mem.h.
2991         Include calls.h.
2992         * ipa-prop.c: Include expr.h.
2993         Include stor-layout.h.
2994         Include print-tree.h.
2995         * ipa-pure-const.c: Include print-tree.h.
2996         Include calls.h.
2997         * ipa-reference.c: Include calls.h.
2998         * ipa-split.c: Include stringpool.h.
2999         Include expr.h.
3000         Include calls.h.
3001         * ipa.c: Include calls.h.
3002         Include stringpool.h.
3003         * langhooks.c: Include stringpool.h.
3004         Include attribs.h.
3005         * lto-cgraph.c: Include stringpool.h.
3006         * lto-streamer-in.c: Include stringpool.h.
3007         * lto-streamer-out.c: Include stor-layout.h.
3008         Include stringpool.h.
3009         * omp-low.c: Include stringpool.h.
3010         Include stor-layout.h.
3011         Include expr.h.
3012         * optabs.c: Include stor-layout.h.
3013         Include stringpool.h.
3014         Include varasm.h.
3015         * passes.c: Include varasm.h.
3016         * predict.c: Include calls.h.
3017         * print-rtl.c: Include print-tree.h.
3018         * print-tree.c: Include varasm.h.
3019         Include print-rtl.h.
3020         Include stor-layout.h.
3021         * realmpfr.c: Include stor-layout.h.
3022         * reg-stack.c: Include varasm.h.
3023         * sdbout.c: Include varasm.h.
3024         Include stor-layout.h.
3025         * simplify-rtx.c: Include varasm.h.
3026         * stmt.c: Include varasm.h.
3027         Include stor-layout.h.
3028         * stor-layout.c: Include stor-layout.h.
3029         Include stringpool.h.
3030         Include varasm.h.
3031         Include print-tree.h.
3032         * symtab.c: Include rtl.h.
3033         Include print-tree.h.
3034         Include varasm.h.
3035         Include function.h.
3036         Include emit-rtl.h.
3037         * targhooks.c: Include stor-layout.h.
3038         Include varasm.h.
3039         * toplev.c: Include varasm.h.
3040         Include tree-inline.h.
3041         * trans-mem.c: Include calls.h.
3042         Include function.h.
3043         Include rtl.h.
3044         Include emit-rtl.h.
3045         * tree-affine.c: Include expr.h.
3046         * tree-browser.c: Include print-tree.h.
3047         * tree-call-cdce.c: Include stor-layout.h.
3048         * tree-cfg.c: Include trans-mem.h.
3049         Include stor-layout.h.
3050         Include print-tree.h.
3051         * tree-complex.c: Include stor-layout.h.
3052         * tree-data-ref.c: Include expr.h.
3053         * tree-dfa.c: Include stor-layout.h.
3054         * tree-eh.c: Include expr.h.
3055         Include calls.h.
3056         * tree-emutls.c: Include stor-layout.h.
3057         Include varasm.h.
3058         * tree-if-conv.c: Include stor-layout.h.
3059         * tree-inline.c: Include stor-layout.h.
3060         Include calls.h.
3061         * tree-loop-distribution.c: Include stor-layout.h.
3062         * tree-nested.c: Include stringpool.h.
3063         Include stor-layout.h.
3064         * tree-object-size.c: Include tree-object-size.h.
3065         * tree-outof-ssa.c: Include stor-layout.h.
3066         * tree-parloops.c: Include stor-layout.h.
3067         Include tree-nested.h.
3068         * tree-pretty-print.c: Include stor-layout.h.
3069         Include expr.h.
3070         * tree-profile.c: Include varasm.h.
3071         Include tree-nested.h.
3072         * tree-scalar-evolution.c: Include expr.h.
3073         * tree-sra.c: Include stor-layout.h.
3074         * tree-ssa-address.c: Include stor-layout.h.
3075         * tree-ssa-ccp.c: Include stor-layout.h.
3076         * tree-ssa-dce.c: Include calls.h.
3077         * tree-ssa-dom.c: Include stor-layout.h.
3078         * tree-ssa-forwprop.c: Include stor-layout.h.
3079         * tree-ssa-ifcombine.c: Include stor-layout.h.
3080         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
3081         * tree-ssa-loop-niter.c: Include calls.h.
3082         Include expr.h.
3083         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
3084         * tree-ssa-math-opts.c: Include stor-layout.h.
3085         * tree-ssa-operands.c: Include stmt.h.
3086         Include print-tree.h.
3087         * tree-ssa-phiopt.c: Include stor-layout.h.
3088         * tree-ssa-reassoc.c: Include stor-layout.h.
3089         * tree-ssa-sccvn.c: Include stor-layout.h.
3090         * tree-ssa-sink.c: Include stor-layout.h.
3091         * tree-ssa-strlen.c: Include stor-layout.h.
3092         * tree-ssa-structalias.c: Include stor-layout.h.
3093         Include stmt.h.
3094         * tree-ssa-tail-merge.c: Include stor-layout.h.
3095         Include trans-mem.h.
3096         * tree-ssa-uncprop.c: Include stor-layout.h.
3097         * tree-ssa.c: Include stor-layout.h.
3098         * tree-ssanames.c: Include stor-layout.h.
3099         * tree-streamer-in.c: Include stringpool.h.
3100         * tree-streamer-out.c: Include stor-layout.h.
3101         * tree-switch-conversion.c: Include varasm.h.
3102         Include stor-layout.h.
3103         * tree-tailcall.c: Include stor-layout.h.
3104         * tree-vect-data-refs.c: Include stor-layout.h.
3105         * tree-vect-generic.c: Include stor-layout.h.
3106         * tree-vect-loop.c: Include stor-layout.h.
3107         * tree-vect-patterns.c: Include stor-layout.h.
3108         * tree-vect-slp.c: Include stor-layout.h.
3109         * tree-vect-stmts.c: Include stor-layout.h.
3110         * tree-vectorizer.c: Include stor-layout.h.
3111         * tree-vrp.c: Include stor-layout.h.
3112         Include calls.h.
3113         * tree.c: Include stor-layout.h.
3114         Include calls.h.
3115         Include attribs.h.
3116         Include varasm.h.
3117         * tsan.c: Include expr.h.
3118         * ubsan.c: Include stor-layout.h.
3119         Include stringpool.h.
3120         * value-prof.c: Include tree-nested.h.
3121         Include calls.h.
3122         * var-tracking.c: Include varasm.h.
3123         Include stor-layout.h.
3124         * varasm.c: Include stor-layout.h.
3125         Include stringpool.h.
3126         Include gcc-symtab.h.
3127         Include varasm.h.
3128         * varpool.c: Include varasm.h.
3129         * vmsdbgout.c: Include varasm.h.
3130         * xcoffout.c: Include varasm.h.
3132 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
3134         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
3135         use (.&-4) idiom.
3137 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3139         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
3141 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3142             Alan Modra  <amodra@gmail.com>
3144         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
3145         (RS6000_SAVE_TOC): Remove.
3146         (RS6000_TOC_SAVE_SLOT): New macro.
3147         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
3148         (rs6000_parm_start): Use it.
3149         (rs6000_function_arg_advance_1): Likewise.
3150         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
3151         (rs6000_emit_epilogue): Likewise.
3152         (rs6000_call_aix): Likewise.
3153         (rs6000_output_function_prologue): Do not save/restore r11
3154         around calling _mcount for ABI_ELFv2.
3156 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3157             Alan Modra  <amodra@gmail.com>
3159         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
3160         Add prototype.
3161         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
3162         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
3163         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
3164         (rs6000_function_parms_need_stack): Likewise.
3165         (rs6000_reg_parm_stack_space): Likewise.
3166         (rs6000_function_arg): Do not replace BLKmode by Pmode when
3167         returning a register argument.
3169 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3170             Michael Gschwind  <mkg@us.ibm.com>
3172         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
3173         (ALTIVEC_ARG_MAX_RETURN): Likewise.
3174         (FUNCTION_VALUE_REGNO_P): Use them.
3175         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
3176         (rs6000_return_in_msb): New function.
3177         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
3178         Handle aggregates of up to 16 bytes for ELFv2.
3179         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
3181 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3182             Michael Gschwind  <mkg@us.ibm.com>
3184         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3185         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3186         (rs6000_discover_homogeneous_aggregate): Likewise.
3187         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3188         (rs6000_function_arg_advance_1): Likewise.
3189         (rs6000_function_arg): Likewise.
3190         (rs6000_arg_partial_bytes): Likewise.
3191         (rs6000_psave_function_arg): Handle BLKmode arguments.
3193 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3194             Michael Gschwind  <mkg@us.ibm.com>
3196         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3197         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3198         (rs6000_discover_homogeneous_aggregate): Likewise.
3199         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3200         (rs6000_function_arg_advance_1): Likewise.
3201         (rs6000_function_arg): Likewise.
3202         (rs6000_arg_partial_bytes): Likewise.
3203         (rs6000_psave_function_arg): Handle BLKmode arguments.
3205 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3207         * config/rs6000/rs6000.c (machine_function): New member
3208         r2_setup_needed.
3209         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
3210         (rs6000_output_mi_thunk): Set r2_setup_needed.
3211         (rs6000_output_function_prologue): Output global entry point
3212         prologue and local entry point marker if needed for ABI_ELFv2.
3213         Output -mprofile-kernel code here.
3214         (output_function_profiler): Do not output -mprofile-kernel
3215         code here; moved to rs6000_output_function_prologue.
3216         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
3218         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
3219         (rs6000_output_function_entry): Likewise.
3220         (rs6000_assemble_integer): Likewise.
3221         (rs6000_elf_encode_section_info): Likewise.
3222         (rs6000_elf_declare_function_name): Do not create dot symbols
3223         or .opd section for ABI_ELFv2.
3225         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
3226         (rs6000_trampoline_init): Likewise.
3227         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
3229         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
3230         for function descriptors in ABI_ELFv2.
3232         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
3233         on ABI_AIX only, not ABI_ELFv2.
3234         ("*call_value_indirect_aix<mode>"): Likewise.
3235         ("*call_indirect_elfv2<mode>"): New pattern.
3236         ("*call_value_indirect_elfv2<mode>"): Likewise.
3238         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
3239         check for function descriptors in ABI_ELFv2.
3240         ("current_file_function_operand"): Likewise.
3242         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
3243         (toc): Undefine.
3244         (FUNC_NAME): Define ELFv2 variant.
3245         (JUMP_TARGET): Likewise.
3246         (FUNC_START): Likewise.
3247         (HIDDEN_FUNC): Likewise.
3248         (FUNC_END): Likeiwse.
3250 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3252         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
3253         and --with-abi=elfv2.
3254         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
3255         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
3256         (mabi=elfv2): Likewise.
3257         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
3258         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
3259         if !RS6000_BI_ARCH.
3260         (ELFv2_ABI_CHECK): New macro.
3261         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
3262         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
3263         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
3264         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
3265         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
3267         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
3268         (debug_stack_info): Likewise.
3269         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
3270         (rs6000_legitimize_tls_address): Likewise.
3271         (rs6000_conditional_register_usage): Likewise.
3272         (rs6000_emit_move): Likewise.
3273         (init_cumulative_args): Likewise.
3274         (rs6000_function_arg_advance_1): Likewise.
3275         (rs6000_function_arg): Likewise.
3276         (rs6000_arg_partial_bytes): Likewise.
3277         (rs6000_output_function_entry): Likewise.
3278         (rs6000_assemble_integer): Likewise.
3279         (rs6000_savres_strategy): Likewise.
3280         (rs6000_stack_info): Likewise.
3281         (rs6000_function_ok_for_sibcall): Likewise.
3282         (rs6000_emit_load_toc_table): Likewise.
3283         (rs6000_savres_routine_name): Likewise.
3284         (ptr_regno_for_savres): Likewise.
3285         (rs6000_emit_prologue): Likewise.
3286         (rs6000_emit_epilogue): Likewise.
3287         (rs6000_output_function_epilogue): Likewise.
3288         (output_profile_hook): Likewise.
3289         (output_function_profiler): Likewise.
3290         (rs6000_trampoline_size): Likewise.
3291         (rs6000_trampoline_init): Likewise.
3292         (rs6000_elf_output_toc_section_asm_op): Likewise.
3293         (rs6000_elf_encode_section_info): Likewise.
3294         (rs6000_elf_reloc_rw_mask): Likewise.
3295         (rs6000_elf_declare_function_name): Likewise.
3296         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
3297         except that rs6000_compat_align_parm is always assumed false.
3298         (rs6000_gimplify_va_arg): Likewise.
3299         (rs6000_call_aix): Update comment.
3300         (rs6000_sibcall_aix): Likewise.
3301         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
3302         Treat ABI_ELFv2 the same as ABI_AIX.
3303         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3304         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
3305         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3306         ("load_toc_aix_si"): Likewise.
3307         ("load_toc_aix_di"): Likewise.
3308         ("call"): Likewise.
3309         ("call_value"): Likewise.
3310         ("*call_local_aix<mode>"): Likewise.
3311         ("*call_value_local_aix<mode>"): Likewise.
3312         ("*call_nonlocal_aix<mode>"): Likewise.
3313         ("*call_value_nonlocal_aix<mode>"): Likewise.
3314         ("*call_indirect_aix<mode>"): Likewise.
3315         ("*call_value_indirect_aix<mode>"): Likewise.
3316         ("sibcall"): Likewise.
3317         ("sibcall_value"): Likewise.
3318         ("*sibcall_aix<mode>"): Likewise.
3319         ("*sibcall_value_aix<mode>"): Likewise.
3320         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
3321         ("current_file_function_operand"): Likewise.
3323 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3325         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
3326         by making use of the fact that for vector / floating point arguments
3327         passed both in VRs/FPRs and in the fixed parameter area, the partial
3328         bytes mechanism is in fact not used.
3330 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3332         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
3333         (rs6000_finish_function_arg): Likewise.
3334         (rs6000_function_arg): Use rs6000_psave_function_arg and
3335         rs6000_finish_function_arg to handle both vector and floating
3336         point arguments that are also passed in GPRs / the stack.
3338 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3340         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
3341         (USE_ALTIVEC_FOR_ARG_P): Likewise.
3342         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
3343         (rs6000_function_arg_advance_1):Likewise.
3344         (rs6000_darwin64_record_arg_recurse): Likewise.
3345         (rs6000_function_arg): Likewise.
3346         (rs6000_arg_partial_bytes): Likewise.
3348 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3350         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
3351         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
3352         (rs6000_savres_strategy): Likewise.
3353         (rs6000_return_addr): Likewise.
3354         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
3355         testing for ABI_V4 (since ABI_DARWIN is impossible here).
3356         (rs6000_emit_prologue): Likewise.
3357         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
3358         (rs6000_elf_declare_function_name): Remove duplicated test.
3359         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
3360         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
3361         ("load_toc_v4_PIC_1_normal"): Likewise.
3362         ("load_toc_v4_PIC_1_476"): Likewise.
3363         ("load_toc_v4_PIC_1b"): Likewise.
3364         ("load_toc_v4_PIC_1b_normal"): Likewise.
3365         ("load_toc_v4_PIC_1b_476"): Likewise.
3366         ("load_toc_v4_PIC_2"): Likewise.
3367         ("load_toc_v4_PIC_3b"): Likewise.
3368         ("load_toc_v4_PIC_3c"): Likewise.
3369         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
3370         (RS6000_SAVE_AREA): Likewise.
3371         (FP_ARG_MAX_REG): Likewise.
3372         (RETURN_ADDRESS_OFFSET): Likewise.
3373         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
3374         of ABI_AIX.
3375         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
3376         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3378 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3380         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
3381         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
3382         Create call insn directly instead of via various gen_... routines.
3383         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
3384         (rs6000_sibcall_aix): New function.
3385         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
3386         (TOC_SAVE_OFFSET_64BIT): Likewise.
3387         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
3388         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
3389         (AIX_FUNC_DESC_SC_32BIT): Likewise.
3390         (AIX_FUNC_DESC_SC_64BIT): Likewise.
3391         ("call" expander): Call rs6000_call_aix.
3392         ("call_value" expander): Likewise.
3393         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
3394         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3395         ("*call_indirect_aix<mode>"): ... by this insn pattern.
3396         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
3397         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3398         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
3399         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
3400         ("*call_nonlocal_aix<mode>"): ... this pattern.
3401         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
3402         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
3403         ("*call_local_aix<mode>"): New insn pattern.
3404         ("*call_value_local_aix<mode>"): Likewise.
3405         ("sibcall" expander): Call rs6000_sibcall_aix.
3406         ("sibcall_value" expander): Likewise.  Move earlier in file.
3407         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
3408         ("*sibcall_aix<mode>"): ... this pattern.
3409         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
3410         ("*sibcall_value_aix<mode>"): ... this pattern.
3411         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
3412         (rs6000_call_aix): Add prototype.
3413         (rs6000_sibcall_aix): Likewise.
3415 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
3417         PR sanitizer/59122
3418         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
3419         isn't confused by the artificial decl.
3421 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3423         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
3424         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
3425         Instead, add USEs of all modified call-saved CR fields to the
3426         insn storing the result to the stack slot, and provide an
3427         appropriate REG_FRAME_RELATED_EXPR for that insn.
3428         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
3429         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
3431 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3432             Alan Modra  <amodra@gmail.com>
3434         * function.c (assign_parms): Use all.reg_parm_stack_space instead
3435         of re-evaluating REG_PARM_STACK_SPACE target macro.
3436         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
3437         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
3438         (assign_parm_find_entry_rtl): Update call.
3439         * calls.c (initialize_argument_information): Update call.
3440         (emit_library_call_value_1): Likewise.
3441         * expr.h (locate_and_pad_parm): Update prototype.
3443 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3445         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
3446         arguments.
3448 2013-11-14  DJ Delorie  <dj@redhat.com>
3450         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
3451         to 16 bits.
3453 2013-11-14  Jeff Law  <law@redhat.com>
3455         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
3456         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
3458 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3460         * doc/invoke.texi: Update documentation for AArch64's -mcpu
3461         and -mtune options.
3463 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3465         * config/aarch64/aarch64-cores.def (example-1): Remove.
3466         (example-2): Likewise.
3467         * config/aarch64/aarch64-tune.md: Regenerate.
3468         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
3469         (generic_sched): Remove "large", "small".
3470         * config/aarch64/large.md: Delete.
3471         * config/aarch64/small.md: Delete.
3473 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3475         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
3476         * config/aarch64/aarch64-tune.md: Regenerate.
3477         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
3478         (generic_sched): "no" if we are tuning for cortexa15.
3479         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
3480         relative path.
3482 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3484         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
3485         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
3486         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
3487         (all_cores): Use cortexa53 when tuning for "generic".
3488         (aarch64_override_options): Fix comment.
3489         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
3490         * config/aarch64/aarch64-generic.md: Delete.
3492 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
3494         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
3496 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3498         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
3499         (generic_rtx_cost_table): Remove.
3500         (aarch64_rtx_costs): Use fields from cpu_cost_table.
3501         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
3502         insn_extra_cost.
3503         (cpu_rtx_cost_table): Remove.
3505 2013-11-14  Julian Brown  <julian@codesourcery.com>
3506             Joey Ye  <joey.ye@arm.com>
3508         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
3509         (arm_v7m_tune): New.
3510         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
3511         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
3512         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
3513         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
3515 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
3517         PR target/57491
3518         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
3519         flag setting.
3521 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
3522             Uros Bizjak  <ubizjak@gmail.com>
3524         PR target/59101
3525         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
3526         operands[2] satisfies_constraint_Z that might have bit 31 set.
3528 2013-11-13  Jeff Law  <law@redhat.com>
3530         PR tree-optimization/59102
3531         * gimple-ssa-isolate-paths.c
3532         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
3533         gimple assignment before looking at gimple_assign_lhs.
3535 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
3537         * ira.c: Add comment about threads at the top of file.
3539 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
3541         * ira-color.c (coalesce_allocnos): Don't allocate and free
3542         sorted_copies.
3544 2013-11-14  Tom de Vries  <tom@codesourcery.com>
3546         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
3547         equality for GIMPLE_ASSIGN.
3549 2013-11-14  Tom de Vries  <tom@codesourcery.com>
3551         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
3552         function out of ...
3553         (gimple_equal_p): ... here.
3555 2013-11-14  Tom de Vries  <tom@codesourcery.com>
3557         * trans-mem.c (is_tm_ending): New function.
3558         * gimple.h (is_tm_ending): Declare.
3559         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
3560         BUILT_IN_TM_COMMIT.
3561         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
3563 2013-11-14  Tom de Vries  <tom@codesourcery.com>
3565         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
3567 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
3569         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
3570         (struct walk_stmt_info):  Relocate here from gimple.h.
3571         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
3572         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
3573         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
3574         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
3575         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
3576         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
3577         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
3578         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
3579         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
3580         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
3581         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
3582         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
3583         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
3584         (struct walk_stmt_info): Move to gimple-walk.h.
3585         (gimple_seq_set_location): Move to gimple.c
3586         * gimple-walk.c: New File.
3587         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
3588         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
3589         walk_stmt_load_store_ops): Relocate here from gimple.c.
3590         * gimple-iterator.c: Include gimple-iterator.h.
3591         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
3592         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
3593         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
3594         gimple-walk.c.
3595         (gimple_seq_set_location): Relocate from gimple.h.
3596         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
3597         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
3598         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
3599         * Makefile.in (OBJS): Add gimple-walk.o
3600         * asan.c: Update Include list as required for gimple-iterator.h and
3601         gimple-walk.h.
3602         * cfgexpand.c: Likewise.
3603         * cfgloop.c: Likewise.
3604         * cfgloopmanip.c: Likewise.
3605         * cgraph.c: Likewise.
3606         * cgraphbuild.c: Likewise.
3607         * cgraphunit.c: Likewise.
3608         * gimple-fold.c: Likewise.
3609         * gimple-low.c: Likewise.
3610         * gimple-pretty-print.c: Likewise.
3611         * gimple-ssa-isolate-paths.c: Likewise.
3612         * gimple-ssa-strength-reduction.c: Likewise.
3613         * gimple-streamer-in.c: Likewise.
3614         * gimple-streamer-out.c: Likewise.
3615         * gimplify.c: Likewise.
3616         * graphite-blocking.c: Likewise.
3617         * graphite-clast-to-gimple.c: Likewise.
3618         * graphite-dependences.c: Likewise.
3619         * graphite-interchange.c: Likewise.
3620         * graphite-optimize-isl.c: Likewise.
3621         * graphite-poly.c: Likewise.
3622         * graphite-scop-detection.c: Likewise.
3623         * graphite-sese-to-poly.c: Likewise.
3624         * graphite.c: Likewise.
3625         * ipa-inline-analysis.c: Likewise.
3626         * ipa-profile.c: Likewise.
3627         * ipa-prop.c: Likewise.
3628         * ipa-pure-const.c: Likewise.
3629         * ipa-split.c: Likewise.
3630         * lto-streamer-in.c: Likewise.
3631         * lto-streamer-out.c: Likewise.
3632         * omp-low.c: Likewise.
3633         * predict.c: Likewise.
3634         * profile.c: Likewise.
3635         * sese.c: Likewise.
3636         * tracer.c: Likewise.
3637         * trans-mem.c: Likewise.
3638         * tree-call-cdce.c: Likewise.
3639         * tree-cfg.c: Likewise.
3640         * tree-cfgcleanup.c: Likewise.
3641         * tree-complex.c: Likewise.
3642         * tree-data-ref.c: Likewise.
3643         * tree-dfa.c: Likewise.
3644         * tree-eh.c: Likewise.
3645         * tree-emutls.c: Likewise.
3646         * tree-if-conv.c: Likewise.
3647         * tree-inline.c: Likewise.
3648         * tree-into-ssa.c: Likewise.
3649         * tree-loop-distribution.c: Likewise.
3650         * tree-nested.c: Likewise.
3651         * tree-nrv.c: Likewise.
3652         * tree-object-size.c: Likewise.
3653         * tree-outof-ssa.c: Likewise.
3654         * tree-parloops.c: Likewise.
3655         * tree-predcom.c: Likewise.
3656         * tree-profile.c: Likewise.
3657         * tree-scalar-evolution.c: Likewise.
3658         * tree-sra.c: Likewise.
3659         * tree-ssa-ccp.c: Likewise.
3660         * tree-ssa-coalesce.c: Likewise.
3661         * tree-ssa-copy.c: Likewise.
3662         * tree-ssa-copyrename.c: Likewise.
3663         * tree-ssa-dce.c: Likewise.
3664         * tree-ssa-dom.c: Likewise.
3665         * tree-ssa-dse.c: Likewise.
3666         * tree-ssa-forwprop.c: Likewise.
3667         * tree-ssa-ifcombine.c: Likewise.
3668         * tree-ssa-live.c: Likewise.
3669         * tree-ssa-loop-ch.c: Likewise.
3670         * tree-ssa-loop-im.c: Likewise.
3671         * tree-ssa-loop-ivcanon.c: Likewise.
3672         * tree-ssa-loop-ivopts.c: Likewise.
3673         * tree-ssa-loop-manip.c: Likewise.
3674         * tree-ssa-loop-niter.c: Likewise.
3675         * tree-ssa-loop-prefetch.c: Likewise.
3676         * tree-ssa-loop.c: Likewise.
3677         * tree-ssa-math-opts.c: Likewise.
3678         * tree-ssa-phiopt.c: Likewise.
3679         * tree-ssa-phiprop.c: Likewise.
3680         * tree-ssa-pre.c: Likewise.
3681         * tree-ssa-propagate.c: Likewise.
3682         * tree-ssa-reassoc.c: Likewise.
3683         * tree-ssa-sink.c: Likewise.
3684         * tree-ssa-strlen.c: Likewise.
3685         * tree-ssa-structalias.c: Likewise.
3686         * tree-ssa-tail-merge.c: Likewise.
3687         * tree-ssa-ter.c: Likewise.
3688         * tree-ssa-threadedge.c: Likewise.
3689         * tree-ssa-threadupdate.c: Likewise.
3690         * tree-ssa-uncprop.c: Likewise.
3691         * tree-ssa-uninit.c: Likewise.
3692         * tree-ssa.c: Likewise.
3693         * tree-stdarg.c: Likewise.
3694         * tree-switch-conversion.c: Likewise.
3695         * tree-tailcall.c: Likewise.
3696         * tree-vect-data-refs.c: Likewise.
3697         * tree-vect-generic.c: Likewise.
3698         * tree-vect-loop-manip.c: Likewise.
3699         * tree-vect-loop.c: Likewise.
3700         * tree-vect-patterns.c: Likewise.
3701         * tree-vect-slp.c: Likewise.
3702         * tree-vect-stmts.c: Likewise.
3703         * tree-vectorizer.c: Likewise.
3704         * tree-vrp.c: Likewise.
3705         * tree.c: Likewise.
3706         * tsan.c: Likewise.
3707         * value-prof.c: Likewise.
3708         * vtable-verify.c: Likewise.
3710 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
3712         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
3713         fix.
3715 2013-11-13  Jeff Law  <law@redhat.com>
3717         * PR middle-end/59119
3718         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
3719         function, extracted from gimple_ssa_isolate_erroneous_paths.
3720         (find_explicit_erroneous_behaviour): Similarly.
3721         (insert_trap_and_remove_trailing_statements): Remove statements
3722         in reverse order.
3724 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
3726         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
3727         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
3728         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
3729         looking at INSN_CODE.
3730         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
3731         active_insn_p object, respect basic block boundaries.
3732         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
3733         follows immediately after the jump table data label.
3734         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
3735         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
3736         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
3738 2013-11-13  Teresa Johnson  <tejohnson@google.com>
3740         PR ipa/58862
3741         * predict.c (drop_profile): Error is currently too strict.
3742         (handle_missing_profiles): Pass call_count to drop_profile.
3744 2013-11-13  Teresa Johnson  <tejohnson@google.com>
3746         PR ipa/58862
3747         * ipa-inline.c (edge_badness): Fix overflow.
3749 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
3751         PR rtl-optimization/59036
3752         * ira-color.c (struct allocno_color_data): Add new members
3753         first_thread_allocno, next_thread_allocno, thread_freq.
3754         (sorted_copies): New static var.
3755         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
3756         (allocno_thread_conflict_p, merge_threads)
3757         (form_threads_from_copies, form_threads_from_bucket)
3758         (form_threads_from_colorable_allocno, init_allocno_threads): New
3759         functions.
3760         (bucket_allocno_compare_func): Add comparison by thread frequency
3761         and threads.
3762         (add_allocno_to_ordered_bucket): Rename to
3763         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
3764         (push_only_colorable): Call form_threads_from_bucket.
3765         (color_pass): Call init_allocno_threads.  Use
3766         consideration_allocno_bitmap instead of coloring_allocno_bitmap
3767         for nuillify allocno color data.
3768         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
3769         (coalesce_allocnos): Use static sorted copies.
3771 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
3773         * passes.c (execute_todo): Don't call do_per_function if
3774         flags are zero.
3775         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
3776         execute_function_dump if dump_file is NULL.
3778 2013-11-13  Martin Jambor  <mjambor@suse.cz>
3780         * cgraph.c (cgraph_get_create_node): Do what
3781         cgraph_get_create_real_symbol_node used to do.
3782         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
3783         call cgraph_get_create_node.
3784         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
3785         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
3786         cgraph_get_create_node.  Assert we get a node.
3788 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
3790         * config/aarch64/aarch64-simd.md (vec_extract): New.
3792 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
3794         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
3795         the constraint.
3797 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3799         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
3800         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
3801         or if optimization is enabled.
3802         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
3803         require that all the names based on a PARM_DECL or a RESULT_DECL that
3804         isn't ignored for debug info be coalesced.
3806 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3808         * config/c6x/c6x.c: Include "gimple-expr.h".
3810 2013-11-13  Richard Biener  <rguenther@suse.de>
3812         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
3813         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
3814         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
3815         dealing with type mismatches inside component reference chains.
3817 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
3819         PR tree-optimization/59077
3820         * ipa-pure-const.c (better_state): Update *state.
3822 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
3824         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
3825         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
3826         Update offset calculations.
3828 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3830         PR ada/35998
3831         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
3832         for fields.  Do not add the attribute if the size is negative.
3834 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3836         * config/arm/arm.c: Include aarch-cost-tables.h.
3837         (generic_extra_costs): Move from here...
3838         * config/arm/aarch-cost-tables.h: ... To here.  New file.
3840 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3841             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3842             Sergey Lega  <sergey.s.lega@intel.com>
3843             Anna Tikhonova  <anna.tikhonova@intel.com>
3844             Ilya Tocar  <ilya.tocar@intel.com>
3845             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3846             Ilya Verbin  <ilya.verbin@intel.com>
3847             Kirill Yukhin  <kirill.yukhin@intel.com>
3848             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3850         * config/i386/i386.c (ix86_print_operand): Support z-masking.
3851         * config/i386/predicate.md (const_0_to_4_operand): New.
3852         (const_0_to_5_operand): Ditto.
3853         * config/i386/sse.md (UNSPEC_COMPRESS): New.
3854         (UNSPEC_COMPRESS_STORE): Ditto.
3855         (UNSPEC_EXPAND): Ditto.
3856         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
3857         (define_mode_attr ssescalarsize): Ditto.
3858         (avx512f_load<mode>_mask): Ditto.
3859         (avx512f_store<mode>_mask): Ditto.
3860         (avx512f_storedqu<mode>_mask): Ditto.
3861         (avx512f_vmcmp<mode>3_mask): Ditto.
3862         (avx512f_fmadd_<mode>_mask): Ditto.
3863         (avx512f_fmadd_<mode>_mask3): Ditto.
3864         (avx512f_fmsub_<mode>_mask): Ditto.
3865         (avx512f_fmsub_<mode>_mask3): Ditto.
3866         (avx512f_fnmadd_<mode>_mask): Ditto.
3867         (avx512f_fnmadd_<mode>_mask3): Ditto.
3868         (avx512f_fnmsub_<mode>_mask): Ditto.
3869         (avx512f_fnmsub_<mode>_mask3): Ditto.
3870         (avx512f_fmaddsub_<mode>_mask): Ditto.
3871         (avx512f_fmaddsub_<mode>_mask3): Ditto.
3872         (avx512f_fmsubadd_<mode>_mask): Ditto.
3873         (avx512f_fmsubadd_<mode>_mask3): Ditto.
3874         (vec_unpacku_float_lo_v16si): Ditto.
3875         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
3876         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
3877         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
3878         (vec_extract_lo_<mode>_maskm): Ditto.
3879         (vec_extract_hi_<mode>_maskm): Ditto.
3880         (avx512f_vternlog<mode>_mask): Ditto.
3881         (avx512f_shufps512_mask): Ditto.
3882         (avx512f_fixupimm<mode>_mask): Ditto.
3883         (avx512f_shufpd512_mask): Ditto.
3884         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
3885         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
3886         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
3887         (ashr<mode>3<mask_name>): Ditto.
3888         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
3889         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
3890         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
3891         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
3892         (avx512f_pshufdv3_mask): Ditto.
3893         (avx512f_perm<mode>_mask): Ditto.
3894         (avx512f_vpermi2var<mode>3_mask): Ditto.
3895         (avx512f_vpermt2var<mode>3_mask): Ditto.
3896         (avx512f_compress<mode>_mask): Ditto.
3897         (avx512f_compressstore<mode>_mask): Ditto.
3898         (avx512f_expand<mode>_mask): Ditto.
3899         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
3900         to support masking.
3901         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
3902         (<plusminus_insn><mode>3<mask_name>): Ditto.
3903         (*<plusminus_insn><mode>3<mask_name>): Ditto.
3904         (mul<mode>3<mask_name>): Ditto.
3905         (*mul<mode>3<mask_name>): Ditto.
3906         (<sse>_div<mode>3<mask_name>): Ditto.
3907         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
3908         (<sse>_sqrt<mode>2<mask_name>): Ditto.
3909         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
3910         (<code><mode>3<mask_name>/smaxmin): Ditto.
3911         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
3912         (*<code><mode>3<mask_name>/smaxmin): Ditto.
3913         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
3914         (ufloatv16siv16sf2<mask_name>): Ditto.
3915         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
3916         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
3917         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
3918         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
3919         (ufloatv8siv8df<mask_name>): Ditto.
3920         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
3921         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
3922         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
3923         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
3924         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
3925         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
3926         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
3927         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
3928         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
3929         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
3930         (vec_extract_lo_<mode><mask_name>): Ditto.
3931         (vec_extract_hi_<mode><mask_name>): Ditto.
3932         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
3933         (avx512f_movddup512<mask_name>): Ditto.
3934         (avx512f_unpcklpd512<mask_name>): Ditto.
3935         (*avx512f_unpcklpd512<mask_name>): Ditto.
3936         (*avx512f_vmscalef<mode>): Ditto.
3937         (avx512f_scalef<mode><mask_name>): Ditto.
3938         (avx512f_getexp<mode><mask_name>): Ditto.
3939         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
3940         (avx512f_rndscale<mode><mask_name>): Ditto.
3941         (avx512f_shufps512_1<mask_name>): Ditto.
3942         (avx512f_shufpd512_1<mask_name>): Ditto.
3943         (<plusminus_insn><mode>3<mask_name>): Ditto.
3944         (*<plusminus_insn><mode>3<mask_name>): Ditto.
3945         (vec_widen_umult_even_v16si<mask_name>): Ditto.
3946         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
3947         (vec_widen_smult_even_v16si<mask_name>): Ditto.
3948         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
3949         (mul<mode>3<mask_name>): Ditto.
3950         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
3951         (<shift_insn><mode>3<mask_name>): Ditto.
3952         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
3953         (avx512f_<rotate><mode><mask_name>): Ditto.
3954         (<code><mode>3<mask_name>/maxmin): Ditto.
3955         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
3956         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
3957         (*andnot<mode>3<mask_name>): Ditto.
3958         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
3959         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
3960         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
3961         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
3962         (vec_set_lo_<mode><mask_name>): Ditto.
3963         (vec_set_hi_<mode><mask_name>): Ditto.
3964         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
3965         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
3966         (avx512f_pshufd_1<mask_name>): Ditto.
3967         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
3968         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
3969         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
3970         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
3971         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
3972         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
3973         (avx512er_exp2<mode><mask_name>): Ditto.
3974         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
3975         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
3976         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
3977         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
3978         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
3979         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
3980         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
3981         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
3982         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
3983         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
3984         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
3985         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
3986         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
3987         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
3988         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
3989         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
3990         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
3991         (avx512f_getmant<mode><mask_name>): Ditto.
3992         (clz<mode>2<mask_name>): Ditto.
3993         (<mask_codefor>conflict<mode><mask_name>): Ditto.
3994         (*srcp14<mode>): Remove visibility.
3995         (*rsqrt14<mode>): Ditto.
3996         (*fma_fmsub_<mode>): Ditto.
3997         (*fma_fnmadd_<mode>): Ditto.
3998         (*avx512f_rndscale<mode>): Ditto.
3999         * config/i386/subst.md: New file.
4001 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
4003         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
4004         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
4005         (atomic_load_explicit, atomic_exchange_explicit)
4006         (atomic_compare_exchange_strong_explicit)
4007         (atomic_compare_exchange_weak_explicit): Use __auto_type to
4008         declare variable initialized with PTR argument.
4010 2013-11-12  Jeff Law  <law@redhat.com>
4012         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
4013         backedge_seen_p.  Set, use and pass it to children appropriately.
4014         (thread_through_normal_block): Similarly.
4015         (thread_across_edge): Similarly.
4017         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
4018         memory references as volatile.
4019         (insert_trap_and_remove_trailing_statements): Fix comment.
4021 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
4023         PR other/58712
4024         * ira-costs.c (record_operand_costs): Check operands number for
4025         the single set.
4027 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4029         PR target/59054
4030         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
4031         constraints that would allow DImode into the traditional Altivec
4032         registers, but cause undesirable code generation when loading 0 as
4033         a constant.
4034         (movdi_internal64): Likewise.
4035         (cmp<mode>_fpr): Do not use %x for CR register output.
4036         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
4037         -mallow-upper-sf debug switches are used.
4039 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
4041         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
4042         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
4043         Relocate prototypes from gimple.h.
4044         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
4045         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
4046         from gimple.h.
4047         * gimple.h: Move some prototypes to gimplify.h.
4048         (gimple_predicate, enum fallback, enum gimplify_status): Move to
4049         gimplify.h.
4050         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
4051         Relocate from gimpify.c.
4052         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
4053         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
4054         is_gimple_reg_rhs) Relocate from gimplify.c.
4055         * gimplify.c (mark_addressable): Move to gimple-expr.c.
4056         (gimple_seq_add_stmt_without_update): Move to gimple.c.
4057         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
4058         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
4059         is_gimple_reg_rhs): Move to gimple-expr.c.
4060         (should_carry_location_p): Move to gimple.c.
4061         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
4062         to gimple.h.
4063         (annotate_one_with_location, annotate_all_with_location_after,
4064         annotate_all_with_location): Move to gimple.c.
4065         (compare_case_labels, sort_case_labels,
4066         preprocess_case_label_vec_for_gimple): Move to gimple.c.
4067         (rhs_predicate_for): Make static.
4068         (gimplify_assign): Relocate from gimple.c.
4069         * gimple.c (gimplify_assign): Move to gimplify.c.
4070         (gimple_seq_add_stmt_without_update, should_carry_location_p,
4071         annotate_one_with_location, annotate_all_with_location_after,
4072         annotate_all_with_location, compare_case_labels, sort_case_labels,
4073         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
4074         * tree.h (unshare_expr, unshare_expr_without_location,
4075         mark_addressable): Move prototypes to gimplify.h.
4076         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
4077         tmp_var_id_num
4078         * asan.c: Include gimplify.h rather than gimple.h.
4079         * cfgloopmanip.c: Likewise.
4080         * cgraphunit.c: Likewise.
4081         * cilk-common.c: Likewise.
4082         * dwarf2out.c: Dont include gimple.h.
4083         * fold-const.c: Include gimplify.h rather than gimple.h.
4084         * function.c: Likewise.
4085         * gimple-fold.c: Likewise.
4086         * gimple-ssa-strength-reduction.c: Likewise.
4087         * graphite-clast-to-gimple.c: Likewise.
4088         * graphite-sese-to-poly.c: Likewise.
4089         * ipa-prop.c: Likewise.
4090         * ipa-split.c: Likewise.
4091         * ipa.c: Likewise.
4092         * langhooks.c: Dont include gimple.h.
4093         * loop-init.c: Include gimplify.h rather than gimple.h.
4094         * omp-low.c: Likewise.
4095         * sese.c: Likewise.
4096         * stor-layout.c: Likewise.
4097         * targhooks.c: Likewise.
4098         * trans-mem.c: Likewise.
4099         * tree-affine.c: Likewise.
4100         * tree-cfg.c: Likewise.
4101         * tree-cfgcleanup.c: Likewise.
4102         * tree-complex.c: Likewise.
4103         * tree-if-conv.c: Likewise.
4104         * tree-inline.c: Likewise.
4105         * tree-iterator.c: Likewise.
4106         * tree-loop-distribution.c: Likewise.
4107         * tree-nested.c: Likewise.
4108         * tree-parloops.c: Likewise.
4109         * tree-predcom.c: Likewise.
4110         * tree-profile.c: Likewise.
4111         * tree-scalar-evolution.c: Likewise.
4112         * tree-sra.c: Likewise.
4113         * tree-ssa-address.c: Likewise.
4114         * tree-ssa-ccp.c: Likewise.
4115         * tree-ssa-dce.c: Likewise.
4116         * tree-ssa-forwprop.c: Likewise.
4117         * tree-ssa-ifcombine.c: Likewise.
4118         * tree-ssa-loop-im.c: Likewise.
4119         * tree-ssa-loop-ivopts.c: Likewise.
4120         * tree-ssa-loop-manip.c: Likewise.
4121         * tree-ssa-loop-niter.c: Likewise.
4122         * tree-ssa-loop-prefetch.c: Likewise.
4123         * tree-ssa-loop-unswitch.c: Likewise.
4124         * tree-ssa-math-opts.c: Likewise.
4125         * tree-ssa-phiopt.c: Likewise.
4126         * tree-ssa-phiprop.c: Likewise.
4127         * tree-ssa-pre.c: Likewise.
4128         * tree-ssa-propagate.c: Likewise.
4129         * tree-ssa-reassoc.c: Likewise.
4130         * tree-ssa-sccvn.c: Likewise.
4131         * tree-ssa-strlen.c: Likewise.
4132         * tree-ssa.c: Likewise.
4133         * tree-switch-conversio: Likewise.n.c
4134         * tree-tailcall.c: Likewise.
4135         * tree-vect-data-refs.c: Likewise.
4136         * tree-vect-generic.c: Likewise.
4137         * tree-vect-loop-manip.c: Likewise.
4138         * tree-vect-loop.c: Likewise.
4139         * tree-vect-patterns.c: Likewise.
4140         * tree-vect-stmts.c: Likewise.
4141         * tsan.c: Likewise.
4142         * value-prof.c: Likewise.
4143         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
4144         * config/alpha/alpha.c: Likewise.
4145         * config/darwin.c: Likewise.
4146         * config/i386/i386.c: Likewise.
4147         * config/ia64/ia64.c: Likewise.
4148         * config/mep/mep.c: Likewise.
4149         * config/mips/mips.c: Likewise.
4150         * config/rs6000/rs6000.c: Likewise.
4151         * config/s390/s390.c: Likewise.
4152         * config/sh/sh.c: Likewise.
4153         * config/sparc/sparc.c: Likewise.
4154         * config/spu/spu.c: Likewise.
4155         * config/stormy16/stormy16.c: Likewise.
4156         * config/tilegx/tilegx.c: Likewise.
4157         * config/tilepro/tilepro.c: Likewise.
4158         * config/xtensa/xtensa.c: Likewise.
4160 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
4162         * tree.c (grow_tree_vec_stat): New function ...
4163         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
4164         and macro front-end.
4166 2013-11-12  Marek Polacek  <polacek@redhat.com>
4168         * final.c (update_alignments): Initialize label to NULL_RTX.
4170 2013-11-12  Jeff Law  <law@redhat.com>
4172         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
4173         (insert_trap_and_remove_trailing_statements): New argument OP which
4174         is the NULL pointer.  Emit the trap after the load/store through
4175         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
4176         when trivial to do so.
4177         (isolate_path): Corresponding changes.
4178         (gimple_ssa_isolate_erroneous_path): Likewise.
4180 2013-11-12  Teresa Johnson  <tejohnson@google.com>
4181             Jan Hubicka  <jh@suse.cz>
4183         * predict.c (drop_profile): New function.
4184         (handle_missing_profiles): Ditto.
4185         (counts_to_freqs): Don't overwrite estimated frequencies
4186         when function has no profile counts.
4187         * predict.h (handle_missing_profiles): Declare.
4188         * tree-inline.c (freqs_to_counts): New function.
4189         (copy_cfg_body): Invoke freqs_to_counts as needed.
4190         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
4192 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
4194         PR target/59088
4195         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
4196         Set for m_HASWELL.
4197         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
4199 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
4201         PR target/59084
4202         * config/i386/i386.c (ix86_option_override_internal): Check
4203         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
4204         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
4205         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
4206         MASK_AVX256_SPLIT_UNALIGNED_STORE.
4208         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
4209         Clear m_COREI7_AVX and update comments.
4210         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
4212 2013-11-12  Martin Jambor  <mjambor@suse.cz>
4214         PR rtl-optimization/10474
4215         * ira.c (interesting_dest_for_shprep): New function.
4216         (split_live_ranges_for_shrink_wrap): Likewise.
4217         (find_moveable_pseudos): Move calculation of dominance info,
4218         df_analysios and the final anlyses to...
4219         (ira): ...here, call split_live_ranges_for_shrink_wrap.
4221 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
4223         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
4224         Handle type conversion.
4226 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
4227             Jan Hubicka  <jh@suse.cz>
4229         * cgraph.c (dump_cgraph_node): Profile dump added.
4230         * cgraph.h (struct cgraph_node): New time profile variable added.
4231         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
4232         * gcov-io.h (gcov_type): New profiler type introduced.
4233         * ipa-profile.c (lto_output_node): Streaming for time profile added.
4234         (input_node): Time profiler is read from LTO stream.
4235         * predict.c (maybe_hot_count_p): Hot prediction changed.
4236         * profile.c (instrument_values): New case for time profiler added.
4237         (compute_value_histograms): Read of time profile.
4238         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
4239         * tree-profile.c (init_ic_make_global_vars): Time profiler
4240         function added.
4241         (gimple_init_edge_profiler): TP function instrumentation.
4242         (gimple_gen_time_profiler): New.
4243         * value-prof.c (gimple_add_histogram_value): Support for time profiler
4244         added.
4245         (dump_histogram_value): TP type added to dumps.
4246         (visit_hist): More sensitive check that takes TP into account.
4247         (gimple_find_values_to_profile): TP instrumentation.
4248         * value-prof.h (hist_type): New histogram type added.
4249         (struct histogram_value_t): Pointer to struct function added.
4250         * libgcc/Makefile.in: New GCOV merge function for TP added.
4251         * libgcov.c: function_counter variable introduced.
4252         (_gcov_merge_time_profile): New.
4253         (_gcov_time_profiler): New.
4255 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
4256             Jeff Law  <law@redhat.com>
4258         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
4259         ao_ref_init_from_ptr_and_size for builtins.
4261 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
4262             H.J. Lu  <hongjiu.lu@intel.com>
4264         PR target/58853
4265         * config/i386/x86-tune.def
4266         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
4267         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
4268         * config/i386/i386.h
4269         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
4270         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
4271         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
4272         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
4273         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
4274         misaligned_prologue_used.  Check that
4275         desired_aling <= epilogue_size_needed.
4277 2013-11-11  Cong Hou  <congh@google.com>
4279         PR tree-optimization/59050
4280         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
4282 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
4284         PR middle-end/59049
4285         * expmed.c (emit_store_flag): Fail for const-const comparison.
4287 2013-11-11  Tristan Gingold  <gingold@adacore.com>
4288             Eric Botcazou  <ebotcazou@adacore.com>
4290         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
4291         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
4292         * tree.def (CONSTRUCTOR): Likewise.
4293         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
4294         * gimplify.c (gimplify_init_constructor): Do not clear the object when
4295         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
4297 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
4299         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
4300         diagnostic_finish.
4302 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4304         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
4305         comparisons.
4307 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
4309         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
4311 2013-11-08  Jeff Law  <law@redhat.com>
4313         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
4314         threading paths first, then perform PHI node checks if applicable.
4316 2013-11-10  Karlson2k  <k2k@narod.ru>
4317             Kai Tietz  <ktietz@redhat.com>
4319         PR plugin/52872
4320         * configure.ac: Adding for exported symbols check
4321         and for rdynamic-check executable-extension.
4322         * configure: Regenerated.
4324 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
4326         * mode-switching.c (optimize_mode_switching): Mark block as
4327         nontransparent, if last_mode at block exit is different from no_mode.
4329 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4331         * function.c (NAME__MAIN): Move to...
4332         * cfgexpand.c (NAME__MAIN): ...here.
4334 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
4336         * target.def (can_use_doloop_p): New hook.
4337         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
4338         * doc/tm.texi: Regenerate.
4339         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
4340         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
4341         * hooks.c (hook_bool_dint_dint_uint_true): New function.
4342         * targhooks.h (can_use_doloop_if_innermost): Declare.
4343         * targhooks.c (can_use_doloop_if_innermost): New function.
4344         * target.h: Include double-int.h.
4345         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
4346         Remove iteration count, maximum iteration count, loop depth and
4347         enter-at-top inputs from doloop_begin and doloop_end.
4348         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
4349         interface.
4350         * config/arc/arc.c (arc_can_use_doloop_p): New function.
4351         (TARGET_CAN_USE_DOLOOP_P): Define.
4352         * config/arm/thumb2.md (doloop_end): Update for new interface.
4353         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
4354         * config/bfin/bfin.md (doloop_end): Update for new interface.
4355         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
4356         (TARGET_CAN_USE_DOLOOP_P): Define.
4357         * config/c6x/c6x.md (doloop_end): Update for new interface.
4358         * config/ia64/ia64.md (doloop_end): Update for new interface.
4359         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
4360         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
4361         interface.
4362         * config/mep/mep.c (mep_emit_doloop): Likewise.
4363         (TARGET_CAN_USE_DOLOOP_P): Define.
4364         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
4365         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
4366         * config/s390/s390.md (doloop_end): Update for new interface.
4367         * config/sh/sh.md (doloop_end): Likewise.
4368         * config/spu/spu.md (doloop_end): Likewise.
4369         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
4370         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
4371         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
4372         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
4373         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
4374         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
4375         interface.
4376         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
4378 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
4380         PR other/59055
4381         * doc/extend.texi: Move Cilk Plus Builtins node before Other
4382         Builtins node.
4384 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
4385             Joseph Myers  <joseph@codesourcery.com>
4387         * ginclude/stdatomic.h: New file.
4388         * Makefile.in (USER_H): Add stdatomic.h.
4390 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4392         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
4393         comparisons.
4395 2013-11-08  Jeff Law  <law@redhat.com>
4397         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
4398         * tree-ssa-threadupdate.c (delete_thread_path): New function.
4399         (ssa_redirect_edges, thread_block_1): Use it.
4400         (thread_through_loop_header, mark_threaded_blocks): Likewise.
4401         (thread_through_all_blocks, register_jump_thread): Likewise.
4402         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
4404 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
4406         * config/arm/aarch-common.c
4407         (search_term): New typedef.
4408         (shift_rtx_costs): New array.
4409         (arm_rtx_shift_left_p): New.
4410         (arm_find_sub_rtx_with_search_term): Likewise.
4411         (arm_find_sub_rtx_with_code): Likewise.
4412         (arm_early_load_addr_dep): Add sanity checking.
4413         (arm_no_early_alu_shift_dep): Likewise.
4414         (arm_no_early_alu_shift_value_dep): Likewise.
4415         (arm_no_early_mul_dep): Likewise.
4416         (arm_no_early_store_addr_dep): Likewise.
4418 2013-11-08  Richard Biener  <rguenther@suse.de>
4420         PR tree-optimization/59047
4421         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
4423 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
4425         * common.opt (fcheck-pointer-bounds): Move to ...
4426         * c-family/c.opt: ... here.
4427         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
4428         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
4429         * langhooks.h (lang_hooks): Remove chkp_supported field.
4430         * toplev.c (process_options): Remove chkp_supported check.
4432 2013-11-08  Richard Biener  <rguenther@suse.de>
4434         PR tree-optimization/59038
4435         PR tree-optimization/58955
4436         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
4437         previous change.  Handle known dependences correctly.
4439 2013-11-08  Tom de Vries  <tom@codesourcery.com>
4441         * config/rs6000/t-xilinx: Remove duplicate contents.
4443 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
4444             Joseph Myers  <joseph@codesourcery.com>
4446         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
4447         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
4448         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
4449         (struct tree_base): Add atomic_flag field.
4450         * tree.h (TYPE_ATOMIC): New accessor macro.
4451         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
4452         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
4453         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
4454         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
4455         * tree.c (set_type_quals): Set TYPE_ATOMIC.
4456         (find_atomic_core_type): New function.
4457         (build_qualified_type): Adjust alignment for qualified types.
4458         (build_atomic_base): New function
4459         (build_common_tree_nodes): Build atomicQI_type_node,
4460         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
4461         atomicTI_type_node.
4462         * print-tree.c (print_node): Print atomic qualifier.
4463         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
4464         * target.def (atomic_assign_expand_fenv): New hook.
4465         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
4466         * doc/tm.texi: Regenerate.
4467         * targhooks.c (default_atomic_assign_expand_fenv): New function.
4468         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
4469         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
4470         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
4471         function type.
4472         * config/i386/i386.c (enum ix86_builtins): Add
4473         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
4474         IX86_BUILTIN_FNCLEX.
4475         (bdesc_special_args): Add __builtin_ia32_fnstenv,
4476         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
4477         (ix86_expand_builtin): Handle the new built-in functions.
4478         (ix86_atomic_assign_expand_fenv): New function.
4479         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
4480         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
4481         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
4482         (fnstenv, fldenv, fnstsw, fnclex): New insns.
4484 2013-11-07  Steve Ellcey  <sellcey@mips.com>
4486         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
4487         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
4488         (MULTILIB_DIRNAMES): Add fp64 directory.
4489         (MULTILIB_EXCEPTIONS): Add new exclusions.
4491 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
4493         * gimplify.c (gimple_regimplify_operands): Do not set
4494         SSA_NAME_DEF_STMT.
4495         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
4496         (rewrite_close_phi_out_of_ssa): Same.
4497         (rewrite_phi_out_of_ssa): Same.
4498         (rewrite_degenerate_phi): Same.
4499         (handle_scalar_deps_crossing_scop_limits): Same.
4500         * tree-if-conv.c (predicate_scalar_phi): Same.
4501         * tree-parloops.c (create_loads_for_reductions): Same.
4502         (create_final_loads_for_reduction): Same.
4503         (create_loads_and_stores_for_name): Same.
4504         (transform_to_exit_first_loop): Same.
4505         (create_parallel_loop): Same.
4506         * tree-ssa-loop-im.c
4507         (move_computations_dom_walker::before_dom_children): Same.
4508         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
4509         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
4510         * tree-ssa-propagate.c (substitute_and_fold): Same.
4511         * tree-vect-loop.c (vect_finalize_reduction): Same.
4512         * tree-vect-stmts.c (vectorizable_call): Same.
4514 2013-11-07  Mike Stump  <mikestump@comcast.net>
4516         * config/pdp11/pdp11.c: Include dbxout.h.
4517         * config/picochip/picochip.c: Likewise.
4519 2013-11-07  Cong Hou  <congh@google.com>
4521         PR tree-optimization/56764
4522         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4523         Combine alias checks if it is possible to amortize the runtime
4524         overhead.  Return the number of alias checks after merging.
4525         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4526         Use the function vect_create_cond_for_alias_checks () to check
4527         the number of alias checks.
4529 2013-11-07  Jeff Law  <law@redhat.com>
4531         * varpool.c (ctor_for_folding): Fix typo in comment.
4533 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
4535         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
4536         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
4538 2013-11-07  Jeff Law  <law@redhat.com>
4540         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
4542         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
4543         No longer check if we have __builtin_trap, assume it's available.
4545 2013-11-07  Diego Novillo  <dnovillo@google.com>
4547         * attribs.c (lookup_scoped_attribute_spec): Make static.
4548         (get_attribute_namespace): Likewise.
4549         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
4550         (validate_arglist): Move earlier in the file. Make static.
4551         (expand_stack_restore): Move from stmt.c
4552         (expand_stack_save): Move from stmt.c
4553         (rewrite_call_expr_array): Move earlier in the file.
4554         (rewrite_call_expr_valist): Likewise.
4555         * cfgexpand.c: Include hard-reg-set.h before tree.h
4556         Include recog.h.
4557         Include output.h.
4558         (expand_asm_loc): Move from stmt.c.
4559         (n_occurrences): Move from stmt.c.
4560         (check_operand_nalternatives): Move from stmt.c.
4561         (tree_conflicts_with_clobbers_p): Move from stmt.c.
4562         (expand_asm_operands): Move from stmt.c
4563         (expand_asm_stmt): Move from stmt.c
4564         (expand_computed_goto): Move from stmt.c
4565         (expand_goto): Move from stmt.c
4566         (expand_null_return_1): Move from stmt.c
4567         (expand_null_return): Move from stmt.c
4568         (expand_value_return): Move from stmt.c
4569         (expand_return): Move from stmt.c
4570         (expand_main_function): Move from function.c
4571         (stack_protect_prologue): Move from function.c
4572         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
4573         (build_function_decl_skip_args): Move from tree.c.
4574         * explow.c (tree_expr_size): Move from tree.c.
4575         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
4576         (fields_length): Move from tree.c.
4577         * fold-const.c (size_low_cst): Move from tree.c.
4578         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
4579         (tree_expr_nonzero_p): Make static. Move earlier in the file.
4580         (fold_build3_initializer_loc): Remove.
4581         (tree_invalid_nonnegative_warnv_p): Make static.
4582         * function.c (expand_main_function): Move to cfgexpand.c.
4583         (stack_protect_prologue): Move to cfgexpand.c.
4584         (set_insn_locations): Move earlier in the file.
4585         * gimple-fold.c: Include langhooks.h.
4586         (truth_type_for): Move from tree.c.
4587         * print-tree.c (print_vec_tree): Remove.
4588         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
4589         (expand_goto): Move to cfgexpand.c.
4590         (n_occurrences): Move to cfgexpand.c.
4591         (expand_asm_loc): Move to cfgexpand.c
4592         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
4593         (expand_asm_operands): Move to cfgexpand.c.
4594         (expand_asm_stmt): Move to cfgexpand.c.
4595         (check_operand_nalternatives): Move to cfgexpand.c
4596         (expand_null_return): Move to cfgexpand.c.
4597         (expand_value_return): Move to cfgexpand.c.
4598         (expand_null_return_1): Move to cfgexpand.c.
4599         (expand_return): Move to cfgexpand.c.
4600         (expand_stack_save): Move to builtins.c.
4601         (expand_stack_restore): Move to builtins.c
4602         * symtab.c: Include output.h.
4603         (decl_assembler_name_hash): Move from tree.c.
4604         (decl_assembler_name_equal): Move from tree.c.
4605         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
4606         * tree-eh.c (in_array_bounds_p): Move from tree.c.
4607         (range_in_array_bounds_p): Move from tree.c.
4608         * tree-object-size.c (fini_object_sizes): Make static.
4609         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
4610         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
4611         * tree.c (decl_assembler_name_equal): Move to symtab.c.
4612         (tree_expr_size): Move to explow.c.
4613         (decl_assembler_name_hash): Move to symtab.c.
4614         (real_twop): Remove.
4615         (tree_expr_size): Move to explow.c.
4616         (stabilize_reference_1): Move earlier in the file. Make static.
4617         (omp_remove_redundant_declare_simd_attrs): Remove.
4618         (simple_cst_list_equal): Move earlier in the file. Make static.
4619         (size_low_cst): Move to fold-const.c.
4620         (build_type_no_quals): Remove.
4621         (build_function_type_skip_args): Move to cgraphclones.c.
4622         (build_function_decl_skip_args): Move to cgraphclones.c.
4623         (in_array_bounds_p): Move to tree-eh.c.
4624         (range_in_array_bounds_p): Move to tree-eh.c.
4625         (truth_type_for): Move to gimple-fold.c.
4626         (list_equal_p): Remove.
4627         * tree.h (decl_assembler_name_equal): Remove.
4628         (decl_assembler_name_hash): Remove.
4629         (truth_type_for): Remove.
4630         (build_type_no_quals): Remove.
4631         (build_function_decl_skip_args): Remove.
4632         (in_array_bounds_p): Remove.
4633         (range_in_array_bounds_p): Remove.
4634         (size_low_cst): Remove.
4635         (omp_remove_redundant_declare_simd_attrs): Remove.
4636         (tree_expr_size): Remove.
4637         (fields_length): Remove.
4638         (stabilize_reference_1): Remove.
4639         (expand_goto): Remove.
4640         (expand_stack_save): Remove.
4641         (expand_stack_restore): Remove.
4642         (expand_return): Remove.
4643         (fold_build3_initializer_loc): Remove.
4644         (tree_expr_nonzero_p): Remove.
4645         (tree_invalid_nonnegative_warnv_p): Remove.
4646         (tree_expr_nonzero_warnv_p): Remove.
4647         (fold_builtin_snprintf_chk): Remove.
4648         (validate_arglist): Remove.
4649         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
4650         (simple_cst_list_equal): Remove.
4651         (real_twop): Remove.
4652         (expand_main_function): Remove.
4653         (stack_protect_prologue): Remove.
4654         (print_vec_tree): Remove.
4655         (lookup_scoped_attribute_spec): Remove.
4656         (get_attribute_namespace): Remove.
4657         (expand_computed_goto): Remove.
4658         (expand_asm_stmt): Remove.
4659         (list_equal_p): Remove.
4660         (ssa_name_nonnegative_p): Remove.
4661         (fini_object_sizes): Remove.
4662         (addr_expr_of_non_mem_decl_p): Remove.
4663         (is_tm_safe_or_pure): Move to trans-mem.c.
4664         (more_const_call_expr_args_p): Remove.
4665         (save_vtable_map_decl): Remove.
4667 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
4669         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
4670         linker plugins, too.
4672         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
4673         link to libgomp and its dependencies.
4674         * config/ia64/hpux.h (LIB_SPEC): Likewise.
4675         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4676         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4677         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
4679 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
4681         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
4682         (determine_value_range): Add loop argument.  Use get_range_info to
4683         improve range.
4684         (bound_difference): Adjust caller.
4686 2013-11-07  Richard Biener  <rguenther@suse.de>
4687             Jakub Jelinek  <jakub@redhat.com>
4689         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
4690         latches from header PHI arguments from the latch edge.
4692 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
4694         PR c++/58176
4695         * varasm.c (output_constant): Handle NULLPTR_TYPE.
4697 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4699         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
4700         misaligned_prologue_used when it has been set.
4702 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
4703             Jakub Jelinek  <jakub@redhat.com>
4705         PR sanitizer/59029
4706         * asan.c (get_mem_refs_of_builtin_call): Allow
4707         integer literals as addresses in instrumented builtins.
4709 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4711         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4712         Explain why plus_constant is not used.
4714 2013-11-07  Richard Biener  <rguenther@suse.de>
4716         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
4717         (canonicalize_value): ... this.  Also handle stripping of
4718         TREE_OVERFLOW.
4719         (get_value, set_lattice_value, get_value_for_expr): Adjust.
4720         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
4721         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
4723 2013-11-07  Richard Biener  <rguenther@suse.de>
4725         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
4727 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4729         PR target/59034
4730         * config/i386/i386.md (push peepholer/splitter): Use Pmode
4731         with stack_pointer_rtx.
4733 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
4735         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
4736         using operand_equal_p.
4738 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
4740         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
4741         * tree-affine.c (get_inner_reference_aff): Return base.
4742         * tree-affine.h (get_inner_reference_aff): Change prototype.
4744 2013-11-06  Tobias Burnus  <burnus@net-b.de>
4746         * doc/invoke.texi (Wdate-time): Fix typo.
4748 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
4750         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
4751         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
4752         fp_arith_reg_operand instead of arith_reg_operand.
4754 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
4756         * config/sh/sh.md (adddi3): Remove empty constraints.
4757         Remove can_create_pseudo_p and arith_reg_operand check.
4758         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
4759         Split before reload.
4761 2013-11-06  Jeff Law  <law@redhat.com>
4762             Tom Tromey  <tromey@redhat.com>
4764         * gdbinit.in: Disable strict type checking.
4766 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
4768         * tree-pass.h (make_pass_live_range_shrinkage): New external.
4769         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
4770         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
4771         (rest_of_handle_live_range_shrinkage): Ditto
4772         (class pass_live_range_shrinkage): Ditto.
4773         (pass_data_live_range_shrinkage): Ditto.
4774         (make_pass_live_range_shrinkage): Ditto.
4775         * sched-int.h (initialize_live_range_shrinkage): New prototype.
4776         (finish_live_range_shrinkage): Ditto.
4777         * sched-deps.c (create_insn_reg_set): Make void return value.
4778         * passes.def: Add pass_live_range_shrinkage.
4779         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
4780         * haifa-sched.c (live_range_shrinkage_p): New.
4781         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
4782         New functions.
4783         (rank_for_schedule): Add code for pressure relief through live
4784         range shrinkage.
4785         (schedule_insn): Print more debug info.
4786         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
4787         through live range shrinkage.
4788         * doc/invoke.texi (-flive-range-shrinkage): New.
4789         * common.opt (flive-range-shrinkage): New.
4791 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
4793         PR target/59021
4794         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
4795         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
4796         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
4797         RTXes that return in AVX256 register.
4799 2013-11-06  Richard Biener  <rguenther@suse.de>
4801         PR tree-optimization/58653
4802         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
4803         (prepare_initializers_chain): Adjust.
4805 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
4807         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
4808         (gimple_in_transaction): Use bb_in_transaction.
4809         * basic-block.h (bb_in_transaction): Relocate here and rename.
4810         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
4812 2013-11-06  Richard Biener  <rguenther@suse.de>
4814         * tree.c (drop_tree_overflow): New function.
4815         * tree.h (drop_tree_overflow): Declare.
4816         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
4817         * tree-vrp.c (range_int_cst_singleton_p): Use
4818         is_overflow_infinity instead of testing TREE_OVERFLOW.
4819         (extract_range_from_assert): Likewise.
4820         (zero_nonzero_bits_from_vr): Likewise.
4821         (extract_range_basic): Likewise.
4822         (register_new_assert_for): Use drop_tree_overflow.
4823         (vrp_visit_phi_node): Likewise.
4825 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
4827         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
4828         checking for leaf functions without dynamic stack allocation.
4829         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
4830         (ia64_expand_prologue): Likewise.
4831         * config/mips/mips.c (mips_expand_prologue): Likewise.
4832         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4833         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4834         (sparc_flat_expand_prologue): Likewise.
4836 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
4838         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
4839         (__ST3_LANE_FUNC): Likewise.
4840         (__ST4_LANE_FUNC): Likewise.
4842 2013-11-06  Nick Clifton  <nickc@redhat.com>
4844         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
4845         name returned by msp430_mcu_name.
4846         (LIB_SPEC): If a -T option has not been specified then set a
4847         default, mcu-specific, linker script.
4848         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
4849         * config/msp430/msp430.c (msp430x_names): Likewise.
4850         Alpha sort the names for ease of comparison.
4851         (msp430_mcu_name): New function:  Returns a string suitable for
4852         use as a C preprocessor symbol based upon the name of the MCU
4853         being targeted.
4854         (msp430_option_override): Accept msp430x and msp430xv2 as generic
4855         mcu names.
4856         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
4858         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
4859         unless it is the last part of a spec substring.
4860         * doc/invoke.texi (Spec Files): Document space insertion
4861         behaviour of %*.
4863 2013-11-06  Christian Bruel  <christian.bruel@st.com>
4865         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
4866         Factorize probabilities, Use adjust_address instead of
4867         adjust_automodify_address when possible. Enable for optimize.
4868         (sh_expand_strlen): New function.
4869         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
4870         * config/sh/sh.md (strlensi): New pattern.
4871         (UNSPEC_BUILTIN_STRLEN): Define.
4873 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
4875         PR middle-end/58970
4876         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
4877         (expand_assignment): If *bitpos is negative, set *offset
4878         and adjust *bitpos, so that it is not negative.
4880 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4882         * config/i386/bdver3.md : Added two additional decoder units
4883         to support issue rate of 4 and remodeled vector unit.
4884         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
4885         architectures is set to 4.
4886         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
4887         lookahead is set to 4 for BD architectures.
4889 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4891         * config/rs6000/rs6000.c (rs6000_option_override_internal):
4892         Remove restriction against use of VSX instructions when generating
4893         code for little endian mode.
4895 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4897         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
4898         for both big and little endian.
4899         (mulv8hi3): Swap input operands for merge high and merge low
4900         instructions for little endian.
4902 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4904         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
4905         define_insn to define_expand that uses even patterns for big
4906         endian and odd patterns for little endian.
4907         (vec_widen_smult_even_v16qi): Likewise.
4908         (vec_widen_umult_even_v8hi): Likewise.
4909         (vec_widen_smult_even_v8hi): Likewise.
4910         (vec_widen_umult_odd_v16qi): Likewise.
4911         (vec_widen_smult_odd_v16qi): Likewise.
4912         (vec_widen_umult_odd_v8hi): Likewise.
4913         (vec_widen_smult_odd_v8hi): Likewise.
4914         (altivec_vmuleub): New define_insn.
4915         (altivec_vmuloub): Likewise.
4916         (altivec_vmulesb): Likewise.
4917         (altivec_vmulosb): Likewise.
4918         (altivec_vmuleuh): Likewise.
4919         (altivec_vmulouh): Likewise.
4920         (altivec_vmulesh): Likewise.
4921         (altivec_vmulosh): Likewise.
4923 2013-11-05  Mike Stump  <mikestump@comcast.net>
4925         * Makefile.in (mostlyclean): Remove c-family objects.
4927 2013-11-05  Ian Lance Taylor  <iant@google.com>
4929         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
4930         If possible, add .cfi directives to record change to bx.
4931         * config/i386/i386.c (ix86_emit_cfi): New function.
4932         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
4934 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
4936         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
4937         immediately after a label for a tablejump pattern.
4939         * config/arm/arm.c (is_jump_table): Remove.
4940         (create_fix_barrier): Use tablejump_p instead.
4941         (arm_reorg): Likewise.
4942         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
4943         (thumb2_output_casesi): Likewise.
4944         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
4945         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
4946         casesi_shift_media, casesi_load_media): Likewise.
4947         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
4948         * config/microblaze/microblaze.md: Likewise.
4950 2013-11-05  Tobias Burnus  <burnus@net-b.de>
4952         * doc/invoke.texi (-Wdate-time): Document.
4954 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
4956         * double-int.c (lshift_double, rshift_double): Remove
4957         SHIFT_COUNT_TRUNCATED handling.
4959 2013-11-05  Jeff Law  <law@redhat.com>
4961         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
4962         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
4963         * gimple-ssa-isolate-paths.c: New file.
4964         * gimple.c (check_loadstore): New function.
4965         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
4966         Verify OP is in the argument list and the argument corresponding
4967         to OP is a pointer type.  Use operand_equal_p rather than
4968         pointer equality when testing if OP is on the nonnull list.
4969         Use check_loadstore rather than count_ptr_derefs.  Handle
4970         GIMPLE_RETURN statements.
4971         * tree-vrp.c (infer_nonnull_range): Remove.
4972         * gimple.h (infer_nonnull_range): Declare.
4973         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
4974         * passes.def: Add pass_isolate_erroneous_paths.
4975         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
4976         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
4977         * tree-ssa.c (struct count_ptr_d): Remove.
4978         (count_ptr_derefs, count_uses_and_derefs): Remove.
4979         * tree-ssa.h (count_uses_and_derefs): Remove.
4981 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
4983         PR rtl-optimization/58997
4984         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
4985         get_iv_value to be in iv->mode rather than iv->extend_mode.
4986         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
4987         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
4988         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
4989         mode.
4991 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
4993         * gimple.h: Move some prototypes to gimple-expr.h and add to include
4994         list.
4995         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
4996         Move to gimple-expr.h.
4997         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
4998         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
4999         is_gimple_id, virtual_operand_p, is_gimple_addressable,
5000         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
5001         Relocate here.
5002         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
5003         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
5004         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
5005         is_gimple_address, is_gimple_invariant_address,
5006         is_gimple_ip_invariant_address, is_gimple_min_invariant,
5007         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
5008         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
5009         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
5010         gimple_decl_printable_name, useless_type_conversion_p,
5011         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
5012         gimple-expr.[ch].
5013         * gimple-expr.c: New File.
5014         (useless_type_conversion_p, gimple_set_body, gimple_body,
5015         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
5016         gimple_can_coalesce_p, extract_ops_from_tree_1,
5017         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
5018         is_gimple_address, is_gimple_invariant_address,
5019         is_gimple_ip_invariant_address, is_gimple_min_invariant,
5020         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
5021         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
5022         is_gimple_mem_ref_addr): Relocate here.
5023         * Makefile.in (OBJS): Add gimple-expr.o.
5025 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
5027         * gengtype-parse.c (struct_field_seq): Support empty structs.
5029 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
5031         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
5033 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
5035         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
5036         for !TARGET_80387.
5037         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
5038         _SOFT_FLOAT here.
5039         (LONG_DOUBLE_TYPE_SIZE): New define.
5040         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
5042 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
5044         PR c++/58724
5045         * doc/extend.texi [visibility ("visibility_type")]: Add example
5046         about visibility attribute on namespace declaration.
5048 2013-11-05  Richard Biener  <rguenther@suse.de>
5050         PR ipa/58492
5051         * passes.def (all_passes): Start with pass_fixup_cfg again.
5053 2013-11-05  Richard Biener  <rguenther@suse.de>
5055         PR tree-optimization/58955
5056         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
5057         edge direction.
5059 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5061         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
5062         little endian.
5063         (vec_pack_ufix_trunc_v2df): Likewise.
5065 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
5067         PR middle-end/58981
5068         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
5069         pattern, instead of word_mode.
5071         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
5072         Pmode for size.
5073         (set_storage_via_setmem): Likewise.
5075 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
5077         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
5078         gimple.h and the rest of the condition in eliminate_build.
5079         (eliminate_build): Call new routine.
5080         * gimple.h (phi_ssa_name_p): Delete.
5082 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
5084         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
5085         case of no prefix and reserving zero slots, because when that's the
5086         case we'll never get here.
5087         * vec.h (va_heap::reserve): Don't try and handle
5088         vec_prefix::calculate_allocation returning zero because that should
5089         never happen.
5091 2013-11-05  Richard Biener  <rguenther@suse.de>
5093         PR middle-end/58941
5094         * tree-dfa.c (get_ref_base_and_extent): Merge common code
5095         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
5096         process trailing array detection before diving into the
5097         view-converted object (and possibly apply some extra offset).
5099 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
5101         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
5102         New function.
5103         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
5105 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
5107         PR tree-optimization/58958
5108         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
5109         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
5111 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
5113         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
5114         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
5116 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
5118         PR tree-optimization/58984
5119         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
5120         set *SIZE_P if non-NULL on success.
5121         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
5122         callers.
5123         (ipcp_transform_function): Likewise.  Punt if size of access
5124         is different from TYPE_SIZE on v->value's type.
5126 2013-11-05  Tobias Burnus  <burnus@net-b.de>
5128         * doc/invoke.texi (-fopenmp-simd): Document new option.
5129         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
5130         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
5131         * tree.c (attribute_value_equal): Ditto.
5133 2013-11-04  Wei Mi  <wmi@google.com>
5135         * sched-rgn.c (add_branch_dependences): Keep insns in
5136         a SCHED_GROUP at the end of BB to remain their location.
5138 2013-11-04  Wei Mi  <wmi@google.com>
5140         * config/i386/i386.c (memory_address_length): Extract a part
5141         of code to rip_relative_addr_p.
5142         (rip_relative_addr_p): New Function.
5143         (ix86_macro_fusion_p): Ditto.
5144         (ix86_macro_fusion_pair_p): Ditto.
5145         * config/i386/i386.h: Add new tune features about macro-fusion.
5146         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5147         * doc/tm.texi: Generated.
5148         * doc/tm.texi.in: Ditto.
5149         * haifa-sched.c (try_group_insn): New Function.
5150         (group_insns_for_macro_fusion): Ditto.
5151         (sched_init): Call group_insns_for_macro_fusion.
5152         * target.def: Add two hooks: macro_fusion_p and
5153         macro_fusion_pair_p.
5155 2013-11-04  Kostya Serebryany  <kcc@google.com>
5157         Update to match the changed asan API.
5158         * asan.c (asan_function_start): New function.
5159         (asan_emit_stack_protection): Update the string stored in the
5160         stack red zone to match new API.  Store the PC of the current
5161         function in the red zone.
5162         (asan_global_struct): Update the __asan_global definition to match
5163         the new API.
5164         (asan_add_global): Ditto.
5165         * asan.h (asan_function_start): New prototype.
5166         * final.c (final_start_function): Call asan_function_start.
5167         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
5168         to __asan_init_v3.
5170 2013-11-04  Wei Mi  <wmi@google.com>
5172         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
5173         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
5174         * config/i386/i386.c (ix86_option_override_internal): Ditto.
5175         (ix86_issue_rate): Ditto.
5176         (ix86_adjust_cost): Ditto.
5177         (ia32_multipass_dfa_lookahead): Ditto.
5178         (ix86_sched_init_global): Ditto.
5179         (get_builtin_code_for_version): Ditto.
5180         * config/i386/i386.h (enum target_cpu_default): Ditto.
5181         (enum processor_type): Ditto.
5182         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5184 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
5186         PR rtl-optimization/58967
5187         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
5188         !lra_in_progress for mode sizes bigger word.
5190 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5192         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
5193         arguments to merge instruction for little endian.
5194         (vec_widen_umult_lo_v16qi): Likewise.
5195         (vec_widen_smult_hi_v16qi): Likewise.
5196         (vec_widen_smult_lo_v16qi): Likewise.
5197         (vec_widen_umult_hi_v8hi): Likewise.
5198         (vec_widen_umult_lo_v8hi): Likewise.
5199         (vec_widen_smult_hi_v8hi): Likewise.
5200         (vec_widen_smult_lo_v8hi): Likewise.
5202 2013-11-04  Ian Lance Taylor  <iant@google.com>
5204         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
5205         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
5206         builtins that take pointers.
5207         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
5208         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
5209         (run_gcc): Pass -fnon-call-exceptions.
5211 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
5213         * optabs.c (expand_vec_perm): Revert one incorrect line from
5214         2013-10-31 change.
5216         PR tree-optimization/58978
5217         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
5218         use_stmt by single_imm_use directly.  Only call single_imm_use
5219         on SSA_NAMEs.
5221 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
5223         PR rtl-optimization/58968
5224         * lra-spills.c (return_regno_p): New function.
5225         (lra_final_code_change): Use it.
5227 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
5229         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
5230         * target.def (float_exceptions_rounding_supported_p): New hook.
5231         * targhooks.c (default_float_exceptions_rounding_supported_p): New
5232         function.
5233         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
5234         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
5235         New @hook.
5236         * doc/tm.texi: Regenerate.
5237         * config.gcc (powerpc*-*-linux*): Set extra_objs.
5238         * config/rs6000/rs6000-linux.c: New file.
5239         * config/rs6000/rs6000-protos.h
5240         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
5241         * config/rs6000/linux.h
5242         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
5243         * config/rs6000/linux64.h
5244         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
5245         * config/rs6000/t-linux (rs6000-linux.o): New rule.
5246         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
5248 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5250         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
5251         Replace the define_insn_and_split with a define_insn and two
5252         define_splits, with the split after reload re-permuting the source
5253         register to its original value.
5254         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
5255         (*vsx_le_perm_store_v8hi): Likewise.
5256         (*vsx_le_perm_store_v16qi): Likewise.
5258 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5260         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
5261         little endian.
5263 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
5265         PR tree-optimization/58946
5266         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
5267         bbs with bbinfo[idx].op != NULL before all blocks with
5268         bbinfo[idx].op == NULL.
5270 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
5272         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
5273         (avr_dump_double_int_hex): Likewise.
5274         (avr_log_vadump): Remove %D and %X handling.
5275         * config/avr/avr.c (avr_double_int_push_digit): Delete.
5276         (avr_map_op_t): Change map from double_int to unsigned int.
5277         (avr_map_op): Update accordingly.
5278         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
5279         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
5280         unsigned ints rather than double_ints.
5282 2013-11-03  Marek Polacek  <polacek@redhat.com>
5284         Implement -fsanitize=vla-bound.
5285         * opts.c (common_handle_option): Handle vla-bound.
5286         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
5287         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
5288         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
5290 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
5292         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
5293         little endian.
5295 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
5297         * config/i386/constraints.md (Ts, Tv): New address constrains.
5298         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
5299         constraint for address_no_seg_operand.
5300         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
5301         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
5302         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
5303         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
5304         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
5305         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
5306         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
5307         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
5308         constraint for vsib_address_operand.
5310 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
5312         * gcse.c (pre_delete): Remove references to regmove from comments.
5313         * recog.c: (validate_replace_rtx_1): Likewise.
5314         * config/rl78/rl78.c: Likewise.
5315         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
5316         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
5317         * common/config/mmix/mmix-common.c: Likewise.
5319 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
5321         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
5322         * gimplify.c (gimplify_compound_lval): Likewise.
5323         * graphite-clast-to-gimple.c (gloog): Likewise.
5324         * graphite-dependences.c (loop_is_parallel_p): Likewise.
5325         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
5326         (limit_scop); Likewise.
5327         (build_scops): Likewise.
5328         (dot_scop): Likewise.
5329         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
5330         (build_scop_drs): Likewise.
5331         (insert_stmts): Likewise.
5332         (insert_out_of_ssa_copy): Likewise.
5333         (remove_phi): Likewise.
5334         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
5335         * hw-doloop.c (discover_loop): Likewise.
5336         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
5337         * tree-dfa.c (dump_enumerated_decls): Likewise.
5338         * tree-if-conv.c (if_convertable_loop_p): Likewise.
5339         * tree-inline.c (tree_function_versioning): Likewise.
5340         * tree-loop-distribution.c (build_rdg): Likewise.
5341         (rdg_flag_vertex_and_dependent): Likewise.
5342         (distribute_loop): Likewise.
5343         * tree-parloops.c (loop_parallel_p): Likewise.
5344         (eliminate_local_variables): Likewise.
5345         (separate_decls_in_region): Likewise.
5346         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
5347         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
5348         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
5349         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
5350         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
5351         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
5352         (vectorizable_condition): Likewise.
5354 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
5356         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
5357         * configure: Regenerate.
5358         * config/i386/i386.md (*movdi_internal): Change
5359         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
5360         (*movdf_internal): Ditto.
5361         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
5362         * config/i386/sse.md (vec_concatv2di): Output interunit movq
5363         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
5365 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
5367         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
5368         after comment.
5370 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
5372         Automated part of renaming of symtab_node_base to symtab_node.
5374         Patch autogenerated by rename_symtab.py from
5375         https://github.com/davidmalcolm/gcc-refactoring-scripts
5376         revision 58bb219cc090b2f4516a9297d868c245495ee622
5377         with ChangeLog entry fixed up by hand.
5379         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
5380         symtab_node.
5381         (cgraph_node_for_asm): Likewise.
5382         * cgraph.h (symtab_node_base): Likewise.
5383         (cgraph_node): Likewise.
5384         (varpool_node): Likewise.
5385         (is_a_helper <cgraph_node>::test): Likewise.
5386         (is_a_helper <varpool_node>::test): Likewise.
5387         (symtab_nodes): Likewise.
5388         (symtab_register_node): Likewise.
5389         (symtab_unregister_node): Likewise.
5390         (symtab_remove_node): Likewise.
5391         (symtab_get_node): Likewise.
5392         (symtab_node_for_asm): Likewise.
5393         (symtab_node_asm_name): Likewise.
5394         (symtab_node_name): Likewise.
5395         (symtab_insert_node_to_hashtable): Likewise.
5396         (symtab_add_to_same_comdat_group): Likewise.
5397         (symtab_dissolve_same_comdat_group_list): Likewise.
5398         (dump_symtab_node): Likewise.
5399         (debug_symtab_node): Likewise.
5400         (dump_symtab_base): Likewise.
5401         (verify_symtab_node): Likewise.
5402         (verify_symtab_base): Likewise.
5403         (symtab_used_from_object_file_p): Likewise.
5404         (symtab_alias_ultimate_target): Likewise.
5405         (symtab_resolve_alias): Likewise.
5406         (fixup_same_cpp_alias_visibility): Likewise.
5407         (symtab_for_node_and_aliases): Likewise.
5408         (symtab_nonoverwritable_alias): Likewise.
5409         (availability symtab_node_availability): Likewise.
5410         (symtab_semantically_equivalent_p): Likewise.
5411         (fixup_same_cpp_alias_visibility): Likewise.
5412         (symtab_prevail_in_asm_name_hash): Likewise.
5413         (cgraph): Likewise.
5414         (varpool): Likewise.
5415         (varpool_first_variable): Likewise.
5416         (varpool_next_variable): Likewise.
5417         (varpool_first_static_initializer): Likewise.
5418         (varpool_next_static_initializer): Likewise.
5419         (varpool_first_defined_variable): Likewise.
5420         (varpool_next_defined_variable): Likewise.
5421         (cgraph_first_defined_function): Likewise.
5422         (cgraph_next_defined_function): Likewise.
5423         (cgraph_first_function): Likewise.
5424         (cgraph_next_function): Likewise.
5425         (cgraph_first_function_with_gimple_body): Likewise.
5426         (cgraph_next_function_with_gimple_body): Likewise.
5427         (symtab_alias_target): Likewise.
5428         (symtab_real_symbol_p): Likewise.
5429         (symtab_can_be_discarded): Likewise.
5430         * cgraphbuild.c (mark_address): Likewise.
5431         (mark_load): Likewise.
5432         (mark_store): Likewise.
5433         * cgraphunit.c (decide_is_symbol_needed): Likewise.
5434         (first): Likewise.
5435         (enqueue_node): Likewise.
5436         (referred_to_p): Likewise.
5437         (cgraph_process_same_body_aliases): Likewise.
5438         (analyze_functions): Likewise.
5439         (handle_alias_pairs): Likewise.
5440         (output_weakrefs): Likewise.
5441         (compile): Likewise.
5442         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
5443         * ipa-inline-analysis.c (inline_write_summary): Likewise.
5444         * ipa-prop.c (remove_described_reference): Likewise.
5445         (try_decrement_rdesc_refcount): Likewise.
5446         (ipa_edge_duplication_hook): Likewise.
5447         * ipa-ref.c (ipa_record_reference): Likewise.
5448         (ipa_maybe_record_reference): Likewise.
5449         (ipa_clone_ref): Likewise.
5450         (ipa_clone_references): Likewise.
5451         (ipa_clone_referring): Likewise.
5452         (ipa_find_reference): Likewise.
5453         (ipa_remove_stmt_references): Likewise.
5454         (ipa_clear_stmts_in_references): Likewise.
5455         * ipa-ref.h (symtab_node_base): Likewise.
5456         (ipa_ref): Likewise.
5457         (ipa_record_reference): Likewise.
5458         (ipa_maybe_record_reference): Likewise.
5459         (ipa_clone_references): Likewise.
5460         (ipa_clone_referring): Likewise.
5461         (ipa_clone_ref): Likewise.
5462         (ipa_find_reference): Likewise.
5463         (ipa_remove_stmt_references): Likewise.
5464         (ipa_clear_stmts_in_references): Likewise.
5465         * ipa-reference.c (ipa_reference_write_optimization_summary):
5466         Likewise.
5467         * ipa.c (enqueue_node): Likewise.
5468         (process_references): Likewise.
5469         (walk_polymorphic_call_targets): Likewise.
5470         (symtab_remove_unreachable_nodes): Likewise.
5471         (address_taken_from_non_vtable_p): Likewise.
5472         (comdat_can_be_unshared_p_1): Likewise.
5473         (comdat_can_be_unshared_p): Likewise.
5474         (can_replace_by_local_alias): Likewise.
5475         (function_and_variable_visibility): Likewise.
5476         * is-a.h: Likewise (within example in comment).
5477         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
5478         (lto_symtab_encoder_encode): Likewise.
5479         (lto_symtab_encoder_delete_node): Likewise.
5480         (lto_symtab_encoder_in_partition_p): Likewise.
5481         (lto_set_symtab_encoder_in_partition): Likewise.
5482         (output_refs): Likewise.
5483         (compute_ltrans_boundary): Likewise.
5484         (output_symtab): Likewise.
5485         (input_node): Likewise.
5486         (input_ref): Likewise.
5487         (input_edge): Likewise.
5488         (input_cgraph_1): Likewise.
5489         (input_refs): Likewise.
5490         (output_cgraph_opt_summary): Likewise.
5491         (input_node_opt_summary): Likewise.
5492         (input_cgraph_opt_section): Likewise.
5493         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
5494         Likewise.
5495         * lto-streamer-out.c (lto_output): Likewise.
5496         (output_symbol_p): Likewise.
5497         (produce_symtab): Likewise.
5498         * lto-streamer.h (lto_encoder_entry): Likewise.
5499         (lto_free_function_in_decl_state_for_node): Likewise.
5500         (lto_symtab_encoder_encode): Likewise.
5501         (lto_symtab_encoder_delete_node): Likewise.
5502         (lto_symtab_encoder_in_partition_p): Likewise.
5503         (lto_set_symtab_encoder_in_partition): Likewise.
5504         (lto_symtab_encoder_lookup): Likewise.
5505         (lsei_node): Likewise.
5506         (lto_symtab_encoder_deref): Likewise.
5507         * symtab.c (symtab_hash): Likewise.
5508         (assembler_name_hash): Likewise.
5509         (symtab_nodes): Likewise.
5510         (hash_node): Likewise.
5511         (eq_node): Likewise.
5512         (hash_node_by_assembler_name): Likewise.
5513         (eq_assembler_name): Likewise.
5514         (insert_to_assembler_name_hash): Likewise.
5515         (unlink_from_assembler_name_hash): Likewise.
5516         (symtab_prevail_in_asm_name_hash): Likewise.
5517         (symtab_register_node): Likewise.
5518         (symtab_insert_node_to_hashtable): Likewise.
5519         (symtab_unregister_node): Likewise.
5520         (symtab_get_node): Likewise.
5521         (symtab_remove_node): Likewise.
5522         (symtab_initialize_asm_name_hash): Likewise.
5523         (symtab_node_for_asm): Likewise.
5524         (symtab_add_to_same_comdat_group): Likewise.
5525         (symtab_dissolve_same_comdat_group_list): Likewise.
5526         (symtab_node_asm_name): Likewise.
5527         (symtab_node_name): Likewise.
5528         (dump_symtab_base): Likewise.
5529         (dump_symtab_node): Likewise.
5530         (dump_symtab): Likewise.
5531         (debug_symtab_node): Likewise.
5532         (verify_symtab_base): Likewise.
5533         (verify_symtab_node): Likewise.
5534         (verify_symtab): Likewise.
5535         (symtab_used_from_object_file_p): Likewise.
5536         (symtab_node_availability): Likewise.
5537         (symtab_alias_ultimate_target): Likewise.
5538         (fixup_same_cpp_alias_visibility): Likewise.
5539         (symtab_resolve_alias): Likewise.
5540         (symtab_for_node_and_aliases): Likewise.
5541         (symtab_for_node_and_aliases): Likewise.
5542         (symtab_nonoverwritable_alias_1): Likewise.
5543         (symtab_nonoverwritable_alias): Likewise.
5544         (symtab_semantically_equivalent_p): Likewise.
5545         * value-prof.c (init_node_map): Likewise.
5546         * varasm.c (find_decl): Likewise.
5547         * varpool.c (varpool_node_for_asm): Likewise.
5548         (varpool_remove_unreferenced_decls): Likewise.
5550 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
5552         Manual part of renaming of symtab_node_base to symtab_node.
5554         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
5555         clashes with the preferred name for the base class.
5556         (const_symtab_node): Remove redundant typedef.
5558 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
5560         * optabs.c (expand_vec_perm): Avoid vector mode punning
5561         SUBREGs in SET_DEST.
5562         * expmed.c (store_bit_field_1): Likewise.
5563         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
5564         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
5565         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
5566         * config/i386/i386.c (ix86_expand_vector_move_misalign,
5567         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
5568         ix86_expand_sse_unpack, ix86_expand_args_builtin,
5569         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
5570         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
5571         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
5572         expand_vec_perm_vpshufb2_vpermq,
5573         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
5574         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
5575         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
5576         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
5577         than *d itself.
5579 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
5581         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
5582         Use gcc_unreachable for unhandled modes.  Do not check results of
5583         expand_simple_binop.  If not expanded to target, move the result.
5585 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
5586             Shiva Chen  <shiva0217@gmail.com>
5588         * config.gcc (nds32*-*-*): Add nds32 target.
5589         * config/nds32/nds32.c: New file.
5590         * config/nds32/nds32.h: New file.
5591         * config/nds32/nds32.md: New file.
5592         * config/nds32/constants.md: New file.
5593         * config/nds32/constraints.md: New file.
5594         * config/nds32/iterators.md: New file.
5595         * config/nds32/nds32-doubleword.md: New file.
5596         * config/nds32/nds32-intrinsic.md: New file.
5597         * config/nds32/nds32_intrinsic.h: New file.
5598         * config/nds32/nds32-modes.def: New file.
5599         * config/nds32/nds32-multiple.md: New file.
5600         * config/nds32/nds32.opt: New file.
5601         * config/nds32/nds32-opts.h: New file.
5602         * config/nds32/nds32-protos.h: New file.
5603         * config/nds32/nds32-peephole2.md: New file.
5604         * config/nds32/pipelines.md: New file.
5605         * config/nds32/predicates.md: New file.
5606         * config/nds32/t-mlibs: New file.
5607         * common/config/nds32: New directory and files.
5609         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
5610         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
5611         * doc/install.texi (Cross-Compiler-Specific Options): Document
5612         --with-nds32-lib for nds32 target.
5613         * doc/extend.texi (Function Attributes, Target Builtins): Document
5614         nds32 specific attributes.
5616 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
5618         * lra-constraints (process_alt_operands): Use the result
5619         elimination register for operand when matching constraints.
5621 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
5623         * tree-vrp.c (maybe_set_nonzero_bits): New function.
5624         (remove_range_assertions): Call it.
5626         * tree.c (tree_ctz): New function.
5627         * tree.h (tree_ctz): New prototype.
5628         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
5629         first argument from tree to const_tree.
5630         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
5631         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
5632         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
5633         static.
5634         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
5635         * tree-vect-loop.c (vect_analyze_loop_operations,
5636         vect_transform_loop): Don't force scalar loop for bound just because
5637         number of iterations is unknown, only do it if it is not known to be
5638         a multiple of vectorization_factor.
5639         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
5641         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
5642         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
5643         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
5644         (set_nonzero_bits, get_nonzero_bits): New prototypes.
5645         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
5646         a default def isn't partially constant.
5647         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
5648         is known to be partially zero.
5649         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
5650         to see if a default def isn't partially constant.
5651         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
5652         creation of a range, if VR_RANGE, try to improve nonzero_bits from
5653         the range.
5654         (set_nonzero_bits, get_nonzero_bits): New functions.
5656         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
5657         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
5658         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
5659         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
5660         uses but in the condition and ASSERT_EXPR and the other successor of
5661         the predecessor bb is __builtin_unreachable (), set_range_info of the
5662         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
5664 2013-10-31  Martin Jambor  <mjambor@suse.cz>
5666         PR rtl-optimization/58934
5667         Revert:
5668         2013-10-30  Martin Jambor  <mjambor@suse.cz>
5669         PR rtl-optimization/10474
5670         * ira.c (find_moveable_pseudos): Do not calculate dominance info
5671         nor df analysis.
5672         (interesting_dest_for_shprep): New function.
5673         (split_live_ranges_for_shrink_wrap): Likewise.
5674         (ira): Calculate dominance info and df analysis. Call
5675         split_live_ranges_for_shrink_wrap.
5677 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
5678             Yury Gribov  <y.gribov@samsung.com>
5680         PR sanitizer/58543
5681         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
5682         shadow pointer to avoid clobbering the main one.
5684 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5686         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
5688 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
5690         PR bootstrap/58933
5691         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
5692         it for calling update_costs_from_allocno.
5693         (assign_hard_reg): Call restore_costs_from_copies only for
5694         !retry_p.  Pass new argument to update_costs_from_copies.
5695         (color_pass): Pass new argument to update_costs_from_copies.
5696         (ira_mark_allocation_change): Ditto.
5698 2013-10-30  Sharad Singhai  <singhai@google.com>
5700         PR middle-end/58134
5701         * opts.c (common_handle_option): Remove deprecated option
5702         -ftree-vectorizer-verbose.
5703         * doc/invoke.texi (Debugging Options): Ditto.
5704         * opts-global.c (handle_common_deferred_options): Ditto.
5705         (dump_remap_tree_vectorizer_verbose): Delete.
5706         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
5708 2013-10-30  DJ Delorie  <dj@redhat.com>
5710         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
5711         that take no arguments.
5713 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
5715         PR other/58545
5716         * reload1.c (update_eliminables_and_spill): New function, broken
5717         out of reload.
5718         (reload): Use it.  Check for frame size change after frame size
5719         alignment, and call update_eliminables_and_spill first if continue-ing.
5721 2013-10-30  Cong Hou  <congh@google.com>
5723         PR target/58762
5724         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
5725         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
5726         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
5728 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
5730         PR rtl-optimization/58369
5731         * reload1.c (compute_reload_subreg_offset): New function.
5732         (choose_reload_regs): Use it to pass endian-correct
5733         offset to subreg_regno_offset.
5735 2013-10-30  Tobias Burnus  <burnus@net-b.de>
5737         PR other/33426
5738         * tree-cfg.c (replace_loop_annotate): Replace warning by
5739         warning_at.
5741 2013-10-30  Jason Merrill  <jason@redhat.com>
5743         * configure.ac (loose_warn): Add -Wno-format if
5744         --disable-build-format-warnings.
5746 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
5748         * cgraphunit.c (analyze_functions): Split symtab_node declarations
5749         onto multiple lines to make things easier for rename_symtab.py.
5751         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
5752         (symtab_semantically_equivalent_p): Likewise.
5754 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
5756         PR target/58784
5757         * lra.c (check_rtl): Remove address check before LRA work.
5759 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
5761         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
5762         POINTER_PLUS_EXPR in the defining statement.
5764 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
5766         * regmove.c: Remove.
5767         * tree-pass.h (make_pass_regmove): Remove.
5768         * timevar.def (TV_REGMOVE): Remove.
5769         * passes.def (pass_regmove): Remove.
5770         * opts.c (default_options_table): Remove entry for regmove.
5771         * doc/passes.texi: Remove regmove pass description.
5772         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
5773         options.
5774         (-fdump-rtl-regmove): Ditto.
5775         * common.opt (foptimize-register-move, fregmove): Ignore.
5776         * Makefile.in (OBJS): Remove regmove.o.
5777         * regmove.c: Remove.
5778         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
5779         and type.
5780         (struct ira_allocno) New member allocno_prefs.
5781         (ALLOCNO_PREFS): New macro.
5782         (ira_prefs, ira_prefs_num): New external vars.
5783         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
5784         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
5785         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
5786         Ditto.
5787         (ira_add_allocno_copy_to_list): Remove prototype.
5788         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
5789         (ira_pref_iterator): New type.
5790         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
5791         (FOR_EACH_PREF): New macro.
5792         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
5793         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
5794         code.
5795         (ira_setup_alts): New function.
5796         (decrease_live_ranges_number): New function.
5797         (ira): Call the above function.
5798         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
5799         (ira_create_allocno): Initialize allocno prefs.
5800         (pref_pool, pref_vec): New static vars.
5801         (initiate_prefs, find_allocno_pref, ira_create_pref): New
5802         functions.
5803         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
5804         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
5805         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
5806         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
5807         (ira_add_allocno_copy_to_list): Make static.  Rename to
5808         add_allocno_copy_to_list.
5809         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
5810         swap_allocno_copy_ends_if_necessary.
5811         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
5812         ira_remove_allocno_prefs.
5813         (ira_flattening): Ditto.
5814         (ira_build): Call initiate_prefs, print_prefs.
5815         (ira_destroy): Call finish_prefs.
5816         * ira-color.c (struct update_cost_record): New.
5817         (struct allocno_color_data): Add new member update_cost_records.
5818         (update_cost_record_pool): New static var.
5819         (init_update_cost_records, get_update_cost_record): New functions.
5820         (free_update_cost_record_list, finish_update_cost_records): Ditto.
5821         (struct update_cost_queue_elem): Add member from.
5822         (initiate_cost_update): Call init_update_cost_records.
5823         (finish_cost_update): Call finish_update_cost_records.
5824         (queue_update_cost, get_next_update_cost): Add new param from.
5825         (Update_allocno_cost, update_costs_from_allocno): New functions.
5826         (update_costs_from_prefs): Ditto.
5827         (update_copy_costs): Rename to update_costs_from_copies.
5828         (restore_costs_from_copies): New function.
5829         (update_conflict_hard_regno_costs): Don't go back.
5830         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
5831         more debug info.
5832         (pop_allocnos): Add priniting more debug info.
5833         (color_allocnos): Remove prefs for conflicting hard regs.
5834         Call update_costs_from_prefs.
5835         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
5836         (get_dup_num): Rename, modify, and move to ira.c
5837         (process_regs_for_copy): Add prefs.
5838         (add_insn_allocno_copies): Put src as first arg of
5839         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
5840         * ira-costs.c (record_reg_classes): Modify and move code into
5841         record_operands_costs.
5842         (find_costs_and_classes): Create prefs for the hard reg of small
5843         reg class.
5844         (process_bb_node_for_hard_reg_moves): Add prefs.
5846 2013-10-30  Richard Biener  <rguenther@suse.de>
5848         PR middle-end/57100
5849         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
5850         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
5851         as worker for ...
5852         (pre_and_rev_post_order_compute): ... which now wraps it.
5853         * graph.c (draw_cfg_nodes_no_loops): Use
5854         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
5855         on cfun.
5857 2013-10-30  Christian Bruel  <christian.bruel@st.com>
5859         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
5860         (sh_expand_cmpstr): Handle known align and schedule improvements.
5861         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
5862         * config/sh/sh.md (cmpstrnsi): New pattern.
5864 2013-10-30  Martin Jambor  <mjambor@suse.cz>
5866         PR rtl-optimization/10474
5867         * ira.c (find_moveable_pseudos): Do not calculate dominance info
5868         nor df analysis.
5869         (interesting_dest_for_shprep): New function.
5870         (split_live_ranges_for_shrink_wrap): Likewise.
5871         (ira): Calculate dominance info and df analysis. Call
5872         split_live_ranges_for_shrink_wrap.
5874 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5876         PR target/58854
5877         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
5879 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
5881         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
5882         * tree.h (POINTER_BOUNDS_P): New.
5883         (BOUNDED_TYPE_P): New.
5884         (BOUNDED_P): New.
5885         (pointer_bounds_type_node): New.
5886         * tree.c (build_common_tree_nodes): Initialize
5887         pointer_bounds_type_node.
5888         * gimple.h (gimple_call_get_nobnd_arg_index): New.
5889         (gimple_call_num_nobnd_args): New.
5890         (gimple_call_nobnd_arg): New.
5891         (gimple_return_retbnd): New.
5892         (gimple_return_set_retbnd): New
5893         * gimple.c (gimple_build_return): Increase number of ops
5894         for return statement.
5895         (gimple_call_get_nobnd_arg_index): New.
5896         * gimple-pretty-print.c (dump_gimple_return): Print second op.
5898 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
5900         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
5901         with "chkp ctor" and "bnd_legacy" attributes.
5902         * gimplify.c (gimplify_init_constructor): Avoid infinite
5903         loop during gimplification of bounds initializer.
5905 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
5907         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
5908         (handle_bnd_legacy): New.
5909         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
5910         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
5911         attributes.
5913 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
5915         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
5916         (BT_FN_PTR_CONST_PTR): New.
5917         (BT_FN_CONST_PTR_CONST_PTR): New.
5918         (BT_FN_PTR_CONST_PTR_SIZE): New.
5919         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
5920         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
5921         (BT_FN_VOID_CONST_PTR_SIZE): New.
5922         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
5923         * chkp-builtins.def: New.
5924         * builtins.def: include chkp-builtins.def.
5925         (DEF_CHKP_BUILTIN): New.
5926         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
5927         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
5928         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
5929         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
5930         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
5931         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
5932         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
5933         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
5934         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
5935         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
5936         * common.opt (fcheck-pointer-bounds): New.
5937         * toplev.c (process_options): Check Pointer Bounds Checker is
5938         supported.
5939         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
5941 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
5943         * target.def (builtin_chkp_function): New.
5944         (chkp_bound_type): New.
5945         (chkp_bound_mode): New.
5946         (fn_abi_va_list_bounds_size): New.
5947         (load_bounds_for_arg): New.
5948         (store_bounds_for_arg): New.
5949         * targhooks.h (default_load_bounds_for_arg): New.
5950         (default_store_bounds_for_arg): New.
5951         (default_fn_abi_va_list_bounds_size): New.
5952         (default_chkp_bound_type): New.
5953         (default_chkp_bound_mode): New.
5954         (default_builtin_chkp_function): New.
5955         * targhooks.c (default_load_bounds_for_arg): New.
5956         (default_store_bounds_for_arg): New.
5957         (default_fn_abi_va_list_bounds_size): New.
5958         (default_chkp_bound_type): New.
5959         (default_chkp_bound_mode); New.
5960         (default_builtin_chkp_function): New.
5961         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
5962         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
5963         (TARGET_STORE_BOUNDS_FOR_ARG): New.
5964         (TARGET_BUILTIN_CHKP_FUNCTION): New.
5965         (TARGET_CHKP_BOUND_TYPE): New.
5966         (TARGET_CHKP_BOUND_MODE): New.
5967         * doc/tm.texi: Regenerated.
5968         * langhooks.h (lang_hooks): Add chkp_supported field.
5969         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
5970         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
5972 2013-10-29  Andrew Pinski <apinski@cavium.com>
5974         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
5975         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
5976         fails, combining the branches anyways.
5977         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
5978         increases the number of combinings.
5979         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
5981 2013-10-29  Mike Stump  <mikestump@comcast.net>
5983         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
5984         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
5985         (make_vector_mode): Increase namebuf to 16.
5986         (emit_insn_modes_h): When processing BImode, don't
5987         also match partial int modes.
5988         (emit_class_narrowest_mode): Likewise.
5990         * config/bfin/bfin-modes.def: Add precision to PDI.
5991         * config/m32c/m32c-modes.def: Add precision to PSI.
5992         * config/msp430/msp430-modes.def: Add precision to PSI.
5993         * config/rs6000/rs6000-modes.def: Add precision to PTI.
5994         * config/sh/sh-modes.def: Add precision to PSI and PDI.
5996 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
5998         PR target/54236
5999         * config/sh/sh.md (*addc): Rename existing variations to ...
6000         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
6001         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
6002         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
6003         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
6005 2013-10-29  Teresa Johnson  <tejohnson@google.com>
6007         PR ipa/58862
6008         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
6009         insanities when updating probabilities.
6011 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6013         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
6014         prettyprinter for cgraph_node to reflect the conversion of the
6015         symtable types to a C++ class hierarchy: it now *is* a
6016         symtab_node_base, rather than having one (named "symbol").
6018 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
6020         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
6021         __cilkrts_pop_frame.  If matched, then return true for built-in
6022         function name.
6023         (expand_builtin): Added BUILT_IN_CILK_DETACH and
6024         BUILT_IN_CILK_POP_FRAME case.
6025         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
6026         (lhs_cilk_detect_spawn): Likewise.
6027         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
6028         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
6029         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
6030         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
6031         (LANG_HOOKS_CILKPLUS): Likewise.
6032         * tree.h (CILK_SPAWN_FN): Likewise.
6033         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
6034         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
6035         (OBJS): Added cilk-common.o.
6036         (BUILTINS_DEF): Added cilk-builtins.def.
6037         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
6038         (lhd_cilk_detect_spawn): Likewise.
6039         * langhooks.h (lang_hooks_for_cilkplus): New struct.
6040         (struct lang_hooks): Added new field called "cilkplus."
6041         * cilk-common.c: New file.
6042         * cilk.h: Likewise.
6043         * cilk-builtins.def: Likewise.
6044         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
6045         "__cilk" macro and set it to 200.
6046         * function.h (struct function::cilk_frame_decl): New field.
6047         (struct function::is_cilk_function): Likewise.
6048         (struct function::calls_cilk_spawn): Likewise.
6049         * gimplify.c (gimplify_call_expr): Added a check if the function call
6050         being gimplified is a spawn detach point.  If so, then add pop_frame
6051         and detach function calls.
6052         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
6053         for gimplifying _Cilk_spawn and _Cilk_sync statements.
6054         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
6055         function.  If so, added a _Cilk_sync and gimplified it.
6056         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
6057         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
6058         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
6059         spawner function.
6060         (can_inline_edge_p): Prevent inling of spawnee function.
6061         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
6062         for functions that use Cilk keywords.
6063         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
6064         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
6065         CILK_SYNC_STMT cases.
6066         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
6067         trees.
6068         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
6069         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
6070         * passes.texi (Cilk Keywords): New section that describes the compiler
6071         code changes for handling Cilk Keywords.
6073 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6075         Patch autogenerated by refactor_symtab.py from
6076         https://github.com/davidmalcolm/gcc-refactoring-scripts
6077         revision 58bb219cc090b2f4516a9297d868c245495ee622
6079         * asan.c (asan_finish_file): Update for conversion of symtab types to
6080         a true class hierarchy.
6081         * cfgexpand.c (estimated_stack_frame_size): Likewise.
6082         * cgraph.c (cgraph_get_body): Likewise.
6083         (cgraph_get_create_real_symbol_node): Likewise.
6084         (verify_cgraph_node): Likewise.
6085         (verify_edge_corresponds_to_fndecl): Likewise.
6086         (verify_edge_count_and_frequency): Likewise.
6087         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
6088         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
6089         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
6090         (cgraph_node_cannot_return): Likewise.
6091         (cgraph_set_pure_flag_1): Likewise.
6092         (cgraph_set_const_flag_1): Likewise.
6093         (cgraph_set_nothrow_flag_1): Likewise.
6094         (cgraph_make_node_local_1): Likewise.
6095         (cgraph_for_node_and_aliases): Likewise.
6096         (cgraph_for_node_thunks_and_aliases): Likewise.
6097         (cgraph_node_can_be_local_p): Likewise.
6098         (cgraph_node_cannot_be_local_p_1): Likewise.
6099         (cgraph_function_body_availability): Likewise.
6100         (dump_cgraph_node): Likewise.
6101         (cgraph_rtl_info): Likewise.
6102         (cgraph_mark_address_taken_node): Likewise.
6103         (cgraph_remove_node): Likewise.
6104         (cgraph_release_function_body): Likewise.
6105         (cgraph_update_edges_for_call_stmt_node): Likewise.
6106         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
6107         (cgraph_make_edge_direct): Likewise.
6108         (cgraph_resolve_speculation): Likewise.
6109         (cgraph_speculative_call_info): Likewise.
6110         (cgraph_turn_edge_to_speculative): Likewise.
6111         (cgraph_create_edge_1): Likewise.
6112         (cgraph_set_call_stmt): Likewise.
6113         (cgraph_node_for_asm): Likewise.
6114         (cgraph_add_thunk): Likewise.
6115         (cgraph_same_body_alias): Likewise.
6116         (cgraph_create_function_alias): Likewise.
6117         (cgraph_create_node): Likewise.
6118         (cgraph_create_empty_node): Likewise.
6119         (record_function_versions): Likewise.
6120         (used_from_object_file_p): Likewise.
6121         * cgraph.h (symtab_can_be_discarded): Likewise.
6122         (symtab_real_symbol_p): Likewise.
6123         (cgraph_mark_force_output_node): Likewise.
6124         (cgraph_edge_recursive_p): Likewise.
6125         (symtab_alias_target): Likewise.
6126         (varpool_all_refs_explicit_p): Likewise.
6127         (varpool_can_remove_if_no_refs): Likewise.
6128         (cgraph_only_called_directly_or_aliased_p): Likewise.
6129         (cgraph_next_function_with_gimple_body): Likewise.
6130         (cgraph_first_function_with_gimple_body): Likewise.
6131         (cgraph_function_with_gimple_body_p): Likewise.
6132         (cgraph_next_function): Likewise.
6133         (cgraph_first_function): Likewise.
6134         (cgraph_next_defined_function): Likewise.
6135         (cgraph_first_defined_function): Likewise.
6136         (varpool_next_defined_variable): Likewise.
6137         (varpool_first_defined_variable): Likewise.
6138         (varpool_next_static_initializer): Likewise.
6139         (varpool_first_static_initializer): Likewise.
6140         (varpool_next_variable): Likewise.
6141         (varpool_first_variable): Likewise.
6142         (varpool_node_name): Likewise.
6143         (varpool): Likewise.
6144         (cgraph): Likewise.
6145         (is_a_helper <varpool_node>::test): Likewise.
6146         (is_a_helper <cgraph_node>::test): Likewise.
6147         (varpool_variable_node): Likewise.
6148         (cgraph_function_or_thunk_node): Likewise.
6149         (varpool_alias_target): Likewise.
6150         (cgraph_alias_target): Likewise.
6151         (cgraph_node_name): Likewise.
6152         (varpool_node_asm_name): Likewise.
6153         (cgraph_node_asm_name): Likewise.
6154         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
6155         (cgraph_rebuild_references): Likewise.
6156         (rebuild_cgraph_edges): Likewise.
6157         (record_eh_tables): Likewise.
6158         (build_cgraph_edges): Likewise.
6159         (mark_store): Likewise.
6160         (mark_load): Likewise.
6161         (mark_address): Likewise.
6162         (record_type_list): Likewise.
6163         (record_reference): Likewise.
6164         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
6165         (cgraph_materialize_clone): Likewise.
6166         (cgraph_function_versioning): Likewise.
6167         (cgraph_copy_node_for_versioning): Likewise.
6168         (update_call_expr): Likewise.
6169         (cgraph_find_replacement_node): Likewise.
6170         (cgraph_create_virtual_clone): Likewise.
6171         (cgraph_clone_node): Likewise.
6172         * cgraphunit.c (compile): Likewise.
6173         (output_weakrefs): Likewise.
6174         (output_in_order): Likewise.
6175         (expand_function): Likewise.
6176         (assemble_thunks_and_aliases): Likewise.
6177         (expand_thunk): Likewise.
6178         (mark_functions_to_output): Likewise.
6179         (handle_alias_pairs): Likewise.
6180         (analyze_functions): Likewise.
6181         (walk_polymorphic_call_targets): Likewise.
6182         (varpool_finalize_decl): Likewise.
6183         (process_function_and_variable_attributes): Likewise.
6184         (cgraph_process_same_body_aliases): Likewise.
6185         (analyze_function): Likewise.
6186         (cgraph_add_new_function): Likewise.
6187         (cgraph_finalize_function): Likewise.
6188         (referred_to_p): Likewise.
6189         (cgraph_reset_node): Likewise.
6190         (cgraph_process_new_functions): Likewise.
6191         (enqueue_node): Likewise.
6192         (decide_is_symbol_needed): Likewise.
6193         * coverage.c (coverage_compute_profile_id): Likewise.
6194         * dbxout.c (dbxout_expand_expr): Likewise.
6195         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
6196         (reference_to_unused): Likewise.
6197         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6198         * gimplify.c (unvisit_body): Likewise.
6199         (unshare_body): Likewise.
6200         * ipa-cp.c (ipcp_generate_summary): Likewise.
6201         (ipcp_decision_stage): Likewise.
6202         (identify_dead_nodes): Likewise.
6203         (decide_whether_version_node): Likewise.
6204         (decide_about_value): Likewise.
6205         (perhaps_add_new_callers): Likewise.
6206         (create_specialized_node): Likewise.
6207         (update_profiling_info): Likewise.
6208         (ipcp_propagate_stage): Likewise.
6209         (estimate_local_effects): Likewise.
6210         (good_cloning_opportunity_p): Likewise.
6211         (devirtualization_time_bonus): Likewise.
6212         (propagate_constants_accross_call): Likewise.
6213         (initialize_node_lattices): Likewise.
6214         (ipcp_cloning_candidate_p): Likewise.
6215         (determine_versionability): Likewise.
6216         (print_all_lattices): Likewise.
6217         (print_lattice): Likewise.
6218         (ipcp_discover_new_direct_edges): Likewise.
6219         * ipa-devirt.c (ipa_devirt): Likewise.
6220         (likely_target_p): Likewise.
6221         (update_type_inheritance_graph): Likewise.
6222         (possible_polymorphic_call_target_p): Likewise.
6223         (dump_possible_polymorphic_call_targets): Likewise.
6224         (devirt_variable_node_removal_hook): Likewise.
6225         (record_binfo): Likewise.
6226         (maybe_record_node): Likewise.
6227         (build_type_inheritance_graph): Likewise.
6228         * ipa-inline-analysis.c (inline_write_summary): Likewise.
6229         (inline_generate_summary): Likewise.
6230         (inline_analyze_function): Likewise.
6231         (do_estimate_growth): Likewise.
6232         (simple_edge_hints): Likewise.
6233         (estimate_node_size_and_time): Likewise.
6234         (estimate_edge_devirt_benefit): Likewise.
6235         (compute_inline_parameters): Likewise.
6236         (estimate_function_body_sizes): Likewise.
6237         (compute_bb_predicates): Likewise.
6238         (initialize_inline_failed): Likewise.
6239         (dump_inline_summary): Likewise.
6240         (dump_inline_edge_summary): Likewise.
6241         * ipa-inline-transform.c (inline_transform): Likewise.
6242         (preserve_function_body_p): Likewise.
6243         (save_inline_function_body): Likewise.
6244         (inline_call): Likewise.
6245         (clone_inlined_nodes): Likewise.
6246         (can_remove_node_now_p): Likewise.
6247         (can_remove_node_now_p_1): Likewise.
6248         * ipa-inline.c (early_inliner): Likewise.
6249         (early_inline_small_functions): Likewise.
6250         (inline_always_inline_functions): Likewise.
6251         (ipa_inline): Likewise.
6252         (flatten_function): Likewise.
6253         (inline_small_functions): Likewise.
6254         (speculation_useful_p): Likewise.
6255         (recursive_inlining): Likewise.
6256         (update_caller_keys): Likewise.
6257         (reset_edge_caches): Likewise.
6258         (update_edge_key): Likewise.
6259         (edge_badness): Likewise.
6260         (relative_time_benefit): Likewise.
6261         (want_inline_self_recursive_call_p): Likewise.
6262         (want_inline_small_function_p): Likewise.
6263         (want_early_inline_function_p): Likewise.
6264         (num_calls): Likewise.
6265         (can_early_inline_edge_p): Likewise.
6266         (can_inline_edge_p): Likewise.
6267         (report_inline_failed_reason): Likewise.
6268         * ipa-profile.c (ipa_profile): Likewise.
6269         (ipa_propagate_frequency): Likewise.
6270         (ipa_propagate_frequency_1): Likewise.
6271         (ipa_profile_generate_summary): Likewise.
6272         * ipa-prop.c (ipcp_transform_function): Likewise.
6273         (read_replacements_section): Likewise.
6274         (ipa_prop_read_section): Likewise.
6275         (ipa_modify_call_arguments): Likewise.
6276         (ipa_print_node_params): Likewise.
6277         (propagate_controlled_uses): Likewise.
6278         (update_indirect_edges_after_inlining): Likewise.
6279         (remove_described_reference): Likewise.
6280         (ipa_make_edge_direct_to_target): Likewise.
6281         (ipa_analyze_node): Likewise.
6282         (ipa_analyze_params_uses): Likewise.
6283         (ipa_compute_jump_functions): Likewise.
6284         (ipa_get_callee_param_type): Likewise.
6285         (ipa_print_node_jump_functions): Likewise.
6286         (ipa_initialize_node_params): Likewise.
6287         (ipa_populate_param_decls): Likewise.
6288         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
6289         (write_agg_replacement_chain): Likewise.
6290         (ipa_write_node_info): Likewise.
6291         (ipa_edge_duplication_hook): Likewise.
6292         (try_decrement_rdesc_refcount): Likewise.
6293         * ipa-pure-const.c (propagate_nothrow): Likewise.
6294         (propagate_pure_const): Likewise.
6295         (pure_const_read_summary): Likewise.
6296         (pure_const_write_summary): Likewise.
6297         (analyze_function): Likewise.
6298         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
6299         (ipa_ref_referring_ref_list): Likewise.
6300         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
6301         (ipa_remove_stmt_references): Likewise.
6302         (ipa_find_reference): Likewise.
6303         (ipa_dump_referring): Likewise.
6304         (ipa_dump_references): Likewise.
6305         (ipa_record_reference): Likewise.
6306         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
6307         (ipa_reference_write_optimization_summary): Likewise.
6308         (write_node_summary_p): Likewise.
6309         (propagate): Likewise.
6310         (read_write_all_from_decl): Likewise.
6311         (generate_summary): Likewise.
6312         (analyze_function): Likewise.
6313         (propagate_bits): Likewise.
6314         (ipa_reference_get_not_written_global): Likewise.
6315         (ipa_reference_get_not_read_global): Likewise.
6316         * ipa-split.c (execute_split_functions): Likewise.
6317         (split_function): Likewise.
6318         * ipa-utils.c (ipa_merge_profiles): Likewise.
6319         (dump_cgraph_node_set): Likewise.
6320         (ipa_reverse_postorder): Likewise.
6321         (ipa_edge_within_scc): Likewise.
6322         (ipa_get_nodes_in_cycle): Likewise.
6323         (ipa_free_postorder_info): Likewise.
6324         (ipa_reduced_postorder): Likewise.
6325         (searchc): Likewise.
6326         (recursive_call_p): Likewise.
6327         * ipa.c (ipa_cdtor_merge): Likewise.
6328         (record_cdtor_fn): Likewise.
6329         (function_and_variable_visibility): Likewise.
6330         (varpool_externally_visible_p): Likewise.
6331         (cgraph_externally_visible_p): Likewise.
6332         (comdat_can_be_unshared_p): Likewise.
6333         (comdat_can_be_unshared_p_1): Likewise.
6334         (address_taken_from_non_vtable_p): Likewise.
6335         (ipa_discover_readonly_nonaddressable_vars): Likewise.
6336         (symtab_remove_unreachable_nodes): Likewise.
6337         (walk_polymorphic_call_targets): Likewise.
6338         (process_references): Likewise.
6339         (enqueue_node): Likewise.
6340         (has_addr_references_p): Likewise.
6341         (cgraph_non_local_node_p_1): Likewise.
6342         * is-a.h (varpool_analyze_node): Likewise.
6343         * lto-cgraph.c (input_symtab): Likewise.
6344         (merge_profile_summaries): Likewise.
6345         (input_cgraph_1): Likewise.
6346         (input_edge): Likewise.
6347         (input_varpool_node): Likewise.
6348         (input_node): Likewise.
6349         (input_overwrite_node): Likewise.
6350         (compute_ltrans_boundary): Likewise.
6351         (output_refs): Likewise.
6352         (lto_output_varpool_node): Likewise.
6353         (lto_output_node): Likewise.
6354         (reachable_from_other_partition_p): Likewise.
6355         (referenced_from_other_partition_p): Likewise.
6356         (lto_output_edge): Likewise.
6357         (output_node_opt_summary): Likewise.
6358         (add_node_to): Likewise.
6359         (reachable_from_this_partition_p): Likewise.
6360         (lto_set_symtab_encoder_in_partition): Likewise.
6361         (lto_symtab_encoder_in_partition_p): Likewise.
6362         (lto_set_symtab_encoder_encode_initializer): Likewise.
6363         (lto_symtab_encoder_encode_initializer_p): Likewise.
6364         (lto_set_symtab_encoder_encode_body): Likewise.
6365         (lto_symtab_encoder_encode_body_p): Likewise.
6366         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6367         Likewise.
6368         * lto-streamer-in.c (lto_read_body): Likewise.
6369         (fixup_call_stmt_edges): Likewise.
6370         (fixup_call_stmt_edges_1): Likewise.
6371         * lto-streamer-out.c (produce_symtab): Likewise.
6372         (output_symbol_p): Likewise.
6373         (write_symbol): Likewise.
6374         (lto_output): Likewise.
6375         (copy_function): Likewise.
6376         (output_function): Likewise.
6377         * passes.c (function_called_by_processed_nodes_p): Likewise.
6378         (ipa_write_optimization_summaries): Likewise.
6379         (ipa_write_summaries): Likewise.
6380         (do_per_function_toporder): Likewise.
6381         (do_per_function): Likewise.
6382         (dump_passes): Likewise.
6383         * symtab.c (symtab_semantically_equivalent_p): Likewise.
6384         (symtab_nonoverwritable_alias): Likewise.
6385         (symtab_nonoverwritable_alias_1): Likewise.
6386         (symtab_for_node_and_aliases): Likewise.
6387         (symtab_resolve_alias): Likewise.
6388         (fixup_same_cpp_alias_visibility): Likewise.
6389         (symtab_alias_ultimate_target): Likewise.
6390         (symtab_used_from_object_file_p): Likewise.
6391         (verify_symtab_base): Likewise.
6392         (dump_symtab_base): Likewise.
6393         (symtab_node_name): Likewise.
6394         (symtab_node_asm_name): Likewise.
6395         (symtab_dissolve_same_comdat_group_list): Likewise.
6396         (symtab_add_to_same_comdat_group): Likewise.
6397         (symtab_unregister_node): Likewise.
6398         (symtab_insert_node_to_hashtable): Likewise.
6399         (symtab_register_node): Likewise.
6400         (unlink_from_assembler_name_hash): Likewise.
6401         (insert_to_assembler_name_hash): Likewise.
6402         (eq_assembler_name): Likewise.
6403         (hash_node_by_assembler_name): Likewise.
6404         (eq_node): Likewise.
6405         (hash_node): Likewise.
6406         * toplev.c (wrapup_global_declaration_2): Likewise.
6407         * trans-mem.c (ipa_tm_execute): Likewise.
6408         (ipa_tm_transform_clone): Likewise.
6409         (ipa_tm_transform_transaction): Likewise.
6410         (ipa_tm_transform_calls_redirect): Likewise.
6411         (ipa_tm_insert_gettmclone_call): Likewise.
6412         (ipa_tm_insert_irr_call): Likewise.
6413         (ipa_tm_create_version): Likewise.
6414         (ipa_tm_create_version_alias): Likewise.
6415         (ipa_tm_mark_forced_by_abi_node): Likewise.
6416         (ipa_tm_mark_force_output_node): Likewise.
6417         (ipa_tm_diagnose_tm_safe): Likewise.
6418         (ipa_tm_mayenterirr_function): Likewise.
6419         (ipa_tm_scan_irr_function): Likewise.
6420         (ipa_tm_note_irrevocable): Likewise.
6421         (ipa_tm_scan_calls_clone): Likewise.
6422         (get_cg_data): Likewise.
6423         * tree-eh.c (tree_could_trap_p): Likewise.
6424         * tree-emutls.c (ipa_lower_emutls): Likewise.
6425         (create_emultls_var): Likewise.
6426         (lower_emutls_function_body): Likewise.
6427         (gen_emutls_addr): Likewise.
6428         (emutls_decl): Likewise.
6429         (new_emutls_decl): Likewise.
6430         * tree-inline.c (tree_function_versioning): Likewise.
6431         (optimize_inline_calls): Likewise.
6432         (expand_call_inline): Likewise.
6433         (estimate_num_insns): Likewise.
6434         (copy_bb): Likewise.
6435         (delete_unreachable_blocks_update_callgraph): Likewise.
6436         * tree-nested.c (gimplify_all_functions): Likewise.
6437         (create_nesting_tree): Likewise.
6438         (check_for_nested_with_variably_modified): Likewise.
6439         * tree-pretty-print.c (dump_function_header): Likewise.
6440         * tree-profile.c (tree_profiling): Likewise.
6441         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6442         (modify_function): Likewise.
6443         (convert_callers): Likewise.
6444         (convert_callers_for_node): Likewise.
6445         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
6446         (associate_varinfo_to_alias): Likewise.
6447         (create_variable_info_for): Likewise.
6448         (get_constraint_for_ssa_var): Likewise.
6449         * tree-vectorizer.c (increase_alignment): Likewise.
6450         * tree.c (find_decls_types_in_var): Likewise.
6451         (find_decls_types_in_node): Likewise.
6452         (free_lang_data_in_decl): Likewise.
6453         * value-prof.c (gimple_ic_transform): Likewise.
6454         (gimple_ic): Likewise.
6455         (check_ic_target): Likewise.
6456         (init_node_map): Likewise.
6457         * varasm.c (decl_binds_to_current_def_p): Likewise.
6458         (default_binds_local_p_1): Likewise.
6459         (dump_tm_clone_pairs): Likewise.
6460         (assemble_alias): Likewise.
6461         (find_decl): Likewise.
6462         (mark_decl_referenced): Likewise.
6463         * varpool.c (varpool_for_node_and_aliases): Likewise.
6464         (varpool_extra_name_alias): Likewise.
6465         (varpool_create_variable_alias): Likewise.
6466         (add_new_static_var): Likewise.
6467         (varpool_finalize_named_section_flags): Likewise.
6468         (varpool_remove_unreferenced_decls): Likewise.
6469         (enqueue_node): Likewise.
6470         (varpool_assemble_decl): Likewise.
6471         (assemble_aliases): Likewise.
6472         (varpool_analyze_node): Likewise.
6473         (cgraph_variable_initializer_availability): Likewise.
6474         (varpool_add_new_variable): Likewise.
6475         (ctor_for_folding): Likewise.
6476         (dump_varpool_node): Likewise.
6477         (varpool_remove_initializer): Likewise.
6478         (varpool_remove_node): Likewise.
6479         (varpool_node_for_decl): Likewise.
6480         (varpool_create_empty_node): Likewise.
6481         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
6482         (ix86_get_function_versions_dispatcher): Likewise.
6484 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6486         * cgraph.h (symtab_node_base): Convert to a class;
6487         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
6488         chain_next/prev from symtab_node_def.
6489         (cgraph_node): Inherit from symtab_node; add GTY option
6490         tag ("SYMTAB_FUNCTION").
6491         (varpool_node): Inherit from symtab_node; add GTY option
6492         tag ("SYMTAB_VARIABLE").
6493         (symtab_node_def): Remove.
6494         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
6495         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
6496         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
6497         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
6499         * ipa-ref.h (symtab_node_def): Drop.
6500         (symtab_node): Change underlying type from symtab_node_def to
6501         symtab_node_base.
6502         (const_symtab_node): Likwise.
6504         * is-a.h: Update examples in comment.
6506         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
6507         (assembler_name_hash): Likewise.
6509 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
6511         * doc/tree-ssa.texi (gimple_phi_result): Document.
6512         (gimple_phi_num_args, gimple_phi_arg): Likewise.
6513         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
6514         (PHI_RESULT, PHI_NUM_ARGS): Remove.
6515         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
6517 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
6519         * expr.h: Revert change and include tree-core.h.
6520         * rtl.h: Revert change and don't include tree-core.h.
6522 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
6524         * config/darwin.c: Include gimple.h.
6525         * config/i386/winnt.c: Likewise.
6527 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
6529         PR tree-optimization/19831
6530         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
6532 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
6534         * tree-outof-ssa.h: Remove include files.
6535         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
6536         * expr.c: Likewise.
6537         * tree-ssa-coalesce.c: Likewise.
6538         * cfgexpand.c: Likewise.
6539         * tree-ssa-ter.c: Likewise.
6540         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
6541         * lto-streamer.h: Likewise.
6542         * cgraphbuild.c: Add gimple.h to include list.
6543         * data-streamer-in.c: Likewise.
6544         * ipa-cp.c: Likewise.
6545         * tree-streamer.c: Likewise.
6546         * lto-compress.c: Likewise.
6547         * ipa-reference.c: Likewise.
6548         * data-streamer-out.c: Likewise.
6549         * lto-cgraph.c: Likewise.
6550         * cgraphclones.c: Likewise.
6551         * ipa-utils.c: Likewise.
6552         * data-streamer.c: Likewise.
6553         * ipa-split.c: Likewise.
6554         * lto-section-in.c: Likewise.
6555         * tree-streamer-out.c: Likewise.
6556         * ipa-prop.c: Likewise.
6557         * tree-streamer-in.c: Likewise.
6558         * symtab.c: Likewise.
6559         * opts-global.c: Likewise.
6560         * lto-opts.c: Likewise.
6561         * lto-section-out.c: Likewise.
6562         * lto-streamer.c: Likewise.
6563         * rtl.h: Add tree-core.h to include list.
6564         * expr.h: Remove tree-core.h from include list.
6565         * gimple.h: Likewise.
6566         * ipa-utils.h: Likewise.
6567         * streamer-hooks.h: Likewise.
6568         * streamer-hooks.c: Include input.h.
6570 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6572         * config/arm/arm.c (cortexa7_extra_costs): New table.
6573         (arm_cortex_a7_tune): New.
6574         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
6576 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
6578         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
6580 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6582         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
6583         to use autogenerated markers for a class-hierarchy, every class
6584         must have a GTY marker.
6585         * gengtype.h (struct type): Add linked list of subclasses to
6586         the "s" member of the union.
6587         (add_subclass): New decl.
6588         * gengtype-state.c (read_state_struct_type): Set up subclass
6589         linked list.
6590         * gengtype.c (get_ultimate_base_class): New.
6591         (add_subclass): New.
6592         (new_structure): Set up subclass linked list.
6593         (set_gc_used_type): Propagate usage information to subclasses.
6594         (output_mangled_typename): Use get_ultimate_base_class.
6595         (walk_subclasses): Use the subclass linked list, avoiding an
6596         O(N^2) when writing out all types.
6597         (walk_type): Issue an error if the base class is missing a tag,
6598         rather than generating bogus C code.  Add a gcc_unreachable
6599         default case, in case people omit tags from concrete subclasses,
6600         or get the values wrong.
6601         (write_func_for_structure): Issue an error for subclasses for
6602         which the base doesn't have a "desc", since otherwise the
6603         autogenerated routines for the base would silently fail to visit
6604         any subclass fields.
6605         (write_root): Use get_ultimate_base_class, tweaking constness of
6606         tp to match that function's signature.
6608 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6610         * doc/gty.texi (GTY Options): Add note about inheritance to
6611         description of desc and tag.
6612         (Inheritance and GTY): New.
6614 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
6616         * gengtype-parse.c (opts_have): Drop "static" so that
6617         we can use this from gengtype.c.
6618         * gengtype.c (set_gc_used_type): Mark any base class as used;
6619         update field traversal to visit inherited fields.
6620         (output_mangled_typename):  Convert references to classes within
6621         an inheritance hierarchy to reference the ultimate base class,
6622         since only it will have gt_ functions.
6623         (get_string_option): New.
6624         (walk_subclasses): New.
6625         (walk_type): Treat GTY structs that have a "desc" as being the
6626         root of an inheritance hierarchy.  Generate a switch on it
6627         within the marking function which walks all subclasses, adding
6628         cases for them via walk_subclasses.  For subclasses, visit all
6629         fields of the type (including inherited ones).
6630         (write_func_for_structure): Don't write fns for subclasses, only
6631         for the ultimate base class within an inheritance hierarchy.
6632         Subclasses-marking will be handled by the base class marking functions.
6633         (write_types): Likewise.
6634         (write_local_func_for_structure): Likewise.
6635         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
6636         a "tag" option (and are thus concrete subclasses).
6637         (write_root): Use the marker function for the ultimate base class.
6638         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
6639         (opts_have): Add declaration.
6641 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
6643         * lra-spills.c (lra_final_code_change): Remove useless move insns
6644         originated from moves of pseudos.
6646 2013-10-28  Jeff Law  <law@redhat.com>
6648         * lower-subreg.c (resolve_simple_move): Fix comment typo.
6650 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
6652         * df-scan.c (df_collection_rec): Adjust.
6653         (copy_defs): New constant.
6654         (copy_uses): Likewise.
6655         (copy_eq_uses): Likewise.
6656         (copy_mw): Likewise.
6657         (copy_all): Likewise.
6658         (df_insn_rescan): Adjust.
6659         (df_notes_rescan): Likewise.
6660         (df_swap_refs): Likewise.
6661         (df_sort_and_compress_refs): Likewise.
6662         (df_sort_and_compress_mws): Likewise.
6663         (df_install_refs): Likewise.
6664         (df_install_mws): Likewise.
6665         (df_refs_add_to_chains): Add flags parameter controlling which vectors
6666         are coppied.
6667         (df_bb_refs_record): Adjust.
6668         (df_record_entry_block_defs): Likewise.
6669         (df_record_exit_block_defs): Likewise.
6670         (df_refs_verify): Likewise.
6671         (df_mws_verify): Likewise.
6672         (df_insn_refs_verify): Likewise.
6673         (df_bb_verify): Likewise.
6674         * ipa-pure-const.c (finish_state): Remove.
6675         (propagate): Adjust.
6676         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
6677         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
6678         var-tracking.c: Adjust.
6679         * vec.c (stack_vecs): Remove.
6680         (register_stack_vec): Likewise.
6681         (stack_vec_register_index): Likewise.
6682         (unregister_stack_vec): Likewise.
6683         * vec.h (struct va_stack): Remove.
6684         (struct vec<T, A, vl_ptr>): Specialize as
6685         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
6686         allocation strategy compatable with the vl_ptr layout.
6687         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
6688         specialization anyway.
6689         (class stack_vec): New class.
6690         (vec_stack_alloc): Remove.
6691         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
6693 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6694             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6695             Sergey Lega  <sergey.s.lega@intel.com>
6696             Anna Tikhonova  <anna.tikhonova@intel.com>
6697             Ilya Tocar  <ilya.tocar@intel.com>
6698             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6699             Ilya Verbin  <ilya.verbin@intel.com>
6700             Kirill Yukhin  <kirill.yukhin@intel.com>
6701             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6703         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
6704         (*prefetch_avx512pf_<mode>): New.
6705         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
6706         (avx512f_maskcmp<mode>3): Ditto.
6707         (vashrv16si3): Ditto.
6709 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6710             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6711             Sergey Lega  <sergey.s.lega@intel.com>
6712             Anna Tikhonova  <anna.tikhonova@intel.com>
6713             Ilya Tocar  <ilya.tocar@intel.com>
6714             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6715             Ilya Verbin  <ilya.verbin@intel.com>
6716             Kirill Yukhin  <kirill.yukhin@intel.com>
6717             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6719         * config/i386/i386.md (any_truncate): New.
6720         (trunsuffix): Ditto.
6721         * config/i386/predicates.md (const_8_to_9_operand): New.
6722         (const_10_to_11_operand): Ditto.
6723         (const_12_to_13_operand): Ditto.
6724         (const_14_to_15_operand): Ditto.
6725         (const_16_to_19_operand): Ditto.
6726         (const_20_to_23_operand): Ditto.
6727         (const_24_to_27_operand): Ditto.
6728         (const_28_to_31_operand): Ditto.
6729         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
6730         (cvtusi2<ssescalarmodesuffix>32): New.
6731         (cvtusi2<ssescalarmodesuffix>64): Ditto.
6732         (ufloatv16siv16sf2): Ditto.
6733         (avx512f_fix_notruncv16sfv16si): Ditto.
6734         (avx512f_ufix_notruncv16sfv16si): Ditto.
6735         (avx512f_vcvtss2usi): Ditto.
6736         (avx512f_vcvtss2usiq): Ditto.
6737         (avx512f_vcvttss2usi): Ditto.
6738         (avx512f_vcvttss2usiq): Ditto.
6739         (avx512f_vcvtsd2usi): Ditto.
6740         (avx512f_vcvtsd2usiq): Ditto.
6741         (avx512f_vcvttsd2usi): Ditto.
6742         (avx512f_vcvttsd2usiq): Ditto.
6743         (ufloatv8siv8df): Ditto.
6744         (avx512f_cvtdq2pd512_2): Ditto.
6745         (avx512f_cvtpd2dq512): Ditto.
6746         (avx512f_ufix_notruncv8dfv8si): Ditto.
6747         (avx512f_cvtpd2ps512): Ditto.
6748         (vec_unpacks_lo_v16sf): Ditto.
6749         (vec_unpacks_hi_v16sf): Ditto.
6750         (vec_unpacks_float_hi_v16si): Ditto.
6751         (vec_unpacks_float_lo_v16si): Ditto.
6752         (avx512f_unpckhps512): Ditto.
6753         (avx512f_unpcklps512): Ditto.
6754         (avx512f_movshdup512): Ditto.
6755         (avx512f_movsldup512): Ditto.
6756         (vec_extract_lo_v32hi): Ditto.
6757         (vec_extract_hi_v32hi): Ditto.
6758         (vec_extract_lo_v64qi): Ditto.
6759         (vec_extract_hi_v64qi): Ditto.
6760         (avx512f_unpckhpd512): Ditto.
6761         (avx512f_movddup512): Ditto.
6762         (avx512f_unpcklpd512): Ditto.
6763         (*avx512f_unpcklpd512): Ditto.
6764         (avx512f_shufps512_1): Ditto.
6765         (avx512f_shufpd512_1): Ditto.
6766         (avx512f_interleave_highv8di): Ditto.
6767         (avx512f_interleave_lowv8di): Ditto.
6768         (PMOV_DST_MODE): Ditto.
6769         (pmov_src_mode): Ditto.
6770         (pmov_src_lower): Ditto.
6771         (pmov_suff): Ditto.
6772         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
6773         (*avx512f_<code>v8div16qi2): Ditto.
6774         (*avx512f_<code>v8div16qi2_store): Ditto.
6775         (vec_widen_umult_even_v16si): Ditto.
6776         (*vec_widen_umult_even_v16si): Ditto.
6777         (vec_widen_smult_even_v16si): Ditto.
6778         (*vec_widen_smult_even_v16si): Ditto.
6779         (avx512f_interleave_highv16si): Ditto.
6780         (avx512f_interleave_lowv16si): Ditto.
6781         (avx512f_<code>v16qiv16si2): Ditto.
6782         (avx512f_<code>v16hiv16si2): Ditto.
6783         (avx512f_<code>v8qiv8di2): Ditto.
6784         (avx512f_<code>v8hiv8di2): Ditto.
6785         (avx512f_<code>v8siv8di2): Ditto.
6786         (avx512cd_maskb_vec_dupv8di): Ditto.
6787         (avx512cd_maskw_vec_dupv16si): Ditto.
6788         (avx512f_vcvtph2ps512): Ditto.
6789         (avx512f_vcvtps2ph512): Ditto.
6790         (VEC_EXTRACT_MODE): Extened with wider modes.
6791         (VEC_PERM_AVX2): Ditto.
6792         (VEC_PERM_CONST): Ditto.
6794 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
6796         * config/arc/arc.c (arc_ccfsm_post_advance):
6797         Add comment about TYPE_RETURN.
6799 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
6801         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
6802         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
6803         (strip_offset): Convert offset to unsigned number.
6805 2013-10-27  Tom de Vries  <tom@codesourcery.com>
6807         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
6808         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
6810 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
6812         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
6813         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
6814         (TARGET_BIG_ENDIAN): New macro.
6815         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
6816         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
6817         * config/sh/sh.c: Likewise.
6818         * config/sh/sh.h: Likewise.
6820 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
6822         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
6823         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
6825 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
6827         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
6828         Fix formatting.
6829         (cmpstr_t, cmpstrsi): Fix formatting.
6831 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
6833         PR target/52483
6834         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
6835         addressing, do not use general_operand for memory operands.
6837 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
6839         Revert:
6840         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
6841         * lra-spills.c (lra_final_code_change): Remove useless move insns.
6843 2013-10-26  Jeff Law  <law@redhat.com>
6845         * predict.c (PRED_MUDFLAP): Remove.
6846         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
6848         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
6849         (OBJS): Remove tree-nomudflap.o
6850         (GTFILES): Remove tree-mudflap.c
6851         * builtins.c (expand_builtin_alloc): Remove mudflap support.
6852         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
6853         (mfwrap_spec, mflib_spec): Likewise.
6854         (cpp_unique_options, cc1_options, static_specs): Likewise.
6855         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
6856         * passes.def: Likewise.
6857         * toplev.c (compile_file, process_options): Likewise.
6858         * tree-inline.c (copy_tree_r): Likewise.
6859         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
6860         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
6861         (build_constant_desc, output_constant_def_contents): Likewise.
6862         (categorize_decl_for_section): Likewise.
6863         * tree-mudflap.c: Removed.
6864         * tree-mudflap.h: Removed.
6865         * tree-nomudflap.c: Removed.
6866         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
6867         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
6868         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
6869         * config/sol2.h (MFLIB_SPEC): Likewise.
6870         * doc/install.texi: Remove mudflap references.
6871         * doc/passes.texi: Similarly.
6872         * doc/sourcebuild.texi: Similarly.
6873         * doc/invoke.texi: Remove mudlfap related options.
6875 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
6877         PR rtl-optimization/58759
6878         * lra-constraints.c (lra_constraints): Remove wrong condition to
6879         remove insn setting up an equivalent pseudo.
6881 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
6883         * config/rs6000/rs6000-protos.h
6884         (rs6000_secondary_memory_needed_mode): New prototype.
6885         * config/rs6000/rs6000.c: Include ira.h.
6886         (TARGET_LRA_P): Redefine.
6887         (rs6000_legitimate_offset_address_p): Call
6888         legitimate_constant_pool_address_p in strict mode for LRA.
6889         (rs6000_legitimate_address_p): Ditto.
6890         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
6891         (rs6000_emit_move): Add LRA version of code to generate load/store
6892         of SDmode values.
6893         (rs6000_secondary_memory_needed_mode): New.
6894         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
6895         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
6896         constants, memory, and FP registers.
6897         (rs6000_lra_p): New.
6898         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
6899         * config/rs6000/rs6000.opt (mlra): New option.
6900         * lra-spills.c (lra_final_code_change): Remove useless move insns.
6902 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
6904         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
6905         has_single_use () and not do the conversion if has_single_use ()
6906         returns false for the multiplication result.
6908 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
6910         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
6911         to "NODE", since this works on a "tree", not an
6912         "enum tree_code".
6913         (CONSTANT_CLASS_P): Likewise.
6914         (TYPE_P): Likewise.
6915         (DECL_P): Likewise.
6916         (INDIRECT_REF_P): Likewise.
6917         (REFERENCE_CLASS_P): Likewise.
6918         (COMPARISON_CLASS_P): Likewise.
6919         (UNARY_CLASS_P): Likewise.
6920         (BINARY_CLASS_P): Likewise.
6921         (STATEMENT_CLASS_P): Likewise.
6922         (VL_EXP_CLASS_P): Likewise.
6923         (EXPRESSION_CLASS_P): Likewise.
6924         (IS_TYPE_OR_DECL_P): Likewise.
6926 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
6928         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
6929         ADDR_EXPR in the defining statement.
6931 2013-10-25  Richard Biener  <rguenther@suse.de>
6933         PR tree-optimization/58626
6934         * tree-loop-distribution.c (enum rdg_dep_type): Remove
6935         anti_dd, output_dd and input_dd.
6936         (struct rdg_edge): Remove level and relation members.
6937         (RDGE_LEVEL, RDGE_RELATION): Remove.
6938         (dot_rdg_1): Adjust.
6939         (create_rdg_edge_for_ddr): Remove.
6940         (create_rdg_edges_for_scalar): Adjust.
6941         (create_edge_for_control_dependence): Likewise.
6942         (create_rdg_edges): Split into ...
6943         (create_rdg_flow_edges): ... this
6944         (create_rdg_cd_edges): ... and this.
6945         (free_rdg): Adjust.
6946         (build_rdg): Likewise, do not compute data dependences or
6947         add edges for them.
6948         (pg_add_dependence_edges): New function.
6949         (pgcmp): Likewise.
6950         (distribute_loop): First apply all non-dependence based
6951         partition mergings.  Then compute dependences between partitions
6952         and merge and order partitions according to them.
6954 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
6956         PR rtl-optimization/58831
6957         * alias.c (init_alias_analysis): At the beginning of each iteration,
6958         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
6960 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
6962         * recog.c (search_ofs): New static variable moved from...
6963         (peep2_find_free_register): ...here.
6964         (peephole2_optimize): Initialize it.
6966 2013-10-25  Tobias Burnus  <burnus@net-b.de>
6968         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
6970 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
6972         * config/i386/i386.h (TARGET_MPX): New define.
6973         (TARGET_MPX_P): Ditto.
6975 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
6977         * config/i386/constraints.md (B): New.
6978         (Ti): New.
6979         (Tb): New.
6980         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
6981         * config/i386/i386-modes.def (BND32): New.
6982         (BND64): New.
6983         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
6984         * config/i386/i386.c (isa_opts): Add mmpx.
6985         (regclass_map): Add bound registers.
6986         (dbx_register_map): Likewise.
6987         (dbx64_register_map): Likewise.
6988         (svr4_dbx_register_map): Likewise.
6989         (PTA_MPX): New.
6990         (ix86_option_override_internal): Support MPX ISA.
6991         (ix86_conditional_register_usage): Support bound registers.
6992         (print_reg): Likewise.
6993         (ix86_code_end): Add MPX bnd prefix.
6994         (output_set_got): Likewise.
6995         (ix86_output_call_insn): Likewise.
6996         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
6997         (ix86_print_operand_punct_valid_p): Likewise.
6998         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
6999         UNSPEC_BNDMK_ADDR.
7000         (ix86_class_likely_spilled_p): Add bound regs support.
7001         (ix86_hard_regno_mode_ok): Likewise.
7002         (x86_order_regs_for_local_alloc): Likewise.
7003         (ix86_bnd_prefixed_insn_p): New.
7004         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
7005         (FIXED_REGISTERS): Add bound registers.
7006         (CALL_USED_REGISTERS): Likewise.
7007         (REG_ALLOC_ORDER): Likewise.
7008         (HARD_REGNO_NREGS): Likewise.
7009         (TARGET_MPX): New.
7010         (VALID_BND_REG_MODE): New.
7011         (FIRST_BND_REG): New.
7012         (LAST_BND_REG): New.
7013         (reg_class): Add BND_REGS.
7014         (REG_CLASS_NAMES): Likewise.
7015         (REG_CLASS_CONTENTS): Likewise.
7016         (BND_REGNO_P): New.
7017         (ANY_BND_REG_P): New.
7018         (BNDmode): New.
7019         (HI_REGISTER_NAMES): Add bound registers.
7020         * config/i386/i386.md (UNSPEC_BNDMK): New.
7021         (UNSPEC_BNDMK_ADDR): New.
7022         (UNSPEC_BNDSTX): New.
7023         (UNSPEC_BNDLDX): New.
7024         (UNSPEC_BNDLDX_ADDR): New.
7025         (UNSPEC_BNDCL): New.
7026         (UNSPEC_BNDCU): New.
7027         (UNSPEC_BNDCN): New.
7028         (UNSPEC_MPX_FENCE): New.
7029         (BND0_REG): New.
7030         (BND1_REG): New.
7031         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
7032         (length_immediate): Likewise.
7033         (prefix_0f): Likewise.
7034         (memory): Likewise.
7035         (prefix_rep): Check for bnd prefix.
7036         (length_nobnd): New.
7037         (length): Use length_nobnd if specified.
7038         (BND): New.
7039         (bnd_ptr): New.
7040         (BNDCHECK): New.
7041         (bndcheck): New.
7042         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
7043         (*jcc_2): Likewise.
7044         (jump): Likewise.
7045         (simple_return_internal): Likewise.
7046         (simple_return_pop_internal): Likewise.
7047         (*indirect_jump): Add MPX bnd prefix.
7048         (*tablejump_1): Likewise.
7049         (simple_return_internal_long): Likewise.
7050         (simple_return_indirect_internal): Likewise.
7051         (<mode>_mk): New.
7052         (*<mode>_mk): New.
7053         (mov<mode>): New.
7054         (*mov<mode>_internal_mpx): New.
7055         (<mode>_<bndcheck>): New.
7056         (*<mode>_<bndcheck>): New.
7057         (<mode>_ldx): New.
7058         (*<mode>_ldx): New.
7059         (<mode>_stx): New.
7060         (*<mode>_stx): New.
7061         * config/i386/predicates.md (lea_address_operand): Rename to...
7062         (address_no_seg_operand): ... this.
7063         (address_mpx_no_base_operand): New.
7064         (address_mpx_no_index_operand): New.
7065         (bnd_mem_operator): New.
7066         * config/i386/i386.opt (mmpx): New.
7067         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
7068         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
7070 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
7072         * mode-classes.def (MODE_POINTER_BOUNDS): New.
7073         * tree.def (POINTER_BOUNDS_TYPE): New.
7074         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
7075         (POINTER_BOUNDS_MODE): New.
7076         (make_pointer_bounds_mode): New.
7077         * machmode.h (POINTER_BOUNDS_MODE_P): New.
7078         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
7079         (layout_type): Support POINTER_BOUNDS_TYPE.
7080         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
7081         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
7082         (type_contains_placeholder_1): Likewise.
7083         * tree.h (POINTER_BOUNDS_TYPE_P): New.
7084         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
7085         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
7087 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
7089         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
7090         mode of address computation when calling memory_address_addr_space.
7092 2013-08-24  Richard Henderson  <rth@twiddle.net>
7094         PR rtl/58542
7095         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
7096         instead of create_convert_operand_to.
7097         (maybe_emit_sync_lock_test_and_set): Likewise.
7098         (expand_atomic_compare_and_swap): Likewise.
7099         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
7101 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
7103         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
7104         Change param_is to use the struct and not the pointer to the struct.
7106 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
7108         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
7109         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
7110         Move to targhooks.c.
7111         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
7112         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
7113         Relocate from gimplify.c.
7114         * targhooks.h: Add 2 prototypes.
7115         * tree.h: Delete 2 prototypes.
7117 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
7119         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
7120         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
7122 2013-10-24  Cong Hou  <congh@google.com>
7124         * convert.c (convert_to_real): Guard those unsafe math function
7125         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
7126         specially.
7128 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
7130         PR ipa/58712
7131         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
7132         as argument.
7133         (cgraph_create_edge): Use the new argument.
7134         (cgraph_create_indirect_edge): Likewise.
7136 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
7138         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
7139         TYPE_UNCOND_BRANCH.
7140         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
7141         changes statep->state.
7143 2013-10-24  Tobias Burnus  <burnus@net-b.de>
7145         PR other/33426
7146         * tree-cfg.c (replace_loop_annotate): New function.
7147         (execute_build_cfg): Call it.
7148         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
7149         * internal-fn.c (expand_ANNOTATE): New function.
7150         * internal-fn.def (ANNOTATE): Define as new internal function.
7151         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
7152         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
7153         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
7154         * doc/extend.texi (Pragmas): Document #pragma ivdep.
7155         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
7157 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
7158             Marcus Shawcroft  <marcus.shawcroft@arm.com>
7160         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
7161         Special case reload SP+C into none GENERAL_REGS.
7163 2013-10-24  Michael Matz  <matz@suse.de>
7165         * gengtype.c (is_file_equal): Check that files will be same length.
7167 2013-10-25  Christian Bruel  <christian.bruel@st.com>
7169         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
7170         * config/sh/t-sh (sh-mem.o): New rule.
7171         * config/sh/sh-mem.cc (expand_block_move): Moved here.
7172         (sh_expand_cmpstr): New function.
7173         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
7174         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
7175         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
7176         (rotlhi3_8): Rename.
7178 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7180         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
7181         * Makefile.in (CXXDEPMODE): Assign and change users.
7182         (CCDEPMODE): Delete.
7183         * configure: Regenerate.
7185 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
7187         * gengtype-parse.c (require_without_advance): New.
7188         (type): For GTY-marked types that are not GTY((user)), parse any
7189         base classes, requiring them to be single-inheritance, and not
7190         be templates.  For non-GTY-marked types and GTY((user)),
7191         continue to skip over any C++ inheritance specification.
7192         * gengtype-state.c (state_writer::write_state_struct_type):
7193         Write base class of type (if any).
7194         (read_state_struct_type): Read base class of type (if any).
7195         * gengtype.c (new_structure): Add a "base_class" parameter.
7196         (create_optional_field_): Update for new parameter to new_structure.
7197         (adjust_field_rtx_def): Likewise.
7198         (adjust_field_tree_exp): Likewise.
7199         * gengtype.h (struct type): Add "base_class" field to the s
7200         union field.
7201         (new_structure): Add "base" parameter.
7203 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
7205         PR target/57756
7206         * config/i386/i386.c (ix86_option_override_internal):
7207         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
7208         (ix86_valid_target_attribute_tree):
7209         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
7210         Change TARGET_SSE to TARGET_SSE_P (opts->...)
7212 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
7214         * tree-ssa-loop.h: Remove include files.
7215         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7216         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
7217         * graphite-clast-to-gimple.c: Likewise.
7218         * graphite-scop-detection.c: Likewise.
7219         * graphite-sese-to-poly.c: Likewise.
7220         * ipa-inline-analysis.c: Likewise.
7221         * ipa-pure-const.c: Likewise.
7222         * loop-init.c: Likewise.
7223         * passes.c: Likewise.
7224         * predict.c: Likewise.
7225         * tree-cfg.c: Likewise.
7226         * tree-cfgcleanup.c: Likewise.
7227         * tree-chrec.c: Likewise.
7228         * tree-data-ref.c: Likewise.
7229         * tree-loop-distribution.c: Likewise.
7230         * tree-parloops.c: Likewise.
7231         * tree-predcom.c: Likewise.
7232         * tree-scalar-evolution.c: Likewise.
7233         * tree-ssa-address.c: Likewise.
7234         * tree-ssa.c: Likewise.
7235         * tree-ssa-dce.c: Likewise.
7236         * tree-ssa-loop.c: Likewise.
7237         * tree-ssa-loop-im.c: Likewise.
7238         * tree-ssa-loop-ivcanon.c: Likewise.
7239         * tree-ssa-loop-ivopts.c: Likewise.
7240         * tree-ssa-loop-manip.c: Likewise.
7241         * tree-ssa-loop-niter.c: Likewise.
7242         * tree-ssa-loop-prefetch.c: Likewise.
7243         * tree-ssa-loop-unswitch.c: Likewise.
7244         * tree-ssa-reassoc.c: Likewise.
7245         * tree-vect-data-refs.c: Likewise.
7246         * tree-vect-loop.c: Likewise.
7247         * tree-vect-loop-manip.c: Likewise.
7248         * tree-vectorizer.c: Likewise.
7249         * tree-vect-stmts.c: Likewise.
7250         * tree-vrp.c: Likewise.
7252 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7254         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
7256 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
7258         PR tree-optimization/58775
7259         PR tree-optimization/58791
7260         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
7261         (insert_stmt_after): Rewritten, don't move the stmt, but really
7262         insert it.
7263         (get_stmt_uid_with_default): Remove.
7264         (build_and_add_sum): Use insert_stmt_after and
7265         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
7266         (update_range_test): Set uid on stmts added by
7267         force_gimple_operand_gsi.  Don't immediately modify statements
7268         in inter-bb optimization, just update oe->op values.
7269         (optimize_range_tests): Return bool whether any changed have been made.
7270         (update_ops): New function.
7271         (struct inter_bb_range_test_entry): New type.
7272         (maybe_optimize_range_tests): Perform statement changes here.
7273         (not_dominated_by, appears_later_in_bb, get_def_stmt,
7274         ensure_ops_are_available): Remove.
7275         (find_insert_point): Rewritten.
7276         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
7277         return LHS of the (new resp. old) stmt.  Don't call
7278         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
7279         instead of last, move new stmt at the right place.
7280         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
7281         (negate_value): Likewise.  Set uids.
7282         (break_up_subtract_bb): Initialize uids.
7283         (reassociate_bb): Adjust rewrite_expr_tree caller.
7284         (do_reassoc): Don't call renumber_gimple_stmt_uids.
7286 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
7288         PR target/58838
7289         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
7290         TARGET_32BIT final condition.
7291         (mulsi3_internal2 and splitter): Same.
7293 2013-10-23  Jeff Law  <law@redhat.com>
7295         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
7296         through joiner blocks with abnormal outgoing edges.
7298         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
7299         Add parameter JOINERS, to allow/disallow threading through joiner
7300         blocks.
7301         (thread_block): New.  Call thread_block_1.
7302         (mark_threaded_blocks): Remove code to filter out certain cases
7303         of threading through joiner blocks.
7304         (thread_through_all_blocks): Document how we can have a dangling
7305         edge AUX field and clear it.
7307 2013-10-23  Ian Lance Taylor  <iant@google.com>
7309         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
7310         (C++ Dialect Options): Likewise.
7311         (Optimize Options): Likewise.
7313 2013-10-23  Tom de Vries  <tom@codesourcery.com>
7315         PR tree-optimization/58805
7316         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
7318 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
7320         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
7321         sequence based on get_range_info returned range.
7323 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
7325         * tree-ssa.h: Remove all #include's
7326         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7327         * alias.c: Move required includes from tree-ssa.h.
7328         * asan.c: Likewise.
7329         * builtins.c: Likewise.
7330         * calls.c: Likewise.
7331         * cfgexpand.c: Likewise.
7332         * cfghooks.c: Likewise.
7333         * cfgloop.c: Likewise.
7334         * cfgloopmanip.c: Likewise.
7335         * cgraph.c: Likewise.
7336         * cgraphbuild.c: Likewise.
7337         * cgraphclones.c: Likewise.
7338         * cgraphunit.c: Likewise.
7339         * dse.c: Likewise.
7340         * except.c: Likewise.
7341         * expr.c: Likewise.
7342         * final.c: Likewise.
7343         * fold-const.c: Likewise.
7344         * ggc-page.c: Likewise.
7345         * gimple-builder.c: Likewise.
7346         * gimple-fold.c: Likewise.
7347         * gimple-iterator.c: Likewise.
7348         * gimple-low.c: Likewise.
7349         * gimple-pretty-print.c: Likewise.
7350         * gimple-ssa-strength-reduction.c: Likewise.
7351         * gimple-streamer-in.c: Likewise.
7352         * gimple-streamer-out.c: Likewise.
7353         * gimplify.c: Likewise.
7354         * graphite-blocking.c: Likewise.
7355         * graphite-clast-to-gimple.c: Likewise.
7356         * graphite-dependences.c: Likewise.
7357         * graphite-interchange.c: Likewise.
7358         * graphite-optimize-isl.c: Likewise.
7359         * graphite-poly.c: Likewise.
7360         * graphite-scop-detection.c: Likewise.
7361         * graphite-sese-to-poly.c: Likewise.
7362         * graphite.c: Likewise.
7363         * ipa-cp.c: Likewise.
7364         * ipa-inline-analysis.c: Likewise.
7365         * ipa-inline-transform.c: Likewise.
7366         * ipa-inline.c: Likewise.
7367         * ipa-prop.c: Likewise.
7368         * ipa-pure-const.c: Likewise.
7369         * ipa-reference.c: Likewise.
7370         * ipa-split.c: Likewise.
7371         * ipa-utils.c: Likewise.
7372         * loop-init.c: Likewise.
7373         * lto-cgraph.c: Likewise.
7374         * lto-section-in.c: Likewise.
7375         * lto-section-out.c: Likewise.
7376         * lto-streamer-in.c: Likewise.
7377         * lto-streamer-out.c: Likewise.
7378         * lto-streamer.c: Likewise.
7379         * omp-low.c: Likewise.
7380         * passes.c: Likewise.
7381         * predict.c: Likewise.
7382         * print-tree.c: Likewise.
7383         * profile.c: Likewise.
7384         * sese.c: Likewise.
7385         * targhooks.c: Likewise.
7386         * tracer.c: Likewise.
7387         * trans-mem.c: Likewise.
7388         * tree-call-cdce.c: Likewise.
7389         * tree-cfg.c: Likewise.
7390         * tree-cfgcleanup.c: Likewise.
7391         * tree-chrec.c: Likewise.
7392         * tree-complex.c: Likewise.
7393         * tree-data-ref.c: Likewise.
7394         * tree-dfa.c: Likewise.
7395         * tree-eh.c: Likewise.
7396         * tree-emutls.c: Likewise.
7397         * tree-if-conv.c: Likewise.
7398         * tree-inline.c: Likewise.
7399         * tree-into-ssa.c: Likewise.
7400         * tree-loop-distribution.c: Likewise.
7401         * tree-mudflap.c: Likewise.
7402         * tree-nested.c: Likewise.
7403         * tree-nrv.c: Likewise.
7404         * tree-object-size.c: Likewise.
7405         * tree-outof-ssa.c: Likewise.
7406         * tree-parloops.c: Likewise.
7407         * tree-phinodes.c: Likewise.
7408         * tree-predcom.c: Likewise.
7409         * tree-pretty-print.c: Likewise.
7410         * tree-profile.c: Likewise.
7411         * tree-scalar-evolution.c: Likewise.
7412         * tree-sra.c: Likewise.
7413         * tree-ssa-address.c: Likewise.
7414         * tree-ssa-alias.c: Likewise.
7415         * tree-ssa-ccp.c: Likewise.
7416         * tree-ssa-coalesce.c: Likewise.
7417         * tree-ssa-copy.c: Likewise.
7418         * tree-ssa-copyrename.c: Likewise.
7419         * tree-ssa-dce.c: Likewise.
7420         * tree-ssa-dom.c: Likewise.
7421         * tree-ssa-dse.c: Likewise.
7422         * tree-ssa-forwprop.c: Likewise.
7423         * tree-ssa-ifcombine.c: Likewise.
7424         * tree-ssa-live.c: Likewise.
7425         * tree-ssa-loop-ch.c: Likewise.
7426         * tree-ssa-loop-im.c: Likewise.
7427         * tree-ssa-loop-ivcanon.c: Likewise.
7428         * tree-ssa-loop-ivopts.c: Likewise.
7429         * tree-ssa-loop-manip.c: Likewise.
7430         * tree-ssa-loop-niter.c: Likewise.
7431         * tree-ssa-loop-prefetch.c: Likewise.
7432         * tree-ssa-loop-unswitch.c: Likewise.
7433         * tree-ssa-loop.c: Likewise.
7434         * tree-ssa-math-opts.c: Likewise.
7435         * tree-ssa-operands.c: Likewise.
7436         * tree-ssa-phiopt.c: Likewise.
7437         * tree-ssa-phiprop.c: Likewise.
7438         * tree-ssa-pre.c: Likewise.
7439         * tree-ssa-propagate.c: Likewise.
7440         * tree-ssa-reassoc.c: Likewise.
7441         * tree-ssa-sccvn.c: Likewise.
7442         * tree-ssa-sink.c: Likewise.
7443         * tree-ssa-strlen.c: Likewise.
7444         * tree-ssa-structalias.c: Likewise.
7445         * tree-ssa-tail-merge.c: Likewise.
7446         * tree-ssa-ter.c: Likewise.
7447         * tree-ssa-threadedge.c: Likewise.
7448         * tree-ssa-threadupdate.c: Likewise.
7449         * tree-ssa-uncprop.c: Likewise.
7450         * tree-ssa-uninit.c: Likewise.
7451         * tree-ssa.c: Likewise.
7452         * tree-ssanames.c: Likewise.
7453         * tree-stdarg.c: Likewise.
7454         * tree-streamer-in.c: Likewise.
7455         * tree-switch-conversion.c: Likewise.
7456         * tree-tailcall.c: Likewise.
7457         * tree-vect-data-refs.c: Likewise.
7458         * tree-vect-generic.c: Likewise.
7459         * tree-vect-loop-manip.c: Likewise.
7460         * tree-vect-loop.c: Likewise.
7461         * tree-vect-patterns.c: Likewise.
7462         * tree-vect-slp.c: Likewise.
7463         * tree-vect-stmts.c: Likewise.
7464         * tree-vectorizer.c: Likewise.
7465         * tree-vrp.c: Likewise.
7466         * tree.c: Likewise.
7467         * tsan.c: Likewise.
7468         * value-prof.c: Likewise.
7469         * var-tracking.c: Likewise.
7470         * varpool.c: Likewise.
7471         * vtable-verify.c: Likewise.
7473 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7475         * config/tilegx/tilegx.c: Include "tree.h".
7477 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
7479         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
7480         the info, not after it.
7481         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
7482         dump_ssaname_info call.
7483         (pp_gimple_stmt_1): Adjust caller.
7484         (dump_phi_nodes): Likewise.  Don't print "# " here.
7486 2013-10-22  Jan Hubicka  <jh@suse.cz>
7488         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
7489         tuning flag.
7490         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
7491         * i386.c (expand_small_movmem_or_setmem): New function.
7492         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
7493         function.
7494         (alg_usable_p): Add support for value ranges; cleanup.
7495         (ix86_expand_set_or_movmem): Add support for misaligned moves.
7497 2013-10-22  Sterling Augustine  <saugustine@google.com>
7499         * doc/invoke.texi: Document -ggnu-pubnames.
7500         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
7501         logic.
7502         * dwarf2out.c: Include gdb/gdb-index.h.
7503         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
7504         debug_generate_pub_sections.
7505         (is_java, output_pubtables, output_pubname): New functions.
7506         (include_pubname_in_output): Handle debug_generate_pub_sections at
7507         level 2.
7508         (size_of_pubnames): Use new local space_for_flags based on
7509         debug_generate_pub_sections.
7510         (output_pubnames): Unify pubnames and pubtypes output logic.
7511         Genericize comments.  Call output_pubname.
7512         (dwarf2out_finish): Move logic to output_pubnames and call it.
7514 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
7516         PR target/58779
7517         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
7518         Remove CCCmode handling.
7519         <case LTU>: Return 'c' suffix for CCCmode.
7520         <case GEU>: Return 'nc' suffix for CCCmode.
7521         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
7522         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
7523         (*sub<mode>3_cc_overflow): Ditto.
7524         (*subsi3_zext_cc_overflow): Ditto.
7526 2013-10-22  Steve Ellcey  <sellcey@mips.com>
7528         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
7529         (AND (NOT OP1) (NOT OP2)).
7531 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
7533         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
7534         meaning of merge-high and merge-low masks for little endian; avoid
7535         use of vector-pack masks for little endian for mismatched modes.
7537 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7539         * config/tilepro/tilepro.c: Include "tree.h".
7541 2013-10-22  Andreas Schwab  <schwab@suse.de>
7543         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
7544         with PRE_DEC.
7546 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
7548         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
7549         [Ed Smith-Rowland]): New entries.
7550         ([Stephen M. Webb]): Update.
7552 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
7554         * tree-ssa-ter.h: Remove duplicate copy of file contents.
7556 2013-10-21  Marek Polacek  <polacek@redhat.com>
7558         PR middle-end/58809
7559         * fold-const.c (fold_range_test): Return 0 if the type is not
7560         an integral type.
7562 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
7564         * system.h: Move hwint.h include further down.
7565         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
7566         gcc_checking_asserts.
7567         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
7569 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7571         Fix volatile issues in optimize_bit_field_compare.
7572         * fold-const.c (optimize_bit_field_compare): Bail out if
7573         lvolatilep or rvolatilep.
7575 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7577         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
7578         and get_inner_reference returning different pmode for non-volatile
7579         bit-field members dependent on flag_strict_volatile_bitfields.
7580         * stor-layout.c (layout_decl): Remove special handling of
7581         flag_strict_volatile_bitfields.
7582         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
7583         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
7585 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
7587         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
7588         calculations.
7590 2013-10-21  Jeff Law  <law@redhat.com>
7592         * tree-ssa-threadedge.c (thread_through_normal_block): New
7593         argument VISITED.  Remove VISISTED as a local variable.  When we
7594         have a threadable jump, verify the destination of the jump has not
7595         been visised.
7596         (thread_across_edge): Allocate VISITED bitmap once at function
7597         scope and use it throughout.  Make sure to set appropriate bits in
7598         VISITED for E (start of jump thread path).
7599         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
7600         through a joiner if any edge on the path has a recorded jump thread.
7602 2013-10-21  Ian Lance Taylor  <iant@google.com>
7604         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
7605         don't imply that attributes can solve all problems.
7606         (Directory Options): Fix typo.
7608 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7610         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
7611         extend and extend_add.
7613 2013-10-21  Richard Biener  <rguenther@suse.de>
7615         PR tree-optimization/58794
7616         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
7617         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
7619 2013-10-21  Richard Biener  <rguenther@suse.de>
7621         PR middle-end/58742
7622         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
7623         to (T) X for sign-changing conversions (or no conversion).
7625 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
7627         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
7629 2013-10-20  Jan Hubicka  <jh@suse.cz>
7631         * config/i386/i386-tune.def: Add comment; organize into categories
7633 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
7635         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
7636         argument.  Update function comment.
7637         (expand_set_or_movmem_via_rep): New function combining
7638         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
7639         (expand_movmem_via_rep_mov): Remove.
7640         expand_setmem_via_rep_stos): Remove.
7641         (expand_movmem_epilogue): Update calls correspondingly.
7642         (expand_setmem_epilogue_via_loop): Likewise.
7643         (emit_memset): New.
7644         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
7645         (expand_set_or_movmem_prologue): New function combining
7646         expand_movmem_prologue and expand_setmem_prologue.
7647         (expand_movmem_prologue): Remove.
7648         (expand_setmem_prologue): Remove.
7649         (expand_set_or_movmem_constant_prologue): New function combining
7650         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
7651         (expand_constant_movmem_prologue): Remove.
7652         (expand_constant_setmem_prologue): Remove.
7653         (promote_duplicated_reg): Allow vector-const0 value.
7654         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
7655         and ix86_expand_setmem.
7656         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
7657         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
7659 2013-10-21  Diego Novillo  <dnovillo@google.com>
7661         * asan.c: Include tree.h
7662         * bb-reorder.c: Likewise.
7663         * cfgcleanup.c: Likewise.
7664         * cfgloopmanip.c: Likewise.
7665         * data-streamer-in.c: Likewise.
7666         * data-streamer-out.c: Likewise.
7667         * data-streamer.c: Likewise.
7668         * dwarf2cfi.c: Likewise.
7669         * graphite-blocking.c: Likewise.
7670         * graphite-clast-to-gimple.c: Likewise.
7671         * graphite-dependences.c: Likewise.
7672         * graphite-interchange.c: Likewise.
7673         * graphite-optimize-isl.c: Likewise.
7674         * graphite-poly.c: Likewise.
7675         * graphite-scop-detection.c: Likewise.
7676         * graphite-sese-to-poly.c: Likewise.
7677         * graphite.c: Likewise.
7678         * ipa-devirt.c: Likewise.
7679         * ipa-profile.c: Likewise.
7680         * ipa.c: Likewise.
7681         * ira.c: Likewise.
7682         * loop-init.c: Likewise.
7683         * loop-unroll.c: Likewise.
7684         * lower-subreg.c: Likewise.
7685         * lto/lto-object.c: Likewise.
7686         * recog.c: Likewise.
7687         * reginfo.c: Likewise.
7688         * tree-loop-distribution.c: Likewise.
7689         * tree-parloops.c: Likewise.
7690         * tree-ssa-strlen.c: Likewise.
7691         * tree-streamer.c: Likewise.
7692         * value-prof.c: Likewise.
7693         * target-globals.c: Likewise.
7694         * expr.h: Include tree-core.h instead of tree.h.
7695         * gimple.h: Likewise.
7696         * ipa-prop.h: Likewise.
7697         * ipa-utils.h: Likewise.
7698         * lto-streamer.h: Likewise.
7699         * streamer-hooks.h: Likewise.
7700         * ipa-reference.h: Include cgraph.h instead of tree.h.
7701         * cgraph.h: Include basic-block.h instead of tree.h.
7702         * tree-streamer.h: Do not include tree.h.
7703         * genattrtab.c (write_header): Generate inclusion of tree.h.
7704         * genautomata.c (main): Likewise.
7705         * genemit.c: Likewise.
7706         * genopinit.c: Likewise.
7707         * genoutput.c (output_prologue): Likewise.
7708         * genpeep.c: Likewise.
7710 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7712         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
7713         little endian.
7714         (vec_unpacku_hi_v8hi): Likewise.
7715         (vec_unpacku_lo_v16qi): Likewise.
7716         (vec_unpacku_lo_v8hi): Likewise.
7718 2013-10-20  Jan Hubicka  <jh@suse.cz>
7720         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
7721         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
7722         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
7724 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
7726         * config/mips/mips.h (ISA_HAS_WSBH): Define.
7727         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
7728         constants.
7729         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
7731 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
7733         PR target/58603
7734         * system.h: Undef m_slot.
7736 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7738         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
7739         all elements for both endian flavors.
7741 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
7743         PR target/58792
7744         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
7745         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
7746         and SI_REG for 64bit SYSV ABI targets.
7748 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
7750         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
7751         to multi_reg_return.  Clarify that we are skipping USEs of multiple
7752         return registers.  Use bool type where appropriate.
7754 2013-10-18  Jan Hubicka  <jh@suse.cz>
7756         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
7757         for cold functions.
7758         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
7759         (X86_TUNE_PUSH_MEMORY): Likewise.
7760         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
7761         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
7762         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
7763         New.
7764         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
7765         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
7766         Remove.
7767         (ix86_option_override_internal): Update to use tune features instead
7768         of variables.
7770 2013-10-18  Cong Hou  <congh@google.com>
7772         PR tree-optimization/58508
7773         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
7774         statement that contains data refs with zero-step.
7776 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
7778         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
7779         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
7780         * gimple-low.c (gimple_check_call_arg,
7781         gimple_check_call_matching_types): Move to cgraph.c.
7782         * gimple-low.h: Remove prototype.
7783         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
7784         Relocate from gimple-low.c.
7785         * cgraph.h: Add prototype.  Don't include basic-block.h.
7786         * gimplify.c: Add gimple-low to include list.
7787         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
7788         * tree-eh.c: Add gimple-low to include list.
7789         * tree-nested.c: Likewise.
7790         * cfgexpand.c: Add tree-ssa-address.h to include list.
7791         * expr.c: Likewise.
7792         * gimple-fold.c: Likewise.
7793         * gimple-ssa-strength-reduction.c: Likewise.
7794         * trans-mem.c: Likewise.
7795         * tree-mudflap.c: Likewise.
7796         * tree-ssa-loop-ivopts.c: Likewise.
7797         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
7798         (degenerate_phi_result): Move to tree-phinodes.c.
7799         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
7800         * tree-ssa-threadedge.c: Likewise.
7801         * tree-vrp.c: Likewise.
7802         * tree-phinodes.c (degenerate_phi_result): Relocate here.
7803         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
7804         * tree-phinodes.h (degenerate_phi_result): Add prototype.
7805         * tree-ssa-copy.c: Include tree-ssa-dom.h.
7806         * tree-ssa-forwprop.c: Likewise.
7807         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
7808         pass_data_cleanup_cfg_post_optimizing,
7809         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
7810         * tree-optimize.c: Delete File.
7811         * graphite.c: Include tree-cfgcleanup.h.
7812         * passes.c: Likewise.
7813         * tree-cfg.c: Likewise.
7814         * tree-profile.c: Likewise.
7815         * tree-ssa-dse.c: Likewise.
7816         * tree-ssa-loop-ivcanon.c: Likewise.
7817         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
7818         * tree-outof-ssa.c: Include sbitmap.h.
7819         * tree-ssa-live.c: Likewise.
7820         * tree-ssa-propagate.c: Likewise.
7821         * tree-ssa-structalias.c: Likewise.
7822         * tree-stdarg.c: Likewise.
7823         * Makefile.in (OBJS): Delete tree-optimize.o.
7824         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
7825         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
7826         * varasm.c: Include basic-block.h.
7827         * cfgloop.h: Include function.h instead of basic-block.h
7828         (bb_loop_depth): Move to cfgloop.c.
7829         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
7831 2013-10-18  Teresa Johnson  <tejohnson@google.com>
7833         * predict.c (probably_never_executed): Compare frequency-based
7834         count to number of training runs.
7835         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
7837 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7839         * config/arm/arm.c (cortexa9_extra_costs): New table.
7840         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
7842 2013-10-18  Jeff Law  <law@redhat.com>
7844         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
7846         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
7847         (register_jump_thread): Add "registered_jump_thread" debug
7848         counter support.
7849         * dbgcnt.def (registered_jump_thread): New debug counter.
7851 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
7853         * config/rs6000/rs6000.c: Include cgraph.h.
7855 2013-10-18  Teresa Johnson  <tejohnson@google.com>
7857         * tree-ssa-tail-merge.c (replace_block_by): Update edge
7858         weights during merging.
7860 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
7862         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
7863         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
7864         * tree-ssa-operands.h: Remove prototype.
7865         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
7866         * gimple.c (virtual_operand_p): Relocate from gimple.c.
7867         * gimple.h: Add prototype.
7868         * gimple-ssa.h: Include tree-ssa-operands.h.
7869         * tree-dump.c: Add tree-cfg.h to include list.
7870         * tree-ssa-alias.c: Add ipa-reference.h to include list.
7871         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
7872         * config/i386/i386.c: Don't include tree-flow.h.
7873         * config/rs6000/rs6000.c: Likewise.
7875 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7877         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
7879 2013-10-18  Richard Biener  <rguenther@suse.de>
7881         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
7882         or TYPE_UNSIGNED of integral types.
7883         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
7884         NULL_TREE for zero-precision integral types.
7886 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
7888         * config/aarch64/arm_neon.h
7889         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
7891 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
7893         PR target/57756
7894         * opth-gen.awk: Define target_flags_explicit.
7896 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
7898         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
7899         fields to the reg_addr array that describes the valid addressing
7900         mode for any register, general purpose registers, floating point
7901         registers, and Altivec registers.
7902         (FIRST_RELOAD_REG_CLASS): Likewise.
7903         (LAST_RELOAD_REG_CLASS): Likewise.
7904         (struct reload_reg_map_type): Likewise.
7905         (reload_reg_map_type): Likewise.
7906         (RELOAD_REG_VALID): Likewise.
7907         (RELOAD_REG_MULTIPLE): Likewise.
7908         (RELOAD_REG_INDEXED): Likewise.
7909         (RELOAD_REG_OFFSET): Likewise.
7910         (RELOAD_REG_PRE_INCDEC): Likewise.
7911         (RELOAD_REG_PRE_MODIFY): Likewise.
7912         (reg_addr): Likewise.
7913         (mode_supports_pre_incdec_p): New helper functions to say whether
7914         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
7915         (mode_supports_pre_modify_p): Likewise.
7916         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
7917         print the valid address mode bits for each mode.
7918         (rs6000_debug_print_mode): Likewise.
7919         (rs6000_debug_reg_global): Likewise.
7920         (rs6000_setup_reg_addr_masks): New function to set up the address
7921         mask bits for each type.
7922         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
7923         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
7924         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
7925         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
7926         PRE_MODIFY are supported.
7927         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
7928         registers, instead of {src,dest}_av_p.
7929         (rs6000_print_options_internal): Tweak the debug output slightly.
7931 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
7933         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
7934         isa attribute.
7936 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
7938         * tree-flow.h (struct omp_region): Move to omp-low.c.
7939         Remove omp_ prototypes and variables.
7940         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
7941         (copy_var_decl): Relocate prototype from tree-flow.h.
7942         * gimple.c (copy_var_decl): Relocate from omp-low.c.
7943         * tree.h: Move prototype to omp-low.h.
7944         * omp-low.h: New File.  Relocate prototypes here.
7945         * omp-low.c (struct omp_region): Make local here.
7946         (root_omp_region): Make static.
7947         (copy_var_decl) Move to gimple.c.
7948         (new_omp_region): Make static.
7949         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
7950         * tree-cfg.c: Include omp-low.h.
7951         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
7952         * gimplify.c: Include omp-low.h.
7953         * tree-parloops.c: Likewise.
7955 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
7957         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
7958         operands are in memory, prefer to force non-matched operand 1 to
7959         the register.
7961 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
7963         PR target/58673
7964         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
7965         restrict TImode addresses to single indirect registers if both
7966         -mquad-memory and -mvsx-timode are used.
7967         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
7968         we should emit load/store quad.  Remove using %y for quad memory
7969         addresses.
7971         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
7972         constraints to allow load/store quad on machines where TImode is
7973         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
7974         for TImode to load integer constants.
7976 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7978         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
7980 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7982         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
7983         handling of STACK_REG.
7985 2013-10-17  Richard Biener  <rguenther@suse.de>
7987         PR tree-optimization/58143
7988         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
7989         New function.
7990         (rewrite_to_defined_overflow): Likewise.
7991         (move_computations_dom_walker::before_dom): Rewrite stmts
7992         with undefined signed overflow that are not always executed
7993         into unsigned arithmetic.
7995 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
7997         PR target/57756
7998         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
7999         explicit isa flag to be an options variable, instead of using
8000         global_options_set.  Remove define from rs6000.h.
8001         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
8003         * config/rs6000/rs6000.c (rs6000_option_override_internal):
8004         Initialize rs6000_isa_flags_explicit.
8005         (rs6000_function_specific_save): Add gcc_options* parameter, so
8006         that the powerpc builds after the 2013-10-15 changes.
8007         (rs6000_function_specific_restore): Likewise.
8009 2013-10-16  DJ Delorie  <dj@redhat.com>
8011         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
8012         op is a REG before checking REGNO.
8013         (rl78_alloc_physical_registers): Verify pattern is a SET before
8014         checking SET_SRC.
8016 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8018         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
8019         endianness.
8020         (vec_unpacks_lo_v4sf): Likewise.
8021         (vec_unpacks_float_hi_v4si): Likewise.
8022         (vec_unpacks_float_lo_v4si): Likewise.
8023         (vec_unpacku_float_hi_v4si): Likewise.
8024         (vec_unpacku_float_lo_v4si): Likewise.
8026 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8028         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
8029         (vsx_concat_v2sf): Likewise.
8031 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
8033         * config/aarch64/aarch64.md
8034         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
8036 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
8038         PR tree-optimization/58697
8039         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
8040         estimated_loop_iterations_int.
8041         (max_stmt_executions_int): Call get_max_loop_iterations_int.
8042         (get_max_loop_iterations_int): New.  HWINT version of
8043         get_max_loop_iterations.
8044         * cfgloop.h: Add prototypes.
8045         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
8046         * loop-unroll.c (decide_peel_once_rolling): Call
8047         get_estimated_loop_iterations_int.
8048         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
8049         * tree-ssa-loop-niter.h: Tweak prototypes.
8051 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
8053         * gengtype-parse.c (struct_field_seq): Ignore access-control
8054         keywords ("public:" etc).
8056 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8058         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
8059         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
8061 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
8063         * config/arm/arm.opt (mlra): New option.
8064         * config/arm/arm.c (arm_lra_p): New function.
8065         (TARGET_LRA_P): Define.
8067 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
8069         * tree-core.h (tree_code_name): Remove.
8070         * tree.h (get_tree_code_name): New prototype.
8071         * tree.c (tree_code_name): Make static.
8072         (get_tree_code_name): New function.
8073         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
8074         tree_class_check_failed, tree_range_check_failed,
8075         tree_not_class_check_failed, omp_clause_check_failed,
8076         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
8077         wrapper get_tree_code_name instead of calling tree_code_name directly.
8078         * tree-vrp.c (dump_asserts_for): Likewise.
8079         * tree-dump.c (dequeue_and_dump): Likewise.
8080         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
8081         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
8082         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
8083         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
8084         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
8085         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
8086         dump_gimple_omp_for): Likewise.
8087         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
8088         * tree-ssa-pre.c (print_pre_expr): Likewise.
8089         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
8090         * print-tree.c (print_node_brief, print_node): Likewise.
8091         * gimple.c (gimple_check_failed): Likewise.
8092         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
8093         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
8094         * config/mep/mep.c (mep_validate_vliw): Likewise.
8095         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
8096         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
8098 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
8100         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
8101         for AMD bdver3.
8103 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
8105         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
8106         (MULTILIB_MATCHES): Add multilib for -march=v8.
8108 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
8110         PR target/57756
8111         * optc-save-gen.awk: Add extra parameter to the save and restore
8112         target calls.
8113         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
8114         * tree.c (build_optimization_node): New parameter.  Add extra parameter
8115         to call to cl_optimization_save.
8116         (build_target_option_node): New parameter. Add extra parameter
8117         to call to cl_target_option_save.
8118         * tree.h (build_optimization_node): New parameter.
8119         (build_target_option_node): New parameter.
8120         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
8121         build_optimization_node and build_target_option_node.
8122         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
8123         (handle_pragma_push_options): Ditto.
8124         * toplev.c (process_options): Ditto.
8125         * opts.c (init_options_struct): Check for opts_set non-null.
8126         * target.def (target_option.save): New parameter.
8127         (target_option.restore): New parameter.
8128         * tm.texi: Generate.
8129         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
8130         (ix86_pragma_target_parse): Ditto.
8131         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
8132         parameters.
8133         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
8134         to  build_optimization_node and build_target_option_node.
8135         (rs6000_valid_attribute_p): Ditto.
8136         (rs6000_pragma_target_parse): Ditto.
8137         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
8138         data.
8139         * config/i386/i386.h:
8140         TARGET_64BIT_P: New Macro
8141         TARGET_MMX_P: New Macro.
8142         TARGET_3DNOW_P: New Macro.
8143         TARGET_3DNOW_A_P: New Macro.
8144         TARGET_SSE_P: New Macro.
8145         TARGET_SSE2_P: New Macro.
8146         TARGET_SSE3_P: New Macro.
8147         TARGET_SSSE3_P: New Macro.
8148         TARGET_SSE4_1_P: New Macro.
8149         TARGET_SSE4_2_P: New Macro.
8150         TARGET_AVX_P: New Macro.
8151         TARGET_AVX2_P: New Macro.
8152         TARGET_AVX512F_P: New Macro.
8153         TARGET_AVX512PF_P: New Macro.
8154         TARGET_AVX512ER_P: New Macro.
8155         TARGET_AVX512CD_P: New Macro.
8156         TARGET_FMA_P: New Macro.
8157         TARGET_SSE4A_P: New Macro.
8158         TARGET_FMA4_P: New Macro.
8159         TARGET_XOP_P: New Macro.
8160         TARGET_LWP_P: New Macro.
8161         TARGET_ABM_P: New Macro.
8162         TARGET_BMI_P: New Macro.
8163         TARGET_BMI2_P: New Macro.
8164         TARGET_LZCNT_P: New Macro.
8165         TARGET_TBM_P: New Macro.
8166         TARGET_POPCNT_P: New Macro.
8167         TARGET_SAHF_P: New Macro.
8168         TARGET_MOVBE_P: New Macro.
8169         TARGET_CRC32_P: New Macro.
8170         TARGET_AES_P: New Macro.
8171         TARGET_PCLMUL_P: New Macro.
8172         TARGET_CMPXCHG16B_P: New Macro.
8173         TARGET_FSGSBASE_P: New Macro.
8174         TARGET_RDRND_P: New Macro.
8175         TARGET_F16C_P: New Macro.
8176         TARGET_RTM_P: New Macro.
8177         TARGET_HLE_P: New Macro.
8178         TARGET_RDSEED_P: New Macro.
8179         TARGET_PRFCHW_P: New Macro.
8180         TARGET_ADX_P: New Macro.
8181         TARGET_FXSR_P: New Macro.
8182         TARGET_XSAVE_P: New Macro.
8183         TARGET_XSAVEOPT_P: New Macro.
8184         TARGET_LP64_P: New Macro.
8185         TARGET_X32_P: New Macro.
8186         TARGET_FPMATH_DEFAULT_P: New Macro.
8187         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
8188         * config/i386/i386.c (ix86_option_override_internal): New parameters.
8189         opts and opts_set.
8190         Change ix86_tune_string to access opts->x_ix86_tune_string.
8191         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
8192         Change ix86_arch_string to access opts->x_ix86_arch_string.
8193         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
8194         Change ix86_pmode to access opts->x_ix86_pmode.
8195         Change ix86_abi to access opts->x_ix86_abi.
8196         Change ix86_cmodel to access opts->x_ix86_cmodel.
8197         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
8198         Change ix86_isa_flags_explicit to access
8199         opts->x_ix86_isa_flags_explicit.
8200         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
8201         Change ix86_regparm to access opts->x_ix86_regparm.
8202         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
8203         Change ix86_preferred_stack_boundary_arg to access
8204         opts->x_ix86_preferred_stack_boundary_arg.
8205         Change ix86_force_align_arg_pointer to access
8206         opts->x_ix86_force_align_arg_pointer.
8207         Change ix86_incoming_stack_boundar_arg to access
8208         opts->x_ix86_incoming_stack_boundar_arg.
8209         Change ix86_fpmath to access opts->x_ix86_fpmath.
8210         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
8211         Change ix86_recip_name to access opts->x_ix86_recip_name.
8212         Change ix86_stack_protector_guard to access
8213         opts->x_ix86_stack_protector_guard.
8214         Change ix86_tune_memcpy_strategy to access
8215         opts->x_ix86_tune_memcpy_strategy.
8216         Change ix86_tune_memset_strategy to access
8217         opts->x_ix86_tune_memset_strategy.
8218         Change global_options to access opts.
8219         Change global_options_set to access opts_set.
8220         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
8221         Change TARGET_MMX to TARGET_MMX_P (opts->...).
8222         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
8223         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
8224         Change TARGET_SSE to TARGET_SSE_P (opts->...).
8225         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
8226         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
8227         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
8228         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
8229         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
8230         Change TARGET_AVX to TARGET_AVX_P (opts->...).
8231         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
8232         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
8233         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
8234         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
8235         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
8236         Change TARGET_FMA to TARGET_FMA_P (opts->...).
8237         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
8238         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
8239         Change TARGET_XOP to TARGET_XOP_P (opts->...).
8240         Change TARGET_LWP to TARGET_LWP_P (opts->...).
8241         Change TARGET_ABM to TARGET_ABM_P (opts->...).
8242         Change TARGET_BMI to TARGET_BMI_P (opts->...).
8243         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
8244         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
8245         Change TARGET_TBM to TARGET_TBM_P (opts->...).
8246         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
8247         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
8248         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
8249         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
8250         Change TARGET_AES to TARGET_AES_P (opts->...).
8251         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
8252         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
8253         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
8254         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
8255         Change TARGET_F16C to TARGET_F16C_P (opts->...).
8256         Change TARGET_RTM to TARGET_RTM_P (opts->...).
8257         Change TARGET_HLE to TARGET_HLE_P (opts->...).
8258         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
8259         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
8260         Change TARGET_ADX to TARGET_ADX_P (opts->...).
8261         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
8262         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
8263         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
8264         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
8265         Change TARGET_X32 to TARGET_X32_P (opts->...).
8266         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
8267         Change TARGET_FLOAT_RETURNS_IN_80387 to
8268         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
8269         (ix86_function_specific_save): New parameter. Use opts-> fields
8270         to replace global fields.
8271         (ix86_function_specific_restore): Ditto.
8272         (ix86_valid_target_attribute_inner_p): New parameters.
8273         Fix recursive call.
8274         Fix call to ix86_handle_option and set_option.
8275         (ix86_valid_target_attribute_tree): New parameters.
8276         Change global_options to access opts.
8277         Change global_options_set to access opts_set.
8278         Fix call to ix86_valid_target_attribute_inner_p.
8279         Change ix86_tune_string to access opts->x_ix86_tune_string.
8280         Change ix86_arch_string to access opts->x_ix86_arch_string.
8281         Change ix86_fpmath to access opts->x_ix86_fpmath
8282         Fix call to ix86_option_override_internal.
8283         Fix call to ix86_add_new_builtins.
8284         Fix calls to build_optimization_node and build_target_option_node.
8285         (ix86_valid_target_attribute_p): Remove access to global_options.
8286         Use new gcc_options structure func_options.
8287         Fix call to ix86_valid_target_attribute_tree.
8288         Fix call to  build_optimization_node.
8289         (get_builtin_code_for_version): Fix call to
8290         ix86_valid_target_attribute_tree.
8292 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
8294         * Makefile.in (PICFLAG): New.
8295         (enable_host_shared): New.
8296         (INTERNAL_CFLAGS): Use PICFLAG.
8297         (LIBIBERTY): Use pic build of libiberty.a if configured with
8298         --enable-host-shared.
8299         * configure.ac: Add --enable-host-shared, setting up new
8300         PICFLAG variable.
8301         * configure: Regenerate.
8302         * doc/install.texi (--enable-shared): Add note contrasting it with ...
8303         (--enable-host-shared): New option.
8305 2013-10-15  Richard Biener  <rguenther@suse.de>
8307         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
8308         for built-in functions.
8310 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8312         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
8313         (optimize_range_tests_1): New function,
8314         extracted from optimize_range_tests.
8315         (optimize_range_tests_xor): Similarly.
8316         (optimize_range_tests_diff): New function.
8317         (optimize_range_tests): Use optimize_range_tests_1.
8319 2013-10-15  Cong Hou  <congh@google.com>
8321         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
8322         requirement of the reduction pattern so that one operand of the
8323         reduction operation can come from outside of the loop.
8325 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8327         * config/arm/neon-schedgen.ml: Remove.
8328         * config/arm/cortex-a9-neon.md: Remove comment regarding
8329         neon-schedgen.ml.
8331 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8333         * config/arm/types: Remove old neon types.
8335 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8337         * config/arm/cortex-a7.md
8338         (cortex_a7_neon_type): New.
8339         (cortex_a7_neon_mul): Update for new types.
8340         (cortex_a7_neon_mla): Likewise.
8341         (cortex_a7_neon): Likewise.
8343 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8345         * config/arm/cortex-a15-neon.md
8346         (cortex_a15_neon_type): New,
8348         (cortex_a15_neon_int_1): Remove.
8349         (cortex_a15_neon_int_2): Likewise.
8350         (cortex_a15_neon_int_3): Likewise.
8351         (cortex_a15_neon_int_4): Likewise.
8352         (cortex_a15_neon_int_5): Likewise.
8353         (cortex_a15_neon_vqneg_vqabs): Likewise.
8354         (cortex_a15_neon_vmov): Likewise.
8355         (cortex_a15_neon_vaba): Likewise.
8356         (cortex_a15_neon_vaba_qqq): Likewise.
8357         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8358         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8359         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8360         Likewise.
8361         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8362         (cortex_a15_neon_mla_qqq_8_16): Likewise.
8363         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
8364         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8365         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8366         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
8367         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8368         (cortex_a15_neon_shift_1): Likewise.
8369         (cortex_a15_neon_shift_2): Likewise.
8370         (cortex_a15_neon_shift_3): Likewise.
8371         (cortex_a15_neon_vshl_ddd): Likewise.
8372         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8373         (cortex_a15_neon_vsra_vrsra): Likewise.
8374         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8375         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8376         (cortex_a15_neon_bp_3cycle): Likewise.
8377         (cortex_a15_neon_ldm_2): Likewise.
8378         (cortex_a15_neon_stm_2): Likewise.
8379         (cortex_a15_neon_mcr): Likewise.
8380         (cortex_a15_neon_mrc): Likewise.
8381         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
8382         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
8383         (cortex_a15_neon_fp_vmul_ddd): Likewise.
8384         (cortex_a15_neon_fp_vmul_qqd): Likewise.
8385         (cortex_a15_neon_fp_vmla_ddd): Likewise.
8386         (cortex_a15_neon_fp_vmla_qqq): Likewise.
8387         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8388         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8389         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8390         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8391         (cortex_a15_neon_bp_simple): Likewise.
8392         (cortex_a15_neon_bp_2cycle): Likewise.
8393         (cortex_a15_neon_bp_3cycle): Likewise.
8394         (cortex_a15_neon_vld1_1_2_regs): Likewise.
8395         (cortex_a15_neon_vld1_3_4_regs): Likewise.
8396         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8397         (cortex_a15_neon_vld2_4_regs): Likewise.
8398         (cortex_a15_neon_vld3_vld4): Likewise.
8399         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8400         (cortex_a15_neon_vst1_3_4_regs): Likewise.
8401         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
8402         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
8403         (cortex_a15_neon_vst3_vst4): Rename to...
8404         (cortex_a15_neon_vst4): This, update for new attributes.
8405         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
8406         (cortex_a15_neon_vld3_vld4_lane): Likewise.
8407         (cortex_a15_neon_vst1_vst2_lane): Likewise.
8408         (cortex_a15_neon_vst3_vst4_lane): Likewise.
8409         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
8410         (cortex_a15_neon_ldm_2): Likewise.
8411         (cortex_a15_neon_stm_2): Likewise.
8412         (cortex_a15_neon_mcr): Likewise.
8413         (cortex_a15_neon_mcr_2_mcrr): Likewise.
8414         (cortex_a15_neon_mrc): Likewise.
8415         (cortex_a15_neon_mrrc): Likewise.
8417         (cortex_a15_neon_abd): New.
8418         (cortex_a15_neon_abd_q): Likewise.
8419         (cortex_a15_neon_aba): Likewise.
8420         (cortex_a15_neon_aba_q): Likewise.
8421         (cortex_a15_neon_acc): Likewise.
8422         (cortex_a15_neon_acc_q): Likewise.
8423         (cortex_a15_neon_arith_basic): Likewise.
8424         (cortex_a15_neon_arith_complex): Likewise.
8425         (cortex_a15_neon_multiply): Likewise.
8426         (cortex_a15_neon_multiply_q): Likewise.
8427         (cortex_a15_neon_mla): Likewise.
8428         (cortex_a15_neon_mla_q): Likewise.
8429         (cortex_a15_neon_sat_mla_long): Likewise.
8430         (cortex_a15_neon_shift_acc): Likewise.
8431         (cortex_a15_neon_shift_imm_basic): Likewise.
8432         (cortex_a15_neon_shift_imm_complex): Likewise.
8433         (cortex_a15_neon_shift_reg_basic): Likewise.
8434         (cortex_a15_neon_shift_reg_basic_q): Likewise.
8435         (cortex_a15_neon_shift_reg_complex): Likewise.
8436         (cortex_a15_neon_shift_reg_complex_q): Likewise.
8437         (cortex_a15_neon_fp_negabs): Likewise
8438         (cortex_a15_neon_fp_arith): Likewise
8439         (cortex_a15_neon_fp_arith_q): Likewise
8440         (cortex_a15_neon_fp_cvt_int): Likewise
8441         (cortex_a15_neon_fp_cvt_int_q): Likewise
8442         (cortex_a15_neon_fp_cvt_16): Likewise
8443         (cortex_a15_neon_fp_mul): Likewise
8444         (cortex_a15_neon_fp_mul_q): Likewise
8445         (cortex_a15_neon_fp_mla): Likewise
8446         (cortex_a15_neon_fp_mla_q): Likewise
8447         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
8448         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
8449         (cortex_a15_neon_bitops): Likewise.
8450         (cortex_a15_neon_bitops_q): Likewise.
8451         (cortex_a15_neon_from_gp): Likewise.
8452         (cortex_a15_neon_from_gp_q): Likewise.
8453         (cortex_a15_neon_tbl3_tbl4): Likewise.
8454         (cortex_a15_neon_zip_q): Likewise.
8455         (cortex_a15_neon_to_gp): Likewise.
8456         (cortex_a15_neon_load_a): Likewise.
8457         (cortex_a15_neon_load_b): Likewise.
8458         (cortex_a15_neon_load_c): Likewise.
8459         (cortex_a15_neon_load_d): Likewise.
8460         (cortex_a15_neon_load_e): Likewise.
8461         (cortex_a15_neon_load_f): Likewise.
8462         (cortex_a15_neon_store_a): Likewise.
8463         (cortex_a15_neon_store_b): Likewise.
8464         (cortex_a15_neon_store_c): Likewise.
8465         (cortex_a15_neon_store_d): Likewise.
8466         (cortex_a15_neon_store_e): Likewise.
8467         (cortex_a15_neon_store_f): Likewise.
8468         (cortex_a15_neon_store_g): Likewise.
8469         (cortex_a15_neon_store_h): Likewise.
8470         (cortex_a15_vfp_to_from_gp): Likewise.
8472 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8474         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
8476         (cortex_a9_neon_vshl_ddd): Remove.
8477         (cortex_a9_neon_vst3_vst4): Likewise.
8478         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8480         (cortex_a9_neon_bit_ops_q): New.
8482         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
8483         (cortex_a9_neon_int_2): Likewise.
8484         (cortex_a9_neon_int_3): Likewise.
8485         (cortex_a9_neon_int_4): Likewise.
8486         (cortex_a9_neon_int_5): Likewise.
8487         (cortex_a9_neon_vqneg_vqabs): Likewise.
8488         (cortex_a9_neon_vmov): Likewise.
8489         (cortex_a9_neon_vaba): Likewise.
8490         (cortex_a9_neon_vaba_qqq): Likewise.
8491         (cortex_a9_neon_shift_1): Likewise.
8492         (cortex_a9_neon_shift_2): Likewise.
8493         (cortex_a9_neon_shift_3): Likewise.
8494         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8495         (cortex_a9_neon_vsra_vrsra): Likewise.
8496         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8497         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8498         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8499         Likewise.
8500         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8501         (cortex_a9_neon_mla_qqq_8_16): Likewise.
8502         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8503         Likewise.
8504         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8505         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8506         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
8507         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8508         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
8509         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
8510         (cortex_a9_neon_fp_vsum): Likewise.
8511         (cortex_a9_neon_fp_vmul_ddd): Likewise.
8512         (cortex_a9_neon_fp_vmul_qqd): Likewise.
8513         (cortex_a9_neon_fp_vmla_ddd): Likewise.
8514         (cortex_a9_neon_fp_vmla_qqq): Likewise.
8515         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
8516         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
8517         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8518         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8519         (cortex_a9_neon_bp_simple): Likewise.
8520         (cortex_a9_neon_bp_2cycle): Likewise.
8521         (cortex_a9_neon_bp_3cycle): Likewise.
8522         (cortex_a9_neon_ldr): Likewise.
8523         (cortex_a9_neon_str): Likewise.
8524         (cortex_a9_neon_vld1_1_2_regs): Likewise.
8525         (cortex_a9_neon_vld1_3_4_regs): Likewise.
8526         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8527         (cortex_a9_neon_vld2_4_regs): Likewise.
8528         (cortex_a9_neon_vld3_vld4): Likewise.
8529         (cortex_a9_neon_vld1_vld2_lane): Likewise.
8530         (cortex_a9_neon_vld3_vld4_lane): Likewise.
8531         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8532         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8533         (cortex_a9_neon_vst1_3_4_regs): Likewise.
8534         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
8535         (cortex_a9_neon_vst1_vst2_lane): Likewise.
8536         (cortex_a9_neon_vst3_vst4_lane): Likewise.
8537         (cortex_a9_neon_mcr): Likewise.
8538         (cortex_a9_neon_mcr_2_mcrr): Likewise.
8539         (cortex_a9_neon_mrc): Likewise.
8540         (cortex_a9_neon_mrrc): Likewise.
8542 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8544         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
8546         (cortex_a8_neon_vshl_ddd): Remove.
8547         (cortex_a8_neon_vst3_vst4): Likewise.
8548         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
8550         (cortex_a8_neon_bit_ops_q): New.
8552         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
8553         (cortex_a8_neon_int_2): Likewise..
8554         (cortex_a8_neon_int_3): Likewise.
8555         (cortex_a8_neon_int_5): Likewise.
8556         (cortex_a8_neon_vqneg_vqabs): Likewise.
8557         (cortex_a8_neon_int_4): Likewise.
8558         (cortex_a8_neon_vaba): Likewise.
8559         (cortex_a8_neon_vaba_qqq): Likewise.
8560         (cortex_a8_neon_shift_1): Likewise.
8561         (cortex_a8_neon_shift_2): Likewise.
8562         (cortex_a8_neon_shift_3): Likewise.
8563         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8564         (cortex_a8_neon_vsra_vrsra): Likewise.
8565         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8566         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8567         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8568         Likewise.
8569         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8570         (cortex_a8_neon_mla_qqq_8_16): Likewise.
8571         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8572         Likewise.
8573         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8574         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8575         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
8576         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8577         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
8578         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
8579         (cortex_a8_neon_fp_vsum): Likewise.
8580         (cortex_a8_neon_fp_vmul_ddd): Likewise.
8581         (cortex_a8_neon_fp_vmul_qqd): Likewise.
8582         (cortex_a8_neon_fp_vmla_ddd): Likewise.
8583         (cortex_a8_neon_fp_vmla_qqq): Likewise.
8584         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
8585         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
8586         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8587         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8588         (cortex_a8_neon_bp_simple): Likewise.
8589         (cortex_a8_neon_bp_2cycle): Likewise.
8590         (cortex_a8_neon_bp_3cycle): Likewise.
8591         (cortex_a8_neon_ldr): Likewise.
8592         (cortex_a8_neon_str): Likewise.
8593         (cortex_a8_neon_vld1_1_2_regs): Likewise.
8594         (cortex_a8_neon_vld1_3_4_regs): Likewise.
8595         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8596         (cortex_a8_neon_vld2_4_regs): Likewise.
8597         (cortex_a8_neon_vld3_vld4): Likewise.
8598         (cortex_a8_neon_vld1_vld2_lane): Likewise.
8599         (cortex_a8_neon_vld3_vld4_lane): Likewise.
8600         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8601         (cortex_a8_neon_vst1_3_4_regs): Likewise.
8602         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
8603         (cortex_a8_neon_vst1_vst2_lane): Likewise.
8604         (cortex_a8_neon_vst3_vst4_lane): Likewise.
8605         (cortex_a8_neon_mcr): Likewise.
8606         (cortex_a8_neon_mcr_2_mcrr): Likewise.
8607         (cortex_a8_neon_mrc): Likewise.
8608         (cortex_a8_neon_mrrc): Likewise.
8610 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8612         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
8613         (fp): New.
8614         * config/aarch64/aarch64-simd.md (neon_type): Remove.
8615         (aarch64_simd_dup<mode>): Add "type" attribute.
8616         (aarch64_dup_lane<mode>): Likewise.
8617         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
8618         (*aarch64_simd_mov<mode>): Likewise.
8619         (aarch64_simd_mov_from_<mode>low): Likewise.
8620         (aarch64_simd_mov_from_<mode>high): Likewise.
8621         (orn<mode>3): Likewise.
8622         (bic<mode>3): Likewise.
8623         (add<mode>3): Likewise.
8624         (sub<mode>3): Likewise.
8625         (mul<mode>3): Likewise.
8626         (*aarch64_mul3_elt<mode>): Likewise.
8627         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
8628         (*aarch64_mul3_elt_to_128df): Likewise.
8629         (*aarch64_mul3_elt_to_64v2df): Likewise.
8630         (neg<mode>2): Likewise.
8631         (abs<mode>2): Likewise.
8632         (abd<mode>_3): Likewise.
8633         (aba<mode>_3): Likewise.
8634         (fabd<mode>_3): Likewise.
8635         (*fabd_scalar<mode>3): Likewise.
8636         (and<mode>3): Likewise.
8637         (ior<mode>3): Likewise.
8638         (xor<mode>3): Likewise.
8639         (one_cmpl<mode>2): Likewise.
8640         (aarch64_simd_vec_set<mode>): Likewise.
8641         (aarch64_simd_lshr<mode>): Likewise.
8642         (aarch64_simd_ashr<mode>): Likewise.
8643         (aarch64_simd_imm_shl<mode>): Likewise.
8644         (aarch64_simd_reg_sshl<mode): Likewise.
8645         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
8646         (aarch64_simd_reg_shl<mode>_signed): Likewise.
8647         (aarch64_simd_vec_setv2di): Likewise.
8648         (aarch64_simd_vec_set<mode>): Likewise.
8649         (aarch64_mla<mode>): Likewise.
8650         (*aarch64_mla_elt<mode>): Likewise.
8651         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
8652         (aarch64_mls<mode>): Likewise.
8653         (*aarch64_mls_elt<mode>): Likewise.
8654         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
8655         (<su><maxmin><mode>3): Likewise.
8656         (move_lo_quad_<mode>): Likewise.
8657         (aarch64_simd_move_hi_quad_<mode>): Likewise.
8658         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
8659         (vec_pack_trunc_<mode>): Likewise.
8660         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
8661         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
8662         (*aarch64_<su>mlal_lo<mode>): Likewise.
8663         (*aarch64_<su>mlal_hi<mode>): Likewise.
8664         (*aarch64_<su>mlsl_lo<mode>): Likewise.
8665         (*aarch64_<su>mlsl_hi<mode>): Likewise.
8666         (*aarch64_<su>mlal<mode>): Likewise.
8667         (*aarch64_<su>mlsl<mode>): Likewise.
8668         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
8669         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
8670         (add<mode>3): Likewise.
8671         (sub<mode>3): Likewise.
8672         (mul<mode>3): Likewise.
8673         (div<mode>3): Likewise.
8674         (neg<mode>2): Likewise.
8675         (abs<mode>2): Likewise.
8676         (fma<mode>4): Likewise.
8677         (*aarch64_fma4_elt<mode>): Likewise.
8678         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
8679         (*aarch64_fma4_elt_to_128df): Likewise.
8680         (*aarch64_fma4_elt_to_64v2df): Likewise.
8681         (fnma<mode>4): Likewise.
8682         (*aarch64_fnma4_elt<mode>): Likewise.
8683         (*aarch64_fnma4_elt_<vswap_width_name><mode>
8684         (*aarch64_fnma4_elt_to_128df): Likewise.
8685         (*aarch64_fnma4_elt_to_64v2df): Likewise.
8686         (<frint_pattern><mode>2): Likewise.
8687         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
8688         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
8689         (vec_unpacks_lo_v4sf): Likewise.
8690         (aarch64_float_extend_lo_v2df): Likewise.
8691         (vec_unpacks_hi_v4sf): Likewise.
8692         (aarch64_float_truncate_lo_v2sf): Likewise.
8693         (aarch64_float_truncate_hi_v4sf): Likewise.
8694         (aarch64_vmls<mode>): Likewise.
8695         (<su><maxmin><mode>3): Likewise.
8696         (<maxmin_uns><mode>3): Likewise.
8697         (reduc_<sur>plus_<mode>): Likewise.
8698         (reduc_<sur>plus_v2di): Likewise.
8699         (reduc_<sur>plus_v2si): Likewise.
8700         (reduc_<sur>plus_<mode>): Likewise.
8701         (aarch64_addpv4sf): Likewise.
8702         (clz<mode>2): Likewise.
8703         (reduc_<maxmin_uns>_<mode>): Likewise.
8704         (reduc_<maxmin_uns>_v2di): Likewise.
8705         (reduc_<maxmin_uns>_v2si): Likewise.
8706         (reduc_<maxmin_uns>_<mode>): Likewise.
8707         (reduc_<maxmin_uns>_v4sf): Likewise.
8708         (aarch64_simd_bsl<mode>_internal): Likewise.
8709         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
8710         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
8711         (aarch64_get_lane<mode>): Likewise.
8712         (*aarch64_combinez<mode>): Likewise.
8713         (aarch64_combine<mode>): Likewise.
8714         (aarch64_simd_combine<mode>): Likewise.
8715         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
8716         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
8717         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
8718         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
8719         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
8720         (aarch64_<sur>h<addsub><mode>): Likewise.
8721         (aarch64_<sur><addsub>hn<mode>): Likewise.
8722         (aarch64_<sur><addsub>hn2<mode>): Likewise.
8723         (aarch64_pmul<mode>): Likewise.
8724         (aarch64_<su_optab><optab><mode>): Likewise.
8725         (aarch64_<sur>qadd<mode>): Likewise.
8726         (aarch64_sqmovun<mode>): Likewise.
8727         (aarch64_<sur>qmovn<mode>): Likewise.
8728         (aarch64_s<optab><mode>): Likewise.
8729         (aarch64_sq<r>dmulh<mode>): Likewise.
8730         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8731         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
8732         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8733         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
8734         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8735         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8736         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
8737         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
8738         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
8739         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
8740         (aarch64_sqdmull<mode>): Likewise.
8741         (aarch64_sqdmull_lane<mode>_internal): Likewise.
8742         (aarch64_sqdmull_n<mode>): Likewise.
8743         (aarch64_sqdmull2<mode>_internal): Likewise.
8744         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
8745         (aarch64_sqdmull2_n<mode>_internal): Likewise.
8746         (aarch64_<sur>shl<mode>): Likewise.
8747         (aarch64_<sur>q<r>shl<mode>
8748         (aarch64_<sur>shll_n<mode>): Likewise.
8749         (aarch64_<sur>shll2_n<mode>): Likewise.
8750         (aarch64_<sur>shr_n<mode>): Likewise.
8751         (aarch64_<sur>sra_n<mode>): Likewise.
8752         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
8753         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
8754         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
8755         (aarch64_cm<optab><mode>): Likewise.
8756         (aarch64_cm<optab>di): Likewise.
8757         (aarch64_cm<optab><mode>): Likewise.
8758         (aarch64_cm<optab>di): Likewise.
8759         (aarch64_cmtst<mode>): Likewise.
8760         (aarch64_cmtstdi): Likewise.
8761         (aarch64_cm<optab><mode>): Likewise.
8762         (*aarch64_fac<optab><mode>): Likewise.
8763         (aarch64_addp<mode>): Likewise.
8764         (aarch64_addpdi): Likewise.
8765         (sqrt<mode>2): Likewise.
8766         (vec_load_lanesoi<mode>): Likewise.
8767         (vec_store_lanesoi<mode>): Likewise.
8768         (vec_load_lanesci<mode>): Likewise.
8769         (vec_store_lanesci<mode>): Likewise.
8770         (vec_load_lanesxi<mode>): Likewise.
8771         (vec_store_lanesxi<mode>): Likewise.
8772         (*aarch64_mov<mode>): Likewise.
8773         (aarch64_ld2<mode>_dreg): Likewise.
8774         (aarch64_ld2<mode>_dreg): Likewise.
8775         (aarch64_ld3<mode>_dreg): Likewise.
8776         (aarch64_ld3<mode>_dreg): Likewise.
8777         (aarch64_ld4<mode>_dreg): Likewise.
8778         (aarch64_ld4<mode>_dreg): Likewise.
8779         (aarch64_tbl1<mode>): Likewise.
8780         (aarch64_tbl2v16qi): Likewise.
8781         (aarch64_combinev16qi): Likewise.
8782         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
8783         (aarch64_st2<mode>_dreg): Likewise.
8784         (aarch64_st2<mode>_dreg): Likewise.
8785         (aarch64_st3<mode>_dreg): Likewise.
8786         (aarch64_st3<mode>_dreg): Likewise.
8787         (aarch64_st4<mode>_dreg): Likewise.
8788         (aarch64_st4<mode>_dreg): Likewise.
8789         (*aarch64_simd_ld1r<mode>): Likewise.
8790         (aarch64_frecpe<mode>): Likewise.
8791         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
8792         (aarch64_frecps<mode>): Likewise.
8794 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
8796         * config/arm/iterators.md (V_elem_ch): New.
8797         (q): Likewise.
8798         (VQH_type): Likewise.
8799         * config/arm/arm.md (is_neon_type): New.
8800         (conds): Use is_neon_type.
8801         (anddi3_insn): Update type attribute.
8802         (xordi3_insn): Likewise.
8803         (one_cmpldi2): Likewise.
8804         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
8805         * config/arm/neon.md (neon_mov): Update type attribute.
8806         (*movmisalign<mode>_neon_store): Likewise.
8807         (*movmisalign<mode>_neon_load): Likewise.
8808         (vec_set<mode>_internal): Likewise.
8809         (vec_set<mode>_internal): Likewise.
8810         (vec_setv2di_internal): Likewise.
8811         (vec_extract<mode>): Likewise.
8812         (vec_extract<mode>): Likewise.
8813         (vec_extractv2di): Likewise.
8814         (*add<mode>3_neon): Likewise.
8815         (adddi3_neon): Likewise.
8816         (*sub<mode>3_neon): Likewise.
8817         (subdi3_neon): Likewise.
8818         (fma<VCVTF:mode>4): Likewise.
8819         (fma<VCVTF:mode>4_intrinsic): Likewise.
8820         (*fmsub<VCVTF:mode>4): Likewise.
8821         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
8822         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
8823         (ior<mode>3): Likewise.
8824         (and<mode>3): Likewise.
8825         (orn<mode>3_neon): Likewise.
8826         (orndi3_neon): Likewise.
8827         (bic<mode>3_neon): Likewise.
8828         (bicdi3_neon): Likewise.
8829         (xor<mode>3): Likewise.
8830         (one_cmpl<mode>2): Likewise.
8831         (abs<mode>2): Likewise.
8832         (neg<mode>2): Likewise.
8833         (negdi2_neon): Likewise.
8834         (*umin<mode>3_neon): Likewise.
8835         (*umax<mode>3_neon): Likewise.
8836         (*smin<mode>3_neon): Likewise.
8837         (*smax<mode>3_neon): Likewise.
8838         (vashl<mode>3): Likewise.
8839         (vashr<mode>3_imm): Likewise.
8840         (vlshr<mode>3_imm): Likewise.
8841         (ashl<mode>3_signed): Likewise.
8842         (ashl<mode>3_unsigned): Likewise.
8843         (neon_load_count): Likewise.
8844         (ashldi3_neon_noclobber): Likewise.
8845         (ashldi3_neon): Likewise.
8846         (signed_shift_di3_neon): Likewise.
8847         (unsigned_shift_di3_neon): Likewise.
8848         (ashrdi3_neon_imm_noclobber): Likewise.
8849         (lshrdi3_neon_imm_noclobber): Likewise.
8850         (<shift>di3_neon): Likewise.
8851         (widen_ssum<mode>3): Likewise.
8852         (widen_usum<mode>3): Likewise.
8853         (quad_halves_<code>v4si): Likewise.
8854         (quad_halves_<code>v4sf): Likewise.
8855         (quad_halves_<code>v8hi): Likewise.
8856         (quad_halves_<code>v16qi): Likewise.
8857         (reduc_splus_v2di): Likewise.
8858         (neon_vpadd_internal<mode>): Likewise.
8859         (neon_vpsmin<mode>): Likewise.
8860         (neon_vpsmax<mode>): Likewise.
8861         (neon_vpumin<mode>): Likewise.
8862         (neon_vpumax<mode>): Likewise.
8863         (*ss_add<mode>_neon): Likewise.
8864         (*us_add<mode>_neon): Likewise.
8865         (*ss_sub<mode>_neon): Likewise.
8866         (*us_sub<mode>_neon): Likewise.
8867         (neon_vadd<mode>_unspec): Likewise.
8868         (neon_vaddl<mode>): Likewise.
8869         (neon_vaddw<mode>): Likewise.
8870         (neon_vhadd<mode>): Likewise.
8871         (neon_vqadd<mode>): Likewise.
8872         (neon_vaddhn<mode>): Likewise.
8873         (neon_vmul<mode>): Likewise.
8874         (neon_vfms<VCVTF:mode>): Likewise.
8875         (neon_vmlal<mode>): Likewise.
8876         (neon_vmls<mode>): Likewise.
8877         (neon_vmlsl<mode>): Likewise.
8878         (neon_vqdmulh<mode>): Likewise.
8879         (neon_vqdmlal<mode>): Likewise.
8880         (neon_vqdmlsl<mode>): Likewise.
8881         (neon_vmull<mode>): Likewise.
8882         (neon_vqdmull<mode>): Likewise.
8883         (neon_vsub<mode>_unspec): Likewise.
8884         (neon_vsubl<mode>): Likewise.
8885         (neon_vsubw<mode>): Likewise.
8886         (neon_vqsub<mode>): Likewise.
8887         (neon_vhsub<mode>): Likewise.
8888         (neon_vsubhn<mode>): Likewise.
8889         (neon_vceq<mode>): Likewise.
8890         (neon_vcge<mode>): Likewise.
8891         (neon_vcgeu<mode>): Likewise.
8892         (neon_vcgt<mode>): Likewise.
8893         (neon_vcgtu<mode>): Likewise.
8894         (neon_vcle<mode>): Likewise.
8895         (neon_vclt<mode>): Likewise.
8896         (neon_vcage<mode>): Likewise.
8897         (neon_vcagt<mode>): Likewise.
8898         (neon_vtst<mode>): Likewise.
8899         (neon_vabd<mode>): Likewise.
8900         (neon_vabdl<mode>): Likewise.
8901         (neon_vaba<mode>): Likewise.
8902         (neon_vabal<mode>): Likewise.
8903         (neon_vmax<mode>): Likewise.
8904         (neon_vmin<mode>): Likewise.
8905         (neon_vpaddl<mode>): Likewise.
8906         (neon_vpadal<mode>): Likewise.
8907         (neon_vpmax<mode>): Likewise.
8908         (neon_vpmin<mode>): Likewise.
8909         (neon_vrecps<mode>): Likewise.
8910         (neon_vrsqrts<mode>): Likewise.
8911         (neon_vqabs<mode>): Likewise.
8912         (neon_vqneg<mode>): Likewise.
8913         (neon_vcls<mode>): Likewise.
8914         (clz<mode>2): Likewise.
8915         (popcount<mode>2): Likewise.
8916         (neon_vrecpe<mode>): Likewise.
8917         (neon_vrsqrte<mode>): Likewise.
8918         (neon_vget_lane<mode>_sext_internal): Likewise.
8919         (neon_vget_lane<mode>_zext_internal): Likewise.
8920         (neon_vdup_n<mode>): Likewise.
8921         (neon_vdup_n<mode>): Likewise.
8922         (neon_vdup_nv2di): Likewise.
8923         (neon_vdup_lane<mode>_interal): Likewise.
8924         (*neon_vswp<mode>): Likewise.
8925         (neon_vcombine<mode>): Likewise.
8926         (float<mode><V_cvtto>2): Likewise.
8927         (floatuns<mode><V_cvtto>2): Likewise.
8928         (fix_trunc<mode><V_cvtto>2): Likewise.
8929         (fixuns_trunc<mode><V_cvtto>2
8930         (neon_vcvt<mode>): Likewise.
8931         (neon_vcvt<mode>): Likewise.
8932         (neon_vcvtv4sfv4hf): Likewise.
8933         (neon_vcvtv4hfv4sf): Likewise.
8934         (neon_vcvt_n<mode>): Likewise.
8935         (neon_vcvt_n<mode>): Likewise.
8936         (neon_vmovn<mode>): Likewise.
8937         (neon_vqmovn<mode>): Likewise.
8938         (neon_vqmovun<mode>): Likewise.
8939         (neon_vmovl<mode>): Likewise.
8940         (neon_vmul_lane<mode>): Likewise.
8941         (neon_vmul_lane<mode>): Likewise.
8942         (neon_vmull_lane<mode>): Likewise.
8943         (neon_vqdmull_lane<mode>): Likewise.
8944         (neon_vqdmulh_lane<mode>): Likewise.
8945         (neon_vqdmulh_lane<mode>): Likewise.
8946         (neon_vmla_lane<mode>): Likewise.
8947         (neon_vmla_lane<mode>): Likewise.
8948         (neon_vmlal_lane<mode>): Likewise.
8949         (neon_vqdmlal_lane<mode>): Likewise.
8950         (neon_vmls_lane<mode>): Likewise.
8951         (neon_vmls_lane<mode>): Likewise.
8952         (neon_vmlsl_lane<mode>): Likewise.
8953         (neon_vqdmlsl_lane<mode>): Likewise.
8954         (neon_vext<mode>): Likewise.
8955         (neon_vrev64<mode>): Likewise.
8956         (neon_vrev32<mode>): Likewise.
8957         (neon_vrev16<mode>): Likewise.
8958         (neon_vbsl<mode>_internal): Likewise.
8959         (neon_vshl<mode>): Likewise.
8960         (neon_vqshl<mode>): Likewise.
8961         (neon_vshr_n<mode>): Likewise.
8962         (neon_vshrn_n<mode>): Likewise.
8963         (neon_vqshrn_n<mode>): Likewise.
8964         (neon_vqshrun_n<mode>): Likewise.
8965         (neon_vshl_n<mode>): Likewise.
8966         (neon_vqshl_n<mode>): Likewise.
8967         (neon_vqshlu_n<mode>): Likewise.
8968         (neon_vshll_n<mode>): Likewise.
8969         (neon_vsra_n<mode>): Likewise.
8970         (neon_vsri_n<mode>): Likewise.
8971         (neon_vsli_n<mode>): Likewise.
8972         (neon_vtbl1v8qi): Likewise.
8973         (neon_vtbl2v8qi): Likewise.
8974         (neon_vtbl3v8qi): Likewise.
8975         (neon_vtbl4v8qi): Likewise.
8976         (neon_vtbl1v16qi): Likewise.
8977         (neon_vtbl2v16qi): Likewise.
8978         (neon_vcombinev16qi): Likewise.
8979         (neon_vtbx1v8qi): Likewise.
8980         (neon_vtbx2v8qi): Likewise.
8981         (neon_vtbx3v8qi): Likewise.
8982         (neon_vtbx4v8qi): Likewise.
8983         (*neon_vtrn<mode>_insn): Likewise.
8984         (*neon_vzip<mode>_insn): Likewise.
8985         (*neon_vuzp<mode>_insn): Likewise.
8986         (neon_vld1<mode>): Likewise.
8987         (neon_vld1_lane<mode>): Likewise.
8988         (neon_vld1_lane<mode>): Likewise.
8989         (neon_vld1_dup<mode>): Likewise.
8990         (neon_vld1_dup<mode>): Likewise.
8991         (neon_vld1_dupv2di): Likewise.
8992         (neon_vst1<mode>): Likewise.
8993         (neon_vst1_lane<mode>): Likewise.
8994         (neon_vst1_lane<mode>): Likewise.
8995         (neon_vld2<mode>): Likewise.
8996         (neon_vld2<mode>): Likewise.
8997         (neon_vld2_lane<mode>): Likewise.
8998         (neon_vld2_lane<mode>): Likewise.
8999         (neon_vld2_dup<mode>): Likewise.
9000         (neon_vst2<mode>): Likewise.
9001         (neon_vst2<mode>): Likewise.
9002         (neon_vst2_lane<mode>): Likewise.
9003         (neon_vst2_lane<mode>): Likewise.
9004         (neon_vld3<mode>): Likewise.
9005         (neon_vld3qa<mode>): Likewise.
9006         (neon_vld3qb<mode>): Likewise.
9007         (neon_vld3_lane<mode>): Likewise.
9008         (neon_vld3_lane<mode>): Likewise.
9009         (neon_vld3_dup<mode>): Likewise.
9010         (neon_vst3<mode>): Likewise.
9011         (neon_vst3qa<mode>): Likewise.
9012         (neon_vst3qb<mode>): Likewise.
9013         (neon_vst3_lane<mode>): Likewise.
9014         (neon_vst3_lane<mode>): Likewise.
9015         (neon_vld4<mode>): Likewise.
9016         (neon_vld4qa<mode>): Likewise.
9017         (neon_vld4qb<mode>): Likewise.
9018         (neon_vld4_lane<mode>): Likewise.
9019         (neon_vld4_lane<mode>): Likewise.
9020         (neon_vld4_dup<mode>): Likewise.
9021         (neon_vst4<mode>): Likewise.
9022         (neon_vst4qa<mode>): Likewise.
9023         (neon_vst4qb<mode>): Likewise.
9024         (neon_vst4_lane<mode>): Likewise.
9025         (neon_vst4_lane<mode>): Likewise.
9026         (neon_vec_unpack<US>_lo_<mode>): Likewise.
9027         (neon_vec_unpack<US>_hi_<mode>): Likewise.
9028         (neon_vec_<US>mult_lo_<mode>): Likewise.
9029         (neon_vec_<US>mult_hi_<mode>): Likewise.
9030         (neon_vec_<US>shiftl_<mode>): Likewise.
9031         (neon_unpack<US>_<mode>): Likewise.
9032         (neon_vec_<US>mult_<mode>): Likewise.
9033         (vec_pack_trunc_<mode>): Likewise.
9034         (neon_vec_pack_trunc_<mode>): Likewise.
9035         (neon_vabd<mode>_2): Likewise.
9036         (neon_vabd<mode>_3): Likewise.
9038 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9040         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
9041         (load_pair): Update type attribute.
9042         (store_pair): Update type attribute.
9043         * config/aarch64/iterators.md (q): New.
9045 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9047         * config/arm/types.md: Add new types for Neon insns.
9049 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9050             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9051             Sergey Lega  <sergey.s.lega@intel.com>
9052             Anna Tikhonova  <anna.tikhonova@intel.com>
9053             Ilya Tocar  <ilya.tocar@intel.com>
9054             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9055             Ilya Verbin  <ilya.verbin@intel.com>
9056             Kirill Yukhin  <kirill.yukhin@intel.com>
9057             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9059         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
9060         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
9061         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
9062         (rcp14<mode>): New.
9063         (srcp14<mode>): Ditto.
9064         (rsqrt14<mode>): Ditto.
9065         (rsqrt14<mode>): Ditto.
9066         (avx512f_vmscalef<mode>): Ditto.
9067         (avx512f_scalef<mode>): Ditto.
9068         (avx512f_getexp<mode>): Ditto.
9069         (avx512f_sgetexp<mode>): Ditto.
9070         (avx512f_fixupimm<mode>): Ditto.
9071         (avx512f_sfixupimm<mode>): Ditto.
9072         (avx512f_rndscale<mode>): Ditto.
9073         (*avx512er_exp2<mode>): Ditto.
9074         (*avx512er_rcp28<mode>): Ditto.
9075         (avx512er_rsqrt28<mode>): Ditto.
9076         (avx512f_getmant<mode>): Ditto.
9077         (avx512f_getmant<mode>): Ditto.
9078         (avx512f_rndscale<mode>): Fix formatting.
9080 2013-10-15  Martin Jambor  <mjambor@suse.cz>
9082         * ipa-utils.h (ipa_edge_within_scc): Declare.
9083         * ipa-cp.c (edge_within_scc): Moved...
9084         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
9086 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9087             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9088             Sergey Lega  <sergey.s.lega@intel.com>
9089             Anna Tikhonova  <anna.tikhonova@intel.com>
9090             Ilya Tocar  <ilya.tocar@intel.com>
9091             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9092             Ilya Verbin  <ilya.verbin@intel.com>
9093             Kirill Yukhin  <kirill.yukhin@intel.com>
9094             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9096         * config/i386/predicates.md (const_8_to_15_operand): New.
9097         (const_16_to_31_operand): Ditto.
9098         * config/i386/sse.md (V8FI): New.
9099         (V16FI): Ditto.
9100         (reduc_splus_v8df): Ditto.
9101         (reduc_splus_v16sf): Ditto.
9102         (avx512f_vextract<shuffletype>32x4_1): Ditto.
9103         (vec_extract_hi_<mode>): Ditto.
9104         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
9105         (vec_set_lo_<mode>): Ditto.
9106         (vec_set_hi_<mode>): Ditto.
9107         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
9108         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
9109         (avx512f_pshufd_1): Ditto.
9110         (avx512f_broadcast<mode>): Ditto.
9111         (avx512f_broadcast<mode>): Ditto.
9112         (define_split): Split vec_extract_lo into move.
9113         (ssequartermode): Ditto.
9114         (ssedoublemode): Extened with wider modes.
9115         (vec_extract_lo_<mode>): Ditto.
9117 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9118             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9119             Sergey Lega  <sergey.s.lega@intel.com>
9120             Anna Tikhonova  <anna.tikhonova@intel.com>
9121             Ilya Tocar  <ilya.tocar@intel.com>
9122             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9123             Ilya Verbin  <ilya.verbin@intel.com>
9124             Kirill Yukhin  <kirill.yukhin@intel.com>
9125             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9127         * config/i386/predicates.md (register_or_constm1_operand): New.
9128         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
9129         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
9130         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
9131         UNSPEC_SCATTER_PREFETCH
9132         (VI48_512): New.
9133         (avx512f_ucmp<mode>3): Ditto.
9134         (avx512f_vternlog<mode>): Ditto.
9135         (avx512f_align<mode>): Ditto.
9136         (<shift_insn><mode>3): Ditto.
9137         (avx512f_<rotate>v<mode>): Ditto.
9138         (avx512f_<rotate><mode>): Ditto.
9139         (avx512f_eq<mode>3): Ditto.
9140         (avx512f_eq<mode>3_1): Ditto.
9141         (avx512f_gt<mode>3): Ditto.
9142         (avx512f_testm<mode>3): Ditto.
9143         (avx512f_testnm<mode>3): Ditto.
9144         (avx512pf_gatherpf<mode>): Ditto.
9145         (*avx512pf_gatherpf<mode>_mask): Ditto.
9146         (*avx512pf_gatherpf<mode>): Ditto.
9147         (avx512pf_scatterpf<mode>): Ditto.
9148         (*avx512pf_scatterpf<mode>_mask): Ditto.
9149         (*avx512pf_scatterpf<mode>): Ditto.
9150         (avx512f_vec_dup_gpr<mode>): Ditto.
9151         (clz<mode>2): Ditto.
9152         (conflict<mode>): Ditto.
9153         (REDUC_SMINMAX_MODE): Extened with wider modes.
9154         (reduc_<code>_<mode>): Ditto.
9155         (vlshr<mode>3): Ditto.
9156         (vashl<mode>3): Ditto.
9158 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9159             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9160             Sergey Lega  <sergey.s.lega@intel.com>
9161             Anna Tikhonova  <anna.tikhonova@intel.com>
9162             Ilya Tocar  <ilya.tocar@intel.com>
9163             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9164             Ilya Verbin  <ilya.verbin@intel.com>
9165             Kirill Yukhin  <kirill.yukhin@intel.com>
9166             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9168         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
9169         UNSPEC_SCATTER.
9170         (VI48F_512): New.
9171         (avx512fmaskmode): Ditto.
9172         (bcstscalarsuff): Ditto.
9173         (avx512f_blendm<mode>): Ditto.
9174         (cmp_imm_predicate): Ditto.
9175         (avx512f_cmp<mode>3): Ditto.
9176         (avx512f_vec_dup<mode>): Ditto.
9177         (avx512f_vec_dup_mem<mode>): Ditto.
9178         (avx512f_vpermi2var<mode>3): Ditto.
9179         (avx512f_vpermt2var<mode>3): Ditto.
9180         (vec_init<mode>): Ditto.
9181         (avx512f_gathersi<mode>): Ditto.
9182         (*avx512f_gathersi<mode>): Ditto.
9183         (*avx512f_gathersi<mode>_2): Ditto.
9184         (avx512f_gatherdi<mode>): Ditto.
9185         (*avx512f_gatherdi<mode>): Ditto.
9186         (*avx512f_gatherdi<mode>_2): Ditto.
9187         (avx512f_scattersi<mode>): Ditto.
9188         (*avx512f_scattersi<mode>): Ditto.
9189         (avx512f_scatterdi<mode>): Ditto.
9190         (*avx512f_scatterdi<mode>): Ditto.
9191         (sseintprefix): Extened with wider modes.
9192         (VEC_GATHER_IDXSI): Ditto.
9193         (VEC_GATHER_IDXDI): Ditto.
9194         (VEC_GATHER_SRCDI): Ditto.
9196 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
9197             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9199         * config/arm/t-aprofile: New file.
9200         * config.gcc: Handle --with-multilib-list option.
9202 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
9204         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
9205         the input for r2.
9207 2013-10-15  Richard Biener  <rguenther@suse.de>
9209         * tree-loop-distribution.c (build_empty_rdg): Inline into
9210         single user.
9211         (rdg_flag_vertex): Inline into single user.
9212         (rdg_flag_vertex_and_dependent): Likewise.
9213         (build_rdg_partition_for_vertex): Remove processed bitmap.
9214         (rdg_build_partitions): Simplify.
9216 2013-10-15  Richard Biener  <rguenther@suse.de>
9218         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
9219         Restructure forwarding through conversions and copies to
9220         avoid performing copy-propagation the wrong way.  Adjust
9221         recursion invocations.
9222         (forward_propagate_addr_expr): Add argument stating if we
9223         are recursing from a single-use.
9224         (ssa_forward_propagate_and_combine): Adjust.
9226 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
9228         * dumpfile.h (gcc::dump_manager): New class, to hold state
9229         relating to dumpfile management.
9230         (get_dump_file_name): Remove in favor of method of dump_manager.
9231         (dump_initialized_p): Likewise.
9232         (dump_start): Likewise.
9233         (dump_finish): Likewise.
9234         (dump_switch_p): Likewise.
9235         (dump_register): Likewise.
9236         (get_dump_file_info): Likewise.
9237         * context.c (gcc::context::context): Construct the dump_manager
9238         instance.
9239         * context.h (gcc::context::get_dumps): New.
9240         (gcc::context::m_dumps): New.
9241         * coverage.c (coverage_init): Port to dump_manager API.
9242         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
9243         (extra_dump_files_in_use): Likewise.
9244         (extra_dump_files_alloced): Likewise.
9245         (gcc::dump_manager::dump_manager): New.
9246         (dump_register): Convert to...
9247         (gcc::dump_manager::dump_register): ...method, replacing
9248         function-static next_dump with m_next_dump field.
9249         (get_dump_file_info): Convert to...
9250         (gcc::dump_manager::get_dump_file_info): ...method.
9251         (get_dump_file_name): Convert to...
9252         (gcc::dump_manager::get_dump_file_name): ...method.
9253         (dump_start): Convert to...
9254         (gcc::dump_manager::dump_start): ...method.
9255         (dump_finish): Convert to...
9256         (gcc::dump_manager::dump_finish): ...method.
9257         (dump_begin): Replace body with...
9258         (gcc::dump_manager::dump_begin): ...new method.
9259         (dump_phase_enabled_p): Convert to...
9260         (gcc::dump_manager::dump_phase_enabled_p): ...method.
9261         (dump_phase_enabled_p): Convert to...
9262         (gcc::dump_manager::dump_phase_enabled_p): ...method.
9263         (dump_initialized_p):  Convert to...
9264         (gcc::dump_manager::dump_initialized_p): ...method.
9265         (dump_flag_name): Replace body with...
9266         (gcc::dump_manager::dump_flag_name): ...new method.
9267         (dump_enable_all): Convert to...
9268         (gcc::dump_manager::dump_enable_all): ...new method.
9269         (opt_info_enable_passes): Convert to...
9270         (gcc::dump_manager::opt_info_enable_passes): ...new method.
9271         (dump_switch_p_1): Convert to...
9272         (gcc::dump_manager::dump_switch_p_1): ...new method.
9273         (dump_switch_p):  Convert to...
9274         (gcc::dump_manager::dump_switch_p): ...new method.
9275         (opt_info_switch_p): Port to dump_manager API.
9276         (enable_rtl_dump_file): Likewise.
9277         * opts-global.c (handle_common_deferred_options): Port to new
9278         dump_manager API.
9279         * passes.c (pass_manager::finish_optimization_passes): Likewise.
9280         (pass_manager::register_one_dump_file): Likewise.
9281         (pass_manager::register_pass): Likewise.
9282         (pass_init_dump_file): Likewise.
9283         (pass_fini_dump_file): Likewise.
9284         * statistics.c (statistics_early_init): Likewise.
9286 2013-10-14  Richard Biener  <rguenther@suse.de>
9288         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
9289         iterative_hash_canonical_type, gimple_canonical_type_hash,
9290         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
9291         gimple_register_canonical_type, print_gimple_types_stats,
9292         free_gimple_type_tables): Move to lto/lto.c
9293         (gt-gimple.h): Do not include.
9294         * gimple.h (gimple_register_canonical_type,
9295         print_gimple_types_stats, free_gimple_type_tables): Remove.
9296         * Makefile.in (GTFILES): Remove gimple.c.
9298 2013-10-14  Travis Snoozy  <quandary@remstate.com>
9300         PR target/58716
9301         * config/msp430/msp430.c (msp430_option_override): Correct thinko
9302         scanning for msp430x targets.
9304 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
9306         PR bootstrap/58509
9307         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
9308         (registers_ok_for_ldd_peep): Move around.
9309         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
9310         * config/sparc/sparc.md (widening peepholes): Use it.
9312 2013-10-14  Richard Biener  <rguenther@suse.de>
9314         PR middle-end/58712
9315         PR middle-end/55358
9316         * gimple.c (iterative_hash_canonical_type): Make sure to
9317         record the hash into the correct hashtable slot.
9319 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
9321         PR rtl-optimization/58662
9322         * combine.c (try_combine): Take into account death nodes on I2 when
9323         splitting a PARALLEL of two independent SETs.  Fix dump message.
9325 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
9327         PR target/51244
9328         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
9329         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
9330         extra_objs.
9331         * config/sh/t-sh (sh_treg_combine.o): New entry.
9332         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
9333         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
9334         (register_sh_passes): New function.  Register sh_treg_combine pass.
9335         (sh_option_override): Invoke it.
9336         (sh_canonicalize_comparison): Handle op0_preserve_value.
9337         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
9338         opportunities.  Canonicalize branch condition.
9339         (nott): Allow only if pseudos can be created for non-SH2A.
9341 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
9343         PR target/58690
9344         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
9345         (ix86_expand_movmem): Replace copy_addr_to_reg with
9346         ix86_copy_addr_to_reg.
9347         (ix86_expand_setmem): Likewise.
9349 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
9351         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
9352         provided by ix86_fp_compare_mode instead of CCFPUmode.
9354 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
9356         * config/aarch64/arm_neon.h
9357         (vtbx<1,3>_<psu>8): Fix register constriants.
9359 2013-10-11  Jeff Law  <law@redhat.com>
9361         PR tree-optimization/58640
9362         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9363         threading paths that cross over two loop entry points.
9365 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9367         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
9368         handle vector float as well.
9369         (*vsx_le_perm_load_v4si): Likewise.
9370         (*vsx_le_perm_store_v2di): Likewise.
9371         (*vsx_le_perm_store_v4si): Likewise.
9373 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9375         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
9376         directly to circumvent subtract from splat{31} workaround.
9377         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
9378         prototype.
9379         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
9380         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
9381         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
9382         (altivec_vperm_<mode>): Convert to define_insn_and_split to
9383         separate big and little endian logic.
9384         (*altivec_vperm_<mode>_internal): New define_insn.
9385         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
9386         separate big and little endian logic.
9387         (*altivec_vperm_<mode>_uns_internal): New define_insn.
9388         (vec_permv16qi): Add little endian logic.
9390 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
9392         * doc/extend.texi (returns_nonnull): Remove arguments.
9394 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9395             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9396             Sergey Lega  <sergey.s.lega@intel.com>
9397             Anna Tikhonova  <anna.tikhonova@intel.com>
9398             Ilya Tocar  <ilya.tocar@intel.com>
9399             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9400             Ilya Verbin  <ilya.verbin@intel.com>
9401             Kirill Yukhin  <kirill.yukhin@intel.com>
9402             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9404         * config/i386/sse.md (VI48F_256_512): New.
9405         (avx2_permvar<mode>): Change to ...
9406         (<avx2_avx512f>_permvar<mode>): This.
9408 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9409             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9410             Sergey Lega  <sergey.s.lega@intel.com>
9411             Anna Tikhonova  <anna.tikhonova@intel.com>
9412             Ilya Tocar  <ilya.tocar@intel.com>
9413             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9414             Ilya Verbin  <ilya.verbin@intel.com>
9415             Kirill Yukhin  <kirill.yukhin@intel.com>
9416             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9418         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
9419         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
9420         * config/i386/sse.md (VI4_AVX): New.
9421         (sf2simodelower): Ditto.
9422         (sse2_cvtps2dq): Change to ...
9423         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
9425 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9426             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9427             Sergey Lega  <sergey.s.lega@intel.com>
9428             Anna Tikhonova  <anna.tikhonova@intel.com>
9429             Ilya Tocar  <ilya.tocar@intel.com>
9430             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9431             Ilya Verbin  <ilya.verbin@intel.com>
9432             Kirill Yukhin  <kirill.yukhin@intel.com>
9433             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9435         * config/i386/sse.md (V_512): New.
9436         (VI_512): Ditto.
9437         (vcond<V_512:mode><VF_512:mode>): Ditto.
9438         (vcond<V_512:mode><VI_512:mode>): Ditto.
9439         (vcondu<V_512:mode><VI_512:mode>): Ditto.
9441 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9442             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9443             Sergey Lega  <sergey.s.lega@intel.com>
9444             Anna Tikhonova  <anna.tikhonova@intel.com>
9445             Ilya Tocar  <ilya.tocar@intel.com>
9446             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9447             Ilya Verbin  <ilya.verbin@intel.com>
9448             Kirill Yukhin  <kirill.yukhin@intel.com>
9449             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9451         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
9452         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
9453         (FMAMODE): Ditto.
9454         (fma<mode>4): Removed condition.
9455         (fms<mode>4): Ditto.
9456         (fnma<mode>4): Ditto.
9457         (fnms<mode>4): Ditto.
9458         (fma4i_fmadd_<mode>): Ditto.
9459         (*fma_fmadd_<mode>): Ditto.
9460         (*fma_fmsub_<mode>): Ditto.
9461         (*fma_fnmadd_<mode>): Ditto.
9462         (*fma_fnmsub_<mode>): Ditto.
9463         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
9464         (*fma_fmaddsub_<mode>): Ditto.
9465         (*fma_fmsubadd_<mode>): Ditto.
9466         (*fmai_fmadd_<mode>): Ditto.
9467         (*fmai_fmsub_<mode>): Ditto.
9468         (*fmai_fnmadd_<mode>): Ditto.
9469         (*fmai_fnmsub_<mode>): Ditto.
9471 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9472             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9473             Sergey Lega  <sergey.s.lega@intel.com>
9474             Anna Tikhonova  <anna.tikhonova@intel.com>
9475             Ilya Tocar  <ilya.tocar@intel.com>
9476             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9477             Ilya Verbin  <ilya.verbin@intel.com>
9478             Kirill Yukhin  <kirill.yukhin@intel.com>
9479             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9481         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
9482         (VI124_256): Changed to ...
9483         (VI124_256_48_512): This.
9484         (ssepackmode): Extended with wider modes.
9485         (<code><mode>3): Changed iterator.
9486         (*avx2_<code><mode>3): Ditto.
9487         (vec_pack_trunc_<mode>): Ditto.
9489 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9490             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9491             Sergey Lega  <sergey.s.lega@intel.com>
9492             Anna Tikhonova  <anna.tikhonova@intel.com>
9493             Ilya Tocar  <ilya.tocar@intel.com>
9494             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9495             Ilya Verbin  <ilya.verbin@intel.com>
9496             Kirill Yukhin  <kirill.yukhin@intel.com>
9497             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9499         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
9500         (VI8F_256_512): Ditto.
9501         (abs<mode>2): Changed iterator.
9502         (avx2_perm<mode>): Changed to ...
9503         (<avx2_avx512f>_perm<mode>): This.
9504         (avx2_perm<mode>_1): Changed to ...
9505         (<avx2_avx512f>_perm<mode>_1): This.
9507 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9508             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9509             Sergey Lega  <sergey.s.lega@intel.com>
9510             Anna Tikhonova  <anna.tikhonova@intel.com>
9511             Ilya Tocar  <ilya.tocar@intel.com>
9512             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9513             Ilya Verbin  <ilya.verbin@intel.com>
9514             Kirill Yukhin  <kirill.yukhin@intel.com>
9515             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9517         * config/i386/sse.md (VI48_AVX512F): New.
9518         (VI48_AVX2): Changed to ...
9519         (VI48_AVX2_48_AVX512F): This.
9520         (avx2_ashrv<mode>): Changed to ...
9521         (<avx2_avx512f>_ashrv<mode>): This.
9522         (avx2_<shift_insn>v<mode>): Changed to ...
9523         (<avx2_avx512f>_<shift_insn>v<mode>): This.
9525 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9526             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9527             Sergey Lega  <sergey.s.lega@intel.com>
9528             Anna Tikhonova  <anna.tikhonova@intel.com>
9529             Ilya Tocar  <ilya.tocar@intel.com>
9530             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9531             Ilya Verbin  <ilya.verbin@intel.com>
9532             Kirill Yukhin  <kirill.yukhin@intel.com>
9533             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9535         * config/i386/sse.md (VI4_AVX512F): New.
9536         (VI8_AVX2_AVX512F): Ditto.
9537         (mul<mode>3): Extended with wider modes.
9538         (*<sse4_1_avx2>_mul<mode>3): Ditto.
9539         (mul<mode>3): Ditto.
9540         (vec_widen_<s>mult_odd_<mode>): Ditto.
9542 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9543             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9544             Sergey Lega  <sergey.s.lega@intel.com>
9545             Anna Tikhonova  <anna.tikhonova@intel.com>
9546             Ilya Tocar  <ilya.tocar@intel.com>
9547             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9548             Ilya Verbin  <ilya.verbin@intel.com>
9549             Kirill Yukhin  <kirill.yukhin@intel.com>
9550             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9552         * config/i386/sse.md (VI2_AVX512F): New.
9553         (VI124_AVX512F): Ditto.
9554         (sseunpackmode): Extended with wider modes.
9555         (sseunpackfltmode): Ditto.
9556         (vec_unpacks_float_hi_<mode>): Ditto.
9557         (vec_unpacks_float_lo_<mode>): Ditto.
9558         (vec_unpacku_float_hi_<mode>): Ditto.
9559         (vec_unpacku_float_lo_<mode>): Ditto.
9560         (vec_unpacks_lo_<mode>): Ditto.
9561         (vec_unpacks_hi_<mode>): Ditto.
9562         (vec_unpacku_lo_<mode>): Ditto.
9563         (vec_unpacku_hi_<mode>): Ditto.
9565 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9566             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9567             Sergey Lega  <sergey.s.lega@intel.com>
9568             Anna Tikhonova  <anna.tikhonova@intel.com>
9569             Ilya Tocar  <ilya.tocar@intel.com>
9570             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9571             Ilya Verbin  <ilya.verbin@intel.com>
9572             Kirill Yukhin  <kirill.yukhin@intel.com>
9573             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9575         * config/i386/i386.md (multdiv): New.
9576         (multdiv_mnemonic): Ditto.
9577         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
9578         (<sse>_vm<multdiv_mnemonic><mode>3): This.
9579         (<sse>_vmdiv<mode>3): Removed.
9581 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9582             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9583             Sergey Lega  <sergey.s.lega@intel.com>
9584             Anna Tikhonova  <anna.tikhonova@intel.com>
9585             Ilya Tocar  <ilya.tocar@intel.com>
9586             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9587             Ilya Verbin  <ilya.verbin@intel.com>
9588             Kirill Yukhin  <kirill.yukhin@intel.com>
9589             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9591         * config/i386/sse.md (V): Extended with wider modes.
9592         (VF2): Ditto.
9593         (ssehalfvecmode): Ditto.
9594         (i128): Ditto.
9595         (ssepackfltmode): Ditto.
9596         (avx_vec_concat<mode>): Ditto.
9597         (V_256_512): New iterator.
9598         (VF2_512_256): Ditto.
9599         (si2dfmode): New attribute.
9600         (si2dfmodelower): Ditto.
9601         (sf2dfmode): Ditto.
9602         (concat_tg_mode): Ditto.
9603         (floatv4siv4df2): Changed to ...
9604         (float<si2dfmodelower><mode>2): This.
9605         (avx_cvtps2pd256): Changed to ...
9606         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
9607         (vec_pack_trunc_v4df): Changed to ...
9608         (vec_pack_trunc_<mode>): This.
9609         (avx_vpermil<mode>): Changed to ...
9610         (<sse2_avx_avx512f>_vpermil<mode>): This.
9611         (<fixsuffix>fix_truncv8dfv8si2): New.
9612         (vec_pack_sfix_trunc_v8df): Ditto.
9613         (avx512f_rndscale<mode>): Ditto.
9614         (avx512f_roundpd512): Ditto.
9615         (vec_pack_ufix_trunc_<mode>): Updated iterator.
9617 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9618             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9619             Sergey Lega  <sergey.s.lega@intel.com>
9620             Anna Tikhonova  <anna.tikhonova@intel.com>
9621             Ilya Tocar  <ilya.tocar@intel.com>
9622             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9623             Ilya Verbin  <ilya.verbin@intel.com>
9624             Kirill Yukhin  <kirill.yukhin@intel.com>
9625             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9627         * config/i386/i386.md (any_fix): New iterator.
9628         (fixsuffix): New attribute.
9629         * config/i386/sse.md (VF1): Extened with wider modes.
9630         (VI): Ditto.
9631         (VI_AVX2): Ditto.
9632         (VI8): Ditto.
9633         (sseintvecmodelower): Ditto.
9634         (ssescalarmode): Ditto.
9635         (ssescalarnum): Ditto.
9636         (VF1_128_256): New.
9637         (ssexmmmode): Ditto.
9638         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
9639         (<sse>_rcp<mode>2): Change iterator.
9640         (rsqrt<mode>2): Ditto.
9641         (<sse>_rsqrt<mode>2): Ditto.
9642         (avx2_vec_dup<mode>): Ditto.
9643         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
9644         (round<mode>2_sfix): Ditto.
9645         (avx2_pbroadcast<mode>): Ditto.
9646         (*andnot<mode>3): Handle XI mode.
9647         (*<code><mode>3): Ditto.
9648         (AVXTOSSEMODE): Removed.
9649         (avx_vpermil<mode>): Changed to ...
9650         (<sse2_avx_avx512f>_vpermil<mode>): This.
9652 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9653             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9654             Sergey Lega  <sergey.s.lega@intel.com>
9655             Anna Tikhonova  <anna.tikhonova@intel.com>
9656             Ilya Tocar  <ilya.tocar@intel.com>
9657             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9658             Ilya Verbin  <ilya.verbin@intel.com>
9659             Kirill Yukhin  <kirill.yukhin@intel.com>
9660             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9662         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
9663         (<sse>_comi): Ditto.
9664         (<sse>_ucomi): Ditto.
9665         (sse_cvtss2siq_2): Ditto.
9666         (sse2_cvtsd2si): Ditto.
9667         (sse2_cvtsd2siq): Ditto.
9668         (sse2_cvttsd2si): Ditto.
9669         (sse2_cvttsd2siq): Ditto.
9670         (<shift_insn><mode>3): Ditto.
9671         (sse2_cvtsi2sdq): Update constraint and prefix.
9672         (sse_cvtsi2ss): Update prefix.
9673         (sse_cvtsi2ssq): Ditto.
9675 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
9677         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
9678         ignore internal calls.
9680 2013-10-11  Richard Biener  <rguenther@suse.de>
9682         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
9683         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
9684         TREE_OVERFLOW is set.
9686 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
9688         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
9690         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
9691         * gimple.h: Likewise.
9693         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
9695         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
9696         macros.
9698         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
9700         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
9701         * configure: Regenerate.
9703 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
9705         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
9706         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
9707         formatting fixes, use pp_colon instead of pp_character (..., ':'),
9708         similarly pp_right_paren.
9709         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
9710         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
9711         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
9712         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
9713         clauses.
9714         (omp_declare_simd_clauses_equal,
9715         omp_remove_redundant_declare_simd_attrs): New functions.
9716         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
9717         (walk_tree_1): Handle new OpenMP 4.0 clauses.
9718         * tree.h (OMP_LOOP_CHECK): Define.
9719         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
9720         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
9721         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
9722         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
9723         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
9724         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
9725         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
9726         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
9727         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
9728         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
9729         OMP_CLAUSE_SIMDLEN_EXPR): Define.
9730         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
9731         (omp_remove_redundant_declare_simd_attrs): New prototype.
9732         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
9733         GIMPLE_OMP_TEAMS): New codes.
9734         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
9735         * omp-low.c (struct omp_context): Add cancel_label and cancellable
9736         fields.
9737         (target_nesting_level): New variable.
9738         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
9739         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
9740         for collapse > 1 static schedule unless ordered.
9741         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
9742         (determine_parallel_type): Adjust get_ws_args_for caller.
9743         (install_var_field): Handle mask & 4 for double indirection.
9744         (scan_sharing_clauses): Ignore shared clause on teams construct.
9745         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
9746         (create_omp_child_function): If inside target or declare target
9747         constructs, set "omp declare target" attribute on the child function.
9748         (find_combined_for): New function.
9749         (scan_omp_parallel): Handle combined loops.
9750         (scan_omp_target, scan_omp_teams): New functions.
9751         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
9752         restrictions and set ctx->cancellable for cancellable constructs.
9753         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
9754         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
9755         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
9756         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
9757         (omp_clause_aligned_alignment): New function.
9758         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
9759         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
9760         on teams constructs.  Handle user defined reductions and new
9761         OpenMP 4.0 clauses.
9762         (lower_reduction_clauses): Don't set placeholder to address of ref
9763         if it has already the right type.
9764         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
9765         (expand_parallel_call): Use the new non-_start suffixed builtins,
9766         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
9767         and GOMP_parallel_end after the call.
9768         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
9769         (expand_omp_for_init_counts): Handle combined loops.
9770         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
9771         loops.
9772         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
9773         end of cancellable loops.
9774         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
9775         Likewise.  Handle collapse > 1 loops.
9776         (expand_omp_simd): Handle combined loops.
9777         (expand_omp_for): Add inner_stmt argument, adjust callers of
9778         expand_omp_for* functions, use expand_omp_for_static*chunk even
9779         for collapse > 1 unless ordered.
9780         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
9781         of cancellable sections.
9782         (expand_omp_single): Remove need_barrier variable, just rely on
9783         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
9784         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
9785         (expand_omp_atomic_load, expand_omp_atomic_store,
9786         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
9787         (expand_omp_target): New function.
9788         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
9789         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
9790         (build_omp_regions_1): Immediately close region for
9791         GF_OMP_TARGET_KIND_UPDATE.
9792         (maybe_add_implicit_barrier_cancel): New function.
9793         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
9794         cancellation.
9795         (lower_omp_single): Likewise.  Add clobber after the barrier.
9796         (lower_omp_taskgroup): New function.
9797         (lower_omp_for): Handle combined loops.  Adjust
9798         lower_rec_input_clauses caller.  Handle cancellation.
9799         (lower_depend_clauses): New function.
9800         (lower_omp_taskreg): Lower depend clauses.  Adjust
9801         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
9802         cancellation.
9803         (lower_omp_target, lower_omp_teams): New functions.
9804         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
9805         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
9806         and GOMP_cancellation_point calls.
9807         (lower_omp): Fold stmts inside of target region.
9808         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
9809         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
9810         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
9811         (BT_FN_VOID_OMPFN_PTR_UINT,
9812         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
9813         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
9814         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
9815         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
9816         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
9817         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
9818         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
9819         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9820         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9821         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
9822         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9823         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
9824         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
9825         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
9826         BUILT_IN_GOMP_PARALLEL_END.
9827         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
9828         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
9829         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
9830         GF_OMP_FOR_KIND_DISTRIBUTE.
9831         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
9832         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
9833         (dump_gimple_omp_return): Print lhs if it has any.
9834         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
9835         gimple_omp_atomic_seq_cst_p.
9836         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
9837         and GIMPLE_OMP_TEAMS.
9838         * langhooks.c (lhd_omp_mappable_type): New function.
9839         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
9840         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
9841         hook.
9842         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
9843         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
9844         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
9845         (struct gimplify_omp_ctx): Add combined_loop field.
9846         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
9847         on stmts inside of target region.
9848         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
9849         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
9850         ORT_TARGET and ORT_TARGET_DATA.
9851         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
9852         Handle GOVD_MAP.
9853         (omp_notice_threadprivate_variable): Complain about threadprivate
9854         variables in target region.
9855         (omp_notice_variable): Complain about vars with non-mappable type
9856         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
9857         (omp_check_private): Ignore ORT_TARGET* regions.
9858         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
9859         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
9860         (find_combined_omp_for): New function.
9861         (gimplify_omp_for): Handle gimplification of combined loops.
9862         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
9863         OMP_TEAMS.
9864         (gimplify_omp_target_update): New function.
9865         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
9866         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
9867         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
9868         (gimplify_body): If fndecl has "omp declare target" attribute, add
9869         implicit ORT_TARGET context around it.
9870         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
9871         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
9872         * tree-nested.c (convert_nonlocal_reference_stmt,
9873         convert_local_reference_stmt, convert_gimple_call): Handle
9874         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9875         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
9876         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
9877         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
9878         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
9879         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
9880         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
9881         BUILT_IN_GOMP_LOOP_END_CANCEL,
9882         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
9883         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
9884         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
9885         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
9886         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
9887         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
9888         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
9889         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
9890         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
9891         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
9892         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
9893         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
9894         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
9895         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
9896         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
9897         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9898         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
9899         gimple_build_omp_teams): New functions.
9900         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
9901         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
9902         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
9903         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9904         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
9905         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
9906         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
9907         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
9908         GF_OMP_ATOMIC_SEQ_CST): New.
9909         (gimple_build_omp_taskgroup, gimple_build_omp_target,
9910         gimple_build_omp_teams): New prototypes.
9911         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
9912         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9913         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
9914         GIMPLE_OMP_SINGLE as end of range.
9915         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
9916         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
9917         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
9918         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
9919         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
9920         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
9921         gimple_omp_target_kind, gimple_omp_target_set_kind,
9922         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
9923         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
9924         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
9925         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
9926         gimple_omp_teams_set_clauses): New inlines.
9927         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
9928         and GIMPLE_OMP_TASKGROUP.
9929         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
9930         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
9931         enum omp_clause_proc_bind_kind): New.
9932         (union omp_clause_subcode): Add depend_kind, map_kind and
9933         proc_bind_kind fields.
9934         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
9935         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9936         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
9937         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
9938         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9940 2013-10-10  Teresa Johnson  <tejohnson@google.com>
9942         * predict.c (tree_estimate_probability): Add new parameter
9943         for estimate_bb_frequencies.
9944         (estimate_bb_frequencies): Add new parameter to force estimation.
9945         (rebuild_frequencies): When max frequency in function is small,
9946         recompute counts from frequencies.
9947         * predict.h (estimate_bb_frequencies): New parameter.
9949 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
9951         * ipa-inline.c (ipa_inline): Fix leak of "order" when
9952         optimizations are disabled.
9954 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
9956         * coverage.c (coverage_finish): Fix leak of da_file_name.
9958 2013-10-10  Jan Hubicka  <jh@suse.cz>
9960         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
9961         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
9962         Bobcat and generic.
9964 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
9966         PR middle-end/58670
9967         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
9968         if any labels are in FALLTHRU_BB, use a special label emitted
9969         immediately after the asm goto insn rather than label_rtx
9970         of the LABEL_DECL.
9971         (expand_asm_stmt): Adjust caller.
9972         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
9973         edge if the last insn in predecessor is a jump with single successor,
9974         but it isn't simplejump_p.
9976 2013-10-10  Richard Biener  <rguenther@suse.de>
9978         PR tree-optimization/58656
9979         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
9981 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
9983         * gimplify.c: Include expr.h and tm_p.h for targets with special
9984         va-arg padding requirements.
9986 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
9988         * tree-flow.h: Move some prototypes to gimple.h.
9989         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
9990         * gimple.h: Relocate some prototypes from tree-flow.h
9991         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
9992         Move to gimplify.c.
9993         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
9994         (build_va_arg_indirect_ref): Relocate and make static.
9995         (std_gimplify_va_arg_expr): Relocate here.
9996         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
9997         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
9999 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10001         * doc/md.texi: Document the mnemonic attribute.
10003 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10005         PR target/57377
10006         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
10007         (set_attr_alternative x ...) when searching for user defined
10008         mnemonic attribute.
10010 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
10012         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
10014 2013-10-09  Easwaran Raman <eraman@google.com>
10016         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
10017         * cfgexpand.c (defer_stack_allocation): ...use here
10018         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
10020 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10022         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
10023         (operand_equal_for_value_replacement): New function, extracted from
10024         value_replacement and enhanced to catch more cases.
10025         (value_replacement): Use operand_equal_for_value_replacement.
10027 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10029         * loop-doloop.c (doloop_modify, doloop_optimize): Use
10030         get_max_loop_iterations.
10032 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10034         * config/arm/aarch-common.c (arm_early_load_addr_dep):
10035         Place comment above function.
10037 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10039         * tree-flow.h: Remove all remaining prototypes, enums and structs that
10040         are not related to tree-cfg.c.
10041         * tree-ssa-address.h: New file.  Relocate prototypes.
10042         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
10043         (addr_for_mem_ref): New.  Combine call to get_address_description and
10044         return addr_for_mem_ref.
10045         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
10046         * tree-ssa-live.h: Adjust prototypes.
10047         * passes.c: Include tree-ssa-live.h.
10048         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
10049         * graphite.c (graphite_transform_loops): Make static.
10050         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
10051         make_pass_graphite, pass_data_graphite_transforms,
10052         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
10053         * ipa-pure-const.c (warn_function_noreturn): Make static.
10054         (execute_warn_function_noreturn, gate_warn_function_noreturn,
10055         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
10056         Relocate from tree-cfg.c
10057         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
10058         static.
10059         (execute_warn_function_noreturn, gate_warn_function_noreturn,
10060         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
10061         Move to ipa-pure-const.c.
10062         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
10063         Relocate from tree-optimize.c.
10064         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
10065         make_pass_fixup_cfg): Move to tree-cfg.c.
10066         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
10067         Relocate some prototypes.
10068         * tree-data-ref.h (tree_check_data_deps) Add prototype.
10069         * tree-dump.c (dump_function_to_file): Remove prototype.
10070         Add tree-flow.h to the include file.
10071         * tree-dump.h: Remove prototype.
10072         * tree-parloops.h: New File.  Add prototypes.
10073         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
10074         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
10075         from tree-ssa-loop.c.
10076         * tree-predcom.c (run_tree_predictive_commoning,
10077         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
10078         Relocate here from tree-ssa-loop.c.
10079         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
10080         ssa_name_values.release ().
10081         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
10082         (ssa_name_values): Relocate from tree-flow.h.
10083         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
10084         * tree-ssa-loop.c (run_tree_predictive_commoning,
10085         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
10086         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
10087         make_pass_graphite, pass_data_graphite_transforms,
10088         make_pass_graphite_transforms, gate_tree_parallelize_loops,
10089         tree_parallelize_loops, pass_data_parallelize_loops,
10090         make_pass_parallelize_loops): Move to other files.
10091         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
10092         moved here.
10093         * tree.h: Remove prototypes from tree-address.c.
10095 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10097         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
10098         (struct int_tree_map): Move to tree-hasher.h
10099         (SCALE, LABEL, PERCENT): Move to gimple.h
10100         * tree-flow-inline.h: Delete.  Move functions to other files.
10101         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
10102         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
10103         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
10104         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
10105         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
10106         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
10107         * tree-hasher.h: Don't include tree-flow.h.
10108         (struct int_tree_map): Relocate from tree-flow.h.
10109         * tree-sra.c (contains_view_convert_expr_p): Relocate from
10110         tree-flow-inline.h and make static.
10111         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
10112         tree-flow-inline.h.
10113         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
10114         tree-flow-inline.h and make static.
10115         * tree.h (is_global_var, may_be_aliased): Relocate from
10116         tree-flow-inline.h.
10117         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
10118         * value-prof.c: No longer include tree-flow-inline.h.
10119         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
10121 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
10123         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
10124         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
10125         (enum move_pos): Move to tree-ssa-loop-im.h
10126         * cfgloop.h: Move some prototypes.
10127         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
10128         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
10129         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
10130         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
10131         (loop_containing_stmt): Relocate from tree-flow-inline.h.
10132         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
10133         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
10134         (enum move_pos): Relocate here.
10135         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
10136         tree-ssa-loop.c.
10137         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
10138         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
10139         make_pass_lim): Relocate here from tree-ssa-loop.c.
10140         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
10141         tree-ssa-loop.c.
10142         (loop_edge_to_cancel, unloop_loops): Make static.
10143         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10144         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
10145         (tree_complete_unroll, gate_tree_complete_unroll,
10146         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
10147         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10148         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
10149         * tree-ssa-loop-ivopts.c: Remove local prototypes.
10150         (stmt_invariant_in_loop_p): Remove unused function.
10151         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
10152         * tree-ssa-loop-manip.h: New file.  Add prototypes.
10153         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
10154         (gcov_type_to_double_int): Move to cfgloop.h.
10155         (double_int_cmp, bound_index,
10156         estimate_numbers_of_iterations_loop): Make static.
10157         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
10158         (max_loop_iterations): Factor out get_max_loop_iterations.
10159         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
10160         cfgloop.c.
10161         * tree-ssa-loop-niter.h: New file.  Add prototypes.
10162         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
10163         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
10164         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
10165         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
10166         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
10167         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
10168         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
10169         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
10170         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
10171         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
10172         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10173         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
10174         pass_data_complete_unroll, make_pass_complete_unroll,
10175         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10176         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
10177         tree-ssa-loop-ivcanon.c.
10178         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
10179         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
10180         tree-ssa-loop-prefetch.c.
10181         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
10182         tree-ssa-loop-im.c.
10183         (get_lsm_tmp_name): Relocate and add suffix parameter.
10184         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
10185         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
10186         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
10187         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
10188         (get_estimated_loop_iterations): Factor out accessor from
10189         estimated_loop_iterations in tree-ssa-loop-niter.c.
10190         (get_max_loop_iterations): Factor out accessor from
10191         _max_loop_iterations in tree-ssa-niter.c.
10192         * loop-unroll.c (decide_unroll_constant_iterations,
10193         decide_unroll_runtime_iterations, decide_peel_simple,
10194         decide_unroll_stupid): Use new get_* accessors.
10196 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
10198         PR tree-optimization/20318
10199         * doc/extend.texi (returns_nonnull): New function attribute.
10200         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
10201         attribute.
10202         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
10203         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
10205 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
10207         PR middle-end/58570
10208         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
10209         false if both components are bitfields.
10211 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10213         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
10214         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
10215         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
10216         * config/aarch64/aarch64.h
10217         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
10218         * config/aarch64/aarch64-simd-builtins.def
10219         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
10221 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10223         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
10225 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10227         * config/aarch64/arm_neon.h (vdiv_f64): Added.
10229 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
10231         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
10232         (vneg_f64): New intrinsic.
10233         (vneg_s8): Asm replaced with C.
10234         (vneg_s16): Likewise.
10235         (vneg_s32): Likewise.
10236         (vneg_s64): New intrinsic.
10237         (vnegq_f32): Asm replaced with C.
10238         (vnegq_f64): Likewise.
10239         (vnegq_s8): Likewise.
10240         (vnegq_s16): Likewise.
10241         (vnegq_s32): Likewise.
10242         (vnegq_s64): Likewise.
10244 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
10246         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
10248 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10250         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
10251         packed stack special handling.
10252         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
10253         back to fixed stack slots for FPRs saved due to stdarg.
10255 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10257         * config/s390/s390.c (s390_frame_info): Restructure function.
10259 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10261         * config/s390/s390.c (struct s390_frame_layout): New field
10262         gpr_save_slots.
10263         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
10264         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
10265         regs_ever_clobbered to char*.
10266         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
10267         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
10268         (s390_register_info): Enable FPR save slots.  Move/Copy some
10269         functionality into ...
10270         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
10271         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
10272         function.
10273         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
10274         not imply a stack frame.
10275         (s390_init_frame_layout): Remove variable clobbered_regs.
10276         (s390_update_register_info): Remove function.
10277         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
10278         cannot be used for register renaming.
10279         (s390_hard_regno_scratch_ok): New function.
10280         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
10281         (s390_initial_elimination_offset): Change offset calculation of
10282         the return address pointer.
10283         (save_gprs): Deal with only r6 being saved from the call-saved regs.
10284         (restore_gprs): Set frame related flag.
10285         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
10286         (s390_emit_prologue): Call s390_register_info instead of
10287         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
10288         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
10289         (s390_optimize_prologue): Call s390_optimize_register_info.
10290         Try to remove also FPR slot save/restore INSNs.  Remove frame
10291         related flags from restore INSNs.
10293 2013-10-08  DJ Delorie  <dj@redhat.com>
10295         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
10296         (movhi): Likewise.
10298         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
10299         avoid conflict with the MI use of %c.
10300         * config/rl78/rl78-real.md: change %c to %C throughout.
10301         * config/rl78/rl78-virt.md: Likewise.
10303 2013-10-08  Jan Hubicka  <jh@suse.cz>
10305         * config/i386/i386.c (ix86_option_override_internal): Switch
10306         to SSE math for -ffast-math when target ISA supports SSE2.
10308 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
10310         * tree-flow.h: Remove some prototypes.
10311         * tree.h: Remove some protypes, add a couple.
10312         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
10313         using_eh_for_cleanups_p): Add interface routines for front ends.
10314         * tree-eh.h: New file.  Add protoptyes.
10315         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
10316         (add_stmt_to_eh_lp_fn): Make static.
10317         (lower_try_finally): Use new using_eh_for_cleanups_p.
10318         * emit-rtl.c: Include tree-eh.h.
10319         * gimple.h: Include tree-eh.h.
10321 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
10323         PR tree-optimization/58480
10324         * tree-vrp.c (infer_nonnull_range): New function.
10325         (infer_value_range): Call infer_nonnull_range.
10327 2013-10-08  Dehao Chen  <dehao@google.com>
10329         PR tree-optimization/58619
10330         * tree-inline.c (copy_phis_for_bb): Combine location data
10331         only if non-null.
10333 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10335         PR target/58423
10336         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
10337         RTX_FRAME_RELATED_P on INSN.
10339 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10341         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
10342         (altivec_expand_vec_perm_const): Call it.
10344 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10346         * config/rs6000/vector.md (mov<mode>): Emit permuted move
10347         sequences for LE VSX loads and stores at expand time.
10348         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
10349         prototype.
10350         * config/rs6000/rs6000.c (rs6000_const_vec): New.
10351         (rs6000_gen_le_vsx_permute): New.
10352         (rs6000_gen_le_vsx_load): New.
10353         (rs6000_gen_le_vsx_store): New.
10354         (rs6000_gen_le_vsx_move): New.
10355         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
10356         (*vsx_le_perm_load_v4si): New.
10357         (*vsx_le_perm_load_v8hi): New.
10358         (*vsx_le_perm_load_v16qi): New.
10359         (*vsx_le_perm_store_v2di): New.
10360         (*vsx_le_perm_store_v4si): New.
10361         (*vsx_le_perm_store_v8hi): New.
10362         (*vsx_le_perm_store_v16qi): New.
10363         (*vsx_xxpermdi2_le_<mode>): New.
10364         (*vsx_xxpermdi4_le_<mode>): New.
10365         (*vsx_xxpermdi8_le_V8HI): New.
10366         (*vsx_xxpermdi16_le_V16QI): New.
10367         (*vsx_lxvd2x2_le_<mode>): New.
10368         (*vsx_lxvd2x4_le_<mode>): New.
10369         (*vsx_lxvd2x8_le_V8HI): New.
10370         (*vsx_lxvd2x16_le_V16QI): New.
10371         (*vsx_stxvd2x2_le_<mode>): New.
10372         (*vsx_stxvd2x4_le_<mode>): New.
10373         (*vsx_stxvd2x8_le_V8HI): New.
10374         (*vsx_stxvd2x16_le_V16QI): New.
10376 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
10378         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
10380 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10382         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
10383         loop to work also for 31bit ABI.
10384         Save the stack pointer for frame_size > 0.
10386 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10388         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
10389         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
10390         constraint letters from expanders.
10391         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
10392         retry count to general_operand.
10393         ("tabort"): Give operand 0 a mode.
10394         ("tabort_1"): Add mode and constraint letter for operand 0.
10395         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
10397 2013-10-04  Jeff Law  <law@redhat.com>
10399         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
10401         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
10402         out of ...
10403         (thread_across_edge): Here.  Call it.
10405 2013-10-04  Cary Coutant  <ccoutant@google.com>
10407         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
10408         discarding a location list expression (or a piece of one).
10410 2013-10-03  Jan Hubicka  <jh@suse.cz>
10412         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
10413         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
10414         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
10416 2013-10-03  Jan Hubicka  <jh@suse.cz>
10418         * config/i386/i386.c (ix86_option_override_internal): Do not enable
10419         accumulate-outgoing-args when producing unwind info.
10421 2013-10-03  Wei Mi  <wmi@google.com>
10423         * lra-constraints.c (insert_move_for_subreg): New function
10424         extracted from simplify_operand_subreg.
10425         (simplify_operand_subreg): Add reload for paradoxical subreg.
10427 2013-10-03  Rong Xu  <xur@google.com>
10429         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
10430         the candidate of builtin_expect such that we should fix the
10431         size/time estimation.
10432         (estimate_function_body_sizes): Do the acutally size/time fix-up
10433         for builtin_expect.
10435 2013-10-03  Rong Xu  <xur@google.com>
10437         * predict.c (tree_predict_by_opcode): Get the probability
10438         for builtin_expect from param builtin_expect_probability.
10439         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
10440         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
10441         * doc/invoke.texi: Add documentation for builtin-expect-probability.
10443 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
10445         PR c++/19476
10446         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
10447         * calls.c (alloca_call_p): Use get_callee_fndecl.
10448         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
10449         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
10450         Likewise.
10451         (vrp_visit_stmt): Remove duplicated code.
10453 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
10455         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
10456         ceildf2, btruncdf2, instead of vsx_* name.
10458         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
10459         iterators to only do V2DF and V4SF here.  Move the DF code to
10460         rs6000.md where it is combined with SF mode.  Replace <VSv> with
10461         just 'v' since only vector operations are handled with these insns
10462         after moving the DF support to rs6000.md.
10463         (vsx_sub<mode>3): Likewise.
10464         (vsx_mul<mode>3): Likewise.
10465         (vsx_div<mode>3): Likewise.
10466         (vsx_fre<mode>2): Likewise.
10467         (vsx_neg<mode>2): Likewise.
10468         (vsx_abs<mode>2): Likewise.
10469         (vsx_nabs<mode>2): Likewise.
10470         (vsx_smax<mode>3): Likewise.
10471         (vsx_smin<mode>3): Likewise.
10472         (vsx_sqrt<mode>2): Likewise.
10473         (vsx_rsqrte<mode>2): Likewise.
10474         (vsx_fms<mode>4): Likewise.
10475         (vsx_nfma<mode>4): Likewise.
10476         (vsx_copysign<mode>3): Likewise.
10477         (vsx_btrunc<mode>2): Likewise.
10478         (vsx_floor<mode>2): Likewise.
10479         (vsx_ceil<mode>2): Likewise.
10480         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
10481         (vsx_sminsf3): Likewise.
10482         (vsx_fmadf4): Likewise.
10483         (vsx_fmsdf4): Likewise.
10484         (vsx_nfmadf4): Likewise.
10485         (vsx_nfmsdf4): Likewise.
10486         (vsx_cmpdf_internal1): Likewise.
10488         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
10489         simpler to select whether a target has SPE or traditional floating
10490         point support in iterators.
10491         (TARGET_DF_SPE): Likewise.
10492         (TARGET_SF_FPR): Likewise.
10493         (TARGET_DF_FPR): Likewise.
10494         (TARGET_SF_INSN): Macros to say whether floating point support
10495         exists for a given operation for expanders.
10496         (TARGET_DF_INSN): Likewise.
10498         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
10499         combining of SF/DF mode operations, using both traditional and VSX
10500         registers.
10501         (Fvsx): Likewise.
10502         (Ff): Likewise.
10503         (Fv): Likewise.
10504         (Fs): Likewise.
10505         (Ffre): Likewise.
10506         (FFRE): Likewise.
10507         (abs<mode>2): Combine SF/DF modes using traditional floating point
10508         instructions.  Add support for using the upper DF registers with
10509         VSX support, and SF registers with power8-vector support.  Update
10510         expanders for operations supported by both the SPE and traditional
10511         floating point units.
10512         (abs<mode>2_fpr): Likewise.
10513         (nabs<mode>2): Likewise.
10514         (nabs<mode>2_fpr): Likewise.
10515         (neg<mode>2): Likewise.
10516         (neg<mode>2_fpr): Likewise.
10517         (add<mode>3): Likewise.
10518         (add<mode>3_fpr): Likewise.
10519         (sub<mode>3): Likewise.
10520         (sub<mode>3_fpr): Likewise.
10521         (mul<mode>3): Likewise.
10522         (mul<mode>3_fpr): Likewise.
10523         (div<mode>3): Likewise.
10524         (div<mode>3_fpr): Likewise.
10525         (sqrt<mode>3): Likewise.
10526         (sqrt<mode>3_fpr): Likewise.
10527         (fre<Fs>): Likewise.
10528         (rsqrt<mode>2): Likewise.
10529         (cmp<mode>_fpr): Likewise.
10530         (smax<mode>3): Likewise.
10531         (smin<mode>3): Likewise.
10532         (smax<mode>3_vsx): Likewise.
10533         (smin<mode>3_vsx): Likewise.
10534         (negsf2): Delete SF operations that are merged with DF.
10535         (abssf2): Likewise.
10536         (addsf3): Likewise.
10537         (subsf3): Likewise.
10538         (mulsf3): Likewise.
10539         (divsf3): Likewise.
10540         (fres): Likewise.
10541         (fmasf4_fpr): Likewise.
10542         (fmssf4_fpr): Likewise.
10543         (nfmasf4_fpr): Likewise.
10544         (nfmssf4_fpr): Likewise.
10545         (sqrtsf2): Likewise.
10546         (rsqrtsf_internal1): Likewise.
10547         (smaxsf3): Likewise.
10548         (sminsf3): Likewise.
10549         (cmpsf_internal1): Likewise.
10550         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
10551         (negdf2): Delete DF operations that are merged with SF.
10552         (absdf2): Likewise.
10553         (nabsdf2): Likewise.
10554         (adddf3): Likewise.
10555         (subdf3): Likewise.
10556         (muldf3): Likewise.
10557         (divdf3): Likewise.
10558         (fred): Likewise.
10559         (rsqrtdf_internal1): Likewise.
10560         (fmadf4_fpr): Likewise.
10561         (fmsdf4_fpr): Likewise.
10562         (nfmadf4_fpr): Likewise.
10563         (nfmsdf4_fpr): Likewise.
10564         (sqrtdf2): Likewise.
10565         (smaxdf3): Likewise.
10566         (smindf3): Likewise.
10567         (cmpdf_internal1): Likewise.
10568         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
10569         (btrunc<mode>2): Delete separate expander, and combine with the
10570         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
10571         (btrunc<mode>2_fpr): Likewise.
10572         (ceil<mode>2): Likewise.
10573         (ceil<mode>2_fpr): Likewise.
10574         (floor<mode>2): Likewise.
10575         (floor<mode>2_fpr): Likewise.
10576         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
10577         Add support for using the upper registers with VSX and
10578         power8-vector.  Move insns to be closer to the define_expands. On
10579         VSX systems, prefer the traditional form of FMA over the VSX
10580         version, since the traditional form allows the target not to
10581         overlap with the inputs.
10582         (fms<mode>4_fpr): Likewise.
10583         (nfma<mode>4_fpr): Likewise.
10584         (nfms<mode>4_fpr): Likewise.
10586 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10587             Richard Earnshaw  <richard.earnshaw@arm.com>
10589         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
10590         (struct mult_cost_table): Likewise.
10591         (struct mem_cost_table): Likewise.
10592         (struct fp_cost_table): Likewise.
10593         (struct vector_cost_table): Likewise.
10594         (cpu_cost_table): Likewise.
10595         * config/arm/arm.opt (mold-rts-costs): New option.
10596         (mnew-generic-costs): Likewise.
10597         * config/arm/arm.c (generic_extra_costs): New table.
10598         (cortexa15_extra_costs): Likewise.
10599         (arm_slowmul_tune): Use NULL as new costs.
10600         (arm_fastmul_tune): Likewise.
10601         (arm_strongarm_tune): Likewise.
10602         (arm_xscale_tune): Likewise.
10603         (arm_9e_tune): Likewise.
10604         (arm_v6t2_tune): Likewise.
10605         (arm_cortex_a5_tune): Likewise.
10606         (arm_cortex_a9_tune): Likewise.
10607         (arm_v6m_tune): Likewise.
10608         (arm_fa726te_tune): Likewise.
10609         (arm_cortex_a15_tune): Use cortex15_extra_costs.
10610         (arm_cortex_tune): Use generict_extra_costs.
10611         (shifter_op_p): New function.
10612         (arm_unspec_cost): Likewise.
10613         (LIBCALL_COST): Define.
10614         (arm_new_rtx_costs): New function.
10615         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
10616         table is available. Use old costs otherwise unless mnew-generic-costs
10617         is specified.
10618         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
10619         (cpu_cost_table): Declare.
10621 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10623         PR target/58460
10624         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
10625         (*subs_mul_imm_<mode>)
10626         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
10627         (*sub_<shift>_<mode>)
10628         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
10629         Remove k constraint.
10631 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
10633         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
10634         code.
10635         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
10637 2013-10-02  Teresa Johnson  <tejohnson@google.com>
10639         * predict.c (probably_never_executed): New function.
10640         (probably_never_executed_bb_p): Invoke probably_never_executed.
10641         (probably_never_executed_edge_p): Ditto.
10642         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10643         Treat profile insanities conservatively.
10645 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
10647         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
10649 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
10651         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
10652         use it.  Use smaller increase for scratch.  Don't increase reject
10653         for early clobber scratch.
10654         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
10655         setting eliminated regs except setting fp from hfp.
10656         (lra_eliminate): Check lra_insn_recog_data on NULL.
10658 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10660         PR target/58587
10661         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
10662         setting -mvsx-timode by default until the underlying problem is fixed.
10663         (RS6000_CPU, power7 defaults): Likewise.
10665 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
10667         * config/x-linux (host-linux.o): Remove header dependencies.
10668         Use $(COMPILE) and $(POSTCOMPILE).
10669         * config/t-linux-android (linux-android.o): Ditto.
10671 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
10673         * Makefile.in (expmed.o-warn): Remove.
10675 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
10677         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
10678         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
10680 2013-10-02  Teresa Johnson  <tejohnson@google.com>
10682         * dojump.c (do_jump_1): Divide probability between
10683         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
10685 2013-10-02  Tom Tromey  <tromey@redhat.com>
10687         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
10689 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
10691         * tree-flow.h: Remove some prototypes.
10692         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
10693         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
10694         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
10695         mark_virtual_phi_result_for_renaming): Relocate here.
10696         * tree-into-ssa.h: Add prototypes.
10697         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
10698         single_pred_before_succ_order.
10699         (blocks_in_phiopt_order): Rename and move to cfganal.c.
10700         (nonfreeing_call_p) Move to gimple.c.
10701         * cfganal.c (single_pred_before_succ_order): Move and renamed from
10702         tree-ssa-phiopt.c.
10703         * basic-block.h (single_pred_before_succ_order): Add prototype.
10704         * gimple.c (nonfreeing_call_p): Relocate here.
10705         * gimple.h: Add prototype.
10706         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
10707         * tree-ssa-dom.h: New file.  Relocate prototypes here.
10708         * tree-ssa.h: Include tree-ssa-dom.h.
10710 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
10712         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
10713         Use $(COMPILE) and $(POSTCOMPILE).
10715         * config/alpha/x-alpha (driver-alpha.o): Ditto.
10717 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
10719         * tree-flow.h: Remove some prototypes.
10720         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
10721         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
10722         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
10723         propagate_tree_value*): Move from here to...
10724         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
10725         propagate_tree_value*): Relocate here.
10726         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
10727         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
10728         * gimple-fold.c: Remove gimple-fold.h from include list.
10729         * tree-vrp.c: Remove gimple-fold.h from include list.
10730         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
10731         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
10732         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
10733         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
10734         * sese.c: Add tree-ssa-propagate.h to include list.
10736 2013-10-02  Richard Biener  <rguenther@suse.de>
10738         * tree-loop-distribution.c: Include tree-vectorizer.h for
10739         find_loop_location.
10740         (enum partition_kind): Remove PKIND_REDUCTION.
10741         (struct partition_s): Remove has_writes member, add reduction_p member.
10742         (partition_alloc): Adjust.
10743         (partition_builtin_p): Likewise.
10744         (partition_has_writes): Remove.
10745         (partition_reduction_p): New function.
10746         (partition_merge_into): Likewise.
10747         (generate_code_for_partition): Commonize builtin partition
10748         handling tail.
10749         (rdg_cannot_recompute_vertex_p): Remove.
10750         (already_processed_vertex_p): Likewise.
10751         (rdg_flag_vertex): Do not set has_writes.
10752         (classify_partition): Adjust.
10753         (rdg_build_partitions): Do not set has_writes, treat all
10754         partitions as useful.
10755         (distribute_loop): Record number of library calls generated.  Adjust.
10756         (tree_loop_distribution): Report number of loops and library
10757         calls generated as opt-info.
10759 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
10761         * tree-flow.h: Include new .h files.  Move prototypes.
10762         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
10763         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
10764         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
10765         * tree-pretty-print.h: Add prototypes from tree-flow.h.
10766         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
10767         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
10768         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
10769         * tree.h (get_ref_base_and_extent): Move prototype out.
10770         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
10771         tree-dfa.h.
10772         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
10773         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
10774         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
10775         * tree-scalar-evolution.c: Include tree.h.
10776         * sese.c: Include tree.h.
10777         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
10778         * dwarf2out.c: Include tree-dfa.h.
10779         * tree-chrec.c: Include tree.h.
10780         * tree-data-ref.c: Include tree.h.
10782 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
10784         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
10785         Fix whitespace.
10787 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10789         * config/t-sol2 (sol2-c.o): Remove header dependencies.
10790         Use $(COMPILE) and $(POSTCOMPILE).
10791         (sol2-cxx.o): Likewise.
10792         (sol2-stubs.o): Likewise.
10793         (sol2.o): Likewise.
10794         * config/x-solaris (host-solaris.o): Likewise.
10796         * config/sparc/t-sparc (sparc.o): Remove.
10797         (sparc-c.o): Remove header dependencies.
10798         Use $(COMPILE) and $(POSTCOMPILE).
10799         * config/sparc/x-sparc: Likewise.
10801 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
10803         * config/arc/arc-opts.h: Add 2013 to Copyright years.
10804         * config/arc/arc700.md: Likewise.
10805         * config/arc/arc-modes.def: Likewise.
10806         * config/arc/arc-simd.h: Likewise.
10807         * config/arc/t-arc-uClibc: Likewise.
10808         * config/arc/t-arc-newlib: Likewise.
10810 2013-10-02  Renlin Li  <renlin.li@arm.com>
10812         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
10813         plus_constant.
10814         (aarch64_expand_epilogue): Likewise.
10816 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10817             Yufeng Zhang  <yufeng.zhang@arm.com>
10819         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
10820         declaration.
10821         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
10822         'base_in' represent a conversion and legal_cast_p_1 holds; set
10823         'base_in' with the returned value from get_unwidened.
10825 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10827         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
10828         plus_constant is not used.
10830 2013-10-01  Wei Mi  <wmi@google.com>
10832         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
10833         * config/i386/i386.md: Add define_peephole2 to
10834         break partial reg stall for cvtss2sd/cvtsd2ss.
10836 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10838         * config/arc/arc.c (pass_arc_ifcvt::clone):
10839         Update for ctxt_ -> m_ctxt change.
10841 2013-10-01  Jeff Law  <law@redhat.com>
10843         * tree-ssa-threadupdate.c (struct redirection_data): Delete
10844         outgoing_edge and intermediate_edge fields.  Instead store the path.
10845         (redirection_data::hash): Hash on the last edge's destination index.
10846         (redirection_data::equal): Check the entire thread path.
10847         (lookup_redirectio_data): Corresponding changes.
10848         (create_edge_and_update_destination_phis): Likewise.
10849         (thread_single_edge): Likewise.
10851 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10852             Diego Novillo <dnovillo@google.com>
10854         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
10855         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
10856         (vld32wh_insn, vld32wl_insn): Delete commented-out old
10857         versions of these patterns.
10859         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
10860         (__builtin_arc_aligned): Likewise.
10862         * config/arc/arc.md: Expand adc_0 comment stating the intended
10863         purpose and why it isn't ready.
10864         Replace commented out call_value_via_label_mixed with a
10865         plain comment about bl_s.
10867         * config/arc/arc.c (stdio.h): Don't include directly.
10868         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
10869         Remove if (1) condition.
10870         (arc_encode_section_info): Fix comment.
10872 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10874         * config/arc/arc.c (arc_conditional_register_usage):
10875         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
10876         Also set reg_alloc_order for DMA config regs.
10878 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10879             Jeremy Bennett  <jeremy.bennett@embecosm.com>
10881         * doc/install.texi (--with-cpu): Mention ARC.
10882         (arc-*-elf32): New paragraph.
10883         (arc-linux-uclibc): Likewise.
10884         * doc/md.texi (Machine Constraints): Add ARC part.
10885         * doc/invoke.texi: (menu): Add ARC Options.
10886         (Machine Dependent Options) <ARC Options>: Add synopsis.
10887         (node ARC Options): Add.
10888         * doc/extend.texi (long_call / short_call attribute): Add ARC.
10889         (ARC Built-in Functions): New section defining
10890         generic ARC built-in functions.
10891         (ARC SIMD Built-in Functions): New section defining SIMD specific
10892         built-in functions.
10893         (Declaring Attributes of Functions): Extended
10894         description of short_call and long_call attributes for ARC and
10895         added index entries.
10897 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
10898             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
10899             Joern Rennecke  <joern.rennecke@embecosm.com>
10900             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
10901             Brendan Kehoe  <brendan@zen.org>
10902             Michael Eager  <eager@eagercon.com>
10903             Simon Cook  <simon.cook@embecosm.com>
10904             Jeremy Bennett  <jeremy.bennett@embecosm.com>
10906         * config/arc, common/config/arc: New directories.
10908 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
10909             Brendan Kehoe  <brendan@zen.org>
10910             Simon Cook  <simon.cook@embecosm.com>
10912         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
10914 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
10916         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
10917         * tree-ssa-coalesce.h: New. Move prototype to here.
10918         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
10919         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
10920         (gimple_can_coalesce_p): Move to...
10921         * gimple.c (gimple_can_coalesce_p): Here.
10923 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
10925         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
10926         (dump_decl_set): Move to gimple.c.
10927         * gimple.h: Don't include tree-ssa-operands.h.
10928         (dump_decl_set): Add prototype.
10929         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
10930         Move to gimple-ssa.h.
10931         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
10932         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
10933         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
10934         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
10935         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
10936         than PHI_ARG_DEF.
10937         (dump_decl_set): Relocate here.
10938         * gimple-ssa.h: New file.
10939         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
10940         Relocate from gimple.h.
10941         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
10942         * tree-ssa-operands.c (swap_ssa_operands): Rename from
10943         swap_tree_operands and remove non-ssa path.
10944         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
10945         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
10946         swap_ssa_operands.
10947         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
10948         vect_is_simple_reduction_1): Use swap_ssa_operands.
10949         * tree-flow.h: Move various prototypes to tree-phinodes.h.
10950         (enum need_phi_state): Move to tree-into-ssa.c.
10951         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
10952         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
10953         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
10954         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
10955         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
10956         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
10957         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
10958         num_imm_uses): Move to ssa-iterators.h.
10959         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
10960         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
10961         tree-phinodes.h.
10962         (op_iter_done, op_iter_next_def, op_iter_next_tree,
10963         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
10964         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
10965         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
10966         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
10967         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
10968         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
10969         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
10970         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
10971         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
10972         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
10973         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
10974         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
10975         (set_phi_nodes): Move to tree-phinodes.h.
10976         * tree-ssa-operands.h (enum ssa_op_iter_type,
10977         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
10978         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
10979         (dump_decl_set): Remove prototype.
10980         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
10981         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
10982         (set_phi_nodes): Relocate from tree-flow-inline.h.
10983         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
10984         tree-flow-inline.h
10985         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
10986         include list.  Temporarily add gimple.h to include list.
10987         * ssa-iterators.h: New file.
10988         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
10989         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
10990         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
10991         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
10992         Relocate from tree-ssa-operands.h.
10993         (delink_imm_use, link_imm_use_to_list, link_imm_use,
10994         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
10995         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
10996         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
10997         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
10998         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
10999         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
11000         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
11001         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
11002         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
11003         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
11004         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
11005         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
11006         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
11007         Relocate from tree-flow-inline.h.
11008         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
11010 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
11012         * aarch64-simd.md
11013         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
11014         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
11015         Insert '\t' to output template.
11016         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
11017         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
11018         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
11019         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
11021 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
11023         * doc/install.texi (Host/target specific installation notes for GCC):
11024         Put @anchor before @heading.
11025         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
11026         Use @email for email addresses.
11028 2013-10-01  Jeff Law  <law@redhat.com>
11030         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
11031         a vec.  Only delete the path if we create one without successfully
11032         registering a jump thread.
11033         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
11034         as a pointer.
11035         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
11036         (paths): New vector of jump threading paths.
11037         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
11038         (THREAD_PATH): New accessor macro for the entire thread path.
11039         (lookup_redirection_data): Get intermediate and final outgoing edge
11040         from the thread path.
11041         (create_edge_and_update_destination_phis): Copy the threading path.
11042         (ssa_fix_duplicate_block_edges): Get edges and block types from the
11043         jump threading path.
11044         (ssa_redirect_edges): Get edges and block types from the jump threading
11045         path.  Free the path vector.
11046         (thread_block): Get edges from the jump threading path.  Look at the
11047         entire path to see if we thread to a loop exit.  If we cancel a jump
11048         thread request, then free the path vector.
11049         (thread_single_edge): Get edges and block types from the jump threading
11050         path.  Free the path vector.
11051         (thread_through_loop_header): Get edges and block types from the jump
11052         threading path.  Free the path vector.
11053         (mark_threaded_blocks): Iterate over the vector of paths and store
11054         the path on the appropriate edge.  Get edges and block types from the
11055         jump threading path.
11056         (mark_threaded_blocks): Get edges and block types from the jump
11057         threading path.  Free the path vector.
11058         (thread_through_all_blocks): Use the vector of paths rather than
11059         a vector of 3-edge sets.
11060         (register_jump_thread): Accept pointer to a path vector rather
11061         than the path vector itself.  Store the path vector for later use.
11062         Simplify.
11064 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
11065             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11067         PR target/58574
11068         * config/s390/s390.c (s390_split_branches): Modify check for table
11069         jump insns.
11070         (s390_chunkify_start): Rearrange table jump insn check in order to
11071         deal with compare and branch insns correctly.
11073 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
11075         PR target/58578
11076         Revert
11077         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
11078         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
11079         define_insn_and_split.
11080         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
11081         (shiftsi3_compare): New pattern.
11082         (rrx): New pattern.
11083         * config/arm/unspecs.md (UNSPEC_RRX): New.
11085 2013-10-01  Alan Modra  <amodra@gmail.com>
11087         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
11088         casing inout operands.
11090 2013-10-01  Richard Biener  <rguenther@suse.de>
11092         PR tree-optimization/58553
11093         * tree-loop-distribution.c (struct partition_s): Add niter member.
11094         (classify_partition): Populate niter member for the partition
11095         and properly identify whether the relevant store happens before
11096         or after the loop exit.
11097         (generate_memset_builtin): Use niter member from the partition.
11098         (generate_memcpy_builtin): Likewise.
11100 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
11102         * vec.h (vec_prefix, vec): Prefix member names with "m_".
11103         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
11105 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
11107         * basic-block.h (edge_list): Prefix member names with "m_".
11108         * context.h (context): Likewise.
11109         * domwalk.h (dom_walker): Likewise.
11110         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
11111         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
11112         * hash-table.h (hash_table): Likewise.
11113         * machmode.h (bit_field_mode_iterator): Likewise.
11114         * pass_manager.h (pass_list): Likewise.
11115         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
11116         * tree-pass.h (pass_data): Likewise.
11117         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
11118         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
11119         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
11120         * asan.c (pass_data_asan): Update accordingly.
11121         * cfganal.c (control_dependences::find_control_dependence): Likewise.
11122         (control_dependences::control_dependences): Likewise.
11123         (control_dependences::~control_dependences): Likewise.
11124         (control_dependences::~control_dependences): Likewise.
11125         (control_dependences::get_edges_dependent_on): Likewise.
11126         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
11127         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
11128         * context.c (gcc::context::context): Likewise.
11129         * cprop.c (pass_rtl_cprop::clone): Likewise.
11130         * domwalk.c (dom_walker::walk): Likewise.
11131         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
11132         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
11133         * mode-switching.c (pass_mode_switching::clone): Likewise.
11134         * passes.c (opt_pass::opt_pass): Likewise.
11135         (pass_manager::pass_manager): Likewise.
11136         * predict.c (pass_strip_predict_hints::clone): Likewise.
11137         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
11138         (pass_split_all_insns::clone): Likewise.
11139         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
11140         Likewise.
11141         (bit_field_mode_iterator::next_mode): Likewise.
11142         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
11143         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
11144         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
11145         * tree-complex.c (pass_lower_complex::clone): Likewise.
11146         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
11147         * tree-object-size.c (pass_object_sizes::clone): Likewise.
11148         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
11149         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
11150         (pass_fold_builtins::clone): Likewise.
11151         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
11152         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
11153         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
11154         (pass_cd_dce::clone): Likewise.
11155         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
11156         (pass_phi_only_cprop::clone): Likewise.
11157         * tree-ssa-dse.c (pass_dse::clone): Likewise.
11158         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
11159         * tree-ssa-loop.c (pass_lim::clone): Likewise.
11160         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
11161         * tree-ssa-pre.c (pass_fre::clone): Likewise.
11162         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
11163         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
11164         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
11165         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
11166         * tree-vrp.c (pass_vrp::clone): Likewise.
11167         * tsan.c (pass_tsan::clone): Likewise.
11169 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
11171         PR middle-end/58564
11172         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
11173         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
11175         PR middle-end/58564
11176         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
11177         optimization, punt if sign_bit_p looked through any zero extension.
11179 2013-09-30  Teresa Johnson  <tejohnson@google.com>
11181         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
11182         Update redirected out edge count in joiner case.
11183         (ssa_redirect_edges): Common the joiner and non-joiner cases
11184         so that joiner case gets profile updates.
11186 2013-09-30  Richard Biener  <rguenther@suse.de>
11188         PR tree-optimization/58554
11189         * tree-loop-distribution.c (classify_partition): Require
11190         unconditionally executed stores for memcpy and memset recognition.
11191         (tree_loop_distribution): Calculate dominance info.
11193 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
11195         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
11196         (NO_PROFILE_COUNTERS): Likewise.
11197         (PROFILE_HOOK): Likewise.
11198         (FUNCTION_PROFILER): Likewise.
11199         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
11201 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
11203         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
11204         calls and defines in TARGET_MACHO conditional.
11205         (load_macho_picbase_di): Likewise.
11206         (reload_macho_picbase): Likewise.
11207         (reload_macho_picbase_si): Likewise.
11208         (reload_macho_picbase_di): Likewise.
11209         (nonlocal_goto_receiver): Likewise.
11211 2013-09-30  Nick Clifton  <nickc@redhat.com>
11213         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
11214         that use the MSP430X ISA.
11215         (msp430_option_override): Scan -mmcu command line option for any
11216         MCU name that supports the MSP430X ISA.
11217         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
11218         -mmcu options which enable the MSP430X ISA.
11220 2013-09-30  Richard Biener  <rguenther@suse.de>
11222         PR middle-end/58532
11223         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
11224         before looking for setjmp-like calls.
11226 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
11228         PR target/10901
11229         * config/darwin-protos.h (machopic_get_function_picbase): New.
11230         * config/darwin.c (machopic_get_function_picbase): New.
11231         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
11232         label for a new func.  (load_macho_picbase_di): Likewise.
11233         (reload_macho_picbase): New expand.
11234         (reload_macho_picbase_si): New insn.
11235         (reload_macho_picbase_di): New insn.
11236         (nonlocal_goto_receiver): New define and split.
11237         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
11238         (unspecv enum): Add UNSPECV_NLGR.
11240 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
11242         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
11243         that altivec registers are correctly sized on Darwin.
11245 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
11247         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
11248         darwin-driver.o): Use COMPILE and POSTCOMPILE.
11249         * config/x-darwin (host-darwin.o): Likewise.
11250         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
11251         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
11252         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
11254 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
11256         * doc/invoke.texi: Fix usage of @tie{} command.
11258 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
11260         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
11262 2013-09-28  Jan Hubicka  <jh@suse.cz>
11264         * config/i386/x86-tune.def: Add documentation for each of the options;
11265         add whitespace.
11267 2013-09-28  Jan Hubicka  <jh@suse.cz>
11269         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
11270         generic.
11271         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
11272         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
11273         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
11274         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
11275         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
11277 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
11279         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
11280         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
11281         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
11282         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
11283         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
11284         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
11285         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
11286         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
11287         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
11288         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
11289         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
11290         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
11291         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
11292         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
11293         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
11294         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
11295         gimple.h, godump.c, graphite-clast-to-gimple.c,
11296         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
11297         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
11298         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
11299         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
11300         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
11301         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
11302         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
11303         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
11304         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
11305         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
11306         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
11307         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
11308         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
11309         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
11310         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
11311         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
11312         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
11313         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
11314         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
11315         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
11316         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
11317         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
11318         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
11319         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
11320         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11321         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11322         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
11323         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
11324         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11325         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11326         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11327         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
11328         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
11329         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
11330         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
11331         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
11332         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
11333         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
11334         whitespace before "(".
11336 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
11338         * expr.h (extract_bit_field): Remove packedp parameter.
11339         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
11340         from forward declaration.
11341         (store_split_bit_field): Remove packedp arg from calls to
11342         extract_fixed_bit_field.
11343         (extract_bit_field_1): Remove packedp parameter and packedp
11344         argument from recursive calls and calls to extract_fixed_bit_field.
11345         (extract_bit_field): Remove packedp parameter and corresponding
11346         arg to extract_bit_field_1.
11347         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
11348         to issue warnings.
11349         (extract_split_bit_field): Remove packedp arg from call to
11350         extract_fixed_bit_field.
11351         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
11352         (copy_blkmode_from_reg): Likewise.
11353         (copy_blkmode_to_reg): Likewise.
11354         (read_complex_part): Likewise.
11355         (store_field): Likewise.
11356         (expand_expr_real_1): Likewise.
11357         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
11358         to extract_bit_field.
11359         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
11360         call to extract_bit_field.
11361         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
11362         call to extract_bit_field.
11363         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
11364         and special packedp behavior from -fstrict-volatile-bitfields
11365         documentation.
11367 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11369         * lra-eliminations.c (init_elim_table): Guard value_p.
11371 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
11373         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
11374         DFmode, DImode, and SFmode in the upper VSX registers based on the
11375         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
11376         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
11377         of the VSX register handling.
11379         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
11380         (f32_sv): Likewise.
11381         (zero_extendsidi2_lfiwzx): Add support for loading into the
11382         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
11383         only do VSX memory options on Altivec registers.
11384         (extendsidi2_lfiwax): Likewise.
11385         (extendsfdf2_fpr): Likewise.
11386         (mov<mode>_hardfloat, SF/SD modes): Likewise.
11387         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
11388         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
11389         (movdi_internal64): Likewise.
11391 2013-09-27  Xinliang David Li  <davidxl@google.com>
11393         * opts.c (finish_options): Adjust parameters
11394         according to vect cost model.
11395         (common_handle_option): Set dynamic vect cost
11396         model for FDO.
11397         targhooks.c (default_add_stmt_cost): Compute stmt cost
11398         unconditionally.
11399         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11400         Use helper function.
11401         * tree-vectorizer.h (unlimited_cost_model): New function.
11402         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
11403         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
11404         function.
11405         (vect_enhance_data_refs_alignment): Ditto.
11406         * flag-types.h: New enum.
11407         * common/config/i386/i386-common.c (ix86_option_init_struct):
11408         No need to initialize vect_cost_model flag.
11409         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
11410         unconditionally.
11412 2013-09-27  Diego Novillo  <dnovillo@google.com>
11414         * gimple.h (enum ssa_mode): Remove.
11416 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
11418         * cfgloop.h (number_of_loops): Fix typo in check for null.
11420 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
11422         PR middle-end/58551
11423         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
11424         are children of outermost saved_cfun's loop, and set it up to
11425         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
11426         if loop != loop0 and SESE region contains bbs that belong to loop0.
11428 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
11430         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
11431         (binary_scale_code_p, get_base_term, get_index_term): New functions.
11432         (set_address_segment, set_address_base, set_address_index)
11433         (set_address_disp): Accept the argument unconditionally.
11434         (baseness): Remove must_be_base_p and must_be_index_p checks.
11435         (decompose_normal_address): Classify as much as possible in the
11436         main loop.
11438 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
11440         * cse.c (count_reg_usage): Handle INT_LIST.
11441         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
11442         * reginfo.c (reg_scan_mark_refs): Likewise.
11443         * reload1.c (eliminate_regs_1): Likewise.
11445 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
11447         PR middle-end/58547
11448         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
11449         signed.
11451 2013-09-27  Richard Biener  <rguenther@suse.de>
11453         PR tree-optimization/58459
11454         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
11455         restriction not propagating into loops.
11457 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
11459         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
11460         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
11461         * doc/tree-ssa.texi (Walking use-def chains): Delete.
11463 2013-09-26  Richard Biener  <rguenther@suse.de>
11465         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
11467 2013-09-26  Richard Biener  <rguenther@suse.de>
11469         * alias.h (component_uses_parent_alias_set): Rename to ...
11470         (component_uses_parent_alias_set_from): ... this.
11471         * alias.c (component_uses_parent_alias_set): Rename to ...
11472         (component_uses_parent_alias_set_from): ... this and return
11473         the desired parent.
11474         (reference_alias_ptr_type_1): Use the result from
11475         component_uses_parent_alias_set_from instead of stripping
11476         components one at a time.
11477         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
11479 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
11481         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
11482         Move prototypes to...
11483         * tree-ssa-ter.h: New File.  Move prototypes here.
11484         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
11485         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
11486         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
11487         from is_replaceable_p.
11488         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
11489         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
11490         (process_replaceable): Use ter_is_replaceable_p.
11491         (find_replaceable_in_bb): Use ter_is_replaceable_p.
11492         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
11493         newly refactored ssa_is_replaceable_p.
11494         * cfgexpand.c: Include tree-outof-ssa.h.
11495         * ssaexpand.h: Delete.
11497 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
11499         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
11500         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
11501         tree-ssa.c
11502         (create_gimple_tmp): Delete.
11503         (get_expr_type, build_assign, build_type_cast): Move to...
11504         * gimple-builder.c: New File.
11505         (get_expr_type): Relocate from gimple.c.
11506         (build_assign, build_type_cast): Change to only create ssanames.
11507         * gimple.h: Move prototypes to...
11508         * gimple-builder.h: New File. Here.
11509         * tree-ssa.h: And here.
11510         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
11511         count_uses_and_derefs): Relocate from gimple.c.
11512         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
11513         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
11514         * tree-ssa-math-opts (execute_cse_reciprocals): Use
11515         gimple_replace_ssa_lhs.
11516         * asan.c: Include gimple-builder.h.
11517         * Makefile.in: Add gimple-builder.o.
11519 2013-09-26  Richard Biener  <rguenther@suse.de>
11521         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
11522         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
11523         (loe_visit_block): Use gcc_checking_assert.
11524         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
11525         gimple_assign_ssa_name_copy_p.
11526         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
11527         change.
11529 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
11531         * config/rs6000/t-rs6000 (rs6000.o): Remove.
11532         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
11534 2013-09-26  Richard Biener  <rguenther@suse.de>
11536         PR tree-optimization/58539
11537         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
11538         the fact that debug statements are not taking part in loop-closed
11539         SSA construction.
11541 2013-09-26  Nick Clifton  <nickc@redhat.com>
11543         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
11544         time warning message.
11545         (msp430_print_operand_raw): Delete unused letter parameter.
11546         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11547         (msp430_print_operand_address): New function.
11548         (msp430_print_operand): Move address printing code from here to
11549         new function.
11550         * config/msp430/msp430.md (movsipsi2): Add comment in generated
11551         assembler.
11552         (zero_extendpsisi2): Likewise.
11553         (extendpsisi2): New pattern.
11554         (andneghi3): New pattern.
11556 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
11558         * config/aarch64/aarch64.opt (mlra): New option.
11559         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
11560         (TARGET_LRA_P): Define.
11562 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
11564         * expr.c (expand_assignment): Remove obsolete comment.
11566 2013-09-25  Jeff Law  <law@redhat.com>
11568         * tree-flow.h (thread_through_all_blocks): Prototype moved into
11569         tree-ssa-threadupdate.h.
11570         (register_jump_thread): Similarly.
11571         * tree-ssa-threadupdate.h: New header file.
11572         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
11573         * tree-vrp.c: Likewise.
11574         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
11575         (thread_around_empty_blocks): Change type of path vector argument to
11576         an edge,type pair from just an edge.  Initialize both elements when
11577         appending to a jump threading path.  Tweak references to elements
11578         appropriately.
11579         (thread_across_edge): Similarly.  Release memory for the elements
11580         as needed.
11581         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
11582         (dump_jump_thread_path): New function broken out from
11583         register_jump_thread.
11584         (register_jump_thread): Use dump_jump_thread_path.  Change type of
11585         path vector entries.  Search the path for NULL edges and dump
11586         the path if one is found.  Tweak the conversion of path to 3-edge
11587         form to use the block copy type information embedded in the path.
11589 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
11591         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
11593 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
11594             Vladimir Makarov  <vmakarov@redhat.com>
11596         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
11597         from the least significant bit.
11598         (strip_address_mutations): Add bitfield operations handling.
11599         (must_be_index_p): Add shifting and rotate operations handling.
11600         (set_address_base): Use must_be_base_p predicate.
11601         (set_address_index): Use must_be_index_p predicate.
11603 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11604             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11605             Sergey Lega  <sergey.s.lega@intel.com>
11606             Anna Tikhonova  <anna.tikhonova@intel.com>
11607             Ilya Tocar  <ilya.tocar@intel.com>
11608             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11609             Ilya Verbin  <ilya.verbin@intel.com>
11610             Kirill Yukhin  <kirill.yukhin@intel.com>
11611             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11613         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11614         Use new names.
11615         (ix86_expand_vector_move_misalign): Support new unaligned load and
11616         stores and use new names.
11617         (CODE_FOR_sse2_storedqu): Rename to ...
11618         (CODE_FOR_sse2_storedquv16qi): ... this.
11619         (CODE_FOR_sse2_loaddqu): Rename to ...
11620         (CODE_FOR_sse2_loaddquv16qi): ... this.
11621         (CODE_FOR_avx_loaddqu256): Rename to ...
11622         (CODE_FOR_avx_loaddquv32qi): ... this.
11623         (CODE_FOR_avx_storedqu256): Rename to ...
11624         (CODE_FOR_avx_storedquv32qi): ... this.
11625         * config/i386/i386.md (fpint_logic): New.
11626         * config/i386/sse.md (VMOVE): Extend for AVX512.
11627         (VF): Ditto.
11628         (VF_128_256): New.
11629         (VF_512): Ditto.
11630         (VI_UNALIGNED_LOADSTORE): Ditto.
11631         (sse2_avx_avx512f): Ditto.
11632         (sse2_avx2): Extend for AVX512.
11633         (sse4_1_avx2): Ditto.
11634         (avx2_avx512f): New.
11635         (sse): Extend for AVX512.
11636         (sse2): Ditto.
11637         (sse4_1): Ditto.
11638         (avxsizesuffix): Ditto.
11639         (sseintvecmode): Ditto.
11640         (ssePSmode): Ditto.
11641         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
11642         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
11643         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
11644         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
11645         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
11646         (<sse2_avx_avx512f>_storedqu<mode): ... this.
11647         (<sse>_movnt<mode>): Replace constraint "x" with "v".
11648         (STORENT_MODE): Extend for AVX512.
11649         (*absneg<mode>2): Replace constraint "x" with "v".
11650         (*mul<mode>3): Ditto.
11651         (*ieee_smin<mode>3): Ditto.
11652         (*ieee_smax<mode>3): Ditto.
11653         (avx_cmp<mode>3): Replace VF with VF_128_256.
11654         (*<sse>_maskcmp<mode>3_comm): Ditto.
11655         (<sse>_maskcmp<mode>3): Ditto.
11656         (<sse>_andnot<mode>3): Extend for AVX512.
11657         (<code><mode>3, anylogic): Replace VF with VF_128_256.
11658         (<code><mode>3, fpint_logic): New.
11659         (*<code><mode>3): Extend for AVX512.
11660         (avx512flogicsuff): New.
11661         (avx512f_<logic><mode>): Ditto.
11662         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
11663         VF_128_256.
11664         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
11665         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
11666         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
11667         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
11668         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
11669         (xop_vpermil2<mode>3): Ditto.
11670         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
11671         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
11672         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
11673         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
11675 2013-09-25  Tom Tromey  <tromey@redhat.com>
11677         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
11678         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
11679         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
11680         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
11681         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
11682         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
11683         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
11684         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
11685         (GRAPHITE_HTAB_H): Remove.
11687 2013-09-25  Tom Tromey  <tromey@redhat.com>
11689         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
11691 2013-09-25  Tom Tromey  <tromey@redhat.com>
11693         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
11695 2013-09-25  Tom Tromey  <tromey@redhat.com>
11697         * config/i386/t-i386 (i386.o): Remove.
11698         (i386-c.o): Use COMPILE and POSTCOMPILE.
11700 2013-09-25  Tom Tromey  <tromey@redhat.com>
11702         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
11704 2013-09-25  Tom Tromey  <tromey@redhat.com>
11706         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
11707         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
11708         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
11709         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
11710         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
11711         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
11712         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
11713         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
11714         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
11715         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
11716         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
11717         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
11718         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
11719         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
11720         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
11721         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
11722         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
11723         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
11724         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
11725         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
11726         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
11727         (tree-ssa-pre.o, tree-ssa-sccvn.o)
11728         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
11729         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
11730         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
11731         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
11732         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
11733         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
11734         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
11735         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
11736         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
11737         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
11738         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
11739         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
11740         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
11741         (graphite-clast-to-gimple.o, graphite-dependences.o)
11742         (graphite-interchange.o, graphite-poly.o)
11743         (graphite-scop-detection.o, graphite-sese-to-poly.o)
11744         (graphite-optimize-isl.o, tree-vect-loop.o)
11745         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
11746         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
11747         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
11748         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
11749         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
11750         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
11751         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
11752         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
11753         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
11754         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
11755         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
11756         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
11757         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
11758         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
11759         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
11760         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
11761         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
11762         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
11763         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
11764         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
11765         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
11766         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
11767         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
11768         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
11769         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
11770         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
11771         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
11772         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
11773         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
11774         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
11775         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
11776         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
11777         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
11778         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
11779         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
11780         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
11781         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
11782         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
11783         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
11784         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
11785         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
11786         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
11787         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
11788         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
11789         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
11790         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
11791         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
11792         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
11793         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
11794         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
11795         (gcov-dump.o): Remove.
11796         (default-c.o): Use COMPILE and POSTCOMPILE.
11797         (CFLAGS-gcc.o): New variable.
11798         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
11800 2013-09-25  Tom Tromey  <tromey@redhat.com>
11802         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
11803         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
11804         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
11805         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
11806         (c-family/c-pragma.o, c-family/c-pretty-print.o)
11807         (c-family/c-semantics.o, c-family/c-ada-spec.o)
11808         (c-family/array-notation-common.o, c-family/stub-objc.o)
11809         (c-family/c-ubsan.o): Remove.
11811 2013-09-25  Tom Tromey  <tromey@redhat.com>
11813         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
11815 2013-09-25  Tom Tromey  <tromey@redhat.com>
11817         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
11818         to add -DENABLE_SHARED_LIBGCC.
11819         (gcc.o): Don't use subshell.
11821 2013-09-25  Tom Tromey  <tromey@redhat.com>
11823         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
11824         * configure.ac: Don't invoke AM_PROG_CC_C_O.
11825         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
11826         * configure, config.in: Rebuild.
11828 2013-09-25  Tom Tromey  <tromey@redhat.com>
11830         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
11831         (COMPILE, POSTCOMPILE): New variables.
11832         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
11833         (DEPFILES): New variable.
11834         Include ".Po" files.
11835         * configure.ac: Add checks for dependency checking.
11836         * configure, aclocal.m4: Regenerate.
11838 2013-09-25  Tom Tromey  <tromey@redhat.com>
11840         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
11841         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
11843 2013-09-25  Tom Tromey  <tromey@redhat.com>
11845         * Makefile.in (generated_files): Add options.h,
11846         target-hooks-def.h, insn-opinit.h,
11847         common/common-target-hooks-def.h, pass-instances.def,
11848         c-family/c-target-hooks-def.h.
11850 2013-09-25  Jeff Law  <law@redhat.com>
11852         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
11853         than foo[foo.length () - 1] to access last member in a vec.
11854         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
11856 2013-09-25  Richard Biener  <rguenther@suse.de>
11858         PR middle-end/58521
11859         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
11861 2013-09-25  Jan Hubicka  <jh@suse.cz>
11863         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
11864         test.
11866 2013-09-25  Marek Polacek  <polacek@redhat.com>
11868         PR sanitizer/58420
11869         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
11870         when determining the type name.
11872 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
11874         * config/sh/sh.md: Fix formatting.
11876 2013-09-24  Xinliang David Li  <davidxl@google.com>
11878         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
11879         max peel iterations parameter.
11880         * param.def: New parameter.
11881         * doc/invoke.texi: Document New parameter.
11883 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
11885         * gimple-pretty-print.c: Various whitespace tweaks.
11886         * tree-core.h: Likewise.
11887         * tree-pretty-print.c: Likewise.
11888         * tree-ssa-alias.c: Likewise.
11889         * tree-ssa-copy.c: Likewise.
11890         * tree-ssanames.c: Likewise.
11891         * tree-ssanames.h: Likewise.
11892         * tree-vrp.c: Likewise.
11894 2013-09-24  Alan Modra  <amodra@gmail.com>
11896         PR middle-end/57134
11897         PR middle-end/57586
11898         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
11899         for output operands that disallow regs.  Don't use EXPAND_WRITE on
11900         inout operands.
11902 2013-09-24  Richard Biener  <rguenther@suse.de>
11904         PR middle-end/58513
11905         * tree.c (reference_alias_ptr_type): Move ...
11906         * alias.c (reference_alias_ptr_type): ... here and implement
11907         in terms of the new reference_alias_ptr_type_1.
11908         (ref_all_alias_ptr_type_p): New helper.
11909         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
11910         use ref_all_alias_ptr_type_p.
11911         (get_deref_alias_set): Add flag_strict_aliasing check here.
11912         (reference_alias_ptr_type_1): New function, split out from ...
11913         (get_alias_set): ... here.
11914         (alias_ptr_types_compatible_p): New function.
11915         * alias.h (reference_alias_ptr_type): Declare.
11916         (alias_ptr_types_compatible_p): Likewise.
11917         * tree.h (reference_alias_ptr_type): Remove.
11918         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
11919         to compare MEM_REF alias types.
11921 2013-09-24  Richard Biener  <rguenther@suse.de>
11923         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
11925 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11927         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
11928         reload helper function arrays into a single array reg_addr.
11929         (reload_fpr_gpr): Likewise.
11930         (reload_gpr_vsx): Likewise.
11931         (reload_vsx_gpr): Likewise.
11932         (struct rs6000_reg_addr): Likewise.
11933         (reg_addr): Likewise.
11934         (rs6000_debug_reg_global): Change rs6000_vector_reload,
11935         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
11936         (rs6000_init_hard_regno_mode_ok): Likewise.
11937         (rs6000_secondary_reload_direct_move): Likewise.
11938         (rs6000_secondary_reload): Likewise.
11940         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
11941         constraints: wu, ww, and wy.  Repurpose wv constraint added during
11942         power8 changes.  Put wg constraint in alphabetical order.
11944         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
11945         for future work to add ISA 2.07 VSX single precision support.
11946         (-mvsx-scalar-double): Change default from -1 to 1, update
11947         documentation comment.
11948         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
11949         (-mupper-regs-df): New debug switch to control whether DF values
11950         can go in the traditional Altivec registers.
11951         (-mupper-regs-sf): New debug switch to control whether SF values
11952         can go in the traditional Altivec registers.
11954         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
11955         and wy constraints.
11956         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
11957         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
11958         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
11959         (rs6000_debug_legitimate_address_p): Print if we are running
11960         before, during, or after reload.
11961         (rs6000_secondary_reload): Add a comment.
11962         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
11964         * config/rs6000/constraints.md (wa constraint): Sort w<x>
11965         constraints.  Update documentation string.
11966         (wd constraint): Likewise.
11967         (wf constraint): Likewise.
11968         (wg constraint): Likewise.
11969         (wn constraint): Likewise.
11970         (ws constraint): Likewise.
11971         (wt constraint): Likewise.
11972         (wx constraint): Likewise.
11973         (wz constraint): Likewise.
11974         (wu constraint): New constraint for ISA 2.07 SFmode scalar
11975         instructions.
11976         (ww constraint): Likewise.
11977         (wy constraint): Likewise.
11978         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
11979         in the previous submissions.
11980         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
11982 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
11984         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
11985         (REG_BR_PROB): Say that the probability is stored in an int_list.
11986         * reg-notes.def: Update commentary to mention INT_LIST.
11987         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
11988         (INT_LIST): New rtx.
11989         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
11990         * rtlanal.c (int_reg_note_p): New function.
11991         (alloc_reg_note): Assert that the note does not have an int argument.
11992         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
11993         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
11994         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
11995         rather than an INSN_LIST.  Handle INT_LIST.
11996         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
11997         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
11998         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
11999         Manipulate them as ints rather than rtxes.
12000         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
12001         * regmove.c (copy_src_to_dest): Likewise.
12002         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
12004         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
12005         into the cases that need it.
12006         * config/arm/arm.c (arm_unwind_emit): Likewise.
12008         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
12009         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
12010         * loop-doloop.c (add_test, doloop_modify): Likewise.
12011         * loop-unswitch.c (compare_and_jump_seq): Likewise.
12012         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
12013         * predict.c (combine_predictions_for_insn): Likewise.
12014         * print-rtl.c (print_rtx): Handle INT_LIST.
12015         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
12016         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
12017         * config/arm/arm.c (emit_unlikely_jump): Likewise.
12018         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
12019         (ix86_split_fp_branch, predict_jump): Likewise.
12020         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
12021         * config/sh/sh.c (expand_cbranchsi4): Likewise.
12022         * config/spu/spu.c (ea_load_store_inline): Likewise.
12024         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
12025         value of a REG_BR_PROB note.
12026         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
12027         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
12028         * emit-rtl.c (try_split): Likewise.
12029         * predict.c (br_prob_note_reliable_p): Likewise.
12030         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
12031         * reorg.c (mostly_true_jump): Likewise.
12032         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
12033         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
12034         * config/i386/i386.c (ix86_print_operand): Likewise.
12035         * config/ia64/ia64.c (ia64_print_operand): Likewise.
12036         * config/mmix/mmix.c (mmix_print_operand): Likewise.
12037         * config/rs6000/rs6000.c (output_cbranch): Likewise.
12038         * config/s390/s390.c (s390_expand_tbegin): Likewise.
12039         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
12040         * config/sparc/sparc.c (output_cbranch): Likewise.
12041         * config/spu/spu.c (get_branch_target): Likewise.
12042         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
12043         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
12045 2013-09-23  Jan Hubicka  <jh@suse.cz>
12047         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
12048         for ipa-devirt.
12049         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
12050         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
12051         of external calls
12052         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
12053         (gimple_fold_call): Dump inconsistent devirtualizations; add
12054         sanity check for type based devirtualizations.
12055         * ipa-prop.c: Include ipa-utils.h
12056         (ipa_intraprocedural_devirtualization): Add sanity check.
12057         (try_make_edge_direct_virtual_call): Likewise.
12059 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
12061         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
12062         assignment statements.
12064 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
12066         * gimple-pretty-print.c (dump_ssaname_info): New function.
12067         (dump_gimple_phi): Call it.
12068         (pp_gimple_stmt_1): Likewise.
12069         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
12070         (range_info_def): Declare.
12071         * tree-pretty-print.c (pp_double_int): New function.
12072         (dump_generic_node): Call it.
12073         * tree-pretty-print.h (pp_double_int): Declare.
12074         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
12075         * tree-ssanames.h (range_info_def): New structure.
12076         (value_range_type): Move definition here.
12077         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
12078         Declare.
12079         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
12080         initialization.
12081         (set_range_info): New function.
12082         (get_range_info): Likewise.
12083         (duplicate_ssa_name_range_info): Likewise.
12084         (duplicate_ssa_name_fn): Check pointer type and call
12085         duplicate_ssa_name_range_info.
12086         * tree-ssa-copy.c (fini_copy_prop): Likewise.
12087         * tree-vrp.c (value_range_type): Remove definition, now in
12088         tree-ssanames.h.
12089         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
12090         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
12091         (SSA_NAME_RANGE_INFO): New macro.
12093 2013-09-23  Richard Biener  <rguenther@suse.de>
12095         PR tree-optimization/58464
12096         * tree-ssa-pre.c (phi_trans_lookup): Remove.
12097         (phi_trans_add): Change to add conditionally on being not present.
12098         (phi_translate_1): Remove recursion detection here.
12099         (phi_translate): Pre-seed the cache with NULL to catch
12100         recursion here in a more generic way.
12101         (bitmap_find_leader): Adjust comment.
12102         (get_representative_for): Dump value-numbers.
12103         (create_expression_by_pieces): Likewise.
12104         (insert_into_preds_of_block): Likewise.
12106 2013-09-23  Christian Bruel  <christian.bruel@st.com>
12108         PR target/58475
12109         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
12110         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
12112 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
12114         Revert r202780:
12115         2013-09-20  Renlin Li  <renlin.li@arm.com>
12117         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12118         plus_constant.
12119         (aarch64_expand_epilogue): Likewise.
12120         (aarch64_legitimize_reload_address): Likewise.
12122 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
12124         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
12125         NULL_TREE before pushing them onto the vector.  Likewise for labels.
12127 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
12129         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
12130         comparison operators when -fno-trapping-math is in effect.
12131         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
12132         comparison operators in TFmode and assert that unsupported operators
12133         cannot reach here.
12134         (ia64_print_operand): Likewise.
12136 2013-09-21  Jan Hubicka  <jh@suse.cz>
12138         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
12139         (sse_typeless_stores): Enable for core
12140         (sse_load0_by_pxor): Likewise.
12141         (four_jump_limit): Disable for core.
12142         (pad_returns): Likewise.
12143         (avoid_vector_decode): Likewise.
12144         (fuse_cmp_and_branch): Enable for cores.
12145         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
12147 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
12149         PR middle-end/56791
12150         * config/pa/pa.c (pa_option_override): Disable auto increment and
12151         decrement instructions until reload is completed.
12153         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
12154         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
12155         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12157 2013-09-20  DJ Delorie  <dj@redhat.com>
12158             Nick Clifton  <nickc@redhat.com>
12160         * config/rl78/rl78.c: Various whitespace and comment tweaks.
12161         (need_to_save): Save bank 0 on interrupts.
12162         (characterize_address): Strip far address wrappers.
12163         (rl78_as_legitimate_address): Likewise.
12164         (transcode_memory_rtx): Likewise.
12165         (rl78_peep_movhi_p): Disable this peephole after devirt.
12166         (rl78_propogate_register_origins): Forget all origins when a
12167         CLOBBER is seen.
12168         * config/rl78/rl78-virt.md: Various whitespace tweaks.
12169         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
12170         peephole2's.
12171         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
12172         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
12173         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
12174         relocating.
12175         * config/rl78/constraints.md: Various whitespace and paren tweaks.
12177 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
12179         * config/pa/pa.md: In "scc" insn patterns, change output template to
12180         handle const0_rtx in reg_or_0_operand operands.
12182 2013-09-20  Martin Husemann  <martin@NetBSD.org>
12184         PR target/56875
12185         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
12186         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
12188 2013-09-20  Richard Biener  <rguenther@suse.de>
12190         PR middle-end/58484
12191         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
12192         remembering SSA name version and block index.
12193         (new_scev_info_str): Adjust.
12194         (hash_scev_info): Likewise.  Also hash the block index.
12195         (eq_scev_info): Adjust.
12196         (find_var_scev_info): Likewise.
12197         (struct instantiate_cache_entry): Remove.
12198         (struct instantiate_cache_type): Use a htab to map name, block
12199         to chrec.
12200         (instantiate_cache_type::~instantiate_cache_type): Adjust.
12201         (get_instantiated_value_entry): Likewise.
12202         (hash_idx_scev_info, eq_idx_scev_info): New functions.
12203         (instantiate_scev_name): Adjust.
12205 2013-09-20  Jeff Law  <law@redhat.com>
12207         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
12209 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
12211         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
12212         Call aarch64_simd_expand_args to update op[argc].
12214 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
12216         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
12217         plugin argument.
12219 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
12221         * gengtype.c (file_rules): Added rule for *.cc files.
12222         (get_output_file_with_visibility): Give fatal message when no
12223         rules found.
12225 2013-09-20  Renlin Li  <renlin.li@arm.com>
12227         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
12228         (aarch64_expand_epilogue): Likewise.
12229         (aarch64_legitimize_reload_address): Likewise.
12231 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12233         PR middle-end/57748
12234         * expr.c (expand_assignment): Remove misalignp code path.
12236 2013-09-20  Marek Polacek  <polacek@redhat.com>
12238         PR sanitizer/58413
12239         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
12240         TYPE_PRECISION.  Add asserts.
12242 2013-09-20  Richard Biener  <rguenther@suse.de>
12244         PR tree-optimization/58453
12245         * tree-loop-distribution.c (distribute_loop): Apply the cost
12246         model for -ftree-loop-distribute-patterns, too.
12248 2013-09-20  Richard Biener  <rguenther@suse.de>
12250         PR middle-end/58473
12251         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
12252         make type comparison less strict.
12254 2013-09-20  Alan Modra  <amodra@gmail.com>
12256         * configure: Regenerate.
12257         * aclocal.m4: Regenerate.
12259 2013-09-20  Marek Polacek  <polacek@redhat.com>
12261         PR other/58467
12262         * doc/extend.texi: Document that attribute used is meant to be used
12263         on variables with static storage duration.
12265 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
12267         PR tree-optimization/58472
12268         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
12269         simd_lane_access set inv_p = false.
12270         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
12271         the simduid magic VAR_DECL.
12273 2013-09-19  Jan Hubicka  <jh@suse.cz>
12275         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
12277 2013-09-17  Jeff Law  <law@redhat.com>
12279         * tree-ssa-dom.c (record_temporary_equivalences): New function
12280         split out of dom_opt_dom_walker::after_dom_children.
12281         (dom_opt_dom_walker::thread_across_edge): Move common code
12282         in here from dom_opt_dom_walker::after_dom_children.
12283         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
12285 2013-09-19  Jan Hubicka  <jh@suse.cz>
12287         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
12288         (TARGET_GENERIC): Use PROCESOR_GENERIC
12289         (enum processor_type): Unify generic32 and 64.
12290         * i386.md (cpu): Likewise.
12291         * x86-tune.def (use_leave): Enable for generic32.
12292         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
12293         * athlon.md: Change generic64 to generic in all occurences.
12294         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
12295         (ix86_target_macros_internal): Likewise.
12296         * driver-i386.c (host_detect_local_cpu): Likewise.
12297         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
12298         to ..
12299         (generic_memcpy, generic_memset, generic_cost): This one.
12300         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
12301         (m_GENERIC32, m_GENERIC64): Remove.
12302         (m_GENERIC): Turn into one flag.
12303         (processor_target): Unify generic tunnings.
12304         (ix86_option_override_internal): Replace generic32/64 by generic.
12305         (ix86_issue_rate): Likewise.
12306         (ix86_adjust_cost): Likewise.
12308 2013-09-19  Jan Hubicka  <jh@suse.cz>
12310         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
12311         of speculative flag.
12313 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
12315         * omp-low.c (expand_omp_sections): Always pass len - 1 to
12316         GOMP_sections_start, even if !exit_reachable.
12318 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
12320         * lra-constraints.c (need_for_all_save_p): Use macro
12321         HARD_REGNO_CALL_PART_CLOBBERED.
12322         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
12323         set up pseudo conflict hard regs.
12325 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
12327         PR target/58452
12328         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
12329         operands.
12331 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
12333         PR rtl-optimization/58438
12334         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
12335         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
12336         from previous subpasses.
12338 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
12340         * arm.c (arm_get_frame_offsets): Validate architecture supports
12341         LDRD/STRD before accepting the tuning preference.
12342         (arm_expand_prologue): Likewise.
12343         (arm_expand_epilogue): Likewise.
12345 2013-09-18  Richard Biener  <rguenther@suse.de>
12347         PR tree-optimization/58417
12348         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
12349         have chrecs with symbols defined in the loop as operands.
12350         (chrec_fold_multiply): Likewise.
12351         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
12352         parameters before folding binary operations.
12353         (struct instantiate_cache_entry_hasher): Remove.
12354         (struct instantiate_cache_type): Use a pointer-map.
12355         (instantiate_cache_type::instantiate_cache_type): New function.
12356         (instantiate_cache_type::get): Likewise.
12357         (instantiate_cache_type::set): Likewise.
12358         (instantiate_cache_type::~instantiate_cache_type): Adjust.
12359         (get_instantiated_value_entry): Likewise.
12360         (global_cache): New global.
12361         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
12362         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
12363         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
12364         (instantiate_scev_name): Adjust.
12365         (instantiate_scev): Construct global instead of local cache.
12366         (resolve_mixers): Likewise.
12368 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
12369             Paolo Carlini  <paolo.carlini@oracle.com>
12371         PR c++/58458
12372         * doc/implement-cxx.texi: Fix references to the C++ standards.
12374 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
12376         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
12377         * tree-vect-data-refs.c (vect_analyze_data_refs): For
12378         simd_lane_access drs, update also DR_ALIGNED_TO.
12380 2013-09-18  Marek Polacek  <polacek@redhat.com>
12382         PR sanitizer/58411
12383         * doc/extend.texi: Document no_sanitize_undefined attribute.
12384         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
12385         no_sanitize_undefined attribute.
12387 2013-09-18  Nick Clifton  <nickc@redhat.com>
12389         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
12390         (ASM_DECLARE_FUNCTION_NAME): Define.
12392 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
12394         * compare-elim.c (find_comparison_dom_walker): New class
12395         (find_comparisons_in_bb): Rename to
12396         find_comparison_dom_walker::before_dom_children
12397         (find_comparisons): Adjust
12398         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
12399         adjust.
12400         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
12401         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
12402         (init_walk_dominator_tree): Remove declaration.
12403         (fini_walk_dominator_tree): Remove declaration.
12404         * fwprop.c (single_def_use_dom_walker): New class
12405         (single_def_use_enter_block): Convert to
12406         single_def_use_dom_walker::before_dom_children.
12407         (single_def_use_leave_block): Convert to
12408         single_def_use_dom_walker::after_dom_children.
12409         (build_single_def_use_links): Adjust.
12410         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
12411         class.
12412         (find_candidates_in_block): Convert to
12413         find_candidates_dom_walker::before_dom_children.
12414         (execute_strength_reduction): Adjust.
12415         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
12416         (sese_dom_walker): New class.
12417         (sese_dom_walker::sese_dom_walker): New constructor.
12418         (sese_dom_walker::~sese_dom_walker): New destructor.
12419         (build_sese_conditions_before): Convert to
12420         sese_dom_walker::before_dom_children.
12421         (build_sese_conditions_after): Convert to
12422         sese_dom_walker::after_dom_children.
12423         (build_poly_scop): Adjust
12424         * tree-into-ssa.c (rewrite_dom_walker): New class
12425         (rewrite_enter_block): Convert to
12426         rewrite_dom_walker::before_dom_children.
12427         (rewrite_leave_block): Convert to
12428         rewrite_dom_walker::after_dom_children.
12429         (rewrite_update_dom_walker): New class.
12430         (rewrite_update_enter_block): Convert to
12431         rewrite_update_dom_walker::before_dom_children.
12432         (rewrite_update_leave_block): Convert to
12433         rewrite_update_dom_walker::after_dom_children.
12434         (rewrite_blocks, rewrite_into_ssa): Adjust.
12435         (mark_def_dom_walker): New class.
12436         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
12437         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
12438         (mark_def_sites_blocks): Convert to
12439         mark_def_dom_walker::before_dom_children.
12440         (mark_def_site_blocks): Remove.
12441         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
12442         (tree_ssa_dominator_optimize): Adjust.
12443         (dom_thread_across_edge): Convert to method
12444         dom_opt_dom_walker::thread_across_edge.
12445         (dom_opt_enter_block): Convert to member function
12446         dom_opt_dom_walker::before_dom_children.
12447         (dom_opt_leave_block): Convert to member function
12448         dom_opt_dom_walker::after_dom_children.
12449         * tree-ssa-dse.c (dse_dom_walker): New class.
12450         (dse_enter_block): Convert to member function
12451         dse_dom_walker::before_dom_children.
12452         (tree_ssa_dse): Adjust.
12453         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
12454         (determine_invariantness_stmt): Convert to method
12455         invariantness_dom_walker::before_dom_children.
12456         (determine_invariantness): Remove
12457         (move_computations_dom_walker): New class.
12458         (move_computations_stmt): Convert to method
12459         move_computations_dom_walker::before_dom_children.
12460         (move_computations, tree_ssa_lim): Adjust.
12461         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
12462         (nt_init_block): Convert to method
12463         notrappping_dom_walker::before_dom_children.
12464         (nt_fini_block): Convert to method
12465         method nontrapping_dom_walker::after_dom_children.
12466         (get_non_trapping): Adjust.
12467         * tree-ssa-pre.c (eliminate_dom_walker): New class.
12468         (eliminate_bb): Convert to method
12469         eliminate_dom_walker::before_dom_children.
12470         (eliminate_leave_block): Convert to method
12471         eliminate_dom_walker::after_dom_children.
12472         (eliminate): Adjust.
12473         * tree-ssa-strlen.c (strlen_dom_walker): New class.
12474         (strlen_enter_block): Convert to method
12475         strlen_dom_walker::before_dom_children.
12476         (strlen_leave_block): Convert to method
12477         method strlen_dom_walker::after_dom_children.
12478         (tree_ssa_strlen): Adjust.
12479         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
12480         (tree_ssa_uncprop): Adjust.
12481         (uncprop_leave_block): Convert to method
12482         uncprop_dom_walker::after_dom_children.
12483         (uncprop_leave_block): Convert to method
12484         uncprop_dom_walker::before_dom_children.
12486 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
12488         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
12489         branch in same basic block.  Check both src and dest of the move insn.
12491 2013-09-17  Nick Clifton  <nickc@redhat.com>
12493         * config/rl78/rl78-real.md (bf): New pattern.
12494         (bt): New pattern.
12495         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
12496         (rl78_print_operand): Do not put a # before a %B.
12497         * config/rl78/rl78.opt: Tweak doc strings.
12499 2013-09-17  DJ Delorie  <dj@redhat.com>
12501         * config/rl78/constraints.md (Wcv): Allow up to $r31.
12502         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
12503         (rl78_option_override): Likewise, if -mallregs.
12504         (is_virtual_register): Likewise.
12505         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
12506         (REGNO_OK_FOR_BASE_P): Likewise.
12507         * config/rl78/rl78.opt (-mallregs): New.
12509 2013-09-17  Nick Clifton  <nickc@redhat.com>
12511         * config/rl78/rl78.c (need_to_save): Change return type to bool.
12512         For interrupt functions: save all call clobbered registers if the
12513         interrupt handler is not a leaf function.
12514         (rl78_expand_prologue): Always recompute the frame information.
12515         For interrupt functions: only select bank 0 if one of the bank 0
12516         registers is going to be psuhed.
12518 2013-09-17  DJ Delorie  <dj@redhat.com>
12520         * config/rl78/constraints.md: For each W* constraint, rename to C*
12521         and create a W* constraint that checks for an optional ES: prefix
12522         pattern also.
12523         * config/rl78/rl78.md (UNS_ES_ADDR): New.
12524         (es_addr): New.  Used to wrap far addresses.
12525         * config/rl78/rl78-protos.h (rl78_es_addr): New.
12526         (rl78_es_base): New.
12527         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
12528         wrapped far addresses.
12529         (rl78_print_operand_1): Unwrap far addresses before processing.
12530         (rl78_lo16): Wrap far addresses in unspecs.
12531         (rl78_es_addr): New.
12532         (rl78_es_base): New.
12533         (insn_ok_now): Check for not-yet-wrapped far addresses.
12534         (transcode_memory_rtx): Properly re-wrap far addresses.
12536 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12538         * config/sparc/t-rtems: Add leon3 multilibs.
12540 2013-09-17  Cong Hou  <congh@google.com>
12542         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
12543         when checking the dot production pattern. The type of rhs operand
12544         of multiply is now checked correctly.
12546 2013-09-17  Jeff Law  <law@redhat.com>
12548         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12549         edge implied equivalences into successor phis.
12550         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
12551         here from tree-ssa-threadedge.c.
12552         (mark_threaded_blocks): When threading through a joiner, if both
12553         successors of the joiner's clone reach the same block, verify the
12554         PHI arguments are equal.  If not, cancel the jump threading request.
12555         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
12556         tree-ssa-threadupdate.c
12557         (thread_across_edge): Don't check PHI argument equality when
12558         threading through joiner block here.
12560 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
12562         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
12563         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
12564         (warn_uninit, warn_uninitialized_vars,
12565         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
12566         Move to tree-ssa-uninit.c.
12567         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
12568         (has_undefined_value_p): New.  Pass dependant parts of
12569         ssa_undefined_value_p.
12570         (uninit_undefined_value_p): Use has_undefined_value_p.
12571         (warn_uninit, warn_uninitialized_vars,
12572         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
12573         Move from tree-ssa.c.
12574         * tree-ssa.h: Adjust prototypes.
12576 2013-09-17  Jan Hubicka  <jh@suse.cz>
12578         PR middle-end/58332
12579         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
12580         * ipa-inline.c (can_inline_edge_p): Do not downgrade
12581         FUNCTION_NOT_OPTIMIZED.
12582         * ipa-inline-analysis.c (compute_inline_parameters): Function
12583         not optimized is not inlinable unless it is alwaysinline.
12584         (inline_analyze_function): Force calls in not optimized
12585         function not inlinable.
12587 2013-09-17  Jan Hubicka  <jh@suse.cz>
12589         PR middle-end/58329
12590         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
12591         to return NULL.
12592         * ipa.c (function_and_variable_visibility): Likewise.
12593         * ipa-profile.c (ipa_profile): Likewise.
12595 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12597         PR ipa/58398
12598         * cgraph.c (cgraph_function_body_availability): Check for ifunc
12599         attribute, and don't inline the resolver in this case.
12601 2013-09-17  Teresa Johnson  <tejohnson@google.com>
12603         * coverage.c (get_coverage_counts): Add missing newline.
12605 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12607         PR tree-optimization/58088
12608         * fold-const.c (mask_with_trailing_zeros): New function.
12609         (fold_binary_loc): Make sure we don't recurse infinitely
12610         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
12611         Use mask_with_trailing_zeros where appropriate.
12613 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
12615         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
12616         of 'prev' var to get better distance estimation.
12618 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
12620         * tree-inline.h (struct copy_body_data): Add transform_parameter.
12621         * tree-inline.c (is_parameter_of): New predicate.
12622         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
12623         a parameter has been remapped.
12624         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
12625         (optimize_inline_calls): Initialize transform_parameter.
12626         (copy_gimple_seq_and_replace_locals): Likewise.
12627         (tree_function_versioning): Likewise.
12628         (maybe_inline_call_in_expr): Likewise.
12630 2013-09-17  Nick Clifton  <nickc@redhat.com>
12632         * config/msp430/msp430-protos.h: Add prototypes for new functions.
12633         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
12634         interrupt handlers.
12635         (is_attr_func): New function.
12636         (msp430_is_interrupt_func): New function.
12637         (is_naked_func): New function.
12638         (is_reentrant_func): New function.
12639         (is_critical_func): New function.
12640         (msp430_start_function): Add annotations for function attributes.
12641         (msp430_attr): New function.
12642         (msp430_attribute_table): New.
12643         (msp430_function_section): New function.
12644         (TARGET_ASM_FUNCTION_SECTION): Define.
12645         (msp430_builtin): New enum.
12646         (msp430_init_builtins): New function.
12647         (msp430_builtin_devl): New function.
12648         (msp430_expand_builtin): New function.
12649         (TARGET_INIT_BUILTINS): Define.
12650         (TARGET_EXPAND_BUILTINS): Define.
12651         (TARGET_BUILTIN_DECL): Define.
12652         (msp430_expand_prologue): Add support for naked, interrupt,
12653         critical and reentrant functions.
12654         (msp430_expand_epilogue): Likewise.
12655         (msp430_print_operand): Handle 'O' character.
12656         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
12657         NO_TRAMPOLINES.
12658         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
12659         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
12660         (pushm): Use a 'n' rather than an 'i' constraint.
12661         (msp_return): Add generation of the interrupt return instruction.
12662         (disable_interrupts): New pattern.
12663         (enable_interrupts): New pattern.
12664         (push_intr_state): New pattern.
12665         (pop_intr_state): New pattern.
12666         (bic_SR): New pattern.
12667         (bis_SR): New pattern.
12668         * doc/extend.texi: Document MSP430 function attributes and builtin
12669         functions.
12671 2013-09-17  Richard Biener  <rguenther@suse.de>
12673         PR tree-optimization/58432
12674         * tree-loop-distribution.c (tree_loop_distribution): Also
12675         scan PHIs for outside loop uses and seed a partition from them.
12677 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
12679         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
12680         (restructure_reference): Call backtrace_base_for_ref.
12682 2013-09-17  Alan Modra  <amodra@gmail.com>
12684         PR target/57589
12685         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
12686         patch.
12688 2013-09-16  DJ Delorie  <dj@redhat.com>
12690         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
12691         vregs location for RL78/G10.
12692         (rl78_expand_prologue): Avoid SEL on G10.
12693         (rl78_expand_epilogue): Likewise.
12694         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
12695         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
12696         __RL78_G10__ when appropriate.
12697         (ASM_SPEC): Pass -mg10 along to the assembler.
12698         * config/rl78/rl78.md (sel_rb): Disable for G10.
12699         * config/rl78/rl78.opt: Add -mg10 option.
12700         * config/rl78/t-rl78: Add -mg10 multilib.
12702 2013-09-16  Xinliang David Li  <davidxl@google.com>
12704         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
12705         * omp-low.c (omp_max_vf): Ditto.
12706         (expand_omp_simd): Ditto.
12707         * tree-vectorizer.c (vectorize_loops): Ditto.
12708         (gate_vect_slp): Ditto.
12709         (gate_increase_alignment): Ditto.
12710         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
12711         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
12712         (gate_tree_vectorize): Name change.
12713         (tree_vectorize): Ditto.
12714         (pass_vectorize::gate): Call new function.
12715         (pass_vectorize::execute): Ditto.
12716         * opts.c: O3 default setting change.
12717         (finish_options): Check new flag.
12718         * doc/invoke.texi: Document new flags.
12719         * common.opt: New flags.
12721 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
12723         * doc/tm.texi.in (Cond Exec Macros): Remove node.
12724         (Condition Code): Don't reference it.
12725         * doc/tm.texi: Regenerate.
12727 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
12729         PR middle-end/58418
12730         * lra-constraints.c (undo_optional_reloads): Consider all optional
12731         reload even if it did not get a hard reg.
12733 2013-09-16  Teresa Johnson  <tejohnson@google.com>
12735         * dumpfile.c (dump_loc): Remove newline emission.
12736         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
12737         emission to dump_printf_loc calls where missing.
12738         (vect_mark_for_runtime_alias_test): Ditto.
12739         (vect_analyze_data_ref_dependence): Ditto.
12740         (vect_analyze_data_ref_dependences): Ditto.
12741         (vect_slp_analyze_data_ref_dependence): Ditto.
12742         (vect_slp_analyze_data_ref_dependences): Ditto.
12743         (vect_compute_data_ref_alignment): Ditto.
12744         (vect_update_misalignment_for_peel): Ditto.
12745         (vect_verify_datarefs_alignment): Ditto.
12746         (vector_alignment_reachable_p): Ditto.
12747         (vect_get_data_access_cost): Ditto.
12748         (vect_enhance_data_refs_alignment): Ditto.
12749         (vect_find_same_alignment_drs): Ditto.
12750         (vect_analyze_data_refs_alignment): Ditto.
12751         (vect_analyze_group_access): Ditto.
12752         (vect_analyze_data_ref_access): Ditto.
12753         (vect_analyze_data_ref_accesses): Ditto.
12754         (vect_prune_runtime_alias_test_list): Ditto.
12755         (vect_analyze_data_refs): Ditto.
12756         (vect_create_addr_base_for_vector_ref): Ditto.
12757         (vect_create_data_ref_ptr): Ditto.
12758         (vect_grouped_store_supported): Ditto.
12759         (vect_grouped_load_supported): Ditto.
12760         * value-prof.c (check_counter): Ditto.
12761         (check_ic_target): Ditto.
12762         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
12763         (vect_recog_widen_mult_pattern): Ditto.
12764         (vect_recog_widen_sum_pattern): Ditto.
12765         (vect_recog_over_widening_pattern): Ditto.
12766         (vect_recog_widen_shift_pattern): Ditto.
12767         (vect_recog_rotate_pattern): Ditto.
12768         (vect_recog_vector_vector_shift_pattern): Ditto.
12769         (vect_recog_divmod_pattern): Ditto.
12770         (vect_recog_mixed_size_cond_pattern): Ditto.
12771         (vect_recog_bool_pattern): Ditto.
12772         (vect_pattern_recog_1): Ditto.
12773         (vect_pattern_recog): Ditto.
12774         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
12775         (vect_is_simple_iv_evolution): Ditto.
12776         (vect_analyze_scalar_cycles_1): Ditto.
12777         (vect_get_loop_niters): Ditto.
12778         (vect_analyze_loop_1): Ditto.
12779         (vect_analyze_loop_form): Ditto.
12780         (vect_analyze_loop_operations): Ditto.
12781         (vect_analyze_loop_2): Ditto.
12782         (vect_analyze_loop): Ditto.
12783         (report_vect_op): Ditto.
12784         (vect_is_slp_reduction): Ditto.
12785         (vect_is_simple_reduction_1): Ditto.
12786         (vect_get_known_peeling_cost): Ditto.
12787         (vect_estimate_min_profitable_iters): Ditto.
12788         (vect_model_reduction_cost): Ditto.
12789         (vect_model_induction_cost): Ditto.
12790         (get_initial_def_for_induction): Ditto.
12791         (vect_create_epilog_for_reduction): Ditto.
12792         (vectorizable_reduction): Ditto.
12793         (vectorizable_induction): Ditto.
12794         (vectorizable_live_operation): Ditto.
12795         (vect_loop_kill_debug_uses): Ditto.
12796         (vect_transform_loop): Ditto.
12797         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
12798         (vect_stmt_relevant_p): Ditto.
12799         (process_use): Ditto.
12800         (vect_mark_stmts_to_be_vectorized): Ditto.
12801         (vect_model_simple_cost): Ditto.
12802         (vect_model_promotion_demotion_cost): Ditto.
12803         (vect_model_store_cost): Ditto.
12804         (vect_get_store_cost): Ditto.
12805         (vect_model_load_cost): Ditto.
12806         (vect_get_load_cost): Ditto.
12807         (vect_init_vector_1): Ditto.
12808         (vect_get_vec_def_for_operand): Ditto.
12809         (vect_finish_stmt_generation): Ditto.
12810         (vectorizable_call): Ditto.
12811         (vectorizable_conversion): Ditto.
12812         (vectorizable_assignment): Ditto.
12813         (vectorizable_shift): Ditto.
12814         (vectorizable_operation): Ditto.
12815         (vectorizable_store): Ditto.
12816         (vectorizable_load): Ditto.
12817         (vectorizable_condition): Ditto.
12818         (vect_analyze_stmt): Ditto.
12819         (vect_transform_stmt): Ditto.
12820         (vect_is_simple_use): Ditto.
12821         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
12822         (vect_can_advance_ivs_p): Ditto.
12823         (vect_update_ivs_after_vectorizer): Ditto.
12824         (vect_do_peeling_for_loop_bound): Ditto.
12825         (vect_gen_niters_for_prolog_loop): Ditto.
12826         (vect_update_inits_of_drs): Ditto.
12827         (vect_create_cond_for_alias_checks): Ditto.
12828         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
12829         (vect_build_slp_tree_1): Ditto.
12830         (vect_supported_load_permutation_p): Ditto.
12831         (vect_analyze_slp_instance): Ditto.
12832         (vect_analyze_slp): Ditto.
12833         (vect_make_slp_decision): Ditto.
12834         (vect_detect_hybrid_slp): Ditto.
12835         (vect_bb_vectorization_profitable_p): Ditto.
12836         (vect_slp_analyze_bb_1): Ditto.
12837         (vect_update_slp_costs_according_to_vf): Ditto.
12838         (vect_get_mask_element): Ditto.
12839         (vect_transform_slp_perm_load): Ditto.
12840         (vect_schedule_slp_instance): Ditto.
12841         (vect_schedule_slp): Ditto.
12842         (vect_slp_transform_bb): Ditto.
12843         * profile.c (read_profile_edge_counts): Ditto.
12844         (compute_branch_probabilities): Ditto.
12845         * coverage.c (get_coverage_counts): Ditto.
12847 2013-09-16  Diego Novillo  <dnovillo@google.com>
12849         * tree-core.h: Add missing comment lines from refactoring of tree.h.
12851 2013-09-16  Jan Hubicka  <jh@suse.cz>
12853         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
12854         abstract functions; for static functions check the presence of body.
12856 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
12858         * config/aarch64/aarch64-simd-builtins.def (fma): New.
12859         * config/aarch64/aarch64-simd.md
12860         (aarch64_mla_elt<mode>): New.
12861         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
12862         (aarch64_mls_elt<mode>): Likewise.
12863         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
12864         (aarch64_fma4_elt<mode>): Likewise.
12865         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
12866         (aarch64_fma4_elt_to_128v2df): Likewise.
12867         (aarch64_fma4_elt_to_64df): Likewise.
12868         (fnma<mode>4): Likewise.
12869         (aarch64_fnma4_elt<mode>): Likewise.
12870         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
12871         (aarch64_fnma4_elt_to_128v2df): Likewise.
12872         (aarch64_fnma4_elt_to_64df): Likewise.
12873         * config/aarch64/iterators.md (VDQSF): New.
12874         * config/aarch64/arm_neon.h
12875         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
12876         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
12878 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
12880         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
12881         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
12882         (aarch64_mul3_elt_to_128df): Likewise.
12883         (aarch64_mul3_elt_to_64v2df): Likewise.
12884         * config/aarch64/iterators.md (VEL): Also handle DFmode.
12885         (VMUL): New.
12886         (VMUL_CHANGE_NLANES) Likewise.
12887         (h_con): Likewise.
12888         (f): Likewise.
12889         * config/aarch64/arm_neon.h
12890         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
12892 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
12894         * config/aarch64/arm_neon.h
12895         (vcvtx_high_f32_f64): Fix parameters.
12897 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12898             Uros Bizjak  <ubizjak@gmail.com>
12900         * config/alpha.c: Include tree-ssanames.h.
12902 2013-09-16  Richard Biener  <rguenther@suse.de>
12904         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
12905         (dot_rdg_1): Handle control_dd.
12906         (create_edge_for_control_dependence): New function.
12907         (create_rdg_edges): Add control dependences if asked for.
12908         (build_rdg): Likewise.
12909         (generate_loops_for_partition): If there are not necessary
12910         control stmts remove all their dependencies.
12911         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
12912         (distribute_loop): Pass on control dependences.
12913         (tree_loop_distribution): Compute control dependences and remove
12914         restriction on number of loop nodes.
12916 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
12918         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
12919         for internal calls.
12921 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
12923         * cse.c (try_const_anchors): Punt on CC modes.
12925 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12927         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
12929 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
12931         PR target/58382
12932         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
12933         calls to word_mode.
12935 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
12937         PR target/48094
12938         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
12939         seen.
12940         (darwin_objc1_section): Likewise.
12941         (darwin_file_end): Emit Image Info section when required.
12943 2013-09-14  Jan Hubicka  <jh@suse.cz>
12945         * tree-into-ssa.c (gate_into_ssa): New.
12946         (pass_data_build_ssa): Use it.
12947         * cgraph.h (expand_thunk): Update prototype.
12948         * cgraphunit.c (analyze_function): Expand thunks early.
12949         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
12950         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
12951         set lowered flag; do not add new function.
12952         (assemble_thunks_and_aliases): Update.
12953         * tree-ssa.c (gate_init_datastructures): New gate.
12954         (pass_data_init_datastructures): Use it.
12956 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
12958         PR target/58269
12959         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
12960         xmm register set described in the psABI.
12962 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
12964         * dwarf2out.c (should_emit_struct_debug): Add check
12965         for type_decl variable is not NULL.
12967 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
12969         * config.gcc: Use new winnt-c.c target hooks
12970         * config/t-winnt: New file
12971         * config/winnt-c.c: New file
12972         * doc/tm.texi.in: Document new hook
12973         * doc/tm.texi: Regenerated
12975 2013-09-13  Jan Hubicka  <jh@suse.cz>
12977         PR middle-end/58094
12978         * ipa-inline.c (check_callers): New function.
12979         (check_caller_edge): Remove.
12980         (want_inline_function_to_all_callers_p): Also permit alises that are
12981         called dirrectly.
12982         (inline_to_all_callers): Terminate the walk when devirtualization
12983         introduce new calls.
12985 2013-09-13  Jan Hubicka  <jh@suse.cz>
12987         * ipa-inline-analysis.c (struct growth_data): Add node.
12988         (do_estimate_growth_1): Fix detection of recursion.
12990 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
12992         PR tree-optimization/58392
12993         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
12994         to avoid shadowing of outer loop variable.  If
12995         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
12996         replace_by_duplicate_decl simduid of loops that have it set and
12997         set dest_cfun->has_simduid_loops and/or
12998         dest_cfun->has_force_vect_loops.
12999         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
13000         instead of maybe_lookup_decl.
13001         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
13002         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
13003         call.  Copy over force_vect and copy and remap simduid.  Set
13004         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
13005         (copy_cfg_body): Remove blocks_to_copy argument.  Use
13006         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
13007         caller.  Don't set cfun->has_simduid_loops and/or
13008         cfun->has_force_vect_loops here.
13009         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
13010         caller.
13011         (expand_call_inline, tree_function_versioning): Adjust copy_body
13012         callers.
13014 2013-09-13  Martin Jambor  <mjambor@suse.cz>
13016         PR bootstrap/58388
13017         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
13018         the assert if the edge was a speculative one.
13020 2013-09-13  Richard Biener  <rguenther@suse.de>
13022         * tree-data-ref.h (known_dependences_p): Move here ...
13023         * tree-loop-distribution.c (known_dependences_p): ... from here.
13024         (dump_rdg_component, debug_rdg_component): Remove.
13025         (dump_rdg): Adjust.
13026         (generate_loops_for_partition): Use gimple_uid instead of
13027         relying on matching stmt visit order.
13028         (rdg_build_partitions): Take starting stmt vector.
13029         (ldist_gen): Merge into ...
13030         (distribute_loop): ... this function.  Do not compute starting
13031         vertices vector.
13032         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
13034 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13036         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
13037         Set type attribute correctly. Set predicable_short_it attribute.
13038         (cmpsi_shiftsi): Remove %? from output template.
13040 2013-09-13  Richard Biener  <rguenther@suse.de>
13042         * tree-loop-distribution.c (struct rdg_component,
13043         rdg_defs_used_in_other_loops_p, free_rdg_components,
13044         rdg_build_components): Remove.
13045         (stmts_from_loop): Do not record virtual PHIs.
13046         (generate_loops_for_partition): Skip virtual PHIs.
13047         (build_rdg_partition_for_component): Rename to ...
13048         (build_rdg_partition_for_vertex): ... this and adjust.
13049         (rdg_build_partitions): Take a vector of starting vertices
13050         instead of components.  Remove unnecessary leftover handling.
13051         (ldist_gen): Do not build components or record other stores.
13052         (distribute_loop): Do not distribute loops containing stmts
13053         with side-effects.
13055 2013-09-13  Christian Bruel  <christian.bruel@st.com>
13057         PR target/58314
13058         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
13060 2013-09-13  Kai Tietz  <ktietz@redhat.com>
13062         * config.gcc: Separate cases for mingw and cygwin targets,
13063         and add 64-bit cygwin target case.
13065         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
13066         dll-export inline-functions.
13067         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
13069 2013-09-13  Jeff Law  <law@redhat.com>
13071         PR middle-end/58387
13072         Revert:
13073         2013-09-06  Jeff Law  <law@redhat.com>
13075         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13076         edge implied equivalences into successor phis.
13078 2013-09-12  DJ Delorie  <dj@redhat.com>
13080         * config/rl78/rl78-virt.md: Change from | to \; for asm line
13081         separators.
13083 2013-09-12  Brooks Moses  <bmoses@google.com>
13085         PR driver/42955
13086         * Makefile.in: Do not install driver binaries in $(target)/bin.
13088 2013-09-12  DJ Delorie  <dj@redhat.com>
13090         * config/rl78/rl78.opt (mrelax): New.
13091         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
13092         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
13094         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
13095         between SP and FP.
13096         (rl78_expand_epilogue): Likewise.
13098 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
13100         PR middle-end/58335
13101         * lra-eliminations.c (remove_reg_equal_offset_note): New.
13102         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
13103         pointer elimination with using remove_reg_equal_offset_note.
13105 2013-09-12  DJ Delorie  <dj@redhat.com>
13107         * config/msp430/: New port.
13108         * config.gcc (msp430): Added.
13109         * doc/invoke.texi: Document MSP430 options.
13110         * doc/install.texi: Document msp430-elf
13111         * doc/md.texi: Document msp430-elf
13112         * doc/contrib.texi: Document msp430-elf
13114         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
13115         PSImode.
13117 2013-09-12  Martin Jambor  <mjambor@suse.cz>
13119         PR ipa/58389
13120         * ipa-prop.c (remove_described_reference): Give up if the edge in the
13121         reference descriptor is NULL.
13122         (ipa_edge_removal_hook): If owning a reference descriptor, set its
13123         edge to NULL.
13125 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
13127         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
13128         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
13129         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
13130         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
13131         make_temp_ssa_name): move to tree-ssanames.h
13132         * tree-ssa-alias.h: Move prototype.
13133         * tree-ssa.h: Include tree-ssanames.h.
13134         * tree-ssanames.c (FREE_SSANAMES): Move to here.
13135         * tree-ssanames.h: New.  Move items from tree-flow*.h
13136         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
13138 2013-09-12  Richard Biener  <rguenther@suse.de>
13140         PR tree-optimization/58404
13141         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
13142         propagate non-invariant addresses into dereferences wrapped
13143         in component references.
13145 2013-09-12  Richard Biener  <rguenther@suse.de>
13147         PR tree-optimization/58402
13148         * passes.def: Move pass_late_warn_uninitialized later.
13150 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
13152         * tree-ssa.h: New.  Move content from tree-flow.h and
13153         tree-flow-inline.h.
13154         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
13155         Move prototypes belonging to tree-ssa.c.
13156         * tree-flow-inline.h (redirect_edge_var_map_def,
13157         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
13158         tree-ssa.h.
13159         * gimple.h: Adjust prototypes.
13160         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
13161         to...
13162         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
13163         * tree.h: Move prototype to tree-ssa.h.
13164         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
13165         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
13166         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
13167         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
13168         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
13169         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
13170         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
13171         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
13172         graphite-blocking.c, graphite-clast-to-gimple.c,
13173         graphite-dependences.c, graphite-interchange.c,
13174         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
13175         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
13176         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
13177         ipa-reference.c, ipa-split.c, ipa-utils.c,
13178         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
13179         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
13180         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
13181         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
13182         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
13183         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
13184         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
13185         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
13186         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
13187         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
13188         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
13189         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13190         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
13191         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
13192         value-prof.c, var-tracking.c,
13193         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
13195 2013-09-12  Richard Biener  <rguenther@suse.de>
13197         PR tree-optimization/58396
13198         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
13199         (build_rdg): Take a loop-nest parameter, fix memleaks.
13200         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
13202 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
13204         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
13205         for SLM.
13207 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
13209         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
13210         The FMA instruction names should have a 'v' prefix.
13212 2013-09-12  Richard Biener  <rguenther@suse.de>
13214         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
13215         (dot_rdg): Use popen instead of system in optional code.
13216         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
13217         (already_processed_vertex_p): Adjust.
13218         (has_anti_or_output_dependence, predecessor_has_mem_write,
13219         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
13220         rdg_flag_uses): Remove.
13221         (rdg_flag_vertex): Simplify.
13222         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
13223         remove recursion.
13224         (build_rdg_partition_for_component): Process the first vertex
13225         of a component only.
13226         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
13228 2013-09-12  Alan Modra  <amodra@gmail.com>
13230         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
13232 2013-09-11  DJ Delorie  <dj@redhat.com>
13233             Nick Clifton  <nickc@redhat.com>
13235         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
13236         (rl78_stack_based_mem): New.
13237         * config/rl78/constraints.md (Iv08): New.
13238         (Iv16): New.
13239         (Iv24): New.
13240         (Is09): New.
13241         (Is17): New.
13242         (Is25): New.
13243         (ISsi): New.
13244         (IShi): New.
13245         (ISqi): New.
13246         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
13247         (movhi): Likewise.
13248         (movsi): Change from expand to insn-and-split.
13249         (ashrsi3): Clobber AX.
13250         (lshrsi3): New.
13251         (ashlsi3): New.
13252         (cbranchsi4): New.
13253         * config/rl78/rl78.md (CC_REG): Fix.
13254         (addsi3): Allow memory and immediate operands.
13255         (addsi3_internal): Split into...
13256         (addsi3_internal_virt): ...new, and ...
13257         (addsi3_internal_real): ...new.
13258         (subsi): New.
13259         (subsi3_internal_virt): New.
13260         (subsi3_internal_real): New.
13261         (mulsi3): Add memory operand.
13262         (mulsi3_rl78): Likewise.
13263         (mulsi3_g13): Likewise.
13264         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
13265         (cbranchqi4_real): Add more constraint options.
13266         (cbranchhi4_real): Expand pattern.
13267         (cbranchhi4_real_signed): New.
13268         (cbranchhi4_real_inverted): New.
13269         (cbranchsi4_real_lt): New.
13270         (cbranchsi4_real_ge): New.
13271         (cbranchsi4_real_signed): New.
13272         (cbranchsi4_real): New.
13273         (peephole2): New.
13274         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
13275         constant shifts.
13276         (lshrsi3_virt): Likewise.
13277         (ashlsi3_virt): Likewise.
13278         (cbranchqi4_virt_signed): New.
13279         (cbranchhi4_virt_signed): New.
13280         (cbranchsi4_virt): New.
13281         * config/rl78/rl78.c: Whitespace fixes throughout.
13282         (move_elim_pass): New.
13283         (pass_data_rl78_move_elim): New.
13284         (pass_rl78_move_elim): New.
13285         (make_pass_rl78_move_elim): New.
13286         (rl78_devirt_info): Run devirt earlier.
13287         (rl78_move_elim_info): New.
13288         (rl78_asm_file_start): Register it.
13289         (rl78_split_movsi): New.
13290         (rl78_as_legitimate_address): Allow virtual base registers when
13291         appropriate.
13292         (rl78_addr_space_convert): Remove spurious debug stuff.
13293         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
13294         (rl78_print_operand): More cases for not printing '#'.
13295         (rl78_expand_compare): Remove most of the logic.
13296         (content_memory): New.
13297         (clear_content_memory): New.
13298         (get_content_index): New.
13299         (get_content_name): New.
13300         (display_content_memory): New.
13301         (update_content): New.
13302         (record_content): New.
13303         (already_contains): New.
13304         (insn_ok_now): Re-recog insns with virtual registers.
13305         (add_postponed_content_update): New.
13306         (process_postponed_content_update): New.
13307         (gen_and_emit_move): New.
13308         (transcode_memory_rtx): Record new location content.
13309         Use gen_and_emit_move.
13310         (force_into_acc): New.
13311         (move_to_acc): Use gen_and_emit_move.
13312         (move_from_acc): Likewise.
13313         (move_acc_to_reg): Likewise.
13314         (move_to_x): Likewise.
13315         (move_to_hl): Likewise.
13316         (move_to_de): Likewise.
13317         (rl78_alloc_physical_registers_op1): Record location content.
13318         (has_constraint): New.
13319         (rl78_alloc_physical_registers_op2): Record location content.
13320         Optimize use of HL.
13321         (rl78_alloc_physical_registers_ro1): Likewise.
13322         (rl78_alloc_physical_registers_cmp): Likewise.
13323         (rl78_alloc_physical_registers_umul): Likewise.
13324         (rl78_alloc_address_registers_macax): New.
13325         (rl78_alloc_physical_registers): Initialize and set location
13326         content memory as needed.
13327         (rl78_reorg): Make sure split2 is called.
13328         (rl78_rtx_costs): New.
13330 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
13332         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
13333         for (not (neg ...)) and (neg (not ...)) cases.
13335 2013-09-11  Richard Biener  <rguenther@suse.de>
13337         PR middle-end/58377
13338         * passes.def: Split critical edges before late uninit warning passes.
13339         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
13341 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
13343         PR tree-optimization/58385
13344         * fold-const.c (build_range_check): If both low and high are NULL,
13345         use omit_one_operand_loc to preserve exp side-effects.
13347 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13349         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
13351 2013-09-11  Richard Biener  <rguenther@suse.de>
13353         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
13354         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
13355         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
13356         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
13357         stmts_from_loop, known_dependences_p, build_empty_rdg,
13358         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
13359         * tree-loop-distribution.c: ... here.
13360         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
13361         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
13362         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
13363         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
13364         * tree-loop-distribution.c: ... here.
13365         * tree-loop-distribution.c: Include gimple-pretty-print.h.
13366         (struct partition_s): Add loops member.
13367         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
13368         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
13369         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
13371 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13372             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13373             Sergey Lega  <sergey.s.lega@intel.com>
13374             Anna Tikhonova  <anna.tikhonova@intel.com>
13375             Ilya Tocar  <ilya.tocar@intel.com>
13376             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13377             Ilya Verbin  <ilya.verbin@intel.com>
13378             Kirill Yukhin  <kirill.yukhin@intel.com>
13379             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13381         * config/i386/constraints.md (k): New.
13382         (Yk): Ditto.
13383         * config/i386/i386.c (const regclass_map): Add new mask registers.
13384         (dbx_register_map): Ditto.
13385         (dbx64_register_map): Ditto.
13386         (svr4_dbx_register_map): Ditto.
13387         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
13388         disabled.
13389         (ix86_preferred_reload_class): Disable constants for mask registers.
13390         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
13391         (ix86_hard_regno_mode_ok): Support new mask registers.
13392         (x86_order_regs_for_local_alloc): Ditto.
13393         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
13394         (FIXED_REGISTERS): Add new mask registers.
13395         (CALL_USED_REGISTERS): Ditto.
13396         (REG_ALLOC_ORDER): Ditto.
13397         (VALID_MASK_REG_MODE): New.
13398         (FIRST_MASK_REG): Ditto.
13399         (LAST_MASK_REG): Ditto.
13400         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
13401         (MAYBE_MASK_CLASS_P): New.
13402         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
13403         (REG_CLASS_CONTENTS): Ditto.
13404         (MASK_REGNO_P): New.
13405         (ANY_MASK_REG_P): Ditto.
13406         (HI_REGISTER_NAMES): Add new mask registers.
13407         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
13408         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
13409         mask registers.
13410         (attribute "type"): Add mskmov, msklog.
13411         (attribute "length_immediate"): Support them.
13412         (attribute "memory"): Ditto.
13413         (attribute "prefix_0f"): Ditto.
13414         (*movhi_internal): Support new mask registers.
13415         (*movqi_internal): Ditto.
13416         (define_split): Split out clobber pattern is a logic
13417         insn on mask registers.
13418         (*k<logic><mode>): New.
13419         (*andhi_1): Extend to support mask regs.
13420         (*andqi_1): Extend to support mask regs.
13421         (kandn<mode>): New.
13422         (define_split): Split and-not to and and not if operands
13423         are not mask regs.
13424         (*<code><mode>_1): Separate HI mode to new pattern...
13425         (*<code>hi_1): This.
13426         (*<code>qi_1): Extend to support mask regs.
13427         (kxnor<mode>): New.
13428         (kortestzhi): Ditto.
13429         (kortestchi): Ditto.
13430         (kunpckhi): Ditto.
13431         (*one_cmpl<mode>2_1): Remove HImode and handle it...
13432         (*one_cmplhi2_1): ...Here, now with mask registers support.
13433         (*one_cmplqi2_1): Support new mask registers.
13434         (HI/QImode arithmetics splitter): Don't split if mask registers
13435         are used.
13436         (HI/QImode not splitter): Ditto.
13437         * config/i386/predicated.md (mask_reg_operand): New.
13438         (general_reg_operand): Ditto.
13440 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13442         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
13443         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
13445 2013-09-10  Jeff Law  <law@redhat.com>
13447         PR tree-optimization/58380
13448         * tree-ssa-threadupdate.c (thread_block): Recognize another case
13449         of threading through a buried loop header.
13451         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
13452         return value for single successor case.
13454 2013-09-10  Jan Hubicka  <jh@suse.cz>
13456         * ipa-devirt.c (ipa_devirt): Enable with LTO.
13458 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
13460         PR target/58361
13461         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
13462         support conditional execution.
13463         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
13465 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
13467         * lra.c (lra): Clear lra_optional_reload_pseudos before every
13468         constraint pass.
13469         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
13470         Check destination too to check move insn.
13471         (undo_optional_reloads): Add check that the original peudo did not
13472         changed its allocation and the optional reload was inherited on last
13473         inheritance pass.  Break loop after deciding to keep optional reload.
13474         (lra_undo_inheritance): Add check that inherited pseudo still in
13475         memory.
13477 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
13479         * config/aarch64/aarch64.md (generic_sched): New.
13480         * config/aarch64/aarch64-generic.md (load): Make conditional
13481         on generic_sched attribute.
13482         (nonload): Likewise.
13484 2013-09-10  Jan Hubicka  <jh@suse.cz>
13486         * lto-cgraph.c: Include ipa-utils.h.
13487         (compute_ltrans_boundary): Also add possible targets into the boundary.
13489 2013-09-10  Jan Hubicka  <jh@suse.cz>
13491         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
13492         VAR_DECL of vtable rather than full expression.
13494 2013-09-10  Jan Hubicka  <jh@suse.cz>
13495             Paolo Carlini  <paolo.carlini@oracle.com>
13497         * cgraphunit.c (analyze_functions): Save input_location, set it
13498         to UNKNOWN_LOCATION and restore it at the end.
13500 2013-09-10  Martin Jambor  <mjambor@suse.cz>
13502         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
13503         represented by a thunk.
13505 2013-09-10  Jeff Law  <law@redhat.com>
13507         PR tree-optimization/58343
13508         * tree-ssa-threadupdate.c (thread_block): Identify and disable
13509         jump threading requests through loop headers buried in the middle
13510         of a jump threading path.
13512         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
13513         in return value/type.
13515 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
13517         PR rtl-optimization/58365
13518         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
13519         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
13520         it differs.
13522 2013-09-10  Richard Biener  <rguenther@suse.de>
13524         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
13525         * tree-data-ref.c (create_rdg_vertices): Collect all data
13526         references, signal failure to the caller, use data-ref API.
13527         (build_rdg): Compute data references only once.  Maintain lifetime
13528         of data references and data dependences from within RDG.
13529         (free_rdg): Free dependence relations.
13530         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
13531         inventing extra dependences.
13532         (distribute_loop): Update for RDG API changes.
13534 2013-09-10  Kai Tietz  <ktietz@redhat.com>
13536         * doc/invoke.texi (fms-extensions): Document changed
13537         behavior for ms-abi targets.
13538         * config/i386/i386.c (ix86_option_override_internal):
13539         Set default value of option -fms-extension for ms-abi targets.
13541 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13543         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
13545 2013-09-10  Alan Modra  <amodra@gmail.com>
13547         PR target/58330
13548         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
13550 2013-09-10  Alan Modra  <amodra@gmail.com>
13552         * config/rs6000/predicates.md (add_cint_operand): New.
13553         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
13554         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
13555         using add_cint_operand.
13556         (largetoc_high_plus_aix): Likewise.
13558 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
13560         PR tree-optimization/58364
13561         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
13562         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
13563         the current range can't be an unconditional true or false.
13565 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
13567         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
13569 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
13571         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
13573 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
13575         PR c++/43452
13576         * doc/invoke.texi (-Wdelete-incomplete): Document it.
13578 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
13580         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
13581         NO_REGS for immediate that can't be moved directly into FP_REGS.
13583 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13585         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
13586         comparison with negated operand.
13587         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
13588         RTL form.
13590 2013-09-09  Richard Biener  <rguenther@suse.de>
13592         PR middle-end/58326
13593         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
13594         of a subloop record all its block as affecting loop-closed SSA form.
13596 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13598         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
13599         of an rtx/bitpos pair.
13600         (store_fixed_bit_field): Update accordingly.
13602 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13604         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
13605         GEN_INT.
13606         * builtins.c (expand_errno_check): Likewise.
13607         * dwarf2cfi.c (init_return_column_size): Likewise.
13608         * except.c (sjlj_mark_call_sites): Likewise.
13609         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
13610         * lra-constraints.c (emit_inc): Likewise.
13611         * ree.c (combine_set_extension): Likewise.
13612         * regmove.c (fixup_match_2): Likewise.
13613         * reload1.c (inc_for_reload): Likewise.
13615 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13617         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
13618         (force_to_mode, simplify_shift_const_1, simplify_comparison):
13619         Use gen_int_mode with the mode of the associated simplify_* call.
13620         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
13621         * expmed.c (expand_shift_1): Likewise.
13622         * function.c (instantiate_virtual_regs_in_insn): Likewise.
13623         * loop-iv.c (iv_number_of_iterations): Likewise.
13624         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
13625         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13627 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13629         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
13630         of the associated expand_* call.
13631         (asan_emit_stack_protection): Likewise.
13632         * builtins.c (round_trampoline_addr): Likewise.
13633         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
13634         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
13635         (emit_store_flag): Likewise.
13636         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
13637         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
13638         Likewise.
13639         * function.c (instantiate_virtual_regs_in_insn): Likewise.
13640         * ifcvt.c (noce_try_store_flag_constants): Likewise.
13641         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
13642         * modulo-sched.c (generate_prolog_epilog): Likewise.
13643         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
13644         (expand_ctz, expand_ffs, expand_unop): Likewise.
13646 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13648         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
13649         of the associated gen_rtx_* call.
13650         * caller-save.c (init_caller_save): Likewise.
13651         * combine.c (find_split_point, make_extraction): Likewise.
13652         (make_compound_operation): Likewise.
13653         * dwarf2out.c (mem_loc_descriptor): Likewise.
13654         * explow.c (plus_constant, probe_stack_range): Likewise.
13655         * expmed.c (expand_mult_const): Likewise.
13656         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
13657         * reload1.c (init_reload): Likewise.
13658         * valtrack.c (cleanup_auto_inc_dec): Likewise.
13659         * var-tracking.c (adjust_mems): Likewise.
13660         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
13661         rather than gen_rtx_fmt_ee.
13663 2013-09-09  Jan Hubicka  <jh@suse.cz>
13665         PR middle-end/58294
13666         * value-prof.c (gimple_ic): Copy also abnormal edges.
13668 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
13670         * asan.c (asan_shadow_cst): Use gen_int_mode.
13672 2013-09-08  Jan Hubicka  <jh@suse.cz>
13674         * ipa-profile.c: Add toplevel comment.
13675         (ipa_propagate_frequency_1): Be more conservative when profile is read.
13676         (contains_hot_call_p): New function.
13677         (ipa_propagate_frequency): Set frequencies based on counts when
13678         profile is read.
13679         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
13680         profile; do not tamper with profile after inlining if it is read.
13682 2013-09-08  Jan Hubicka  <jh@suse.cz>
13684         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
13685         speculative edges.
13687 2013-09-08  Jan Hubicka  <jh@suse.cz>
13689         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
13690         summary generation.
13692 2013-09-08  Jeff Law  <law@redhat.com>
13694         PR bootstrap/58340
13695         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
13696         of 'found'.
13698 2013-09-08  Andi Kleen  <ak@linux.intel.com>
13700         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
13702 2013-09-08  Jan Hubicka  <jh@suse.cz>
13704         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
13706 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
13708         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
13709         for non-debug insns.
13710         * lra.c (new_insn_reg): Take the containing insn as a parameter.
13711         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
13712         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
13713         accordingly.
13715 2013-09-08  Jan Hubicka  <jh@suse.cz>
13717         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
13718         targets and devirtualize to BUILT_IN_UNREACHABLE.
13719         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
13720         * ipa.c (walk_polymorphic_call_targets): New function.
13721         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
13722         functions; use the new timevar.
13723         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
13724         was removed from the program.
13725         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
13726         not consider it in the walk when its vtable is dead.
13727         (possible_polymorphic_call_targets_1): Pass anonymous flag to
13728         record_binfo.
13729         (devirt_variable_node_removal_hook): New function.
13730         (possible_polymorphic_call_targets): Also register
13731         devirt_variable_node_removal_hook.
13732         (ipa_devirt): Do not do non-speculative devirtualization.
13733         (gate_ipa_devirt): One execute if devirtualizing speculatively.
13735 2013-09-08  Jan Hubicka  <jh@suse.cz>
13737         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
13738         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
13739         varpool_remove_variable_insertion_hook): Declare.
13740         * varpool.c (varpool_node_hook_list): New structure.
13741         (first_varpool_node_removal_hook,
13742         first_varpool_variable_insertion_hook): New variables.
13743         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
13744         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
13745         varpool_remove_variable_insertion_hook,
13746         varpool_call_variable_insertion_hooks): New functions.
13747         (varpool_remove_node): Use it.
13749 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
13751         PR c++/54941
13752         * diagnostic.c (diagnostic_build_prefix): When s.file is
13753         "<built-in>" don't output line and column numbers.
13755 2013-09-06  Jan Hubicka  <jh@suse.cz>
13757         * cgraphunit.c (expand_thunk): Get body before touching arguments.
13758         * lto-streamer-out.c: Stream thunks, too.
13759         * lto-streamer-in.c (input_function): Pop cfun here
13760         (lto_read_body): Instead of here.
13762 2013-09-06  Caroline Tice  <cmtice@google.com>
13764         * doc/install.texi: Add documentation for the --enable-vtable-verify
13765         and the --disable-libvtv configure options.
13767 2013-09-06  Jeff Law  <law@redhat.com>
13769         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13770         edge implied equivalences into successor phis.
13772 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
13774         * resource.c (mark_referenced_resources): Handle COND_EXEC.
13776 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
13778         * resource.c (mark_target_live_regs): Compute resources taking
13779         into account if a call is predicated or not.
13781 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
13783         * toplev.c (output_stack_usage): Be prepared for suffixes created by
13784         the compiler in the function names.
13786 2013-09-06  Jan Hubicka  <jh@suse.cz>
13788         PR middle-end/58094
13789         * ipa-inline.c (has_caller_p): New function.
13790         (want_inline_function_to_all_callers_p): Use it.
13791         (sum_callers, inline_to_all_callers): Break out from ...
13792         (ipa_inline): ... here.
13794 2013-09-06  Jan Hubicka  <jh@suse.cz>
13796         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
13797         only when AVX is enabled.
13799 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13801         * config/aarch64/aarch64.md
13802         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
13803         is fpsimd_<load/store>2.
13804         (load_pair<mode>): Likewise.
13805         (store_pair<mode>): Likewise.
13807 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13809         * config/arm/types.md (type): Add "mrs" type.
13810         * config/aarch64/aarch64.md
13811         (aarch64_load_tp_hard): Make type "mrs".
13812         * config/arm/arm.md
13813         (load_tp_hard): Make type "mrs".
13814         * config/arm/cortex-a15.md: Update with new attributes.
13815         * config/arm/cortex-a5.md: Update with new attributes.
13816         * config/arm/cortex-a53.md: Update with new attributes.
13817         * config/arm/cortex-a7.md: Update with new attributes.
13818         * config/arm/cortex-a8.md: Update with new attributes.
13819         * config/arm/cortex-a9.md: Update with new attributes.
13820         * config/arm/cortex-m4.md: Update with new attributes.
13821         * config/arm/cortex-r4.md: Update with new attributes.
13822         * config/arm/fa526.md: Update with new attributes.
13823         * config/arm/fa606te.md: Update with new attributes.
13824         * config/arm/fa626te.md: Update with new attributes.
13825         * config/arm/fa726te.md: Update with new attributes.
13827 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13829         * config/aarch64/aarch64.md
13830         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
13831         (*movtf_aarch64): Likewise.
13832         * config/arm/arm.md
13833         (thumb1_movdi_insn): Use "multiple" for type where more than one
13834         instruction is used for a move.
13835         (*arm32_movhf): Likewise.
13836         (*thumb_movdf_insn): Likewise.
13838 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13840         * config/arm/types.md (type): Rename fcpys to fmov.
13841         * config/arm/vfp.md
13842         (*arm_movsi_vfp): Rename type fcpys as fmov.
13843         (*thumb2_movsi_vfp): Likewise
13844         (*movhf_vfp_neon): Likewise
13845         (*movhf_vfp): Likewise
13846         (*movsf_vfp): Likewise
13847         (*thumb2_movsf_vfp): Likewise
13848         (*movsfcc_vfp): Likewise
13849         (*thumb2_movsfcc_vfp): Likewise
13850         * config/aarch64/aarch64-simd.md
13851         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
13852         * config/aarch64/aarch64.md
13853         (*movsi_aarch64): Replace type mov_reg with fmovs.
13854         (*movdi_aarch64): Likewise
13855         (*movsf_aarch64): Likewise
13856         (*movdf_aarch64): Likewise
13857         * config/arm/arm.c
13858         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
13859         * config/arm/iwmmxt.md
13860         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
13861         * config/arm/arm1020e.md: Update with new attributes.
13862         * config/arm/cortex-a15-neon.md: Update with new attributes.
13863         * config/arm/cortex-a5.md: Update with new attributes.
13864         * config/arm/cortex-a53.md: Update with new attributes.
13865         * config/arm/cortex-a7.md: Update with new attributes.
13866         * config/arm/cortex-a8-neon.md: Update with new attributes.
13867         * config/arm/cortex-a9.md: Update with new attributes.
13868         * config/arm/cortex-m4-fpu.md: Update with new attributes.
13869         * config/arm/cortex-r4f.md: Update with new attributes.
13870         * config/arm/marvell-pj4.md: Update with new attributes.
13871         * config/arm/vfp11.md: Update with new attributes.
13873 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13875         * config/aarch64/aarch64.md
13876         (*madd<mode>): Fix type attribute.
13877         (*maddsi_uxtw): Likewise.
13878         (*msub<mode>): Likewise.
13879         (*msubsi_uxtw): Likewise.
13880         (<su_optab>maddsidi4): Likewise.
13881         (<su_optab>msubsidi4): Likewise.
13883 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13885         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
13886         * config/arm/arm.md (core_cycles): Remove fdiv.
13887         * config/arm/vfp.md:
13888         (*sqrtsf2_vfp): Update for attribute changes.
13889         (*sqrtdf2_vfp): Likewise.
13890         * config/aarch64/aarch64.md:
13891         (sqrt<mode>2): Update for attribute changes.
13892         * config/arm/arm1020e.md: Update with new attributes.
13893         * config/arm/cortex-a15-neon.md: Update with new attributes.
13894         * config/arm/cortex-a5.md: Update with new attributes.
13895         * config/arm/cortex-a53.md: Update with new attributes.
13896         * config/arm/cortex-a7.md: Update with new attributes.
13897         * config/arm/cortex-a8-neon.md: Update with new attributes.
13898         * config/arm/cortex-a9.md: Update with new attributes.
13899         * config/arm/cortex-m4-fpu.md: Update with new attributes.
13900         * config/arm/cortex-r4f.md: Update with new attributes.
13901         * config/arm/marvell-pj4.md: Update with new attributes.
13902         * config/arm/vfp11.md: Update with new attributes.
13904 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13906         * config/arm/types.md
13907         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
13908         * config/aarch64/aarch64.md
13909         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
13910         new attributes.
13911         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
13912         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
13913         (float<GPI:mode><GPF:mode>2): Likewise.
13914         * config/arm/vfp.md
13915         (*truncsisf2_vfp): Update with new attributes.
13916         (*truncsidf2_vfp): Likewise.
13917         (fixuns_truncsfsi2): Likewise.
13918         (fixuns_truncdfsi2): Likewise.
13919         (*floatsisf2_vfp): Likewise.
13920         (*floatsidf2_vfp): Likewise.
13921         (floatunssisf2): Likewise.
13922         (floatunssidf2): Likewise.
13923         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
13924         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
13925         * config/arm/arm1020e.md: Update with new attributes.
13926         * config/arm/cortex-a15-neon.md: Update with new attributes.
13927         * config/arm/cortex-a5.md: Update with new attributes.
13928         * config/arm/cortex-a53.md: Update with new attributes.
13929         * config/arm/cortex-a7.md: Update with new attributes.
13930         * config/arm/cortex-a8-neon.md: Update with new attributes.
13931         * config/arm/cortex-a9.md: Update with new attributes.
13932         * config/arm/cortex-m4-fpu.md: Update with new attributes.
13933         * config/arm/cortex-r4f.md: Update with new attributes.
13934         * config/arm/marvell-pj4.md: Update with new attributes.
13935         * config/arm/vfp11.md: Update with new attributes.
13937 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13939         * config/aarch64/arm_neon.h
13940         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
13941         (vqtbx<1,2,3,4><q>_s8): Likewise.
13943 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
13945         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
13946         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
13947         (add<mode>3): Add type attribute.
13948         (add<mode>3): Likewise.
13949         (usadd<mode>3): Likewise.
13950         (ssadd<mode>3): Likewise.
13951         (sub<mode>3): Likewise.
13952         (sub<mode>3): Likewise.
13953         (ussub<mode>3): Likewise.
13954         (sssub<mode>3): Likewise.
13955         (ssmulsa3): Likewise.
13956         (usmulusa3): Likewise.
13957         (arm_usatsihi): Likewise.
13958         * config/arm/vfp.md
13959         (*movdi_vfp): Add types for all instructions.
13960         (*movdi_vfp_cortexa8): Likewise.
13961         (*movhf_vfp_neon): Likewise.
13962         (*movhf_vfp): Likewise.
13963         (*movdf_vfp): Likewise.
13964         (*thumb2_movdf_vfp): Likewise.
13965         (*thumb2_movdfcc_vfp): Likewise.
13966         * config/arm/arm.md: Add type attribute to all insn patterns.
13967         (*thumb1_adddi3): Add type attribute.
13968         (*arm_adddi3): Likewise.
13969         (*adddi_sesidi_di): Likewise.
13970         (*adddi_zesidi_di): Likewise.
13971         (*thumb1_addsi3): Likewise.
13972         (addsi3_compare0): Likewise.
13973         (*addsi3_compare0_scratch): Likewise.
13974         (*compare_negsi_si): Likewise.
13975         (cmpsi2_addneg): Likewise.
13976         (*addsi3_carryin_<optab>): Likewise.
13977         (*addsi3_carryin_alt2_<optab>): Likewise.
13978         (*addsi3_carryin_clobercc_<optab>): Likewise.
13979         (*subsi3_carryin): Likewise.
13980         (*subsi3_carryin_const): Likewise.
13981         (*subsi3_carryin_compare): Likewise.
13982         (*subsi3_carryin_compare_const): Likewise.
13983         (*arm_subdi3): Likewise.
13984         (*thumb_subdi3): Likewise.
13985         (*subdi_di_zesidi): Likewise.
13986         (*subdi_di_sesidi): Likewise.
13987         (*subdi_zesidi_di): Likewise.
13988         (*subdi_sesidi_di): Likewise.
13989         (*subdi_zesidi_ze): Likewise.
13990         (thumb1_subsi3_insn): Likewise.
13991         (*arm_subsi3_insn): Likewise.
13992         (*anddi3_insn): Likewise.
13993         (*anddi_zesidi_di): Likewise.
13994         (*anddi_sesdi_di): Likewise.
13995         (*ne_zeroextracts): Likewise.
13996         (*ne_zeroextracts): Likewise.
13997         (*ite_ne_zeroextr): Likewise.
13998         (*ite_ne_zeroextr): Likewise.
13999         (*anddi_notdi_di): Likewise.
14000         (*anddi_notzesidi): Likewise.
14001         (*anddi_notsesidi): Likewise.
14002         (andsi_notsi_si): Likewise.
14003         (thumb1_bicsi3): Likewise.
14004         (*iordi3_insn): Likewise.
14005         (*iordi_zesidi_di): Likewise.
14006         (*iordi_sesidi_di): Likewise.
14007         (*thumb1_iorsi3_insn): Likewise.
14008         (*xordi3_insn): Likewise.
14009         (*xordi_zesidi_di): Likewise.
14010         (*xordi_sesidi_di): Likewise.
14011         (*arm_xorsi3): Likewise.
14012         (*andsi_iorsi3_no): Likewise.
14013         (*smax_0): Likewise.
14014         (*smax_m1): Likewise.
14015         (*arm_smax_insn): Likewise.
14016         (*smin_0): Likewise.
14017         (*arm_smin_insn): Likewise.
14018         (*arm_umaxsi3): Likewise.
14019         (*arm_uminsi3): Likewise.
14020         (*minmax_arithsi): Likewise.
14021         (*minmax_arithsi_): Likewise.
14022         (*satsi_<SAT:code>): Likewise.
14023         (arm_ashldi3_1bit): Likewise.
14024         (arm_ashrdi3_1bit): Likewise.
14025         (arm_lshrdi3_1bit): Likewise.
14026         (*arm_negdi2): Likewise.
14027         (*thumb1_negdi2): Likewise.
14028         (*arm_negsi2): Likewise.
14029         (*thumb1_negsi2): Likewise.
14030         (*negdi_extendsid): Likewise.
14031         (*negdi_zero_extend): Likewise.
14032         (*arm_abssi2): Likewise.
14033         (*thumb1_abssi2): Likewise.
14034         (*arm_neg_abssi2): Likewise.
14035         (*thumb1_neg_abss): Likewise.
14036         (one_cmpldi2): Likewise.
14037         (extend<mode>di2): Likewise.
14038         (*compareqi_eq0): Likewise.
14039         (*arm_extendhisi2addsi): Likewise.
14040         (*arm_movdi): Likewise.
14041         (*thumb1_movdi_insn): Likewise.
14042         (*arm_movt): Likewise.
14043         (*thumb1_movsi_insn): Likewise.
14044         (pic_add_dot_plus_four): Likewise.
14045         (pic_add_dot_plus_eight): Likewise.
14046         (tls_load_dot_plus_eight): Likewise.
14047         (*thumb1_movhi_insn): Likewise.
14048         (*thumb1_movsf_insn): Likewise.
14049         (*movdf_soft_insn): Likewise.
14050         (*thumb_movdf_insn): Likewise.
14051         (cbranchsi4_insn): Likewise.
14052         (cbranchsi4_scratch): Likewise.
14053         (*negated_cbranchsi4): Likewise.
14054         (*tbit_cbranch): Likewise.
14055         (*tlobits_cbranch): Likewise.
14056         (*tstsi3_cbranch): Likewise.
14057         (*cbranchne_decr1): Likewise.
14058         (*addsi3_cbranch): Likewise.
14059         (*addsi3_cbranch_scratch): Likewise.
14060         (*arm_cmpdi_insn): Likewise.
14061         (*arm_cmpdi_unsig): Likewise.
14062         (*arm_cmpdi_zero): Likewise.
14063         (*thumb_cmpdi_zero): Likewise.
14064         (*deleted_compare): Likewise.
14065         (*mov_scc): Likewise.
14066         (*mov_negscc): Likewise.
14067         (*mov_notscc): Likewise.
14068         (*cstoresi_eq0_thumb1_insn): Likewise.
14069         (cstoresi_nltu_thumb1): Likewise.
14070         (cstoresi_ltu_thu): Likewise.
14071         (thumb1_addsi3_addgeu): Likewise.
14072         (*arm_jump): Likewise.
14073         (*thumb_jump): Likewise.
14074         (*check_arch2): Likewise.
14075         (arm_casesi_internal): Likewise.
14076         (thumb1_casesi_dispatch): Likewise.
14077         (*arm_indirect_jump): Likewise.
14078         (*thumb1_indirect_jump): Likewise.
14079         (nop): Likewise.
14080         (*and_scc): Likewise.
14081         (*ior_scc): Likewise.
14082         (*compare_scc): Likewise.
14083         (*cond_move): Likewise.
14084         (*cond_arith): Likewise.
14085         (*cond_sub): Likewise.
14086         (*cmp_ite0): Likewise.
14087         (*cmp_ite1): Likewise.
14088         (*cmp_and): Likewise.
14089         (*cmp_ior): Likewise.
14090         (*ior_scc_scc): Likewise.
14091         (*ior_scc_scc_cmp): Likewise.
14092         (*and_scc_scc): Likewise.
14093         (*and_scc_scc_cmp): Likewise.
14094         (*and_scc_scc_nod): Likewise.
14095         (*negscc): Likewise.
14096         (movcond_addsi): Likewise.
14097         (movcond): Likewise.
14098         (*ifcompare_plus_move): Likewise.
14099         (*if_plus_move): Likewise.
14100         (*ifcompare_move_plus): Likewise.
14101         (*if_move_plus): Likewise.
14102         (*ifcompare_arith_arith): Likewise.
14103         (*if_arith_arith): Likewise.
14104         (*ifcompare_arith_move): Likewise.
14105         (*if_arith_move): Likewise.
14106         (*ifcompare_move_arith): Likewise.
14107         (*if_move_arith): Likewise.
14108         (*ifcompare_move_not): Likewise.
14109         (*if_move_not): Likewise.
14110         (*ifcompare_not_move): Likewise.
14111         (*if_not_move): Likewise.
14112         (*ifcompare_shift_move): Likewise.
14113         (*if_shift_move): Likewise.
14114         (*ifcompare_move_shift): Likewise.
14115         (*if_move_shift): Likewise.
14116         (*ifcompare_shift_shift): Likewise.
14117         (*ifcompare_not_arith): Likewise.
14118         (*ifcompare_arith_not): Likewise.
14119         (*if_arith_not): Likewise.
14120         (*ifcompare_neg_move): Likewise.
14121         (*if_neg_move): Likewise.
14122         (*ifcompare_move_neg): Likewise.
14123         (*if_move_neg): Likewise.
14124         (prologue_thumb1_interwork): Likewise.
14125         (*cond_move_not): Likewise.
14126         (*sign_extract_onebit): Likewise.
14127         (*not_signextract_onebit): Likewise.
14128         (stack_tie): Likewise.
14129         (align_4): Likewise.
14130         (align_8): Likewise.
14131         (consttable_end): Likewise.
14132         (consttable_1): Likewise.
14133         (consttable_2): Likewise.
14134         (consttable_4): Likewise.
14135         (consttable_8): Likewise.
14136         (consttable_16): Likewise.
14137         (*thumb1_tablejump): Likewise.
14138         (prefetch): Likewise.
14139         (force_register_use): Likewise.
14140         (thumb_eh_return): Likewise.
14141         (load_tp_hard): Likewise.
14142         (load_tp_soft): Likewise.
14143         (tlscall): Likewise.
14144         (*arm_movtas_ze): Likewise.
14145         (*arm_rev): Likewise.
14146         (*arm_revsh): Likewise.
14147         (*arm_rev16): Likewise.
14148         * config/arm/thumb2.md
14149         (*thumb2_smaxsi3): Likewise.
14150         (*thumb2_sminsi3): Likewise.
14151         (*thumb32_umaxsi3): Likewise.
14152         (*thumb2_uminsi3): Likewise.
14153         (*thumb2_negdi2): Likewise.
14154         (*thumb2_abssi2): Likewise.
14155         (*thumb2_neg_abss): Likewise.
14156         (*thumb2_movsi_insn): Likewise.
14157         (tls_load_dot_plus_four): Likewise.
14158         (*thumb2_movhi_insn): Likewise.
14159         (*thumb2_mov_scc): Likewise.
14160         (*thumb2_mov_negs): Likewise.
14161         (*thumb2_mov_negs): Likewise.
14162         (*thumb2_mov_nots): Likewise.
14163         (*thumb2_mov_nots): Likewise.
14164         (*thumb2_movsicc_): Likewise.
14165         (*thumb2_movsfcc_soft_insn): Likewise.
14166         (*thumb2_indirect_jump): Likewise.
14167         (*thumb2_and_scc): Likewise.
14168         (*thumb2_ior_scc): Likewise.
14169         (*thumb2_ior_scc_strict_it): Likewise.
14170         (*thumb2_cond_move): Likewise.
14171         (*thumb2_cond_arith): Likewise.
14172         (*thumb2_cond_ari): Likewise.
14173         (*thumb2_cond_sub): Likewise.
14174         (*thumb2_negscc): Likewise.
14175         (*thumb2_movcond): Likewise.
14176         (thumb2_casesi_internal): Likewise.
14177         (thumb2_casesi_internal_pic): Likewise.
14178         (*thumb2_alusi3_short): Likewise.
14179         (*thumb2_mov<mode>_shortim): Likewise.
14180         (*thumb2_addsi_short): Likewise.
14181         (*thumb2_subsi_short): Likewise.
14182         (thumb2_addsi3_compare0): Likewise.
14183         (*thumb2_cbz): Likewise.
14184         (*thumb2_cbnz): Likewise.
14185         (*thumb2_one_cmplsi2_short): Likewise.
14186         (*thumb2_negsi2_short): Likewise.
14187         (*orsi_notsi_si): Likewise.
14188         * config/arm/arm1020e.md: Update with new attributes.
14189         * config/arm/arm1026ejs.md: Update with new attributes.
14190         * config/arm/arm1136jfs.md: Update with new attributes.
14191         * config/arm/arm926ejs.md: Update with new attributes.
14192         * config/arm/cortex-a15.md: Update with new attributes.
14193         * config/arm/cortex-a5.md: Update with new attributes.
14194         * config/arm/cortex-a53.md: Update with new attributes.
14195         * config/arm/cortex-a7.md: Update with new attributes.
14196         * config/arm/cortex-a8.md: Update with new attributes.
14197         * config/arm/cortex-a9.md: Update with new attributes.
14198         * config/arm/cortex-m4.md: Update with new attributes.
14199         * config/arm/cortex-r4.md: Update with new attributes.
14200         * config/arm/fa526.md: Update with new attributes.
14201         * config/arm/fa606te.md: Update with new attributes.
14202         * config/arm/fa626te.md: Update with new attributes.
14203         * config/arm/fa726te.md: Update with new attributes.
14205 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
14207         * config/aarch64/aarch64-simd.md
14208         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
14209         <vwx> iterator to ensure correct register choice.
14210         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
14211         (aarch64_sqdmull_n<mode>): Likewise.
14212         (aarch64_sqdmull2_n<mode>_internal): Likewise.
14213         * config/aarch64/arm_neon.h
14214         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
14215         (vml<as><q>_n_<su>16): Likewise.
14216         (vml<as>l_high_lane<q>_<su>16): Likewise.
14217         (vml<as>l_high_n_<su>16): Likewise.
14218         (vml<as>l_lane<q>_<su>16): Likewise.
14219         (vml<as>l_n_<su>16): Likewise.
14220         (vmul<q>_lane<q>_<su>16): Likewise.
14221         (vmul<q>_n_<su>16): Likewise.
14222         (vmull_lane<q>_<su>16): Likewise.
14223         (vmull_n_<su>16): Likewise.
14224         (vmull_high_lane<q>_<su>16): Likewise.
14225         (vmull_high_n_<su>16): Likewise.
14226         (vqrdmulh<q>_n_s16): Likewise.
14228 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
14230         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
14231         have the correct lane parameter.
14233 2013-09-06  Richard Biener <rguenther@suse.de>
14235         * cfganal.c (control_dependences::~control_dependences):
14236         Properly free all of the vector.
14238 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
14240         PR target/58269
14241         * config/i386/i386.c (ix86_conditional_register_usage):
14242         Proper initialize extended SSE registers.
14244 2013-09-06  Jan Hubicka  <jh@suse.cz>
14246         PR tree-optimization/58311
14247         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
14249 2013-09-06  Jan Hubicka  <jh@suse.cz>
14251         * Makefile.in (tree-sra.o): Update dependencies.
14252         * tree-sra.c: Include ipa-utils.h
14253         (scan_function): Use recursive_call_p.
14254         (has_caller_p): New function.
14255         (cgraph_for_node_and_aliases): Count also callers of aliases.
14257 2013-09-06  Jan Hubicka  <jh@suse.cz>
14259         PR middle-end/58094
14260         * cgraph.h (symtab_semantically_equivalent_p): Declare.
14261         * tree-tailcall.c: Include ipa-utils.h.
14262         (find_tail_calls): Use it.
14263         * ipa-pure-const.c (check_call): Likewise.
14264         * ipa-utils.c (recursive_call_p): New function.
14265         * ipa-utils.h (recursive_call_p): Dclare.
14266         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
14267         (symtab_semantically_equivalent_p): New function.
14268         * Makefile.in (tree-tailcall.o): Update dependencies.
14270 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
14272         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
14273         non-inlinable part.
14275 2013-09-06  Richard Biener  <rguenther@suse.de>
14277         * lto-streamer.h (lto_global_var_decls): Remove.
14278         * Makefile.in (OBJS): Remove lto-symtab.o.
14279         (lto-symtab.o): Remove.
14280         (GTFILES): Remove lto-symtab.c
14281         * lto-symtab.c: Move to lto/
14283 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14285         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
14286         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
14287         (UNSPEC_FPINT_RINT): New constant definitions.
14288         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
14289         definition with 2 attributes.
14290         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
14291         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
14292         definitions.
14294 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14296         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
14297         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
14298         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
14299         attribute to "z196_alone".
14300         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
14301         "zEC12_simple".
14303 2013-09-06  Richard Biener  <rguenther@suse.de>
14305         * basic-block.h (class control_dependences): New.
14306         * tree-ssa-dce.c (control_dependence_map): Remove.
14307         (cd): New global.
14308         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
14309         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
14310         find_pdom, find_control_dependence, find_all_control_dependences):
14311         Move to cfganal.c.
14312         (mark_control_dependent_edges_necessary,
14313         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
14314         tree_dce_done, perform_tree_ssa_dce): Adjust.
14315         * cfganal.c (set_control_dependence_map_bit,
14316         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
14317         find_all_control_dependences): Move from tree-ssa-dce.c and
14318         implement as methods of control_dependences class.
14319         (control_dependences::control_dependences): New.
14320         (control_dependences::~control_dependences): Likewise.
14321         (control_dependences::get_edges_dependent_on): Likewise.
14322         (control_dependences::get_edge): Likewise.
14324 2013-09-04  Jan Hubicka  <jh@suse.cz>
14326         * tree.c (types_same_for_odr): Drop overactive check.
14327         * ipa-devirt.c (hash_type_name): Likewise.
14329 2013-09-04  Jan Hubicka  <jh@suse.cz>
14331         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
14332         (analyze_functions): ... here.
14334 2013-09-04  Jan Hubicka  <jh@suse.cz>
14336         PR middle-end/58201
14337         * cgraphunit.c (analyze_functions): Clear AUX fields
14338         after processing; initialize assembler name has.
14340 2013-09-05  Jeff Law  <law@redhat.com>
14342         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
14343         from thread_around_empty_block.  Record threading path into PATH.
14344         Recurse if threading through the initial block is successful.
14345         (thread_across_edge): Corresponding changes to slightly simplify.
14347 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
14349         * config/aarch64/aarch64.md
14350         (type): Remove frecpe, frecps, frecpx.
14351         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
14352         fix to be a TARGET_SIMD instruction.
14353         (aarch64_frecps): Remove.
14354         * config/aarch64/aarch64-simd.md
14355         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
14356         (aarch64_frecps<mode>): Handle all float/vector of float modes.
14358 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
14359             Sofiane Naci  <sofiane.naci@arm.com>
14361         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
14362         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
14363         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
14364         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
14365         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
14366         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
14367         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
14368         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
14369         into "clz, "rbit".  Rename "shift" to "shift_imm".
14370         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
14371         changes.  Update for attribute changes all occurrences of arlo_* and
14372         shift* types.
14373         * config/arm/arm-fixed.md: Update for attribute changes
14374         all occurrences of arlo_* types.
14375         * config/arm/thumb2.md: Update for attribute changes all occurrences
14376         of arlo_* types.
14377         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
14378         (cortexa7_older_only): Likewise.
14379         (cortexa7_younger):  Likewise.
14380         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
14381         (1020alu_shift_op): Likewise.
14382         (1020alu_shift_reg_op): Likewise.
14383         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
14384         (alu_shift_op): Likewise.
14385         (alu_shift_reg_op): Likewise.
14386         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
14387         (11_alu_shift_op): Likewise.
14388         (11_alu_shift_reg_op): Likewise.
14389         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
14390         (9_alu_shift_reg_op): Likewise.
14391         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
14392         attribute changes.
14393         (cortex_a15_alu_shift): Likewise.
14394         (cortex_a15_alu_shift_reg): Likewise.
14395         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
14396         attribute changes.
14397         (cortex_a5_alu_shift): Likewise.
14398         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
14399         attribute changes.
14400         (cortex_a53_alu_shift): Likewise.
14401         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
14402         attribute changes.
14403         (cortex_a7_alu_reg): Likewise.
14404         (cortex_a7_alu_shift): Likewise.
14405         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
14406         attribute changes.
14407         (cortex_a8_alu_shift): Likewise.
14408         (cortex_a8_alu_shift_reg): Likewise.
14409         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
14410         (cortex_a9_dp_shift): Likewise.
14411         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
14412         attribute changes.
14413         * config/arm/cortex-r4.md
14414         (cortex_r4_alu): Update for attribute changes.
14415         (cortex_r4_mov): Likewise.
14416         (cortex_r4_alu_shift_reg): Likewise.
14417         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
14418         (526_alu_shift_op): Likewise.
14419         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
14420         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
14421         (626te_alu_shift_op): Likewise.
14422         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
14423         (726te_alu_shift_op): Likewise.
14424         (726te_alu_shift_reg_op): Likewise.
14425         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
14426         (mp626_alu_shift_op): Likewise.
14427         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
14428         (pj4_alu_conds): Likewise.
14429         (pj4_shift): Likewise.
14430         (pj4_shift_conds): Likewise.
14431         (pj4_alu_shift): Likewise.
14432         (pj4_alu_shift_conds): Likewise.
14433         * config/aarch64/aarch64.md: Update for attribute change
14434         all occurrences of arlo_* and shift* types.
14436 2013-09-05  Mike Stump  <mikestump@comcast.net>
14438         * tree.h: Move documentation for tree_function_decl to tree-core.h
14439         with the declaration.
14441 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
14443         PR target/58139
14444         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
14445         looking for widest mode.
14447 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
14449         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
14451 2013-09-05  Richard Biener  <rguenther@suse.de>
14453         PR tree-optimization/58137
14454         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
14455         Do not create vectors of pointers.
14456         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
14457         types for the components of the vector initializer.
14458         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
14459         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
14461 2013-09-05  Martin Jambor  <mjambor@suse.cz>
14463         * ipa-prop.c (remove_described_reference): Accept missing references,
14464         return false if that hppens, otherwise return true.
14465         (cgraph_node_for_jfunc): New function.
14466         (try_decrement_rdesc_refcount): Likewise.
14467         (try_make_edge_direct_simple_call): Use them.
14468         (ipa_edge_removal_hook): Remove references from rdescs.
14469         (ipa_edge_duplication_hook): Clone rdescs and their references
14470         when the new edge has the same caller as the old one.
14471         * cgraph.c (cgraph_resolve_speculation): Remove speculative
14472         reference before removing any edges.
14474 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
14476         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
14477         initial store.
14478         * thumb2.md (thumb2_storewb_parisi): New pattern.
14480 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
14482         * config/aarch64/aarch64-option-extensions.def: Add
14483         AARCH64_OPT_EXTENSION of 'crc'.
14484         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
14485         (AARCH64_ISA_CRC): Ditto.
14486         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
14487         description of the CRC extension.
14489 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14491         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
14492         * config/rs6000/linux.h: Ditto.
14493         * alpha/linux.h: Ditto.
14494         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
14495         no_c99_libc_has_function.
14496         * config/c6x/uclinux-elf.h: Ditto.
14497         * config/lm32/uclinux-elf.h: Ditto.
14498         * config/m68k/uclinux.h: Ditto.
14499         * config/moxie/uclinux.h: Ditto.
14500         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
14501         (crisv32-*-linux*, cris-*-linux*): Ditto.
14502         * config/bfin/bfin.c: Include "tm_p.h".
14504 2013-09-05  Richard Biener  <rguenther@suse.de>
14506         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
14507         check for a definition without a basic-block.
14509 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
14510             Sofiane Naci <sofiane.naci@arm.com>
14512         * config/aarch64/aarch64.md
14513         (*movti_aarch64): Rename r_2_f and f_2_r.
14514         (*movsf_aarch64): Likewise.
14515         (*movdf_aarch64): Likewise.
14516         (*movtf_aarch64): Likewise.
14517         (aarch64_movdi_<mode>low): Likewise.
14518         (aarch64_movdi_<mode>high): Likewise.
14519         (aarch64_mov<mode>high_di): Likewise.
14520         (aarch64_mov<mode>low_di): Likewise.
14521         (aarch64_movtilow_tilow): Likewise.
14522         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
14523         values to config/arm/types.md
14524         (attribute "conds"): Update for attribute change.
14525         (anddi3_insn): Likewise.
14526         (iordi3_insn): Likewise.
14527         (xordi3_insn): Likewise.
14528         (one_cmpldi2): Likewise.
14529         * config/arm/types.md (type): Add Neon types.
14530         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
14531         use "type" attribute.
14532         (movmisalign<mode>_neon_store): Likewise.
14533         (movmisalign<mode>_neon_load): Likewise.
14534         (vec_set<mode>_internal): Likewise.
14535         (vec_setv2di_internal): Likewise.
14536         (vec_extract<mode>): Likewise.
14537         (vec_extractv2di): Likewise.
14538         (add<mode>3_neon): Likewise.
14539         (adddi3_neon): Likewise.
14540         (sub<mode>3_neon): Likewise.
14541         (subdi3_neon): Likewise.
14542         (mul<mode>3_neon): Likewise.
14543         (mul<mode>3add<mode>_neon): Likewise.
14544         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
14545         (fma<VCVTF:mode>4)): Likewise.
14546         (fma<VCVTF:mode>4_intrinsic): Likewise.
14547         (fmsub<VCVTF:mode>4)): Likewise.
14548         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
14549         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
14550         (ior<mode>3): Likewise.
14551         (and<mode>3): Likewise.
14552         (anddi3_neon): Likewise.
14553         (orn<mode>3_neon): Likewise.
14554         (orndi3_neon): Likewise.
14555         (bic<mode>3_neon): Likewise.
14556         (bicdi3_neon): Likewise.
14557         (xor<mode>3): Likewise.
14558         (one_cmpl<mode>2): Likewise.
14559         (abs<mode>2): Likewise.
14560         (neg<mode>2): Likewise.
14561         (umin<mode>3_neon): Likewise.
14562         (umax<mode>3_neon): Likewise.
14563         (smin<mode>3_neon): Likewise.
14564         (smax<mode>3_neon): Likewise.
14565         (vashl<mode>3): Likewise.
14566         (vashr<mode>3_imm): Likewise.
14567         (vlshr<mode>3_imm): Likewise.
14568         (ashl<mode>3_signed): Likewise.
14569         (ashl<mode>3_unsigned): Likewise.
14570         (neon_load_count): Likewise.
14571         (ashldi3_neon_noclobber): Likewise.
14572         (signed_shift_di3_neon): Likewise.
14573         (unsigned_shift_di3_neon): Likewise.
14574         (ashrdi3_neon_imm_noclobber): Likewise.
14575         (lshrdi3_neon_imm_noclobber): Likewise.
14576         (widen_ssum<mode>3): Likewise.
14577         (widen_usum<mode>3): Likewise.
14578         (quad_halves_<code>v4si): Likewise.
14579         (quad_halves_<code>v4sf): Likewise.
14580         (quad_halves_<code>v8hi): Likewise.
14581         (quad_halves_<code>v16qi): Likewise.
14582         (reduc_splus_v2di): Likewise.
14583         (neon_vpadd_internal<mode>): Likewise.
14584         (neon_vpsmin<mode>): Likewise.
14585         (neon_vpsmax<mode>): Likewise.
14586         (neon_vpumin<mode>): Likewise.
14587         (neon_vpumax<mode>): Likewise.
14588         (ss_add<mode>_neon): Likewise.
14589         (us_add<mode>_neon): Likewise.
14590         (ss_sub<mode>_neon): Likewise.
14591         (us_sub<mode>_neon): Likewise.
14592         (neon_vadd<mode>_unspec): Likewise.
14593         (neon_vaddl<mode>): Likewise.
14594         (neon_vaddw<mode>): Likewise.
14595         (neon_vhadd<mode>): Likewise.
14596         (neon_vqadd<mode>): Likewise.
14597         (neon_vaddhn<mode>): Likewise.
14598         (neon_vmul<mode>): Likewise.
14599         (neon_vmla<mode>): Likewise.
14600         (neon_vmlal<mode>): Likewise.
14601         (neon_vmls<mode>): Likewise.
14602         (neon_vmlsl<mode>): Likewise.
14603         (neon_vqdmulh<mode>): Likewise.
14604         (neon_vqdmlal<mode>): Likewise.
14605         (neon_vqdmlsl<mode>): Likewise.
14606         (neon_vmull<mode>): Likewise.
14607         (neon_vqdmull<mode>): Likewise.
14608         (neon_vsub<mode>_unspec): Likewise.
14609         (neon_vsubl<mode>): Likewise.
14610         (neon_vsubw<mode>): Likewise.
14611         (neon_vqsub<mode>): Likewise.
14612         (neon_vhsub<mode>): Likewise.
14613         (neon_vsubhn<mode>): Likewise.
14614         (neon_vceq<mode>): Likewise.
14615         (neon_vcge<mode>): Likewise.
14616         (neon_vcgeu<mode>): Likewise.
14617         (neon_vcgt<mode>): Likewise.
14618         (neon_vcgtu<mode>): Likewise.
14619         (neon_vcle<mode>): Likewise.
14620         (neon_vclt<mode>): Likewise.
14621         (neon_vcage<mode>): Likewise.
14622         (neon_vcagt<mode>): Likewise.
14623         (neon_vtst<mode>): Likewise.
14624         (neon_vabd<mode>): Likewise.
14625         (neon_vabdl<mode>): Likewise.
14626         (neon_vaba<mode>): Likewise.
14627         (neon_vabal<mode>): Likewise.
14628         (neon_vmax<mode>): Likewise.
14629         (neon_vmin<mode>): Likewise.
14630         (neon_vpaddl<mode>): Likewise.
14631         (neon_vpadal<mode>): Likewise.
14632         (neon_vpmax<mode>): Likewise.
14633         (neon_vpmin<mode>): Likewise.
14634         (neon_vrecps<mode>): Likewise.
14635         (neon_vrsqrts<mode>): Likewise.
14636         (neon_vqabs<mode>): Likewise.
14637         (neon_vqneg<mode>): Likewise.
14638         (neon_vcls<mode>): Likewise.
14639         (clz<mode>2): Likewise.
14640         (popcount<mode>2): Likewise.
14641         (neon_vrecpe): Likewise.
14642         (neon_vrsqrte): Likewise.
14643         (neon_vget_lane<mode>_sext_internal): Likewise.
14644         (neon_vget_lane<mode>_zext_internal): Likewise.
14645         (neon_vdup_n<mode>): Likewise.
14646         (neon_vdup_nv2di): Likewise.
14647         (neon_vdpu_lane<mode>_internal): Likewise.
14648         (neon_vswp<mode>): Likewise.
14649         (float<mode><V_cvtto>2): Likewise.
14650         (floatuns<mode><V_cvtto>2): Likewise.
14651         (fix_trunc<mode><V_cvtto>)2): Likewise
14652         (fixuns_trunc<mode><V_cvtto)2): Likewise.
14653         (neon_vcvt<mode>): Likewise.
14654         (neon_vcvtv4sfv4hf): Likewise.
14655         (neon_vcvtv4hfv4sf): Likewise.
14656         (neon_vcvt_n<mode>): Likewise.
14657         (neon_vmovn<mode>): Likewise.
14658         (neon_vqmovn<mode>): Likewise.
14659         (neon_vqmovun<mode>): Likewise.
14660         (neon_vmovl<mode>): Likewise.
14661         (neon_vmul_lane<mode>): Likewise.
14662         (neon_vmull_lane<mode>): Likewise.
14663         (neon_vqdmull_lane<mode>): Likewise.
14664         (neon_vqdmulh_lane<mode>): Likewise.
14665         (neon_vmla_lane<mode>): Likewise.
14666         (neon_vmlal_lane<mode>): Likewise.
14667         (neon_vqdmlal_lane<mode>): Likewise.
14668         (neon_vmls_lane<mode>): Likewise.
14669         (neon_vmlsl_lane<mode>): Likewise.
14670         (neon_vqdmlsl_lane<mode>): Likewise.
14671         (neon_vext<mode>): Likewise.
14672         (neon_vrev64<mode>): Likewise.
14673         (neon_vrev32<mode>): Likewise.
14674         (neon_vrev16<mode>): Likewise.
14675         (neon_vbsl<mode>_internal): Likewise.
14676         (neon_vshl<mode>): Likewise.
14677         (neon_vqshl<mode>): Likewise.
14678         (neon_vshr_n<mode>): Likewise.
14679         (neon_vshrn_n<mode>): Likewise.
14680         (neon_vqshrn_n<mode>): Likewise.
14681         (neon_vqshrun_n<mode>): Likewise.
14682         (neon_vshl_n<mode>): Likewise.
14683         (neon_vqshl_n<mode>): Likewise.
14684         (neon_vqshlu_n<mode>): Likewise.
14685         (neon_vshll_n<mode>): Likewise.
14686         (neon_vsra_n<mode>): Likewise.
14687         (neon_vsri_n<mode>): Likewise.
14688         (neon_vsli_n<mode>): Likewise.
14689         (neon_vtbl1v8qi): Likewise.
14690         (neon_vtbl2v8qi): Likewise.
14691         (neon_vtbl3v8qi): Likewise.
14692         (neon_vtbl4v8qi): Likewise.
14693         (neon_vtbx1v8qi): Likewise.
14694         (neon_vtbx2v8qi): Likewise.
14695         (neon_vtbx3v8qi): Likewise.
14696         (neon_vtbx4v8qi): Likewise.
14697         (neon_vtrn<mode>_internal): Likewise.
14698         (neon_vzip<mode>_internal): Likewise.
14699         (neon_vuzp<mode>_internal): Likewise.
14700         (neon_vld1<mode>): Likewise.
14701         (neon_vld1_lane<mode>): Likewise.
14702         (neon_vld1_dup<mode>): Likewise.
14703         (neon_vld1_dupv2di): Likewise.
14704         (neon_vst1<mode>): Likewise.
14705         (neon_vst1_lane<mode>): Likewise.
14706         (neon_vld2<mode>): Likewise.
14707         (neon_vld2_lane<mode>): Likewise.
14708         (neon_vld2_dup<mode>): Likewise.
14709         (neon_vst2<mode>): Likewise.
14710         (neon_vst2_lane<mode>): Likewise.
14711         (neon_vld3<mode>): Likewise.
14712         (neon_vld3qa<mode>): Likewise.
14713         (neon_vld3qb<mode>): Likewise.
14714         (neon_vld3_lane<mode>): Likewise.
14715         (neon_vld3_dup<mode>): Likewise.
14716         (neon_vst3<mode>): Likewise.
14717         (neon_vst3qa<mode>): Likewise.
14718         (neon_vst3qb<mode>): Likewise.
14719         (neon_vst3_lane<mode>): Likewise.
14720         (neon_vld4<mode>): Likewise.
14721         (neon_vld4qa<mode>): Likewise.
14722         (neon_vld4qb<mode>): Likewise.
14723         (neon_vld4_lane<mode>): Likewise.
14724         (neon_vld4_dup<mode>): Likewise.
14725         (neon_vst4<mode>): Likewise.
14726         (neon_vst4qa<mode>): Likewise.
14727         (neon_vst4qb<mode>): Likewise.
14728         (neon_vst4_lane<mode>): Likewise.
14729         (neon_vec_unpack<US>_lo_<mode>): Likewise.
14730         (neon_vec_unpack<US>_hi_<mode>): Likewise.
14731         (neon_vec_<US>mult_lo_<mode>): Likewise.
14732         (neon_vec_<US>mult_hi_<mode>): Likewise.
14733         (neon_vec_<US>shiftl_<mode>): Likewise.
14734         (neon_unpack<US>_<mode>): Likewise.
14735         (neon_vec_<US>mult_<mode>): Likewise.
14736         (vec_pack_trunc_<mode>): Likewise.
14737         (neon_vec_pack_trunk_<mode>): Likewise.
14738         (neon_vabd<mode>_2): Likewise.
14739         (neon_vabd<mode>_3): Likewise.
14740         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
14741         (thumb2_movsi_vfp): Likewise.
14742         (movdi_vfp): Likewise.
14743         (movdi_vfp_cortexa8): Likewise.
14744         (movhf_vfp_neon): Likewise.
14745         (movhf_vfp): Likewiwse.
14746         (movsf_vfp): Likewiwse.
14747         (thumb2_movsf_vfp): Likewiwse.
14748         (movdf_vfp): Likewise.
14749         (thumb2_movdf_vfp): Likewise.
14750         (movsfcc_vfp): Likewise.
14751         (thumb2_movsfcc_vfp): Likewise.
14752         (movdfcc_vfp): Likewise.
14753         (thumb2_movdfcc_vfp): Likewise.
14754         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
14755         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
14756         (v10_v2c): Likewise.
14757         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
14758         attribute change.
14759         (cortex_a15_neon_int_2): Likewise.
14760         (cortex_a15_neon_int_3): Likewise.
14761         (cortex_a15_neon_int_4): Likewise.
14762         (cortex_a15_neon_int_5): Likewise.
14763         (cortex_a15_neon_vqneg_vqabs): Likewise.
14764         (cortex_a15_neon_vmov): Likewise.
14765         (cortex_a15_neon_vaba): Likewise.
14766         (cortex_a15_neon_vaba_qqq): Likewise.
14767         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14768         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14769         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
14770         scalar_64_32_long_scalar): Likewise.
14771         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14772         (cortex_a15_neon_mla_qqq_8_16): Likewise.
14773         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14774         lotype_qdd_64_32_long): Likewise.
14775         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14776         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14777         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
14778         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14779         (cortex_a15_neon_shift_1): Likewise.
14780         (cortex_a15_neon_shift_2): Likewise.
14781         (cortex_a15_neon_shift_3): Likewise.
14782         (cortex_a15_neon_vshl_ddd): Likewise.
14783         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14784         (cortex_a15_neon_vsra_vrsra): Likewise.
14785         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
14786         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
14787         (cortex_a15_neon_fp_vmul_ddd): Likewise.
14788         (cortex_a15_neon_fp_vmul_qqd): Likewise.
14789         (cortex_a15_neon_fp_vmla_ddd): Likewise.
14790         (cortex_a15_neon_fp_vmla_qqq): Likewise.
14791         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
14792         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
14793         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14794         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14795         (cortex_a15_neon_bp_simple): Likewise.
14796         (cortex_a15_neon_bp_2cycle): Likewise.
14797         (cortex_a15_neon_bp_3cycle): Likewise.
14798         (cortex_a15_neon_vld1_1_2_regs): Likewise.
14799         (cortex_a15_neon_vld1_3_4_regs): Likewise.
14800         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14801         (cortex_a15_neon_vld2_4_regs): Likewise.
14802         (cortex_a15_neon_vld3_vld4): Likewise.
14803         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14804         (cortex_a15_neon_vst1_3_4_regs): Likewise.
14805         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
14806         (cortex_a15_neon_vst3_vst4): Likewise.
14807         (cortex_a15_neon_vld1_vld2_lane): Likewise.
14808         (cortex_a15_neon_vld3_vld4_lane" 10
14809         (cortex_a15_neon_vst1_vst2_lane): Likewise.
14810         (cortex_a15_neon_vst3_vst4_lane): Likewise.
14811         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
14812         (cortex_a15_neon_ldm_2): Likewise.0
14813         (cortex_a15_neon_stm_2): Likewise.
14814         (cortex_a15_neon_mcr): Likewise.
14815         (cortex_a15_neon_mcr_2_mcrr): Likewise.
14816         (cortex_a15_neon_mrc): Likewise.
14817         (cortex_a15_neon_mrrc): Likewise.
14818         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
14819         change.
14820         (cortex_a15_alu_shift): Likewise.
14821         (cortex_a15_alu_shift_reg): Likewise.
14822         (cortex_a15_mult32): Likewise.
14823         (cortex_a15_mult64): Likewise.
14824         (cortex_a15_block): Likewise.
14825         (cortex_a15_branch): Likewise.
14826         (cortex_a15_load1): Likewise.
14827         (cortex_a15_load3): Likewise.
14828         (cortex_a15_store1): Likewise.
14829         (cortex_a15_store3): Likewise.
14830         (cortex_a15_call): Likewise.
14831         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
14832         (cortex_a5_f2r): Likewise.
14833         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
14834         change.
14835         (cortex_a53_f2r): Likewise.
14836         * config/arm/cortex-a7.md
14837         (cortex_a7_branch): Update for attribute change.
14838         (cortex_a7_call): Likewise.
14839         (cortex_a7_alu_imm): Likewise.
14840         (cortex_a7_alu_reg): Likewise.
14841         (cortex_a7_alu_shift): Likewise.
14842         (cortex_a7_mul): Likewise.
14843         (cortex_a7_load1): Likewise.
14844         (cortex_a7_store1): Likewise.
14845         (cortex_a7_load2): Likewise.
14846         (cortex_a7_store2): Likewise.
14847         (cortex_a7_load3): Likewise.
14848         (cortex_a7_store3): Likewise.
14849         (cortex_a7_load4): Likewise.
14850         (cortex_a7_store4): Likewise.
14851         (cortex_a7_fpalu): Likewise.
14852         (cortex_a7_fconst): Likewise.
14853         (cortex_a7_fpmuls): Likewise.
14854         (cortex_a7_neon_mul): Likewise.
14855         (cortex_a7_fpmacs): Likewise.
14856         (cortex_a7_neon_mla: Likewise.
14857         (cortex_a7_fpmuld: Likewise.
14858         (cortex_a7_fpmacd: Likewise.
14859         (cortex_a7_fpfmad: Likewise.
14860         (cortex_a7_fdivs: Likewise.
14861         (cortex_a7_fdivd: Likewise.
14862         (cortex_a7_r2f: Likewise.
14863         (cortex_a7_f2r: Likewise.
14864         (cortex_a7_f_flags: Likewise.
14865         (cortex_a7_f_loads: Likewise.
14866         (cortex_a7_f_loadd: Likewise.
14867         (cortex_a7_f_stores: Likewise.
14868         (cortex_a7_f_stored: Likewise.
14869         (cortex_a7_neon): Likewise.
14870         * config/arm/cortex-a8-neon.md
14871         (cortex_a8_neon_mrc): Update for attribute change.
14872         (cortex_a8_neon_mrrc): Likewise.
14873         (cortex_a8_neon_int_1): Likewise.
14874         (cortex_a8_neon_int_2): Likewise.
14875         (cortex_a8_neon_int_3): Likewise.
14876         (cortex_a8_neon_int_4): Likewise.
14877         (cortex_a8_neon_int_5): Likewise.
14878         (cortex_a8_neon_vqneg_vqabs): Likewise.
14879         (cortex_a8_neon_vmov): Likewise.
14880         (cortex_a8_neon_vaba): Likewise.
14881         (cortex_a8_neon_vaba_qqq): Likewise.
14882         (cortex_a8_neon_vsma): Likewise.
14883         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14884         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14885         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
14886         long_scalar): Likewise.
14887         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14888         (cortex_a8_neon_mla_qqq_8_16): Likewise.
14889         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14890         long_scalar_qdd_64_32_long): Likewise.
14891         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14892         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14893         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
14894         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14895         (cortex_a8_neon_shift_1): Likewise.
14896         (cortex_a8_neon_shift_2): Likewise.
14897         (cortex_a8_neon_shift_3): Likewise.
14898         (cortex_a8_neon_vshl_ddd): Likewise.
14899         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14900         (cortex_a8_neon_vsra_vrsra): Likewise.
14901         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
14902         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
14903         (cortex_a8_neon_fp_vsum): Likewise.
14904         (cortex_a8_neon_fp_vmul_ddd): Likewise.
14905         (cortex_a8_neon_fp_vmul_qqd): Likewise.
14906         (cortex_a8_neon_fp_vmla_ddd): Likewise.
14907         (cortex_a8_neon_fp_vmla_qqq): Likewise.
14908         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
14909         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
14910         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14911         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14912         (cortex_a8_neon_bp_simple): Likewise.
14913         (cortex_a8_neon_bp_2cycle): Likewise.
14914         (cortex_a8_neon_bp_3cycle): Likewise.
14915         (cortex_a8_neon_ldr): Likewise.
14916         (cortex_a8_neon_str): Likewise.
14917         (cortex_a8_neon_vld1_1_2_regs): Likewise.
14918         (cortex_a8_neon_vld1_3_4_regs): Likewise.
14919         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14920         (cortex_a8_neon_vld2_4_regs): Likewise.
14921         (cortex_a8_neon_vld3_vld4): Likewise.
14922         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14923         (cortex_a8_neon_vst1_3_4_regs): Likewise.
14924         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
14925         (cortex_a8_neon_vst3_vst4): Likewise.
14926         (cortex_a8_neon_vld1_vld2_lane): Likewise.
14927         (cortex_a8_neon_vld3_vld4_lane): Likewise.
14928         (cortex_a8_neon_vst1_vst2_lane): Likewise.
14929         (cortex_a8_neon_vst3_vst4_lane): Likewise.
14930         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
14931         (cortex_a8_neon_mcr): Likewise.
14932         (cortex_a8_neon_mcr_2_mcrr): Likewise.
14933         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
14934         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
14935         change.
14936         (ca9_neon_mrrc): Likewise.
14937         (cortex_a9_neon_int_1): Likewise.
14938         (cortex_a9_neon_int_2): Likewise.
14939         (cortex_a9_neon_int_3): Likewise.
14940         (cortex_a9_neon_int_4): Likewise.
14941         (cortex_a9_neon_int_5): Likewise.
14942         (cortex_a9_neon_vqneg_vqabs): Likewise.
14943         (cortex_a9_neon_vmov): Likewise.
14944         (cortex_a9_neon_vaba): Likewise.
14945         (cortex_a9_neon_vaba_qqq): Likewise.
14946         (cortex_a9_neon_vsma): Likewise.
14947         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14948         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14949         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
14950         long_scalar): Likewise.
14951         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14952         (cortex_a9_neon_mla_qqq_8_16): Likewise.
14953         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14954         long_scalar_qdd_64_32_long): Likewise.
14955         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14956         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14957         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
14958         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14959         (cortex_a9_neon_shift_1): Likewise.
14960         (cortex_a9_neon_shift_2): Likewise.
14961         (cortex_a9_neon_shift_3): Likewise.
14962         (cortex_a9_neon_vshl_ddd): Likewise.
14963         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14964         (cortex_a9_neon_vsra_vrsra): Likewise.
14965         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
14966         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
14967         (cortex_a9_neon_fp_vsum): Likewise.
14968         (cortex_a9_neon_fp_vmul_ddd): Likewise.
14969         (cortex_a9_neon_fp_vmul_qqd): Likewise.
14970         (cortex_a9_neon_fp_vmla_ddd): Likewise.
14971         (cortex_a9_neon_fp_vmla_qqq): Likewise.
14972         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
14973         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
14974         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14975         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14976         (cortex_a9_neon_bp_simple): Likewise.
14977         (cortex_a9_neon_bp_2cycle): Likewise.
14978         (cortex_a9_neon_bp_3cycle): Likewise.
14979         (cortex_a9_neon_ldr): Likewise.
14980         (cortex_a9_neon_str): Likewise.
14981         (cortex_a9_neon_vld1_1_2_regs): Likewise.
14982         (cortex_a9_neon_vld1_3_4_regs): Likewise.
14983         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14984         (cortex_a9_neon_vld2_4_regs): Likewise.
14985         (cortex_a9_neon_vld3_vld4): Likewise.
14986         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14987         (cortex_a9_neon_vst1_3_4_regs): Likewise.
14988         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
14989         (cortex_a9_neon_vst3_vst4): Likewise.
14990         (cortex_a9_neon_vld1_vld2_lane): Likewise.
14991         (cortex_a9_neon_vld3_vld4_lane): Likewise.
14992         (cortex_a9_neon_vst1_vst2_lane): Likewise.
14993         (cortex_a9_neon_vst3_vst4_lane): Likewise.
14994         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
14995         (cortex_a9_neon_mcr): Likewise.
14996         (cortex_a9_neon_mcr_2_mcrr): Likewise.
14997         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
14998         (cortex_a9_fps): Likewise.
14999         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
15000         change.
15001         (cortex_m4_fmuls): Likewise.
15002         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
15003         change.
15004         (cortex_r4_mrc): Likewise.
15005         * config/arm/iterators.md: Update comment referring to neon_type.
15006         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
15007         (iwmmxt_movsi_insn): Likewise.
15008         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
15009         attribute change.
15010         (pj4_core_to_vfp): Likewise.
15011         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
15012         attribute change.
15013         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
15014         (vfp_fstore): Likewise.
15015         * doc/md.texi: Change references to neon_type to refer to type.
15017 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
15019         * tree.h (DECL_BUILT_IN): Fix typo in comment.
15021 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
15023         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
15024         lglobl if not weak.
15026 2013-09-04  Easwaran Raman  <eraman@google.com>
15028         PR middle-end/57370
15029         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
15030         (build_and_add_sum): Use it.
15031         (appears_later_in_bb): Simplify code.
15033 2013-09-04  Teresa Johnson  <tejohnson@google.com>
15035         * dumpfile.c (dump_finish): Don't close stderr/stdout.
15037 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
15039         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
15041 2013-09-04  Jan Hubicka  <jh@suse.cz>
15043         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
15044         * ipa-devirt.c: Include diganostic.h
15045         (odr_type_d): Add types and types_set.
15046         (hash_type_name): Work for types with vtables during LTO.
15047         (odr_hasher::remove): Fix comment; destroy types_set.
15048         (add_type_duplicate): New function,
15049         (get_odr_type): Use it.
15050         (dump_type_inheritance_graph): Dump type duplicates.
15051         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
15052         graph.
15053         * tree.c (types_same_for_odr): Give exact answers on types with
15054         virtual tables.
15056 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
15058         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
15059         explaining their differences.
15061 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
15063         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
15065 2013-09-03  Jeff Law  <law@redhat.com>
15067         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
15068         when not threading through a joiner block.  Pass joiner/no joiner
15069         state to register_jump_thread.
15070         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
15071         state from argument rather than implying on path length.
15072         Dump the entire jump thread path into debugging dump.
15073         * tree-flow.h (register_jump_thread): Update prototype.
15075 2013-08-29  Xinliang David Li  <davidxl@google.com>
15077         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15078         Remove a trivial gcc_assert.
15080 2013-08-29  Xinliang David Li  <davidxl@google.com>
15082         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
15083         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
15084         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15085         Delay base decl alignment adjustment.
15086         * tree-vectorizer.c (vect_destroy_datarefs): New function.
15087         * tree-vectorizer.h: New data structure.
15088         (set_dr_misalignment): New function.
15089         (dr_misalignment): Ditto.
15090         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
15091         (vectorizable_load): Ditto.
15092         (ensure_base_align): New function.
15093         (vectorize_loops): Add dbg_cnt support.
15094         (execute_vect_slp): Ditto.
15095         * dbgcnt.def: New debug counter.
15096         * Makefile: New dependency.
15098 2013-09-03  Meador Inge  <meadori@codesourcery.com>
15100         Revert:
15102         2013-08-30  Meador Inge  <meadori@codesourcery.com>
15104         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15106 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
15108         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
15109         function descriptor.
15111 2013-09-03  Richard Biener  <rguenther@suse.de>
15113         * tree-affine.c (add_elt_to_tree): Fix association issue,
15114         avoid useless converts and make sure to always return a
15115         properly typed result.
15117 2013-09-03  Richard Biener  <rguenther@suse.de>
15119         PR middle-end/57656
15120         * fold-const.c (negate_expr_p): Fix division case.
15121         (negate_expr): Likewise.
15123 2013-09-03  Richard Biener  <rguenther@suse.de>
15125         PR lto/58285
15126         * tree-streamer-out.c: Include tm.h.
15127         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
15129 2013-09-03  Jan Hubicka  <jh@suse.cz>
15131         * tree-profile.c (tree_profiling): Cleanup CFG when done.
15133 2013-09-03  Alan Modra  <amodra@gmail.com>
15135         * config.gcc (powerpc*-*-linux*): Add support for little-endian
15136         multilibs to big-endian target and vice versa.
15137         * config/rs6000/t-linux64: Use := assignment on all vars.
15138         (MULTILIB_EXTRA_OPTS): Remove fPIC.
15139         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
15140         * config/rs6000/t-linux64le: New file.
15141         * config/rs6000/t-linux64bele: New file.
15142         * config/rs6000/t-linux64lebe: New file.
15144 2013-09-02  Jan Hubicka  <jh@suse.cz>
15146         * ipa-inline-transform.c (inline_transform): Do not
15147         optimize_inline_calls when not optimizing.
15149 2013-09-02  Jan Hubicka  <jh@suse.cz>
15151         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
15152         duplicated nodes for assembler names.
15153         * symtab.c (symtab_unregister_node): Do not attempt to unlink
15154         hard registers from assembler name hash.
15156 2013-09-02  Jan Hubicka  <jh@suse.cz>
15158         * ipa-split.c (execute_split_functions): Split externally visible
15159         functions called once.
15161 2013-09-02  Martin Jambor  <mjambor@suse.cz>
15163         PR ipa/58106
15164         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
15165         linked list.  When finding the correct duplicate, also consider also
15166         the caller in additon to its inlined_to node.
15168 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
15170         * config/aarch64/aarch64-simd-builtins.def
15171         (dup_lane_scalar): Remove.
15172         * config/aarch64/aarch64-simd.md
15173         (aarch64_simd_dup): Add 'w->w' alternative.
15174         (aarch64_dup_lane<mode>): Allow for VALL.
15175         (aarch64_dup_lane_scalar<mode>): Remove.
15176         (aarch64_dup_lane_<vswap_width_name><mode>): New.
15177         (aarch64_get_lane_signed<mode>): Add w->w altenative.
15178         (aarch64_get_lane_unsigned<mode>): Likewise.
15179         (aarch64_get_lane<mode>): Likewise.
15180         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
15181         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
15182         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
15183         (VCON): Change container of V2SF.
15184         (vswap_width_name): Likewise.
15185         * config/aarch64/arm_neon.h
15186         (__aarch64_vdup_lane_any): New.
15187         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15188         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
15189         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15191 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
15193         PR middle-end/56382
15194         * expr.c (emit_move_complex): Do not move complex FP values as parts if
15195         the source or the destination is a single hard register.
15197 2013-09-02  Richard Biener  <rguenther@suse.de>
15199         PR middle-end/57511
15200         * tree-scalar-evolution.c (instantiate_scev_name): Allow
15201         non-linear SCEVs.
15203 2013-09-02  Richard Biener  <rguenther@suse.de>
15205         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
15206         arithmetic to sizetype.
15208 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
15210         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
15211         Find auto-increment use both before and after candidate.
15213 2013-09-02  Marek Polacek  <polacek@redhat.com>
15215         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
15217 2013-09-01  Jan Hubicka  <jh@suse.cz>
15219         * Makefile.in: Add ipa-profile.o
15220         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
15221         * cgraph.c (struct cgraph_propagate_frequency_data,
15222         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
15223         ipa-profile.c; replace cgraph_ by ipa_ prefix.
15224         * cgraph.h (cgraph_propagate_frequency): Remove.
15225         * ipa-inline-analysis.c: Include ipa-utils.h;
15226         drop duplicated cfgloop.h.
15227         (inline_update_callee_summaries): Update.
15228         * ipa-profile.c: New file.
15229         * ipa-utils.h (ipa_propagate_frequency): Declare.
15230         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
15231         data-streamer.h, value-prof.h.
15232         (symtab_remove_unreachable_nodes): Update profile.
15233         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
15234         account_time_size, cmp_counts, dump_histogram,
15235         ipa_profile_generate_summary, ipa_profile_write_summary,
15236         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
15237         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
15238         Move to ipa-profile.c.
15240 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
15242         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
15244 2013-09-01  Jan Hubicka  <jh@suse.cz>
15246         * common.opt (fdevirtualize-speculatively): New function.
15247         * invoke.texi (fdevirtualize-speculatively): Document.
15248         * ipa-devirt.c: Include ipa-inline.h
15249         (likely_target_p): New function.
15250         (ipa_devirt): New function.
15251         (gate_ipa_devirt): New function.
15252         (pass_data_ipa_devirt): New static var.
15253         (pass_ipa_devirt): Likewise.
15254         (make_pass_ipa_devirt): New function.
15255         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
15256         (common_handle_option): Disable devirtualization when
15257         value range profiling is available.
15258         * passes.def (pass_ipa_devirt): Add.
15259         * timever.def (TV_IPA_DEVIRT): New timevar.
15260         * tree-pass.h (make_pass_ipa_devirt):
15262 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
15264         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
15265         include sanitize(undefined).
15267 2013-08-31  Diego Novillo  <dnovillo@google.com>
15269         * Makefile.in (TREE_CORE_H): Define.
15270         (TREE_H): Use.
15271         (GTFILES): Add tree-core.h.
15272         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
15273         size the array.
15274         * tree-core.h: New file.
15275         Move all data structures, enum, typedefs, global
15276         declarations and constants from ...
15277         * tree.h: ... here.
15279 2013-08-31  Jan Hubicka  <jh@suse.cz>
15281         * bulitins.c (expand_builtin): Do not early exit for gcov
15282         instrumented functions.
15284 2013-08-31  Marek Polacek  <polacek@redhat.com>
15286         * ubsan.c: Include tm_p.h.
15288 2013-08-31  Jan Hubicka  <jh@suse.cz>
15290         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
15291         warning.
15293         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
15294         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
15295         * tree-cfg.c (verify_gimple_label): ... here.
15296         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
15297         (ipa_merge_profiles): New function.
15298         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
15299         (lto_input_function_body): Likewise.
15300         * ipa-utils.h (ipa_merge_profiles): Declare.
15301         * lto-streamer.h (lto_input_function_body): Update prototype.
15302         (emit_label_in_global_context_p): Remove.
15303         * lto-symtab.c: Include ipa-utils.h
15304         (lto_cgraph_replace_node): Use ipa_merge_profiles.
15306 2013-08-31  Jan Hubicka  <jh@suse.cz>
15308         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
15310 2013-08-31  Jan Hubicka  <jh@suse.cz>
15312         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
15314 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
15316         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
15317         "cmp" RTX before signed_comparison_operator check to account
15318         for "code" changes.
15320 2013-08-30  Jan Hubicka  <jh@suse.cz>
15322         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
15323         (detect_type_change_1): Rename to ...
15324         (detect_type_change): ... this one; early return on non-polymorphic
15325         types.
15326         (detect_type_change_ssa): Add comp_type parameter; update
15327         use of detect_type_change.
15328         (compute_complex_assign_jump_func): Add param_type parameter;
15329         update use of detect_type_change_ssa.
15330         (compute_complex_ancestor_jump_func): Likewise.
15331         (ipa_get_callee_param_type): New function.
15332         (ipa_compute_jump_functions_for_edge): Compute parameter type;
15333         update calls to the jump function computation functions.
15335 2013-08-30  Teresa Johnson  <tejohnson@google.com>
15336             Steven Bosscher  <steven@gcc.gnu.org>
15338         * cfgrtl.c (fixup_new_cold_bb): New routine.
15339         (commit_edge_insertions): Invoke fixup_partitions.
15340         (find_partition_fixes): New routine.
15341         (fixup_partitions): Ditto.
15342         (verify_hot_cold_block_grouping): Update comments.
15343         (rtl_verify_edges): Invoke find_partition_fixes.
15344         (rtl_verify_bb_pointers): Update comments.
15345         (rtl_verify_bb_layout): Ditto.
15346         * basic-block.h (probably_never_executed_edge_p): Declare.
15347         (fixup_partitions): Ditto.
15348         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
15349         * bb-reorder.c (sanitize_hot_paths): New function.
15350         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
15351         sanitize_hot_paths.
15352         * predict.c (probably_never_executed_edge_p): New routine.
15353         * cfg.c (check_bb_profile): Add partition insanity warnings.
15355 2013-08-30  Meador Inge  <meadori@codesourcery.com>
15357         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15359 2013-08-30  Marek Polacek  <polacek@redhat.com>
15361         * Makefile.in (ubsan.o): Add.
15362         (c-family/c-ubsan.o): Add.
15363         (builtins.o): Add ubsan.h dependency.
15364         * ubsan.h: New file.
15365         * ubsan.c: New file.
15366         * common.opt: Add -fsanitize=undefined option.
15367         (flag_sanitize): Add variable.
15368         (fsanitize=): Add option.  Add Driver.
15369         (fsanitize=thread): Remove option.
15370         (fsanitize=address): Likewise.
15371         (static-libubsan): New option.
15372         * doc/invoke.texi: Document the new flag and -static-libubsan.
15373         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
15374         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
15375         * builtin-attrs.def (ATTR_COLD): Define.
15376         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15377         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
15378         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
15379         * flag-types.h (sanitize_code): New enum.
15380         * opts.c (common_handle_option): Parse command line arguments
15381         of -fsanitize=.  Add -fsanitize=unreachable option.
15382         * varasm.c (get_variable_section): Adjust.
15383         (assemble_noswitch_variable): Likewise.
15384         (assemble_variable): Likewise.
15385         (output_constant_def_contents): Likewise.
15386         (categorize_decl_for_section): Likewise.
15387         (place_block_symbol): Likewise.
15388         (output_object_block): Likewise.
15389         * builtins.def: Likewise.
15390         * toplev.c (compile_file): Likewise.
15391         (process_options): Likewise.
15392         * cppbuiltin.c: Likewise.
15393         * tsan.c (tsan_pass): Likewise.
15394         (tsan_gate): Likewise.
15395         (tsan_gate_O0): Likewise.
15396         * cfgexpand.c (partition_stack_vars): Likewise.
15397         (expand_stack_vars): Likewise.
15398         (defer_stack_allocation): Likewise.
15399         (expand_used_vars): Likewise.
15400         * cfgcleanup.c (old_insns_match_p): Likewise.
15401         * asan.c (asan_finish_file): Likewise.
15402         (asan_instrument): Likewise.
15403         (gate_asan): Likewise.
15404         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
15405         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15406         (asan_global_struct): Use pointer_sized_int_node instead
15407         calling build_nonstandard_integer_type.
15408         (initialize_sanitizer_builtins): Likewise.
15409         (asan_finish_file): Likewise.
15410         * gcc.c: Document %{%:function(args):X}.
15411         (static_spec_functions): Add sanitize.
15412         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
15413         store funcval != NULL there.
15414         (do_spec_1): Adjust handle_spec_function caller.
15415         (handle_braces): Allow %:function(args) as condition.
15416         (sanitize_spec_function): New function.
15417         (ADD_STATIC_LIBUBSAN_LIBS): Define.
15418         (LIBUBSAN_SPEC): Likewise.
15419         (LIBUBSAN_EARLY_SPEC): Likewise.
15420         (SANITIZER_SPEC): Handle libubsan.
15421         (SANITIZER_EARLY_SPEC): Likewise.
15422         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
15423         instead of fsanitize=address.
15424         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
15425         instead of fsanitize=address*.
15426         * builtins.c: Include ubsan.h.
15427         (fold_builtin_0): Instrument __builtin_unreachable.
15428         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
15429         instead of flag_asan.
15430         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
15431         (pointer_sized_int_node): Define.
15432         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
15434 2013-08-30  Mike Stump  <mikestump@comcast.net>
15436         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
15437         with RE patterns.
15439 2013-08-29  Jan Hubicka  <jh@suse.cz>
15441         * cgraph.c (cgraph_function_body_availability): Handle weakref
15442         correctly.
15443         * passes.def: Remove pass_fixup_cfg.
15444         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
15445         track when we need to remove functions.
15446         (gate_ipa_inline): Execute inlining always; add comment why.
15447         (pass_data_ipa_inline): Remove TODO_remove_functions.
15448         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
15449         do not produce summaries.
15450         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
15451         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
15452         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
15453         constant pool and vtable.
15455 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
15457         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
15458         New arm_neon.h's internal macros to specify 64-bit constants.
15459         Avoid using stdint.h's macros.
15461 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
15463         * recog.c (verify_changes): Verify that changes[i].old is non-zero
15464         before applying REG_P.
15466 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
15468         PR tree-optimization/58277
15469         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
15470         after seeing too many stmts with vdef in between dombb and current
15471         bb, invalidate everything.
15473 2013-08-30  Richard Biener  <rguenther@suse.de>
15475         * fold-const.c (fold_single_bit_test): Fix overflow test.
15477 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
15479         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
15480         and which can live in a register, always retrieve the value on entry.
15481         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
15482         passed by invisible reference specially.
15483         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
15484         (vt_add_function_parameter): Correctly deal with a parameter passed by
15485         invisible reference.
15487 2013-08-30  Jan Hubicka  <jh@suse.cz>
15489         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
15491 2013-08-30  Richard Biener  <rguenther@suse.de>
15493         PR tree-optimization/58228
15494         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
15495         allow invariant loads in nested loop vectorization.
15497 2013-08-30  Richard Biener  <rguenther@suse.de>
15499         PR tree-optimization/58223
15500         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
15501         (has_anti_or_output_dependence): ... this and adjust to also
15502         look for output dependences.
15503         (mark_nodes_having_upstream_mem_writes): Adjust.
15504         (rdg_flag_uses): Likewise.
15506 2013-08-30  Richard Biener  <rguenther@suse.de>
15508         PR tree-optimization/58010
15509         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15510         assert that we have a loop-closed PHI.
15512 2013-08-29  Jan Hubicka  <jh@suse.cz>
15514         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
15515         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
15516         * lto-section-in.c (lto_free_function_in_decl_state): New function.
15517         (lto_free_function_in_decl_state_for_node): New function.
15519 2013-08-29  Xinliang David Li  <davidxl@google.com>
15521         * loop-unroll.c (report_unroll_peel): Minor message change.
15522         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
15523         Emit alignment peeling message with default -fopt-info.
15524         (vect_loop_versioning): Emit loop version info message.
15525         * tree-vectorizer.c (vectorize_loops): Minor message change.
15526         (execute_vect_slp): Ditto.
15528 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
15530         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
15531         of the clone from the DECL_NAME of the original function.
15533 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
15535         * passes.c (register_pass): Add overload.
15536         * tree-pass.h (register_pass): Forward declare it.  Add comment.
15538 2013-08-29  Jan Hubicka  <jh@suse.cz>
15540         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
15541         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
15542         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
15543         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
15544         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
15545         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
15546         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
15547         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
15549 2013-08-29  Teresa Johnson  <tejohnson@google.com>
15551         * dumpfile.c (dump_loc): Output column number.
15552         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
15553         * doc/invoke.texi: Document optall -fopt-info flag.
15554         * profile.c (read_profile_edge_counts): Use new dump framework.
15555         (compute_branch_probabilities): Ditto.
15556         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
15557         when pass not in any opt group.
15558         * pass_manager.h (pass_manager::get_pass_profile): New method.
15559         * value-prof.c (check_counter): Use new dump framework.
15560         (check_ic_target): Ditto.
15561         * coverage.c (get_coverage_counts): Ditto.
15562         (coverage_init): Setup new dump framework.
15564 2013-08-29  Richard Biener  <rguenther@suse.de>
15566         PR tree-optimization/58246
15567         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
15568         handle the dominance check inside a basic-block.
15570 2013-08-29  Richard Biener  <rguenther@suse.de>
15572         PR middle-end/57287
15573         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
15574         of default defs that appear in abnormal PHI nodes.
15576 2013-08-29  Richard Biener  <rguenther@suse.de>
15578         PR tree-optimization/57685
15579         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
15580         single-use operands to avoid exponential complexity.
15582 2013-08-28  Dehao Chen  <dehao@google.com>
15584         * ipa-inline.c (edge_badness): Fix integer underflow.
15586 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
15588         * gtm-builtins.def (_ITM_free): Declare leaf.
15590 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
15592         PR target/58067
15593         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
15594         (*tls_local_dynamic_base_64_largepic): Likewise.
15595         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
15596         Remove predicate from call operand.
15597         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
15598         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
15600 2013-08-28  Jeff Law  <law@redhat.com>
15602         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
15603         checks for the number of predecessors and successors allowed.
15604         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
15605         which require copying a joiner block if there is a request which
15606         is a subpath that requires no joiner block copying.
15608 2013-08-28  Jan Hubicka  <jh@suse.cz>
15610         * lto-streamer-out.c (DFS_write_tree_body): Drop
15611         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
15612         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
15613         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
15614         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
15615         Do not read DECL_ERROR_ISSUED.
15616         (unpack_ts_decl_with_vis_value_fields): Do not read
15617         DECL_DEFER_OUTPUT.
15618         (lto_input_ts_binfo_tree_pointers): Do not read
15619         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
15620         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
15621         write DECL_ERROR_ISSUED..
15622         (pack_ts_decl_with_vis_value_fields): Do not write
15623         DECL_DEFER_OUTPUT.
15624         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
15625         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
15626         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
15627         * tree.h (tree_decl_common): Update comment.
15628         (DECL_ERROR_ISSUED): Remove.
15630 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
15632         PR middle-end/58257
15633         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
15635 2013-08-28  Jan Hubicka  <jh@suse.cz>
15637         * builtins.def (free): Declare leaf.
15639 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
15641         * gdbhooks.py: New.
15642         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
15643         * configure: Regenerate.
15645 2013-08-27  Martin Jambor  <mjambor@suse.cz>
15647         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
15648         (ipa_ancestor_jf_data): Likewise.
15649         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
15650         (ipa_get_jf_pass_through_type_preserved): New function.
15651         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
15652         (ipa_get_jf_ancestor_type_preserved): New function.
15653         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
15654         (ipa_get_jf_ancestor_result): Likewise.
15655         (propagate_vals_accross_pass_through): Use
15656         ipa_get_jf_pass_through_result to do all the value mappings.
15657         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
15658         type_preserved flag.
15659         (ipa_set_jf_cst_copy): New function.
15660         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
15661         (ipa_set_jf_arith_pass_through): Likewise.
15662         (ipa_set_ancestor_jf): Likewise.
15663         (compute_complex_assign_jump_func): Set type_preserved instead of
15664         punting.
15665         (ipa_compute_jump_functions_for_edge): Likewise.
15666         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
15667         (update_jump_functions_after_inlining): Update type_preserved.
15668         Explicitely create jump functions when combining one with pass_through.
15669         (ipa_write_jump_function): Stream the type_preserved flags.
15670         (ipa_read_jump_function): Likewise.
15672 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
15673             Aldy Hernandez  <aldyh@redhat.com>
15675         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
15676         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
15677         * function.h (struct function): Add has_force_vect_loops and
15678         has_simduid_loops.
15679         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
15680         * gimple.c (gimple_build_omp_critical): Add KIND argument and
15681         handle it.
15682         * gimple.def: Update CLAUSES comments.
15683         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
15684         (gimple_build_omp_for): Add argument to prototype.
15685         (gimple_omp_for_kind): New.
15686         (gimple_omp_for_set_kind): New.
15687         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
15688         GOVD_DATA_SHARE_CLASS.
15689         (enum omp_region_type): Add ORT_SIMD.
15690         (gimple_add_tmp_var): Handle ORT_SIMD.
15691         (gimplify_var_or_parm_decl): Same.
15692         (is_gimple_stmt): Same.
15693         (omp_firstprivatize_variable): Same.
15694         (omp_add_variable): Only use splay_tree_insert if lookup failed.
15695         (omp_notice_variable): Handle ORT_SIMD.
15696         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
15697         (omp_check_private): Handle ORT_SIMD.
15698         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
15699         OMP_CLAUSE_SAFELEN.
15700         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
15701         Handle OMP_CLAUSE_LASTPRIVATE.
15702         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
15703         OMP_CLAUSE_SAFELEN.
15704         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
15705         (gimplify_expr): Handle OMP_SIMD.
15706         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
15707         (expand_GOMP_SIMD_VF): New.
15708         (expand_GOMP_SIMD_LAST_LANE): New.
15709         * internal-fn.def (GOMP_SIMD_LANE): New.
15710         (GOMP_SIMD_VF): New.
15711         (GOMP_SIMD_LAST_LANE): New.
15712         * omp-low.c: Include target.h.
15713         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
15714         OMP_CLAUSE_SAFELEN.
15715         (check_omp_nesting_restrictions): Same.
15716         (omp_max_vf): New.
15717         (lower_rec_simd_input_clauses): New.
15718         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
15719         OMP_CLAUSE_LINEAR.
15720         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
15721         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
15722         (expand_omp_build_assign): New.
15723         (expand_omp_for_init_counts): New.
15724         (expand_omp_for_init_vars): New.
15725         (extract_omp_for_update_vars): New.
15726         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
15727         and rewrite accordingly.
15728         (expand_omp_simd): New.
15729         (expand_omp_for): Use expand_omp_simd.
15730         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
15731         (lower_omp_for): Do not lower the body.
15732         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
15733         in their own loops.
15734         * tree-flow.h (find_omp_clause): Remove prototype.
15735         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
15736         forcing vectorization of the loop, or if flag_tree_vectorize.
15737         (gate_tree_if_conversion): Similarly.
15738         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
15739         gimple_build_omp_for.
15740         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
15741         * tree-parloops (create_parallel_loop): Pass kind argument to
15742         gimple_build_omp_for.
15743         * tree-pretty-print.c (dump_omp_clause): Add cases for
15744         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
15745         OMP_CLAUSE__SIMDUID_.
15746         (dump_generic_node): Handle OMP_SIMD.
15747         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
15748         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
15749         unroll OMP_SIMD loops here.
15750         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
15751         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
15752         loop->safelen.
15753         (vect_analyze_data_refs): Handle simd loops.
15754         * tree-vect-loop.c (vectorizable_live_operation): Handle
15755         IFN_GOMP_SIMD*.
15756         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
15757         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
15758         (vectorizable_load): Same.
15759         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
15760         (struct simduid_to_vf): New.
15761         (simduid_to_vf::hash): New.
15762         (simduid_to-vf::equal): New.
15763         (struct simd_array_to_simduid): New.
15764         (simd_array_to_simduid::hash): New.
15765         (simd_array_to_simduid::equal): New.
15766         (adjust_simduid_builtins): New.
15767         (struct note_simd_array_uses_struct): New.
15768         (note_simd_array_uses_cb): New.
15769         (note_simd_array_uses): New.
15770         (vectorize_loops): Handle simd hints and adjust simd builtins
15771         accordingly.
15772         * tree-vectorizer.h (struct _stmt_vec_info): Add
15773         simd_lane_access_p field.
15774         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
15775         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
15776         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
15777         (omp_clause_code_name): Same.
15778         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
15779         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
15780         * tree.def (OMP_SIMD): New entry.
15781         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
15782         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
15783         (OMP_CLAUSE_DECL): Adjust range for new clauses.
15784         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
15785         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
15786         (OMP_CLAUSE_LINEAR_STEP): New.
15787         (OMP_CLAUSE_SAFELEN_EXPR): New.
15788         (OMP_CLAUSE__SIMDUID__DECL): New.
15789         (find_omp_clause): New prototype.
15791 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
15793         * config/i386/driver-i386.c (host_detect_local_cpu): Update
15794         Haswell processor detection.
15796 2013-08-27  Christian Widmer  <shadow@umbrox.de>
15798         PR target/57927
15799         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
15800         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
15801         AVX2 capable processors.
15803 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
15805         * config/aarch64/arm_neon.h: Replace all inline asm implementations
15806         of vget_low_* with implementations in terms of other intrinsics.
15808 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
15810         PR middle-end/57219
15811         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
15812         values to -1, 0 and 1.
15814 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
15816         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
15817         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
15818         (<optab><mode>3_insn): Remove.
15819         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
15820         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15821         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15822         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
15823         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
15824         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
15825         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
15826         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
15827         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
15828         (ror<mode>3_insn): Likewise.
15829         * config/aarch64/predicates.md (aarch64_simd_register): New.
15831 2013-08-27  Richard Biener  <rguenther@suse.de>
15833         PR tree-optimization/57521
15834         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
15835         one edge is non-critical.
15836         (find_phi_replacement_condition): Make sure to use a non-critical
15837         edge.  Cleanup and remove old bug workarounds.
15838         (bb_postdominates_preds): Remove.
15839         (if_convertible_loop_p_1): Do not compute post-dominators.
15840         (combine_blocks): Do not free post-dominators.
15841         (main_tree_if_conversion): Likewise.
15842         (pass_data_if_conversion): Add TODO_verify_ssa.
15844 2013-08-27  DJ Delorie  <dj@redhat.com>
15846         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
15848 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
15850         * function.c (assign_parm_find_data_types): Set passed_mode and
15851         nominal_mode to the TYPE_MODE of nominal_type for the built
15852         pointer type in case of the struct-pass-by-reference.
15854 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
15856         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
15857         (UINT16_TYPE): Change default to "unsigned int".
15859         * config/avr/avr.opt (mfract-convert-truncate): New option.
15860         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
15861         is set, round negative fractional integers according to n1169
15862         when converting to integer types.
15864 2013-08-26  Jan Hubicka  <jh@suse.cz>
15866         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
15867         methods can not be called indirectly when their address is not taken.
15869 2013-08-26  Jan Hubicka  <jh@suse.cz>
15871         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
15872         ctor_for_folding.
15874 2013-08-26  Jan Hubicka  <jh@suse.cz>
15876         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
15877         can be unshared.
15879 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
15881         * reload.c (find_valid_class): Allow classes that do not include
15882         FIRST_PSEUDO_REGISTER - 1.
15884 2013-08-26  Jan Hubicka  <jh@suse.cz>
15886         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
15887         fix edge count/frequency when speculation failed; fix type check
15888         for the direct call.
15890 2013-08-26  Jan Hubicka  <jh@suse.cz>
15892         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
15894 2013-08-26  Jan Hubicka  <jh@suse.cz>
15896         * ipa-inline-transform.c (inline_transform): Be ready for basic block
15897         to be changed by edge redirection.
15899 2013-08-26  Jan Hubicka  <jh@suse.cz>
15901         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
15902         formating; add sanity check.
15903         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
15904         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
15905         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
15906         (resolve_noninline_speculation): Update callee keys, too.
15908 2013-08-26  Jan Hubicka  <jh@suse.cz>
15910         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
15911         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
15913 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
15915         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
15916         into proper place.
15918 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
15920         * config/i386/i386.c (ix86_debug_options): Remove prototype.
15921         (x86_64_elf_select_section): Ditto.
15922         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
15923         arguments.
15924         (ix86_pass_by_reference): Ditto.
15925         (output_set_got): Ditto.
15926         (ix86_unary_operator_ok): Ditto.
15927         (ix86_expand_builtin): Ditto.
15929 2013-08-23  Jan Hubicka  <jh@suse.cz>
15931         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
15933 2013-08-23  Jan Hubicka  <jh@suse.cz>
15935         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
15936         (tree_decl_with_vis): Add FINAL field.
15938 2013-08-23  Jeff Law  <law@redhat.com>
15940         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
15941         the debugging dump when the expression is fully redundant.
15943 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15945         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
15946         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
15947         * pretty-print.c (pp_formatted_text_data): Likewise.
15948         (pp_write_text_to_stream): Likewise.
15949         (pp_write_text_as_dot_label_to_stream): Likewise.
15950         (pp_append_r): Likewise.
15951         (pp_format): Likewise.
15952         (pp_flush): Likewise.
15953         (pp_clear_output_area): Likewise.
15954         (pp_append_text): Likewise.
15955         (pp_formatted_text): Likewise.
15956         (pp_remaining_character_count_for_line): Likewise.
15957         (pp_newline): Likewise.
15958         (pp_character): Likewise.
15959         (output_buffer::~output_buffer): Define.
15960         (pretty_printer::~pretty_printer): Destruct output buffer.
15961         * pretty-print.h (output_buffer::~output_buffer): Declare.
15962         (pretty_printer::~pretty_printer): Declare virtual.
15964 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
15966         PR other/57324
15967         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
15968         HOST_WIDE_INT_M1U): New macros.
15969         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
15970         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
15971         unsigned -1 for lshift.
15972         * cse.c (cse_insn): Likewise.
15973         * double-int.c (rshift_double, lshift_double): Likewise.
15974         * builtins.c (fold_builtin_bitop): Likewise.
15975         * combine.c (force_to_mode): Likewise.
15976         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
15977         * simplify-rtx.c (simplify_const_unary_operation,
15978         simplify_const_binary_operation): Likewise.
15979         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
15980         check_va_list_escapes): Likewise.
15981         * rtlanal.c (nonzero_bits1): Likewise.
15982         * expmed.c (expand_smod_pow2): Likewise.
15983         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
15985 2013-08-23  Jan Hubicka  <jh@suse.cz>
15987         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
15988         as having address taken.
15990 2013-08-23  Jan Hubicka  <jh@suse.cz>
15992         * ipa-utils.h (method_class_type): Declare.
15993         * ipa-devirt.c (method_class_type): Export.
15995         * cgraphunit.c (analyze_functions): Do basic devirtualization;
15996         do not walk base classes of anonymous types.
15998 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
16000         PR rtl-optimization/58220
16001         PR regression/58221
16002         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
16003         handle SEQUENCE insns properly.
16005 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16007         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
16008         definition.
16009         (pp_newline_and_indent): Likewise.
16010         (pp_separate_with): Likewise.
16011         * pretty-print.c (pp_newline_and_flush): Define.
16012         (pp_newline_and_indent): Likewise.
16013         (pp_separate_with): Likewise.
16015 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
16017         PR target/58218
16018         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
16019         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
16021 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
16023         * config/i386/predicates.md (ext_sse_reg_operand): New.
16024         * config/i386/i386.md (*movti_internal): Use
16025         predicate to determine if EVEX is needed.
16026         (*movsi_internal): Ditto.
16027         (*movdf_internal): Ditto.
16028         (*movsf_internal): Ditto.
16029         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
16031 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
16033         PR tree-optimization/58209
16034         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
16035         (find_tail_calls): Give up for pointer result types if m is non-NULL.
16036         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
16037         emit POINTER_PLUS_EXPR.
16038         (create_tailcall_accumulator): For pointer result type accumulate in
16039         sizetype type.
16041 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
16043         * configure.ac: Add backslashes missing from the last change.
16044         * configure: Regenerate.
16046 2013-08-22  Jan Hubicka  <jh@susue.cz>
16048         * ipa.c (function_and_variable_visibility): First remember function
16049         was global and then make it local.
16051 2013-08-22  Julian Brown  <julian@codesourcery.com>
16053         * configure.ac: Add aarch64 to list of arches which use "nop" in
16054         debug_line test.
16055         * configure: Regenerate.
16057 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16059         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
16060         gnu_libc_has_function.
16061         * config/s390/tpf.h: Likewise.
16063 2013-08-22  Jan Hubicka  <jh@susue.cz>
16065         * timevar.c (validate_phases): Add cast.
16067 2013-08-22  Jan Hubicka  <jh@susue.cz>
16069         * timevar.c (validate_phases): Use size_t for memory.
16070         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
16072 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16074         * pretty-print.h (output_buffer::output_buffer): Declare.
16075         (pretty_printer::pretty_printer): Likewise.
16076         (pp_construct): Remove.
16077         * pretty-print.c (output_buffer::output_buffer): Define.
16078         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
16079         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
16080         (print_gimple_expr): Likewise.
16081         (print_gimple_seq): Likewise.
16082         (gimple_dump_bb): Likewise.
16083         * sched-vis.c (dump_value_slim): Likewise.
16084         (dump_insn_slim): Likewise.
16085         (dump_rtl_slim): Likewise.
16086         (str_pattern_slim): Likewise.
16087         * tree-mudflap.c (mf_varname_tree): Likewise.
16088         * graph.c (print_graph_cfg): Likewise.
16089         (start_graph_dump): Likewise.
16090         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
16091         placement-new.
16092         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
16093         pretty printer initialization.
16094         * coretypes.h (diagnostic_context): Remove superflous type alias
16095         declaration.
16096         (pretty_printer): Likewise.  Declare directly as a class.
16097         (pretty_print_info): Remove declaration as class.
16098         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
16099         and pp_clear_output_area.
16100         (asan_add_global): Likewise.
16102 2013-08-22  Jan Hubicka  <jh@suse.cz>
16104         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
16105         * ipa-utils.h (update_type_inheritance_graph): Declare.
16106         (possible_polymorphic_call_target_p): Declare.
16107         (possible_polymorphic_call_target_p): New.
16108         * ipa-devirt.c: Update toplevel comments.
16109         (cached_polymorphic_call_targets): Move up.
16110         (odr_type_d): Move ID down.
16111         (polymorphic_type_binfo_p): Update comment.
16112         (odr_hasher::remove): Likewise;
16113         (get_odr_type): Set anonymous_namespace.
16114         (dump_odr_type): Dump it.
16115         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
16116         (maybe_record_node): Record node in cached_polymorphic_call_targets.
16117         (record_binfo): Add comment.
16118         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
16119         built.
16120         (devirt_node_removal_hook): Do not iCE when cache is freed.
16121         (possible_polymorphic_call_target_p): New predicate.
16122         (update_type_inheritance_graph): New function.
16124 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16125             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16126             Sergey Lega  <sergey.s.lega@intel.com>
16127             Anna Tikhonova  <anna.tikhonova@intel.com>
16128             Ilya Tocar  <ilya.tocar@intel.com>
16129             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16130             Ilya Verbin  <ilya.verbin@intel.com>
16131             Kirill Yukhin  <kirill.yukhin@intel.com>
16132             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16134         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
16135         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
16136         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
16137         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
16138         (OPTION_MASK_ISA_AVX2_UNSET): Update.
16139         (OPTION_MASK_ISA_AVX512F_UNSET): New.
16140         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
16141         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
16142         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
16143         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
16144         OPT_mavx512pf, OPT_mavx512er cases.
16145         * config/i386/constraints.md (v): New constraint.
16146         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
16147         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
16148         (bit_AVX512CD): New.
16149         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16150         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
16151         * config/i386/i386-c.c (ix86_target_macros_internal):
16152         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
16153         __AVX512PF__.
16154         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
16155         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
16156         * config/i386/i386.c (regclass_map, dbx_register_map)
16157         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
16158         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
16159         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
16160         -mavx512pf options.
16161         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
16162         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
16163         -mavx512pf options.  Fix formatting.
16164         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
16165         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
16166         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
16167         -mavx512cd, -mavx512pf options.
16168         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
16169         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
16170         (ix86_preferred_output_reload_class): Replace SSE_REGS with
16171         ALL_SSE_REGS.
16172         (ix86_hard_regno_mode_ok): Support 512-bit registers.
16173         (ix86_set_reg_reg_cost): Ditto.
16174         (x86_order_regs_for_local_alloc): Ditto.
16175         (MAX_VECT_LEN): Extend to 64-byte.
16176         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
16177         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
16178         (TARGET_AVX512ER, TARGET_AVX512CD): New.
16179         (BIGGEST_ALIGNMENT): Extend to 512-bits.
16180         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
16181         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
16182         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
16183         (SSE_REG_MODE_P): Support new modes.
16184         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
16185         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
16186         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
16187         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
16188         (REG_CLASS_CONTENTS): Add new registers.
16189         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
16190         (EXT_REX_SSE_REGNO_P): New.
16191         (HI_REGISTER_NAMES): Add new registers.
16192         * config/i386/i386.md: Define constants for new registers.
16193         (mode): Add new 512-bit modes.
16194         (prefix): Support evex prefix.
16195         (isa): Support avx512f, noavx512f, fma_avx512f.
16196         (ssemodesuffix): Add new 512-bit modes.
16197         (movxi): New.
16198         (*movxi_internal_avx512f): Ditto.
16199         (*movdi_internal): Replace constraint "x" with the new constraint "v".
16200         Support MODE_XI.
16201         (*movsi_internal): Likewise.
16202         (*movdf_internal): Likewise.
16203         (*movsf_internal): Likewise.
16204         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
16205         (<code><mode>3): Likewise.
16206         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
16207         New.
16208         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
16209         with the new constraint "v".
16210         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
16211         modes.
16212         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
16213         with the new constraint "v".
16214         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
16215         (<sse2>_storedqu<avxsizesuffix>): Likewise.
16216         (*<plusminus_insn><mode>3): Likewise.
16217         (<sse>_vm<plusminus_insn><mode>3): Likewise.
16218         (*mul<mode>3): Likewise.
16219         (<sse>_vmmul<mode>3): Likewise.
16220         (<sse>_div<mode>3): Likewise.
16221         (<sse>_vmdiv<mode>3): Likewise.
16222         (<sse>_sqrt<mode>2): Likewise.
16223         (<sse>_vmsqrt<mode>2): Likewise.
16224         (*<code><mode>3_finite): Likewise.
16225         (*<code><mode>3) <smaxmin>: Likewise.
16226         (<sse>_vm<code><mode>3): Likewise.
16227         (*<code><mode>3) <any_logic>: Likewise.
16228         (*fma_fmadd_<mode>): Likewise.
16229         (*fma_fmsub_<mode>): Likewise.
16230         (*fma_fnmadd_<mode>): Likewise.
16231         (*fma_fnmsub_<mode>): Likewise.
16232         (*fma_fmaddsub_<mode>): Likewise.
16233         (*fma_fmsubadd_<mode>): Likewise.
16234         (*fmai_fmadd_<mode>): Likewise.
16235         (*fmai_fmsub_<mode>): Likewise.
16236         (*fmai_fnmadd_<mode>): Likewise.
16237         (*fmai_fnmsub_<mode>): Likewise.
16238         (sse_cvtsi2ss): Likewise.
16239         (sse_cvtsi2ssq): Likewise.
16240         (sse_cvtss2si): Likewise.
16241         (sse_cvtss2si_2): Likewise.
16242         (sse_cvtss2siq): Likewise.
16243         (sse_cvtss2siq_2): Likewise.
16244         (sse_cvttss2si): Likewise.
16245         (sse_cvtss2siq_2): Likewise.
16246         (float<sseintvecmodelower><mode>2): Likewise.
16247         (sse2_cvtsd2si_2): Likewise.
16248         (sse2_cvtsd2siq_2): Likewise.
16249         (*<plusminus_insn><mode>3): Likewise.
16250         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
16251         (*<sse4_1_avx2>_mul<mode>3): Likewise.
16252         (ashr<mode>3): Likewise.
16253         (<shift_insn><mode>3): Likewise.
16254         (avx2_<code><mode>3): Likewise.
16255         (*avx2_<code><mode>3): Likewise.
16256         (*andnot<mode>3): Likewise.
16257         (*<code><mode>3) <any_logic>: Likewise.
16258         (abs<mode>2): Likewise.
16259         (avx2_permvar<mode>): Likewise.
16260         (avx2_perm<mode>_1): Likewise.
16261         (*avx_vpermilp<mode>): Likewise.
16262         (avx_vpermilvar<mode>3): Likewise.
16263         (avx2_ashrv<mode>): Likewise.
16264         (avx2_<shift_insn>v<mode>): Likewise.
16265         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
16266         -mavx512cd.
16267         * doc/rtl.texi: Document XImode.
16269 2013-08-21  Jeff Law  <law@redhat.com>
16271         * tree-flow.h (register_jump_thread): Pass vector of edges
16272         instead of each important edge.
16273         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
16274         thread path into a vector and pass that to register_jump_thread.
16275         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
16276         passed in edge vector to the current 3-edge form.
16278         Revert:
16279         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
16281         * dce.c (fini_dce): Call df_analyze again just in case
16282         delete_unmarked_insns removed anything.
16284 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
16286         * reload.h (struct reg_equivs): Rename to ..
16287         (struct reg_equivs_s): .. this.
16289 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
16291         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
16293 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16295         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
16297 2013-08-21  Jeff Law  <law@redhat.com>
16299         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
16300         simplify assignments too.  If the RHS collapses to a singleton
16301         range, then return the value for the range.
16303 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
16305         * config/i386/sse.md (V16): Rename to...
16306         (VMOVE): this.
16307         (mov<mode>): Update iterator name.
16308         (*mov<mode>_internal): Ditto.
16309         (push<mode>1): Ditto.
16310         (movmisalign<mode>): Ditto.
16312 2013-08-20  Jan Hubicka  <jh@suse.cz>
16314         PR bootstrap/58186
16315         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
16316         entry for direct edges.
16317         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
16319 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16321         Revert my last two changes, r201865 and r201864:
16323         Revert r201865:
16324         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16326         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16327         instances can own GC refs.
16329         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16330         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16331         (gcc::context::gt_pch_nx): Likewise.
16332         (gcc::context::gt_pch_nx):  Likewise.
16333         * ggc.h (gt_ggc_mx <T>): New.
16334         (gt_pch_nx_with_op <T>): New.
16335         (gt_pch_nx <T>): New.
16336         * passes.c (opt_pass::gt_ggc_mx): New.
16337         (opt_pass::gt_pch_nx): New.
16338         (opt_pass::gt_pch_nx_with_op): New.
16339         (pass_manager::gt_ggc_mx): New.
16340         (pass_manager::gt_pch_nx): New.
16341         (pass_manager::gt_pch_nx_with_op): New.
16342         (pass_manager::operator new): Use
16343         ggc_internal_cleared_alloc_stat rather than xcalloc.
16344         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16345         (pass_manager::gt_ggc_mx): New.
16346         (pass_manager::gt_pch_nx): New.
16347         (pass_manager::gt_pch_nx_with_op): New.
16348         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16349         (opt_pass::operator new): New.
16350         (opt_pass::gt_ggc_mx): New.
16351         (opt_pass::gt_pch_nx): New.
16352         (opt_pass::gt_pch_nx_with_op): New.
16354         Revert r201864:
16355         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16357         * Makefile.in (GTFILES): Add context.h.
16358         * context.c (gcc::context::operator new): New.
16359         (gcc::context::gt_ggc_mx): New.
16360         (gcc::context::gt_pch_nx): New.
16361         (gcc::context::gt_pch_nx): New.
16362         * context.h (gcc::context): Add GTY((user)) marking.
16363         (gcc::context::operator new): New.
16364         (gcc::context::gt_ggc_mx): New.
16365         (gcc::context::gt_pch_nx): New.
16366         (gcc::context::gt_pch_nx): New.
16367         (g): Add GTY marking.
16368         (gt_ggc_mx (gcc::context *)): New.
16369         (gt_pch_nx (gcc::context *)): New.
16370         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16371         void *cookie)): New.
16372         * gengtype.c (open_base_files) <ifiles>: Add context.h.
16374 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
16376         * dce.c (fini_dce): Call df_analyze again just in case
16377         delete_unmarked_insns removed anything.
16379 2013-08-20  Teresa Johnson  <tejohnson@google.com>
16381         PR rtl-optimizations/57451
16382         * final.c (reemit_insn_block_notes): Prevent lexical blocks
16383         from crossing split section boundaries.
16385 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
16387         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
16388         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
16389         with MULTLIB_DEFAULTS.
16391 2013-08-20  Nick Clifton  <nickc@redhat.com>
16393         * target.def (narrow_volatile_bitfield): Note that the default
16394         value is false, not !TARGET_STRICT_ALIGN.
16395         * doc/tm.texi: Regenerate.
16397 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
16399         Fix LIB_SPEC for systems without libpthread.
16401         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
16402         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
16403         for Android.
16404         * config/i386/linux-common.h: Likewise.
16405         * config/mips/linux-common.h: Likewise.
16407 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16409         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
16410         checks.
16412 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16414         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16415         instances can own GC refs.
16417         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16418         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16419         (gcc::context::gt_pch_nx): Likewise.
16420         (gcc::context::gt_pch_nx):  Likewise.
16421         * ggc.h (gt_ggc_mx <T>): New.
16422         (gt_pch_nx_with_op <T>): New.
16423         (gt_pch_nx <T>): New.
16424         * passes.c (opt_pass::gt_ggc_mx): New.
16425         (opt_pass::gt_pch_nx): New.
16426         (opt_pass::gt_pch_nx_with_op): New.
16427         (pass_manager::gt_ggc_mx): New.
16428         (pass_manager::gt_pch_nx): New.
16429         (pass_manager::gt_pch_nx_with_op): New.
16430         (pass_manager::operator new): Use
16431         ggc_internal_cleared_alloc_stat rather than xcalloc.
16432         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16433         (pass_manager::gt_ggc_mx): New.
16434         (pass_manager::gt_pch_nx): New.
16435         (pass_manager::gt_pch_nx_with_op): New.
16436         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16437         (opt_pass::operator new): New.
16438         (opt_pass::gt_ggc_mx): New.
16439         (opt_pass::gt_pch_nx): New.
16440         (opt_pass::gt_pch_nx_with_op): New.
16442 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
16444         * Makefile.in (GTFILES): Add context.h.
16445         * context.c (gcc::context::operator new): New.
16446         (gcc::context::gt_ggc_mx): New.
16447         (gcc::context::gt_pch_nx): New.
16448         (gcc::context::gt_pch_nx): New.
16449         * context.h (gcc::context): Add GTY((user)) marking.
16450         (gcc::context::operator new): New.
16451         (gcc::context::gt_ggc_mx): New.
16452         (gcc::context::gt_pch_nx): New.
16453         (gcc::context::gt_pch_nx): New.
16454         (g): Add GTY marking.
16455         (gt_ggc_mx (gcc::context *)): New.
16456         (gt_pch_nx (gcc::context *)): New.
16457         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16458         void *cookie)): New.
16459         * gengtype.c (open_base_files) <ifiles>: Add context.h.
16461 2013-08-20  Alan Modra  <amodra@gmail.com>
16463         PR target/57865
16464         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
16465         (rs6000_emit_epilogue): Likewise.
16467 2013-08-19  Dehao Chen  <dehao@google.com>
16469         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
16471 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
16472             Jakub Jelinek  <jakub@redhat.com>
16474         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
16475         (BUILT_IN_FABSD64): Likewise.
16476         (BUILT_IN_FABSD128): Likewise.
16477         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
16478         (fold_builtin_1): Likewise.
16479         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
16480         destination and source operands.
16481         (*abstd2_fpr): Likewise.
16482         (*nabstd2_fpr): Likewise.
16484 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
16486         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
16487         JUMP_P and INSN_P.
16489 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
16491         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
16492         incomplete.
16494 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16496         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
16497         * builtins.c (default_libc_has_function): New.
16498         (gnu_libc_has_function): Ditto.
16499         (no_c99_libc_has_function): Ditto.
16500         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
16501         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
16502         (fold_builtin_sincos): Likewise.
16503         (fold_builtin_cexp): Likewise.
16504         * builtins.def (DEF_C94_BUILTIN): Likewise.
16505         (DEF_C99_BUILTIN): Likewise.
16506         (DEF_C99_C90RES_BUILTIN): Likewise.
16507         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
16508         definitions to using this define.
16509         * config/darwin-protos.h (darwin_libc_has_function): New.
16510         * config/darwin.c (darwin_libc_has_function): Ditto.
16511         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
16512         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
16513         * config/darwin.h: Ditto.
16514         * config/elfos.h: Ditto.
16515         * config/freebsd.h: Ditto.
16516         * config/i386/cygming.h: Ditto.
16517         * config/i386/djgpp.h: Ditto.
16518         * config/i386/i386-interix.h: Ditto.
16519         * config/microblaze/microblaze.h: Ditto.
16520         * config/mmix/mmix.h: Ditto.
16521         * config/gnu-user.h: Ditto.
16522         * config/ia64/hpux.h: Ditto.
16523         * config/pa/pa-hpux.h: Ditto.
16524         * config/pdp11/pdp11.h: Ditto.
16525         * config/picochip/picochip.h: Ditto.
16526         * config/linux.h: Ditto.
16527         * config/netbsd.h: Ditto.
16528         * config/openbsd.h: Ditto.
16529         * config/rs6000/aix43.h: Ditto.
16530         * config/rs6000/aix51.h: Ditto.
16531         * config/rs6000/aix52.h: Ditto.
16532         * config/rs6000/aix53.h: Ditto.
16533         * config/rs6000/aix61.h: Ditto.
16534         * config/rs6000/darwin.h: Ditto.
16535         * config/rs6000/linux.h: Ditto.
16536         * config/rs6000/linux64.h: Ditto.
16537         * config/s390/tpf.h: Ditto.
16538         * config/sol2-10.h: Ditto.
16539         * config/sol2.h: Ditto.
16540         * config/vms/vms.h: Ditto.
16541         * config/vxworks.h: Ditto.
16542         * config/linux-android.c (linux_android_libc_has_function):
16543         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
16544         * config/linux-protos.h (linux_android_libc_has_function):
16545         New declaration.
16546         * config/i386/i386.c (ix86_libc_has_function): New.
16547         * config/i386/i386-protos.h
16548         (ix86_libc_has_function): New declaration.
16549         * config/i386/i386.md
16550         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
16551         ("isinf<mode>2): Likewise.
16552         * convert.c (convert_to_integer): Using new target hook
16553         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
16554         TARGET_C99_FUNCTIONS.
16555         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
16556         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
16557         * coretypes.h (function_class): New enum for different
16558         classes of functions.
16559         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
16560         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
16561         (TARGET_HAS_SINCOS): Likewise.
16562         (TARGET_LIBC_HAS_FUNCTION): New.
16563         * doc/tm.texi: Regenerated.
16564         * targhooks.h (default_libc_has_function): New declaration.
16565         (no_c99_libc_has_function): Ditto.
16566         (gnu_libc_has_function): Ditto.
16567         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
16568         and TARGET_HAS_SINCOS.
16570 2013-08-18  Jan Hubicka  <jh@suse.cz>
16572         * Makeifle-in (ipa-devirt.o): New.
16573         (GTFILES): Add ipa-utils.h and ipa-devirt.c
16574         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
16575         (analyze_functions): Look into possible targets of polymorphic call.
16576         * dumpfile.c (dump_files): Add type-inheritance dump.
16577         * dumpfile.h (TDI_inheritance): New.
16578         * ipa-devirt.c: New file.
16579         * ipa-utils.h (odr_type_d): Forward declare.
16580         (odr_type): New type.
16581         (build_type_inheritance_graph): Declare.
16582         (possible_polymorphic_call_targets): Declare and introduce inline
16583         variant when only edge is pased.
16584         (dump_possible_polymorphic_call_targets): Likewise.
16585         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
16586         * tree.c (type_in_anonymous_namespace_p): Break out from ...
16587         (types_same_for_odr): ... here.
16588         * tree.h (type_in_anonymous_namespace_p): Declare.
16590 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
16592         PR tree-optimization/58006
16593         * tree-parloops.c (take_address_of): Don't ICE if get_name
16594         returns NULL.
16595         (eliminate_local_variables_stmt): Remove clobber stmts.
16597 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
16599         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
16600         error message is issued for an alias to undefined symbol.
16602 2013-08-18  Jan Hubicka  <jh@suse.cz>
16604         * cgraph.c (cgraph_create_indirect_edge): Discover
16605         polymorphic calls and record basic info into indirect_info.
16606         * gimple-fold.c (gimple_fold_call): When doing BINFO based
16607         devirtualization, ignore objc function calls.
16608         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
16609         call with no parm index info.
16610         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
16611         * tree.c (virtual_method_call_p): New function.
16612         * tree.h (virtual_method_call_p): Declare.
16614 2013-08-16  Jan Hubicka  <jh@suse.cz>
16616         PR middle-end/58179
16617         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
16619 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
16621         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
16622         attribute.
16624 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
16626         * gengtype.c (type_for_name): Add special-case support for
16627         locating types within the "gcc::" namespace.
16628         (open_base_files): Emit a "using namespace gcc" directive.
16630 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
16632         PR target/58160
16633         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
16634         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
16636         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
16637         array instead of each individual operand as a separate argument.
16638         (emit_fusion_gpr_load): Likewise.
16639         (expand_fusion_gpr_load): Add new function declaration.
16641         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
16642         signature to have the operands passed as an array, instead of as
16643         separate arguments.  Allow ZERO_EXTEND to be in the memory
16644         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
16645         depend on the register live/dead flags when peepholes are run.
16646         (expand_fusion_gpr_load): New function to be called from the
16647         peephole2 pass, to change the register that addis sets to be the
16648         target register.
16649         (emit_fusion_gpr_load): Change the calling signature to have the
16650         operands passed as an array, instead of as separate arguments.
16651         Allow ZERO_EXTEND to be in the memory address, and also
16652         SIGN_EXTEND if -mpower8-fusion-sign.
16654         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
16655         unspec enumeration.
16656         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
16657         adjust the register addis loads up in the peephole2 pass.  Do not
16658         depend on the register live/dead state when the peephole pass is done.
16660 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
16662         * gengtype.c (create_user_defined_type): Ensure that the kind
16663         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
16664         declaration is seen before the GTY((user)) marking.
16666 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16668         PR target/58105
16669         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
16671 2013-08-16  Jan Hubicka  <jh@suse.cz>
16673         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
16674         arugment expected_type.
16675         (gimple_fold_call): Use it.
16676         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
16677         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
16678         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
16679         (try_make_edge_direct_virtual_call): Likewise.
16680         * tree.c (obj_type_ref_class): New.
16681         * tree.h (obj_type_ref_class): Use it.
16683 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16685         * sched-vis.c (rtl_slim_pp_initialized): Remove.
16686         (rtl_slim_pp): Likewise.
16687         (init_rtl_slim_pretty_print): Likewise.
16688         (dump_value_slim):  Don't call it.  Use local pretty printer.
16689         (dump_insn_slim): Likewise.
16690         (dump_rtl_slim): Likewise.
16691         (str_pattern_slim): Likewise.
16692         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
16693         Simplify.
16695 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
16697         PR tree-optimization/58164
16698         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
16699         walk gimple_goto_dest of GIMPLE_GOTO.
16701         PR tree-optimization/58165
16702         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
16703         bi_call must be the last stmt in a bb, don't split_block, instead
16704         use fallthru edge from it and give up if there is none.
16705         Release conds vector when returning early.
16707 2013-08-14  Xinliang David Li  <davidxl@google.com>
16709         * config/i386/i386.c (ix86_option_override_internal):
16710         Remove unused variable and field.
16712 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16714         PR target/57949
16715         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
16716         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
16717         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
16718         and Linux, correct BLKmode alignment when 128-bit alignment is
16719         required and compatibility flag is not set.
16720         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
16721         for zero-size arguments when compatibility flag is not set.
16723 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
16725         PR tree-optimization/58145
16726         * tree-sra.c (build_ref_for_offset): If prev_base has
16727         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
16729 2013-08-14  Xinliang David Li  <davidxl@google.com>
16731         * config/i386/i386.c (ix86_option_override_internal):
16732         Fix uninitialized variable error.
16734 2013-08-14  Xinliang David Li  <davidxl@google.com>
16736         * config/i386/i386.opt: Define two new options.
16737         * config/i386/x86-tune.def: Add arch selector field in macros.
16738         * config/i386/i386.h: Adjust macro definition.
16739         * config/i386/i386.c (ix86_option_override_internal):
16740         Refactor the code.
16741         (parse_mtune_ctrl_str): New function.
16742         (set_ix86_tune_features): New function.
16743         (ix86_function_specific_restore): Call the new helper function.
16745 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
16747         PR rtl-optimization/57662
16748         * sel-sched.c (code_motion_process_successors): When the current insn
16749         is removed after the recursive traversal, break from the loop.
16750         Add comments and debug printouts.
16752 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
16753             Alexandre Oliva  <aoliva@redhat.com>
16755         PR target/58067
16756         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
16757         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
16758         there also UNSPEC_PLTOFF.
16760 2013-08-14  Marek Polacek  <polacek@redhat.com>
16762         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
16763         NUM_CONDITIONS bit positions.
16765 2013-08-13  Cary Coutant  <ccoutant@google.com>
16767         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
16768         (attr_checksum): Hash vector contents instead of pointer.
16769         (attr_checksum_ordered): Likewise.
16771 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
16773         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
16774         when Pmode != word_mode.  Add length_address attribute.
16775         (sse3_monitor_<mode>): Merge from sse3_monitor and
16776         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
16777         Pmode != word_mode.  Update insn length attribute.
16778         * config/i386/i386.c (ix86_option_override_internal): Update
16779         ix86_gen_monitor selection for merged sse3_monitor insn.
16781 2013-08-13  Julian Brown  <julian@codesourcery.com>
16783         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
16784         perform invalid legitimization on greater-than-word-size modes for
16785         TARGET_E500_DOUBLE.
16787 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
16789         * ira.c (setup_class_translate_array): Use aclass instead of cl
16790         for classes not fully covered by allocno classes.
16792 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
16794         PR tree-optimization/57661
16795         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
16796         * tree-inline.c (tree_function_versioning): Initialize it.
16797         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
16798         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
16799         that is not being copied.
16801         PR sanitizer/56417
16802         * asan.c (instrument_strlen_call): Fix typo in comment.
16803         Use char * type even for the lhs of POINTER_PLUS_EXPR.
16805 2013-08-13  Steve Ellcey  <sellcey@mips.com>
16807         * config/mips/mips.md (prefetch): Use lw instead of ld on
16808         loongson in 32bit mode.
16810 2013-08-13  Nick Clifton  <nickc@redhat.com>
16812         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
16814 2013-08-13  Jan Hubicka  <jh@suse.cz>
16816         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
16817         introduced edge; fix typo in sanity check.
16818         (cgraph_resolve_speculation): Export; improve diagnostic.
16819         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
16820         speculation at type mismatch.
16821         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
16822         (cgraph_resolve_speculation): Declare.
16823         (symtab_can_be_discarded): New function.
16824         * value-prof.c (gimple_ic_transform): Remove actual transform code.
16825         * ipa-inline-transform.c (speculation_removed): New global var.
16826         (clone_inlined_nodes): See if speculation can be removed.
16827         (inline_call): If speculations was removed, we growths may not match.
16828         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
16829         (speculation_useful_p): New function.
16830         (resolve_noninline_speculation): New function.
16831         (inline_small_functions): Resolve useless speculations.
16832         * ipa-inline.h (speculation_useful_p): Declare
16833         * ipa.c (can_replace_by_local_alias): Simplify.
16834         (ipa_profile): Produce speculative calls in non-lto, too;
16835         add simple cost model; produce local aliases.
16837 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
16839         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
16840         PASS_MANAGER_H.
16842 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
16844         * config/i386/i386.c (ix86_function_versions): Use error + inform.
16846 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
16848         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
16849         iterator instead of X87MODEF.
16851 2013-08-12  Perez Read  <netfirewall@gmail.com>
16853         PR target/58132
16854         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
16855         operand 0 for intel asm alternative.
16856         (*movabs<mode>_2): Ditto for operand 1.
16858 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
16860         * config/aarch64/arm_none.h
16861         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
16863 2013-08-12  Nick Clifton  <nickc@redhat.com>
16865         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
16867 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
16869         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
16870         expand for QI/HImode operand to produce more effictive code for
16871         unsigned char(short) --> float(double) conversion.
16873 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
16875         * doc/invoke.texi: Mention that -ftls-model does not force the final
16876         model.
16878 2013-08-12  Marek Polacek  <polacek@redhat.com>
16879             Marc Glisse  <marc.glisse@inria.fr>
16881         PR tree-optimization/57980
16882         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
16883         when creating -1 constant.
16885 2013-08-10  Jan Hubicka  <jh@suse.cz>
16887         Workaround binutils PR14342.
16888         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
16889         (gimple_init_edge_profiler): Likewise.
16890         (gimple_gen_ic_func_profiler): Likewise.
16892 2013-08-09  Jan Hubicka  <jh@suse.cz>
16894         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
16896 2013-08-09  Xinliang David Li  <davidxl@google.com>
16898         * config/i386/stringop.def: New file.
16899         * config/i386/stringop.opt: New file.
16900         * config/i386/i386-opts.h: Include stringopt.def.
16901         * config/i386/i386.opt: Include stringopt.opt.
16902         * config/i386/i386.c (ix86_option_override_internal):
16903         Override default size based stringop inline strategies with options.
16904         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
16905         New function.
16907 2013-08-09  Jan Hubicka  <jh@suse.cz>
16909         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
16911 2013-08-09  Jan Hubicka  <jh@suse.cz>
16913         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
16914         CGRAPH_FREQ_MAX.
16915         (dump_cgraph_node): Dump profile-id.
16916         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
16917         and common_target_probability.
16918         * lto-cgraph.c (lto_output_edge): Stream common targets.
16919         (lto_output_node): Stream profile ids.
16920         (input_node): Stream profile ids.
16921         (input_edge): Stream common targets.
16922         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
16923         * ipa.c: Include value-prof.h
16924         (ipa_profile_generate_summary): Turn indirect call statement histograms
16925         into common targets.
16926         (ipa_profile): Turn common targets into speculative edges.
16928 2013-08-09  Jan Hubicka  <jh@suse.cz>
16930         * cgraph.h (cgraph_node): Add profile_id.
16931         * value-prof.c (cgraph_node_map): Turn into pointer_map.
16932         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
16933         (del_node_map): Update.
16934         (find_func_by_funcdef_no): Replace by ...
16935         (find_func_by_profile_id): ... this one.
16936         (gimple_ic_transform): Do not remove useful histograms when
16937         speculation is not done; dump info when indirect call removal
16938         can happen at LTO.
16939         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
16940         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
16941         (__gcov_indirect_call_profiler_v2): .. this one.
16942         * profile.h (init_node_map): Update.
16943         * coverage.c (coverage_compute_profile_id): New function.
16944         * coverage.h (coverage_compute_profile_id): Declare.
16945         * tree-profile.c (init_ic_make_global_vars): Make
16946         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
16947         (gimple_init_edge_profiler): Update prototype of
16948         __gcov_indirect_call_profiler.
16949         (gimple_gen_ic_func_profiler): Simplify.
16950         (tree_profiling): Use init_node_map
16952 2013-08-09  Jan Hubicka  <jh@suse.cz>
16954         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
16955         non-speculative refs.
16956         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
16957         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
16958         (cgraph_set_call_stmt): Likewise.
16959         (cgraph_create_edge_1): Fix release checking compilatoin;
16960         clear lto_stmt_uid.
16961         (cgraph_free_edge): Free indirect info.
16962         (cgraph_turn_edge_to_speculative): New function.
16963         (cgraph_speculative_call_info): New function.
16964         (cgraph_make_edge_direct): Return direct edge; handle speculation.
16965         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
16966         (dump_cgraph_node): Dump speculation.
16967         (verify_edge_count_and_frequency): Accept speculative edges.
16968         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
16969         (verify_cgraph_node): Handle speculation.
16970         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
16971         (cgraph_set_call_stmt): Update prototype.
16972         (cgraph_make_edge_direct): Update prototype.
16973         (cgraph_speculative_call_info): Declare.
16974         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
16975         to change; update call of ipa_find_references.
16976         * ipa-ref.c (ipa_record_reference): Fix return value; clear
16977         lto_stmt_uid and speculative flags.
16978         (ipa_dump_references): Dump speculation.
16979         (ipa_clone_references): Clone speculative flag.
16980         (ipa_clone_referring): Likewise.
16981         (ipa_clone_ref): New function.
16982         (ipa_find_reference): Look into lto_stmt_uids
16983         (ipa_clear_stmts_in_references): Do not clear speculative calls.
16984         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
16985         (ipa_find_reference): Update declaration.
16986         (ipa_clone_ref): Declare.
16987         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
16988         stream speculative flag.
16989         (lto_output_ref): Stream statements uids and speculation.
16990         (input_ref): Likewise.
16991         (input_edge): Stream speuclation.
16992         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
16993         (cgraph_set_call_stmt_including_clones): Handle speculation.
16994         * ipa-inline.c (heap_edge_removal_hook): New function.
16995         (inline_small_functions): Register it.
16996         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
16997         also initialize refs.
16998         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
16999         edge to change.
17000         (try_make_edge_direct_simple_call): Likewise.
17001         (try_make_edge_direct_simple_call): Likewise.
17002         (update_indirect_edges_after_inlining): Likewise.
17003         (remove_described_reference): Look proper lto_stmt_uid.
17004         (propagate_controlled_uses): Likewise.
17005         (propagate_controlled_uses): Liekwise.
17006         * tree-inline.c (copy_bb): Copy speculative edges.
17007         (redirect_all_calls): New function.
17008         (copy_cfg_body): Do redirection after loop info is updated.
17009         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
17011 2013-08-09  Jan Hubicka  <jh@suse.cz>
17013         * lto-streamer-out.c (output_function): Renumber PHIs.
17014         * lto-streamer-in.c (input_function): Likewise.
17016 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
17018         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
17019         (get_lane_unsigned): Likewise.
17020         (dup_lane_scalar): Likewise.
17021         (get_lane): enable for VALL.
17022         * config/aarch64/aarch64-simd.md
17023         (aarch64_dup_lane_scalar<mode>): Remove.
17024         (aarch64_get_lane_signed<mode>): Likewise.
17025         (aarch64_get_lane_unsigned<mode>): Likewise.
17026         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
17027         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
17028         (aarch64_get_lane<mode>): Enable for all vector modes.
17029         (aarch64_get_lanedi): Remove misleading constraints.
17030         * config/aarch64/arm_neon.h
17031         (__aarch64_vget_lane_any): Define.
17032         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
17033         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
17034         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
17035         * config/aarch64/iterators.md (VDQQH): New.
17036         (VDQQHS): Likewise.
17037         (vwcore): Likewise.
17039 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
17041         * configure.ac: Add GAS check for LEON instructions on SPARC.
17042         * configure: Regenerate.
17043         * config.in: Likewise.
17044         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
17045         sparc*-*-* block.
17046         * config/sparc/sparc.opt (LEON, LEON3): New masks.
17047         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
17048         for LEON or LEON3.
17049         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
17050         (AS_LEON_FLAG): New macro.
17051         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
17052         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
17053         Deal with LEON and LEON3 for the memory model.
17054         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
17055         (atomic_compare_and_swap<mode>_1): Likewise.
17056         (*atomic_compare_and_swap<mode>_1): Likewise.
17058 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17060         * config/arm/neon.md (vcond): Fix floating-point vector
17061         comparisons against 0.
17063 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
17065         * lra-constraints.c (emit_spill_move): Remove assert.
17066         (process_alt_operands): Add more debugging
17067         output.  Increase reject for spilling into memory.  Decrease
17068         reject for reloading scratch.
17069         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
17071 2013-08-08  Steve Ellcey  <sellcey@mips.com>
17073         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
17074         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
17075         micromips incompatible.  Add nan2008.
17076         (MULTILIB_DIRNAMES): Add nan2008.
17077         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
17078         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
17079         and micromips incompatible.  Add nan2008.
17080         (MULTILIB_DIRNAMES): Add nan2008.
17081         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
17083 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
17085         PR rtl-optimization/58079
17086         * combine.c (combine_simplify_rtx): Avoid using SUBST if
17087         simplify_comparison has widened a comparison with an integer.
17089 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17091         * config/arm/neon.md (movmisalign<mode>): Disable when we
17092         don't allow unaligned accesses.
17093         (*movmisalign<mode>_neon_store): Likewise.
17094         (*movmisalign<mode>_neon_load): Likewise.
17095         (*movmisalign<mode>_neon_store): Likewise.
17096         (*movmisalign<mode>_neon_load): Likewise.
17098 2013-08-08  Jan Hubicka  <jh@suse.cz>
17100         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
17101         (make_pass_rebuild_cgraph_edges): Also clear references.
17102         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
17103         * ipa-inline-transform.c (inline_transform): Remove all references
17104         after inlining.
17105         * cgraphunit.c (expand_function): Remove all references after
17106         expansion.
17107         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
17108         (ipa_find_reference): Rewrite to iterator.
17109         (remove_stmt_references): Likewise.
17110         (ipa_clear_stmts_in_references): New function.
17111         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
17112         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
17113         clear references.
17114         * ipa-split.c (split_function): Remove references in split function.
17116 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
17118         PR target/57431
17119         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
17120         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
17122 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
17124         PR target/56979
17125         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
17126         suggested mode for the assignment isn't compatible with the
17127         registers required.
17129 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17131         PR target/58065
17132         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
17134 2013-08-07  Xinliang David Li  <davidxl@google.com>
17136         * config/i386/i386.opt: New option -mtune-ctrl=.
17137         * config/i386/x86-tune.def: New file.
17138         * config/i386/i386.h: include x86-tune.def.
17139         * config/i386/i386.c (ix86_option_override_internal):
17140         Parsing -mtune-ctrl= option and set tune features.
17142 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
17144         PR other/12081
17145         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
17146         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
17147         to gen_2arg_fn_t.
17149 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
17151         * rtl.h (update_alignments): Declare.
17152         * final.c (grow_label_align): New function extracted from...
17153         (shorten_branches): ...here.  Call it.
17154         (update_alignments): New function.
17155         * reorg.c (sibling_labels): New variable.
17156         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
17157         the new label along with it onto the sibling_labels vector.
17158         (fill_simple_delay_slots): Adjust call to get_label_before.
17159         (fill_slots_from_thread): Likewise.
17160         (relax_delay_slots): Likewise.
17161         (make_return_insns): Likewise.
17162         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
17164 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
17166         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
17167         document its semantics.
17168         (diagnostic_report_diagnostic): Adjust accordingly.
17170 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
17172         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
17173         (sparc_option_override): ...and port to new C++ pass API.
17174         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
17176 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
17178         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
17180 2013-08-06  Caroline Tice  <cmtice@google.com>
17182         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
17183         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
17184         * tree-pass.h: Add pass_vtable_verify.
17185         * varasm.c (assemble_variable): Add code to properly set the comdat
17186         section and name for the .vtable_map_vars section.
17187         (assemble_vtyv_preinit_initializer): New function.
17188         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
17189         LINK_ONCE flag.
17190         * output.h: Add function decl for assemble_vtv_preinit_initializer.
17191         * vtable-verify.c: New file.
17192         * vtable-verify.h: New file.
17193         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
17194         initialiation levels.
17195         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
17196         * passes.def: Insert pass_vtable_verify.
17197         * aclocal.m4: Reorder includes.
17198         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
17199         -fvtv-counts options.
17200         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
17201         as appropriate, if -fvtable-verify=... is used.
17202         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
17203         -fvtable-verify=... is used.
17204         * Makefile.in (OBJS):  Add vtable-verify.o to list.
17205         (vtable-verify.o): Add new build rule.
17206         (GTFILES): Add vtable-verify.c to list.
17207         * common.opt (fvtable-verify=): New flag.
17208         (vtv_priority): Values for fvtable-verify= flag.
17209         (fvtv-counts): New flag.
17210         (fvtv-debug): New flag.
17211         * tree.h (save_vtable_map_decl): New extern function decl.
17213 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
17215         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
17216         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
17217         (pass_data_rl78_devirt): ...new pass_data instance and...
17218         (make_pass_rl78_devirt): ...new function.
17219         (rl78_asm_file_start): Port pass registration to new C++ API.
17221 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
17223         * coretypes.h (rtl_opt_pass): Add.
17224         (gcc::context): Add.
17225         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
17226         (epiphany_init): Port to new C++ pass API.
17227         (epiphany_optimize_mode_switching): Likewise.
17228         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
17229         (pass_manager::get_pass_mode_switching): New.
17230         (pass_manager::get_pass_peephole2): New.
17231         * mode-switching.c (pass_mode_switching): Add clone method.
17232         * recog.c (pass_peephole2): Add clone method.
17233         (pass_split_all_insns): Add clone method.
17235 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
17237         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
17238         (mips_option_override): ...here, porting to new C++ API for passes.
17240 2013-08-06  Jan Hubicka  <jh@suse.cz>
17242         * cgraph.c (cgraph_get_body): New function based on lto.c
17243         implementation.
17244         * cgraph.h (cgraph_get_body): Declare.
17245         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
17246         LTO paths.
17247         * cgraphunit.c (expand_function): Get body prior expanding.
17248         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
17249         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
17250         really need.
17251         * passes.c (do_per_function_toporder): Get body.
17252         * tree-inline.c (expand_call_inline): Get body prior inlining it.
17253         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
17255 2013-08-06  Martin Jambor  <mjambor@suse.cz>
17257         PR fortran/57987
17258         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
17259         is not re-finalized.  Rename second parameter to no_collect.
17261 2013-08-06  Martin Jambor  <mjambor@suse.cz>
17263         PR middle-end/58041
17264         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
17265         MEM_REF has proper alignment information.
17267 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
17269         PR other/12081
17270         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
17271         class insn_gen_fn.
17272         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
17273         rtx (*) (rtx, ...) with insn_gen_fn.
17274         * genoutput.c (output_insn_data): Cast gen_? function pointers to
17275         insn_gen_fn::stored_funcptr.  Add initializer braces.
17277 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
17279         Rewrite how instances of passes are cloned to remove assumptions
17280         about their sizes (thus allowing pass subclasses to have
17281         additional data fields, albeit non-GC-managed ones at this point).
17283         * passes.c (make_pass_instance): Now that passes have clone
17284         methods, rewrite this function to eliminate XNEW and memcpy
17285         calls that used hardcoded sizes.  Since this function no longer
17286         creates pass instances, rename it to...
17287         (add_pass_instance): ...this.  Document the old way that passes were
17288         numbered and flagged, and rework this function to continue using it.
17289         (next_pass_1): Add an initial_pass argument for use by
17290         add_pass_instance.
17291         (position_pass): When adding multiple instances of a pass, use
17292         the pass's clone method, rather than relying on the XNEW/memcpy
17293         within the former make_pass_instance (now add_pass_instance).
17294         (pass_manager::pass_manager): When invoking next_pass_1, also supply
17295         the initial instance of the current pass within the pass manager.
17297 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
17299         This is the automated part of the conversion of passes from C
17300         structs to C++ classes.
17302         Patch autogenerated by refactor_passes.py from
17303         https://github.com/davidmalcolm/gcc-refactoring-scripts
17304         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
17306         * asan.c (pass_asan): Convert from a global struct to a subclass of
17307         gimple_opt_pass along with...
17308         (pass_data_asan): ...new pass_data instance and...
17309         (make_pass_asan): ...new function.
17310         (pass_asan_O0): Convert from a global struct to a subclass of
17311         gimple_opt_pass along with...
17312         (pass_data_asan_O0): ...new pass_data instance and...
17313         (make_pass_asan_O0): ...new function.
17314         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
17315         subclass of rtl_opt_pass along with...
17316         (pass_data_inc_dec): ...new pass_data instance and...
17317         (make_pass_inc_dec): ...new function.
17318         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
17319         a subclass of rtl_opt_pass along with...
17320         (pass_data_reorder_blocks): ...new pass_data instance and...
17321         (make_pass_reorder_blocks): ...new function.
17322         (pass_duplicate_computed_gotos): Convert from a global struct to a
17323         subclass of rtl_opt_pass along with...
17324         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
17325         (make_pass_duplicate_computed_gotos): ...new function.
17326         (pass_partition_blocks): Convert from a global struct to a subclass of
17327         rtl_opt_pass along with...
17328         (pass_data_partition_blocks): ...new pass_data instance and...
17329         (make_pass_partition_blocks): ...new function.
17330         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
17331         struct to a subclass of rtl_opt_pass along with...
17332         (pass_data_branch_target_load_optimize1): ...new pass_data instance
17333         and...
17334         (make_pass_branch_target_load_optimize1): ...new function.
17335         (pass_branch_target_load_optimize2): Convert from a global struct to a
17336         subclass of rtl_opt_pass along with...
17337         (pass_data_branch_target_load_optimize2): ...new pass_data instance
17338         and...
17339         (make_pass_branch_target_load_optimize2): ...new function.
17340         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
17341         of rtl_opt_pass along with...
17342         (pass_data_jump): ...new pass_data instance and...
17343         (make_pass_jump): ...new function.
17344         (pass_jump2): Convert from a global struct to a subclass of
17345         rtl_opt_pass along with...
17346         (pass_data_jump2): ...new pass_data instance and...
17347         (make_pass_jump2): ...new function.
17348         * cfgexpand.c (pass_expand): Convert from a global struct to a
17349         subclass of rtl_opt_pass along with...
17350         (pass_data_expand): ...new pass_data instance and...
17351         (make_pass_expand): ...new function.
17352         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
17353         of rtl_opt_pass along with...
17354         (pass_data_free_cfg): ...new pass_data instance and...
17355         (make_pass_free_cfg): ...new function.
17356         (pass_into_cfg_layout_mode): Convert from a global struct to a
17357         subclass of rtl_opt_pass along with...
17358         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
17359         (make_pass_into_cfg_layout_mode): ...new function.
17360         (pass_outof_cfg_layout_mode): Convert from a global struct to a
17361         subclass of rtl_opt_pass along with...
17362         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
17363         (make_pass_outof_cfg_layout_mode): ...new function.
17364         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
17365         struct to a subclass of gimple_opt_pass along with...
17366         (pass_data_build_cgraph_edges): ...new pass_data instance and...
17367         (make_pass_build_cgraph_edges): ...new function.
17368         (pass_rebuild_cgraph_edges): Convert from a global struct to a
17369         subclass of gimple_opt_pass along with...
17370         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
17371         (make_pass_rebuild_cgraph_edges): ...new function.
17372         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
17373         subclass of gimple_opt_pass along with...
17374         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
17375         and...
17376         (make_pass_remove_cgraph_callee_edges): ...new function.
17377         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
17378         struct to a subclass of rtl_opt_pass along with...
17379         (pass_data_stack_adjustments): ...new pass_data instance and...
17380         (make_pass_stack_adjustments): ...new function.
17381         * combine.c (pass_combine): Convert from a global struct to a subclass
17382         of rtl_opt_pass along with...
17383         (pass_data_combine): ...new pass_data instance and...
17384         (make_pass_combine): ...new function.
17385         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
17386         global struct to a subclass of rtl_opt_pass along with...
17387         (pass_data_compare_elim_after_reload): ...new pass_data instance
17388         and...
17389         (make_pass_compare_elim_after_reload): ...new function.
17390         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
17391         of rtl_opt_pass along with...
17392         (pass_data_rtl_cprop): ...new pass_data instance and...
17393         (make_pass_rtl_cprop): ...new function.
17394         * cse.c (pass_cse): Convert from a global struct to a subclass of
17395         rtl_opt_pass along with...
17396         (pass_data_cse): ...new pass_data instance and...
17397         (make_pass_cse): ...new function.
17398         (pass_cse2): Convert from a global struct to a subclass of
17399         rtl_opt_pass along with...
17400         (pass_data_cse2): ...new pass_data instance and...
17401         (make_pass_cse2): ...new function.
17402         (pass_cse_after_global_opts): Convert from a global struct to a
17403         subclass of rtl_opt_pass along with...
17404         (pass_data_cse_after_global_opts): ...new pass_data instance and...
17405         (make_pass_cse_after_global_opts): ...new function.
17406         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
17407         of rtl_opt_pass along with...
17408         (pass_data_ud_rtl_dce): ...new pass_data instance and...
17409         (make_pass_ud_rtl_dce): ...new function.
17410         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
17411         rtl_opt_pass along with...
17412         (pass_data_fast_rtl_dce): ...new pass_data instance and...
17413         (make_pass_fast_rtl_dce): ...new function.
17414         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
17415         a subclass of rtl_opt_pass along with...
17416         (pass_data_df_initialize_opt): ...new pass_data instance and...
17417         (make_pass_df_initialize_opt): ...new function.
17418         (pass_df_initialize_no_opt): Convert from a global struct to a
17419         subclass of rtl_opt_pass along with...
17420         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
17421         (make_pass_df_initialize_no_opt): ...new function.
17422         (pass_df_finish): Convert from a global struct to a subclass of
17423         rtl_opt_pass along with...
17424         (pass_data_df_finish): ...new pass_data instance and...
17425         (make_pass_df_finish): ...new function.
17426         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
17427         rtl_opt_pass along with...
17428         (pass_data_rtl_dse1): ...new pass_data instance and...
17429         (make_pass_rtl_dse1): ...new function.
17430         (pass_rtl_dse2): Convert from a global struct to a subclass of
17431         rtl_opt_pass along with...
17432         (pass_data_rtl_dse2): ...new pass_data instance and...
17433         (make_pass_rtl_dse2): ...new function.
17434         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
17435         subclass of rtl_opt_pass along with...
17436         (pass_data_dwarf2_frame): ...new pass_data instance and...
17437         (make_pass_dwarf2_frame): ...new function.
17438         * except.c (pass_set_nothrow_function_flags): Convert from a global
17439         struct to a subclass of rtl_opt_pass along with...
17440         (pass_data_set_nothrow_function_flags): ...new pass_data instance
17441         and...
17442         (make_pass_set_nothrow_function_flags): ...new function.
17443         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
17444         subclass of rtl_opt_pass along with...
17445         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
17446         and...
17447         (make_pass_convert_to_eh_region_ranges): ...new function.
17448         * final.c (pass_compute_alignments): Convert from a global struct to a
17449         subclass of rtl_opt_pass along with...
17450         (pass_data_compute_alignments): ...new pass_data instance and...
17451         (make_pass_compute_alignments): ...new function.
17452         (pass_final): Convert from a global struct to a subclass of
17453         rtl_opt_pass along with...
17454         (pass_data_final): ...new pass_data instance and...
17455         (make_pass_final): ...new function.
17456         (pass_shorten_branches): Convert from a global struct to a subclass of
17457         rtl_opt_pass along with...
17458         (pass_data_shorten_branches): ...new pass_data instance and...
17459         (make_pass_shorten_branches): ...new function.
17460         (pass_clean_state): Convert from a global struct to a subclass of
17461         rtl_opt_pass along with...
17462         (pass_data_clean_state): ...new pass_data instance and...
17463         (make_pass_clean_state): ...new function.
17464         * function.c (pass_instantiate_virtual_regs): Convert from a global
17465         struct to a subclass of rtl_opt_pass along with...
17466         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
17467         (make_pass_instantiate_virtual_regs): ...new function.
17468         (pass_leaf_regs): Convert from a global struct to a subclass of
17469         rtl_opt_pass along with...
17470         (pass_data_leaf_regs): ...new pass_data instance and...
17471         (make_pass_leaf_regs): ...new function.
17472         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
17473         subclass of rtl_opt_pass along with...
17474         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
17475         and...
17476         (make_pass_thread_prologue_and_epilogue): ...new function.
17477         (pass_match_asm_constraints): Convert from a global struct to a
17478         subclass of rtl_opt_pass along with...
17479         (pass_data_match_asm_constraints): ...new pass_data instance and...
17480         (make_pass_match_asm_constraints): ...new function.
17481         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
17482         subclass of rtl_opt_pass along with...
17483         (pass_data_rtl_fwprop): ...new pass_data instance and...
17484         (make_pass_rtl_fwprop): ...new function.
17485         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
17486         rtl_opt_pass along with...
17487         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
17488         (make_pass_rtl_fwprop_addr): ...new function.
17489         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
17490         rtl_opt_pass along with...
17491         (pass_data_rtl_pre): ...new pass_data instance and...
17492         (make_pass_rtl_pre): ...new function.
17493         (pass_rtl_hoist): Convert from a global struct to a subclass of
17494         rtl_opt_pass along with...
17495         (pass_data_rtl_hoist): ...new pass_data instance and...
17496         (make_pass_rtl_hoist): ...new function.
17497         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
17498         subclass of gimple_opt_pass along with...
17499         (pass_data_lower_cf): ...new pass_data instance and...
17500         (make_pass_lower_cf): ...new function.
17501         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
17502         from a global struct to a subclass of gimple_opt_pass along with...
17503         (pass_data_strength_reduction): ...new pass_data instance and...
17504         (make_pass_strength_reduction): ...new function.
17505         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
17506         of rtl_opt_pass along with...
17507         (pass_data_rtl_ifcvt): ...new pass_data instance and...
17508         (make_pass_rtl_ifcvt): ...new function.
17509         (pass_if_after_combine): Convert from a global struct to a subclass of
17510         rtl_opt_pass along with...
17511         (pass_data_if_after_combine): ...new pass_data instance and...
17512         (make_pass_if_after_combine): ...new function.
17513         (pass_if_after_reload): Convert from a global struct to a subclass of
17514         rtl_opt_pass along with...
17515         (pass_data_if_after_reload): ...new pass_data instance and...
17516         (make_pass_if_after_reload): ...new function.
17517         * init-regs.c (pass_initialize_regs): Convert from a global struct to
17518         a subclass of rtl_opt_pass along with...
17519         (pass_data_initialize_regs): ...new pass_data instance and...
17520         (make_pass_initialize_regs): ...new function.
17521         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
17522         of ipa_opt_pass_d along with...
17523         (pass_data_ipa_cp): ...new pass_data instance and...
17524         (make_pass_ipa_cp): ...new function.
17525         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
17526         global struct to a subclass of gimple_opt_pass along with...
17527         (pass_data_inline_parameters): ...new pass_data instance and...
17528         (make_pass_inline_parameters): ...new function.
17529         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
17530         subclass of gimple_opt_pass along with...
17531         (pass_data_early_inline): ...new pass_data instance and...
17532         (make_pass_early_inline): ...new function.
17533         (pass_ipa_inline): Convert from a global struct to a subclass of
17534         ipa_opt_pass_d along with...
17535         (pass_data_ipa_inline): ...new pass_data instance and...
17536         (make_pass_ipa_inline): ...new function.
17537         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
17538         struct to a subclass of gimple_opt_pass along with...
17539         (pass_data_local_pure_const): ...new pass_data instance and...
17540         (make_pass_local_pure_const): ...new function.
17541         (pass_ipa_pure_const): Convert from a global struct to a subclass of
17542         ipa_opt_pass_d along with...
17543         (pass_data_ipa_pure_const): ...new pass_data instance and...
17544         (make_pass_ipa_pure_const): ...new function.
17545         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
17546         to a subclass of ipa_opt_pass_d along with...
17547         (pass_data_ipa_reference): ...new pass_data instance and...
17548         (make_pass_ipa_reference): ...new function.
17549         * ipa-split.c (pass_split_functions): Convert from a global struct to
17550         a subclass of gimple_opt_pass along with...
17551         (pass_data_split_functions): ...new pass_data instance and...
17552         (make_pass_split_functions): ...new function.
17553         (pass_feedback_split_functions): Convert from a global struct to a
17554         subclass of gimple_opt_pass along with...
17555         (pass_data_feedback_split_functions): ...new pass_data instance and...
17556         (make_pass_feedback_split_functions): ...new function.
17557         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
17558         global struct to a subclass of simple_ipa_opt_pass along with...
17559         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
17560         instance and...
17561         (make_pass_ipa_function_and_variable_visibility): ...new function.
17562         (pass_ipa_free_inline_summary): Convert from a global struct to a
17563         subclass of simple_ipa_opt_pass along with...
17564         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
17565         (make_pass_ipa_free_inline_summary): ...new function.
17566         (pass_ipa_whole_program_visibility): Convert from a global struct to a
17567         subclass of ipa_opt_pass_d along with...
17568         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
17569         and...
17570         (make_pass_ipa_whole_program_visibility): ...new function.
17571         (pass_ipa_profile): Convert from a global struct to a subclass of
17572         ipa_opt_pass_d along with...
17573         (pass_data_ipa_profile): ...new pass_data instance and...
17574         (make_pass_ipa_profile): ...new function.
17575         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
17576         ipa_opt_pass_d along with...
17577         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
17578         (make_pass_ipa_cdtor_merge): ...new function.
17579         * ira.c (pass_ira): Convert from a global struct to a subclass of
17580         rtl_opt_pass along with...
17581         (pass_data_ira): ...new pass_data instance and...
17582         (make_pass_ira): ...new function.
17583         (pass_reload): Convert from a global struct to a subclass of
17584         rtl_opt_pass along with...
17585         (pass_data_reload): ...new pass_data instance and...
17586         (make_pass_reload): ...new function.
17587         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
17588         subclass of rtl_opt_pass along with...
17589         (pass_data_cleanup_barriers): ...new pass_data instance and...
17590         (make_pass_cleanup_barriers): ...new function.
17591         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
17592         of rtl_opt_pass along with...
17593         (pass_data_loop2): ...new pass_data instance and...
17594         (make_pass_loop2): ...new function.
17595         (pass_rtl_loop_init): Convert from a global struct to a subclass of
17596         rtl_opt_pass along with...
17597         (pass_data_rtl_loop_init): ...new pass_data instance and...
17598         (make_pass_rtl_loop_init): ...new function.
17599         (pass_rtl_loop_done): Convert from a global struct to a subclass of
17600         rtl_opt_pass along with...
17601         (pass_data_rtl_loop_done): ...new pass_data instance and...
17602         (make_pass_rtl_loop_done): ...new function.
17603         (pass_rtl_move_loop_invariants): Convert from a global struct to a
17604         subclass of rtl_opt_pass along with...
17605         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
17606         (make_pass_rtl_move_loop_invariants): ...new function.
17607         (pass_rtl_unswitch): Convert from a global struct to a subclass of
17608         rtl_opt_pass along with...
17609         (pass_data_rtl_unswitch): ...new pass_data instance and...
17610         (make_pass_rtl_unswitch): ...new function.
17611         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
17612         subclass of rtl_opt_pass along with...
17613         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
17614         and...
17615         (make_pass_rtl_unroll_and_peel_loops): ...new function.
17616         (pass_rtl_doloop): Convert from a global struct to a subclass of
17617         rtl_opt_pass along with...
17618         (pass_data_rtl_doloop): ...new pass_data instance and...
17619         (make_pass_rtl_doloop): ...new function.
17620         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
17621         a subclass of rtl_opt_pass along with...
17622         (pass_data_lower_subreg): ...new pass_data instance and...
17623         (make_pass_lower_subreg): ...new function.
17624         (pass_lower_subreg2): Convert from a global struct to a subclass of
17625         rtl_opt_pass along with...
17626         (pass_data_lower_subreg2): ...new pass_data instance and...
17627         (make_pass_lower_subreg2): ...new function.
17628         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
17629         struct to a subclass of ipa_opt_pass_d along with...
17630         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
17631         (make_pass_ipa_lto_gimple_out): ...new function.
17632         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
17633         of ipa_opt_pass_d along with...
17634         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
17635         (make_pass_ipa_lto_finish_out): ...new function.
17636         * mode-switching.c (pass_mode_switching): Convert from a global struct
17637         to a subclass of rtl_opt_pass along with...
17638         (pass_data_mode_switching): ...new pass_data instance and...
17639         (make_pass_mode_switching): ...new function.
17640         * modulo-sched.c (pass_sms): Convert from a global struct to a
17641         subclass of rtl_opt_pass along with...
17642         (pass_data_sms): ...new pass_data instance and...
17643         (make_pass_sms): ...new function.
17644         * omp-low.c (pass_expand_omp): Convert from a global struct to a
17645         subclass of gimple_opt_pass along with...
17646         (pass_data_expand_omp): ...new pass_data instance and...
17647         (make_pass_expand_omp): ...new function.
17648         (pass_lower_omp): Convert from a global struct to a subclass of
17649         gimple_opt_pass along with...
17650         (pass_data_lower_omp): ...new pass_data instance and...
17651         (make_pass_lower_omp): ...new function.
17652         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
17653         of gimple_opt_pass along with...
17654         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
17655         (make_pass_diagnose_omp_blocks): ...new function.
17656         * passes.c (pass_early_local_passes): Convert from a global struct to
17657         a subclass of simple_ipa_opt_pass along with...
17658         (pass_data_early_local_passes): ...new pass_data instance and...
17659         (make_pass_early_local_passes): ...new function.
17660         (pass_all_early_optimizations): Convert from a global struct to a
17661         subclass of gimple_opt_pass along with...
17662         (pass_data_all_early_optimizations): ...new pass_data instance and...
17663         (make_pass_all_early_optimizations): ...new function.
17664         (pass_all_optimizations): Convert from a global struct to a subclass
17665         of gimple_opt_pass along with...
17666         (pass_data_all_optimizations): ...new pass_data instance and...
17667         (make_pass_all_optimizations): ...new function.
17668         (pass_all_optimizations_g): Convert from a global struct to a subclass
17669         of gimple_opt_pass along with...
17670         (pass_data_all_optimizations_g): ...new pass_data instance and...
17671         (make_pass_all_optimizations_g): ...new function.
17672         (pass_rest_of_compilation): Convert from a global struct to a subclass
17673         of rtl_opt_pass along with...
17674         (pass_data_rest_of_compilation): ...new pass_data instance and...
17675         (make_pass_rest_of_compilation): ...new function.
17676         (pass_postreload): Convert from a global struct to a subclass of
17677         rtl_opt_pass along with...
17678         (pass_data_postreload): ...new pass_data instance and...
17679         (make_pass_postreload): ...new function.
17680         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
17681         subclass of rtl_opt_pass along with...
17682         (pass_data_gcse2): ...new pass_data instance and...
17683         (make_pass_gcse2): ...new function.
17684         * postreload.c (pass_postreload_cse): Convert from a global struct to
17685         a subclass of rtl_opt_pass along with...
17686         (pass_data_postreload_cse): ...new pass_data instance and...
17687         (make_pass_postreload_cse): ...new function.
17688         * predict.c (pass_profile): Convert from a global struct to a subclass
17689         of gimple_opt_pass along with...
17690         (pass_data_profile): ...new pass_data instance and...
17691         (make_pass_profile): ...new function.
17692         (pass_strip_predict_hints): Convert from a global struct to a subclass
17693         of gimple_opt_pass along with...
17694         (pass_data_strip_predict_hints): ...new pass_data instance and...
17695         (make_pass_strip_predict_hints): ...new function.
17696         * recog.c (pass_peephole2): Convert from a global struct to a subclass
17697         of rtl_opt_pass along with...
17698         (pass_data_peephole2): ...new pass_data instance and...
17699         (make_pass_peephole2): ...new function.
17700         (pass_split_all_insns): Convert from a global struct to a subclass of
17701         rtl_opt_pass along with...
17702         (pass_data_split_all_insns): ...new pass_data instance and...
17703         (make_pass_split_all_insns): ...new function.
17704         (pass_split_after_reload): Convert from a global struct to a subclass
17705         of rtl_opt_pass along with...
17706         (pass_data_split_after_reload): ...new pass_data instance and...
17707         (make_pass_split_after_reload): ...new function.
17708         (pass_split_before_regstack): Convert from a global struct to a
17709         subclass of rtl_opt_pass along with...
17710         (pass_data_split_before_regstack): ...new pass_data instance and...
17711         (make_pass_split_before_regstack): ...new function.
17712         (pass_split_before_sched2): Convert from a global struct to a subclass
17713         of rtl_opt_pass along with...
17714         (pass_data_split_before_sched2): ...new pass_data instance and...
17715         (make_pass_split_before_sched2): ...new function.
17716         (pass_split_for_shorten_branches): Convert from a global struct to a
17717         subclass of rtl_opt_pass along with...
17718         (pass_data_split_for_shorten_branches): ...new pass_data instance
17719         and...
17720         (make_pass_split_for_shorten_branches): ...new function.
17721         * ree.c (pass_ree): Convert from a global struct to a subclass of
17722         rtl_opt_pass along with...
17723         (pass_data_ree): ...new pass_data instance and...
17724         (make_pass_ree): ...new function.
17725         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
17726         subclass of rtl_opt_pass along with...
17727         (pass_data_stack_regs): ...new pass_data instance and...
17728         (make_pass_stack_regs): ...new function.
17729         (pass_stack_regs_run): Convert from a global struct to a subclass of
17730         rtl_opt_pass along with...
17731         (pass_data_stack_regs_run): ...new pass_data instance and...
17732         (make_pass_stack_regs_run): ...new function.
17733         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
17734         subclass of rtl_opt_pass along with...
17735         (pass_data_cprop_hardreg): ...new pass_data instance and...
17736         (make_pass_cprop_hardreg): ...new function.
17737         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
17738         subclass of rtl_opt_pass along with...
17739         (pass_data_reginfo_init): ...new pass_data instance and...
17740         (make_pass_reginfo_init): ...new function.
17741         * regmove.c (pass_regmove): Convert from a global struct to a subclass
17742         of rtl_opt_pass along with...
17743         (pass_data_regmove): ...new pass_data instance and...
17744         (make_pass_regmove): ...new function.
17745         * regrename.c (pass_regrename): Convert from a global struct to a
17746         subclass of rtl_opt_pass along with...
17747         (pass_data_regrename): ...new pass_data instance and...
17748         (make_pass_regrename): ...new function.
17749         * reorg.c (pass_delay_slots): Convert from a global struct to a
17750         subclass of rtl_opt_pass along with...
17751         (pass_data_delay_slots): ...new pass_data instance and...
17752         (make_pass_delay_slots): ...new function.
17753         (pass_machine_reorg): Convert from a global struct to a subclass of
17754         rtl_opt_pass along with...
17755         (pass_data_machine_reorg): ...new pass_data instance and...
17756         (make_pass_machine_reorg): ...new function.
17757         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
17758         of rtl_opt_pass along with...
17759         (pass_data_sched): ...new pass_data instance and...
17760         (make_pass_sched): ...new function.
17761         (pass_sched2): Convert from a global struct to a subclass of
17762         rtl_opt_pass along with...
17763         (pass_data_sched2): ...new pass_data instance and...
17764         (make_pass_sched2): ...new function.
17765         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
17766         to a subclass of rtl_opt_pass along with...
17767         (pass_data_stack_ptr_mod): ...new pass_data instance and...
17768         (make_pass_stack_ptr_mod): ...new function.
17769         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
17770         to a subclass of rtl_opt_pass along with...
17771         (pass_data_rtl_store_motion): ...new pass_data instance and...
17772         (make_pass_rtl_store_motion): ...new function.
17773         * tracer.c (pass_tracer): Convert from a global struct to a subclass
17774         of gimple_opt_pass along with...
17775         (pass_data_tracer): ...new pass_data instance and...
17776         (make_pass_tracer): ...new function.
17777         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
17778         to a subclass of gimple_opt_pass along with...
17779         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
17780         (make_pass_diagnose_tm_blocks): ...new function.
17781         (pass_lower_tm): Convert from a global struct to a subclass of
17782         gimple_opt_pass along with...
17783         (pass_data_lower_tm): ...new pass_data instance and...
17784         (make_pass_lower_tm): ...new function.
17785         (pass_tm_init): Convert from a global struct to a subclass of
17786         gimple_opt_pass along with...
17787         (pass_data_tm_init): ...new pass_data instance and...
17788         (make_pass_tm_init): ...new function.
17789         (pass_tm_mark): Convert from a global struct to a subclass of
17790         gimple_opt_pass along with...
17791         (pass_data_tm_mark): ...new pass_data instance and...
17792         (make_pass_tm_mark): ...new function.
17793         (pass_tm_edges): Convert from a global struct to a subclass of
17794         gimple_opt_pass along with...
17795         (pass_data_tm_edges): ...new pass_data instance and...
17796         (make_pass_tm_edges): ...new function.
17797         (pass_tm_memopt): Convert from a global struct to a subclass of
17798         gimple_opt_pass along with...
17799         (pass_data_tm_memopt): ...new pass_data instance and...
17800         (make_pass_tm_memopt): ...new function.
17801         (pass_ipa_tm): Convert from a global struct to a subclass of
17802         simple_ipa_opt_pass along with...
17803         (pass_data_ipa_tm): ...new pass_data instance and...
17804         (make_pass_ipa_tm): ...new function.
17805         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
17806         subclass of gimple_opt_pass along with...
17807         (pass_data_call_cdce): ...new pass_data instance and...
17808         (make_pass_call_cdce): ...new function.
17809         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
17810         subclass of gimple_opt_pass along with...
17811         (pass_data_build_cfg): ...new pass_data instance and...
17812         (make_pass_build_cfg): ...new function.
17813         (pass_split_crit_edges): Convert from a global struct to a subclass of
17814         gimple_opt_pass along with...
17815         (pass_data_split_crit_edges): ...new pass_data instance and...
17816         (make_pass_split_crit_edges): ...new function.
17817         (pass_warn_function_return): Convert from a global struct to a
17818         subclass of gimple_opt_pass along with...
17819         (pass_data_warn_function_return): ...new pass_data instance and...
17820         (make_pass_warn_function_return): ...new function.
17821         (pass_warn_function_noreturn): Convert from a global struct to a
17822         subclass of gimple_opt_pass along with...
17823         (pass_data_warn_function_noreturn): ...new pass_data instance and...
17824         (make_pass_warn_function_noreturn): ...new function.
17825         (pass_warn_unused_result): Convert from a global struct to a subclass
17826         of gimple_opt_pass along with...
17827         (pass_data_warn_unused_result): ...new pass_data instance and...
17828         (make_pass_warn_unused_result): ...new function.
17829         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
17830         a subclass of gimple_opt_pass along with...
17831         (pass_data_merge_phi): ...new pass_data instance and...
17832         (make_pass_merge_phi): ...new function.
17833         * tree-complex.c (pass_lower_complex): Convert from a global struct to
17834         a subclass of gimple_opt_pass along with...
17835         (pass_data_lower_complex): ...new pass_data instance and...
17836         (make_pass_lower_complex): ...new function.
17837         (pass_lower_complex_O0): Convert from a global struct to a subclass of
17838         gimple_opt_pass along with...
17839         (pass_data_lower_complex_O0): ...new pass_data instance and...
17840         (make_pass_lower_complex_O0): ...new function.
17841         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
17842         subclass of gimple_opt_pass along with...
17843         (pass_data_lower_eh): ...new pass_data instance and...
17844         (make_pass_lower_eh): ...new function.
17845         (pass_refactor_eh): Convert from a global struct to a subclass of
17846         gimple_opt_pass along with...
17847         (pass_data_refactor_eh): ...new pass_data instance and...
17848         (make_pass_refactor_eh): ...new function.
17849         (pass_lower_resx): Convert from a global struct to a subclass of
17850         gimple_opt_pass along with...
17851         (pass_data_lower_resx): ...new pass_data instance and...
17852         (make_pass_lower_resx): ...new function.
17853         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
17854         of gimple_opt_pass along with...
17855         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
17856         (make_pass_lower_eh_dispatch): ...new function.
17857         (pass_cleanup_eh): Convert from a global struct to a subclass of
17858         gimple_opt_pass along with...
17859         (pass_data_cleanup_eh): ...new pass_data instance and...
17860         (make_pass_cleanup_eh): ...new function.
17861         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
17862         to a subclass of simple_ipa_opt_pass along with...
17863         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
17864         (make_pass_ipa_lower_emutls): ...new function.
17865         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
17866         a subclass of gimple_opt_pass along with...
17867         (pass_data_if_conversion): ...new pass_data instance and...
17868         (make_pass_if_conversion): ...new function.
17869         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
17870         subclass of gimple_opt_pass along with...
17871         (pass_data_build_ssa): ...new pass_data instance and...
17872         (make_pass_build_ssa): ...new function.
17873         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
17874         global struct to a subclass of gimple_opt_pass along with...
17875         (pass_data_loop_distribution): ...new pass_data instance and...
17876         (make_pass_loop_distribution): ...new function.
17877         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
17878         subclass of gimple_opt_pass along with...
17879         (pass_data_mudflap_1): ...new pass_data instance and...
17880         (make_pass_mudflap_1): ...new function.
17881         (pass_mudflap_2): Convert from a global struct to a subclass of
17882         gimple_opt_pass along with...
17883         (pass_data_mudflap_2): ...new pass_data instance and...
17884         (make_pass_mudflap_2): ...new function.
17885         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
17886         subclass of gimple_opt_pass along with...
17887         (pass_data_mudflap_1): ...new pass_data instance and...
17888         (make_pass_mudflap_1): ...new function.
17889         (pass_mudflap_2): Convert from a global struct to a subclass of
17890         gimple_opt_pass along with...
17891         (pass_data_mudflap_2): ...new pass_data instance and...
17892         (make_pass_mudflap_2): ...new function.
17893         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
17894         gimple_opt_pass along with...
17895         (pass_data_nrv): ...new pass_data instance and...
17896         (make_pass_nrv): ...new function.
17897         (pass_return_slot): Convert from a global struct to a subclass of
17898         gimple_opt_pass along with...
17899         (pass_data_return_slot): ...new pass_data instance and...
17900         (make_pass_return_slot): ...new function.
17901         * tree-object-size.c (pass_object_sizes): Convert from a global struct
17902         to a subclass of gimple_opt_pass along with...
17903         (pass_data_object_sizes): ...new pass_data instance and...
17904         (make_pass_object_sizes): ...new function.
17905         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
17906         global struct to a subclass of gimple_opt_pass along with...
17907         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
17908         and...
17909         (make_pass_cleanup_cfg_post_optimizing): ...new function.
17910         (pass_fixup_cfg): Convert from a global struct to a subclass of
17911         gimple_opt_pass along with...
17912         (pass_data_fixup_cfg): ...new pass_data instance and...
17913         (make_pass_fixup_cfg): ...new function.
17914         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
17915         (make_pass_mudflap_1): ...new function.
17916         (pass_mudflap_2): Replace declaration with that of...
17917         (make_pass_mudflap_2): ...new function.
17918         (pass_asan): Replace declaration with that of...
17919         (make_pass_asan): ...new function.
17920         (pass_asan_O0): Replace declaration with that of...
17921         (make_pass_asan_O0): ...new function.
17922         (pass_tsan): Replace declaration with that of...
17923         (make_pass_tsan): ...new function.
17924         (pass_tsan_O0): Replace declaration with that of...
17925         (make_pass_tsan_O0): ...new function.
17926         (pass_lower_cf): Replace declaration with that of...
17927         (make_pass_lower_cf): ...new function.
17928         (pass_refactor_eh): Replace declaration with that of...
17929         (make_pass_refactor_eh): ...new function.
17930         (pass_lower_eh): Replace declaration with that of...
17931         (make_pass_lower_eh): ...new function.
17932         (pass_lower_eh_dispatch): Replace declaration with that of...
17933         (make_pass_lower_eh_dispatch): ...new function.
17934         (pass_lower_resx): Replace declaration with that of...
17935         (make_pass_lower_resx): ...new function.
17936         (pass_build_cfg): Replace declaration with that of...
17937         (make_pass_build_cfg): ...new function.
17938         (pass_early_tree_profile): Replace declaration with that of...
17939         (make_pass_early_tree_profile): ...new function.
17940         (pass_cleanup_eh): Replace declaration with that of...
17941         (make_pass_cleanup_eh): ...new function.
17942         (pass_sra): Replace declaration with that of...
17943         (make_pass_sra): ...new function.
17944         (pass_sra_early): Replace declaration with that of...
17945         (make_pass_sra_early): ...new function.
17946         (pass_early_ipa_sra): Replace declaration with that of...
17947         (make_pass_early_ipa_sra): ...new function.
17948         (pass_tail_recursion): Replace declaration with that of...
17949         (make_pass_tail_recursion): ...new function.
17950         (pass_tail_calls): Replace declaration with that of...
17951         (make_pass_tail_calls): ...new function.
17952         (pass_tree_loop): Replace declaration with that of...
17953         (make_pass_tree_loop): ...new function.
17954         (pass_tree_loop_init): Replace declaration with that of...
17955         (make_pass_tree_loop_init): ...new function.
17956         (pass_lim): Replace declaration with that of...
17957         (make_pass_lim): ...new function.
17958         (pass_tree_unswitch): Replace declaration with that of...
17959         (make_pass_tree_unswitch): ...new function.
17960         (pass_predcom): Replace declaration with that of...
17961         (make_pass_predcom): ...new function.
17962         (pass_iv_canon): Replace declaration with that of...
17963         (make_pass_iv_canon): ...new function.
17964         (pass_scev_cprop): Replace declaration with that of...
17965         (make_pass_scev_cprop): ...new function.
17966         (pass_empty_loop): Replace declaration with that of...
17967         (make_pass_empty_loop): ...new function.
17968         (pass_record_bounds): Replace declaration with that of...
17969         (make_pass_record_bounds): ...new function.
17970         (pass_graphite): Replace declaration with that of...
17971         (make_pass_graphite): ...new function.
17972         (pass_graphite_transforms): Replace declaration with that of...
17973         (make_pass_graphite_transforms): ...new function.
17974         (pass_if_conversion): Replace declaration with that of...
17975         (make_pass_if_conversion): ...new function.
17976         (pass_loop_distribution): Replace declaration with that of...
17977         (make_pass_loop_distribution): ...new function.
17978         (pass_vectorize): Replace declaration with that of...
17979         (make_pass_vectorize): ...new function.
17980         (pass_slp_vectorize): Replace declaration with that of...
17981         (make_pass_slp_vectorize): ...new function.
17982         (pass_complete_unroll): Replace declaration with that of...
17983         (make_pass_complete_unroll): ...new function.
17984         (pass_complete_unrolli): Replace declaration with that of...
17985         (make_pass_complete_unrolli): ...new function.
17986         (pass_parallelize_loops): Replace declaration with that of...
17987         (make_pass_parallelize_loops): ...new function.
17988         (pass_loop_prefetch): Replace declaration with that of...
17989         (make_pass_loop_prefetch): ...new function.
17990         (pass_iv_optimize): Replace declaration with that of...
17991         (make_pass_iv_optimize): ...new function.
17992         (pass_tree_loop_done): Replace declaration with that of...
17993         (make_pass_tree_loop_done): ...new function.
17994         (pass_ch): Replace declaration with that of...
17995         (make_pass_ch): ...new function.
17996         (pass_ccp): Replace declaration with that of...
17997         (make_pass_ccp): ...new function.
17998         (pass_phi_only_cprop): Replace declaration with that of...
17999         (make_pass_phi_only_cprop): ...new function.
18000         (pass_build_ssa): Replace declaration with that of...
18001         (make_pass_build_ssa): ...new function.
18002         (pass_build_alias): Replace declaration with that of...
18003         (make_pass_build_alias): ...new function.
18004         (pass_build_ealias): Replace declaration with that of...
18005         (make_pass_build_ealias): ...new function.
18006         (pass_dominator): Replace declaration with that of...
18007         (make_pass_dominator): ...new function.
18008         (pass_dce): Replace declaration with that of...
18009         (make_pass_dce): ...new function.
18010         (pass_dce_loop): Replace declaration with that of...
18011         (make_pass_dce_loop): ...new function.
18012         (pass_cd_dce): Replace declaration with that of...
18013         (make_pass_cd_dce): ...new function.
18014         (pass_call_cdce): Replace declaration with that of...
18015         (make_pass_call_cdce): ...new function.
18016         (pass_merge_phi): Replace declaration with that of...
18017         (make_pass_merge_phi): ...new function.
18018         (pass_split_crit_edges): Replace declaration with that of...
18019         (make_pass_split_crit_edges): ...new function.
18020         (pass_pre): Replace declaration with that of...
18021         (make_pass_pre): ...new function.
18022         (pass_profile): Replace declaration with that of...
18023         (make_pass_profile): ...new function.
18024         (pass_strip_predict_hints): Replace declaration with that of...
18025         (make_pass_strip_predict_hints): ...new function.
18026         (pass_lower_complex_O0): Replace declaration with that of...
18027         (make_pass_lower_complex_O0): ...new function.
18028         (pass_lower_complex): Replace declaration with that of...
18029         (make_pass_lower_complex): ...new function.
18030         (pass_lower_vector): Replace declaration with that of...
18031         (make_pass_lower_vector): ...new function.
18032         (pass_lower_vector_ssa): Replace declaration with that of...
18033         (make_pass_lower_vector_ssa): ...new function.
18034         (pass_lower_omp): Replace declaration with that of...
18035         (make_pass_lower_omp): ...new function.
18036         (pass_diagnose_omp_blocks): Replace declaration with that of...
18037         (make_pass_diagnose_omp_blocks): ...new function.
18038         (pass_expand_omp): Replace declaration with that of...
18039         (make_pass_expand_omp): ...new function.
18040         (pass_expand_omp_ssa): Replace declaration with that of...
18041         (make_pass_expand_omp_ssa): ...new function.
18042         (pass_object_sizes): Replace declaration with that of...
18043         (make_pass_object_sizes): ...new function.
18044         (pass_strlen): Replace declaration with that of...
18045         (make_pass_strlen): ...new function.
18046         (pass_fold_builtins): Replace declaration with that of...
18047         (make_pass_fold_builtins): ...new function.
18048         (pass_stdarg): Replace declaration with that of...
18049         (make_pass_stdarg): ...new function.
18050         (pass_early_warn_uninitialized): Replace declaration with that of...
18051         (make_pass_early_warn_uninitialized): ...new function.
18052         (pass_late_warn_uninitialized): Replace declaration with that of...
18053         (make_pass_late_warn_uninitialized): ...new function.
18054         (pass_cse_reciprocals): Replace declaration with that of...
18055         (make_pass_cse_reciprocals): ...new function.
18056         (pass_cse_sincos): Replace declaration with that of...
18057         (make_pass_cse_sincos): ...new function.
18058         (pass_optimize_bswap): Replace declaration with that of...
18059         (make_pass_optimize_bswap): ...new function.
18060         (pass_optimize_widening_mul): Replace declaration with that of...
18061         (make_pass_optimize_widening_mul): ...new function.
18062         (pass_warn_function_return): Replace declaration with that of...
18063         (make_pass_warn_function_return): ...new function.
18064         (pass_warn_function_noreturn): Replace declaration with that of...
18065         (make_pass_warn_function_noreturn): ...new function.
18066         (pass_cselim): Replace declaration with that of...
18067         (make_pass_cselim): ...new function.
18068         (pass_phiopt): Replace declaration with that of...
18069         (make_pass_phiopt): ...new function.
18070         (pass_forwprop): Replace declaration with that of...
18071         (make_pass_forwprop): ...new function.
18072         (pass_phiprop): Replace declaration with that of...
18073         (make_pass_phiprop): ...new function.
18074         (pass_tree_ifcombine): Replace declaration with that of...
18075         (make_pass_tree_ifcombine): ...new function.
18076         (pass_dse): Replace declaration with that of...
18077         (make_pass_dse): ...new function.
18078         (pass_nrv): Replace declaration with that of...
18079         (make_pass_nrv): ...new function.
18080         (pass_rename_ssa_copies): Replace declaration with that of...
18081         (make_pass_rename_ssa_copies): ...new function.
18082         (pass_sink_code): Replace declaration with that of...
18083         (make_pass_sink_code): ...new function.
18084         (pass_fre): Replace declaration with that of...
18085         (make_pass_fre): ...new function.
18086         (pass_check_data_deps): Replace declaration with that of...
18087         (make_pass_check_data_deps): ...new function.
18088         (pass_copy_prop): Replace declaration with that of...
18089         (make_pass_copy_prop): ...new function.
18090         (pass_vrp): Replace declaration with that of...
18091         (make_pass_vrp): ...new function.
18092         (pass_uncprop): Replace declaration with that of...
18093         (make_pass_uncprop): ...new function.
18094         (pass_return_slot): Replace declaration with that of...
18095         (make_pass_return_slot): ...new function.
18096         (pass_reassoc): Replace declaration with that of...
18097         (make_pass_reassoc): ...new function.
18098         (pass_rebuild_cgraph_edges): Replace declaration with that of...
18099         (make_pass_rebuild_cgraph_edges): ...new function.
18100         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
18101         (make_pass_remove_cgraph_callee_edges): ...new function.
18102         (pass_build_cgraph_edges): Replace declaration with that of...
18103         (make_pass_build_cgraph_edges): ...new function.
18104         (pass_local_pure_const): Replace declaration with that of...
18105         (make_pass_local_pure_const): ...new function.
18106         (pass_tracer): Replace declaration with that of...
18107         (make_pass_tracer): ...new function.
18108         (pass_warn_unused_result): Replace declaration with that of...
18109         (make_pass_warn_unused_result): ...new function.
18110         (pass_diagnose_tm_blocks): Replace declaration with that of...
18111         (make_pass_diagnose_tm_blocks): ...new function.
18112         (pass_lower_tm): Replace declaration with that of...
18113         (make_pass_lower_tm): ...new function.
18114         (pass_tm_init): Replace declaration with that of...
18115         (make_pass_tm_init): ...new function.
18116         (pass_tm_mark): Replace declaration with that of...
18117         (make_pass_tm_mark): ...new function.
18118         (pass_tm_memopt): Replace declaration with that of...
18119         (make_pass_tm_memopt): ...new function.
18120         (pass_tm_edges): Replace declaration with that of...
18121         (make_pass_tm_edges): ...new function.
18122         (pass_split_functions): Replace declaration with that of...
18123         (make_pass_split_functions): ...new function.
18124         (pass_feedback_split_functions): Replace declaration with that of...
18125         (make_pass_feedback_split_functions): ...new function.
18126         (pass_strength_reduction): Replace declaration with that of...
18127         (make_pass_strength_reduction): ...new function.
18128         (pass_ipa_lower_emutls): Replace declaration with that of...
18129         (make_pass_ipa_lower_emutls): ...new function.
18130         (pass_ipa_function_and_variable_visibility): Replace declaration with
18131         that of...
18132         (make_pass_ipa_function_and_variable_visibility): ...new function.
18133         (pass_ipa_tree_profile): Replace declaration with that of...
18134         (make_pass_ipa_tree_profile): ...new function.
18135         (pass_early_local_passes): Replace declaration with that of...
18136         (make_pass_early_local_passes): ...new function.
18137         (pass_ipa_whole_program_visibility): Replace declaration with that
18138         of...
18139         (make_pass_ipa_whole_program_visibility): ...new function.
18140         (pass_ipa_lto_gimple_out): Replace declaration with that of...
18141         (make_pass_ipa_lto_gimple_out): ...new function.
18142         (pass_ipa_increase_alignment): Replace declaration with that of...
18143         (make_pass_ipa_increase_alignment): ...new function.
18144         (pass_ipa_inline): Replace declaration with that of...
18145         (make_pass_ipa_inline): ...new function.
18146         (pass_ipa_free_lang_data): Replace declaration with that of...
18147         (make_pass_ipa_free_lang_data): ...new function.
18148         (pass_ipa_free_inline_summary): Replace declaration with that of...
18149         (make_pass_ipa_free_inline_summary): ...new function.
18150         (pass_ipa_cp): Replace declaration with that of...
18151         (make_pass_ipa_cp): ...new function.
18152         (pass_ipa_reference): Replace declaration with that of...
18153         (make_pass_ipa_reference): ...new function.
18154         (pass_ipa_pure_const): Replace declaration with that of...
18155         (make_pass_ipa_pure_const): ...new function.
18156         (pass_ipa_pta): Replace declaration with that of...
18157         (make_pass_ipa_pta): ...new function.
18158         (pass_ipa_lto_finish_out): Replace declaration with that of...
18159         (make_pass_ipa_lto_finish_out): ...new function.
18160         (pass_ipa_tm): Replace declaration with that of...
18161         (make_pass_ipa_tm): ...new function.
18162         (pass_ipa_profile): Replace declaration with that of...
18163         (make_pass_ipa_profile): ...new function.
18164         (pass_ipa_cdtor_merge): Replace declaration with that of...
18165         (make_pass_ipa_cdtor_merge): ...new function.
18166         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
18167         of...
18168         (make_pass_cleanup_cfg_post_optimizing): ...new function.
18169         (pass_init_datastructures): Replace declaration with that of...
18170         (make_pass_init_datastructures): ...new function.
18171         (pass_fixup_cfg): Replace declaration with that of...
18172         (make_pass_fixup_cfg): ...new function.
18173         (pass_expand): Replace declaration with that of...
18174         (make_pass_expand): ...new function.
18175         (pass_instantiate_virtual_regs): Replace declaration with that of...
18176         (make_pass_instantiate_virtual_regs): ...new function.
18177         (pass_rtl_fwprop): Replace declaration with that of...
18178         (make_pass_rtl_fwprop): ...new function.
18179         (pass_rtl_fwprop_addr): Replace declaration with that of...
18180         (make_pass_rtl_fwprop_addr): ...new function.
18181         (pass_jump): Replace declaration with that of...
18182         (make_pass_jump): ...new function.
18183         (pass_jump2): Replace declaration with that of...
18184         (make_pass_jump2): ...new function.
18185         (pass_lower_subreg): Replace declaration with that of...
18186         (make_pass_lower_subreg): ...new function.
18187         (pass_cse): Replace declaration with that of...
18188         (make_pass_cse): ...new function.
18189         (pass_fast_rtl_dce): Replace declaration with that of...
18190         (make_pass_fast_rtl_dce): ...new function.
18191         (pass_ud_rtl_dce): Replace declaration with that of...
18192         (make_pass_ud_rtl_dce): ...new function.
18193         (pass_rtl_dce): Replace declaration with that of...
18194         (make_pass_rtl_dce): ...new function.
18195         (pass_rtl_dse1): Replace declaration with that of...
18196         (make_pass_rtl_dse1): ...new function.
18197         (pass_rtl_dse2): Replace declaration with that of...
18198         (make_pass_rtl_dse2): ...new function.
18199         (pass_rtl_dse3): Replace declaration with that of...
18200         (make_pass_rtl_dse3): ...new function.
18201         (pass_rtl_cprop): Replace declaration with that of...
18202         (make_pass_rtl_cprop): ...new function.
18203         (pass_rtl_pre): Replace declaration with that of...
18204         (make_pass_rtl_pre): ...new function.
18205         (pass_rtl_hoist): Replace declaration with that of...
18206         (make_pass_rtl_hoist): ...new function.
18207         (pass_rtl_store_motion): Replace declaration with that of...
18208         (make_pass_rtl_store_motion): ...new function.
18209         (pass_cse_after_global_opts): Replace declaration with that of...
18210         (make_pass_cse_after_global_opts): ...new function.
18211         (pass_rtl_ifcvt): Replace declaration with that of...
18212         (make_pass_rtl_ifcvt): ...new function.
18213         (pass_into_cfg_layout_mode): Replace declaration with that of...
18214         (make_pass_into_cfg_layout_mode): ...new function.
18215         (pass_outof_cfg_layout_mode): Replace declaration with that of...
18216         (make_pass_outof_cfg_layout_mode): ...new function.
18217         (pass_loop2): Replace declaration with that of...
18218         (make_pass_loop2): ...new function.
18219         (pass_rtl_loop_init): Replace declaration with that of...
18220         (make_pass_rtl_loop_init): ...new function.
18221         (pass_rtl_move_loop_invariants): Replace declaration with that of...
18222         (make_pass_rtl_move_loop_invariants): ...new function.
18223         (pass_rtl_unswitch): Replace declaration with that of...
18224         (make_pass_rtl_unswitch): ...new function.
18225         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
18226         (make_pass_rtl_unroll_and_peel_loops): ...new function.
18227         (pass_rtl_doloop): Replace declaration with that of...
18228         (make_pass_rtl_doloop): ...new function.
18229         (pass_rtl_loop_done): Replace declaration with that of...
18230         (make_pass_rtl_loop_done): ...new function.
18231         (pass_web): Replace declaration with that of...
18232         (make_pass_web): ...new function.
18233         (pass_cse2): Replace declaration with that of...
18234         (make_pass_cse2): ...new function.
18235         (pass_df_initialize_opt): Replace declaration with that of...
18236         (make_pass_df_initialize_opt): ...new function.
18237         (pass_df_initialize_no_opt): Replace declaration with that of...
18238         (make_pass_df_initialize_no_opt): ...new function.
18239         (pass_reginfo_init): Replace declaration with that of...
18240         (make_pass_reginfo_init): ...new function.
18241         (pass_inc_dec): Replace declaration with that of...
18242         (make_pass_inc_dec): ...new function.
18243         (pass_stack_ptr_mod): Replace declaration with that of...
18244         (make_pass_stack_ptr_mod): ...new function.
18245         (pass_initialize_regs): Replace declaration with that of...
18246         (make_pass_initialize_regs): ...new function.
18247         (pass_combine): Replace declaration with that of...
18248         (make_pass_combine): ...new function.
18249         (pass_if_after_combine): Replace declaration with that of...
18250         (make_pass_if_after_combine): ...new function.
18251         (pass_ree): Replace declaration with that of...
18252         (make_pass_ree): ...new function.
18253         (pass_partition_blocks): Replace declaration with that of...
18254         (make_pass_partition_blocks): ...new function.
18255         (pass_match_asm_constraints): Replace declaration with that of...
18256         (make_pass_match_asm_constraints): ...new function.
18257         (pass_regmove): Replace declaration with that of...
18258         (make_pass_regmove): ...new function.
18259         (pass_split_all_insns): Replace declaration with that of...
18260         (make_pass_split_all_insns): ...new function.
18261         (pass_fast_rtl_byte_dce): Replace declaration with that of...
18262         (make_pass_fast_rtl_byte_dce): ...new function.
18263         (pass_lower_subreg2): Replace declaration with that of...
18264         (make_pass_lower_subreg2): ...new function.
18265         (pass_mode_switching): Replace declaration with that of...
18266         (make_pass_mode_switching): ...new function.
18267         (pass_sms): Replace declaration with that of...
18268         (make_pass_sms): ...new function.
18269         (pass_sched): Replace declaration with that of...
18270         (make_pass_sched): ...new function.
18271         (pass_ira): Replace declaration with that of...
18272         (make_pass_ira): ...new function.
18273         (pass_reload): Replace declaration with that of...
18274         (make_pass_reload): ...new function.
18275         (pass_clean_state): Replace declaration with that of...
18276         (make_pass_clean_state): ...new function.
18277         (pass_branch_prob): Replace declaration with that of...
18278         (make_pass_branch_prob): ...new function.
18279         (pass_value_profile_transformations): Replace declaration with that
18280         of...
18281         (make_pass_value_profile_transformations): ...new function.
18282         (pass_postreload_cse): Replace declaration with that of...
18283         (make_pass_postreload_cse): ...new function.
18284         (pass_gcse2): Replace declaration with that of...
18285         (make_pass_gcse2): ...new function.
18286         (pass_split_after_reload): Replace declaration with that of...
18287         (make_pass_split_after_reload): ...new function.
18288         (pass_branch_target_load_optimize1): Replace declaration with that
18289         of...
18290         (make_pass_branch_target_load_optimize1): ...new function.
18291         (pass_thread_prologue_and_epilogue): Replace declaration with that
18292         of...
18293         (make_pass_thread_prologue_and_epilogue): ...new function.
18294         (pass_stack_adjustments): Replace declaration with that of...
18295         (make_pass_stack_adjustments): ...new function.
18296         (pass_peephole2): Replace declaration with that of...
18297         (make_pass_peephole2): ...new function.
18298         (pass_if_after_reload): Replace declaration with that of...
18299         (make_pass_if_after_reload): ...new function.
18300         (pass_regrename): Replace declaration with that of...
18301         (make_pass_regrename): ...new function.
18302         (pass_cprop_hardreg): Replace declaration with that of...
18303         (make_pass_cprop_hardreg): ...new function.
18304         (pass_reorder_blocks): Replace declaration with that of...
18305         (make_pass_reorder_blocks): ...new function.
18306         (pass_branch_target_load_optimize2): Replace declaration with that
18307         of...
18308         (make_pass_branch_target_load_optimize2): ...new function.
18309         (pass_leaf_regs): Replace declaration with that of...
18310         (make_pass_leaf_regs): ...new function.
18311         (pass_split_before_sched2): Replace declaration with that of...
18312         (make_pass_split_before_sched2): ...new function.
18313         (pass_compare_elim_after_reload): Replace declaration with that of...
18314         (make_pass_compare_elim_after_reload): ...new function.
18315         (pass_sched2): Replace declaration with that of...
18316         (make_pass_sched2): ...new function.
18317         (pass_stack_regs): Replace declaration with that of...
18318         (make_pass_stack_regs): ...new function.
18319         (pass_stack_regs_run): Replace declaration with that of...
18320         (make_pass_stack_regs_run): ...new function.
18321         (pass_df_finish): Replace declaration with that of...
18322         (make_pass_df_finish): ...new function.
18323         (pass_compute_alignments): Replace declaration with that of...
18324         (make_pass_compute_alignments): ...new function.
18325         (pass_duplicate_computed_gotos): Replace declaration with that of...
18326         (make_pass_duplicate_computed_gotos): ...new function.
18327         (pass_variable_tracking): Replace declaration with that of...
18328         (make_pass_variable_tracking): ...new function.
18329         (pass_free_cfg): Replace declaration with that of...
18330         (make_pass_free_cfg): ...new function.
18331         (pass_machine_reorg): Replace declaration with that of...
18332         (make_pass_machine_reorg): ...new function.
18333         (pass_cleanup_barriers): Replace declaration with that of...
18334         (make_pass_cleanup_barriers): ...new function.
18335         (pass_delay_slots): Replace declaration with that of...
18336         (make_pass_delay_slots): ...new function.
18337         (pass_split_for_shorten_branches): Replace declaration with that of...
18338         (make_pass_split_for_shorten_branches): ...new function.
18339         (pass_split_before_regstack): Replace declaration with that of...
18340         (make_pass_split_before_regstack): ...new function.
18341         (pass_convert_to_eh_region_ranges): Replace declaration with that
18342         of...
18343         (make_pass_convert_to_eh_region_ranges): ...new function.
18344         (pass_shorten_branches): Replace declaration with that of...
18345         (make_pass_shorten_branches): ...new function.
18346         (pass_set_nothrow_function_flags): Replace declaration with that of...
18347         (make_pass_set_nothrow_function_flags): ...new function.
18348         (pass_dwarf2_frame): Replace declaration with that of...
18349         (make_pass_dwarf2_frame): ...new function.
18350         (pass_final): Replace declaration with that of...
18351         (make_pass_final): ...new function.
18352         (pass_rtl_seqabstr): Replace declaration with that of...
18353         (make_pass_rtl_seqabstr): ...new function.
18354         (pass_release_ssa_names): Replace declaration with that of...
18355         (make_pass_release_ssa_names): ...new function.
18356         (pass_early_inline): Replace declaration with that of...
18357         (make_pass_early_inline): ...new function.
18358         (pass_inline_parameters): Replace declaration with that of...
18359         (make_pass_inline_parameters): ...new function.
18360         (pass_update_address_taken): Replace declaration with that of...
18361         (make_pass_update_address_taken): ...new function.
18362         (pass_convert_switch): Replace declaration with that of...
18363         (make_pass_convert_switch): ...new function.
18364         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
18365         to a subclass of simple_ipa_opt_pass along with...
18366         (pass_data_ipa_tree_profile): ...new pass_data instance and...
18367         (make_pass_ipa_tree_profile): ...new function.
18368         * tree-sra.c (pass_sra_early): Convert from a global struct to a
18369         subclass of gimple_opt_pass along with...
18370         (pass_data_sra_early): ...new pass_data instance and...
18371         (make_pass_sra_early): ...new function.
18372         (pass_sra): Convert from a global struct to a subclass of
18373         gimple_opt_pass along with...
18374         (pass_data_sra): ...new pass_data instance and...
18375         (make_pass_sra): ...new function.
18376         (pass_early_ipa_sra): Convert from a global struct to a subclass of
18377         gimple_opt_pass along with...
18378         (pass_data_early_ipa_sra): ...new pass_data instance and...
18379         (make_pass_early_ipa_sra): ...new function.
18380         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
18381         subclass of gimple_opt_pass along with...
18382         (pass_data_ccp): ...new pass_data instance and...
18383         (make_pass_ccp): ...new function.
18384         (pass_fold_builtins): Convert from a global struct to a subclass of
18385         gimple_opt_pass along with...
18386         (pass_data_fold_builtins): ...new pass_data instance and...
18387         (make_pass_fold_builtins): ...new function.
18388         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
18389         subclass of gimple_opt_pass along with...
18390         (pass_data_copy_prop): ...new pass_data instance and...
18391         (make_pass_copy_prop): ...new function.
18392         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
18393         global struct to a subclass of gimple_opt_pass along with...
18394         (pass_data_rename_ssa_copies): ...new pass_data instance and...
18395         (make_pass_rename_ssa_copies): ...new function.
18396         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
18397         subclass of gimple_opt_pass along with...
18398         (pass_data_dce): ...new pass_data instance and...
18399         (make_pass_dce): ...new function.
18400         (pass_dce_loop): Convert from a global struct to a subclass of
18401         gimple_opt_pass along with...
18402         (pass_data_dce_loop): ...new pass_data instance and...
18403         (make_pass_dce_loop): ...new function.
18404         (pass_cd_dce): Convert from a global struct to a subclass of
18405         gimple_opt_pass along with...
18406         (pass_data_cd_dce): ...new pass_data instance and...
18407         (make_pass_cd_dce): ...new function.
18408         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
18409         subclass of gimple_opt_pass along with...
18410         (pass_data_dominator): ...new pass_data instance and...
18411         (make_pass_dominator): ...new function.
18412         (pass_phi_only_cprop): Convert from a global struct to a subclass of
18413         gimple_opt_pass along with...
18414         (pass_data_phi_only_cprop): ...new pass_data instance and...
18415         (make_pass_phi_only_cprop): ...new function.
18416         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
18417         subclass of gimple_opt_pass along with...
18418         (pass_data_dse): ...new pass_data instance and...
18419         (make_pass_dse): ...new function.
18420         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
18421         a subclass of gimple_opt_pass along with...
18422         (pass_data_forwprop): ...new pass_data instance and...
18423         (make_pass_forwprop): ...new function.
18424         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
18425         struct to a subclass of gimple_opt_pass along with...
18426         (pass_data_tree_ifcombine): ...new pass_data instance and...
18427         (make_pass_tree_ifcombine): ...new function.
18428         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
18429         subclass of gimple_opt_pass along with...
18430         (pass_data_ch): ...new pass_data instance and...
18431         (make_pass_ch): ...new function.
18432         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
18433         subclass of gimple_opt_pass along with...
18434         (pass_data_tree_loop): ...new pass_data instance and...
18435         (make_pass_tree_loop): ...new function.
18436         (pass_tree_loop_init): Convert from a global struct to a subclass of
18437         gimple_opt_pass along with...
18438         (pass_data_tree_loop_init): ...new pass_data instance and...
18439         (make_pass_tree_loop_init): ...new function.
18440         (pass_lim): Convert from a global struct to a subclass of
18441         gimple_opt_pass along with...
18442         (pass_data_lim): ...new pass_data instance and...
18443         (make_pass_lim): ...new function.
18444         (pass_tree_unswitch): Convert from a global struct to a subclass of
18445         gimple_opt_pass along with...
18446         (pass_data_tree_unswitch): ...new pass_data instance and...
18447         (make_pass_tree_unswitch): ...new function.
18448         (pass_predcom): Convert from a global struct to a subclass of
18449         gimple_opt_pass along with...
18450         (pass_data_predcom): ...new pass_data instance and...
18451         (make_pass_predcom): ...new function.
18452         (pass_vectorize): Convert from a global struct to a subclass of
18453         gimple_opt_pass along with...
18454         (pass_data_vectorize): ...new pass_data instance and...
18455         (make_pass_vectorize): ...new function.
18456         (pass_graphite): Convert from a global struct to a subclass of
18457         gimple_opt_pass along with...
18458         (pass_data_graphite): ...new pass_data instance and...
18459         (make_pass_graphite): ...new function.
18460         (pass_graphite_transforms): Convert from a global struct to a subclass
18461         of gimple_opt_pass along with...
18462         (pass_data_graphite_transforms): ...new pass_data instance and...
18463         (make_pass_graphite_transforms): ...new function.
18464         (pass_check_data_deps): Convert from a global struct to a subclass of
18465         gimple_opt_pass along with...
18466         (pass_data_check_data_deps): ...new pass_data instance and...
18467         (make_pass_check_data_deps): ...new function.
18468         (pass_iv_canon): Convert from a global struct to a subclass of
18469         gimple_opt_pass along with...
18470         (pass_data_iv_canon): ...new pass_data instance and...
18471         (make_pass_iv_canon): ...new function.
18472         (pass_scev_cprop): Convert from a global struct to a subclass of
18473         gimple_opt_pass along with...
18474         (pass_data_scev_cprop): ...new pass_data instance and...
18475         (make_pass_scev_cprop): ...new function.
18476         (pass_record_bounds): Convert from a global struct to a subclass of
18477         gimple_opt_pass along with...
18478         (pass_data_record_bounds): ...new pass_data instance and...
18479         (make_pass_record_bounds): ...new function.
18480         (pass_complete_unroll): Convert from a global struct to a subclass of
18481         gimple_opt_pass along with...
18482         (pass_data_complete_unroll): ...new pass_data instance and...
18483         (make_pass_complete_unroll): ...new function.
18484         (pass_complete_unrolli): Convert from a global struct to a subclass of
18485         gimple_opt_pass along with...
18486         (pass_data_complete_unrolli): ...new pass_data instance and...
18487         (make_pass_complete_unrolli): ...new function.
18488         (pass_parallelize_loops): Convert from a global struct to a subclass
18489         of gimple_opt_pass along with...
18490         (pass_data_parallelize_loops): ...new pass_data instance and...
18491         (make_pass_parallelize_loops): ...new function.
18492         (pass_loop_prefetch): Convert from a global struct to a subclass of
18493         gimple_opt_pass along with...
18494         (pass_data_loop_prefetch): ...new pass_data instance and...
18495         (make_pass_loop_prefetch): ...new function.
18496         (pass_iv_optimize): Convert from a global struct to a subclass of
18497         gimple_opt_pass along with...
18498         (pass_data_iv_optimize): ...new pass_data instance and...
18499         (make_pass_iv_optimize): ...new function.
18500         (pass_tree_loop_done): Convert from a global struct to a subclass of
18501         gimple_opt_pass along with...
18502         (pass_data_tree_loop_done): ...new pass_data instance and...
18503         (make_pass_tree_loop_done): ...new function.
18504         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
18505         struct to a subclass of gimple_opt_pass along with...
18506         (pass_data_cse_reciprocals): ...new pass_data instance and...
18507         (make_pass_cse_reciprocals): ...new function.
18508         (pass_cse_sincos): Convert from a global struct to a subclass of
18509         gimple_opt_pass along with...
18510         (pass_data_cse_sincos): ...new pass_data instance and...
18511         (make_pass_cse_sincos): ...new function.
18512         (pass_optimize_bswap): Convert from a global struct to a subclass of
18513         gimple_opt_pass along with...
18514         (pass_data_optimize_bswap): ...new pass_data instance and...
18515         (make_pass_optimize_bswap): ...new function.
18516         (pass_optimize_widening_mul): Convert from a global struct to a
18517         subclass of gimple_opt_pass along with...
18518         (pass_data_optimize_widening_mul): ...new pass_data instance and...
18519         (make_pass_optimize_widening_mul): ...new function.
18520         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
18521         subclass of gimple_opt_pass along with...
18522         (pass_data_phiopt): ...new pass_data instance and...
18523         (make_pass_phiopt): ...new function.
18524         (pass_cselim): Convert from a global struct to a subclass of
18525         gimple_opt_pass along with...
18526         (pass_data_cselim): ...new pass_data instance and...
18527         (make_pass_cselim): ...new function.
18528         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
18529         subclass of gimple_opt_pass along with...
18530         (pass_data_phiprop): ...new pass_data instance and...
18531         (make_pass_phiprop): ...new function.
18532         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
18533         subclass of gimple_opt_pass along with...
18534         (pass_data_pre): ...new pass_data instance and...
18535         (make_pass_pre): ...new function.
18536         (pass_fre): Convert from a global struct to a subclass of
18537         gimple_opt_pass along with...
18538         (pass_data_fre): ...new pass_data instance and...
18539         (make_pass_fre): ...new function.
18540         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
18541         subclass of gimple_opt_pass along with...
18542         (pass_data_reassoc): ...new pass_data instance and...
18543         (make_pass_reassoc): ...new function.
18544         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
18545         subclass of gimple_opt_pass along with...
18546         (pass_data_sink_code): ...new pass_data instance and...
18547         (make_pass_sink_code): ...new function.
18548         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
18549         subclass of gimple_opt_pass along with...
18550         (pass_data_strlen): ...new pass_data instance and...
18551         (make_pass_strlen): ...new function.
18552         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
18553         struct to a subclass of gimple_opt_pass along with...
18554         (pass_data_build_alias): ...new pass_data instance and...
18555         (make_pass_build_alias): ...new function.
18556         (pass_build_ealias): Convert from a global struct to a subclass of
18557         gimple_opt_pass along with...
18558         (pass_data_build_ealias): ...new pass_data instance and...
18559         (make_pass_build_ealias): ...new function.
18560         (pass_ipa_pta): Convert from a global struct to a subclass of
18561         simple_ipa_opt_pass along with...
18562         (pass_data_ipa_pta): ...new pass_data instance and...
18563         (make_pass_ipa_pta): ...new function.
18564         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
18565         subclass of gimple_opt_pass along with...
18566         (pass_data_uncprop): ...new pass_data instance and...
18567         (make_pass_uncprop): ...new function.
18568         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
18569         global struct to a subclass of gimple_opt_pass along with...
18570         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
18571         (make_pass_late_warn_uninitialized): ...new function.
18572         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
18573         to a subclass of gimple_opt_pass along with...
18574         (pass_data_init_datastructures): ...new pass_data instance and...
18575         (make_pass_init_datastructures): ...new function.
18576         (pass_early_warn_uninitialized): Convert from a global struct to a
18577         subclass of gimple_opt_pass along with...
18578         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
18579         (make_pass_early_warn_uninitialized): ...new function.
18580         (pass_update_address_taken): Convert from a global struct to a
18581         subclass of gimple_opt_pass along with...
18582         (pass_data_update_address_taken): ...new pass_data instance and...
18583         (make_pass_update_address_taken): ...new function.
18584         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
18585         struct to a subclass of gimple_opt_pass along with...
18586         (pass_data_release_ssa_names): ...new pass_data instance and...
18587         (make_pass_release_ssa_names): ...new function.
18588         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
18589         subclass of gimple_opt_pass along with...
18590         (pass_data_stdarg): ...new pass_data instance and...
18591         (make_pass_stdarg): ...new function.
18592         * tree-switch-conversion.c (pass_convert_switch): Convert from a
18593         global struct to a subclass of gimple_opt_pass along with...
18594         (pass_data_convert_switch): ...new pass_data instance and...
18595         (make_pass_convert_switch): ...new function.
18596         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
18597         to a subclass of gimple_opt_pass along with...
18598         (pass_data_tail_recursion): ...new pass_data instance and...
18599         (make_pass_tail_recursion): ...new function.
18600         (pass_tail_calls): Convert from a global struct to a subclass of
18601         gimple_opt_pass along with...
18602         (pass_data_tail_calls): ...new pass_data instance and...
18603         (make_pass_tail_calls): ...new function.
18604         * tree-vect-generic.c (pass_lower_vector): Convert from a global
18605         struct to a subclass of gimple_opt_pass along with...
18606         (pass_data_lower_vector): ...new pass_data instance and...
18607         (make_pass_lower_vector): ...new function.
18608         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
18609         gimple_opt_pass along with...
18610         (pass_data_lower_vector_ssa): ...new pass_data instance and...
18611         (make_pass_lower_vector_ssa): ...new function.
18612         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
18613         to a subclass of gimple_opt_pass along with...
18614         (pass_data_slp_vectorize): ...new pass_data instance and...
18615         (make_pass_slp_vectorize): ...new function.
18616         (pass_ipa_increase_alignment): Convert from a global struct to a
18617         subclass of simple_ipa_opt_pass along with...
18618         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
18619         (make_pass_ipa_increase_alignment): ...new function.
18620         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
18621         gimple_opt_pass along with...
18622         (pass_data_vrp): ...new pass_data instance and...
18623         (make_pass_vrp): ...new function.
18624         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
18625         subclass of simple_ipa_opt_pass along with...
18626         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
18627         (make_pass_ipa_free_lang_data): ...new function.
18628         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
18629         gimple_opt_pass along with...
18630         (pass_data_tsan): ...new pass_data instance and...
18631         (make_pass_tsan): ...new function.
18632         (pass_tsan_O0): Convert from a global struct to a subclass of
18633         gimple_opt_pass along with...
18634         (pass_data_tsan_O0): ...new pass_data instance and...
18635         (make_pass_tsan_O0): ...new function.
18636         * var-tracking.c (pass_variable_tracking): Convert from a global
18637         struct to a subclass of rtl_opt_pass along with...
18638         (pass_data_variable_tracking): ...new pass_data instance and...
18639         (make_pass_variable_tracking): ...new function.
18640         * web.c (pass_web): Convert from a global struct to a subclass of
18641         rtl_opt_pass along with...
18642         (pass_data_web): ...new pass_data instance and...
18643         (make_pass_web): ...new function.
18644         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
18645         declaration with that of...
18646         (make_pass_mode_switch_use): ...new function.
18647         (pass_resolve_sw_modes): Replace declaration with that of...
18648         (make_pass_resolve_sw_modes): ...new function.
18649         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
18650         from a global struct to a subclass of rtl_opt_pass along with...
18651         (pass_data_mode_switch_use): ...new pass_data instance and...
18652         (make_pass_mode_switch_use): ...new function.
18653         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
18654         from a global struct to a subclass of rtl_opt_pass along with...
18655         (pass_data_resolve_sw_modes): ...new pass_data instance and...
18656         (make_pass_resolve_sw_modes): ...new function.
18657         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
18658         struct to a subclass of rtl_opt_pass along with...
18659         (pass_data_insert_vzeroupper): ...new pass_data instance and...
18660         (make_pass_insert_vzeroupper): ...new function.
18661         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
18662         global struct to a subclass of rtl_opt_pass along with...
18663         (pass_data_work_around_errata): ...new pass_data instance and...
18664         (make_pass_work_around_errata): ...new function.
18665         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
18666         struct to a subclass of rtl_opt_pass along with...
18667         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
18668         (make_pass_mips_machine_reorg2): ...new function.
18670 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
18672         * passes.c (pass_manager::operator new): New.
18674 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
18676         Handwritten part of conversion of passes to C++ classes.
18678         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
18679         (toplev.o): Add dep on PASS_MANAGER_H.
18680         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
18681         of early local pases to reflect this moving from a global to a
18682         member of gcc::pass_manager.
18683         (cgraph_add_new_function): Likewise.
18684         * lto-cgraph.c (lto_output_node): Update for conversion of
18685         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
18686         * passes.c (opt_pass::clone): New.
18687         (opt_pass::gate): New.
18688         (opt_pass::execute): New.
18689         (opt_pass::opt_pass): New.
18690         (pass_manager::execute_early_local_passes): New.
18691         (pass_manager::execute_pass_mode_switching): new.
18692         (finish_optimization_passes): Convert to...
18693         (pass_manager::finish_optimization_passes): ...this.
18694         (finish_optimization_passes): Update for conversion of passes to
18695         C++ classes.
18696         (register_dump_files_1): Use has_gate since we cannot portably
18697         check a vtable entry against NULL.
18698         (dump_one_pass): Likewise.
18699         (ipa_write_summaries_2): Likewise.
18700         (ipa_write_optimization_summaries_1): Likewise.
18701         (ipa_read_summaries_1): Likewise.
18702         (ipa_read_optimization_summaries_1): Likewise.
18703         (execute_ipa_stmt_fixups): Likewise.
18704         (pass_manager::pass_manager): Rewrite pass-creation, invoking
18705         pass-creation functions rather than wiring up globals, and
18706         storing the results in fields of pass_manager generated using
18707         pass-instances.def.
18708         (pass_manager::dump_profile_report): Update for conversion of
18709         passes to C++ classes.
18710         (pass_manager::execute_ipa_summary_passes): Likewise.
18711         (execute_one_ipa_transform_pass): Likewise.
18712         (execute_one_pass): Use has_gate and has_execute since we cannot
18713         portably check a vtable entry against NULL.
18714         * pass_manager.h (pass_manager::finish_optimization_passes): New.
18715         (pass_manager): Use pass-instances.def to add fields for the
18716         various pass instances.
18717         * toplev.c (finalize): Update for move of
18718         finish_optimization_passes to a method of gcc::pass_manager.
18719         * toplev.h (finish_optimization_passes): Move to method of class
18720         pass_manager.
18721         * tree-pass.h (struct pass_data): New.
18722         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
18723         (opt_pass::gate): Convert to virtual function.
18724         (opt_pass::~opt_pass): New.
18725         (opt_pass::clone): New.
18726         (opt_pass::execute): Convert to virtual function.
18727         (opt_pass::opt_pass): New.
18728         (opt_pass::ctxt_): new.
18729         (gimple_opt_pass): Convert to subclass of opt_pass.
18730         (gimple_opt_pass::gimple_opt_pass): New.
18731         (rtl_opt_pass): Convert to subclass of opt_pass.
18732         (rtl_opt_pass::rtl_opt_pass): New.
18733         (ipa_opt_pass_d): Convert to subclass of opt_pass.
18734         (ipa_opt_pass_d::ipa_opt_pass_d): New.
18735         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
18736         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
18737         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
18738         invocation of pass_mode_switching to reflect this moving from a
18739         global to a member of gcc::pass_manager.
18740         (ix86_option_override): Rework how pass_insert_vzeroupper is
18741         added to the pass_manager to reflect autogenerated changes.
18742         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
18744 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
18746         PR rtl-optimization/57708
18747         * recog.c (peep2_find_free_register): Validate all regs in a
18748         multi-reg mode.
18750 2013-08-05  Jan Hubicka  <jh@suse.cz>
18752         PR lto/57602
18753         * cgraph.c (verify_cgraph_node): Accept local flags from other
18754         partitions.
18755         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
18756         (function_and_variable_visibility): Likewise.
18757         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
18759 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18761         * graph.c (init_graph_slim_pretty_print): Remove.
18762         (print_graph_cfg): Do not call it.  Use local pretty printer.
18763         (start_graph_dump): Likewise.
18765 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18767         * gimple-pretty-print.c (buffer): Remove.
18768         (initialized): Likewise.
18769         (maybe_init_pretty_print): Likewise.
18770         (print_gimple_stmt): Do not call it.  Use non-static local
18771         pretty_printer variable.
18772         (print_gimple_expr): Likewise.
18773         (print_gimple_seq): Likewise.
18774         (gimple_dump_bb): Likewise.
18776 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18778         * asan.c (asan_pp): Remove.
18779         (asan_pp_initialized): Likewise.
18780         (asan_pp_initialize): Likewise.
18781         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
18782         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
18783         (asan_add_global): Likewise.
18785 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18787         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
18788         * diagnostic.h (diagnostic_flush_buffer): Adjust.
18789         * pretty-print.c (pp_formatted_text_data): Likewise.
18790         (pp_indent): Rename from pp_base_indent.
18791         (pp_format): Rename from pp_base_format.
18792         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
18793         (pp_format_verbatim): Rename from pp_base_format_verbatim.
18794         (pp_flush): Rename from pp_base_flush.
18795         (pp_set_line_maximum_length): Rename from
18796         pp_base_set_line_maximum_length.
18797         (pp_clear_output_area): Rename from pp_base_clear_output_area.
18798         (pp_set_prefix): Rename from pp_base_set_prefix.
18799         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
18800         (pp_emit_prefix): Rename from pp_base_emit_prefix.
18801         (pp_append_text): Rename from pp_base_append_text.
18802         (pp_formatted_text): Rename from pp_base_formatted_text.
18803         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
18804         (pp_remaining_character_count_for_line): Rename from
18805         pp_base_remaining_character_count_for_line.
18806         (pp_newline): Rename from pp_base_newline.
18807         (pp_character): Rename from pp_base_character.
18808         (pp_string): Rename from pp_base_string.
18809         (pp_maybe_space): Rename from pp_base_maybe_space.
18810         * asan.c (asan_pp_string): Adjust.
18811         (asan_emit_stack_protection): Likewise.
18812         (asan_add_global): Likewise.
18813         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
18814         * tree-mudflap.c (mf_varname_tree): Likewise.
18815         * tree-pretty-print.c (pp_tree_identifier): Rename from
18816         pp_base_tree_identifier.
18817         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
18818         Declare as function.
18820 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18822         * pretty-print.h (pp_bar_bar): New.
18823         (pp_ampersand_ampersand): Likewise.
18824         (pp_less_equal): Likewise.
18825         (pp_greater_equal): Likewise.
18826         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
18827         printer functions instead of pp_string or operators and punctuators.
18828         (dump_gimple_call): Likewise.
18829         (dump_gimple_omp_for): Likewise.
18830         (dump_gimple_transaction): Likewise.
18831         (dump_gimple_phi): Likewise.
18832         (pp_gimple_stmt_1): Likewise.
18833         * sched-vis.c (print_insn): Likewise.
18834         * tree-mudflap.c (mf_varname_tree): Likewise.
18835         * tree-pretty-print.c (dump_block_node): Likewise.
18836         (dump_generic_node): Likewise.
18838 2013-08-02  Jan Hubicka  <jh@suse.cz>
18840         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
18841         boundaries.
18842         * lto-streamer-out.c (tree_is_indexable): Results decls and
18843         parm decls are not indexable.
18844         (DFS_write_tree_body): Do not follow args and results.
18845         (hash_tree): Likewise.
18846         (output_functions): Rearrange so struct function is needed
18847         only when real body is output; be able to also ouptut abstract
18848         functions; output DECL_ARGUMENTS and DECL_RESULT.
18849         (lto_output): When not in WPA, ale store abstract functions.
18850         (write_symbol): Do not care about RESULT_DECL.
18851         (output_symbol_p): Handle correctly sbtract decls.
18852         * lto-streamer-in.c (input_function): Rearrange so struct
18853         function can be NULL at entry; allow streaming of
18854         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
18855         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
18856         sanity check during LTO.
18857         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
18858         RESULT_DECl and DECL_ARGUMENTS.
18859         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
18860         Likewise.
18862 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18864         * pretty-print.h (pp_underscore): New.
18865         (pp_comma): Tidy.
18866         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
18867         printer functions instead of pp_character.
18868         (dump_binary_rhs): Likewise.
18869         (dump_ternary_rhs): Likewise.
18870         (dump_gimple_call_args): Likewise.
18871         (pp_points_to_solution): Likewise.
18872         (dump_gimple_call): Likewise.
18873         (dump_gimple_switch): Likewise.
18874         (dump_gimple_cond): Likewise.
18875         (dump_gimple_bind): Likewise.
18876         (dump_gimple_try): Likewise.
18877         (dump_gimple_omp_for): Likewise.
18878         (dump_gimple_omp_continue): Likewise.
18879         (dump_gimple_omp_single): Likewise.
18880         (dump_gimple_omp_sections): Likewise.
18881         (dump_gimple_omp_block): Likewise.
18882         (dump_gimple_omp_critical): Likewise.
18883         (dump_gimple_transaction): Likewise.
18884         (dump_gimple_asm): Likewise.
18885         (dump_gimple_phi): Likewise.
18886         (dump_gimple_omp_parallel): Likewise.
18887         (dump_gimple_omp_task): Likewise.
18888         (dump_gimple_omp_atomic_load): Likewise.
18889         (dump_gimple_omp_atomic_store): Likewise.
18890         (dump_gimple_mem_ops): Likewise.
18891         (pp_gimple_stmt_1): Likewise.
18892         (pp_cfg_jump): Likewise.
18893         (dump_implicit_edges): Likewise.
18894         (gimple_dump_bb_for_graph): Likewise.
18895         * graph.c (draw_cfg_node): Likewise.
18896         * langhooks.c (lhd_print_error_function): Likewise.
18897         * sched-vis.c (print_exp): Likewise.
18898         (print_value): Likewise.
18899         (print_pattern): Likewise.
18900         (print_insn): Likewise.
18901         (rtl_dump_bb_for_graph): Likewise.
18902         * tree-pretty-print.c (dump_function_declaration): Likewise.
18903         (dump_array_domain): Likewise.
18904         (dump_omp_clause): Likewise.
18905         (dump_location): Likewise.
18906         (dump_generic_node): Likewise.
18907         (print_struct_decl): Likewise.
18908         * diagnostic.c (diagnostic_show_locus): Use pp_space.
18910 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
18912         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
18913         candidate table when replacing a candidate statement.
18914         (replace_rhs_if_not_dup): Likewise.
18915         (replace_one_candidate): Likewise.
18917 2013-08-02  Jan Hubicka  <jh@suse.cz>
18918             Martin Liska  <marxin.liska@gmail.com>
18920         * cgraphunit.c (add_new_function): Fix logic when adding from
18921         late IPA pass.
18922         (assemble_thunk): Rename to ...
18923         (expand_thunk); .. this one; export; get it working with
18924         general functions; make produced gimple valid.
18925         * cgraph.h (expand_thunk): Declare.
18927 2013-08-02  Jan Hubicka  <jh@suse.cz>
18929         * ipa-cp.c (gather_context_independent_values): Use
18930         ipa_get_param_move_cost.
18931         (get_replacement_map): Remove PARAM; move parameter folding
18932         into tree-inline.c
18933         (create_specialized_node): Update.
18934         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
18935         assert that we have gimple body; update move_cost.
18936         (count_formal_params): Assert that we have gimple body.
18937         (ipa_dump_param): New function.
18938         (ipa_alloc_node_params): Break out from ...
18939         (ipa_initialize_node_params): ... here.
18940         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
18941         (ipa_write_node_info): Stream move costs.
18942         (ipa_read_node_info): Read move costs.
18943         (ipa_update_after_lto_read): Do not recompute node params.
18944         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
18945         (ipa_get_param): Check we are not in WPA.
18946         (ipa_get_param_move_cost): New.
18947         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
18948         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
18949         parm numbers to be present.
18951 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
18953         PR rtl-optimization/58048
18954         * lra-constraints.c (process_alt_operands): Don't check asm
18955         operand on register.
18957 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
18959         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
18960         the implied StoreLoad barrier for atomic operations if before.
18962 2013-08-02  Jan Hubicka  <jh@suse.cz>
18963             Martin Liska  <marxin.liska@gmail.com>
18965         * cgraph.c (cgraph_function_body_availability): Do not check
18966         cgraph flags.
18967         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
18968         symtab_node_availability): Declare.
18969         * ipa.c (can_replace_by_local_alias): New.
18970         (function_and_variable_visibility): Use it.
18971         * symtab.c (symtab_for_node_and_aliases,
18972         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
18974 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
18976         PR rtl-optimization/57963
18977         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
18978         (lra_constraints): Use them.
18980 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
18982         * config/arm/types.md (define_attr "type"): Add "load_acq"
18983         and "store_rel".
18984         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
18985         changes.
18986         (cortex_a53_store1): Likewise.
18988 2013-08-01  Jan Hubicka  <jh@suse.cz>
18990         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
18991         partitions are not needed.
18993 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
18995         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
18996         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
18997         MAYBE_NON_Q_CLASS_P where appropriate.
18999 2013-08-01  Jan Hubicka  <jh@suse.cz>
19001         * cgraph.h (release_function_body): Declare.
19002         * tree.c (free_lang_data_in_decl): Free, parameters and return values
19003         of unused delcarations.
19005 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19007         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
19008         RTL form when subtracting a constant.
19010 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19012         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
19013         Generate canonical plus rtx with negated immediate instead of minus
19014         where appropriate.
19015         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
19017 2013-08-01  Jan Hubicka  <jh@suse.cz>
19019         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
19020         (cgraph_release_function_body): Likewise.
19021         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
19022         * cgraph.h (cgrpah_node): Rename abstract_and_needed
19023         to used_as_abstract_origin.
19024         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
19025         symbols used as abstract origins.
19026         * cgraphunit.c (analyze_functions): Update.
19027         * ipa.c (symtab_remove_unreachable_nodes): Recompute
19028         used_as_abstract_origin.
19029         * tree-inline.c (tree_function_versioning): Update
19030         used_as_abstract_origin; be ready for DECL_RESULT and
19031         DECL_ARGUMENTS to be NULL.
19033         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
19034         for abstract functions.
19035         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
19036         real symbols.
19038 2013-08-01  Jan Hubicka  <jh@suse.cz>
19040         * profile.c (compute_value_histograms): Fix thinko.
19042 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
19044         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
19045         aarch-common-protos.h to extra_headers.
19046         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
19047         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
19048         * config/aarch64/t-aarch64 (aarch-common.o): Define.
19050 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
19052         * config/aarch64/aarch64.md (define_attr "type"): Delete.
19053         Include "../arm/types.md".  Define "type" attribute for all patterns.
19054         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
19055         attribute changes.
19057 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
19059         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
19060         to support power8 load fusion.
19061         (fusion_gpr_mem_load): Likewise.
19063         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
19065         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
19066         declarations for power8 load fusion.
19067         (emit_fusion_gpr_load): Likewise.
19069         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19070         tuning for power8, turn on fusion mode by default.  Turn on sign
19071         extending fusion mode if normal fusion mode is on, and we are at
19072         -O2 or -O3.
19073         (fusion_gpr_load_p): New function, return true if we can fuse an
19074         addis instruction with a dependent load to a GPR.
19075         (emit_fusion_gpr_load): Emit the instructions for power8 load
19076         fusion to GPRs.
19078         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
19079         (VSX load fusion peepholes): New peepholes to fuse together an
19080         addi instruction with a VSX load instruction.
19082         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
19083         peepholes to fuse an addis instruction with a load to a GPR base
19084         register.  If we are supporting sign extending fusions, convert
19085         sign extending loads to zero extending loads and add an explicit
19086         sign extension.
19088 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
19090         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
19091         aarch-common-protos.h to extra_headers.
19092         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
19093         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
19094         (arm_early_store_addr_dep): Likewise.
19095         (arm_no_early_alu_shift_dep): Likewise.
19096         (arm_no_early_alu_shift_value_dep): Likewise.
19097         (arm_no_early_mul_dep): Likewise.
19098         (arm_no_early_store_addr_dep): Likewise.
19099         (arm_mac_accumulator_is_mul_result): Likewise.
19100         (arm_mac_accumulator_is_result): Likewise.
19101         * config/arm/aarch-common.c: ... here.  New file.
19102         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
19103         here to ...
19104         (arm_early_store_addr_dep): Likewise.
19105         (arm_no_early_alu_shift_dep): Likewise.
19106         (arm_no_early_alu_shift_value_dep): Likewise.
19107         (arm_no_early_mul_dep): Likewise.
19108         (arm_no_early_store_addr_dep): Likewise.
19109         (arm_mac_accumulator_is_mul_result): Likewise.
19110         (arm_mac_accumulator_is_result): Likewise.
19111         * config/arm/aarch-common-protos.h: ... here.  New file.
19112         * config/arm/t-arm (aarch-common.o): Define.
19114 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
19116         * config/arm/arm.md: Include new file "types.md".
19117         (define_attr "type"): Move from here to ...
19118         (define_attr "mul32"): Likewise.
19119         (define_attr "mul64"): Likewise.
19120         * config/arm/types.md: ... here.  New file.
19122 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
19124         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
19125         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
19127 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
19129         * gen-pass-instances.awk: Fix offset of substr().
19131 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
19133         * Makefile.in (pass-instances.def): New.
19134         (passes.o): Replace dependency on passes.def with one on
19135         pass-instances.def
19137         * gen-pass-instances.awk: New.
19139         * passes.c (pass_manager::pass_manager): Use pass-instances.def
19140         rather than passes.def, updating local definition of NEXT_PASS
19141         macro to add an extra NUM parameter (currently unused).
19143 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
19145         * Makefile.in (PASS_MANAGER_H): New.
19146         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
19147         (passes.o): Likewise.
19148         (statistics.o): Likewise.
19149         (cgraphunit.o): Likewise.
19150         (context.o): Depend on PASS_MANAGER_H.
19152         * pass_manager.h: New.
19154         * cgraphunit.c (cgraph_add_new_function): Update for moves
19155         of globals to fields of pass_manager.
19156         (analyze_function): Likewise.
19157         (expand_function): Likewise.
19158         (ipa_passes): Likewise.
19159         (compile): Likewise.
19161         * context.c (context::context): New.
19162         * context.h  (context::context): New.
19163         (context::get_passes): New.
19164         (context::passes_): New.
19166         * lto-cgraph.c (input_node): Update for moves of globals to
19167         fields of pass_manager.
19169         * passes.c (all_passes): Remove, in favor of a field of the
19170         same name within the new class pass_manager.
19171         (all_small_ipa_passes): Likewise.
19172         (all_lowering_passes): Likewise.
19173         (all_regular_ipa_passes): Likewise.
19174         (all_late_ipa_passes): Likewise.
19175         (all_lto_gen_passes): Likewise.
19176         (passes_by_id): Likewise.
19177         (passes_by_id_size): Likewise.
19178         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19179         the new class pass_manager.
19180         (set_pass_for_id): Convert to...
19181         (pass_manager::set_pass_for_id): ...method.
19182         (get_pass_for_id): Convert to...
19183         (pass_manager::get_pass_for_id): ...method.
19184         (register_one_dump_file): Move body of implementation into...
19185         (pass_manager::register_one_dump_file): ...here.
19186         (register_dump_files_1): Convert to...
19187         (pass_manager::register_dump_files_1): ...method.
19188         (register_dump_files): Convert to...
19189         (pass_manager::register_dump_files): ...method.
19190         (create_pass_tab): Update for moves of globals to fields of
19191         pass_manager.
19192         (dump_passes): Move body of implementation into...
19193         (pass_manager::dump_passes): ...here.
19194         (register_pass): Move body of implementation into...
19195         (pass_manager::register_pass): ...here.
19196         (init_optimization_passes): Convert into...
19197         (pass_manager::pass_manager): ...constructor for new
19198         pass_manager class, and initialize the pass_lists array.
19199         (check_profile_consistency): Update for moves of globals to
19200         fields of pass_manager.
19201         (dump_profile_report): Move body of implementation into...
19202         (pass_manager::dump_profile_report): ...here.
19203         (ipa_write_summaries_1): Update for moves of pass lists from
19204         being globals to fields of pass_manager.
19205         (ipa_write_optimization_summaries): Likewise.
19206         (ipa_read_summaries):  Likewise.
19207         (ipa_read_optimization_summaries): Likewise.
19208         (execute_all_ipa_stmt_fixups): Likewise.
19210         * statistics.c (statistics_fini): Update for moves of globals to
19211         fields of pass_manager.
19213         * toplev.c (general_init): Replace call to
19214         init_optimization_passes with construction of the pass_manager
19215         instance.
19217         * tree-pass.h (all_passes): Remove, in favor of a field of the
19218         same name within the new class pass_manager.
19219         (all_small_ipa_passes): Likewise.
19220         (all_lowering_passes): Likewise.
19221         (all_regular_ipa_passes): Likewise.
19222         (all_lto_gen_passes): Likewise.
19223         (all_late_ipa_passes): Likewise.
19224         (passes_by_id): Likewise.
19225         (passes_by_id_size): Likewise.
19226         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19227         the new class pass_manager.
19228         (get_pass_for_id): Remove.
19230 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
19232         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
19233         configs.
19235 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
19237         * arm.md (mulhi3): New expand pattern.
19239 2013-07-30  Jan Hubicka  <jh@suse.cz>
19240             Martin Liska  <marxin.liska@gmail.com>
19242         * profile.c (compute_value_histograms): Do not ICE when
19243         there is mismatch only on some counters.
19245 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19247         PR rtl-optimization/57637
19248         * function.c (move_insn_for_shrink_wrap): Also check the
19249         GEN set of the LIVE problem for the liveness analysis
19250         if it exists, otherwise give up.
19252 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
19254         PR tree-optimization/57993
19255         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
19256         replaced statement in the candidate table.
19257         (phi_add_costs): Return infinite cost when the hidden basis does
19258         not dominate all phis on which the candidate is dependent.
19259         (replace_one_candidate): Record replaced statement in the
19260         candidate table.
19262 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
19264         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
19265         (ashlv2si3): New expander.
19266         (*ashlv2si3_i): New define_insn_and_split.
19267         * predicates.md (float_operation): Allow patterns with three
19268         basic sub-patterns.
19270         PR rtl-optimization/58021
19271         * mode-switching.c (create_pre_exit): Always split off preceding
19272         insns if we are not at the basic block head.
19274 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
19276         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
19277         (UCLIBC_DYNAMIC_LINKER): New macro.
19278         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
19279         `-mnan=2008'.
19280         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
19281         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
19282         `-mnan=2008'.
19283         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
19284         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
19285         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
19286         for SF and DF modes.  Use ieee_quad_format for TF mode.
19287         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
19288         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
19289         (mips_option_override): Handle `-mnan=legacy'.
19290         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
19291         `-mabs=2008' and `-mnan=2008'.
19292         (OPTION_DEFAULT_SPECS): Add "nan" default.
19293         (ASM_SPEC): Handle `-mnan='.
19294         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
19295         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
19296         comment accordingly.
19297         (neg<mode>2): Likewise.
19298         * config/mips/mips.opt (mabs, mnan): New options.
19299         * doc/install.texi (Configuration): Document `--with-nan=' option.
19300         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
19301         `-mnan=' options.
19302         (MIPS Options): Document them.
19303         * config.gcc <mips*-*-*>: Handle `--with-nan='.
19304         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
19305         * configure: Regenerate.
19306         * config.in: Regenerate.
19308 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
19310         * config/i386/i386.md (float post-reload splitters): Do not check
19311         for subregs of SSE registers.
19313 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
19314             H.J. Lu  <hongjiu.lu@intel.com>
19316         PR target/57954
19317         PR target/57988
19318         * config/i386/i386.md (post-reload splitter
19319         to avoid partial SSE reg dependency stalls): New pattern.
19321 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19323         * config/s390/s390.md ("movcc"): Swap load and store instructions.
19325 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
19327         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
19328         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
19330 2013-07-26  Cary Coutant  <ccoutant@google.com>
19332         * dwarf2out.c (die_checksum_ordered): Don't include template
19333         instantiations in signature.
19334         (is_template_parameter): New function.
19335         (is_template_instantiation): New function.
19336         (generate_skeleton_bottom_up): Don't include template instantiations
19337         in type unit DIE.
19338         (generate_skeleton): Likewise.
19339         (break_out_comdat_types): Move recursive call to break out nested
19340         types earlier.
19341         (prune_unused_types_mark_generic_parms_dies): Call
19342         is_template_parameter.
19344 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
19346         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
19347         uses vector registers.
19348         * config/aarch64/iterators.md: Add attributes rtn and vas.
19350 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19351             Richard Earnshaw  <richard.earnshaw@arm.com>
19353         * combine.c (simplify_comparison): Re-canonicalize operands
19354         where appropriate.
19355         * config/arm/arm.md (movcond_addsi): New splitter.
19357 2013-07-25  Sterling Augustine  <saugustine@google.com>
19359         * dwarf2out.c (size_of_pubnames): Move code to...
19360         (include_pubname_in_output): ...here.  New.
19361         (want_pubnames): Rearrange.
19362         (output_pubnames): Call include_pubname_in_output.  Move assertion.
19364 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
19366         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
19368 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
19370         PR target/38836
19371         * doc/extend.texi: Remove obsolete builtins. Fix
19372         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
19374 2013-07-25  Jan Hubicka  <jh@suse.cz>
19376         * cgraph.c (release_function_body): Break out from ...
19377         (cgraph_release_function_body): ... this one; also release DECL_RESULT
19378         and DECL_ARGUMENTS.
19379         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
19380         old_tree in the map.
19381         (create_specialized_node): Update.
19382         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
19383         into index.
19384         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
19385         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
19386         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
19387         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
19388         DECL_RESULT.
19390 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19392         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
19393         addsi3_carryin_alt2_<optab>): Correct output template.
19395 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19397         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
19398         Adjust for arm_restrict_it.
19399         Remove trailing whitespace.
19401 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
19403         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
19404         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
19406         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
19408 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
19410         PR rtl-optimization/57960
19411         * lra-constraints.c (process_alt_operands): Use the right mode
19412         when checking strict_low.
19414 2013-07-25  Jan Hubicka  <jh@suse.cz>
19416         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
19417         * cgraph.c (cgraph_remove_node): Do not release function body
19418         when in cgraph streaming.
19419         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
19420         in other partitions are not considered reachable; fix handling of
19421         clones.
19423 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19425         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
19427 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19429         PR target/19599
19430         PR target/57731
19431         PR target/57837
19432         * config/arm/arm.md ("*sibcall_insn): Replace use of
19433         Ss with US. Adjust output for v5 and v4t.
19434         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
19436         * config/arm/constraints.md ("Ss"): Rename to US.
19438 2013-07-25  Terry Guo  <terry.guo@arm.com>
19440         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
19441         shift_add/shift_sub0/shift_sub1 RTXs.
19443 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
19444             Anton Blanchard  <anton@au1.ibm.com>
19446         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
19447         (altivec_vpks<VI_char>ss): Likewise.
19448         (altivec_vpks<VI_char>us): Likewise.
19449         (altivec_vpku<VI_char>us): Likewise.
19450         (altivec_vpku<VI_char>um): Likewise.
19452 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
19454         Introduce context class.
19456         * Makefile.in (CONTEXT_H): New.
19457         (OBJS): Add context.o.
19458         (toplev.o): Add CONTEXT_H to dependencies.
19459         (context.o): New.
19461         * toplev.c (general_init): Create the singleton gcc::context instance.
19463         * context.c: New.
19465         * context.h: New.
19467 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
19469         PR rtl-optimization/57968
19470         * mode-switching.c (create_pre_exit): Allow instructions that
19471         don't set a return register to need a non-exit mode.
19473 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
19474             Anton Blanchard  <anton@au1.ibm.com>
19476         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
19477         operands to vperm for little endian.
19478         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
19479         of lvsl to create the control mask for a vperm for little endian.
19481 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19482             Anton Blanchard  <anton@au1.ibm.com>
19484         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
19485         two operands for little-endian.
19487 2013-07-23  Steve Ellcey  <sellcey@mips.com>
19489         * config/mips/mips.c (mips_case_values_threshold): New.
19490         (TARGET_CASE_VALUES_THRESHOLD): Define.
19492 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19493             Anton Blanchard  <anton@au1.ibm.com>
19495         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
19496         selection of field for vector splat in little endian mode.
19498 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
19500         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
19501         expanders to rs6000.md.
19502         (ior<mode>3): Likewise.
19503         (and<mode>3): Likewise.
19504         (one_cmpl<mode>2): Likewise.
19505         (nor<mode>3): Likewise.
19506         (andc<mode>3): Likewise.
19507         (eqv<mode>3): Likewise.
19508         (nand<mode>3): Likewise.
19509         (orc<mode>3): Likewise.
19511         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
19512         declaration.
19514         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
19515         to split multi-word logical operations.
19516         (rs6000_split_logical_di): Likewise.
19517         (rs6000_split_logical): Likewise.
19519         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
19520         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
19521         and allow TImode operations in 32-bit.
19522         (vsx_and<mode>3_64bit): Likewise.
19523         (vsx_ior<mode>3_32bit): Likewise.
19524         (vsx_ior<mode>3_64bit): Likewise.
19525         (vsx_xor<mode>3_32bit): Likewise.
19526         (vsx_xor<mode>3_64bit): Likewise.
19527         (vsx_one_cmpl<mode>2_32bit): Likewise.
19528         (vsx_one_cmpl<mode>2_64bit): Likewise.
19529         (vsx_nor<mode>3_32bit): Likewise.
19530         (vsx_nor<mode>3_64bit): Likewise.
19531         (vsx_andc<mode>3_32bit): Likewise.
19532         (vsx_andc<mode>3_64bit): Likewise.
19533         (vsx_eqv<mode>3_32bit): Likewise.
19534         (vsx_eqv<mode>3_64bit): Likewise.
19535         (vsx_nand<mode>3_32bit): Likewise.
19536         (vsx_nand<mode>3_64bit): Likewise.
19537         (vsx_orc<mode>3_32bit): Likewise.
19538         (vsx_orc<mode>3_64bit): Likewise.
19540         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
19541         logical types in GPRs.
19543         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
19544         logical insns to rs6000.md, and allow TImode operations in
19545         32-bit.
19546         (altivec_ior<mode>3): Likewise.
19547         (altivec_xor<mode>3): Likewise.
19548         (altivec_one_cmpl<mode>2): Likewise.
19549         (altivec_nor<mode>3): Likewise.
19550         (altivec_andc<mode>3): Likewise.
19552         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
19553         attributes for moving the 128-bit logical operations into
19554         rs6000.md.
19555         (BOOL_REGS_OUTPUT): Likewise.
19556         (BOOL_REGS_OP1): Likewise.
19557         (BOOL_REGS_OP2): Likewise.
19558         (BOOL_REGS_UNARY): Likewise.
19559         (BOOL_REGS_AND_CR0): Likewise.
19560         (one_cmpl<mode>2): Add support for DI logical operations on
19561         32-bit, splitting the operations to 32-bit.
19562         (anddi3): Likewise.
19563         (iordi3): Likewise.
19564         (xordi3): Likewise.
19565         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
19566         changes to combine the 32/64-bit code, allow logical operations on
19567         TI mode in 32-bit, and to use similar match_operator patterns like
19568         scalar mode uses.  Combine the Altivec and VSX code for logical
19569         operations, and move it here.
19570         (ior<mode>3, 128-bit types): Likewise.
19571         (xor<mode>3, 128-bit types): Likewise.
19572         (one_cmpl<mode>3, 128-bit types): Likewise.
19573         (nor<mode>3, 128-bit types): Likewise.
19574         (andc<mode>3, 128-bit types): Likewise.
19575         (eqv<mode>3, 128-bit types): Likewise.
19576         (nand<mode>3, 128-bit types): Likewise.
19577         (orc<mode>3, 128-bit types): Likewise.
19578         (and<mode>3_internal): Likewise.
19579         (bool<mode>3_internal): Likewise.
19580         (boolc<mode>3_internal1): Likewise.
19581         (boolc<mode>3_internal2): Likewise.
19582         (boolcc<mode>3_internal1): Likewise.
19583         (boolcc<mode>3_internal2): Likewise.
19584         (eqv<mode>3_internal1): Likewise.
19585         (eqv<mode>3_internal2): Likewise.
19586         (one_cmpl1<mode>3_internal): Likewise.
19588 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
19590         * config/microblaze/microblaze.c (microblaze_expand_prologue):
19591         Rename flag_stack_usage to flag_stack_usage_info.
19593 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
19595         * config/microblaze/sync.md: New file.
19596         * config/microblaze/microblaze.md: Include sync.md
19597         * config/microblaze/microblaze.c: Add print_operand 'y'.
19598         * config/microblaze/constraints.md: Add memory_contraint
19599         'Q' which is a single register.
19601 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
19603         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
19605 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
19607         * reload.c (find_reloads): Exit loop once we find this operand
19608         cannot be reloaded somehow for this alternative.
19610         * reload.c (find_reloads): Exit loop once we find a hard register.
19612         * rtlanal.c (computed_jump_p): Exit loop once we find label
19613         reference is used.
19615         * i386.c (ix86_pad_returns): Exit loop after setting replace.
19617         * cfgloopmanip.c (remove_path): Exit loop after setting
19618         irred_invalidated.
19620         * gensupport.c (subst_dup): Avoid loop if code is not
19621         MATCH_DUP nor MATCH_OP_DUP.
19623 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
19625         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
19627 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19629         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
19630         true for SP_REGNUM if mode == ptr_mode.
19631         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
19632         with value R0_REGNUM + 31.
19634 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19636         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
19637         pad pointer-typed argument downward.
19639 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19641         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
19642         and __ILP32__ when the ILP32 model is in use.
19644 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19646         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
19647         (aarch64_load_symref_appropriately): In the case of
19648         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
19649         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
19650         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
19651         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
19652         if 'mode' doesn't equal to 'ptr_mode'.
19653         (aarch64_output_mi_thunk): Add an assertion on the alignment of
19654         'vcall_offset'; change to call aarch64_emit_move differently depending
19655         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
19656         to calculate the upper bound of 'vcall_offset'.
19657         (aarch64_cannot_force_const_mem): Change to also return true if
19658         mode != ptr_mode.
19659         (aarch64_legitimize_reload_address): In the case of large
19660         displacements, add new local variable 'xmode' and an assertion
19661         based on it; change to use 'xmode' to generate the new rtx and
19662         reload.
19663         (aarch64_asm_trampoline_template): Change to generate the template
19664         differently depending on TARGET_ILP32 or not; change to use
19665         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
19666         (aarch64_trampoline_size): Removed.
19667         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
19668         and replace immediate literals with it.  Change to use 'ptr_mode'
19669         instead of 'DImode' and call convert_memory_address if the mode
19670         of 'fnaddr' doesn't equal to 'ptr_mode'.
19671         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
19672         to output symbol.
19673         (aarch64_elf_asm_destructor): Likewise.
19674         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
19675         on TARGET_ILP32 instead of aarch64_trampoline_size.
19676         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
19677         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
19678         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
19679         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
19680         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
19681         (storewb_pair<GPI:mode>_<P:mode>): ... this.
19682         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
19683         depending on the value of 'mode'.
19684         (add_losym_<mode>): New.
19685         (ldr_got_small_<mode>): New, based on ldr_got_small.
19686         (ldr_got_small): Remove.
19687         (ldr_got_small_sidi): New.
19688         * config/aarch64/iterators.md (P): New.
19689         (PTR): Change to 'ptr_mode' in the condition.
19691 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
19693         * config.gcc (aarch64*-*-*): Support --with-abi.
19694         (aarch64*-*-elf): Support --with-multilib-list.
19695         (aarch64*-*-linux*): Likewise.
19696         (supported_defaults): Add abi to aarch64*-*-*.
19697         * configure.ac: Mention AArch64 for --with-multilib-list.
19698         * configure: Re-generated.
19699         * config/aarch64/biarchilp32.h: New file.
19700         * config/aarch64/biarchlp64.h: New file.
19701         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
19702         (ABI_SPEC): Ditto.
19703         (MULTILIB_DEFAULTS): Ditto.
19704         (DRIVER_SELF_SPECS): Ditto.
19705         (ASM_SPEC): Update to also substitute -mabi.
19706         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
19707         file whose name depends on -mabi= and -mbig-endian.
19708         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
19709         TARGET_ILP32.
19710         (POINTER_SIZE): New define.
19711         (POINTERS_EXTEND_UNSIGNED): Ditto.
19712         (enum aarch64_abi_type): New enumeration tag.
19713         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
19714         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
19715         (TARGET_ILP32): New define.
19716         * config/aarch64/aarch64.opt (mabi): New.
19717         (aarch64_abi): New.
19718         (ilp32, lp64): New values for -mabi.
19719         * config/aarch64/t-aarch64 (comma): New define.
19720         (MULTILIB_OPTIONS): Ditto.
19721         (MULTILIB_DIRNAMES): Ditto.
19722         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
19723         * doc/invoke.texi: Document -mabi for AArch64.
19725 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
19727         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
19729 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
19730             Anton Blanchard  <anton@au1.ibm.com>
19732         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
19733         endianness when selecting field to splat.
19735 2013-07-22  Eric Christopher  <echristo@gmail.com>
19737         * dwarf2out.c (die_odr_checksum): New function to use
19738         CHECKSUM_ macros and ULEB128 for DIE tag.
19739         (generate_type_signature): Use.
19741 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
19743         * config.gcc (sparc*-*-*): Accept leon3 processor.
19744         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
19745         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
19746         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
19747         * config/sparc/sparc.opt (enum processor_type): Add leon3.
19748         (mfix-ut699): Adjust comment.
19749         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
19750         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
19751         (CPP_CPU_SPEC): Likewise.
19752         (ASM_CPU_SPEC): Likewise.
19753         * config/sparc/sparc.c (leon3_cost): New constant.
19754         (sparc_option_override): Add leon3 support.
19755         (mem_ref): New function.
19756         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
19757         (sparc_do_work_around_errata): Look into the instruction in the delay
19758         slot and adjust accordingly.  Add fix for the data cache nullify issues
19759         of the UT699.  Change insertion position for the NOP.
19760         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
19761         (leon3_load): New reservation.
19762         (leon_store): Bump latency to 2.
19763         (grfpu): New automaton.
19764         (grfpu_alu): New unit.
19765         (grfpu_ds): Likewise.
19766         (leon_fp_alu): Adjust.
19767         (leon_fp_mult): Delete.
19768         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
19769         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
19770         * config/sparc/sparc.md (cpu): Add leon3.
19771         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
19772         (swapsi): Likewise.
19773         (atomic_test_and_set): Likewise.
19774         (ldstub): Likewise.
19776 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
19778         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
19779         default for R5900 targets.
19780         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
19781         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
19782         * config/mips/mips.c (mips_option_override): Report an error for
19783         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
19784         for -march=r5900 -mhard-float.
19786 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
19788         * df-problems.c (can_move_insns_across): Exit loop once we
19789         find a non-fixed, non-global register.
19791         * ipa-pure-const.c (propagate_nothrow): Exit loop after
19792         setting can_throw.
19794         * omega.c (omega_eliminate_red): Break after setting red_found.
19795         (omega_problem_has_red_equations): Similarly after setting found.
19796         (omega_query_variable): Similarly after setting coupled.
19798 2013-07-22  Marek Polacek  <polacek@redhat.com>
19800         * gimplify.c: Don't include gimple.h twice.
19802 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19804         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
19805         instead of TARGET_THUMB1.
19806         (Pz): New constraint.
19807         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
19808         encodings.
19809         (compare_negsi_si): Likewise.
19810         (compare_addsi2_op0): Likewise.
19811         (compare_addsi2_op1): Likewise.
19812         (addsi3_carryin_<optab>): Likewise.
19813         (addsi3_carryin_alt2_<optab>): Likewise.
19814         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
19815         for arm_restrict_it.
19816         (subsi3_carryin): Likewise.
19817         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
19818         (minmax_arithsi): Disable for arm_restrict_it.
19819         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
19820         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
19821         (satsi_<SAT:code>_shift): Likewise.
19822         (arm_shiftsi3): Add alternative for 16-bit encoding.
19823         (arm32_movhf): Disable for arm_restrict_it.
19824         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
19825         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
19827 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
19829         * config/arm/arm.md (attribute "insn"): Delete.
19830         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
19831         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
19832         (not_shiftsi): Update for attribute change.
19833         (not_shiftsi_compare0): Likewise.
19834         (not_shiftsi_compare0_scratch): Likewise.
19835         (arm_one_cmplsi2): Likewise.
19836         (thumb1_one_cmplsi2): Likewise.
19837         (notsi_compare0): Likewise.
19838         (notsi_compare0_scratch): Likewise.
19839         (thumb1_movdi_insn): Likewise.
19840         (arm_movsi_insn): Likewise.
19841         (movhi_insn_arch4): Likewise.
19842         (movhi_bytes): Likewise.
19843         (arm_movqi_insn): Likewise.
19844         (thumb1_movqi_insn): Likewise.
19845         (arm32_movhf): Likewise.
19846         (thumb1_movhf): Likewise.
19847         (arm_movsf_soft_insn): Likewise.
19848         (thumb1_movsf_insn): Likewise.
19849         (thumb_movdf_insn): Likewise.
19850         (movsicc_insn): Likewise.
19851         (movsfcc_soft_insn): Likewise.
19852         (and_scc): Likewise.
19853         (cond_move): Likewise.
19854         (if_move_not): Likewise.
19855         (if_not_move): Likewise.
19856         (if_shift_move): Likewise.
19857         (if_move_shift): Likewise.
19858         (if_shift_shift): Likewise.
19859         (if_not_arith): Likewise.
19860         (if_arith_not): Likewise.
19861         (cond_move_not): Likewise.
19862         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
19863         (neon_mov<mode>): Likewise.
19864         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
19865         (thumb2_movsi_vfp): Likewise.
19866         (movsf_vfp): Likewise.
19867         (thumb2_movsf_vfp): Likewise.
19868         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
19869         change.
19870         (cortexa7_older_only): Likewise.
19871         (cortexa7_younger): Likewise.
19872         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
19873         (1020alu_shift_op): Likewise.
19874         (1020alu_shift_reg_op): Likewise.
19875         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
19876         (alu_shift_op): Likewise.
19877         (alu_shift_reg_op): Likewise.
19878         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
19879         (11_alu_shift_op): Likewise.
19880         (11_alu_shift_reg_op): Likewise.
19881         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
19882         (9_alu_shift_reg_op): Likewise.
19883         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19884         change.
19885         (cortex_a15_alu_shift): Likewise.
19886         (cortex_a15_alu_shift_reg): Likewise.
19887         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
19888         (cortex_a5_alu_shift): Likewise.
19889         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
19890         change.
19891         (cortex_a53_alu_shift): Likewise.
19892         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
19893         change.
19894         (cortex_a7_alu_reg): Likewise.
19895         (cortex_a7_alu_shift): Likewise.
19896         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19897         (cortex_a8_alu_shift): Likewise.
19898         (cortex_a8_alu_shift_reg): Likewise.
19899         (cortex_a8_mov): Likewise.
19900         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19901         (cortex_a9_dp_shift): Likewise.
19902         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
19903         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
19904         (cortex_r4_mov): Likewise.
19905         (cortex_r4_alu_shift): Likewise.
19906         (cortex_r4_alu_shift_reg): Likewise.
19907         * config/arm/fa526.md (526_alu_op): Update for attribute change.
19908         (526_alu_shift_op): Likewise.
19909         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
19910         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
19911         (626te_alu_shift_op): Likewise.
19912         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
19913         (726te_alu_op): Likewise.
19914         (726te_alu_shift_op): Likewise.
19915         (726te_alu_shift_reg_op): Likewise.
19916         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
19917         (mp626_alu_shift_op): Likewise.
19918         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
19919         (pj4_alu_e1_conds): Likewise.
19920         (pj4_alu): Likewise.
19921         (pj4_alu_conds): Likewise.
19922         (pj4_shift): Likewise.
19923         (pj4_shift_conds): Likewise.
19924         (pj4_alu_shift): Likewise.
19925         (pj4_alu_shift_conds): Likewise.
19927 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19929         * config/arm/predicates.md (shiftable_operator_strict_it):
19930         New predicate.
19931         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
19932         Disable cond_exec version for arm_restrict_it.
19933         (thumb2_smaxsi3): Convert to generate cond_exec.
19934         (thumb2_sminsi3): Likewise.
19935         (thumb32_umaxsi3): Likewise.
19936         (thumb2_uminsi3): Likewise.
19937         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
19938         (thumb2_neg_abssi2): Likewise.
19939         (thumb2_mov_scc): Add alternative for 16-bit encoding.
19940         (thumb2_movsicc_insn): Adjust alternatives.
19941         (thumb2_mov_negscc): Disable for arm_restrict_it.
19942         (thumb2_mov_negscc_strict_it): New pattern.
19943         (thumb2_mov_notscc_strict_it): New pattern.
19944         (thumb2_mov_notscc): Disable for arm_restrict_it.
19945         (thumb2_ior_scc): Likewise.
19946         (thumb2_ior_scc_strict_it): New pattern.
19947         (thumb2_cond_move): Adjust for arm_restrict_it.
19948         (thumb2_cond_arith): Disable for arm_restrict_it.
19949         (thumb2_cond_arith_strict_it): New pattern.
19950         (thumb2_cond_sub): Adjust for arm_restrict_it.
19951         (thumb2_movcond): Likewise.
19952         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
19953         (thumb2_zero_extendhisi2_v6): Likewise.
19954         (thumb2_zero_extendqisi2_v6): Likewise.
19955         (orsi_notsi_si): Likewise.
19956         (orsi_not_shiftsi_si): Likewise.
19958 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
19960         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
19961         instruction sequence is 1 byte shorter.
19963 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
19965         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
19966         it is not needed after split.
19968 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
19970         PR target/51784
19971         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
19972         second label for nonlocal goto receivers. Don't output pic base labels
19973         unless we're producing PIC; mark that action unreachable().
19974         (ix86_save_reg): If the function contains a nonlocal label, save the
19975         PIC base reg.
19976         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
19977         * config/darwin.c (emitted_pic_label_num): New GTY.
19978         (update_pic_label_number_if_needed): New.
19979         (machopic_output_function_base_name): Adjust for nonlocal receiver
19980         case.
19981         (machopic_should_output_picbase_label): New.
19982         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
19983         (nonlocal_goto_receiver): New insn and split.
19985 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
19987         * config/aarch64/aarch64-builtins.c
19988         (aarch64_fold_builtin): Fold abs in all modes.
19989         * config/aarch64/aarch64-simd-builtins.def
19990         (abs): Enable for all modes.
19991         * config/aarch64/arm_neon.h
19992         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
19993         (vabs_f64): Add missing intrinsic.
19995 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
19997         * config/aarch64/arm_neon.h (vabs_s64): New function
19999 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
20001         PR target/57516
20002         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
20003         * config/avr/avr.md (adjust_len): Add `round'.
20004         * config/avr/avr-protos.h (avr_out_round): New prototype.
20005         (avr_out_plus): Add `out_label' argument.
20006         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
20007         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
20008         Handle the case where `insn' is just a pattern.
20009         (avr_out_bitop): Handle the case where `insn' is just a pattern.
20010         (avr_out_round): New function.
20011         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
20013 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
20015         * config/microblaze/microblaze.c (microblaze_expand_prologue):
20016         Add check for flag_stack_usage to handle -fstack-usage support
20018 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
20020         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
20021         interaction for new Power8 flags and VSX.
20023 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
20025         PR middle-end/57698
20026         * tree-inline.c (expand_call_inline): Emit errors during
20027         early_inlining only if optimization is not turned on.
20029 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20031         * passes.def: New.
20033         * passes.c (init_optimization_passes): Move the construction of
20034         the pass hierarchy into a new passes.def file.
20036         * Makefile.in (passes.o): Add dependency on passes.def.
20038 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20040         * passes.c (init_optimization_passes): Introduce macros for
20041         constructing the tree of passes (INSERT_PASSES_AFTER,
20042         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
20043         TERMINATE_PASS_LIST).
20045 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
20046             Wei Mi  <wmi@google.com>
20048         PR rtl-optimization/57878
20049         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
20050         top.
20051         (reload_pseudo_compare_func): Check nregs first for reload
20052         pseudos.
20054 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20056         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
20058 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
20060         * read-rtl.c (validate_const_int): Once an invalid character is
20061         seen, quit the loop.
20063         * gengtype.c (write_roots): Similarly once we find the "deletable"
20064         or "if_marked" option.
20066 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
20068         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
20069         "xtab" and "sat".  Move value "clz" from here to ...
20070         (attriubte "type"): ... here.
20071         (satsi_<SAT:code>): Delete "insn" attribute.
20072         (satsi_<SAT:code>_shift): Likewise.
20073         (arm_zero_extendqisi2addsi): Likewise.
20074         (arm_extendqisi2addsi): Likewise.
20075         (clzsi2): Update for attribute changes.
20076         (rbitsi2): Likewise.
20077         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
20078         attribute.
20079         (arm_usatsihi): Likewise.
20080         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
20082 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
20084         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
20085         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
20086         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
20087         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
20088         in alphabetical order.
20089         (attribute "core_cycles"): Update for attribute changes.
20090         (arm_addsi3): Likewise.
20091         (addsi3_compare0): Likewise.
20092         (addsi3_compare0_scratch): Likewise.
20093         (addsi3_compare_op1): Likewise.
20094         (addsi3_compare_op2): Likewise.
20095         (compare_addsi2_op0): Likewise.
20096         (compare_addsi2_op1): Likewise.
20097         (addsi3_carryin_shift_<optab>): Likewise.
20098         (subsi3_carryin_shift): Likewise.
20099         (rsbsi3_carryin_shift): Likewise.
20100         (arm_subsi3_insn): Likewise.
20101         (subsi3_compare0): Likewise.
20102         (subsi3_compare): Likewise.
20103         (arm_andsi3_insn): Likewise.
20104         (thumb1_andsi3_insn): Likewise.
20105         (andsi3_compare0): Likewise.
20106         (andsi3_compare0_scratch): Likewise.
20107         (zeroextractsi_compare0_scratch
20108         (andsi_not_shiftsi_si): Likewise.
20109         (iorsi3_insn): Likewise.
20110         (iorsi3_compare0): Likewise.
20111         (iorsi3_compare0_scratch): Likewise.
20112         (arm_xorsi3): Likewise.
20113         (thumb1_xorsi3_insn): Likewise.
20114         (xorsi3_compare0): Likewise.
20115         (xorsi3_compare0_scratch): Likewise.
20116         (satsi_<SAT:code>_shift): Likewise.
20117         (rrx): Likewise.
20118         (arm_shiftsi3): Likewise.
20119         (shiftsi3_compare0): Likewise.
20120         (not_shiftsi): Likewise.
20121         (not_shiftsi_compare0): Likewise.
20122         (not_shiftsi_compare0_scratch): Likewise.
20123         (arm_one_cmplsi2): Likewise.
20124         (thumb_one_complsi2): Likewise.
20125         (notsi_compare0): Likewise.
20126         (notsi_compare0_scratch): Likewise.
20127         (thumb1_zero_extendhisi2): Likewise.
20128         (arm_zero_extendhisi2): Likewise.
20129         (arm_zero_extendhisi2_v6): Likewise.
20130         (arm_zero_extendhisi2addsi): Likewise.
20131         (thumb1_zero_extendqisi2): Likewise.
20132         (thumb1_zero_extendqisi2_v6): Likewise.
20133         (arm_zero_extendqisi2): Likewise.
20134         (arm_zero_extendqisi2_v6): Likewise.
20135         (arm_zero_extendqisi2addsi): Likewise.
20136         (thumb1_extendhisi2): Likewise.
20137         (arm_extendhisi2): Likewise.
20138         (arm_extendhisi2_v6): Likewise.
20139         (arm_extendqisi): Likewise.
20140         (arm_extendqisi_v6): Likewise.
20141         (arm_extendqisi2addsi): Likewise.
20142         (thumb1_extendqisi2): Likewise.
20143         (thumb1_movdi_insn): Likewise.
20144         (arm_movsi_insn): Likewise.
20145         (movsi_compare0): Likewise.
20146         (movhi_insn_arch4): Likewise.
20147         (movhi_bytes): Likewise.
20148         (arm_movqi_insn): Likewise.
20149         (thumb1_movqi_insn): Likewise.
20150         (arm32_movhf): Likewise.
20151         (thumb1_movhf): Likewise.
20152         (arm_movsf_soft_insn): Likewise.
20153         (thumb1_movsf_insn): Likewise.
20154         (movdf_soft_insn): Likewise.
20155         (thumb_movdf_insn): Likewise.
20156         (arm_cmpsi_insn): Likewise.
20157         (cmpsi_shiftsi): Likewise.
20158         (cmpsi_shiftsi_swp): Likewise.
20159         (arm_cmpsi_negshiftsi_si): Likewise.
20160         (movsicc_insn): Likewise.
20161         (movsfcc_soft_insn): Likewise.
20162         (arith_shiftsi): Likewise.
20163         (arith_shiftsi_compare0
20164         (arith_shiftsi_compare0_scratch
20165         (sub_shiftsi): Likewise.
20166         (sub_shiftsi_compare0
20167         (sub_shiftsi_compare0_scratch
20168         (and_scc): Likewise.
20169         (cond_move): Likewise.
20170         (if_plus_move): Likewise.
20171         (if_move_plus): Likewise.
20172         (if_move_not): Likewise.
20173         (if_not_move): Likewise.
20174         (if_shift_move): Likewise.
20175         (if_move_shift): Likewise.
20176         (if_shift_shift): Likewise.
20177         (if_not_arith): Likewise.
20178         (if_arith_not): Likewise.
20179         (cond_move_not): Likewise.
20180         (thumb1_ashlsi3): Set type attribute.
20181         (thumb1_ashrsi3): Likewise.
20182         (thumb1_lshrsi3): Likewise.
20183         (thumb1_rotrsi3): Likewise.
20184         (shiftsi3_compare0_scratch): Likewise.
20185         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
20186         (neon_mov<mode>): Likewise.
20187         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
20188         attribute changes.
20189         (thumb2_movsi_insn): Likewise.
20190         (thumb2_cmpsi_neg_shiftsi): Likewise.
20191         (thumb2_extendqisi_v6): Likewise.
20192         (thumb2_zero_extendhisi2_v6): Likewise.
20193         (thumb2_zero_extendqisi2_v6): Likewise.
20194         (thumb2_shiftsi3_short): Likewise.
20195         (thumb2_addsi3_compare0_scratch): Likewise.
20196         (orsi_not_shiftsi_si): Likewise.
20197         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
20198         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
20199         changes.
20200         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
20201         (1020alu_shift_op): Likewise.
20202         (1020alu_shift_reg_op): Likewise.
20203         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
20204         (alu_shift_op): Likewise.
20205         (alu_shift_reg_op): Likewise.
20206         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
20207         (11_alu_shift_op): Likewise.
20208         (11_alu_shift_reg_op): Likewise.
20209         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
20210         (9_alu_shift_reg_op): Likewise.
20211         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
20212         changes.
20213         (cortex_a15_alu_shift): Likewise.
20214         (cortex_a15_alu_shift_reg): Likewise.
20215         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
20216         changes.
20217         (cortex_a5_alu_shift): Likewise.
20218         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
20219         changes.
20220         (cortex_a53_alu_shift): Likewise.
20221         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
20222         changes.
20223         (cortex_a7_alu_reg): Likewise.
20224         (cortex_a7_alu_shift): Likewise.
20225         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
20226         changes.
20227         (cortex_a8_alu_shift): Likewise.
20228         (cortex_a8_alu_shift_reg): Likewise.
20229         (cortex_a8_mov): Likewise.
20230         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
20231         (cortex_a9_dp_shift): Likewise.
20232         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
20233         changes.
20234         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
20235         changes.
20236         (cortex_r4_mov): Likewise.
20237         (cortex_r4_alu_shift): Likewise.
20238         (cortex_r4_alu_shift_reg): Likewise.
20239         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
20240         (526_alu_shift_op): Likewise.
20241         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
20242         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
20243         (626te_alu_shift_op): Likewise.
20244         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
20245         (726te_alu_op): Likewise.
20246         (726te_alu_shift_op): Likewise.
20247         (726te_alu_shift_reg_op): Likewise.
20248         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
20249         (mp626_alu_shift_op): Likewise.
20250         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
20251         (pj4_alu_e1_conds): Likewise.
20252         (pj4_alu): Likewise.
20253         (pj4_alu_conds): Likewise.
20254         (pj4_shift): Likewise.
20255         (pj4_shift_conds): Likewise.
20256         (pj4_alu_shift): Likewise.
20257         (pj4_alu_shift_conds): Likewise.
20258         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
20259         changes.
20260         (cortexa7_older_only): Likewise.
20261         (cortexa7_younger): Likewise.
20263 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
20265         * ipa-pure-const.c (generate_summary): Rename to...
20266         (pure_const_generate_summary): ... this.
20268 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
20270         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
20272 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
20274         PR target/57909
20275         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
20276         usage in HI mode.
20278 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20280         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
20281         enabled without -march=zEC12.
20282         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
20283         flags to be set.
20285 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
20287         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
20288         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
20289         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
20290         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
20291         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
20292         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
20293         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
20294         ISA_HAS_FP4.
20295         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
20296         and ISA_HAS_NMADD3_NMSUB3.
20297         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
20298         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
20299         (nmsub4<mode>, nmsub3<mode>): Likewise.
20300         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
20302 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
20304         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
20305         TARGET_MIPS5400 checking.
20307 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
20308             Peter Bergner  <bergner@vnet.ibm.com>
20310         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
20311         registers in the comment.
20312         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
20313         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
20314         rather than FIRST_PSEUDO_REGISTERS.
20316 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
20318         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
20319         enable extra ISA flags with TARGET_HTM.
20321 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
20323         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
20324         Fix comment typos.
20326 2013-07-15  Cong Hou  <congh@google.com>
20328         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
20329         in compare function for sorting.
20331 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
20333         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
20334         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
20335         * config/rs6000/rs6000.opt: Add -mhtm option.
20336         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
20337         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
20338         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
20339         __HTM__ if the HTM instructions are available.
20340         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
20341         htm_spr_reg_operand): New define_predicates.
20342         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
20343         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
20344         Include htm.md.
20345         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
20346         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
20347         HTM builtin functions.
20348         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
20349         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
20350         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
20351         (rs6000_builtin_mask_calculate): Likewise.
20352         (rs6000_option_override_internal): Likewise.
20353         (bdesc_htm): Add new HTM builtin support.
20354         (htm_spr_num): New function.
20355         (htm_spr_regno): Likewise.
20356         (rs6000_htm_spr_icode): Likewise.
20357         (htm_expand_builtin): Likewise.
20358         (htm_init_builtins): Likewise.
20359         (rs6000_expand_builtin): Add support for HTM builtin functions.
20360         (rs6000_init_builtins): Likewise.
20361         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
20362         option.
20363         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
20364         (TARGET_HTM, MASK_HTM): Define macros.
20365         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
20366         (FIXED_REGISTERS): Likewise.
20367         (CALL_USED_REGISTERS): Likewise.
20368         (CALL_REALLY_USED_REGISTERS): Likewise.
20369         (REG_ALLOC_ORDER): Likewise.
20370         (enum reg_class): Likewise.
20371         (REG_CLASS_NAMES): Likewise.
20372         (REG_CLASS_CONTENTS): Likewise.
20373         (REGISTER_NAMES): Likewise.
20374         (ADDITIONAL_REGISTER_NAMES): Likewise.
20375         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
20376         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
20377         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
20378         * config/rs6000/htm.md: New file.
20379         * config/rs6000/htmintrin.h: New file.
20380         * config/rs6000/htmxlintrin.h: New file.
20382 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20384         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
20385         Define SYMBOL_TINY_GOT, update comment.
20386         * config/aarch64/aarch64.c
20387         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
20388         (aarch64_expand_mov_immediate): Likewise.
20389         (aarch64_print_operand): Likewise.
20390         (aarch64_classify_symbol): Likewise.
20391         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
20392         (ldr_got_tiny): Define.
20394 2013-07-13  Tobias Grosser  <tobias@grosser.es>
20396         PR tree-optimization/54094
20397         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
20398           scheduling dimension for the parallelism check from the polyhedral
20399           information in the AST.
20400         * graphite-dependences.c (carries_deps): Do not assume the schedule is
20401           in 2D + 1 form.
20403 2013-07-13  Jason Merrill  <jason@redhat.com>
20405         * print-tree.c (debug_vec_tree): Use debug_raw.
20406         (debug_raw (vec<tree, va_gc> &)): New.
20407         (debug_raw (vec<tree, va_gc> *)): New.
20408         * tree.h: Declare them.
20410 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
20412         * ifcvt.c (ifcvt_after_combine): New static variable.
20413         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
20414         for size.
20415         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
20416         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
20417         rest_of_handle_if_after_reload): Pass new argument for if_convert.
20419 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
20421         * config/mips/mips.c (mips_expand_call): Remove empty statement.
20423 2013-07-12  Michael Matz  <matz@suse.de>
20425         PR middle-end/55771
20426         * convert.c (convert_to_real): Reject non-float inner types.
20428 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
20430         * config/aarch64/aarch64-protos.h
20431         (aarch64_simd_immediate_valid_for_move): Remove.
20432         * config/aarch64/aarch64.c (simd_immediate_info): New member.
20433         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
20434         cases.
20435         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
20437 2013-07-11  Steve Ellcey  <sellcey@mips.com>
20439         * config/mips/mips.c (mips_conditional_register_usage): Do not
20440         use t[0-7] registers in MIPS16 mode when optimizing for size.
20442 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
20444         * config/i386/i386.c (dispatch_function_versions): Fix array
20445         indexing of function_version_info to match actual_versions.
20447 2013-07-11  Teresa Johnson  <tejohnson@google.com>
20449         * vec.h (struct va_gc): Move release out-of-line.
20450         (va_gc::release): Call ggc_free on released vec.
20452 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20454         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
20455         Require GOT register as additional operand in UNSPEC.
20456         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
20457         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20458         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20459         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
20460         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
20461         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
20462         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
20464 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
20466         PR target/57631
20467         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
20468         name seen by assembler/linker rather if available.
20470 2013-07-11  Andreas Schwab  <schwab@suse.de>
20472         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
20474 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
20476         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
20478 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
20480         * doc/tm.texi.in: Move hook documentation to ....
20481         * target.def: ... here.
20483         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
20484         text on @hook line.
20485         * doc/tm.texi: Regenerate.
20487 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
20489         PR c++/57869
20490         * doc/invoke.texi: Document -Wconditionally-supported.
20492 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
20494         PR target/57844
20495         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
20496         of my_fp.
20498 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
20500         PR target/57506
20501         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
20502         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
20503         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
20504         Remove duplicate devices.
20505         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
20506         * config/avr/t-multilib: Regenerate.
20507         * config/avr/avr-tables.opt: Regenerate.
20508         * doc/avr-mmcu.texi: Regenerate.
20510 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
20512         PR target/56987
20513         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
20515 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
20517         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
20518         the cost of MULT when optimizing for size.
20520 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20522         * config/cr16/cr16-protos.h: Don't include target.h.
20524 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
20526         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
20527         adjust register size for TDmode and TFmode for VSX registers.
20529 2013-07-08  Kai Tietz  <ktietz@redhat.com>
20531         PR target/56892
20532         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
20533         hook_bool_const_tree_true.
20535 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20537         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
20538         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
20539         * config/s390/s390.md: Define FPR*_REGNUM constants.
20540         Fix FPR2_REGNUM constant (18 -> 17).
20541         ("*trunc<BFP:mode><DFP_ALL:mode>2")
20542         ("*trunc<DFP_ALL:mode><BFP:mode>2")
20543         ("trunc<BFP:mode><DFP_ALL:mode>2")
20544         ("trunc<DFP_ALL:mode><BFP:mode>2")
20545         ("*extend<BFP:mode><DFP_ALL:mode>2")
20546         ("*extend<DFP_ALL:mode><BFP:mode>2")
20547         ("extend<BFP:mode><DFP_ALL:mode>2")
20548         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
20549         FPR4_REGNUM.
20551 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
20553         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
20555 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20557         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
20558         and cfun_fpr_bit_p to cfun_fpr_save_p.
20559         (s390_frame_area, s390_register_info, s390_frame_info)
20560         (s390_emit_prologue, s390_emit_epilogue)
20561         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
20562         register numbers.
20563         * config/s390/s390.h: Define *_REGNUM macros for floating point
20564         register numbers.
20566 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20568         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
20570 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
20572         PR rtl-optimization/57786
20573         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
20574         and break out of the loop when it is set to false.
20576 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
20578         PR target/57819
20579         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
20580         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
20581         (const_int 63)) 0)).
20582         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
20583         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
20584         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
20586         PR rtl-optimization/57829
20587         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
20588         mask bits outside of mode are just sign-extension from mode to HWI.
20590 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
20592         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
20593         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
20594         adjust_address instead of change_address to keep info about alignment.
20595         (emit_strmov): Remove.
20596         (emit_memmov): New function.
20597         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
20598         (expand_movmem_epilogue): Likewise and return updated rtx for
20599         destination.
20600         (expand_constant_movmem_prologue): Likewise and return updated rtx for
20601         destination and source.
20602         (decide_alignment): Refactor, handle vector_loop.
20603         (ix86_expand_movmem): Likewise.
20604         (ix86_expand_setmem): Likewise.
20605         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
20607 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
20609         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
20610         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
20612 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
20614         * config/i386/sse.md (sse_movlhps): Change alternative 3
20615         of operand 2 to "m".
20617 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
20619         PR target/57807
20620         * config/i386/sse.md (iptr): New mode attribute.
20621         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
20622         (<sse>_vm<plusminus_insn><mode>3): Ditto.
20623         (<sse>_vmmul<mode>3): Ditto.
20624         (<sse>_vmdiv<mode>3): Ditto.
20625         (sse_vmrcpv4sf2): Ditto.
20626         (<sse>_vmsqrt<mode>2): Ditto.
20627         (sse_vmrsqrtv4sf2): Ditto.
20628         (<sse>_vm<code><mode>3): Ditto.
20629         (avx_vmcmp<mode>3): Ditto.
20630         (<sse>_vmmaskcmp<mode>3): Ditto.
20631         (<sse>_comi): Ditto.
20632         (<sse>_ucomi): Ditto.
20633         (*xop_vmfrcz_<mode>): Ditto.
20634         (*fmai_fmadd_<mode>): Ditto.
20635         (*fmai_fmsub_<mode>): Ditto.
20636         (*fmai_fnmadd_<mode>): Ditto.
20637         (*fmai_fnmsub_<mode>): Ditto.
20638         (*fma4i_vmfmadd_<mode>): Ditto.
20639         (*fma4i_vmfmsub_<mode>): Ditto.
20640         (*fma4i_vmfnmadd_<mode>): Ditto.
20641         (*fma4i_vmfnmsub_<mode>): Ditto.
20642         (*xop_vmfrcz_<mode>): Ditto.
20643         (sse_cvtps2pi): Ditto.
20644         (sse_cvttps2pi): Ditto.
20645         (sse_cvtss2si): Ditto.
20646         (sse_cvtss2si_2): Ditto.
20647         (sse_cvtss2siq_2): Ditto.
20648         (sse_cvttss2si): Ditto.
20649         (sse_cvttss2siq): Ditto.
20650         (sse_cvtsd2si): Ditto.
20651         (sse_cvtsd2si_2): Ditto.
20652         (sse_cvtsd2siq_2): Ditto.
20653         (sse_cvttsd2si): Ditto.
20654         (sse_cvttsd2siq): Ditto.
20655         (sse_cvtsd2ss): Ditto.
20656         (sse_cvtss2sd): Ditto.
20657         (avx2_pbroadcast<mode>): Ditto.
20658         (avx2_pbroadcast<mode>_1): Ditto.
20659         (*avx_vperm_broadcast_v4sf): Ditto.
20661         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
20662         (sse_movlhps): Ditto.
20663         (sse_storehps): Ditto.
20664         (sse_loadhps): Ditto.
20665         (sse_storelps): Ditto.
20666         (sse_loadlps): Ditto.
20667         (*vec_concatv4sf): Ditto.
20668         (*vec_interleave_highv2df): Ditto.
20669         (*vec_interleave_lowv2df): Ditto.
20670         (*vec_extractv2df_1_sse): Ditto.
20671         (*vec_extractv2df_0_sse): Ditto.
20672         (sse2_storelpd): Ditto.
20673         (sse2_loadlpd): Ditto.
20674         (sse2_movsd): Ditto.
20675         (*vec_concatv4si): Ditto.
20676         (vec_concatv2di): Ditto.
20678         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
20679         for Intel asm dialect.
20680         (mmx_punpcklwd): Ditto.
20681         (mmx_punpckldq): Ditto.
20683         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
20684         for intel assembler dialect.
20686 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
20688         PR target/29776
20689         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
20690         for BUILT_IN_C{LZ,LRSB}*.
20691         * tree.h (CASE_INT_FN): Add FN##IMAX case.
20692         * tree-vrp.c (extract_range_basic): Handle
20693         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
20694         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
20695         fall thru to code calling set_value*.
20696         * builtins.c (expand_builtin): Remove *IMAX cases.
20697         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
20698         if width is bigger than 2*HWI.
20700 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
20702         PR rtl-optimization/55342
20703         * lra-int.h (lra_subreg_reload_pseudos): New.
20704         * lra.c: Add undoing optional reloads to the block diagram.
20705         (lra_subreg_reload_pseudos): New.
20706         (lra_optional_reload_pseudos): Change comments.
20707         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
20708         lra_optional_reload_pseudos after undo transformations.
20709         * lra-assigns.c (pseudo_prefix_title): New.
20710         (lra_setup_reg_renumber): Use it.
20711         (spill_for): Ditto.  Check subreg reload pseudos too.
20712         (assign_by_spills): Consider subreg reload pseudos too.
20713         * lra-constraints.c (simplify_operand_subreg): Use
20714         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
20715         (curr_insn_transform): Recognize and do optional reloads.
20716         (undo_optional_reloads): New.
20717         (lra_undo_inheritance): Call undo_optional_reloads.
20719 2013-07-05  Thomas Quinot  <quinot@adacore.com>
20721         * tree-complex.c (expand_complex_operations_1): Fix typo.
20723 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
20725         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
20726         (tune_params): New member 'const vec_costs'.
20727         * config/aarch64/aarch64.c (generic_vector_cost): New.
20728         (generic_tunings): New member 'generic_vector_cost'.
20729         (aarch64_builtin_vectorization_cost): New.
20730         (aarch64_add_stmt_cost): New.
20731         (TARGET_VECTORIZE_ADD_STMT_COST): New.
20732         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
20734 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
20736         PR target/57777
20737         * config/i386/predicates.md (vsib_address_operand): Disallow
20738         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
20740 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
20742         PR middle-end/55030
20743         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
20744         expand_builtin_setjmp_receiver.
20745         (expand_label): Adjust, call expand_builtin_setjmp_receiver
20746         with NULL for the label parameter.
20747         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
20748         the frame-pointer.  Adjust comments.
20749         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
20750         only if LABEL is non-NULL.
20752 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
20754         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
20755         (ARM_ABI_AAPCS64): Ditto.
20756         (arm_abi): Ditto.
20757         (ARM_DEFAULT_ABI): Ditto.
20759 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
20761         * config/aarch64/aarch64-builtins.c
20762         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
20763         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
20764         (st1): Likewise.
20765         * config/aarch64/aarch64-simd.md
20766         (aarch64_ld1<VALL:mode>): New.
20767         (aarch64_st1<VALL:mode>): Likewise.
20768         * config/aarch64/arm_neon.h
20769         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
20771 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
20773         * config/i386/i386.c (gate_insert_vzeroupper): Check if
20774         target ISA is AVX.
20775         (ix86_option_override_internal):Turn on all -mavx target flags by
20776         default as they are dependent on AVX anyway.
20778 2013-07-02  Cary Coutant  <ccoutant@google.com>
20780         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
20781         deterministic hash.
20782         (loc_checksum_ordered): Likewise.
20783         (hash_loc_operands): Remove inline keyword.
20785 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
20787         PR tree-optimization/57741
20788         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
20789         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
20790         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
20791         Allow REAL_CST step_exprs if flag_associative_math.
20792         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
20794 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
20796         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
20798 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
20800         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
20802 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20804         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
20805         encoding.
20806         (iorsi3_insn): Likewise.
20807         (arm_xorsi3): Likewise.
20809 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
20811         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
20812         to ...
20813         (attribute "type"): ... here, and prefix with "wmmx_".
20814         (attribute "core_cycles"): Update for attribute changes.
20815         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
20816         (tbcstv4hi): Likewise.
20817         (tbcstv2si): Likewise.
20818         (iwmmxt_iordi3): Likewise.
20819         (iwmmxt_xordi3): Likewise.
20820         (iwmmxt_anddi3): Likewise.
20821         (iwmmxt_nanddi3): Likewise.
20822         (iwmmxt_arm_movdi): Likewise.
20823         (iwmmxt_movsi_insn): Likewise.
20824         (mov<mode>_internal): Likewise.
20825         (and<mode>3_iwmmxt): Likewise.
20826         (ior<mode>3_iwmmxt): Likewise.
20827         (xor<mode>3_iwmmxt): Likewise.
20828         (add<mode>3_iwmmxt): Likewise.
20829         (ssaddv8qi3): Likewise.
20830         (ssaddv4hi3): Likewise.
20831         (ssaddv2si3): Likewise.
20832         (usaddv8qi3): Likewise.
20833         (usaddv4hi3): Likewise.
20834         (usaddv2si3): Likewise.
20835         (sub<mode>3_iwmmxt): Likewise.
20836         (sssubv8qi3): Likewise.
20837         (sssubv4hi3): Likewise.
20838         (sssubv2si3): Likewise.
20839         (ussubv8qi3): Likewise.
20840         (ussubv4hi3): Likewise.
20841         (ussubv2si3): Likewise.
20842         (mulv4hi3_iwmmxt): Likewise.
20843         (smulv4hi3_highpart): Likewise.
20844         (umulv4hi3_highpart): Likewise.
20845         (iwmmxt_wmacs): Likewise.
20846         (iwmmxt_wmacsz): Likewise.
20847         (iwmmxt_wmacu): Likewise.
20848         (iwmmxt_wmacuz): Likewise.
20849         (iwmmxt_clrdi): Likewise.
20850         (iwmmxt_clrv8qi): Likewise.
20851         (iwmmxt_clr4hi): Likewise.
20852         (iwmmxt_clr2si): Likewise.
20853         (iwmmxt_uavgrndv8qi3): Likewise.
20854         (iwmmxt_uavgrndv4hi3): Likewise.
20855         (iwmmxt_uavgv8qi3): Likewise.
20856         (iwmmxt_uavgv4hi3): Likewise.
20857         (iwmmxt_tinsrb): Likewise.
20858         (iwmmxt_tinsrh): Likewise.
20859         (iwmmxt_tinsrw): Likewise.
20860         (iwmmxt_textrmub): Likewise.
20861         (iwmmxt_textrmsb): Likewise.
20862         (iwmmxt_textrmuh): Likewise.
20863         (iwmmxt_textrmsh): Likewise.
20864         (iwmmxt_textrmw): Likewise.
20865         (iwmxxt_wshufh): Likewise.
20866         (eqv8qi3): Likewise.
20867         (eqv4hi3): Likewise.
20868         (eqv2si3): Likewise.
20869         (gtuv8qi3): Likewise.
20870         (gtuv4hi3): Likewise.
20871         (gtuv2si3): Likewise.
20872         (gtv8qi3): Likewise.
20873         (gtv4hi3): Likewise.
20874         (gtv2si3): Likewise.
20875         (smax<mode>3_iwmmxt): Likewise.
20876         (umax<mode>3_iwmmxt): Likewise.
20877         (smin<mode>3_iwmmxt): Likewise.
20878         (umin<mode>3_iwmmxt): Likewise.
20879         (iwmmxt_wpackhss): Likewise.
20880         (iwmmxt_wpackwss): Likewise.
20881         (iwmmxt_wpackdss): Likewise.
20882         (iwmmxt_wpackhus): Likewise.
20883         (iwmmxt_wpackwus): Likewise.
20884         (iwmmxt_wpackdus): Likewise.
20885         (iwmmxt_wunpckihb): Likewise.
20886         (iwmmxt_wunpckihh): Likewise.
20887         (iwmmxt_wunpckihw): Likewise.
20888         (iwmmxt_wunpckilb): Likewise.
20889         (iwmmxt_wunpckilh): Likewise.
20890         (iwmmxt_wunpckilw): Likewise.
20891         (iwmmxt_wunpckehub): Likewise.
20892         (iwmmxt_wunpckehuh): Likewise.
20893         (iwmmxt_wunpckehuw): Likewise.
20894         (iwmmxt_wunpckehsb): Likewise.
20895         (iwmmxt_wunpckehsh): Likewise.
20896         (iwmmxt_wunpckehsw): Likewise.
20897         (iwmmxt_wunpckelub): Likewise.
20898         (iwmmxt_wunpckeluh): Likewise.
20899         (iwmmxt_wunpckeluw): Likewise.
20900         (iwmmxt_wunpckelsb): Likewise.
20901         (iwmmxt_wunpckelsh): Likewise.
20902         (iwmmxt_wunpckelsw): Likewise.
20903         (ror<mode>3): Likewise.
20904         (ashr<mode>3_iwmmxt): Likewise.
20905         (lshr<mode>3_iwmmxt): Likewise.
20906         (ashl<mode>3_iwmmxt): Likewise.
20907         (ror<mode>3_di): Likewise.
20908         (ashr<mode>3_di): Likewise.
20909         (lshr<mode>3_di): Likewise.
20910         (ashl<mode>3_di): Likewise.
20911         (iwmmxt_wmadds): Likewise.
20912         (iwmmxt_wmaddu): Likewise.
20913         (iwmmxt_tmia): Likewise.
20914         (iwmmxt_tmiaph): Likewise.
20915         (iwmmxt_tmiabb): Likewise.
20916         (iwmmxt_tmiatb): Likewise.
20917         (iwmmxt_tmiabt): Likewise.
20918         (iwmmxt_tmiatt): Likewise.
20919         (iwmmxt_tmovmskb): Likewise.
20920         (iwmmxt_tmovmskh): Likewise.
20921         (iwmmxt_tmovmskw): Likewise.
20922         (iwmmxt_waccb): Likewise.
20923         (iwmmxt_wacch): Likewise.
20924         (iwmmxt_waccw): Likewise.
20925         (iwmmxt_waligni): Likewise.
20926         (iwmmxt_walignr): Likewise.
20927         (iwmmxt_walignr0): Likewise.
20928         (iwmmxt_walignr1): Likewise.
20929         (iwmmxt_walignr2): Likewise.
20930         (iwmmxt_walignr3): Likewise.
20931         (iwmmxt_wsadb): Likewise.
20932         (iwmmxt_wsadh): Likewise.
20933         (iwmmxt_wsadbz): Likewise.
20934         (iwmmxt_wsadhz): Likewise.
20935         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
20936         (iwmmxt_wabsdiffb): Likewise.
20937         (iwmmxt_wabsdiffh): Likewise.
20938         (iwmmxt_wabsdiffw): Likewise.
20939         (iwmmxt_waddsubhx): Likewise
20940         (iwmmxt_wsubaddhx): Likewise.
20941         (addc<mode>3): Likewise.
20942         (iwmmxt_avg4): Likewise.
20943         (iwmmxt_avg4r): Likewise.
20944         (iwmmxt_wmaddsx): Likewise.
20945         (iwmmxt_wmaddux): Likewise.
20946         (iwmmxt_wmaddsn): Likewise.
20947         (iwmmxt_wmaddun): Likewise.
20948         (iwmmxt_wmulwsm): Likewise.
20949         (iwmmxt_wmulwum): Likewise.
20950         (iwmmxt_wmulsmr): Likewise.
20951         (iwmmxt_wmulumr): Likewise.
20952         (iwmmxt_wmulwsmr): Likewise.
20953         (iwmmxt_wmulwumr): Likewise.
20954         (iwmmxt_wmulwl): Likewise.
20955         (iwmmxt_wqmulm): Likewise.
20956         (iwmmxt_wqmulwm): Likewise.
20957         (iwmmxt_wqmulmr): Likewise.
20958         (iwmmxt_wqmulwmr): Likewise.
20959         (iwmmxt_waddbhusm): Likewise.
20960         (iwmmxt_waddbhusl): Likewise.
20961         (iwmmxt_wqmiabb): Likewise.
20962         (iwmmxt_wqmiabt): Likewise.
20963         (iwmmxt_wqmiatb): Likewise.
20964         (iwmmxt_wqmiatt): Likewise.
20965         (iwmmxt_wqmiabbn): Likewise.
20966         (iwmmxt_wqmiabtn): Likewise.
20967         (iwmmxt_wqmiatbn): Likewise.
20968         (iwmmxt_wqmiattn): Likewise.
20969         (iwmmxt_wmiabb): Likewise.
20970         (iwmmxt_wmiabt): Likewise.
20971         (iwmmxt_wmiatb): Likewise.
20972         (iwmmxt_wmiatt): Likewise.
20973         (iwmmxt_wmiabbn): Likewise.
20974         (iwmmxt_wmiabtn): Likewise.
20975         (iwmmxt_wmiatbn): Likewise.
20976         (iwmmxt_wmiattn): Likewise.
20977         (iwmmxt_wmiawbb): Likewise.
20978         (iwmmxt_wmiawbt): Likewise.
20979         (iwmmxt_wmiawtb): Likewise.
20980         (iwmmxt_wmiawtt): Likewise.
20981         (iwmmxt_wmiawbbn): Likewise.
20982         (iwmmxt_wmiawbtn): Likewise.
20983         (iwmmxt_wmiawtbn): Likewise.
20984         (iwmmxt_wmiawttn): Likewise.
20985         (iwmmxt_wmerge): Likewise.
20986         (iwmmxt_tandc<mode>3): Likewise.
20987         (iwmmxt_torc<mode>3): Likewise.
20988         (iwmmxt_torvsc<mode>3): Likewise.
20989         (iwmmxt_textrc<mode>3): Likewise.
20990         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
20991         (wmmxt_pack): Likewise.
20992         (wmmxt_mult_c1): Likewise.
20993         (wmmxt_mult_c2): Likewise.
20994         (wmmxt_alu_c1): Likewise.
20995         (wmmxt_alu_c2): Likewise.
20996         (wmmxt_alu_c3): Likewise.
20997         (wmmxt_transfer_c1): Likewise.
20998         (wmmxt_transfer_c2): Likewise.
20999         (wmmxt_transfer_c3): Likewise.
21000         (marvell_f_iwmmxt_wstr): Likewise.
21001         (marvell_f_iwmmxt_wldr): Likewise.
21003 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
21005         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
21007 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
21009         Revert:
21010         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
21011         * lra-constraints.c (need_for_split_p): Check call used hard regs
21012         living through calls.
21014         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
21015         call used regs for call insn.
21017 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
21019         PR target/57736
21020         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
21021         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
21023 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
21025         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
21027 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
21029         * lra-constraints.c (need_for_split_p): Check call used hard regs
21030         living through calls.
21032 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
21034         PR target/57744
21035         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
21036         to tie with any other modes.  Eliminate Altivec vector mode tests,
21037         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
21038         code, to return 0 if testing MODE2 for a condition, if we've
21039         already tested MODE1 for the same condition.
21041 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21043         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
21044         layout.
21046 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21048         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
21049         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
21051 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21053         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
21054         Define.
21055         (aarch64_symbolic_constant_p): Remove.
21056         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
21057         static.  Fix line length and white space.
21058         (aarch64_symbolic_constant_p): Remove.
21059         * config/aarch64/predicates.md (aarch64_valid_symref):
21060         Use aarch64_classify_symbol_expression.
21062 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21064         * config/arm/constraints.md (Ts): New constraint.
21065         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
21066         16-bit encodings.
21067         (compare_scc): Use "Ts" constraint for operand 0.
21068         (ior_scc_scc): Likewise.
21069         (and_scc_scc): Likewise.
21070         (and_scc_scc_nodom): Likewise.
21071         (ior_scc_scc_cmp): Likewise for operand 7.
21072         (and_scc_scc_cmp): Likewise.
21073         * config/arm/thumb2.md (thumb2_movsi_insn):
21074         Add alternatives for 16-bit encodings.
21075         (thumb2_movhi_insn): Likewise.
21076         (thumb2_movsicc_insn): Likewise.
21077         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
21078         (thumb2_negscc): Use "Ts" constraint.
21079         Move mvn instruction outside cond_exec block.
21080         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
21081         for 16-bit encodings.
21083 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21085         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
21086         encoding.
21087         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
21088         (mulsi3subsi): Likewise.
21089         (mulsidi3adddi): Likewise.
21090         (mulsidi3_v6): Likewise.
21091         (umulsidi3_v6): Likewise.
21092         (umulsidi3adddi_v6): Likewise.
21093         (smulsi3_highpart_v6): Likewise.
21094         (umulsi3_highpart_v6): Likewise.
21095         (mulhisi3tb): Likewise.
21096         (mulhisi3bt): Likewise.
21097         (mulhisi3tt): Likewise.
21098         (maddhisi4): Likewise.
21099         (maddhisi4tb): Likewise.
21100         (maddhisi4tt): Likewise.
21101         (maddhidi4): Likewise.
21102         (maddhidi4tb): Likewise.
21103         (maddhidi4tt): Likewise.
21104         (zeroextractsi_compare0_scratch): Likewise.
21105         (insv_zero): Likewise.
21106         (insv_t2): Likewise.
21107         (anddi_notzesidi_di): Likewise.
21108         (anddi_notsesidi_di): Likewise.
21109         (andsi_notsi_si): Likewise.
21110         (iordi_zesidi_di): Likewise.
21111         (xordi_zesidi_di): Likewise.
21112         (andsi_iorsi3_notsi): Likewise.
21113         (smax_0): Likewise.
21114         (smax_m1): Likewise.
21115         (smin_0): Likewise.
21116         (not_shiftsi): Likewise.
21117         (unaligned_loadsi): Likewise.
21118         (unaligned_loadhis): Likewise.
21119         (unaligned_loadhiu): Likewise.
21120         (unaligned_storesi): Likewise.
21121         (unaligned_storehi): Likewise.
21122         (extv_reg): Likewise.
21123         (extzv_t2): Likewise.
21124         (divsi3): Likewise.
21125         (udivsi3): Likewise.
21126         (arm_zero_extendhisi2addsi): Likewise.
21127         (arm_zero_extendqisi2addsi): Likewise.
21128         (compareqi_eq0): Likewise.
21129         (arm_extendhisi2_v6): Likewise.
21130         (arm_extendqisi2addsi): Likewise.
21131         (arm_movt): Likewise.
21132         (thumb2_ldrd): Likewise.
21133         (thumb2_ldrd_base): Likewise.
21134         (thumb2_ldrd_base_neg): Likewise.
21135         (thumb2_strd): Likewise.
21136         (thumb2_strd_base): Likewise.
21137         (thumb2_strd_base_neg): Likewise.
21138         (arm_negsi2): Add alternative for 16-bit encoding.
21139         (arm_one_cmplsi2): Likewise.
21141 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21143         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
21144         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
21145         (movdfcc): Likewise.
21146         * config/arm/vfp.md (*thumb2_movsf_vfp):
21147         Disable predication for arm_restrict_it.
21148         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
21149         (*thumb2_movdfcc_vfp): Likewise.
21150         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
21151         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
21152         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
21153         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
21154         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
21155         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
21156         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
21157         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
21158         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
21159         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
21160         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
21161         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
21162         Disable predication for arm_restrict_it.
21164 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
21166         * config/i386/bmiintrin.h (_bextr_u32): New.
21167         (_bextr_u64): Ditto.
21169 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
21171         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
21172         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
21173         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
21174         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
21175         * config/mips/n32-elf.h: ...this new file.
21177 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
21179         PR target/57224
21180         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
21181         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
21183 2013-06-27  Catherine Moore  <clm@codesourcery.com>
21185         * config/mips/mips-tables.opt: Regenerate.
21186         * config/mips/mips-cpus.def: Add m14ke and m14kec.
21187         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
21188         * doc/invoke.texi: Add -m14kc.
21190 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
21192         PR target/57623
21193         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
21194         constraints of operand 1 and 2.
21196         PR target/57623
21197         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
21198         to match RTL canonicalization.  Swap predicates and
21199         constraints of operand 1 and 2.
21201 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
21203         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
21204         Process OP_INOUT regs for splitting too.
21206 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
21208         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
21209         decl before the loop, initialize to NULL.
21210         (vectorizable_load): Initialize ptr_incr to NULL.
21212 2013-06-27  Martin Jambor  <mjambor@suse.cz>
21214         PR lto/57208
21215         * ipa-ref.h (ipa_maybe_record_reference): Declare.
21216         * ipa-ref.c (ipa_maybe_record_reference): New function.
21217         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
21218         * ipa-cp.c (create_specialized_node): Record potential references from
21219         aggvals.
21220         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
21222 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
21224         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
21225         parameter 'mode' of type 'enum machine_mode mode'; change to pass
21226         'mode' to force_reg.
21227         (aarch64_add_offset): Update calls to aarch64_force_temporary.
21228         (aarch64_expand_mov_immediate): Likewise.
21230 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
21232         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
21233         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
21235 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21237         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
21238         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21239         (struct machine_function): Add tbegin_p.
21240         (s390_canonicalize_comparison): Fold CC mode compares to
21241         conditional jump if possible.
21242         (s390_emit_jump): Return the emitted jump.
21243         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
21244         Handle CCRAWmode compares.
21245         (s390_option_override): Default to -mhtm if available.
21246         (s390_reg_clobbered_rtx): Handle floating point regs as well.
21247         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
21248         FPRs instead of df_regs_ever_live_p.
21249         (s390_optimize_nonescaping_tx): New function.
21250         (s390_init_frame_layout): Extend clobbered_regs array to cover
21251         FPRs as well.
21252         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
21253         (s390_expand_tbegin): New function.
21254         (enum s390_builtin): New enum definition.
21255         (code_for_builtin): New array definition.
21256         (s390_init_builtins): New function.
21257         (s390_expand_builtin): New function.
21258         (TARGET_INIT_BUILTINS): Define.
21259         (TARGET_EXPAND_BUILTIN): Define.
21260         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
21261         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
21262         (s390_alc_comparison): Likewise.
21263         * config/s390/s390-modes.def: Add CCRAWmode.
21264         * config/s390/s390.h (processor_flags): Add PF_TX.
21265         (TARGET_CPU_HTM): Define macro.
21266         (TARGET_HTM): Define macro.
21267         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
21268         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
21269         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21270         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
21271         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
21272         (TBEGIN_MASK, TBEGINC_MASK): New constants.
21273         ("*cc_to_int"): Move up.
21274         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
21275         constants other than 0.
21276         ("*ccraw_to_int"): New insn and splitter definition.
21277         ("tbegin", "tbegin_nofloat", "tbegin_retry")
21278         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
21279         ("tx_assist"): New expander.
21280         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
21281         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
21282         * config/s390/s390.opt: Add -mhtm option.
21283         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
21284         * config/s390/htmxlintrin.h: New file.
21285         * config/s390/htmintrin.h: New file.
21286         * config/s390/s390intrin.h: New file.
21287         * doc/extend.texi: Document htm builtins.
21288         * config.gcc: Add the new header files to extra_headers.
21290 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
21292         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
21293         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
21295 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
21296             Pat Haugen  <pthaugen@us.ibm.com>
21297             Peter Bergner  <bergner@vnet.ibm.com>
21299         * config/rs6000/power8.md: New.
21300         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
21301         setting for power8 entry.
21302         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
21303         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
21304         test for Power4/Power5 only.
21305         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
21306         support.
21307         (force_new_group): Adjust comment.
21308         * config/rs6000/rs6000.md: Include power8.md.
21310 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
21312         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
21313         * config/arm/arm-protos.h (arm_max_conditional_execute): New
21314         declaration.
21315         (tune_params): Update comment.
21316         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
21317         (arm_max_conditional_execute): New function.
21318         (thumb2_final_prescan_insn): Use max_insn_skipped and
21319         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
21321 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
21323         PR tree-optimization/57705
21324         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
21325         SSA_NAME step, provided that it is not defined inside the loop.
21326         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
21327         (get_initial_def_for_induction): Handle SSA_NAME IV step.
21329 2013-06-25  Martin Jambor  <mjambor@suse.cz>
21331         PR middle-end/57670
21332         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
21333         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
21334         calls in the dump.
21335         (ipa_note_param_call): Initialize member_ptr flag.
21336         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
21337         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
21338         (ipa_write_indirect_edge_info): Stream member_ptr flag.
21339         (ipa_read_indirect_edge_info): Likewise.
21341 2013-06-25  Richard Biener  <rguenther@suse.de>
21343         PR middle-end/56977
21344         * passes.c (init_optimization_passes): Move pass_fold_builtins
21345         and pass_dce earlier with -Og.
21347 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
21349         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
21350         <BIT_FIELD_REF>: Remove trailing TAB.
21351         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
21352         remove blank line.
21354 2013-06-24  Martin Jambor  <mjambor@suse.cz>
21356         PR tree-optimization/57358
21357         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
21358         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
21359         (ipa_analyze_params_uses): Generate pessimistic info when true.
21361 2013-06-24  Martin Jambor  <mjambor@suse.cz>
21363         PR tree-optimization/57539
21364         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
21365         global.inlined_to of the new node to it.  All callers changed.
21366         * ipa-inline-transform.c (clone_inlined_nodes): New variable
21367         inlining_into, pass it to cgraph_clone_node.
21368         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
21369         ipa_free_edge_args_substructures.
21370         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
21371         rdesc linked list.  Do not assert rdesc edges have inlined caller.
21372         Assert we have found an rdesc in the rdesc list.
21374 2013-06-24  Richard Biener  <rguenther@suse.de>
21376         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
21377         (pointer_set_lookup): Declare.
21378         (class pointer_map): New template class implementing a
21379         generic pointer to T map.
21380         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
21381         pointer_map<T>::contains, pointer_map<T>::insert,
21382         pointer_map<T>::traverse): New functions.
21383         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
21384         (pointer_set_lookup): New function.
21385         (pointer_set_contains): Use pointer_set_lookup.
21386         (pointer_set_insert): Likewise.
21387         (insert_aux): Remove.
21388         (struct pointer_map_t): Embed a pointer_set_t.
21389         (pointer_map_create): Adjust.
21390         (pointer_map_destroy): Likewise.
21391         (pointer_map_contains): Likewise.
21392         (pointer_map_insert): Likewise.
21393         (pointer_map_traverse): Likewise.
21394         * tree-streamer.h (struct streamer_tree_cache_d): Use a
21395         pointer_map<unsigned> instead of a pointer_map_t.
21396         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
21397         (streamer_tree_cache_lookup): Likewise.
21398         (streamer_tree_cache_create): Likewise.
21399         (streamer_tree_cache_delete): Likewise.
21400         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
21401         pointer_map<unsigned> instead of a pointer_map_t.
21402         (lto_init_tree_ref_encoder): Adjust.
21403         (lto_destroy_tree_ref_encoder): Likewise.
21404         * lto-section-out.c (lto_output_decl_index): Likewise.
21405         (lto_record_function_out_decl_state): Likewise.
21406         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
21408 2013-06-24  Richard Biener  <rguenther@suse.de>
21410         PR tree-optimization/57488
21411         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
21413 2013-06-24  Alan Modra  <amodra@gmail.com>
21415         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
21416         (gen_easy_altivec_constant): Likewise.
21417         * config/rs6000/predicates.md (easy_vector_constant_add_self,
21418         easy_vector_constant_msb): Likewise.
21420 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
21422         PR target/57688
21423         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
21424         add missing return true.
21426 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
21428         PR target/52483
21429         * config/sh/predicates.md (general_extend_operand): Invoke
21430         general_movsrc_operand for memory operands.
21431         (general_movsrc_operand): Allow reg+reg addressing, do not use
21432         general_operand for memory operands.
21434 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
21436         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
21437         when current target options does not apply.
21438         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
21439         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
21440         * config/i386/bmiintrin.h: Pass appropriate target
21441         attributes to header.
21442         * config/i386/mmintrin.h: Ditto.
21443         * config/i386/nmmintrin.h: Ditto.
21444         * config/i386/avx2intrin.h: Ditto.
21445         * config/i386/fxsrintrin.h: Ditto.
21446         * config/i386/tbmintrin.h: Ditto.
21447         * config/i386/xsaveintrin.h: Ditto.
21448         * config/i386/f16cintrin.h: Ditto.
21449         * config/i386/xtestintrin.h: Ditto.
21450         * config/i386/xsaveoptintrin.h: Ditto.
21451         * config/i386/bmi2intrin.h: Ditto.
21452         * config/i386/lzcntintrin.h: Ditto.
21453         * config/i386/smmintrin.h: Ditto.
21454         * config/i386/wmmintrin.h: Ditto.
21455         * config/i386/x86intrin.h: Remove all header include guards.
21456         * config/i386/prfchwintrin.h: Ditto.
21457         * config/i386/pmmintrin.h: Ditto.
21458         * config/i386/tmmintrin.h: Ditto.
21459         * config/i386/xmmintrin.h: Ditto.
21460         * config/i386/popcntintrin.h: Ditto.
21461         * config/i386/rdseedintrin.h: Ditto.
21462         * config/i386/ammintrin.h: Ditto.
21463         * config/i386/emmintrin.h: Ditto.
21464         * config/i386/immintrin.h: Remove all header include guards.
21465         * config/i386/fma4intrin.h: Ditto.
21466         * config/i386/lwpintrin.h: Ditto.
21467         * config/i386/xopintrin.h: Ditto.
21468         * config/i386/ia32intrin.h: Ditto.
21469         * config/i386/avxintrin.h: Ditto.
21470         * config/i386/rtmintrin.h: Ditto.
21471         * config/i386/fmaintrin.h: Ditto.
21472         * config/i386/mm3dnow.h: Ditto.
21474 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
21476         * common/config/i386/i386-common.c: Handle LZCNT.
21478 2013-06-22  Andi Kleen  <ak@linux.intel.com>
21480         * doc/extend.texi: Use __atomic_store_n instead of
21481         __atomic_store in HLE example.
21483 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
21485         * config/sh/sh.c: Remove <cstdlib> workaround.
21487 2013-06-21  Andi Kleen  <ak@linux.intel.com>
21489         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
21491 2013-06-21  Andi Kleen  <ak@linux.intel.com>
21493         * doc/extend.texi: Document that __atomic_clear and
21494           __atomic_test_and_set should only be used with bool.
21496 2013-06-20  Jan Hubicka  <jh@suse.cz>
21498         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
21499         types_same_for_odr.
21500         * tree.c (decls_same_for_odr): New function.
21501         (same_for_edr): New function.
21502         (types_same_for_odr): New function.
21503         (get_binfo_at_offset): Use it.
21504         * tree.h (types_same_for_odr): Declare.
21506 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
21507             Jason Merrill  <jason@redhat.com>
21509         * system.h: Include <cstdlib> as well as <stdlib.h>.
21511 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
21513         PR target/57655
21514         * config/i386/i386.c (construct_container): Report error if
21515         long double is used with disabled x87 float returns.
21517 2013-06-20  Jan Hubicka  <jh@suse.cz>
21519         * lto-cgraph.c (input_symtab): Do not set cgraph state.
21521 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
21523         PR rtl-optimization/57425
21524         PR rtl-optimization/57569
21525         * alias.c (write_dependence_p): Remove parameters mem_mode and
21526         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
21527         Changed all callers.
21528         (canon_anti_dependence): Get comments and semantics in sync.
21529         Add parameter mem_canonicalized.  Changed all callers.
21530         * rtl.h (canon_anti_dependence): Update prototype.
21532 2013-06-20  Richard Biener  <rguenther@suse.de>
21534         * data-streamer-in.c (streamer_read_uhwi): Optimize single
21535         byte case, inline streamer_read_uchar and defer section
21536         overrun check.
21538 2013-06-20  Richard Biener  <rguenther@suse.de>
21540         PR tree-optimization/57584
21541         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
21542         SSA names into the expanded expression that take part in
21543         abnormal coalescing.
21545 2013-06-19  Sharad Singhai  <singhai@google.com>
21547         * gcov.c (print_usage): Handle new option.
21548         (process_args): Ditto.
21549         (get_gcov_intermediate_filename): New function.
21550         (output_intermediate_file): New function.
21551         (output_gcov_file): New function
21552         (generate_results): Handle new option.
21553         (release_function): Relase demangled name.
21554         (read_graph_file): Handle demangled name.
21555         (output_lines): Ditto.
21556         * doc/gcov.texi: Document gcov intermediate format.
21558 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
21560         PR bootstrap/57604
21561         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
21562         (lra_emit_add): Use the functions.  Add comment about Y as an
21563         address segment.
21565 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
21567         PR driver/57652
21568         * collect2.c (collect_atexit): New.
21569         (collect_exit): Delete.
21570         (main): Register collect_atexit with atexit.
21571         (collect_wait): Change collect_exit to exit.
21572         (do_wait): Same.
21573         * collect2.h (collect_exit): Delete.
21574         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
21576 2013-06-19  Wei Mi  <wmi@google.com>
21578         PR rtl-optimization/57518
21579         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
21580         if regno is used in paradoxical subreg.
21581         (update_equiv_regs): Check pdx_subregs[regno] before
21582         set a reg to be equivalent with a mem.
21584 2013-06-19  Matthias Klose  <doko@ubuntu.com>
21586         PR driver/57651
21587         * file-find.h (find_a_file): Add a mode parameter.
21588         * file-find.c (find_a_file): Likewise.
21589         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
21590         with X_OK for the executables.
21591         * collect2.c (main): Call find_a_file with X_OK.
21593 2013-06-19  Steve Ellcey  <sellcey@mips.com>
21595         PR target/56942
21596         * config/mips/mips.md (casesi_internal_mips16_<mode>):
21597         Use NEXT_INSN instead of next_real_insn.
21599 2013-06-19  Jan Hubicka  <jh@suse.cz>
21601         * cgraph.h (const_value_known_p): Replace by ...
21602         (ctor_for_folding): .. this one.
21603         * cgraphunit.c (process_function_and_variable_attributes): Use it.
21604         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
21605         * expr.c (expand_expr_real_1): Likewise.
21606         (string_constant): Likewise.
21607         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
21608         * ipa.c (process_references): Likewise.
21609         (symtab_remove_unreachable_nodes): Likewise.
21610         * ipa-inline-analysis.c (param_change_prob): Likewise.
21611         * gimple-fold.c (canonicalize_constructor_val): Likewise.
21612         (get_base_constructor): Likwise.
21613         * varpool.c (varpool_remove_node): Likewise.
21614         (varpool_remove_initializer): LIkewise.
21615         (dump_varpool_node): LIkwise.
21616         (const_value_known_p): Rewrite to ...
21617         (ctor_for_folding): ... this one.
21619 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
21621         PR driver/57651
21622         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
21623         PERSONALITY in $PATH derived prefixes.
21625 2013-06-19  Jeff Law  <law@redhat.com>
21627         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
21628         in comment.
21630         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
21631         (simplify_bitwise_binary): Use it to simpify certain binary ops on
21632         booleans.
21634 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
21636         * config/arm/vfp.md: Move VFP instruction classification documentation
21637         to ...
21638         * config/arm/arm.md: ... here.  Update instruction classification
21639         documentation.
21641 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
21643         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
21644         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
21645         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
21647 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
21649         PR target/57609
21650         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21651         with NEXT_INSN.  Use tablejump_p to check for jump table data
21652         insns.
21654 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
21656         PR c++/56544
21657         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
21658         that now in C++ the value is correct per the C++ standards.
21660 2013-06-19  Richard Biener  <rguenther@suse.de>
21662         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
21663         for global context.
21665 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21667         Revert:
21668         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21670         PR target/57609
21671         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21672         with next_active_insn.
21674 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
21676         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
21677         functions are inlined during failures to flag an error.
21678         * tree-inline.c (expand_call_inline): Allow the error to be flagged
21679         in early inline pass.
21681 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
21683         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
21684         in comments.
21686 2013-06-18  Julian Brown  <julian@codesourcery.com>
21688         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
21689         Permit virtual register pre-reload if !strict.
21690         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
21691         change.
21692         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
21693         prototype.
21694         * config/arm/neon.md (movmisalign<mode>): Use
21695         neon_perm_struct_or_reg_operand instead of
21696         neon_struct_or_register_operand.
21697         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
21698         neon_permissive_struct_operand instead of neon_struct_operand.
21699         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
21700         neon_vector_mem_operand.
21701         * config/arm/predicates.md (neon_struct_operand): Adjust call to
21702         neon_vector_mem_operand.
21703         (neon_permissive_struct_operand): New.
21704         (neon_struct_or_register_operand): Rename to...
21705         (neon_perm_struct_or_reg_operand): This. Adjust call to
21706         neon_vector_mem_operand.
21708 2013-06-18  Richard Biener  <rguenther@suse.de>
21710         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
21711         * lto-streamer.h: Include pointer-set.h.
21712         (struct lto_decl_slot): Remove.
21713         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
21714         Remove next_index entry.
21715         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
21716         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
21717         (lto_init_tree_ref_encoder): Adjust.
21718         (lto_destroy_tree_ref_encoder): Likewise.
21719         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
21720         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
21721         (lto_output_decl_index): Adjust.
21722         (lto_new_out_decl_state): Likewise.
21723         (lto_record_function_out_decl_state): Likewise.
21724         * lto-streamer-out.c (copy_function): Likewise.
21726 2013-06-18  Richard Biener  <rguenther@suse.de>
21728         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
21729         * cgraphunit.c: Include cfgloop.h.
21730         (init_lowered_empty_function): Initialize the loop tree.
21731         (assemble_thunk): Insert new BBs into loops.
21733 2013-06-18  Richard Biener  <rguenther@suse.de>
21735         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
21736         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
21737         the map from cache entry to cache index optional.
21738         (streamer_tree_cache_replace_tree): Adjust accordingly.
21739         (streamer_tree_cache_append): Likewise.
21740         (streamer_tree_cache_delete): Likewise.
21741         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
21742         streamer cache map from cache entry to cache index.
21743         * lto-streamer-out.c (create_output_block): Adjust.
21745 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
21747         * config/arm/arm.md (attribute "insn"): Move multiplication and
21748         division attributes to...
21749         (attribute "type"): ... here.  Remove mult.
21750         (attribute "mul32"): New attribute.
21751         (attribute "mul64"): Add umaal.
21752         (*arm_mulsi3): Update attributes.
21753         (*arm_mulsi3_v6): Likewise.
21754         (*thumb_mulsi3): Likewise.
21755         (*thumb_mulsi3_v6): Likewise.
21756         (*mulsi3_compare0): Likewise.
21757         (*mulsi3_compare0_v6): Likewise.
21758         (*mulsi_compare0_scratch): Likewise.
21759         (*mulsi_compare0_scratch_v6): Likewise.
21760         (*mulsi3addsi): Likewise.
21761         (*mulsi3addsi_v6): Likewise.
21762         (*mulsi3addsi_compare0): Likewise.
21763         (*mulsi3addsi_compare0_v6): Likewise.
21764         (*mulsi3addsi_compare0_scratch): Likewise.
21765         (*mulsi3addsi_compare0_scratch_v6): Likewise.
21766         (*mulsi3subsi): Likewise.
21767         (*mulsidi3adddi): Likewise.
21768         (*mulsi3addsi_v6): Likewise.
21769         (*mulsidi3adddi_v6): Likewise.
21770         (*mulsidi3_nov6): Likewise.
21771         (*mulsidi3_v6): Likewise.
21772         (*umulsidi3_nov6): Likewise.
21773         (*umulsidi3_v6): Likewise.
21774         (*umulsidi3adddi): Likewise.
21775         (*umulsidi3adddi_v6): Likewise.
21776         (*smulsi3_highpart_nov6): Likewise.
21777         (*smulsi3_highpart_v6): Likewise.
21778         (*umulsi3_highpart_nov6): Likewise.
21779         (*umulsi3_highpart_v6): Likewise.
21780         (mulhisi3): Likewise.
21781         (*mulhisi3tb): Likewise.
21782         (*mulhisi3bt): Likewise.
21783         (*mulhisi3tt): Likewise.
21784         (maddhisi4): Likewise.
21785         (*maddhisi4tb): Likewise.
21786         (*maddhisi4tt): Likewise.
21787         (maddhidi4): Likewise.
21788         (*maddhidi4tb): Likewise.
21789         (*maddhidi4tt): Likewise.
21790         (divsi3): Likewise.
21791         (udivsi3): Likewise.
21792         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
21793         (thumb2_mulsi_short_compare0): Likewise.
21794         (thumb2_mulsi_short_compare0_scratch): Likewise.
21795         * config/arm/arm1020e.md (1020mult1): Update attribute change.
21796         (1020mult2): Likewise.
21797         (1020mult3): Likewise.
21798         (1020mult4): Likewise.
21799         (1020mult5): Likewise.
21800         (1020mult6): Likewise.
21801         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
21802         change.
21803         (cortex_a15_mult64): Likewise.
21804         (cortex_a15_sdiv): Likewise.
21805         (cortex_a15_udiv): Likewise.
21806         * config/arm/arm1026ejs.md (mult1): Update attribute change.
21807         (mult2): Likewise.
21808         (mult3): Likewise.
21809         (mult4): Likewise.
21810         (mult5): Likewise.
21811         (mult6): Likewise.
21812         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
21813         (pj4_ir_div): Likewise.
21814         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
21815         (11_mult2): Likewise.
21816         (11_mult3): Likewise.
21817         (11_mult4): Likewise.
21818         (11_mult5): Likewise.
21819         (11_mult6): Likewise.
21820         (11_mult7): Likewise.
21821         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
21822         (cortex_a8_mla): Likewise.
21823         (cortex_a8_mull): Likewise.
21824         (cortex_a8_smulwy): Likewise.
21825         (cortex_a8_smlald): Likewise.
21826         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
21827         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
21828         (cortex_r4_mul_3): Likewise.
21829         (cortex_r4_mla_4): Likewise.
21830         (cortex_r4_mla_3): Likewise.
21831         (cortex_r4_smlald): Likewise.
21832         (cortex_r4_mull): Likewise.
21833         (cortex_r4_sdiv): Likewise.
21834         (cortex_r4_udiv): Likewise.
21835         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
21836         (cortex_a7_idiv): Likewise.
21837         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
21838         (9_mult2): Likewise.
21839         (9_mult3): Likewise.
21840         (9_mult4): Likewise.
21841         (9_mult5): Likewise.
21842         (9_mult6): Likewise.
21843         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
21844         (cortex_a53_sdiv): Likewise.
21845         (cortex_a53_udiv): Likewise.
21846         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
21847         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
21848         (mp626_mult2): Likewise.
21849         (mp626_mult3): Likewise.
21850         (mp626_mult4): Likewise.
21851         * config/arm/fa526.md (526_mult1): Update attribute change.
21852         (526_mult2): Likewise.
21853         * config/arm/arm-generic.md (mult): Update attribute change.
21854         (mult_ldsched_strongarm): Likewise.
21855         (mult_ldsched): Likewise.
21856         (multi_cycle): Likewise.
21857         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
21858         * config/arm/fa606te.md (606te_mult1): Update attribute change.
21859         (606te_mult2): Likewise.
21860         (606te_mult3): Likewise.
21861         (606te_mult4): Likewise.
21862         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
21863         (cortex_a9_mac16): Likewise.
21864         (cortex_a9_multiply): Likewise.
21865         (cortex_a9_mac): Likewise.
21866         (cortex_a9_multiply_long): Likewise.
21867         * config/arm/fa626te.md (626te_mult1): Update attribute change.
21868         (626te_mult2): Likewise.
21869         (626te_mult3): Likewise.
21870         (626te_mult4): Likewise.
21872 2013-06-18  Richard Biener  <rguenther@suse.de>
21874         PR lto/57334
21875         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
21877 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21879         PR target/57609
21880         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21881         with next_active_insn.
21883 2013-06-18  Alan Modra  <amodra@gmail.com>
21885         * config/rs6000/rs6000.h (enum data_align): New.
21886         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
21887         (DATA_ABI_ALIGNMENT): Define.
21888         (CONSTANT_ALIGNMENT): Correct comment.
21889         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
21890         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
21892 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
21894         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
21895         ATTRIBUTE_UNUSED marking.
21897 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
21899         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
21900         alternative and update.
21901         (aarch64_dup_lanedi): Delete.
21902         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
21903         * config/aarch64/aarch64-simd-builtins.def: Update.
21905 2013-06-17  Richard Biener  <rguenther@suse.de>
21907         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
21908         (lto_input_scc): Declare.
21909         (lto_input_tree_1): Likewise.
21910         (struct lto_stats_d): Add num_tree_bodies_output and
21911         num_pickle_refs_output.
21912         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
21913         (lto_read_tree_1): Split out from ...
21914         (lto_read_tree): ... this.
21915         (lto_input_scc): New function.
21916         (lto_input_tree_1): Split out from ...
21917         (lto_input_tree): ... this.  Handle LTO_tree_scc.
21918         (lto_data_in_create): Create the streamer cache without hashes.
21919         * lto-streamer-out.c (create_output_block): Create the streamer
21920         cache with hashes when not doing WPA.
21921         (lto_write_tree_1): Split out from ...
21922         (lto_write_tree): ... this.
21923         (get_symbol_initial_value): New function.
21924         (lto_output_tree_1): Split out from ...
21925         (lto_output_tree): ... this.  Write trees as series of SCCs
21926         using a DFS walk via DFS_write_tree.
21927         (struct sccs, struct scc_entry): New types.
21928         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
21929         (DFS_write_tree_body): New function.
21930         (DFS_write_tree): Likewise.
21931         (hash_tree): Likewise.
21932         (scc_entry_compare): Likewise.
21933         (hash_scc): Likewise.
21934         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
21935         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
21936         TREE_CHAIN as regular reference.
21937         (streamer_read_integer_cst): Remove.
21938         (streamer_get_pickled_tree): Adjust.
21939         * tree-streamer-out.c (streamer_write_chain): Disable streaming
21940         of DECL_EXTERNALs in BLOCK_VARS for now.
21941         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
21942         reference.
21943         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
21944         Add hash value argument and record that if hashes are recorded
21945         in the cache.
21946         (streamer_tree_cache_insert_1): Adjust.
21947         (streamer_tree_cache_insert): Likewise.
21948         (streamer_tree_cache_insert_at): Rename to ...
21949         (streamer_tree_cache_replace_tree): ... this and adjust.
21950         (streamer_tree_cache_append): Adjust.
21951         (record_common_node): Likewise.
21952         (streamer_tree_cache_create): Add argument whether to
21953         record hash values together with trees.
21954         (streamer_tree_cache_delete): Adjust.
21955         * tree-streamer.h (struct streamer_tree_cache_d): Add
21956         vector of hashes.
21957         (streamer_read_integer_cst): Remove.
21958         (streamer_tree_cache_insert): Adjust.
21959         (streamer_tree_cache_append): Likewise.
21960         (streamer_tree_cache_insert_at): Rename to ...
21961         (streamer_tree_cache_replace_tree): ... this and adjust.
21962         (streamer_tree_cache_create): Add argument whether to record hashes.
21963         (streamer_tree_cache_get): Rename to ...
21964         (streamer_tree_cache_get_tree): ... this.
21965         (streamer_tree_cache_get_hash): New function.
21966         * tree.c (cache_integer_cst): New function.
21967         * tree.h (cache_integer_cst): Declare.
21968         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
21969         * lto-symtab.c (lto_varpool_replace_node): Only release
21970         DECL_INITIAL of non-prevailing decls.
21971         * varpool.c (varpool_remove_initializer): Do not release
21972         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
21974 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
21976         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
21977         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
21978         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
21979         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
21980         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
21981         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
21982         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
21983         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
21984         instead of TARGET_64BIT.
21985         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
21986         Require ISA_HAS_<D>DIV.
21988 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
21990         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
21991         (mips*-*-linux*): Move default with_llsc setting to where other
21992         defaults are set.
21993         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
21994         with_arch block.
21995         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
21996         Likewise.  Remove default with_tune setting.  Move default float
21997         setting to its own block.  Handle with_llsc in the same block as above.
21999 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
22001         PR rtl-optimization/57425
22002         PR rtl-optimization/57569
22003         * alias.c (write_dependence_p): Add new parameters mem_mode,
22004         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
22005         Changed all callers.
22006         (canon_anti_dependence): New function.
22007         * cse.c (check_dependence): Use canon_anti_dependence.
22008         * cselib.c (cselib_invalidate_mem): Likewise.
22009         * rtl.h (canon_anti_dependence): Declare.
22011 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
22013         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
22014         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
22015         ".set mips3" for 64-bit targets.
22017 2013-06-15  Dehao Chen  <dehao@google.com>
22019         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
22020         * gimple-low.c (gimple_check_call_matching_types): Likewise.
22021         (gimple_check_call_args): Likewise.
22022         * value-prof.c (check_ic_target): Likewise.
22023         * ipa-inline.c (early_inliner): Likewise.
22024         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
22025         * cgraph.c (cgraph_create_edge_1): Likewise.
22026         (cgraph_make_edge_direct): Likewise.
22028 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22030         PR target/57615
22031         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
22032         rs6000_output_move_128bit to handle emitting quad memory
22033         operations.  Set attribute length to 8 bytes.
22035 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
22037         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
22038         New pattern.
22039         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
22040         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
22041         (aarch64_<su>mlsl<mode>): Likewise.
22043 2013-06-14  Mike Stump  <mikestump@comcast.net>
22045         * Makefile.in (TARGET_H): Add insn-codes.h.
22047 2013-06-14  Alan Modra  <amodra@gmail.com>
22049         PR middle-end/57134
22050         PR middle-end/57586
22051         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
22052         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
22053         bitfield expansion when EXPAND_MEMORY.
22054         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
22056 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
22058         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
22059         test for clearing quad memory on 32-bit later.
22061 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
22063         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
22064         (fold_negate_expr): Likewise.
22065         (fold_real_zero_addition_p): Handle vectors.
22066         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
22068 2013-06-14  Alan Modra  <amodra@gmail.com>
22070         * varasm.c (force_const_mem): Revert 2013-06-07 change.
22072 2013-06-13  Jan Hubicka  <jh@suse.cz>
22074         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
22075         Local comdats are not externally visible.
22076         * symtab.c (dump_symtab_base): Dump externally visible.
22077         (verify_symtab_base): Verify back links in the symtab hash.
22079 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
22081         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
22082         CONVERT_EXPR as equal nodes.
22084 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
22086         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
22088 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
22090         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
22091         Generalize to complex and vector.
22092         * tree.c (build_all_ones_cst): New function.
22093         * tree.h (build_all_ones_cst): Declare it.
22095 2013-06-13  Alan Modra  <amodra@gmail.com>
22097         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
22098         * config/rs6000/rs6000.md (signbittf2): New insn.
22099         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
22100         (abstf2_internal, cmptf_internal2): Likewise.
22101         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
22103 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22104             Pat Haugen  <pthaugen@us.ibm.com>
22105             Peter Bergner  <bergner@vnet.ibm.com>
22107         * config/rs6000/rs6000.c (emit_load_locked): Add support for
22108         power8 byte, half-word, and quad-word atomic instructions.
22109         (emit_store_conditional): Likewise.
22110         (rs6000_expand_atomic_compare_and_swap): Likewise.
22111         (rs6000_expand_atomic_op): Likewise.
22113         * config/rs6000/sync.md (larx): Add new modes for power8.
22114         (stcx): Likewise.
22115         (AINT): New mode iterator to include TImode as well as normal
22116         integer modes on power8.
22117         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
22118         that VSX registers are not considered.  Use AINT mode iterator
22119         instead of INT1 to allow inclusion of quad word atomic operations
22120         on power8.
22121         (load_locked<mode>): Likewise.
22122         (store_conditional<mode>): Likewise.
22123         (atomic_compare_and_swap<mode>): Likewise.
22124         (atomic_exchange<mode>): Likewise.
22125         (atomic_nand<mode>): Likewise.
22126         (atomic_fetch_<fetchop_name><mode>): Likewise.
22127         (atomic_nand_fetch<mode>): Likewise.
22128         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
22129         each type.
22130         (ATOMIC): On power8, add QImode, HImode modes.
22131         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
22132         modes that promote to SImode.
22133         (load_lockedti): Convert TImode arguments to PTImode, so that we
22134         get a guaranteed even/odd register pair.
22135         (load_lockedpti): Likewise.
22136         (store_conditionalti): Likewise.
22137         (store_conditionalpti): Likewise.
22139         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
22140         atomic load/store instructions.
22141         (HSI): Likewise.
22143 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
22145         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
22146         loads.
22147         (insn_count): New attribute, with most cases extracted from...
22148         (length): ...here.  Redefine most cases in terms of insn_count.
22149         (single_insn): Delete.
22150         (can_delay): Use insn_count to check for single instructions.
22151         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
22152         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
22153         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
22154         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
22155         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
22156         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
22157         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
22158         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
22159         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
22160         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
22161         rather than "length".
22162         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
22163         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
22164         Use "insn_count" rather than "length".
22165         * config/mips/mips-dsp.md
22166         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
22167         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
22168         length attributes.
22170 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
22172         PR tree-optimization/57361
22173         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
22175 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
22177         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
22178         to split.
22179         (aarch64_simd_combine<mode>): New instruction expansion.
22180         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
22181         function prototype.
22182         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
22183         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
22185 2013-06-12  Jan Hubicka  <jh@suse.cz>
22187         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
22188         decl has when in streaming stage.
22189         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
22190         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
22192 2013-06-12  Roland Stigge  <stigge@antcom.de>
22194         PR target/57578
22195         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
22197 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
22199         PR tree-optimization/57537
22200         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
22201         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
22203 2013-06-12  Richard Biener  <rguenther@suse.de>
22205         * data-streamer.h (streamer_write_char_stream): CSE
22206         obs->current_pointer.
22207         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
22208         streamer_write_char_stream manually and optimize the resulting loop.
22209         (streamer_write_hwi_stream): Likewise.
22211 2013-06-12  Jan Hubicka  <jh@suse.cz>
22213         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
22214         * cgraph.h (varpool_create_empty_node): Declare.
22215         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
22216         duplicated nodes.
22217         * symtab.c (symtab_unregister_node): Be lax about missin entries
22218         in node hash.
22219         (symtab_get_node): Update comment.
22220         * varpool.c (varpool_create_empty_node): Break out from ...
22221         (varpool_node_for_decl): ... here.
22222         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
22224 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
22226         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
22227         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
22228         part.  Use straight-line flow at the end.
22229         <COMPONENT_REF>: Remove superfluous else.
22230         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
22232 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
22234         PR target/56564
22235         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
22236         target hook even for !TREE_PUBLIC decls.  If no resolution info
22237         is available, return false for common and external decls.
22239 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
22241         * config/rl78/constraints.md (U): New constraint.
22242         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
22243         valloc attribute.
22245 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
22247         PR target/57589
22248         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
22249         to allow returning address to AT_PLATFORM name.
22251 2013-06-11  Jan Hubicka  <jh@suse.cz>
22253         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
22254         * cgraph.h (symtab_node_base): Add weakref flag.
22255         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
22256         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
22257         (output_weakrefs): Use weakref flag.
22258         * fold-const.c (simple_operand_p): Handle WEAK.
22259         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
22260         * ipa.c (varpool_externally_visible_p): Drop weakref.
22261         (function_and_variable_visibility): Update comment; fix weakref
22262         sanity checks; do not clear DECL_WEAK on them.
22263         * lto-cgraph.c (lto_output_node): update.
22264         (lto_output_varpool_node): Update.
22265         (input_overwrite_node): Update.
22266         (input_node): Update.
22267         (input_varpool_node): Update.
22268         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
22269         (lto_symtab_merge_symbols): Add sanity check.
22270         (lto_symtab_prevailing_decl): Do not special case weakrefs.
22271         * passes.c (rest_of_decl_compilation): Set static flag, too.
22272         * symtab.c (dump_symtab_base): Dump weakref.
22273         (verify_symtab_base): Sanity check weakrefs.
22274         (symtab_make_decl_local): Remove duplicated code.
22275         (symtab_alias_ultimate_target): Simplify.
22276         * varpool.c (varpool_create_variable_alias): Set weakref flag.
22278 2013-06-11  Tom de Vries  <tom@codesourcery.com>
22280         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
22281         sequence_vect == NULL.
22283 2013-06-11  DJ Delorie  <dj@redhat.com>
22285         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
22286         (rl78_unwind_word_mode): New.
22288 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
22290         * final.c (debug_prefix_maps): Make static.
22292 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
22294         * function.c (initial_trampoline): Remove stray copy.
22296 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
22298         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
22300 2013-06-11  Martin Jambor  <mjambor@suse.cz>
22302         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
22303         within bounds at the beginning of the function.
22305 2013-06-11  Alan Modra  <amodra@gmail.com>
22307         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
22308         reporting.
22309         (get_named_section): Don't NULL !DECL_P decl.
22311 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
22313         * doc/invoke.texi (core-avx2): Document.
22314         (slm): Likewise.
22315         (atom): Updated with MOVBE.
22317 2013-06-11  Richard Biener  <rguenther@suse.de>
22319         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
22321 2013-06-11  Anton Blanchard  <anton@samba.org>
22323         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
22324         correct shift value in little-endian mode.
22326 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
22328         PR target/56564
22329         * varasm.c (get_variable_align): Move #endif to the right place.
22331 2013-06-10  Cary Coutant  <ccoutant@google.com>
22333         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
22334         for hash so that hash table traversal order is deterministic.
22336 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
22337             Pat Haugen  <pthaugen@us.ibm.com>
22338             Peter Bergner  <bergner@vnet.ibm.com>
22340         * config/rs6000/vector.md (GPR move splitter): Do not split moves
22341         of vectors in GPRS if they are direct moves or quad word load or
22342         store moves.
22344         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
22345         declaration.
22346         (direct_move_p): Likewise.
22347         (quad_load_store_p): Likewise.
22349         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
22350         classes into bins based on the physical register type.
22351         (reg_class_to_reg_type): Likewise.
22352         (IS_STD_REG_TYPE): Likewise.
22353         (IS_FP_VECT_REG_TYPE): Likewise.
22354         (reload_fpr_gpr): Arrays to determine what insn to use if we can
22355         use direct move instructions.
22356         (reload_gpr_vsx): Likewise.
22357         (reload_vsx_gpr): Likewise.
22358         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
22359         information that is a simplification of register classes.  Also
22360         precalculate direct move reload helpers.
22361         (direct_move_p): New function to return true if the operation can
22362         be done as a direct move instruciton.
22363         (quad_load_store_p): New function to return true if the operation
22364         is a quad memory operation.
22365         (rs6000_legitimize_address): If quad memory, only allow register
22366         indirect for TImode addresses.
22367         (rs6000_legitimate_address_p): Likewise.
22368         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
22369         (rs6000_reload_register_type): Likewise.
22370         (register_to_reg_type): Return register type.
22371         (rs6000_secondary_reload_simple_move): New helper function for
22372         secondary reload and secondary memory needed to identify anything
22373         that is a simple move, and does not need reloading.
22374         (rs6000_secondary_reload_direct_move): New helper function for
22375         secondary reload to identify cases that can be done with several
22376         instructions via the direct move instructions.
22377         (rs6000_secondary_reload_move): New helper function for secondary
22378         reload to identify moves between register types that can be done.
22379         (rs6000_secondary_reload): Add support for quad memory operations
22380         and for direct move.
22381         (rs6000_secondary_memory_needed): Likewise.
22382         (rs6000_debug_secondary_memory_needed): Change argument names.
22383         (rs6000_output_move_128bit): New function to return the move to
22384         use for 128-bit moves, including knowing about the various
22385         limitations of quad memory operations.
22387         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
22388         memory operations.  call rs6000_output_move_128bit for the actual
22389         instruciton(s) to generate.
22390         (vsx_movti_64bit): Likewise.
22392         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
22393         (UNSPEC_P8V_MTVSRWZ): Likewise.
22394         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
22395         (UNSPEC_P8V_MTVSRD): Likewise.
22396         (UNSPEC_P8V_XXPERMDI): Likewise.
22397         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
22398         (UNSPEC_FUSION_GPR): Likewise.
22399         (FMOVE128_GPR): New iterator for direct move.
22400         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
22401         (f32_sv): Likewise.
22402         (f32_dm): Likewise.
22403         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
22404         loads and direct move instructions.
22405         (zero_extendsidi2_lfiwzx): Likewise.
22406         (extendsidi2_lfiwax): Likewise.
22407         (extendsidi2_nocell): Likewise.
22408         (floatsi<mode>2_lfiwax): Likewise.
22409         (lfiwax): Likewise.
22410         (floatunssi<mode>2_lfiwzx): Likewise.
22411         (lfiwzx): Likewise.
22412         (fix_trunc<mode>_stfiwx): Likewise.
22413         (fixuns_trunc<mode>_stfiwx): Likewise.
22414         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
22415         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
22416         (parity<mode>2_cmpb): Set length/type attr.
22417         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
22418         for 'mr.' to fast_compare.
22419         (bpermd_<mode>): Change type attr to popcnt.
22420         (p8_fmrgow_<mode>): New insns for power8 direct move support.
22421         (p8_mtvsrwz_1): Likewise.
22422         (p8_mtvsrwz_2): Likewise.
22423         (reload_fpr_from_gpr<mode>): Likewise.
22424         (p8_mtvsrd_1): Likewise.
22425         (p8_mtvsrd_2): Likewise.
22426         (p8_xxpermdi_<mode>): Likewise.
22427         (reload_vsx_from_gpr<mode>): Likewise.
22428         (reload_vsx_from_gprsf): Likewise.
22429         (p8_mfvsrd_3_<mode>): LIkewise.
22430         (reload_gpr_from_vsx<mode>): Likewise.
22431         (reload_gpr_from_vsxsf): Likewise.
22432         (p8_mfvsrd_4_disf): Likewise.
22433         (multi-word GPR splits): Do not split direct moves or quad memory
22434         operations.
22436 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
22438         * tree-into-ssa.c (interesting_blocks): Make static.
22440 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
22442         PR target/56564
22443         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
22444         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
22445         Use DATA_ABI_ALIGNMENT for that case instead if defined.
22446         (get_variable_align): New function.
22447         (get_variable_section, emit_bss, emit_common,
22448         assemble_variable_contents, place_block_symbol): Use
22449         get_variable_align instead of DECL_ALIGN.
22450         (assemble_noswitch_variable): Add align argument, use it
22451         instead of DECL_ALIGN.
22452         (assemble_variable): Adjust caller.  Use get_variable_align
22453         instead of DECL_ALIGN.
22454         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
22455         caller.
22456         (DATA_ABI_ALIGNMENT): Define.
22457         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
22458         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
22459         opt is false, only return the psABI mandated alignment increase.
22460         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
22461         (DATA_ABI_ALIGNMENT): ... this.
22462         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
22463         (DATA_ABI_ALIGNMENT): ... this.
22464         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
22465         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
22466         (DATA_ABI_ALIGNMENT): ... this.
22467         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
22468         * doc/tm.texi: Regenerated.
22470 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
22472         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
22473         cmp_code to construct REG_EQUAL note.
22475 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
22477         PR target/57568
22478         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
22479         that operands[2] doesn't overlap with operands[0].
22481 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
22482             Jan Hubicka  <jh@suse.cz>
22484         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
22485         hack to mark symbols as used.
22487 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
22489         PR rtl-optimization/57559
22490         * lra-constraints.c (process_alt_operands): Don't discourage
22491         memory with known offset for offsetable memory constraint.
22492         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
22494 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
22496         * varasm.c (struct oc_local_state): Reorder fields.
22497         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
22498         and adjust accordingly.
22499         (output_constructor): Reorder initialization code and adjust call to
22500         output_constructor_bitfield.
22502 2013-06-07  Jan Hubicka  <jh@suse.cz>
22504         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
22506 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
22508         * tree-object-size.c (unknown): Make const.
22510 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22512         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
22513         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
22514         for last alternative in the cpu_facility attribute.
22516 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22518         PR target/56315
22519         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
22520         (xordi3): Change operand 2 constraint to arm_xordi_operand.
22521         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
22522         * config/arm/constraints.md (Dg): New constraint.
22523         * config/arm/neon.md (xordi3_neon): Remove.
22524         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
22525         * config/arm/predicates.md (arm_xordi_operand): New predicate.
22527 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22529         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
22530         Clean up alternatives.
22532 2013-06-07  Alan Modra  <amodra@gmail.com>
22534         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
22535         va_list_gpr_size.
22537 2013-06-07  Alan Modra  <amodra@gmail.com>
22539         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
22541 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22543         * config/arm/constraints.md (Df): New constraint.
22544         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
22545         Correct length attribute for last two alternatives.
22547 2013-06-07  Alan Modra  <amodra@gmail.com>
22549         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22550         override user -mfp-in-toc.
22551         (offsettable_ok_by_alignment): Consider just the current access
22552         rather than the whole object, unless BLKmode.  Handle
22553         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
22554         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
22555         for -mcmodel=medium.
22556         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
22557         override user -mfp-in-toc or -msum-in-toc.  Default to
22558         -mno-fp-in-toc for -mcmodel=medium.
22560 2013-06-06  DJ Delorie  <dj@redhat.com>
22562         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
22563         TARGET_VALID_POINTER_MODE.
22565 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22566             Pat Haugen  <pthaugen@us.ibm.com>
22567             Peter Bergner  <bergner@vnet.ibm.com>
22569         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22570         Document new power8 builtins.
22572         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
22573         condition code register, to allow 128-bit logical operations to be
22574         done in the VSX or GPR registers.
22575         (nor<mode>3): Use the canonical form for nor.
22576         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
22577         vclz*, and vpopcnt* vector instructions.
22578         (nand<mode>3): Likewise.
22579         (orc<mode>3): Likewise.
22580         (clz<mode>2): LIkewise.
22581         (popcount<mode>2): Likewise.
22583         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
22584         that only the GPRs are recognized.
22586         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22587         support for new power8 builtins.
22589         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
22590         builtin functions.
22591         (xscvdpspn): Likewise.
22592         (vclz): Likewise.
22593         (vclzb): Likewise.
22594         (vclzh): Likewise.
22595         (vclzw): Likewise.
22596         (vclzd): Likewise.
22597         (vpopcnt): Likewise.
22598         (vpopcntb): Likewise.
22599         (vpopcnth): Likewise.
22600         (vpopcntw): Likewise.
22601         (vpopcntd): Likewise.
22602         (vgbbd): Likewise.
22603         (vmrgew): Likewise.
22604         (vmrgow): Likewise.
22605         (eqv): Likewise.
22606         (eqv_v16qi3): Likewise.
22607         (eqv_v8hi3): Likewise.
22608         (eqv_v4si3): Likewise.
22609         (eqv_v2di3): Likewise.
22610         (eqv_v4sf3): Likewise.
22611         (eqv_v2df3): Likewise.
22612         (nand): Likewise.
22613         (nand_v16qi3): Likewise.
22614         (nand_v8hi3): Likewise.
22615         (nand_v4si3): Likewise.
22616         (nand_v2di3): Likewise.
22617         (nand_v4sf3): Likewise.
22618         (nand_v2df3): Likewise.
22619         (orc): Likewise.
22620         (orc_v16qi3): Likewise.
22621         (orc_v8hi3): Likewise.
22622         (orc_v4si3): Likewise.
22623         (orc_v2di3): Likewise.
22624         (orc_v4sf3): Likewise.
22625         (orc_v2df3): Likewise.
22627         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
22628         allow power8 quad mode in 64-bit.
22629         (rs6000_builtin_vectorized_function): Add support to vectorize
22630         ISA 2.07 count leading zeros, population count builtins.
22631         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
22632         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
22633         (builtin_function_type): Add vgbbd builtin function which takes an
22634         unsigned argument.
22635         (altivec_expand_vec_perm_const): Add support for new power8 merge
22636         instructions.
22638         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
22639         that does not include TImdoe for use with 32-bit.
22640         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
22641         instructions.
22642         (UNSPEC_VSX_CVDPSPN): Likewise.
22643         (vsx_xscvdpspn): Likewise.
22644         (vsx_xscvspdpn): Likewise.
22645         (vsx_xscvdpspn_scalar): Likewise.
22646         (vsx_xscvspdpn_directmove): Likewise.
22647         (vsx_and<mode>3): Split logical operations into 32-bit and
22648         64-bit. Add support to do logical operations on TImode as well as
22649         VSX vector types.  Allow logical operations to be done in either
22650         VSX registers or in general purpose registers in 64-bit mode.  Add
22651         splitters if GPRs were used. For AND, add clobber of CCmode to
22652         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
22653         encoding.
22654         (vsx_and<mode>3_32bit): Likewise.
22655         (vsx_and<mode>3_64bit): Likewise.
22656         (vsx_ior<mode>3): Likewise.
22657         (vsx_ior<mode>3_32bit): Likewise.
22658         (vsx_ior<mode>3_64bit): Likewise.
22659         (vsx_xor<mode>3): Likewise.
22660         (vsx_xor<mode>3_32bit): Likewise.
22661         (vsx_xor<mode>3_64bit): Likewise.
22662         (vsx_one_cmpl<mode>2): Likewise.
22663         (vsx_one_cmpl<mode>2_32bit): Likewise.
22664         (vsx_one_cmpl<mode>2_64bit): Likewise.
22665         (vsx_nor<mode>3): Likewise.
22666         (vsx_nor<mode>3_32bit): Likewise.
22667         (vsx_nor<mode>3_64bit): Likewise.
22668         (vsx_andc<mode>3): Likewise.
22669         (vsx_andc<mode>3_32bit): Likewise.
22670         (vsx_andc<mode>3_64bit): Likewise.
22671         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
22672         and xxlorc instructions.
22673         (vsx_eqv<mode>3_64bit): Likewise.
22674         (vsx_nand<mode>3_32bit): Likewise.
22675         (vsx_nand<mode>3_64bit): Likewise.
22676         (vsx_orc<mode>3_32bit): Likewise.
22677         (vsx_orc<mode>3_64bit): Likewise.
22679         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
22681         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
22682         instruction.
22683         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
22684         (p8_vmrgow): Likewise.
22685         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
22686         GPRs to be split under VSX.
22687         (p8v_clz<mode>2): Add power8 count leading zero support.
22688         (p8v_popcount<mode>2): Add power8 population count support.
22689         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
22690         support.
22692         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
22693         instruction.
22695         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
22696         builtin functions.
22697         (vec_nand): Likewise.
22698         (vec_vclz): Likewise.
22699         (vec_vclzb): Likewise.
22700         (vec_vclzd): Likewise.
22701         (vec_vclzh): Likewise.
22702         (vec_vclzw): Likewise.
22703         (vec_vgbbd): Likewise.
22704         (vec_vmrgew): Likewise.
22705         (vec_vmrgow): Likewise.
22706         (vec_vpopcnt): Likewise.
22707         (vec_vpopcntb): Likewise.
22708         (vec_vpopcntd): Likewise.
22709         (vec_vpopcnth): Likewise.
22710         (vec_vpopcntw): Likewise.
22712 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22714         PR rtl-optimization/57468
22715         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
22716         spilled pseudos.
22718 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22720         PR rtl-optimization/57459
22721         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
22722         type when setting live regs.
22724 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22726         * config/s390/s390.opt (mlra): New option.
22727         * config/s390/s390.c (s390_decompose_address): Check displacement
22728         for all registers for LRA.
22729         (s390_secondary_reload): Don't used secondary reloads for LRA.
22730         (s390_lra_p): New function.
22731         (TARGET_LRA_P): Define.
22732         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
22733         of attribute cpu_facility to zarch for the last alternative.
22734         (*cmpmem_short): Ditto.
22736 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22738         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
22739         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
22740         (arm_expand_prologue): Likewise.
22742 2013-06-06  Teresa Johnson  <tejohnson@google.com>
22744         PR c++/53743
22745         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
22746         as this is now done by redirect_edge_and_branch_force.
22747         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
22748         barriers, and fix interaction with splitting.
22749         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
22750         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
22751         reflect changes made in the routine.
22752         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
22753         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
22754         since this is called in cfglayout mode, and replace partition fixup
22755         with assert as that is now done by force_nonfallthru_and_redirect.
22756         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
22757         already be marked with region crossing note.
22758         (insert_section_boundary_note): Make non-static, gate on flag
22759         has_bb_partition, rewrite to also check for multiple partitions.
22760         (rest_of_handle_reorder_blocks): Remove call to
22761         insert_section_boundary_note, now done later during free_cfg.
22762         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
22763         * bb-reorder.h (insert_section_boundary_note): Declare.
22764         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
22765         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
22766         invoke insert_section_boundary_note.
22767         (try_redirect_by_replacing_jump): Remove unnecessary
22768         check for region crossing note.
22769         (fixup_partition_crossing): New function.
22770         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
22771         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
22772         in non-cfglayout mode.
22773         (force_nonfallthru_and_redirect): Fixup partition boundaries,
22774         remove old code that tried to do this. Emit barrier correctly
22775         when we are in cfglayout mode.
22776         (last_bb_in_partition): New function.
22777         (rtl_split_edge): Correctly fixup partition boundaries.
22778         (commit_one_edge_insertion): Remove old code that tried to
22779         fixup region crossing edge since this is now handled in
22780         split_block, and set up insertion point correctly since
22781         block may now end in a jump.
22782         (verify_hot_cold_block_grouping): Guard against checking when not in
22783         linearized RTL mode.
22784         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
22785         notes.
22786         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
22787         rtl_verify_flow_info, so not called in cfglayout mode.
22788         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
22789         (fixup_reorder_chain): Remove old code that attempted to fixup region
22790         crossing note as this is now handled in force_nonfallthru_and_redirect.
22791         (duplicate_insn_chain): Don't duplicate switch section notes.
22792         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
22793         note.
22794         * basic-block.h (emit_barrier_after_bb): Declare.
22796 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22798         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
22799         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
22800         arm_usatsihi): Adjust alternatives for arm_restrict_it.
22802 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22804         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
22805         where appropriate.
22806         * config/arm/ldmstm.md: Regenerate.
22808 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22810         * config/arm/sync.md (atomic_loaddi_1):
22811         Disable predication for arm_restrict_it.
22812         (arm_load_exclusive<mode>): Likewise.
22813         (arm_load_exclusivesi): Likewise.
22814         (arm_load_exclusivedi): Likewise.
22815         (arm_load_acquire_exclusive<mode>): Likewise.
22816         (arm_load_acquire_exclusivesi): Likewise.
22817         (arm_load_acquire_exclusivedi): Likewise.
22818         (arm_store_exclusive<mode>): Likewise.
22819         (arm_store_exclusive<mode>): Likewise.
22820         (arm_store_release_exclusivedi): Likewise.
22821         (arm_store_release_exclusive<mode>): Likewise.
22823 2013-06-06  Richard Biener  <rguenther@suse.de>
22825         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
22826         after LTO_null.
22827         (lto_tag_is_tree_code_p): Adjust.
22828         (lto_tag_is_gimple_code_p): Likewise.
22829         (lto_gimple_code_to_tag): Likewise.
22830         (lto_tag_to_gimple_code): Likewise.
22831         (lto_tree_code_to_tag): Likewise.
22832         (lto_tag_to_tree_code): Likewise.
22833         * data-streamer.h (streamer_write_hwi_in_range): Use
22834         uhwi streaming to stream the normalized range.
22835         (streamer_read_hwi_in_range): Likewise.
22837 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22839         * config/arm/arm.md (enabled_for_depr_it): New attribute.
22840         (predicable_short_it): Likewise.
22841         (predicated): Likewise.
22842         (enabled): Handle above.
22843         (define_cond_exec): Set predicated attribute to yes.
22845 2013-06-05  Mike Stump  <mikestump@comcast.net>
22847         * gdbinit.in (__FUNCTION__): Add.
22849 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
22851         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
22852         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
22854 2013-06-05  Jan Hubicka  <jh@suse.cz>
22856         * varasm.c (mark_decl_referenced): Revert the removal until targets
22857         are fixed.
22859 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
22861         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
22862         instead of mark_decl_referenced.
22864 2013-06-05  Jan Hubicka  <jh@suse.cz>
22866         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
22867         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
22868         and symtab_used_from_object_file_p.
22869         (cgraph_make_node_local_1): Clear forced_by_abi.
22870         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
22871         * cgraph.h (symtab_node_base): Add forced_by_abi.
22872         (decide_is_variable_needed): Remove.
22873         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
22874         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
22875         (decide_is_symbol_needed): ... this one; handle symbols in general;
22876         always analyze virtuals; honnor forced_by_abi.
22877         (cgraph_finalize_function): Update.
22878         (varpool_finalize_decl): Update.
22879         (symbol_defined_and_needed): Remove.
22880         (analyze_functions): Update.
22881         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22882         output_refs, input_overwrite_node): Handle forced_by_abi.
22883         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
22884         (address_taken_from_non_vtable_p): ... this one.
22885         (comdat_can_be_unshared_p_1): New function.
22886         (cgraph_comdat_can_be_unshared_p): Rename to ...
22887         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
22888         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
22889         (function_and_variable_visibility): Clear forced_by_abi as needed.
22890         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
22891         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
22892         * symtab.c (dump_symtab_base): Dump forced_by_abi.
22893         * varpool.c (decide_is_variable_needed): Remove.
22895 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22897         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
22898         (arm_option_override): Override arm_restrict_it where appropriate.
22899         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
22900         * config/arm/arm.opt (mrestrict-it): New command-line option.
22901         * doc/invoke.texi: Document -mrestrict-it.
22903 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
22905         * tsan.c (tsan_atomic_table): Make const.
22907 2013-06-05  Richard Biener  <rguenther@suse.de>
22909         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
22910         index associated with the tree we are supposed to replace.
22911         * tree-streamer-out.c (pack_ts_base_value_fields): Output
22912         TREE_ASM_WRITTEN as zero for everything but SSA names.
22914 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
22916         * tree-ssa-structalias.c (call_stmt_vars): Make static.
22918 2013-06-04  Jan Hubicka  <jh@suse.cz>
22920         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
22921         (input_node, input_varpool_node): Handle correctly external same
22922         body aliases.
22923         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
22924         nodes at ltrans stage.
22926 2013-06-04  Jan Hubicka  <jh@suse.cz>
22928         * ipa-inline.c (update_caller_keys): Fix availability test.
22929         (update_callee_keys): Likewise.
22930         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
22931         to follow ELF standard.
22933 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
22935         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
22936         (mips64r5900el-*-elf*): New configurations.
22937         * config/mips/mips-cpus.def (r5900): New processor.
22938         * config/mips/mips-tables.opt: Regenerate.
22939         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
22940         (mips_issue_rate): Handle PROCESSOR_R5900.
22941         (mips_reorg_process_insns): Force reorder mode for the R5900.
22942         * config/mips/mips.h (TARGET_MIPS5900): Define.
22943         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
22944         TARGET_MIPS5900.
22945         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
22946         TARGET_MIPS5900.
22947         * config/mips/mips.md (processor): Add r5900.
22948         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
22950 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
22952         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
22953         into function to generate MOVI instruction.
22954         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
22955         (aarch64_preferred_simd_mode): Turn into wrapper.
22956         (aarch64_output_scalar_simd_mov_immediate): New function.
22957         * config/aarch64/aarch64-protos.h: Add prototype for above.
22959 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
22961         * config/aarch64/aarch64.c (simd_immediate_info): Remove
22962         element_char member.
22963         (sizetochar): Return signed char.
22964         (aarch64_simd_valid_immediate): Remove elchar and other
22965         unnecessary variables.
22966         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
22967         Calculate element_char as required.
22968         * config/aarch64/aarch64-protos.h: Update and move prototype
22969         for aarch64_output_simd_mov_immediate.
22970         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
22971         Update arguments.
22973 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
22975         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
22976         information completed by aarch64_simd_valid_immediate.
22977         (aarch64_legitimate_constant_p): Update arguments.
22978         (aarch64_simd_valid_immediate): Work with struct rather than many
22979         pointers.
22980         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
22981         (aarch64_simd_make_constant): Update arguments.
22982         (aarch64_output_simd_mov_immediate): Work with struct rather than
22983         many pointers.  Output immediate directly rather than as operand.
22984         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
22985         Update prototype.
22986         * config/aarch64/constraints.md (Dn): Update arguments.
22988 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
22990         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
22991         longer static.
22992         (aarch64_simd_immediate_valid_for_move): Remove.
22993         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
22994         (aarch64_simd_make_constant): Update call.
22995         (aarch64_output_simd_mov_immediate): Update call.
22996         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
22997         Add prototype.
22998         * config/aarch64/constraints.md (Dn): Update call.
23000 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
23002         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
23003         return type to bool for prototype.
23004         (aarch64_legitimate_constant_p): Check for true instead of not -1.
23005         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
23006         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
23008 2013-06-04  Catherine Moore  <clm@codesourcery.com>
23010         * config/mips/mips.opt (meva): New.
23011         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
23012         (ASM_SPEC): Handle -meva.
23013         * doc/invoke.texi (meva):  Document.
23015 2013-06-04  Alan Modra  <amodra@gmail.com>
23017         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
23018         constant output.
23020 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23022         * rtl.def: Add extra fourth optional field to define_cond_exec.
23023         * gensupport.c (process_one_cond_exec): Process attributes from
23024         define_cond_exec.
23025         * doc/md.texi: Document fourth field in define_cond_exec.
23027 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
23029         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
23030         out the processing order as in store_bit_field_1.
23032 2013-06-04  Jan Hubicka  <jh@suse.cz>
23034         PR middle-end/57500
23035         * cgraphunit.c (cgraph_process_same_body_aliases): Create
23036         non-VAR_DECL node if it does not exist yet.
23038 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
23040         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
23041         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
23042         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
23043         target_cpu_default setting.
23045 2013-06-03  Teresa Johnson  <tejohnson@google.com>
23047         * dumpfile.c (opt_info_switch_p): Change -fopt-info
23048         default to -fopt-info=optimized instead of all.
23049         * doc/invoke.texi: Ditto.
23050         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
23051         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
23052         (execute_vect_slp): Emit BB vectorization success under
23053         MSG_OPTIMIZED_LOCATIONS.
23054         * tree-vect-slp.c (vect_slp_transform_bb): Change
23055         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
23056         * tree-vect-loop.c (vect_transform_loop): Ditto.
23058 2013-06-03  Jason Merrill  <jason@redhat.com>
23060         PR c++/57415
23061         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23062         Use TARGET_EXPR for C++.
23064 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
23066         PR rtl-optimization/57268
23067         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
23068         if DEBUG_INSN_P (insn).
23070         Reapply
23071         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
23073         PR rtl-optimization/57268
23074         * sched-deps.c (sched_analyze_2): Flush dependence lists if
23075         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23077 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
23079         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
23080         (ix86_avoid_lea_for_addr): Likewise.
23081         (exact_dependency_1): Likewise.
23082         (ix86_adjust_cost): Likewise.
23083         (swap_top_of_ready_list): Fix formatting and !reload_completed check
23084         removed.
23085         (do_reorder_for_imul): Fix typo, formatting and
23086         !reload_completed check removed.
23087         (ix86_sched_reorder): Fix typo and formatting.
23088         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
23089         list.
23091 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
23093         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
23095 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
23097         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
23098         <STRING_CST>: Likewise.
23099         <VECTOR_CST>: Likewise.
23101 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
23102             Mikael Morin  <mikael@gcc.gnu.org>
23104         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
23105         * config.in: Regenerated.
23106         * configure: Regenerated.
23108 2013-06-01  Jan Hubicka  <jh@suse.cz>
23110         PR middle-end/57366
23111         * cgraphunit.c (compile): When weakref is not supported,
23112         set up transparent aliases before final output pass.
23113         * varasm.c (assemble_alias): Do not try to do it here.
23115 2013-06-01  Jan Hubicka  <jh@suse.cz>
23117         PR middle-end/57467
23118         * passes.c (for_per_function): Skip unanalyzed functions.
23120 2013-06-01  Jan Hubicka  <jh@suse.cz>
23122         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
23123         (lto_symtab_merge_symbols_1): ... this one.
23124         (lto_symtab_merge_cgraph_nodes): Rename to ...
23125         (lto_symtab_merge_symbols): ... this one; simplify.
23126         * cgraph.c (same_body_aliases_done): Rename to ...
23127         (cpp_implicit_aliases_done): ... this one.
23128         (cgraph_create_function_alias): Update.
23129         (cgraph_same_body_alias): Update.
23130         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
23131         (verify_edge_corresponds_to_fndecl): Simplify.
23132         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
23133         (cgraph_node): Remove same_body_alias.
23134         (varpool_node): Remove alias_of and extra_name_alias.
23135         (same_body_aliases_done): Rename to ..
23136         (cpp_implicit_aliases_done): ... this one.
23137         (symtab_alias_ultimate_target): Add default parameter.
23138         (symtab_resolve_alias): New function.
23139         (fixup_same_cpp_alias_visibility): Declare.
23140         (cgraph_function_node): Add default parameter.
23141         (cgraph_node_asm_name): Likewise.
23142         (cgraph_function_or_thunk_node): Add default parameter; do
23143         not ICE when it is NULL.
23144         (varpool_variable_node): Likewise.
23145         * tree-emutls.c (create_emultls_var): Update.
23146         (ipa_lower_emutls): Update.
23147         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
23148         (cgraph_reset_node): Reset alias info.
23149         (cgraph_finalize_function): Update.
23150         (fixup_same_cpp_alias_visibility): Move to symtab.c.
23151         (analyze_function): Simplify.
23152         (cgraph_process_same_body_aliases): Simplify.
23153         (analyze_functions): Fixup same body aliases.
23154         (handle_alias_pairs): Simplify.
23155         (assemble_thunk): Update.
23156         (assemble_thunks_and_aliases): Update.
23157         (output_weakrefs): Rewrite.
23158         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
23159         (lto_output_varpool_node): Likewise.
23160         (compute_ltrans_boundary): Remve assert.
23161         (get_alias_symbol): New functoin.
23162         (input_node): Rewrite alias handling.
23163         (input_varpool_node): Likewise.
23164         * ipa-pure-const.c (propagate_pure_const): Fix formating.
23165         * ipa.c (process_references): Handle weakrefs correctly.
23166         (symtab_remove_unreachable_nodes): Likewise.
23167         * trans-mem.c (get_cg_data): Update.
23168         (ipa_tm_create_version_alias): Update.
23169         (ipa_tm_execute): Update.
23170         * symtab.c (dump_symtab_base): Dump aliases.
23171         (verify_symtab_base): Verify aliases.
23172         (symtab_node_availability): New function.
23173         (symtab_alias_ultimate_target): Simplify.
23174         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
23175         handle all the fixup cases.
23176         (symtab_resolve_alias): New function.
23177         * passes.c (ipa_write_summaries): Handle weakrefs.
23178         * varpool.c (varpool_analyze_node): Simplify.
23179         (assemble_aliases): Update.
23180         (varpool_create_variable_alias): Simplify.
23181         (varpool_extra_name_alias): Simplify.
23182         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
23183         (lto_symtab_merge_symbols): ... this one.
23185 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
23187         Revert
23188         PR rtl-optimization/57268
23189         * sched-deps.c (sched_analyze_2): Flush dependence lists if
23190         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23192 2013-06-01  Tobias Burnus  <burnus@net-b.de>
23194         Partially reverted:
23195         2013-05-31  Tobias Burnus  <burnus@net-b.de>
23197         PR middle-end/57073
23198         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
23199         further up.
23201 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
23203         PR rtl-optimization/57268
23204         * sched-deps.c (sched_analyze_2): Flush dependence lists if
23205         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23207 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
23209         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
23210         unordered comparison operators when -fno-trapping-math is in effect
23211         on the e500.
23212         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
23213         and implement unordered comparison operators properly on the e500.
23215 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
23217         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
23218         for constant scalar integers.
23219         (simplify_relational_operation_1): Likewise.
23221 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
23223         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
23224         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
23225         Fix comment.
23227 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
23228             Igor Zamyatin  <igor.zamyatin@intel.com>
23230         Silvermont (SLM) architecture performance tuning.
23231         * config/i386/i386.h (enum ix86_tune_indices): Add
23232         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
23233         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
23235         * config/i386/i386.c (initial_ix86_tune_features)
23236         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
23237         (ix86_lea_outperforms): Handle Silvermont tuning.
23238         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
23239         call.
23240         (ix86_use_lea_for_mov): Likewise.
23241         (ix86_avoid_lea_for_addr): Likewise.
23242         (ix86_lea_for_add_ok): Likewise.
23243         (exact_dependency_1): New function.
23244         (exact_store_load_dependency): Likewise.
23245         (ix86_adjust_cost): Handle Silvermont tuning.
23246         (do_reoder_for_imul): Likewise.
23247         (swap_top_of_ready_list): New function.
23248         (ix86_sched_reorder): Changed to handle Silvermont tuning.
23250         * config/i386/i386.md (peepholes that split memory operand in fp
23251         converts): New.
23253 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23255         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23256         Remove un-necessary braces.
23258 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23260         * config/aarch64/aarch64.c (aarch64_classify_symbol):
23261         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
23263 2013-05-31  Tobias Burnus  <burnus@net-b.de>
23265         PR middle-end/57073
23266         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
23268 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23270         PR target/56315
23271         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
23272         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
23273         * config/arm/neon.md (iordi3_neon): Remove.
23274         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
23275         * config/arm/predicates.md (imm_for_neon_logic_operand):
23276         Move to earlier in the file.
23277         (neon_logic_op2): Likewise.
23278         (arm_iordi_operand_neon): New predicate.
23280 2013-05-31  Richard Biener  <rguenther@suse.de>
23282         PR tree-optimization/57478
23283         PR tree-optimization/57453
23284         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
23285         are life as well.
23287 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23289         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
23290         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
23292 2013-05-30  Tobias Burnus  <burnus@net-b.de>
23293             Thomas Koenig  <tkoenig@gcc.gnu.org>
23295         PR middle-end/57073
23296         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
23297         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
23299 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
23301         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
23303 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
23305         * target.def (register_usage_leveling_p): New hook.
23306         * targhooks.c (default_register_usage_leveling_p): New.
23307         * targhooks.h (default_register_usage_leveling_p): New prototype.
23308         * lra-assigns.c (register_usage_leveling_p): Use the hook.
23309         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
23310         * doc/tm.texi: Update.
23311         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
23313 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
23315         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
23316         (*insv_reg<mode>): New define_insn.
23318 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
23320         PR rtl-optimization/57439
23321         * postreload.c (move2add_valid_value_p): Check that we have
23322         a zero subreg_regno_offset when accessing the register in
23323         the requested mode.
23325 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
23326             Igor Zamyatin  <igor.zamyatin@intel.com>
23328         Silvermont (SLM) architecture pipeline model, tuning and
23329         insn selection.
23330         * config.gcc: Add slm config options and target.
23332         * config/i386/slm.md: New.
23334         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
23336         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
23337         PROCESSOR_SLM.
23338         (ix86_target_macros_internal): Likewise.
23340         * config/i386/i386.c (slm_cost): New cost.
23341         (m_SLM): New macro flag.
23342         (initial_ix86_tune_features): Set m_SLM.
23343         (x86_accumulate_outgoing_args): Likewise.
23344         (x86_arch_always_fancy_math_387): Likewise.
23345         (processor_target_table): Add slm cost.
23346         (cpu_names): Add slm cpu name.
23347         (x86_option_override_internal): Set SLM ISA.
23348         (ix86_issue_rate): New case PROCESSOR_SLM.
23349         (ia32_multipass_dfa_lookahead): Likewise.
23350         (fold_builtin_cpu): Add slm.
23352         * config/i386/i386.h (TARGET_SLM): New target macro.
23353         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
23354         (processor_type): Add PROCESSOR_SLM.
23356         * config/i386/i386.md (cpu): Add new value "slm".
23357         (slm.md): Include slm.md.
23359 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
23360             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23362         * config/arm/arm-protos.h: Add and update function protos.
23363         * config/arm/arm.c (use_simple_return_p): New added.
23364         (thumb2_expand_return): Check simple_return flag.
23365         * config/arm/arm.md: Add simple_return and conditional simple_return.
23366         * config/arm/iterators.md: Add iterator for return and simple_return.
23368 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23370         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
23371         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
23372         (arm_emit_vfp_multi_reg_pop): Likewise.
23373         (thumb2_emit_ldrd_pop): Likewise.
23374         (arm_expand_epilogue): Add misc REG_CFA notes.
23375         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
23377 2013-05-29  Lawrence Crowl  <crowl@google.com>
23379         * config/arm/t-arm: Update for below.
23381         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
23382         Change type to hash_table.  Update dependent calls and types.
23384         * config/i386/t-cygming: Update for below.
23386         * config/i386/t-interix: Update for below.
23388         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
23389         Change type to hash_table.  Update dependent calls and types.
23390         (i386_find_on_wrapper_list::wrappers): Likewise.
23392         * config/ia64/t-ia64: Update for below.
23394         * config/ia64/ia64.c (bundle_state_table):
23395         Change type to hash_table.  Update dependent calls and types.
23397         * config/mips/mips.c (mips_reorg_process_insns::htab):
23398         Change type to hash_table.  Update dependent calls and types.
23400         * config/sol2.c (solaris_comdat_htab):
23401         Change type to hash_table.  Update dependent calls and types.
23403         * config/t-sol2: Update for above.
23405 2013-05-29  Teresa Johnson  <tejohnson@google.com>
23407         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
23408         functions are not yet marked as defined.
23410 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
23411             Pat Haugen  <pthaugen@us.ibm.com>
23412             Peter Bergner  <bergner@vnet.ibm.com>
23414         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
23415         instructions.
23416         (VEC_A): Likewise.
23417         (VEC_C): Likewise.
23418         (vrotl<mode>3): Likewise.
23419         (vashl<mode>3): Likewise.
23420         (vlshr<mode>3): Likewise.
23421         (vashr<mode>3): Likewise.
23423         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23424         support for power8 V2DI builtins.
23426         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
23427         power8 V2DI builtins.
23428         (vupkhsw): Likewise.
23429         (vupklsw): Likewise.
23430         (vaddudm): Likewise.
23431         (vminsd): Likewise.
23432         (vmaxsd): Likewise.
23433         (vminud): Likewise.
23434         (vmaxud): Likewise.
23435         (vpkudum): Likewise.
23436         (vpksdss): Likewise.
23437         (vpkudus): Likewise.
23438         (vpksdus): Likewise.
23439         (vrld): Likewise.
23440         (vsld): Likewise.
23441         (vsrd): Likewise.
23442         (vsrad): Likewise.
23443         (vsubudm): Likewise.
23444         (vcmpequd): Likewise.
23445         (vcmpgtsd): Likewise.
23446         (vcmpgtud): Likewise.
23447         (vcmpequd_p): Likewise.
23448         (vcmpgtsd_p): Likewise.
23449         (vcmpgtud_p): Likewise.
23450         (vupkhsw): Likewise.
23451         (vupklsw): Likewise.
23452         (vaddudm): Likewise.
23453         (vmaxsd): Likewise.
23454         (vmaxud): Likewise.
23455         (vminsd): Likewise.
23456         (vminud): Likewise.
23457         (vpksdss): Likewise.
23458         (vpksdus): Likewise.
23459         (vpkudum): Likewise.
23460         (vpkudus): Likewise.
23461         (vrld): Likewise.
23462         (vsld): Likewise.
23463         (vsrad): Likewise.
23464         (vsrd): Likewise.
23465         (vsubudm): Likewise.
23467         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
23468         support for power8 V2DI instructions.
23470         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
23471         power8 V2DI instructions.  Combine pack and unpack insns to use an
23472         iterator for each mode.  Check whether a particular mode supports
23473         Altivec instructions instead of just checking TARGET_ALTIVEC.
23474         (UNSPEC_VPKUWUM): Likewise.
23475         (UNSPEC_VPKSHSS): Likewise.
23476         (UNSPEC_VPKSWSS): Likewise.
23477         (UNSPEC_VPKUHUS): Likewise.
23478         (UNSPEC_VPKSHUS): Likewise.
23479         (UNSPEC_VPKUWUS): Likewise.
23480         (UNSPEC_VPKSWUS): Likewise.
23481         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
23482         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
23483         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
23484         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
23485         (UNSPEC_VUPKHSB): Likewise.
23486         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
23487         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
23488         (UNSPEC_VUPKHSH): Likewise.
23489         (UNSPEC_VUPKLSB): Likewise.
23490         (UNSPEC_VUPKLSH): Likewise.
23491         (VI2): Likewise.
23492         (VI_char): Likewise.
23493         (VI_scalar): Likewise.
23494         (VI_unit): Likewise.
23495         (VP): Likewise.
23496         (VP_small): Likewise.
23497         (VP_small_lc): Likewise.
23498         (VU_char): Likewise.
23499         (add<mode>3): Likewise.
23500         (altivec_vaddcuw): Likewise.
23501         (altivec_vaddu<VI_char>s): Likewise.
23502         (altivec_vadds<VI_char>s): Likewise.
23503         (sub<mode>3): Likewise.
23504         (altivec_vsubcuw): Likewise.
23505         (altivec_vsubu<VI_char>s): Likewise.
23506         (altivec_vsubs<VI_char>s): Likewise.
23507         (altivec_vavgs<VI_char>): Likewise.
23508         (altivec_vcmpbfp): Likewise.
23509         (altivec_eq<mode>): Likewise.
23510         (altivec_gt<mode>): Likewise.
23511         (altivec_gtu<mode>): Likewise.
23512         (umax<mode>3): Likewise.
23513         (smax<mode>3): Likewise.
23514         (umin<mode>3): Likewise.
23515         (smin<mode>3): Likewise.
23516         (altivec_vpkuhum): Likewise.
23517         (altivec_vpkuwum): Likewise.
23518         (altivec_vpkshss): Likewise.
23519         (altivec_vpkswss): Likewise.
23520         (altivec_vpkuhus): Likewise.
23521         (altivec_vpkshus): Likewise.
23522         (altivec_vpkuwus): Likewise.
23523         (altivec_vpkswus): Likewise.
23524         (altivec_vpks<VI_char>ss): Likewise.
23525         (altivec_vpks<VI_char>us): Likewise.
23526         (altivec_vpku<VI_char>us): Likewise.
23527         (altivec_vpku<VI_char>um): Likewise.
23528         (altivec_vrl<VI_char>): Likewise.
23529         (altivec_vsl<VI_char>): Likewise.
23530         (altivec_vsr<VI_char>): Likewise.
23531         (altivec_vsra<VI_char>): Likewise.
23532         (altivec_vsldoi_<mode>): Likewise.
23533         (altivec_vupkhsb): Likewise.
23534         (altivec_vupkhs<VU_char>): Likewise.
23535         (altivec_vupkls<VU_char>): Likewise.
23536         (altivec_vupkhsh): Likewise.
23537         (altivec_vupklsb): Likewise.
23538         (altivec_vupklsh): Likewise.
23539         (altivec_vcmpequ<VI_char>_p): Likewise.
23540         (altivec_vcmpgts<VI_char>_p): Likewise.
23541         (altivec_vcmpgtu<VI_char>_p): Likewise.
23542         (abs<mode>2): Likewise.
23543         (vec_unpacks_hi_v16qi): Likewise.
23544         (vec_unpacks_hi_v8hi): Likewise.
23545         (vec_unpacks_lo_v16qi): Likewise.
23546         (vec_unpacks_hi_<VP_small_lc>): Likewise.
23547         (vec_unpacks_lo_v8hi): Likewise.
23548         (vec_unpacks_lo_<VP_small_lc>): Likewise.
23549         (vec_pack_trunc_v8h): Likewise.
23550         (vec_pack_trunc_v4si): Likewise.
23551         (vec_pack_trunc_<mode>): Likewise.
23553         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
23554         V2DI builtins.
23555         (vec_vmaxsd): Likewise.
23556         (vec_vmaxud): Likewise.
23557         (vec_vminsd): Likewise.
23558         (vec_vminud): Likewise.
23559         (vec_vpksdss): Likewise.
23560         (vec_vpksdus): Likewise.
23561         (vec_vpkudum): Likewise.
23562         (vec_vpkudus): Likewise.
23563         (vec_vrld): Likewise.
23564         (vec_vsld): Likewise.
23565         (vec_vsrad): Likewise.
23566         (vec_vsrd): Likewise.
23567         (vec_vsubudm): Likewise.
23568         (vec_vupkhsw): Likewise.
23569         (vec_vupklsw): Likewise.
23571 2013-05-29  Jan Hubicka  <jh@suse.cz>
23573         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
23574         flags; reorder rest of fields in more consistent way.
23575         (varpool_node): Remove analyzed, finalized and alias.
23576         (cgraph_ndoe): Likewise.
23577         (symtab_alias_ultimate_target): New function.
23578         (cgraph_function_node): Move offline.
23579         (cgraph_reset_node): Declare.
23580         (cgraph_comdat_can_be_unshared_p): Remove.
23581         (varpool_remove_initializer): Declare.
23582         (varpool_first_defined_variable, varpool_next_defined_variable
23583         cgraph_first_defined_function, cgraph_next_defined_function): Update.
23584         (cgraph_function_with_gimple_body_p): Update.
23585         (varpool_all_refs_explicit_p): Update.
23586         (symtab_alias_target): New function.
23587         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
23588         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
23589         (cgraph_function_or_thunk_node): Simplify using
23590         symtab_alias_ultimate_target.
23591         (varpool_variable_node): Likewise.
23592         * cgraph.c (cgraph_create_function_alias): Update.
23593         (cgraph_add_thunk): Update.
23594         (cgraph_remove_node): Update.
23595         (dump_cgraph_node): Do not dump removed flags.
23596         (cgraph_function_body_availability): Update.
23597         (cgraph_propagate_frequency): Update.
23598         (verify_cgraph_node): Check sanity of local flag.
23599         (cgraph_function_node): Move here from cgraph.h; revamp for
23600         cgraph_function_or_thunk_node.
23601         * lto-symtab.c (lto_varpool_replace_node): Update.
23602         (lto_symtab_resolve_can_prevail_p): Update.
23603         (lto_symtab_merge_cgraph_nodes): Update.
23604         * ipa-cp.c (determine_versionability, initialize_node_lattices,
23605         propagate_constants_accross_call, devirtualization_time_bonus,
23606         ipcp_propagate_stage): Update.
23607         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
23608         * ipa-inline-transform.c (clone_inlined_nodes,
23609         preserve_function_body_p): Update.
23610         * ipa-reference.c (propagate): Update.
23611         (write_node_summary_p): Update.
23612         * toplev.c (wrapup_global_declaration_2): Update.
23613         * cgraphunit.c (cgraph_analyze_function): Rename to ...
23614         (analyze_function) ... this one.
23615         (cgraph_process_new_functions): Update.
23616         (cgraph_reset_node): Export.
23617         (cgraph_finalize_function): Update.
23618         (cgraph_add_new_function): Update.
23619         (process_function_and_variable_attributes): Update.
23620         (varpool_finalize_decl): Update.
23621         (symbol_finalized): Remove.
23622         (symbol_finalized_and_needed): Rename to ...
23623         (symbol_defined_and_needed): ... update.
23624         (cgraph_analyze_functions): Update.
23625         (handle_alias_pairs): Update.
23626         (mark_functions_to_output): Update.
23627         (assemble_thunk): Update.
23628         (output_in_order): Update.
23629         (output_weakrefs): Update.
23630         (finalize_compilation_unit): Update.
23631         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
23632         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
23633         input_node, input_varpool_node): Update.
23634         * dbxout.c (dbxout_expand_expr): Update.
23635         * cgraphclones.c (cgraph_clone_node): Update.
23636         (cgraph_copy_node_for_versioning): Update.
23637         (cgraph_materialize_clone): Update.
23638         (cgraph_materialize_all_clones): Update.
23639         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
23640         propagate_pure_const, propagate_nothrow): Update.
23641         * lto-streamer-out.c (lto_output, write_symbol): Update.
23642         * ipa-utils.c (ipa_reverse_postorder): Update.
23643         * ipa-inline.c (can_inline_edge_p): Update.
23644         (update_caller_keys, ipa_inline): Update.
23645         * dwarf2out.c (reference_to_unused,
23646         premark_types_used_by_global_vars_helper): Update.
23647         * tree-eh.c (tree_could_trap_p): Update.
23648         * ipa-split.c (consider_split, execute_split_functions): Update.
23649         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23650         has_addr_references_p): Update; move ahead in file for better
23651         readability.
23652         (process_references): Simplify.
23653         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
23654         bodies are removed.
23655         (cgraph_comdat_can_be_unshared_p): Make static.
23656         (cgraph_externally_visible_p): Update.
23657         (varpool_externally_visible_p): Update.
23658         (function_and_variable_visibility): Update.
23659         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
23660         ipa_tm_mark_force_output_node): Update.
23661         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
23662         estimate_edge_devirt_benefit, inline_generate_summary,
23663         inline_write_summary): Update.
23664         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
23665         * ipa-prop.c (ipa_compute_jump_functions): Update.
23666         (ipa_print_node_params, ipa_prop_read_section,
23667         ipa_update_after_lto_read, read_replacements_section): Update.
23668         * varasm.c (mark_decl_referenced): Update.
23669         (assemble_alias, dump_tm_clone_pairs): Update.
23670         * tree-inline.c (copy_bb): Update.
23671         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
23672         Update.
23673         * symtab.c (dump_symtab_base): Print new flags.
23674         (verify_symtab_base): Verify new flags.
23675         (symtab_alias_ultimate_target): New function.
23676         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
23677         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
23678         Update.
23679         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
23680         Update.
23681         * i386.c (ix86_get_function_versions_dispatcher,
23682         ix86_generate_version_dispatcher_body): Update.
23683         (fold_builtin_cpu): Use varpool_add_new_variable.
23684         * varpool.c (varpool_remove_initializer): Break out from ...
23685         (varpool_remove_node): ... this one.
23686         (dump_varpool_node, varpool_node_for_asm,
23687         cgraph_variable_initializer_availability, varpool_analyze_node,
23688         varpool_assemble_decl, varpool_remove_unreferenced_decls,
23689         varpool_finalize_named_section_flags, varpool_create_variable_alias):
23690         Update.
23692 2013-05-29  Jan Hubicka  <jh@suse.cz>
23694         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
23696 2013-05-29  Easwaran Raman  <eraman@google.com>
23698         PR tree-optimization/57442
23699         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
23700         when control exits the main loop.
23702 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
23704         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
23705         and RX600.
23706         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
23707         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
23708         * rx/t-rx: Add rx100 under multi library matches option for nofpu
23709         option.
23711 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23713         PR tree-optimization/57441
23714         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
23715         Don't limit size of incr_vec to number of candidates.
23717 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
23719         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
23720         and mips16 directories.
23721         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
23722         (MULTILIB_DIRNAMES): Ditto.
23723         (MULTILIB_EXCEPTIONS): Add new exceptions.
23724         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
23725         (MULTILIB_DIRNAMES): Ditto.
23726         (MULTILIB_EXCEPTIONS): Add new exceptions.
23728 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
23729             Marcus Shawcroft  <marcus.shawcroft@arm.com>
23731         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
23732         SYMBOL_TINY_ABSOLUTE.
23733         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
23734         SYMBOL_TINY_ABSOLUTE.
23735         (aarch64_expand_mov_immediate): Likewise.
23736         (aarch64_classify_symbol): Likewise.
23737         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
23738         Permit SYMBOL_TINY_ABSOLUTE.
23739         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
23741 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
23742             Marcus Shawcroft  <marcus.shawcroft@arm.com>
23744         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
23745         Refactor if/switch.  Replace gcc_assert with if.
23747 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
23749         * config/i386/i386.c (initial_ix86_tune_features): Enable
23750         FP Reassociation for AMD bdver1 and bdver2.
23752 2013-05-29  Martin Jambor  <mjambor@suse.cz>
23754         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
23755         and IMAGPART_EXPR do not occur within other handled_components.
23757 2013-05-29  Richard Biener  <rguenther@suse.de>
23759         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
23760         access on whether the use is in the BB we currently try to
23761         vectorize.
23762         (vect_bb_vectorization_profitable_p): Pass the BB we currently
23763         vectorize to vect_bb_slp_scalar_cost.
23765 2013-05-29  Richard Biener  <rguenther@suse.de>
23767         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
23768         computing scalar cost offsetted by stmts that are kept live
23769         by scalar uses.
23770         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
23771         for computation of scalar cost.
23773 2013-05-28  Steve Ellcey  <sellcey@mips.com>
23775         * config/mips/mips-cpus.def (mips32r2): Change processor type.
23777 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
23779         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
23780         array notation built-in reduction functions.
23781         * doc/passes.texi (Passes): Added documentation about changes done
23782         for Cilk Plus.
23783         * doc/invoke.texi (C Dialect Options): Added documentation about
23784         the -fcilkplus flag.
23785         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
23786         (BUILTINS_DEF): Depend on cilkplus.def.
23787         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
23788         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
23789         * cilkplus.def: New file.
23791 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
23793         PR rtl-optimization/57439
23794         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
23796 2013-05-28  Easwaran Raman  <eraman@google.com>
23798         PR tree-optimization/57337
23799         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
23800         (find_insert_point): Correctly identify the insertion point
23801         when two statements with the same UID is compared.
23803 2013-05-28  Richard Biener  <rguenther@suse.de>
23805         PR tree-optimization/56787
23806         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
23807         from the list of data references.
23808         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
23809         clobbers.
23810         (vect_analyze_loop_operations): Likewise.
23811         (vect_transform_loop): Remove clobbers.
23813 2013-05-28  Martin Jambor  <mjambor@suse.cz>
23815         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
23816         and REALPART_EXPRs have scalar type.
23818 2013-05-28  Richard Biener  <rguenther@suse.de>
23820         PR tree-optimization/57411
23821         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
23822         virtual operands.
23823         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
23824         virtual operand propagation.
23826 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
23828         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
23829         destination register for bmasksi_vis.
23830         (vector_init_bshuffle): Likewise.
23831         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
23833 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
23835         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
23836         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
23837         mode if the instruction isn't available in the original mode.
23838         * config/sparc/sparc.opt (mfix-ut699): New option.
23839         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
23840         (divdf3): Turn into expander.
23841         (divdf3_nofix): New insn.
23842         (divdf3_fix): Likewise.
23843         (divsf3): Disable if -mfix-ut699.
23844         (sqrtdf2): Turn into expander.
23845         (sqrtdf2_nofix): New insn.
23846         (sqrtdf2_fix): Likewise.
23847         (sqrtsf2): Disable if -mfix-ut699.
23849 2013-05-27  Richard Biener  <rguenther@suse.de>
23851         PR middle-end/57412
23852         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
23853         block for the new loop.
23855 2013-05-27  Richard Biener  <rguenther@suse.de>
23857         PR tree-optimization/57343
23858         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
23859         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
23860         (number_of_iterations_cond): Do not build the folded tree.
23862 2013-05-27  Richard Biener  <rguenther@suse.de>
23864         Revert
23865         PR middle-end/57381
23866         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
23867         OEP_CONSTANT_ADDRESS_OF retained.
23869         PR tree-optimization/57417
23870         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
23871         for unchanged base.
23872         (set_ssa_val_to): Compare addresses using
23873         get_addr_base_and_unit_offset.
23875 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
23877         PR rtl-optimization/56833
23878         * postreload.c (move2add_record_mode): New function.
23879         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
23880         (move2add_use_add2_insn): Use move2add_record_sym_value.
23881         (move2add_use_add3_insn): Likewise.
23882         (reload_cse_move2add): Use move2add_valid_value_p and
23883         move2add_record_mode.  Invalidate call-clobbered and REG_INC
23884         affected regs by setting reg_mode to VOIDmode.
23885         (move2add_note_store): Don't pretend the inside of a SUBREG is
23886         the actual destination.  Invalidate single/leading registers by
23887         setting reg_mode to VOIDmode.
23888         Use move2add_record_sym_value, move2add_valid_value_p and
23889         move2add_record_mode.
23891 2013-05-27  Richard Biener  <rguenther@suse.de>
23893         PR tree-optimization/57396
23894         * tree-affine.c (double_int_constant_multiple_p): Properly
23895         return false for val == 0 and div != 0.
23897 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
23899         * config/mips/mips.h: Use #elif in preprocessor conditions.
23901 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
23903         PR target/53916
23904         * config/mips/constraints.md (kl): New constraint.
23905         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
23906         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
23907         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
23908         from LO for MIPS16.
23909         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
23911 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
23913         PR target/55777
23914         * config/mips/mips.c (mips_can_inline_p): New function.
23915         (TARGET_CAN_INLINE_P): Define.
23917 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
23919         * sched-int.h (ds_t, dw_t): Make unsigned int.
23920         Fix documentation that describes how all the ds_t bits are used.
23921         Reserve the last bit for delayed-branch scheduling.
23922         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
23923         (BITS_PER_DEP_WEAK): Fix definition and documentation.
23924         (gen_dep_weak_1): Remove prototype.
23925         * sched-deps.c (get_dep_weak_1): Make static.
23926         * target.def (speculate_insn, needs_block_p, gen_spec_check,
23927         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
23928         * doc/tm.texi: Regenerate.
23929         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
23931 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
23933         PR debug/56950
23934         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
23936 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
23937             Sandra Loosemore  <sandra@codesourcery.com>
23939         * config.gcc (powerpc-*): Allow native for with-cpu.
23941 2013-05-24  Jeff Law  <law@redhat.com>
23943         PR tree-optimization/57124
23944         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
23945         conversion feeding a condition if the range has an overflow
23946         if -fstrict-overflow.  Add warnings for when we do make the
23947         transformation.
23949 2013-05-24  Dehao Chen  <dehao@google.com>
23951         * tree-cfg.c (locus_discrim_map): Fix the typo.
23952         (locus_discrim_hasher): Likewise.
23953         (locus_discrim_hasher::hash): Likewise.
23954         (locus_discrim_hasher::equal): Likewise.
23956 2013-05-24  Martin Jambor  <mjambor@suse.cz>
23958         PR tree-optimization/57294
23959         * cgraph.h (ipa_record_stmt_references): Declare.
23960         * cgraphbuild.c (ipa_record_stmt_references): New function.
23961         (build_cgraph_edges): Use ipa_record_stmt_references.
23962         (rebuild_cgraph_edges): Likewise.
23963         (cgraph_rebuild_references): Likewise.
23964         * ipa-prop.c (ipa_modify_call_arguments): Discard references
23965         associated with the old statement and build references from the
23966         newly built statements.
23967         * ipa-ref.c (ipa_remove_stmt_references): New function.
23968         * ipa-ref.h (ipa_remove_stmt_references): Declare.
23970 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
23972         * lra-constraints.c (emit_spill_move): Use smaller mode for
23973         mem-mem moves.
23974         (check_and_process_move): Consider mem-reg moves for secondary
23975         too.
23976         (curr_insn_transform): Don't lose insns emitted before for
23977         secondary memory moves.
23978         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
23979         reg set up in the current insn.
23981 2013-05-24  Dehao Chen  <dehao@google.com>
23983         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
23984         hash function.
23985         (locus_descrim_hasher::equal): Likewise.
23986         (build_gimple_cfg): New discriminator assignment algorithm.
23987         (make_edges): Likewise.
23988         (next_discriminator_for_locus): Likewise.
23989         (same_line_p): Likewise.
23990         (assign_discriminators): Likewise.
23991         (make_cond_expr_edges): Likewise.
23992         (make_gimple_switch_edges): Likewise.
23993         (make_goto_expr_edges): Likewise.
23994         (make_gimple_asm_edges): Likewise.
23996 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
23998         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
23999         X format specifier to only display bottom 16 bits.
24000         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
24001         immediate to match for operand 2, since it will be masked.
24003 2013-05-24  Richard Biener  <rguenther@suse.de>
24005         PR tree-optimization/57287
24006         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
24007         all SSA names that occur in abnormal PHIs.
24009 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
24011         PR tree-ssa/57385
24012         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
24013         that index is not negative.
24015 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
24017         PR rtl-optimization/55177
24018         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
24019         (simplify_byte_swapping_operation): New.
24020         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
24021         (simplify_relational_operation_1): Deal with BSWAP.
24023 2013-05-23  Richard Henderson  <rth@redhat.com>
24025         PR target/56742
24026         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
24027         (ix86_reorg): Call it.
24029 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
24031         PR target/57379
24032         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
24033         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
24034         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
24036 2013-05-23  Christian Bruel  <christian.bruel@st.com>
24038         PR debug/57351
24039         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
24041 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
24042             Marcus Shawcroft  <marcus.shawcroft@arm.com>
24044         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
24045         * config/aarch64/constraints.md (Usa): Remove.
24046         * doc/md.texi (AArch64 Usa): Remove.
24048 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
24049             Marcus Shawcroft  <marcus.shawcroft@arm.com>
24051         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
24052         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
24053         * config/aarch64/predicates.md (aarch64_const_address): Remove.
24054         (aarch64_mov_operand): Use aarch64_mov_operand_p.
24056 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
24058         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
24059         instruction (AdvSIMD).
24060         * config/aarch64/aarch64-builtins.c
24061         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
24062         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
24064 2013-05-23  Martin Jambor  <mjambor@suse.cz>
24066         PR middle-end/57347
24067         * tree.h (contains_bitfld_component_ref_p): Declare.
24068         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
24069         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
24070         caller.
24071         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
24072         not access a bit-field.  Assert all final offsets are byte-aligned.
24074 2013-05-23  Richard Biener  <rguenther@suse.de>
24076         PR tree-optimization/57380
24077         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
24078         least one invariant or re-used load.
24079         * passes.c (init_optimization_passes): Move pass_phiprop before
24080         pass_forwprop.
24082 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
24084         * config/aarch64/aarch64-simd.md
24085         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
24087 2013-05-23  Richard Biener  <rguenther@suse.de>
24089         PR middle-end/57381
24090         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
24091         OEP_CONSTANT_ADDRESS_OF retained.
24093 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
24095         PR middle-end/57344
24096         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
24097         don't lower unit.  Handle unit not being always BITS_PER_WORD.
24099 2013-05-23  Richard Biener  <rguenther@suse.de>
24101         PR rtl-optimization/57341
24102         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
24103         instead of true_dependence.
24105 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
24107         * bb-reorder.c (branch_threshold): Make const.
24108         (exec_threshold): Ditto.
24110 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
24111             Pat Haugen  <pthaugen@us.ibm.com>
24112             Peter Bergner  <bergner@vnet.ibm.com>
24114         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
24115         documentation for the power8 crypto builtins.
24117         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
24119         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
24120         macros for defining power8 builtin functions.
24121         (BU_P8V_AV_2): Likewise.
24122         (BU_P8V_AV_P): Likewise.
24123         (BU_P8V_VSX_1): Likewise.
24124         (BU_P8V_OVERLOAD_1): Likewise.
24125         (BU_P8V_OVERLOAD_2): Likewise.
24126         (BU_CRYPTO_1): Likewise.
24127         (BU_CRYPTO_2): Likewise.
24128         (BU_CRYPTO_3): Likewise.
24129         (BU_CRYPTO_OVERLOAD_1): Likewise.
24130         (BU_CRYPTO_OVERLOAD_2): Likewise.
24131         (XSCVSPDP): Fix typo, point to the correct instruction.
24132         (VCIPHER): Add power8 crypto builtins.
24133         (VCIPHERLAST): Likewise.
24134         (VNCIPHER): Likewise.
24135         (VNCIPHERLAST): Likewise.
24136         (VPMSUMB): Likewise.
24137         (VPMSUMH): Likewise.
24138         (VPMSUMW): Likewise.
24139         (VPERMXOR_V2DI): Likewise.
24140         (VPERMXOR_V4SI: Likewise.
24141         (VPERMXOR_V8HI: Likewise.
24142         (VPERMXOR_V16QI: Likewise.
24143         (VSHASIGMAW): Likewise.
24144         (VSHASIGMAD): Likewise.
24145         (VPMSUM): Likewise.
24146         (VPERMXOR): Likewise.
24147         (VSHASIGMA): Likewise.
24149         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24150         __CRYPTO__ if the crypto instructions are available.
24151         (altivec_overloaded_builtins): Add support for overloaded power8
24152         builtins.
24154         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
24155         support for power8 crypto builtins.
24156         (builtin_function_type): Likewise.
24157         (altivec_init_builtins): Add support for builtins that take vector
24158         long long (V2DI) arguments.
24160         * config/rs6000/crypto.md: New file, define power8 crypto
24161         instructions.
24163 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
24164             Pat Haugen  <pthaugen@us.ibm.com>
24165             Peter Bergner  <bergner@vnet.ibm.com>
24167         * doc/invoke.texi (Option Summary): Add power8 options.
24168         (RS/6000 and PowerPC Options): Likewise.
24170         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
24171         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
24172         wm, wn, wr documentation.
24174         * config/rs6000/constraints.md (wm): New constraint for VSX
24175         registers if direct move instructions are enabled.
24176         (wn): New constraint for no registers.
24177         (wq): New constraint for quad word even GPR registers.
24178         (wr): New constraint if 64-bit instructions are enabled.
24179         (wv): New constraint if power8 vector instructions are enabled.
24180         (wQ): New constraint for quad word memory locations.
24182         * config/rs6000/predicates.md (const_0_to_15_operand): New
24183         constraint for 0..15 for crypto instructions.
24184         (gpc_reg_operand): If VSX allow registers in VSX registers as well
24185         as GPR and floating point registers.
24186         (int_reg_operand): New predicate to match only GPR registers.
24187         (base_reg_operand): New predicate to match base registers.
24188         (quad_int_reg_operand): New predicate to match even GPR registers
24189         for quad memory operations.
24190         (vsx_reg_or_cint_operand): New predicate to allow vector logical
24191         operations in both GPR and VSX registers.
24192         (quad_memory_operand): New predicate for quad memory operations.
24193         (reg_or_indexed_operand): New predicate for direct move support.
24195         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
24196         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
24197         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
24198         (POWERPC_MASKS): Add power8 options.
24199         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
24200         various options.
24202         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24203         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
24205         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
24206         (-mpower8-fusion): New power8 options.
24207         (-mpower8-fusion-sign): Likewise.
24208         (-mpower8-vector): Likewise.
24209         (-mcrypto): Likewise.
24210         (-mdirect-move): Likewise.
24211         (-mquad-memory): Likewise.
24213         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
24214         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
24215         registers.
24216         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
24217         (rs6000_debug_vector_unit): Add p8_vector.
24218         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
24219         definitions.  Also print fusion state.
24220         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
24221         (rs6000_builtin_mask_calculate): Add power8 builtin support.
24222         (rs6000_option_override_internal): Add support for power8.
24223         (rs6000_common_init_builtins): Add debugging for skipped builtins
24224         if -mdebug=builtin.
24225         (rs6000_adjust_cost): Add power8 support.
24226         (rs6000_issue_rate): Likewise.
24227         (insn_must_be_first_in_group): Likewise.
24228         (insn_must_be_last_in_group): Likewise.
24229         (force_new_group): Likewise.
24230         (rs6000_register_move_cost): Likewise.
24231         (rs6000_opt_masks): Likewise.
24233         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
24234         power8 capable assembler, default to power7 options.
24235         (TARGET_DIRECT_MOVE): Likewise.
24236         (TARGET_CRYPTO): Likewise.
24237         (TARGET_P8_VECTOR): Likewise.
24238         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
24239         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
24240         (VECTOR_MEM_P8_VECTOR_P): Likewise.
24241         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
24242         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
24243         (TARGET_XSCVDPSPN): Likewise.
24244         (TARGET_XSCVSPDPN): Likewsie.
24245         (TARGET_SYNC_HI_QI): Likewise.
24246         (TARGET_SYNC_TI): Likewise.
24247         (MASK_CRYPTO): Likewise.
24248         (MASK_DIRECT_MOVE): Likewise.
24249         (MASK_P8_FUSION): Likewise.
24250         (MASK_P8_VECTOR): Likewise.
24251         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
24252         temporary used by some of the direct move instructions to get two FP
24253         temporary registers does not force creation of a stack frame.
24254         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
24255         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
24256         that any VSX registers are tieable, even if they are also an
24257         Altivec vector mode.
24258         (r6000_reg_class_enum): Add wm, wr, wv constraints.
24259         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
24260         (RS6000_BTM_CRYPTO): Likewise.
24261         (RS6000_BTM_COMMON): Likewise.
24263         * config/rs6000/rs6000.md (cpu attribute): Add power8.
24264         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
24265         (enum rs6000_vector): Add power8 vector support.
24267 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24269         PR target/19599
24270         PR target/57340
24271         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
24272         (any_sibcall_could_use_r3): this and handle indirect calls.
24273         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
24275 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24277         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
24279 2013-05-22  Richard Biener  <rguenther@suse.de>
24281         PR middle-end/57349
24282         * profile.c (branch_prob): Do not split blocks that are
24283         abnormally receiving from ECF_RETURNS_TWICE functions.
24285 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24287         * recog.c (offsettable_address_addr_space_p): Fix calculation of
24288         address mode.  Move pointer mode initialization to the same place.
24290 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
24292         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
24293         while it has any effect.
24295 2013-05-21  Easwaran Raman  <eraman@google.com>
24297         PR tree-optimization/57322
24298         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
24299         UID of the statement added to the BB to be 1.
24301 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
24303         PR tree-optimization/57331
24304         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
24305         of conversion from pointer type to integral type with integer.
24307 2013-05-21  Martin Jambor  <mjambor@suse.cz>
24309         PR lto/57289
24310         * ipa-prop.c (ipa_read_node_info): Process param_used and
24311         controlled_uses in the same order as when writing.
24313 2013-05-21  Magnus Granberg  <baldrick@free.fr>
24315         PR plugins/56754
24316         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
24318 2013-05-21  Richard Biener  <rguenther@suse.de>
24320         PR tree-optimization/57318
24321         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
24322         estimate stmts with side-effects as likely eliminated.
24324 2013-05-21  Richard Biener  <rguenther@suse.de>
24326         PR tree-optimization/57330
24327         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
24328         preserve the call stmts fntype.
24330 2013-05-21  Richard Biener  <rguenther@suse.de>
24332         PR tree-optimization/57303
24333         * tree-ssa-sink.c (statement_sink_location): Improve killing
24334         stmt detection and properly handle self-assignments.
24336 2013-05-21  Christian Bruel  <christian.bruel@st.com>
24338         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
24339         spanning registers. LEAF_REG_REMAP is supported only for contiguous
24340         registers. Set register size out of the PARALLEL loop.
24342 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
24344         PR target/56547
24345         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
24346         (*fmasf4, *fmasf4_media): New insns.
24348 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24350         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
24351         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
24352         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
24353         (mips_idiv_insns): Update the comments to say that the returned
24354         instruction counts are in units of BASE_INSN_LENGTH.
24355         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
24356         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
24357         using 2 rather than 4 as the length of indirect MIPS16 and
24358         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
24359         length of a NOP.  Don't divide MIPS16 lengths by 2.
24360         (mips16_split_long_branches): Assume a branch is long if the
24361         length is greater than 4 rather than 8.
24362         * config/mips/mips.md (length): Give MIPS16 lengths directly,
24363         rather than multiplying them by 2.  Multiply instruction counts
24364         by BASE_INSN_LENGTH rather than 4.
24365         (*jump_mips16, tls_get_tp_mips16_<mode>)
24366         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
24368 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24370         * config/mips/mips.md (extended_mips16): Remove branch case.
24371         (length): Remove duplicated extended_mips16 test.
24373 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24375         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
24377 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
24379         * recog.h (Recog_data): Rename to...
24380         (recog_data_d): ...this.
24381         (recog_data): Update accordingly.
24382         * recog.c (recog_data): Likewise.
24383         * reload.c (save_recog_data): Likewise.
24384         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
24385         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
24387 2013-05-17  Julian Brown  <julian@codesourcery.com>
24389         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
24390         found in a REG_EQUAL note, invalidate it.
24392 2013-05-17  Easwaran Raman  <eraman@google.com>
24394         * tree-ssa-reassoc.c (find_insert_point): New function.
24395         (insert_stmt_after): Likewise.
24396         (get_def_stmt): Likewise.
24397         (ensure_ops_are_available): Likewise.
24398         (not_dominated_by): Likewise.
24399         (rewrite_expr_tree): Do not move statements beyond what is
24400         necessary. Remove call to swap_ops_for_binary_stmt...
24401         (reassociate_bb): ... and move it here.
24402         (build_and_add_sum): Assign UIDs for new statements.
24403         (linearize_expr): Likewise.
24404         (do_reassoc): Renumber gimple statement UIDs.
24406 2013-05-17  Jan Hubicka  <jh@suse.cz>
24408         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
24409         weakrefs.
24410         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
24411         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
24412         weakrefs.
24413         (output_weakrefs): Update.
24415 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
24416             Martin Jambor  <mjambor@suse.cz>
24418         PR middle-end/57276
24419         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
24420         value that corresponds to the given aggval is found in values vector.
24422 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
24424         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
24425         sse, sse2, sse3, ssse3 and sse4a flags to options.
24427 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
24429         * gengtype-state.c: (s_expr_writer): New class, to handle
24430         prettifying of output layout of s-expressions.
24431         (state_writer): New class, to write out gtype.state.
24432         (state_written_type_count): Move this variable into member data of
24433         state_writer.
24434         (s_expr_writer::s_expr_writer): New code: constructor for new class
24435         (state_writer::state_writer(): ditto
24436         (s_expr_writer::write_new_line): New function
24437         (s_expr_writer::write_any_indent): ditto
24438         (s_expr_writer::begin_s_expr): ditto
24439         (s_expr_writer::end_s_expr): ditto
24440         (write_state_fileloc): convert to method of state_writer...
24441         (state_writer:: write_state_fileloc): ...and use methods of
24442         s_expr_writer to write indentation into the gtype.state output file
24443         to visually represent the hierarchical structure of the list
24444         structures
24445         (write_state_fields): ditto, renaming to...
24446         (state_writer::write_state_fields)
24447         (write_state_a_string): ditto, renaming to...
24448         (state_writer::write_state_a_string)
24449         (write_state_string_option): ditto, renaming to...
24450         (state_writer::write_state_string_option)
24451         (write_state_type_option): ditto, renaming to...
24452         (state_writer::write_state_type_option)
24453         (write_state_nested_option): ditto, renaming to...
24454         (state_writer::write_state_nested_option)
24455         (write_state_option): ditto, renaming to...
24456         (state_writer::write_state_option)
24457         (write_state_options): ditto, renaming to...
24458         (state_writer::write_state_options)
24459         (write_state_lang_bitmap): ditto, renaming to...
24460         (state_writer::write_state_lang_bitmap)
24461         (write_state_version): ditto, renaming to...
24462         (state_writer::write_state_version)
24463         (write_state_scalar_type): ditto, renaming to...
24464         (state_writer::write_state_scalar_type)
24465         (write_state_string_type): ditto, renaming to...
24466         (state_writer::write_state_string_type)
24467         (write_state_undefined_type): ditto, renaming to...
24468         (state_writer::write_state_undefined_type)
24469         (write_state_struct_union_type): ditto, renaming to...
24470         (state_writer::write_state_struct_union_type)
24471         (write_state_struct_type): ditto, renaming to...
24472         (state_writer::write_state_struct_type)
24473         (write_state_user_struct_type): ditto, renaming to...
24474         (state_writer::write_state_user_struct_type)
24475         (write_state_lang_struct_type): ditto, renaming to...
24476         (state_writer::write_state_lang_struct_type)
24477         (write_state_param_struct_type): ditto, renaming to...
24478         (state_writer::write_state_param_struct_type)
24479         (write_state_pointer_type): ditto, renaming to...
24480         (state_writer::write_state_pointer_type)
24481         (write_state_array_type): ditto, renaming to...
24482         (state_writer::write_state_array_type)
24483         (write_state_gc_used): ditto, renaming to...
24484         (state_writer::write_state_gc_used)
24485         (write_state_common_type_content): ditto, renaming to...
24486         (state_writer::write_state_common_type_content)
24487         (write_state_type): ditto, renaming to...
24488         (state_writer::write_state_type)
24489         (write_state_pair_list): ditto, renaming to...
24490         (state_writer::write_state_pair_list)
24491         (write_state_pair): ditto, renaming to...
24492         (state_writer::write_state_pair)
24493         (write_state_typedefs): ditto, renaming to...
24494         (state_writer::write_state_typedefs)
24495         (write_state_structures): ditto, renaming to...
24496         (state_writer::write_state_structures)
24497         (write_state_param_structs): ditto, renaming to...
24498         (state_writer::write_state_param_structs)
24499         (write_state_variables): ditto, renaming to...
24500         (state_writer::write_state_variables)
24501         (write_state_srcdir): ditto, renaming to...
24502         (state_writer::write_state_srcdir)
24503         (write_state_files_list): ditto, renaming to...
24504         (state_writer::write_state_files_list)
24505         (write_state_languages): ditto, renaming to...
24506         (state_writer::write_state_languages)
24507         (write_state): create a state_writer instance and use it when
24508         writing out the state file
24510 2013-05-17  Mike Stump  <mikestump@comcast.net>
24512         PR rtl-optimization/57304
24513         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
24514         accessing DF_REF_REAL_LOC.
24516 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
24518         PR rtl-optimization/57281
24519         PR rtl-optimization/57300
24520         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
24521         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
24522         what the other splitter did if the registers are dead.
24524 2013-05-17  Richard Biener  <rguenther@suse.de>
24526         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
24527         MEM_REF offsets.
24529 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
24531         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
24532         linking.
24534 2013-05-17  Marek Polacek  <polacek@redhat.com>
24536         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
24537         length when doing non-zero store of storing '\0' to '\0'.
24539 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
24541         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
24542         vect_external_def oprnd1 with loop_vinfo, try to emit
24543         optional cast, negation and and stmts on the loop preheader
24544         edge instead of into the pattern def seq.
24546         PR tree-optimization/57051
24547         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
24548         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
24550 2013-05-16  Nick Clifton  <nickc@redhat.com>
24552         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
24553         (rl78_is_naked_func): New function.
24554         (rl78_expand_prologue): Skip prologue generation for naked functions.
24555         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
24556         * doc/extend.texi (naked): Add RL78 to the list of processors
24557         that supports this attribute.
24559 2013-05-16  Jeff Law  <law@redhat.com>
24561         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
24563 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
24565         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
24566         cache parameters using detect_caches_amd also for CYRIX,
24567         NSC and TM2 signatures.
24569 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
24570             Dzianis Kahanovich  <mahatma@eu.by>
24572         PR target/45359
24573         PR target/46396
24574         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24575         VIA/Centaur processors and determine their cache parameters
24576         using detect_caches_amd.
24578 2013-05-16  Teresa Johnson  <tejohnson@google.com>
24580         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
24581         (rtl_verify_edges): New function.
24582         (rtl_verify_bb_insns): Ditto.
24583         (rtl_verify_bb_pointers): Ditto.
24584         (rtl_verify_bb_insn_chain): Ditto.
24585         (rtl_verify_fallthru): Ditto.
24586         (rtl_verify_bb_layout): Ditto.
24587         (rtl_verify_flow_info_1): Outline checks into new functions.
24588         (rtl_verify_flow_info): Ditto.
24590 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
24592         * cfghooks.c (copy_bbs): Add update_dominance argument.
24593         * cfghooks.h (copy_bbs): Update prototype.
24594         * tree-cfg.c (gimple_duplicate_sese_region):
24595         Add update_dominance argument.
24596         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
24597         * tree-ssa-loop-ch.c (copy_loop_headers): Update
24598         gimple_duplicate_sese_region call.
24599         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
24600         Update copy_bbs call.
24601         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
24602         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
24604 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
24606         * tree-vectorizer.h (NUM_PATTERNS): Increment.
24607         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
24608         vect_recog_rotate_pattern.
24609         (vect_recog_rotate_pattern): New function.
24611 2013-05-16  Jason Merrill  <jason@redhat.com>
24613         * Makefile.in (LLINKER): New variable.
24614         (mostlyclean): Remove link mutex.
24615         * configure.ac: Handle --enable-link-mutex.
24616         * lock-and-run.sh: New script.
24618 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24620         PR target/19599
24621         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
24622         for NULL decl.
24624 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24626         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
24628 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
24630         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
24631         * config/arm/arm.c (next_consecutive_mem): New function.
24632         (gen_movmem_ldrd_strd): Likewise.
24633         * config/arm/arm.md (movmemqi): Update condition and code.
24634         (unaligned_loaddi, unaligned_storedi): New patterns.
24636 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24638         * config.gcc: Obsolete *-*-solaris2.9*.
24639         * doc/install.texi (Specific, *-*-solaris2*): Document it.
24641 2013-05-16  Richard Biener  <rguenther@suse.de>
24643         * passes.c (init_optimization_passes): Move pass_parallelize_loops
24644         earlier, after GRAPHITE transforms and IV canonicalization.
24646 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
24648         * omp-low.c (extract_omp_for_data): For collapsed loops,
24649         if at least one of the loops is known at compile time to
24650         iterate zero times, set count to 0.
24651         (expand_omp_regimplify_p): New function.
24652         (expand_omp_for_generic): For collapsed loops, if at least
24653         one of the loops isn't known to iterate at least once,
24654         add runtime check with setting count to 0.
24655         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
24656         For unsigned types if it isn't known at compile time that
24657         the loop will iterate at least once, add runtime check to bypass
24658         the whole loop if initial condition isn't true.
24660 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
24662         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
24664 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
24666         PR middle-end/57286
24667         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
24668         transformations to avoid an infinite loop.
24670 2013-05-16  Marek Polacek  <polacek@redhat.com>
24672         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
24674 2013-05-15  Leif Ekblad  <leif@rdos.net>
24676         * config/i386/i386.c (ix86_decompose_address): Use
24677         DEFAULT_TLS_SEG_REG to access TLS segment register.
24678         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
24679         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
24680         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
24682 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
24684         PR target/57260
24685         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
24686         sibling calls to functions that would normally be lazily bound,
24687         unless $gp is call-clobbered.
24689 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
24691         * config/i386/i386.c (ix86_option_override_internal): Update
24692         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
24693         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
24694         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
24695         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
24696         of TARGET_3DNOW.
24697         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
24699 2013-05-15  Andreas Schwab  <schwab@suse.de>
24701         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
24702         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
24703         third operand.
24705 2013-05-15  Teresa Johnson  <tejohnson@google.com>
24707         * loop-unroll.c (report_unroll_peel): Check decision before
24708         emitting unroll/peel message.
24710 2013-05-15  Teresa Johnson  <tejohnson@google.com>
24712         * function.h (has_bb_partition): New rtl_data flag.
24713         (bb_reorder_complete): Ditto.
24714         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
24715         instead of flag_reorder_blocks_and_partition.
24716         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
24717         with some enhancements.
24718         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
24719         * bb-reorder.c (connect_traces): Check for has_bb_partition
24720         instead of flag_reorder_blocks_and_partition.
24721         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
24722         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
24723         verify_hot_cold_block_grouping.
24724         (partition_hot_cold_basic_blocks): Set has_bb_partition.
24726 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24728         PR target/19599
24729         * config/arm/predicates.md (call_insn_operand): New predicate.
24730         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
24731         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
24732         if insn is not a tail call.
24733         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
24734         registers.
24735         * config/arm/arm.h (enum reg_class): New caller save register class.
24736         (REG_CLASS_NAMES): Likewise.
24737         (REG_CLASS_CONTENTS): Likewise.
24738         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
24739         without decls.
24741 2013-05-15  Richard Biener  <rguenther@suse.de>
24743         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
24744         of MSG_OPTIMIZED_LOCATIONS.
24745         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
24746         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
24747         message.
24748         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
24749         of MSG_OPTIMIZED_LOCATIONS.
24750         (execute_vect_slp): Likewise.
24751         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
24752         (vect_create_cond_for_alias_checks): Likewise.
24753         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
24754         (vect_recog_widen_mult_pattern): Likewise.
24755         (vect_recog_widen_sum_pattern): Likewise.
24756         (vect_recog_over_widening_pattern): Likewise.
24757         (vect_recog_widen_shift_pattern): Likewise.
24758         (vect_recog_vector_vector_shift_pattern): Likewise.
24759         (vect_recog_divmod_pattern): Likewise.
24760         (vect_recog_mixed_size_cond_pattern): Likewise.
24761         (vect_recog_bool_pattern): Likewise.
24762         (vect_pattern_recog_1): Likewise.
24764 2013-05-15  Martin Jambor  <mjambor@suse.cz>
24766         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
24767         non-functions to builtin_unreachable.
24768         * ipa-inline-transform.c (inline_call): Do not assert estimates were
24769         correct when new direct edges were discovered.
24771 2013-05-15  Martin Jambor  <mjambor@suse.cz>
24773         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
24774         header, print symbol order instead of node uid, print more information
24775         about indirect edge targets.
24776         (ipa_make_edge_direct_to_target): Print symbol order instead of node
24777         uids.
24778         (ipa_make_edge_direct_to_target): Likewise.
24779         (remove_described_reference): Likewise.
24780         (propagate_controlled_uses): Likewise.
24781         (ipa_print_node_params): Also print symbol order.
24782         (ipcp_transform_function): Print symbol order instead of node uids.
24783         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
24784         (cgraph_get_create_real_symbol_node): Likewise.
24785         * ipa-cp.c (print_lattice): Likewise.
24786         (print_all_lattices): Likewise.
24787         (determine_versionability): Likewise.
24788         (initialize_node_lattices): Likewise.
24789         (estimate_local_effects): Likewise.
24790         (update_profiling_info): Likewise.
24791         (create_specialized_node): Likewise.
24792         (perhaps_add_new_callers): Likewise.
24793         (decide_about_value): Likewise.
24794         (decide_whether_version_node): Likewise.
24795         (identify_dead_nodes): Likewise.
24796         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
24797         (dump_inline_summary): Likewise.
24798         (estimate_node_size_and_time): Likewise.
24799         (inline_analyze_function): Likewise.
24800         * ipa-inline.c (report_inline_failed_reason): Likewise.
24801         (want_early_inline_function_p): Likewise.
24802         (edge_badness): Likewise.
24803         (update_edge_key): Likewise.
24804         (inline_small_functions): Likewise.  Add dumping of order to two other
24805         dumps.
24806         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
24807         instead of node uids.
24808         (propagate_pure_const): Likewise.
24809         (propagate_pure_const): Likewise.
24810         * ipa-utils.c (dump_cgraph_node_set): Likewise.
24811         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
24812         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
24813         of node uids.
24814         * tree-pretty-print.c (dump_function_header): Likewise.
24815         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
24816         Print symbol order instead of node uids.
24818 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24820         * config/s390/s390.c (s390_register_move_cost): Don't impose the
24821         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
24823 2013-05-15  Richard Biener  <rguenther@suse.de>
24825         PR tree-optimization/57275
24826         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
24827         return value for fail to do runtime alias checks for gather loads.
24829 2013-05-15  Jan Hubicka  <jh@suse.cz>
24831         PR lto/57038
24832         PR lto/47375
24833         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
24834         weakrefs are not external.
24835         (lto_symtab_merge_decls): Fix thinko when dealing with
24836         non-lto_symtab decls.
24837         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
24838         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
24839         * varpool.c (dump_varpool_node): Dump more flags.
24841 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
24843         * config/i386/i386.c (processor_alias_table): Add instruction
24844         FSGSBASE for AMD bdver3 architecture.
24846 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
24848         * tree.c (warn_deprecated_use): Print file:line using locus color.
24849         * diagnostic.c (diagnostic_report_current_module): Print file:line
24850         and file:line:column using locus color.
24852 2013-05-14  Mike Stump  <mikestump@comcast.net>
24854         * gdbinit.in: Add __null.
24856 2013-05-14  Mike Stump  <mikestump@comcast.net>
24858         * recog.h: Rename struct recog_data to Recog_data.
24859         * recog.c: Likewise.
24860         * reload.c (can_reload_into): Likewise.
24861         * config/picochip/picochip.c: Likewise.
24863 2013-05-14  Mike Stump  <mikestump@comcast.net>
24865         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
24867 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
24869         * resource.h (struct resources): Remove unch_memory member.
24870         (CLEAR_RESOURCE): Don't clear unch_memory.
24871         * resource.c (mark_referenced_resources): Don't set it.
24872         (mark_set_resources): Likewise.
24873         (mark_target_live_regs): Don't clear it.
24874         (init_resource_info): Likewise.
24875         * reorg.c (resource_conflicts_p): Don't compare it.
24876         (redundant_insn): Don't set it.
24878         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
24879         Remove prototypes.
24880         * emit-rtl.c (next_label): Remove unused function.
24881         (skip_consecutive_labels, link_cc0_insns): Move to ...
24882         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
24883         only place where these functions are used, and make them static.
24885 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
24887         * fold-const.c (fold_negate_expr): Handle vectors.
24888         (fold_truth_not_expr): Make it static.
24889         (fold_invert_truthvalue): New static function.
24890         (invert_truthvalue_loc): Handle vectors. Do not call
24891         fold_truth_not_expr directly.
24892         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
24893         <TRUTH_NOT_EXPR>: Do not cast to boolean.
24894         (fold_comparison): Handle vector constants.
24895         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
24896         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
24897         * tree.h (fold_truth_not_expr): Remove declaration.
24899 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
24901         * config/aarch64/aarch64-simd.md
24902         (aarch64_vcond_internal<mode>): Rename to...
24903         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
24904         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
24905         float modes. Clarify all iterator modes.
24906         (vcond<mode><mode>): Use new name for vcond expanders.
24907         (vcond<v_cmp_result><mode>): Likewise.
24908         (vcondu<mode><mode>: Likewise.
24909         * config/aarch64/iterators.md (VDQF_COND): New.
24911 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
24913         PR bootstrap/57266
24914         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
24915         variable for the shift amount. Check that we shift by non-negative
24916         amounts.
24918 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
24920         PR target/42017
24921         * config/arm/arm.h (EPILOGUE_USES): Only return true
24922         for LR_REGNUM after epilogue_completed.
24924 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
24926         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
24927         is error_mark_node.
24929 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24931         PR target/57261
24932         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
24933         and Solaris 11+/x86 with gld.
24934         * configure: Regenerate.
24936 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
24938         * expmed.c (expand_shift_1): Canonicalize rotates by
24939         constant bitsize / 2 to bitsize - 1.
24940         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
24941         case ROTATERT>: Likewise.
24943         Revert:
24944         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
24946         * config/i386/i386.md (rotateinv): New code attr.
24947         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
24948         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
24949         roll $31, %eax, etc.
24951 2013-05-14  Richard Biener  <rguenther@suse.de>
24953         PR middle-end/57235
24954         * tree-eh.c (sink_clobbers): Give up for successors with
24955         multiple predecessors and no virtual uses.
24957 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
24959         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
24960         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
24962 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
24964         PR middle-end/57251
24965         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
24966         the case when both op0 and op1 have VOIDmode.
24968 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24970         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
24971         in multiply-accumulate mode.
24973 2013-05-13  Guozhi Wei  <carrot@google.com>
24975         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
24977 2013-05-13  Kai Tietz  <ktietz@redhat.com>
24979         PR target/56975
24980         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
24981         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
24982         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
24983         * config/i386/i386.c (ix86_option_override_internal): Likewise.
24984         (ix86_expand_prologue): Likewise.
24985         (ix86_expand_split_stack_prologue): Likewise.
24986         (legitimate_pic_address_disp_p): Likewise.
24987         (legitimize_pic_address): Likewise.
24988         (legitimize_tls_address): Likewise.
24989         (legitimize_pe_coff_symbol): Likewise.
24990         (output_pic_addr_const): Likewise.
24991         (construct_plt_address): Likewise.
24992         (ix86_expand_call): Likewise.
24993         (x86_output_mi_thunk): Likewise.
24994         (x86_function_profiler): Likewise.
24996 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
24998         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
24999         similar switch cases.
25000         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
25001         (aarch64_simd_mov_to_<mode>low): Delete.
25002         (aarch64_simd_mov_to_<mode>high): Delete.
25003         (move_lo_quad_<mode>): Add w<-r alternative.
25004         (aarch64_simd_move_hi_quad_<mode>): Likewise.
25005         (aarch64_simd_mov_from_*): Update type attribute.
25006         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
25007         statement.
25009 2013-05-13  Jan Hubicka  <jh@suse.cz>
25011         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
25012         * config/i386/i386.c (ix86_compute_frame_layout,
25013         ix86_expand_epilogue, emit_i387_cw_initialization,
25014         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
25015         ix86_local_alignment): Fix use of size/speed predicates.
25017 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
25019         PR tree-optimization/45216
25020         PR tree-optimization/57157
25021         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
25022         the (-Y) & (B - 1) variant if OP is |.
25023         * expmed.c (expand_shift_1): For rotations by const0_rtx just
25024         return shifted.  Use (-op1) & (prec - 1) as other_amount
25025         instead of prec - op1.
25027 2013-05-13  Martin Jambor  <mjambor@suse.cz>
25029         PR middle-end/42371
25030         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
25031         (ipa_constant_data): New type.
25032         (ipa_jump_func): Use ipa_constant_data to hold information about
25033         constant jump functions.
25034         (ipa_get_jf_constant): Adjust to jump function type changes.
25035         (ipa_get_jf_constant_rdesc): New function.
25036         (ipa_param_descriptor): New field controlled_uses.
25037         (ipa_get_controlled_uses): New function.
25038         (ipa_set_controlled_uses): Likewise.
25039         * ipa-ref.h (ipa_find_reference): Declare.
25040         * ipa-prop.c (ipa_cst_ref_desc): New type.
25041         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
25042         changes.
25043         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
25044         New parameter cs.  Adjust all callers.
25045         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
25046         (remove_described_reference): New function.
25047         (jfunc_rdesc_usable): Likewise.
25048         (try_make_edge_direct_simple_call): Decrement controlled use count,
25049         attempt to remove reference if it hits zero.
25050         (combine_controlled_uses_counters): New function.
25051         (propagate_controlled_uses): Likewise.
25052         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
25053         (ipa_edge_duplication_hook): Duplicate reference descriptions.
25054         (ipa_print_node_params): Print described use counter.
25055         (ipa_write_jump_function): Adjust to jump function type changes.
25056         (ipa_read_jump_function): New parameter CS, pass it to
25057         ipa_set_jf_constant.  Adjust caller.
25058         (ipa_write_node_info): Stream controlled use count
25059         (ipa_read_node_info): Likewise.
25060         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
25061         asserting.
25062         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
25063         count.  Remove cloning-added reference if it reaches zero.
25064         * ipa-ref.c (ipa_find_reference): New function.
25066 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25068         * config/i386/i386.c (processor_target_table): Modified default
25069         alignment values for AMD BD and BT architectures.
25071 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
25073         * tree-vect-generic.c (uniform_vector_p): Move ...
25074         * tree.c (uniform_vector_p): ... here.
25075         * tree.h (uniform_vector_p): Declare it.
25076         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
25077         into a scalar.
25079 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
25081         PR tree-optimization/57230
25082         * tree-ssa-strlen.c (handle_char_store): Record length for
25083         array store from STRING_CST.
25085         PR tree-optimization/57230
25086         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
25087         check.
25089 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
25091         * config/epiphany/epiphany.c (epiphany_init): Check size of
25092         NUM_MODES_FOR_MODE_SWITCHING.
25093         (epiphany_expand_prologue):
25094         Remove CONFIG_REGNUM initial value handling code.
25095         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
25096         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
25097         (emit_set_fp_mode, epiphany_mode_after): Likewise.
25098         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
25099         Don't return 1 for FP_MODE_NONE.
25100         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
25101         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
25102         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
25103         * config/epiphany/epiphany.md (save_config): New pattern.
25105 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
25107         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
25109 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
25111         * config/i386/i386.md (memory): Handle sseishft1.
25112         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
25113         (*vec_extractv2di_1): Ditto.
25115 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
25117         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
25118         saved registers.
25120 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25122         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
25123         Add mthumb/march=armv7-a multilib.
25124         Add mthumb/march=armv7-r multilib.
25125         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
25127 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
25129         * config/v850/t-rtems: Add more multilibs.
25131 2013-05-10  Richard Biener  <rguenther@suse.de>
25133         PR tree-optimization/57214
25134         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
25135         not propagate from SSA names that occur in abnormal PHI nodes.
25137 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
25139         * stor-layout.c (element_precision): New function.
25140         * machmode.h (element_precision): Declare it.
25141         * tree.c (build_minus_one_cst): New function.
25142         (element_precision): Likewise.
25143         * tree.h (build_minus_one_cst): Declare new function.
25144         (element_precision): Likewise.
25145         * fold-const.c (operand_equal_p): Use element_precision.
25146         (fold_binary_loc): Handle vector types.
25147         * convert.c (convert_to_integer): Use element_precision.
25148         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
25149         separately.
25151 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
25153         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
25154         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
25155         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
25156         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25157         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
25158         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
25159         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
25160         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25161         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
25162         (Uuw8): New constraints.
25163         (Usb4): Move into alphabetical order.
25164         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
25165         (sd8_operand, ub8_operand, uw8_operand): New predicates.
25166         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
25167         previously unnamed patterns.
25168         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
25169         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
25170         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
25171         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
25172         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
25173         of specific lengths.
25175 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
25177         * config/i386/i386.md (rotateinv): New code attr.
25178         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
25179         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
25180         roll $31, %eax, etc.
25182         PR tree-optimization/45216
25183         PR tree-optimization/57157
25184         * tree-ssa-forwprop.c (simplify_rotate): New function.
25185         (ssa_forward_propagate_and_combine): Call it.
25187 2013-05-10  Richard Biener  <rguenther@suse.de>
25189         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
25190         disable peeling when we version for aliasing.
25191         (vector_alignment_reachable_p): Honor explicit user alignment.
25192         (vect_supportable_dr_alignment): Likewise.
25193         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
25194         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
25195         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
25196         then peeling to arrange for the cost-model check to come first.
25198 2013-05-10  Alan Modra  <amodra@gmail.com>
25200         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
25201         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
25202         * configure: Regenerate.
25204 2013-05-10  Alan Modra  <amodra@gmail.com>
25206         PR target/55033
25207         * varasm.c (default_elf_select_section): Move !DECL_P check..
25208         (get_named_section): ..to here before calling get_section_name.
25209         Adjust assertion.
25210         (default_section_type_flags): Add DECL_P check.
25211         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
25212         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
25214 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
25216         * config/epiphany/epiphany.c (epiphany_expand_prologue):
25217         When using gen_stack_adjust_str with a register offset, add a
25218         REG_FRAME_RELATED_EXPR note.
25220 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
25222         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
25223         (*vec_extractv4si_zext_mem): Ditto.
25224         (*vec_extractv2di): Add 0->x and x->x alternatives.
25225         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
25226         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
25228 2013-05-09  Jason Merrill  <jason@redhat.com>
25230         N3639 C++1y VLA support
25231         * gimplify.c (gimplify_vla_decl): Don't touch an existing
25232         DECL_VALUE_EXPR.
25234         * tree.c (build_constructor_va): New.
25235         * tree.h: Declare it.
25237 2013-05-09  Martin Jambor  <mjambor@suse.cz>
25239         PR lto/57084
25240         * gimple-fold.c (canonicalize_constructor_val): Call
25241         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
25243 2013-05-09  Jan Hubicka  <jh@suse.cz>
25244             Richard Biener  <rguenther@suse.de>
25246         PR lto/54095
25247         * symtab.c (symtab_make_decl_local): Do not add private names.
25249 2013-05-09  Jan Hubicka  <jh@suse.cz>
25251         PR lto/54095
25252         * symtab.c (insert_to_assembler_name_hash): Handle clones.
25253         (unlink_from_assembler_name_hash): Likewise.
25254         (symtab_prevail_in_asm_name_hash, symtab_register_node,
25255         symtab_unregister_node, symtab_initialize_asm_name_hash,
25256         change_decl_assembler_name): Update.
25258 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
25260         * config/aarch64/aarch64.md: New movtf split.
25261         (*movtf_aarch64): Update.
25262         (aarch64_movdi_tilow): Handle TF modes and rename to
25263         aarch64_movdi_<mode>low.
25264         (aarch64_movdi_tihigh): Handle TF modes and rename to
25265         aarch64_movdi_<mode>high
25266         (aarch64_movtihigh_di): Handle TF modes and rename to
25267         aarch64_mov<mode>high_di
25268         (aarch64_movtilow_di): Handle TF modes and rename to
25269         aarch64_mov<mode>low_di
25270         (aarch64_movtilow_tilow): Remove spurious whitespace.
25271         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
25272         splits.
25273         (aarch64_print_operand): Update.
25275 2013-05-09  Alan Modra  <amodra@gmail.com>
25277         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
25278         powerpc64le.
25279         * configure: Regenerate.
25281 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
25283         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
25284         splitter preparation statements.
25285         * config/i386/sse.md (*vec_extract* splitters): Ditto.
25286         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
25287         adjust_address_nv.
25289 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25291         * gimple-ssa-strength-reduction.c (count_candidates): Change
25292         return value to int.
25293         (analyze_candidates_and_replace): Change type of length to int.
25295 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
25297         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
25298         (*vec_extract<mode>): Use VI12_128 mode iterator.
25299         (*vec_extract<mode>_mem): Ditto.
25300         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
25301         attribute.
25303 2013-05-08  Diego Novillo  <dnovillo@google.com>
25305         PR bootstrap/54659
25307         Revert:
25308         2012-08-17  Diego Novillo  <dnovillo@google.com>
25310         PR bootstrap/54281
25311         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
25312         * config.in: Regenerate.
25313         * configure: Regenerate.
25314         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
25316 2013-05-08  Jan Hubicka  <jh@suse.cz>
25318         PR lto/54095
25319         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
25320         * cgraph.h (symtab_node_base): Add unique_name.
25321         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25322         input_overwrite_node, input_varpool_node): Stream unique_name.
25323         * cgraphclones.c (cgraph_create_virtual_clone,
25324         cgraph_function_versioning): Set unique_name.
25325         * ipa.c (function_and_variable_visibility): Set unique_name.
25327 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25329         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
25330         (alloc_cand_and_find_basis): Restrict conditional candidate
25331         processing to CAND_MULTs.
25333 2013-05-08  Jan Hubicka  <jh@suse.cz>
25335         PR lto/54095
25336         lto-symtab.c (lto_symtab_symbol_p): New function.
25337         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
25338         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
25339         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
25340         Skip static symbols.
25342 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
25344         PR tree-optimization/57200
25345         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
25346         Only call inform if the preceding warning_at returns true.
25348 2013-05-07  Han Shen  <shenhan@google.com>
25350         * cfgexpand.c (record_or_union_type_has_array_p): New function.
25351         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
25352         * common.opt (fstack-protector-strong): New option.
25353         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
25354         * doc/invoke.texi (Optimization Options): Document
25355         "-fstack-protector-strong".
25356         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
25358 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
25360         * config/mips/mips.c (mips_machine_reorg2): Return 0.
25362 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
25364         * ira.c (update_equiv_regs): Add insn having equiv memory even if
25365         it is not lhs of the insn.
25366         (setup_reg_equiv): Remove insn having equiv memory which it is not
25367         lhs of the insn.
25368         * lra-constraints.c (process_address): Try to improve generation
25369         code for address base + disp.
25370         (lra_constraints): Make correct the code for checking insn setting
25371         up backward equivalence.  Remove insn only if it is in the init
25372         insn list.
25373         * lra-eliminations.c (update_reg_eliminate): Change return value.
25374         (lra_eliminate): Use the result.
25376 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
25378         * config/i386/sse.md (ssescalarnummask): New mode attribute.
25379         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
25380         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
25381         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
25382         register target operands.
25383         (*vec_extractv8hi_sse2): New pattern.
25384         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
25385         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
25386         (*vec_extract<mode>_mem): New insn and split pattern.
25388 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
25390         * config/arm/arm.c (arm_asan_shadow_offset): New function.
25391         (TARGET_ASAN_SHADOW_OFFSET): Define.
25392         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
25393         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
25395 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25397         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
25398         (incr_vec_index): Return -1 if increment not found.
25399         (create_add_on_incoming_edge): Assert if increment not found.
25400         (record_increment): Limit number of increments recorded.
25401         (all_phi_incrs_profitable): Return false if an increment not found.
25402         (replace_profitable_candidates): Don't process increments that were
25403         not recorded.
25404         (analyze_candidates_and_replace): Limit size of incr_vec.
25406 2013-05-07  Richard Biener  <rguenther@suse.de>
25408         * calls.c (special_function_p): setjmp-like functions are leaf.
25409         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
25410         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
25412 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
25414         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
25415         (aarch64_simd_mov<mode>): New expander.
25416         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
25417         (aarch64_simd_mov_to_<mode>high): Likewise.
25418         (aarch64_simd_mov_from_<mode>low): Likewise.
25419         (aarch64_simd_mov_from_<mode>high): Likewise.
25420         (aarch64_dup_lane<mode>): Update.
25421         (aarch64_dup_lanedi): New instruction pattern.
25422         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
25423         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
25425 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25427         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
25428         (replace_mult_candidate): Remove unnecessary argument; remove
25429         unnecessary parameter from call to introduce_cast_before_cand.
25430         (replace_unconditional_candidate): Remove unnecessary parameter
25431         from call to replace_mult_candidate.
25432         (replace_conditional_candidate): Likewise.
25433         (insert_initializers): Use make_temp_ssa_name.
25434         (introduce_cast_before_cand): Remove unnecessary argument; use
25435         make_temp_ssa_name.
25436         (replace_one_candidate): Remove unnecessary argument; remove
25437         unnecessary parameter from calls to introduce_cast_before_cand.
25438         (replace_profitable_candidates): Remove unnecessary parameters
25439         from calls to replace_one_candidate.
25441 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25443         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
25444         phi def as possibly hiding a basis for a CAND_ADD whose operands
25445         have been commuted in the analysis.
25446         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
25448 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
25450         * config/aarch64/aarch64.md
25451         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
25452         shift value between 0-4.
25454 2013-05-07  Richard Biener  <rguenther@suse.de>
25456         * double-int.h (rshift): New overload.
25457         * double-int.c (rshift): New function.
25458         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
25459         (create_reference_ops_from_ref): Remove.
25460         (vn_reference_insert): Use shared ops for constructing the
25461         reference and copy it.
25463 2013-05-07  Richard Biener  <rguenther@suse.de>
25465         PR middle-end/57190
25466         * tree-eh.c (sink_clobbers): Properly propagate
25467         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
25469 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
25471         PR tree-optimization/57149
25472         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
25473         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
25474         collect_phi_def_edges, execute_late_warn_uninitialized): Use
25475         uninit_undefined_value_p instead of ssa_undefined_value_p.
25477         PR debug/57184
25478         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
25479         for modifier == EXPAND_INITIALIZER.
25481 2013-05-07  Anton Blanchard  <anton@samba.org>
25483         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
25484         for powerpc64 little endian.
25485         * configure: Regenerate.
25487 2013-05-06  Graham Stott  <grahams@btinternet.com>
25489         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
25490         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
25491         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
25492         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
25494 2013-05-06  Graham Stott  <grahams@btinternet.com>
25496         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
25497         codes which allow non-lvalues.
25499 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
25501         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
25502         components are all 1s.
25503         (integer_minus_onep): New function.
25504         * tree.h (integer_minus_onep): Declare it.
25505         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
25506         integer_minus_onep instead of integer_all_onesp.
25508 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25510         PR target/52933
25511         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
25512         variations of these patterns.
25514 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
25516         * config/i386/i386.md (isa): Add x64_sse4 member.
25517         (enabled): Handle x64_sse4.
25518         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
25519         instruction for 64bit SSE4_1 targets.  Update insn attributes.
25520         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
25521         instruction for SSE4_1 targets.  Update insn attributes.
25522         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25523         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
25524         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
25525         const_1 selector.
25526         (*vec_extractv4si): Rename from *sse4_1_pextrd.
25527         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
25528         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
25530 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25532         PR target/57108
25533         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
25535 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
25537         * final.c (do_assembler_dialects): Don't handle curly braces and
25538         vertical bar escaped by % as dialect delimiters.
25539         (output_asm_insn): Print curly braces and vertical bar if escaped
25540         by % and ASSEMBLER_DIALECT defined.
25541         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
25542         * doc/tm.texi: Regenerated.
25544 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
25546         * config/mips/mips.c: Include tree-pass.h.
25547         (mips_reorg): Split in pre- and post-dbr_schedule parts.
25548         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
25549         (pass_mips_machine_reorg2): New machine specific pass.
25550         (insert_pass_mips_machine_reorg2): New pass plugin definition.
25551         (mips_option_override): Register the new pass.
25552         * rtl.h (cleanup_barriers): Remove prototype.
25553         (dbr_schedule): Likewise.
25554         * jump.c (cleanup_barriers): Make static.
25555         * reorg.c (dbr_schedule): Likewise.
25557 2013-05-06  Richard Biener  <rguenther@suse.de>
25559         PR tree-optimization/57185
25560         * tree-parloops.c (add_field_for_reduction): Handle anonymous
25561         SSA names properly.
25563 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
25565         PR target/57106
25566         * config/i386/i386.c (add_parameter_dependencies): Add dependence
25567         between "first_arg" and "insn", not "last" and "insn".
25569 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25571         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
25572         (find_candidates_in_block): Re-enable slsr_process_phi.
25573         (create_phi_basis): Fix double counting of candidate adjustment.
25575 2013-05-06  Richard Biener  <rguenther@suse.de>
25577         PR middle-end/57147
25578         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
25579         the edge is also fallthru, preserve it and just clear the
25580         abnormal flag.
25581         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
25582         also complex, preserve that and just clear the fallthru flag.
25583         * tree-inline.c (update_ssa_across_abnormal_edges): Also
25584         update virtual operands.
25586 2013-05-06  Alan Modra  <amodra@gmail.com>
25588         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
25589         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
25590         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
25591         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
25592         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
25593         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
25595 2013-05-06  Alan Modra  <amodra@gmail.com>
25597         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
25598         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
25599         (DEFAULT_ASM_ENDIAN): Define.
25600         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
25601         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
25602         Update -K PIC clause from sysv4.h.
25603         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
25604         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
25606 2013-05-06  Alan Modra  <amodra@gmail.com>
25608         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
25609         twice for little-endian.
25610         (ashrdi3_no_power, ashrdi3): Support little-endian.
25612 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
25614         PR target/55303
25615         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
25616         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
25617         related expanders.
25618         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
25619         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
25620         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
25621         New predicates.
25623 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
25624             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25626         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
25627         * config/pa/pa.opt: Make mbig-switch a no-op.
25628         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
25629         (CASE_VECTOR_MODE): Always return SImode.
25630         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
25631         for the !TARGET_BIG_SWITCH case.
25632         * config/pa/pa-linux.h: Likewise.
25633         * config/pa/pa-openbsd.h: Likewise.
25634         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
25635         * config/pa/pa.md (short_jump): Remove define_insn.
25636         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
25637         (casesi0): Remove define_insn.
25638         (type): Remove btable_branch.
25639         (pa_combine_type): Likewise.
25640         (in_nullified_branch_delay): Likewise.
25641         (in_call_delay): Likewise.
25642         (define_delay): Likewise.
25643         (define_insn_reservation "Z3"): Likewise.
25644         (define_insn_reservation "Z4"): Likewise.
25645         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
25646         (pa_adjust_insn_length): Remove adjustment for btable branches.
25647         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
25648         and mno-big-switch
25650 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
25652         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25653         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
25654         Add m->r,x alternatives.
25655         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
25656         splitters using SWI48x mode iterator.
25657         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
25658         TARGET_64BIT.  Add m->x alternative.
25659         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
25660         Add o->x alternative.  Enable for TARGET_SSE.
25661         (sse_storeq): Remove expander.
25662         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
25663         with memory input operand.
25664         (*vec_extractv2di_1 splitter): New.
25665         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
25666         * config/i386/i386.md (ssevecmodelower): New mode attribute.
25668 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
25670         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
25671         (INT_LOWPART): Delete.
25672         (extract_MB): Adjust.
25673         (extract_ME): Adjust.
25674         (print_operand): Adjust.
25676 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
25678         * config/rs6000/predicates.md (reg_or_add_cint_operand,
25679         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
25680         (reg_or_logical_cint_operand, easy_fp_constant,
25681         logical_const_operand): Delete "CONST_DOUBLE" case.
25682         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
25683         "HOST_BITS_PER_WIDE_INT == 64" test.
25684         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
25685         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
25686         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
25687         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
25688         test.
25689         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
25690         CONST_DOUBLE DImode/VOIDmode case.
25691         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
25692         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
25693         CONST_DOUBLE VOIDmode case.
25694         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
25695         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
25696         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
25697         Delete CONST_DOUBLE case.
25698         (splitters for mov FMOVE64 const_double): Delete
25699         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
25700         "HOST_BITS_PER_WIDE_INT >= 64" test.
25701         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
25702         case.
25703         (mov DI const_double): Delete.
25705 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
25707         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
25708         on op shows all bits zero in mode of a lowpart subreg, return zero.
25710 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
25712         PR target/57150
25713         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
25714         to save TFmode registers and DImode to save TImode registers for
25715         caller save operations.
25716         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
25717         mark being partially clobbered since they only use the first
25718         double word.
25720         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
25721         and TDmode only use the upper 64-bits of each VSX register.
25723 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25725         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
25726         (find_candidates_in_block): Disable slsr_process_phi.
25728 2013-05-03  Guozhi Wei  <carrot@google.com>
25730         * coverage.c (coverage_obj_init): Move the construction of gcov
25731         constructor to ...
25732         (build_init_ctor): ... here.
25734 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25736         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
25737         (slsr_cand_d): Redefine def_phi.
25738         (stride_status, phi_adjust_status, count_phis_status): New enums.
25739         (find_phi_def): New.
25740         (find_basis_for_base_expr): New.
25741         (find_basis_for_candidate): Handle hidden bases.
25742         (alloc_cand_and_find_basis): Handle phi candidates.
25743         (slsr_process_phi): New.
25744         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
25745         (create_mul_imm_cand): Likewise.
25746         (create_add_ssa_cand): Exclude phi base candidates.
25747         (create_add_imm_cand): Likewise.
25748         (slsr_process_cast): Likewise.
25749         (slsr_process_copy): Likewise.
25750         (find_candidates_in_block): Handle phi candidates.
25751         (dump_candidate): Likewise.
25752         (unconditional_cands): Delete.
25753         (unconditional_cands_with_known_stride_p): Delete.
25754         (phi_dependent_cand_p): New.
25755         (cand_increment): Handle phi-dependent candidates.
25756         (replace_dependent): Delete.
25757         (replace_mult_candidate): New.
25758         (replace_unconditional_candidate): New.
25759         (incr_vec_index): Move to avoid forward reference.
25760         (create_add_on_incoming_edge): New.
25761         (create_phi_basis): New.
25762         (replace_dependents): Delete.
25763         (replace_conditional_candidate): New.
25764         (phi_add_costs): New.
25765         (replace_uncond_cands_and_profitable_phis): New.
25766         (record_increment): Handle phi adjustments.
25767         (record_phi_increments): New.
25768         (record_increments): Handle phi adjustments.
25769         (phi_incr_cost): New.
25770         (lowest_cost_path): Handle phis.
25771         (total_savings): Likewise.
25772         (analyze_increments): Likewise.
25773         (ncd_with_phi): New.
25774         (ncd_of_cand_and_phis): New.
25775         (nearest_common_dominator_for_cands): Handle phi increments.
25776         (all_phi_incrs_profitable): New.
25777         (replace_profitable_candidates): Handle phi-dependent candidates.
25778         (analyze_candidates_and_replace): Likewise.
25780 2013-05-03  Teresa Johnson  <tejohnson@google.com>
25782         PR bootstrap/57154
25783         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
25784         do not exceed REG_BR_PROB_BASE.
25786 2013-05-03  Jeff Law  <law@redhat.com>
25788         PR tree-optimization/57144
25789         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
25790         operand of the condition will bit into the new type when eliminating
25791         a cast feeding a condition.
25793 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
25795         PR rtl-optimization/57130
25796         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
25797         of COMPARE as in_code to the recursive call if needed.
25799 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
25801         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
25802         (enabled): Handle new members.
25803         * config/i386/sse.md (*vec_concatv2si): Merge from
25804         *vec_concatv2si_sse2 and vec_concatv2si_sse.
25805         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
25807 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
25809         PR tree-optimization/57027
25810         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
25811         for fnms opportunity, check we got the prerequisite kind
25812         of tree / gimple before using accessor functions.
25814 2013-05-03  Richard Biener  <rguenther@suse.de>
25816         * double-int.h (lshift): New overload without precision
25817         and arith argument.
25818         (operator *=, operator +=, operator -=): Move ...
25819         * double-int.c (operator *=, operator +=, operator -=): ... here
25820         and implement more efficiently.
25821         (mul_double_with_sign): Remove.
25822         (lshift_double): Adjust to take unsinged shift argument, push
25823         dispatching code to callers.
25824         (mul_double_wide_with_sign): Add early out for callers that
25825         are not interested in high parts or overflow.
25826         (lshift): New function.
25827         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
25828         dispatch code here.
25829         (lrotate, rrotate): Use logical shifts.
25830         * expr.c (get_inner_reference): Use lshift.
25831         * fixed-value.c (do_fixed_divide): Likewise.
25832         * tree-dfa.c (get_ref_base_and_extent): Likewise.
25833         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25834         (indirect_refs_may_alias_p): Likewise.
25835         (stmt_kills_ref_p_1): Likewise.
25837 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
25839         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
25841 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
25843         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
25844         scalar form of FABD instruction.
25846 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
25848         * lra-constraints.c (process_alt_operands): Add checking alt
25849         number to choose the best alternative.
25851 2013-05-02  Richard Biener  <rguenther@suse.de>
25853         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
25854         bitmap and its handling.
25855         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
25857 2013-05-02  Richard Biener  <rguenther@suse.de>
25859         PR middle-end/57140
25860         * tree-inline.c (copy_loops): Properly handle removed loops.
25861         (copy_cfg_body): Mark destination loops for fixup if source
25862         loops needed fixup.
25864 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
25866         PR target/56732
25867         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
25868         generating simple_return for naked functions.
25870 2013-05-02  Martin Jambor  <mjambor@suse.cz>
25872         PR middle-end/56988
25873         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
25874         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
25875         flags match.
25876         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
25877         ipa_agg_replacement_value structures.
25878         (known_aggs_to_agg_replacement_list): Likewise.
25879         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
25880         (read_agg_replacement_chain): Likewise.
25881         (ipcp_transform_function): Also check that by_ref flags match.
25883 2013-05-02  Richard Biener  <rguenther@suse.de>
25885         * graphds.h (struct graph): Add obstack member.
25886         * graphds.c (new_graph): Initialize obstack and allocate
25887         vertices from it.
25888         (add_edge): Allocate edge from the obstack.
25889         (free_graph): Free the obstack instead of all edges and vertices.
25891 2013-05-02  Teresa Johnson  <tejohnson@google.com>
25893         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
25894         divides.
25895         * cfg.c (update_bb_profile_for_threading): Ditto.
25896         * tree-inline.c (copy_bb): Ditto.
25897         (copy_edges_for_bb): Ditto.
25898         (initialize_cfun): Ditto.
25899         (copy_cfg_body): Ditto.
25900         (expand_call_inline): Ditto.
25901         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
25902         (estimate_node_size_and_time): Ditto.
25903         (inline_merge_summary): Ditto.
25904         * cgraphclones.c (cgraph_clone_edge): Ditto.
25905         (cgraph_clone_node): Ditto.
25906         * sched-rgn.c (compute_dom_prob_ps): Ditto.
25907         (compute_trg_info): Ditto.
25909 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
25911         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
25912         S reg when fp attribute set.
25913         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
25915 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
25917         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
25918         New pattern.
25919         (*and_one_cmplsi3_compare0_uxtw): Likewise.
25920         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
25921         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
25923 2013-05-02  Richard Biener  <rguenther@suse.de>
25925         * tree-scalar-evolution.c (scev_info_hasher): Remove.
25926         (struct instantiate_cache_entry): New type.
25927         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
25928         (struct instantiate_cache_type): New type.
25929         (set_instantiated_value, get_instantiated_value): Remove.
25930         (get_instantiated_value_entry): New function.
25931         (instantiate_scev_name): Use the new cache and adjust.
25932         (instantiate_scev_poly): Adjust.
25933         (instantiate_scev_binary): Likewise.
25934         (instantiate_array_ref): Likewise.
25935         (instantiate_scev_convert): Likewise.
25936         (instantiate_scev_not): Likewise.
25937         (instantiate_scev_3): Likewise.
25938         (instantiate_scev_2): Likewise.
25939         (instantiate_scev_r): Likewise.
25940         (instantiate_scev): Likewise.
25941         (resolve_mixers): Likewise.
25943 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
25945         PR target/57091
25946         * lra-constraints.c (best_small_class_operands_num): Remove.
25947         (process_alt_operands): Remove small_class_operands_num.  Take
25948         small classes operands into losers and only if the operand is not
25949         matched.  Modify debugging output.
25950         (curr_insn_transform): Remove best_small_class_operands_num.
25951         Print insn name.
25953 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
25955         * config/aarch64/aarch64-builtins.c
25956         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
25957         * config/aarch64/aarch64-simd-builtins.def
25958         (reduc_splus_): Add new modes.
25959         (reduc_uplus_): New.
25960         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
25961         (reduc_uplus_v4sf): Likewise.
25962         (reduc_splus_v4sf): Likewise.
25963         (aarch64_addv<mode>): Likewise.
25964         (reduc_uplus_<mode>): Likewise.
25965         (reduc_splus_<mode>): Likewise.
25966         (aarch64_addvv2di): Likewise.
25967         (reduc_uplus_v2di): Likewise.
25968         (reduc_splus_v2di): Likewise.
25969         (aarch64_addvv2si): Likewise.
25970         (reduc_uplus_v2si): Likewise.
25971         (reduc_splus_v2si): Likewise.
25972         (reduc_<sur>plus_<mode>): New.
25973         (reduc_<sur>plus_v2di): Likewise.
25974         (reduc_<sur>plus_v2si): Likewise.
25975         (reduc_<sur>plus_v4sf): Likewise.
25976         (aarch64_addpv4sf): Likewise.
25977         * config/aarch64/arm_neon.h
25978         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
25979         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
25980         add UNSPEC_SADDV, UNSPEC_UADDV.
25981         (SUADDV): New.
25982         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
25984 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
25986         * config/aarch64/arm_neon.h
25987         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
25989 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
25991         * config/aarch64/aarch64-builtins
25992         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
25994 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
25996         * config/aarch64/aarch64-simd-builtins.def
25997         (reduc_smax_): New.
25998         (reduc_smin_): Likewise.
25999         (reduc_umax_): Likewise.
26000         (reduc_umin_): Likewise.
26001         (reduc_smax_nan_): Likewise.
26002         (reduc_smin_nan_): Likewise.
26003         (fmax): Remove.
26004         (fmin): Likewise.
26005         (smax): Update for V2SF, V4SF and V2DF modes.
26006         (smin): Likewise.
26007         (smax_nan): New.
26008         (smin_nan): Likewise.
26009         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
26010         (<su><maxmin><mode>3): ...This, refactor.
26011         (s<maxmin><mode>3): New.
26012         (<maxmin_uns><mode>3): Likewise.
26013         (reduc_<maxmin_uns>_<mode>): Refactor.
26014         (reduc_<maxmin_uns>_v4sf): Likewise.
26015         (reduc_<maxmin_uns>_v2si): Likewise.
26016         (aarch64_<fmaxmin><mode>: Remove.
26017         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
26018         new builtin names.
26019         (vmin<q>_f<32,64>): Likewise.
26020         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
26021         (FMAXMIN): New.
26022         (su): Add mappings for smax, smin, umax, umin.
26023         (maxmin): New.
26024         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
26025         (FMAXMIN): Rename as...
26026         (FMAXMIN_UNS): ...This.
26027         (maxminv): Remove.
26028         (fmaxminv): Likewise.
26029         (fmaxmin): Likewise.
26030         (maxmin_uns): New.
26031         (maxmin_uns_op): Likewise.
26033 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26035         * config/aarch64/arm_neon.h
26036         (vac<ge, gt><sd>_f<32, 64>): Rename to...
26037         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
26038         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
26040 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26042         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
26043         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
26045 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26047         * config/aarch64/aarch64-simd.md
26048         (vcond<mode>_internal): Handle special cases for constant masks.
26049         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
26050         (vcondu<mode><mode>): Likewise.
26051         (vcond<v_cmp_result><mode>): New.
26053 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26055         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
26056         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
26057         * config/aarch64/aarch64-simd-builtins.def
26058         (cmeq): Update to BUILTIN_VALLDI.
26059         (cmgt): Likewise.
26060         (cmge): Likewise.
26061         (cmle): Likewise.
26062         (cmlt): Likewise.
26063         * config/aarch64/arm_neon.h
26064         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
26065         to builtins or C as appropriate.
26067 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
26069         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
26070         (cmgeu): ...This.
26071         (cmhi): Rename to...
26072         (cmgtu): ...This.
26073         * config/aarch64/aarch64-simd.md
26074         (simd_mode): Add SF.
26075         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
26076         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
26077         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
26078         (cstore<mode>_neg): ...This.
26079         * config/aarch64/iterators.md
26080         (VALLF): new.
26081         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
26082         (COMPARISONS): New.
26083         (UCOMPARISONS): Likewise.
26084         (optab): Add missing comparisons.
26085         (n_optab): New.
26086         (cmp_1): Likewise.
26087         (cmp_2): Likewise.
26088         (CMP): Likewise.
26089         (cmp): Remove.
26090         (VCMP_S): Likewise.
26091         (VCMP_U): Likewise.
26092         (V_cmp_result): Add DF, SF modes.
26093         (v_cmp_result): Likewise.
26094         (v): Likewise.
26095         (vmtype): Likewise.
26096         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
26098 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
26100         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
26101         define_insn to define_insn_and_split.
26102         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
26103         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
26104         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
26105         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
26106         (thumb2_negscc): Likewise.
26108 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
26110         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
26112 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
26114         * config/arm/thumb2.md: Remove trailing whitespaces.
26116 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26118         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
26119         Use gen_int_mode rather than GEN_INT.
26121 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
26123         * value-prof.c (stream_in_histogram_value): Remove the strayed
26124         debug_gimple_stmt.
26126 2013-04-30  Richard Biener  <rguenther@suse.de>
26128         PR middle-end/57122
26129         * cfghooks.c (split_edge): Properly check for the loop latch edge.
26131 2013-04-30  Richard Biener  <rguenther@suse.de>
26133         PR middle-end/57107
26134         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
26136 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
26138         PR rtl-optimization/56957
26139         PR rtl-optimization/57105
26140         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
26141         variable.  Use just INSN_UID for determining whether an insn
26142         should be only disconnected from the insn stream.
26143         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
26145 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
26147         PR tree-optimization/57104
26148         * tsan.c (instrument_expr): Don't instrument accesses to
26149         DECL_HARD_REGISTER VAR_DECLs.
26151 2013-04-30  Richard Biener  <rguenther@suse.de>
26153         * function.h (loops_for_fn): New inline function.
26154         (set_loops_for_fn): Likewise.
26155         * cfgloop.h (place_new_loop): Add struct function parameter.
26156         (get_loop): Likewise.
26157         (get_loops): Likewise.
26158         (number_of_loops): Likewise.
26159         (fel_next): Adjust.
26160         (fel_init): Likewise.
26161         * cfg.c (get_loop_copy): Adjust.
26162         * cfgloop.c (flow_loops_dump): Likewise.
26163         (record_loop_exits): Likewise.
26164         (verify_loop_structure): Likewise.
26165         * cfgloopanal.c (mark_irreducible_loops): Likewise.
26166         (estimate_reg_pressure_cost): Likewise.
26167         (mark_loop_exit_edges): Likewise.
26168         * cfgloopmanip.c (place_new_loop): Likewise.
26169         (add_loop): Likewise.
26170         (duplicate_loop): Likewise.
26171         * graph.c (draw_cfg_nodes): Likewise.
26172         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
26173         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
26174         (extract_affine_chrec): Likewise.
26175         (build_scop_iteration_domain): Likewise.
26176         * graphite.c (graphite_initialize): Likewise.
26177         * ira-build.c (create_loop_tree_nodes): Likewise.
26178         (more_one_region_p): Likewise.
26179         (rebuild_regno_allocno_maps): Likewise.
26180         (mark_loops_for_removal): Likewise.
26181         (mark_all_loops_for_removal): Likewise.
26182         (remove_unnecessary_regions): Likewise.
26183         (ira_build): Likewise.
26184         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
26185         * loop-init.c (fix_loop_structure): Likewise.
26186         (gate_rtl_move_loop_invariants): Likewise.
26187         (gate_rtl_unswitch): Likewise.
26188         (gate_rtl_unroll_and_peel_loops): Likewise.
26189         (rtl_doloop): Likewise.
26190         * lto-streamer-in.c (input_cfg): Likewise.
26191         * lto-streamer-out.c (output_cfg): Likewise.
26192         * modulo-sched.c (sms_schedule): Likewise.
26193         * predict.c (tree_estimate_probability): Likewise.
26194         (tree_estimate_probability_driver): Likewise.
26195         (estimate_loops): Likewise.
26196         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
26197         (move_sese_region_to_fn): Likewise.
26198         (debug_loop_num): Likewise.
26199         * tree-chrec.c (chrec_evaluate): Likewise.
26200         (hide_evolution_in_other_loops_than_loop): Likewise.
26201         (chrec_component_in_loop_num): Likewise.
26202         (reset_evolution_in_loop): Likewise.
26203         (evolution_function_is_invariant_rec_p): Likewise.
26204         * tree-if-conv.c (main_tree_if_conversion): Likewise.
26205         * tree-inline.c (copy_loops): Likewise.
26206         (copy_cfg_body): Likewise.
26207         (tree_function_versioning): Likewise.
26208         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
26209         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
26210         Likewise.
26211         (add_to_evolution_1): Likewise.
26212         (scev_const_prop): Likewise.
26213         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
26214         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
26215         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
26216         (tree_ssa_lim_initialize): Likewise.
26217         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
26218         (verify_loop_closed_ssa): Likewise.
26219         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
26220         (tree_ssa_loop_im): Likewise.
26221         (tree_ssa_loop_unswitch): Likewise.
26222         (tree_vectorize): Likewise.
26223         (check_data_deps): Likewise.
26224         (tree_ssa_loop_ivcanon): Likewise.
26225         (tree_ssa_loop_bounds): Likewise.
26226         (tree_complete_unroll): Likewise.
26227         (tree_complete_unroll_inner): Likewise.
26228         (tree_parallelize_loops): Likewise.
26229         (tree_ssa_loop_prefetch): Likewise.
26230         (tree_ssa_loop_ivopts): Likewise.
26231         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
26232         * tree-vectorizer.c (vectorize_loops): Likewise.
26234 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
26236         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
26237         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
26238         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
26239         with EABI_LINK_SPEC.
26241 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
26243         PR target/44578
26244         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
26245         alternative.
26247 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
26249         PR target/57097
26250         * lra-constraints.c (process_alt_operands): Discourage a bit more
26251         using memory for pseudos.  Print cost dump for alternatives.
26252         Modify cost values for conflicts with early clobbers.
26253         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
26255 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
26257         PR target/57098
26258         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
26260 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
26262         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
26263         from/to S register.
26264         (movdi_aarch64): Support LDR/STR from/to D register.
26266 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
26268         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
26269         or higher by default.
26271 2013-04-29  Richard Biener  <rguenther@suse.de>
26273         PR middle-end/57075
26274         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
26275         even if not adding abnormal edges for calls that can make
26276         abnormal gotos.
26278 2013-04-29  Richard Biener  <rguenther@suse.de>
26280         PR middle-end/57103
26281         * tree-cfg.c (move_stmt_op): Fix condition under which to update
26282         TREE_BLOCK.
26283         (move_stmt_r): Remove redundant checking.
26285 2013-04-29  Teresa Johnson  <tejohnson@google.com>
26287         PR bootstrap/57077
26288         * basic-block.h (apply_scale): New function.
26289         (apply_probability): Use apply_scale.
26290         * gimple-streamer-in.c (input_bb): Ditto.
26291         * lto-streamer-in.c (input_cfg): Ditto.
26292         * lto-cgraph.c (merge_profile_summaries): Ditto.
26293         * tree-optimize.c (execute_fixup_cfg): Ditto.
26294         * tree-inline.c (copy_bb): Update comment to use apply_scale.
26295         (copy_edges_for_bb): Ditto.
26296         (copy_cfg_body): Ditto.
26298 2013-04-29  Tom de Vries  <tom@codesourcery.com>
26300         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
26301         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
26302         (tail_merge_optimize): Handle current_loops == NULL.
26304 2013-04-26  Jeff Law  <law@redhat.com>
26306         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
26307         (simplify_cond_using_ranges): Generalize code to simplify
26308         COND_EXPRs where one argument is a constant and the other
26309         is an SSA_NAME created by an integral type conversion.
26311 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26313         * config/arm/arm.md (store_minmaxsi): Use only when
26314         optimize_insn_for_size_p.
26316 2013-04-29  Christian Bruel  <christian.bruel@st.com>
26318         PR target/57108
26319         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
26321 2013-04-29  Richard Biener  <rguenther@suse.de>
26323         PR middle-end/57089
26324         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
26325         loop tree make sure to schedule a fixup for the child as well.
26326         (expand_omp_for_generic): Properly add loops.
26327         (expand_omp_for_static_nochunk): Likewise.
26328         (expand_omp_for_static_chunk): Likewise.
26329         (expand_omp_for): For the degenerate case fixup loops.
26330         (expand_omp_sections): Fix default bb placement in loops.
26331         (expand_omp_atomic_pipeline): Properly add loops.
26333 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26335         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
26337 2013-04-29  Tom de Vries  <tom@codesourcery.com>
26339         * tree-ssa-tail-merge.c: Update header comment.
26341 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26343         * config/aarch64/arm_neon.h
26344         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
26345         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
26346         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
26347         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
26348         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
26349         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
26350         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
26351         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
26353 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26355         * config/aarch64/aarch64-simd.md
26356         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
26357         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
26358         fix_trunc, fixuns_trunc.
26359         (ftrunc<VDQF:mode>2): New.
26360         * config/aarch64/iterators.md (optab): Add fix, fixuns.
26361         (fix_trunc_optab): New.
26363 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26365         * config/aarch64/aarch64-builtins.c
26366         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
26367         iceilf, lround, iroundf.
26369 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
26371         PR target/54349
26372         * config/i386/i386.h (enum ix86_tune_indices)
26373         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
26374         New, split from X86_TUNE_INTER_UNIT_MOVES.
26375         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
26376         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
26377         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
26378         (TARGET_INTER_UNIT_MOVES): Remove.
26379         * config/i386/i386.c (initial_ix86_tune_features): Update.
26380         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
26381         (ix86_expand_convert_uns_didf_sse): Use
26382         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26383         (ix86_expand_vector_init_one_nonzero): Ditto.
26384         (ix86_expand_vector_init_interleave): Ditto.
26385         (inline_secondary_memory_needed): Return true for moves from SSE class
26386         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
26387         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
26388         * config/i386/constraints.md (Yi, Ym): Depend on
26389         TARGET_INTER_UNIT_MOVES_TO_VEC.
26390         (Yj, Yn): New constraints.
26391         * config/i386/i386.md (*movdi_internal): Change constraints of
26392         operand 1 from Yi to Yj and from Ym to Yn.
26393         (*movsi_internal): Ditto.
26394         (*movdf_internal): Ditto.
26395         (*movsf_internal): Ditto.
26396         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
26397         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26398         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
26399         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
26400         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
26401         * config/i386/sse.md (movdi_to_sse): Ditto.
26402         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
26403         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
26404         TARGET_INTER_UNIT_MOVES.
26405         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
26406         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
26407         instead of TARGET_INTER_UNIT_MOVES.
26408         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
26409         operand 1 from Yi to Yj and from Ym to Yn.
26411 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26413         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
26414         (float_truncate_hi_): Likewise.
26415         (float_extend_lo_): Likewise.
26416         (float_truncate_lo_): Likewise.
26417         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
26418         (aarch64_float_extend_lo_v2df): Likewise.
26419         (vec_unpacks_hi_v4sf): Likewise.
26420         (aarch64_float_truncate_lo_v2sf): Likewise.
26421         (aarch64_float_truncate_hi_v4sf): Likewise.
26422         (vec_pack_trunc_v2df): Likewise.
26423         (vec_pack_trunc_df): Likewise.
26425 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26427         * config/aarch64/aarch64-builtins.c
26428         (aarch64_fold_builtin): Fold float conversions.
26429         * config/aarch64/aarch64-simd-builtins.def
26430         (floatv2si, floatv4si, floatv2di): New.
26431         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
26432         * config/aarch64/aarch64-simd.md
26433         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
26434         * config/aarch64/iterators.md (FLOATUORS): New.
26435         (optab): Add float, floatuns.
26436         (su_optab): Likewise.
26438 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26440         * config/aarch64/aarch64-builtins.c
26441         (aarch64_builtin_vectorized_function): Use new names for
26442         fcvt builtins.
26443         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
26444         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
26445         (fcvtzu): Split as...
26446         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
26447         (fcvtas): Split as...
26448         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
26449         (fcvtau): Split as...
26450         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
26451         (fcvtps): Split as...
26452         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
26453         (fcvtpu): Split as...
26454         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
26455         (fcvtms): Split as...
26456         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
26457         (fcvtmu): Split as...
26458         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
26459         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
26460         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
26461         (lfrintnusf, lfrintnudf): Likewise.
26462         * config/aarch64/aarch64-simd.md
26463         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
26464         define_insn.
26465         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
26466         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
26467         (fcvt_pattern): Likewise.
26469 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26471         * config/aarch64/aarch64-simd.md
26472         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
26473         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
26475 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26477         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
26478         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
26479         (vrnd<a,m,n,p>_f32): Implement using builtins.
26480         (vrnd<i,x><q>_f<32, 64>): New.
26482 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
26484         * config/aarch64/aarch64-builtins.c
26485         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
26486         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
26487         (frintz): Rename to...
26488         (btrunc): ...this.
26489         (frintp): Rename to...
26490         (ceil): ...this.
26491         (frintm): Rename to...
26492         (floor): ...this.
26493         (frinti): Rename to...
26494         (nearbyint): ...this.
26495         (frintx): Rename to...
26496         (rint): ...this.
26497         (frinta): Rename to...
26498         (round): ...this.
26499         * config/aarch64/aarch64-simd.md
26500         (aarch64_frint<frint_suffix><mode>): Delete.
26501         (<frint_pattern><mode>2): Convert to insn.
26502         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
26503         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
26504         (frint_pattern): Likewise.
26505         (frint_suffix): Likewise.
26507 2013-04-29  Richard Biener  <rguenther@suse.de>
26509         PR tree-optimization/57081
26510         * loop-init.c: Include tree-flow.h.
26511         (loop_optimizer_finalize): Free number of iteration estimates.
26512         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
26514 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
26516         PR tree-optimization/57083
26517         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
26518         non-singleton shift count range, zero extend low_bound for uns case.
26520         * config/i386/predicates.md (general_vector_operand): New predicate.
26521         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
26522         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
26523         if they aren't nonimmediate operands.  If their original values
26524         satisfy const_vector_equal_evenodd_p, don't shift them.
26525         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
26526         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
26527         if not nonimmediate_operand.
26528         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
26529         instead of register_operand.
26530         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
26532 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
26534         * stor-layout.c (finalize_size_functions): Allocate a structure and
26535         reset cfun before dumping the functions.
26537 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
26539         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
26541         PR target/56866
26542         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
26543         use xop_pmacsdqh if uns_p.
26544         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
26545         the immediate rotate count.
26547 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
26549         * rtl.h (struct rtx_def): Add comment for field jump.
26550         (LRA_SUBREG_P): New macro.
26551         * recog.c (register_operand): Check LRA_SUBREG_P.
26552         * lra.c (lra): Add note at the end of RTL code. Align non-empty
26553         stack frame.
26554         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
26555         (lra_final_code_change): Skip subreg change for operators.
26556         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
26557         if there are no operand changes.
26558         * lra-constraints.c (curr_insn_set): New.
26559         (match_reload): Set LRA_SUBREG_P.
26560         (emit_spill_move): Ditto.
26561         (check_and_process_move): Use curr_insn_set. Process only single
26562         set insns.  Don't initialize sec_mem_p and change_p.
26563         (simplify_operand_subreg): Use LRA_SUBREG_P.
26564         (reg_in_class_p): New function.
26565         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
26566         of #ifdef.  Add code to remove cycling.
26567         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
26568         non-null disp.  Reload inner instead of disp when base and index
26569         are null.  Try to put lo_sum into register.
26570         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
26571         (check_and_process_move): Move code for move cost check to
26572         simple_move_p.  Remove equiv_substitution.
26573         (simple_move_p): New function.
26574         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
26575         curr_insn_set.  Call check_and_process_move only for single set
26576         insns.  Use the new function.  Move call of check_and_process_move
26577         after operand equiv substitution and address process.
26579 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
26581         PR go/57045
26582         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
26583         with nonlocal goto receivers or returns twice calls, ignore
26584         unininitialized values from abnormal edges to nl goto receiver
26585         or returns twice call.
26587 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
26589         PR tree-optimization/57051
26590         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
26591         and VEC_RSHIFT_EXPR if shift count is a multiple of element
26592         bitsize.
26594 2013-04-26  Richard Biener  <rguenther@suse.de>
26596         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
26597         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
26598         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
26599         (fixup_loop_arrays_after_move): New function.
26600         (move_sese_region_to_fn): Properly outline the loop tree parts
26601         of the SESE region.
26603 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
26605         * config/i386/i386.md (type, unit): Fix long lines.
26607 2013-04-26  Richard Biener  <rguenther@suse.de>
26609         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
26610         (lto-streamer-out.o): Likewise.
26611         * cfgloop.c (init_loops_structure): Export, add struct function
26612         argument and adjust.
26613         (flow_loops_find): Adjust.
26614         * cfgloop.h (enum loop_estimation): Add EST_LAST.
26615         (init_loops_structure): Declare.
26616         * lto-streamer-in.c: Include cfgloop.h.
26617         (input_cfg): Input the loop tree.
26618         * lto-streamer-out.c: Include cfgloop.h.
26619         (output_cfg): Output the loop tree.
26620         (output_struct_function_base): Do not drop PROP_loops.
26622 2013-03-26  Richard Biener  <rguenther@suse.de>
26624         * tree-cfg.c (execute_build_cfg): Build the loop tree.
26625         (pass_build_cfg): Provide PROP_loops.
26626         (move_sese_region_to_fn): Remove loops that are outlined into fn
26627         for now.
26628         * tree-inline.c: Include cfgloop.h.
26629         (initialize_cfun): Do not drop PROP_loops.
26630         (copy_loops): New function.
26631         (copy_cfg_body): Copy loop structure.
26632         (tree_function_versioning): Initialize destination loop tree.
26633         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
26634         (pass_parallelize_loops): Do IL verification.
26635         * loop-init.c (loop_optimizer_init): Fixup loops if required.
26636         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
26637         the CFG make sure we fixup loops as well.
26638         * tree-ssa-tail-merge.c: Include cfgloop.h.
26639         (replace_block_by): When merging loop latches mark loops for fixup.
26640         * lto-streamer-out.c (output_struct_function_base): Drop
26641         PROP_loops for now.
26642         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
26643         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
26644         * ipa-split.c: Include cfgloop.h.
26645         (split_function): Add the new return block to the loop tree root.
26646         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
26647         whether we have removed the forwarder block.
26648         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
26649         * cfgloop.h (place_new_loop): Declare.
26650         * cfgloopmanip.c (place_new_loop): Export.
26651         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
26652         (tree-switch-conversion.o): Likewise.
26653         (tree-complex.o): Likewise.
26654         (tree-inline.o): Likewise.
26655         (tree-ssa-tailmerge.o): Likewise.
26656         (ipa-split.o): Likewise.
26657         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
26658         (tree-ssa-copy.o): Likewise.
26659         * tree-switch-conversion.c: Include cfgloop.h
26660         (process_switch): If we emit a bit-test cascade, schedule loops
26661         for fixup.
26662         * tree-complex.c: Include cfgloop.h.
26663         (expand_complex_div_wide): Properly add new basic-blocks to loops.
26664         * asan.c: Include cfgloop.h.
26665         (create_cond_insert_point): Properly add new basic-blocks to
26666         loops, schedule loop fixup.
26667         * cfgloop.c (verify_loop_structure): Check that looks are not
26668         marked for fixup.
26669         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
26670         to loops.
26671         (expand_omp_for_generic): Likewise.
26672         (expand_omp_sections): Likewise.
26673         (expand_omp_atomic_pipeline): Schedule loops for fixup.
26674         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
26675         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
26676         is initialized, not when loops are present.
26677         * tree-parloops.c (parallelize_loops): Remove checking here.
26678         * passes.c (init_optimization_passes): Schedule a copy-propagation
26679         pass before complete unrolling of inner loops.
26681 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
26683         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
26684         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
26685         (colorize_init): Add argument to _WIN32 version.
26686         * toplev.c: Include diagnostic-color.h.
26687         (process_options): Default to -fdiagnostics-color=auto if
26688         GCC_COLORS env var is in the environment.
26689         * common.opt (fdiagnostics-color=): Add Var and Init.
26690         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
26691         env var is in the environment, the default is auto rather than never.
26693         * diagnostic.h (file_name_as_prefix): Add context argument.
26694         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
26695         the string as locus.
26696         * langhooks.c (lhd_print_error_function): Adjust caller.
26698 2013-04-25  Lawrence Crowl  <crowl@google.com>
26700         * var-tracking.c (shared_hash_def::htab):
26701         Change type to hash_table.  Update dependent calls and types.
26703 2013-04-25  Lawrence Crowl  <crowl@google.com>
26705         * Makefile.in: Update as needed below.
26707         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
26708         Move declaration to after the type's method definitons.
26710         * attribs.c (htab_t scoped_attributes::attribute_hash):
26711         Change type to hash_table.  Update dependent calls and types.
26713         * bitmap.c (htab_t bitmap_desc_hash):
26714         Change type to hash_table.  Update dependent calls and types.
26716         * cselib.c (htab_t cselib_hash_table):
26717         Change type to hash_table.  Update dependent calls and types.
26719         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
26720         (hash_string_slot_node): Move implementation into lto-streamer.h
26721         struct string_slot_hasher.
26722         (eq_string_slot_node): Likewise.
26724         * data-streamer-out.c: Update output_block::string_hash_table
26725         dependent calls and types.
26727         * dwarf2cfi.c (htab_t trace_index):
26728         Change type to hash_table.  Update dependent calls and types.
26730         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
26731         Change type to hash_table.  Update dependent calls and types.
26732         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
26733         (htab_t optimize_external_refs::map): Likewise.
26734         (htab_t output_comp_unit::extern_map): Likewise.
26735         (htab_t output_comdat_type_unit::extern_map): Likewise.
26736         (htab_t output_macinfo::macinfo_htab): Likewise.
26737         (htab_t optimize_location_lists::htab): Likewise.
26738         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
26740         * except.c (htab_t ehspec_hash_type):
26741         Change type to hash_table.  Update dependent calls and types.
26742         (assign_filter_values::ttypes): Likewise.
26743         (assign_filter_values::ehspec): Likewise.
26744         (sjlj_assign_call_site_values::ar_hash): Likewise.
26745         (convert_to_eh_region_ranges::ar_hash): Likewise.
26747         * gcse.c (htab_t pre_ldst_table):
26748         Change type to hash_table.  Update dependent calls and types.
26750         * ggc-common.c (htab_t saving_htab):
26751         Change type to hash_table.  Update dependent calls and types.
26752         (htab_t loc_hash): Likewise.
26753         (htab_t ptr_hash): Likewise.
26754         (call_count): Rename ggc_call_count.
26755         (call_alloc): Rename ggc_call_alloc.
26756         (loc_descriptor): Rename make_loc_descriptor.
26757         (add_statistics): Rename ggc_add_statistics.
26759         * ggc-common.c (saving_htab):
26760         Change type to hash_table.  Update dependent calls and types.
26762         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
26763         (push_gimplify_context): Likewise.
26764         (pop_gimplify_context): Likewise.
26765         (struct gimple_temp_hash_elt): Added.
26766         (struct gimplify_hasher): Likewise.
26767         (struct gimplify_ctx.temp_htab):
26768         Change type to hash_table.  Update dependent calls and types.
26770         * gimple-fold.c: Include gimplify-ctx.h.
26772         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
26773         Change type to hash_table.  Update dependent calls and types.
26774         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
26775         avoid potential global name collision.
26777         * gimplify.c: Include gimplify-ctx.h.
26778         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
26779         (htab_t gimplify_ctx::temp_htab):
26780         Update dependent calls and types for new type hash_table.
26781         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
26782         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
26784         * gimplify-ctx.h: New.
26785         (struct gimple_temp_hash_elt): Move from gimplify.c.
26786         (class gimplify_hasher): New.
26787         (struct gimplify_ctx): Move from gimple.h.
26788         (htab_t gimplify_ctx::temp_htab):
26789         Change type to hash_table.  Update dependent calls and types.
26791         * graphite-clast-to-gimple.c: Include graphite-htab.h.
26792         (htab_t ivs_params::newivs_index):
26793         Change type to hash_table.  Update dependent calls and types.
26794         (htab_t ivs_params::params_index): Likewise.
26795         (htab_t print_generated_program::params_index): Likewise.
26796         (htab_t gloog::newivs_index): Likewise.
26797         (htab_t gloog::params_index): Likewise.
26799         * graphite.c: Include graphite-htab.h.
26800         4htab_t graphite_transform_loops::bb_pbb_mapping):
26801         Change type to hash_table.  Update dependent calls and types.
26803         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
26804         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
26805         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
26807         * graphite-dependences.c: Include graphite-htab.h.
26808         (loop_is_parallel_p): Change hash table type of parameter.
26810         * graphite-htab.h: New.
26811         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
26812         (extern find_pbb_via_hash): Move from graphite-poly.h.
26813         (extern loop_is_parallel_p): Move from graphite-poly.h.
26814         (extern get_loop_body_pbbs): Move from graphite-poly.h.
26816         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
26817         (extern loop_is_parallel_p): Move to graphite-htab.h.
26818         (extern get_loop_body_pbbs): Move to graphite-htab.h.
26820         * haifa-sched.c (htab_t delay_htab):
26821         Change type to hash_table.  Update dependent calls and types.
26822         (htab_t delay_htab_i2): Likewise.
26824         * ira-color.c (htab_t allocno_hard_regs_htab):
26825         Change type to hash_table.  Update dependent calls and types.
26827         * ira-costs.c (htab_t cost_classes_htab):
26828         Change type to hash_table.  Update dependent calls and types.
26830         * loop-invariant.c (htab_t merge_identical_invariants::eq):
26831         Change type to hash_table.  Update dependent calls and types.
26833         * loop-iv.c (htab_t bivs):
26834         Change type to hash_table.  Update dependent calls and types.
26836         * loop-unroll.c (htab_t opt_info::insns_to_split):
26837         Change type to hash_table.  Update dependent calls and types.
26838         (htab_t opt_info::insns_with_var_to_expand): Likewise.
26840         * lto-streamer.h (struct string_slot): Move from data-streamer.h
26841         (struct string_slot_hasher): New.
26842         (htab_t output_block::string_hash_table):
26843         Change type to hash_table.  Update dependent calls and types.
26845         * lto-streamer-in.c (freeing_string_slot_hasher): New.
26846         (htab_t file_name_hash_table):
26847         Change type to hash_table.  Update dependent calls and types.
26849         * lto-streamer-out.c: Update output_block::string_hash_table dependent
26850         calls and types.
26852         * lto-streamer.c (htab_t tree_htab):
26853         Change type to hash_table.  Update dependent calls and types.
26855         * omp-low.c: Include gimplify-ctx.h.
26857         * passes.c (htab_t name_to_pass_map):
26858         Change type to hash_table.  Update dependent calls and types.
26859         (pass_traverse): Rename to passes_pass_traverse.
26861         * plugin.c (htab_t event_tab):
26862         Change type to hash_table.  Update dependent calls and types.
26864         * postreload-gcse.c (htab_t expr_table):
26865         Change type to hash_table.  Update dependent calls and types.
26866         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
26868         * sese.c (debug_rename_map_1): Make extern.
26869         (htab_t copy_bb_and_scalar_dependences::rename_map):
26870         Change type to hash_table.  Update dependent calls and types.
26872         * sese.h (extern debug_rename_map): Move to .c file.
26874         * store-motion.c (htab_t store_motion_mems_table):
26875         Change type to hash_table.  Update dependent calls and types.
26877         * trans-mem.c (htab_t tm_new_mem_hash):
26878         Change type to hash_table.  Update dependent calls and types.
26880         * tree-browser.c (htab_t TB_up_ht):
26881         Change type to hash_table.  Update dependent calls and types.
26883         * tree-cfg.c (htab_t discriminator_per_locus):
26884         Change type to hash_table.  Update dependent calls and types.
26886         * tree-complex.c: Include tree-hasher.h
26887         (htab_t complex_variable_components):
26888         Change type to hash_table.  Update dependent calls and types.
26890         * tree-eh.c (htab_t finally_tree):
26891         Change type to hash_table.  Update dependent calls and types.
26893         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
26894         struct int_tree_hasher.
26895         (extern int_tree_map_eq): Likewise.
26896         (uid_decl_map_hash): Removed.
26897         (extern decl_tree_map_eq): Likewise.
26899         * tree-hasher.h: New.
26900         (struct int_tree_hasher): New.
26901         (typedef int_tree_htab_type): New.
26903         * tree-inline.c: Include gimplify-ctx.h.
26905         * tree-mudflap.c: Include gimplify-ctx.h.
26907         * tree-parloops.c: Include tree-hasher.h.
26908         (htab_t eliminate_local_variables_stmt::decl_address):
26909         Change type to hash_table.  Update dependent calls and types.
26910         (htab_t separate_decls_in_region::decl_copies): Likewise.
26912         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
26913         Change type to hash_table.  Update dependent calls and types.
26915         * tree-sra.c (candidates):
26916         Change type to hash_table.  Update dependent calls and types.
26918         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
26919         in tree-flow.h.
26920         (int_tree_map_hash): Likewise.
26922         * tree-ssa-dom.c (htab_t avail_exprs):
26923         Change type to hash_table.  Update dependent calls and types.
26925         * tree-ssa-live.c (var_map_base_init::tree_to_index):
26926         Change type to hash_table.  Update dependent calls and types.
26928         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
26929         Change type to hash_table.  Update dependent calls and types.
26931         * tree-ssa-phiopt.c (seen_ssa_names):
26932         Change type to hash_table.  Update dependent calls and types.
26934         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
26935         Change type to hash_table.  Update dependent calls and types.
26937         * tree-ssa-uncprop.c (equiv):
26938         Change type to hash_table.  Update dependent calls and types.
26940 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
26942         PR rtl-optimization/57003
26943         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
26944         call note_stores with kill_clobbered_value callback again after
26945         killing regs_invalidated_by_call.
26947 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
26949         * config/aarch64/aarch64-simd.md
26950         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
26951         (aarch64_simd_bsl<mode>): Likewise.
26952         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
26954 2013-04-25  Marek Polacek  <polacek@redhat.com>
26956         PR tree-optimization/57066
26957         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
26959 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
26961         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
26963 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
26965         * config/aarch64/aarch64-builtins.c
26966         (aarch64_fold_builtin): New.
26967         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
26968         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
26969         * config/aarch64/aarch64-simd-builtins.def (abs): New.
26970         * config/aarch64/arm_neon.h
26971         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
26973 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
26974             Tejas Belagod  <tejas.belagod@arm.com>
26976         * config/aarch64/aarch64-builtins.c
26977         (aarch64_gimple_fold_builtin): New.
26978         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
26979         * config/aarch64/aarch64-simd-builtins.def (addv): New.
26980         * config/aarch64/aarch64-simd.md (addpv4sf): New.
26981         (addvv4sf): Update.
26982         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
26984 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26986         * config/aarch64/aarch64.md
26987         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
26989 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26991         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
26992         (*ngcsi_uxtw): New pattern.
26994 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26995             Julian Brown  <julian@codesourcery.com>
26997         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
26998         (TB_DREG): Add T_V4HF.
26999         (v4hf_UP): New macro.
27000         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27001         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27002         Handle initialisation of V4HF. Adjust initialisation of reinterpret
27003         built-ins.
27004         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27005         (arm_vector_mode_supported_p): Handle V4HF.
27006         (arm_mangle_map): Handle V4HFmode.
27007         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
27008         * config/arm/arm_neon_builtins.def: Add entries for
27009         vcvtv4hfv4sf, vcvtv4sfv4hf.
27010         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
27011         (neon_vcvtv4hfv4sf): Likewise.
27012         * config/arm/neon-gen.ml: Handle half-precision floating point
27013         features.
27014         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
27015         * config/arm/arm_neon.h: Regenerate.
27016         * config/arm/neon.ml (type elts): Add F16.
27017         (type vectype): Add T_float16x4, T_floatHF.
27018         (type vecmode): Add V4HF.
27019         (type features): Add Requires_FP_bit feature.
27020         (elt_width): Handle F16.
27021         (elt_class): Likewise.
27022         (elt_of_class_width): Likewise.
27023         (mode_of_elt): Refactor.
27024         (type_for_elt): Handle F16, fix error messages.
27025         (vectype_size): Handle T_float16x4.
27026         (vcvt_sh): New function.
27027         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
27028         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
27029         (string_of_mode): Handle V4HF.
27030         * doc/arm-neon-intrinsics.texi: Regenerate.
27032 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
27034         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
27035         format specifier in 'X' case.
27037 2013-04-25  Alan Modra  <amodra@gmail.com>
27039         PR target/57052
27040         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
27041         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
27042         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
27043         Repeat for many other rotate/shift and mask patterns using subregs.
27044         Name lshiftrt insns.
27045         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
27046         on WORDS_BIG_ENDIAN.
27048 2013-04-25  Alan Modra  <amodra@gmail.com>
27050         * config.gcc: Support little-endian powerpc-linux targets.
27051         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
27052         (LINK_OS_LINUX_SPEC): Define.
27053         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
27054         Preserve MASK_LITTLE_ENDIAN.
27055         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
27056         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
27057         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
27058         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
27059         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
27060         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
27061         Correct fp word order for little-endian.  Don't shift toc entries
27062         smaller than a word for little-endian.
27063         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
27064         (bswapdi2 splits): Correct low-part subreg for little-endian.
27065         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
27066         low/high where such is correct only for be.
27067         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
27068         little-endian for -mcall-aixdesc.
27070 2013-04-25  Alan Modra  <amodra@gmail.com>
27072         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27073         replace_equiv_address_nv.
27075 2013-04-25  Alan Modra  <amodra@gmail.com>
27077         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
27079 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27081         Revert:
27082         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27083         * rtl.h (struct rtx_def): ...
27085 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27087         PR rtl-optimizations/57046
27088         * lra-constraints (split_reg): Set up lra_risky_transformations_p
27089         for multi-reg splits.
27091 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
27093         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
27095 2013-04-24  Sterling Augustine  <saugustine@google.com>
27097         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
27098         (comp_dir_string, debug_str_dwo_section): New.
27099         (DEBUG_STR_DWO_SECTION): Rename to ...
27100         (DEBUG_DWO_STR_SECTION): ... this.
27101         (DEBUG_NORM_STR_SECTION): Delete.
27102         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
27103         (DEBUG_STR_DWO_SECTION_FLAGS): New.
27104         (find_AT_string): Move most logic to ...
27105         (find_AT_string_in_table): ... here.  New.
27106         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
27107         add_skeleton_AT_string.  Delete logic.
27108         (output_skeleton_debug_sections): Remove call to
27109         add_top_level_skeleton_die_attrs.
27110         (add_comp_dir_attribute): Move logic to comp_dir_string.
27111         (dwarf2out_init): Initialize debug_str_dwo_section.
27112         (output_indirect_string): Call find_string_form.
27113         (output_indirect_strings): Rewrite.
27114         (prune_unused_types): Empty skeleton_debug_str_hash.
27115         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
27116         (dwarf2out_finish):  Call output_indirect_strings.
27118 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
27120         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
27122 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
27124         * rtl.h (struct rtx_def): Add comment for field jump.
27125         (LRA_SUBREG_P): New macro.
27126         * recog.c (register_operand): Check LRA_SUBREG_P.
27127         * lra.c (lra): Add note at the end of RTL code. Align non-empty
27128         stack frame.
27129         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
27130         (lra_final_code_change): Skip subreg change for operators.
27131         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
27132         if there are no operand changes.
27133         * lra-constraints.c (curr_insn_set): New.
27134         (match_reload): Set LRA_SUBREG_P.
27135         (emit_spill_move): Ditto.
27136         (check_and_process_move): Use curr_insn_set. Process only single
27137         set insns.  Don't initialize sec_mem_p and change_p.
27138         (simplify_operand_subreg): Use LRA_SUBREG_P.
27139         (reg_in_class_p): New function.
27140         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
27141         of #ifdef.  Add code to remove cycling.
27142         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
27143         non-null disp.  Reload inner instead of disp when base and index
27144         are null.  Try to put lo_sum into register.
27145         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
27146         (check_and_process_move): Move code for move cost check to
27147         simple_move_p.  Remove equiv_substitution.
27148         (simple_move_p): New function.
27149         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
27150         curr_insn_set.  Call check_and_process_move only for single set
27151         insns.  Use the new function.  Move call of check_and_process_move
27152         after operand equiv substitution and address process.
27154 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
27156         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
27157         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
27158         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
27160 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
27162         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
27164 2013-04-24  Marek Polacek  <polacek@redhat.com>
27166         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
27167         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
27168         (select_loops_exit_conditions): Likewise.
27169         (number_of_iterations_for_all_loops): Likewise.
27170         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
27171         (scev_analysis): Likewise.
27173 2013-04-02  Catherine Moore  <clm@codesourcery.com>
27174             Chao-ying Fu  <fu@mips.com>
27176         * config/mips/micromips.md (jraddiusp): New pattern.
27177         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
27178         instruction if possible.
27180 2013-04-24  Alan Modra  <amodra@gmail.com>
27182         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
27184 2013-04-24  Julian Brown  <julian@codesourcery.com>
27185             Chung-Lin Tang  <cltang@codesourcery.com>
27187         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
27188         dependency behavior in enumeration type DIE generation. Add TODO note
27189         to comments about future DW_FORM_sdata/udata re-work of related code.
27191 2013-04-23  Lawrence Crowl  <crowl@google.com>
27193         * Makefile.in: Update as needed below.
27195         * hash-table.h (class hash_table):
27196         Correct many methods with parameter types compare_type to the correct
27197         value_type.  (Correct code was unlikely to notice the change.)
27198         (hash_table::elements_with_deleted) New.
27199         (class hashtable::iterator): New.
27200         (hashtable::begin()): New.
27201         (hashtable::end()): New.
27202         (FOR_EACH_HASH_TABLE_ELEMENT): New.
27204         * statistics.c (statistics_hashes):
27205         Change type to hash_table.  Update dependent calls and types.
27207         * tree-into-ssa.c (var_infos):
27208         Change type to hash_table.  Update dependent calls and types.
27210         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
27211         Change type to hash_table.  Update dependent calls and types.
27213         * tree-ssa-loop-im.c (struct mem_ref.refs):
27214         Change type to hash_table.  Update dependent calls and types.
27216         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
27217         Change type to hash_table.  Update dependent calls and types.
27219         * tree-ssa-sccvn.c (vn_tables_s::nary):
27220         Change type to hash_table.  Update dependent calls and types.
27221         (vn_tables_s::phis): Likewise.
27222         (vn_tables_s::references): Likewise.
27224         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
27225         (vn_reference_eq): Update parameter and return types.
27227         * tree-ssa-structalias.c (pointer_equiv_class_table):
27228         Change type to hash_table.  Update dependent calls and types.
27229         (location_equiv_class_table): Likewise.
27231         * tree-vect-data-refs.c: Consequential changes for making
27232         peeling a hash_table.
27234         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
27235         (destroy_loop_vec_info): Dependent hash_table update.
27237         * tree-vectorizer.h (peeling_htab):
27238         Change type to hash_table.  Update dependent calls and types.
27240 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
27242         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
27243         to check the register content is equal or not.
27244         * lra-constraints.c (match_reload): Use lra_assign_reg_val
27245         to assign register content record.
27246         * lra-eliminations.c (update_reg_eliminate): Use
27247         lra_update_reg_val_offset to update register content offset.
27248         * lra-int.h (struct lra_reg): Add offset member.
27249         (lra_reg_val_equal_p): New static inline function.
27250         (lra_update_reg_val_offset): New static inline function.
27251         (lra_assign_reg_val): New static inline function.
27252         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
27253         to assign register content record.
27254         (initialize_lra_reg_info_element): Initial offset to zero.
27256 2013-04-23  Catherine Moore  <clm@codesourcery.com>
27258         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
27259         operands.  Record compression.
27261 2013-04-23  Xinliang David Li  <davidxl@google.com>
27263         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
27265 2013-04-23  Richard Biener  <rguenther@suse.de>
27267         PR middle-end/57036
27268         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
27269         parameter, only add abnormal goto edges from the copied body
27270         if the call could perform abnormal gotos.
27271         (copy_cfg_body): Adjust.
27273 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
27275         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
27277 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
27279         * coretypes.h (gimple_stmt_iterator): Add struct to make
27280         compatible with C.
27282 2013-04-23  Richard Biener  <rguenther@suse.de>
27284         PR tree-optimization/57026
27285         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
27286         from SSA names occuring in abnormal PHI nodes.
27288 2013-04-22  Andi Kleen  <ak@linux.intel.com>
27290         * lto/lto.c (print_lto_report_1): Fix LTO report names.
27292 2013-04-22  Andi Kleen  <ak@linux.intel.com>
27294         * lto/lto.c (print_lto_report_1): Declare early.
27295         (read_cgraph_and_symbols): Call print_lto_report_1 early.
27297 2013-04-22  Andi Kleen  <ak@linux.intel.com>
27299         * common.opt (-flto-report-wpa): Add.
27300         * doc/invoke.texi (-flto-report-wpa): Add.
27301         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
27302         (lto_main): dito.
27304 2013-04-22  Xinliang David Li  <davidxl@google.com>
27306         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
27307         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
27308         * Makefile.in: New dependency
27310             David Daney <ddaney.cavm@gmail.com>
27312         * configure.ac (gcc_cv_as_micromips_support):  Use the
27313         --fatal-warnings option.
27314         * configure: Regenerate.
27316 2013-04-22  Marek Polacek  <polacek@redhat.com>
27318         PR sanitizer/56990
27319         * tsan.c (instrument_expr): Don't instrument expression
27320         in case its size is zero.
27322 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
27324         PR target/57032
27325         Revert:
27326         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
27328         * config/alpha/alpha.c (TARGET_LRA_P): New define.
27330 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
27332         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
27333         (gimple_stmt_iterator): New typedef.
27334         * gimple.h (gimple_stmt_iterator): Rename to...
27335         (gimple_stmt_iterator_d): ... This.
27336         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
27337         trees be valid for GIMPLE and GENERIC.
27338         (TARGET_GIMPLE_FOLD_BUILTIN): New.
27339         * gimple-fold.c (gimple_fold_call): Call target hook
27340         gimple_fold_builtin.
27341         * hooks.c (hook_bool_gsiptr_false): New.
27342         * hooks.h (hook_bool_gsiptr_false): New.
27343         * target.def (fold_stmt): New.
27344         * doc/tm.texi: Regenerate.
27346 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
27348         PR target/57018
27349         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
27350         a set sp if no stack realignment.
27352 2013-04-22  Nick Clifton  <nickc@redhat.com>
27354         * config.gcc (tilegx-linux): Extend extra_objs rather than
27355         overwriting it.
27356         (tilepro-linux): Likewise.
27358 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
27360         * config/aarch64/aarch64-builtins.c
27361         (CF): Remove.
27362         (CF0, CF1, CF2, CF3, CF4, CF10): New.
27363         (VAR<1-12>): Add MAP parameter.
27364         (BUILTIN_*): Likewise.
27365         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
27366         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
27367         (aarch64_ushl_n<mode>): Likewise.
27368         (aarch64_sshr_n<mode>): Likewise.
27369         (aarch64_ushr_n<mode>): Likewise.
27370         (aarch64_<maxmin><mode>): Likewise.
27371         (aarch64_sqrt<mode>): Likewise.
27372         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
27373         (vshr<q>_n_*): Likewise.
27375 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
27377         * config/aarch64/aarch64-builtins.c
27378         (aarch64_simd_builtin_type_mode): Handle SF types.
27379         (sf_UP): Define.
27380         (BUILTIN_GPF): Define.
27381         (aarch64_init_simd_builtins): Handle SF types.
27382         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
27383         (frecps): Likewise.
27384         (frecpx): Likewise.
27385         * config/aarch64/aarch64-simd.md
27386         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
27387         (aarch64_frecpe<mode>): New.
27388         (aarch64_frecps<mode>): Likewise.
27389         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
27390         (v8type): Add frecp<esx>.
27391         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
27392         (aarch64_frecps<mode>): Likewise.
27393         * config/aarch64/iterators.md (FRECP): New.
27394         (frecp_suffix): Likewise.
27395         * config/aarch64/arm_neon.h
27396         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
27398 2013-04-22  Christian Bruel  <christian.bruel@st.com>
27400         PR target/56995
27401         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
27402         (REG_CLASS_NAMES): Idem.
27403         (REG_CLASS_CONTENTS): Idem.
27404         (REGCLASS_HAS_FP_REG): Idem.
27405         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
27406         (sh_conditional_register_usage): Idem.
27408 2013-04-21  Jeff Law  <law@redhat.com>
27410         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
27411         (ssa_forward_propagate_and_combine): Use it.
27413 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
27415         * lra.c: Update the flow chart diagram.
27417 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
27419         PR rtl-optimization/56847
27420         * lra-constraints.c (process_alt_operands): Discourage alternative
27421         with non-matche doffsettable memory constraint fro memory with
27422         known offset.
27424 2013-04-19  Richard Biener  <rguenther@suse.de>
27426         PR tree-optimization/56982
27427         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
27428         function.
27429         * gimplify.c (gimplify_call_expr): Notice special calls.
27430         (gimplify_modify_expr): Likewise.
27431         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
27432         abnormal control flow receivers.
27433         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
27434         in the same way as cfun->has_nonlocal_labels.
27435         (gimple_purge_dead_abnormal_call_edges): Likewise.
27436         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
27437         receivers start a basic-block.
27439 2013-04-19  Richard Biener  <rguenther@suse.de>
27441         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
27442         member ...
27443         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
27444         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
27445         (SLP_TREE_LOAD_PERMUTATION): Add.
27446         (vect_transform_slp_perm_load): Adjust prototype.
27447         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
27448         (vect_free_slp_instance): Likewise.
27449         (vect_create_new_slp_node): Likewise.
27450         (vect_supported_slp_permutation_p): Remove.
27451         (vect_slp_rearrange_stmts): Adjust.
27452         (vect_supported_load_permutation_p): Likewise.  Inline
27453         vect_supported_slp_permutation_p here.
27454         (vect_analyze_slp_instance): Compute load permutations per
27455         slp node instead of per instance.
27456         (vect_get_slp_defs): Adjust.
27457         (vect_transform_slp_perm_load): Likewise.
27458         (vect_schedule_slp_instance): Remove redundant code.
27459         (vect_schedule_slp): Remove hack for PR56270, add it ...
27460         * tree-vect-stmts.c (vectorizable_load): ... here, do not
27461         CSE loads for SLP.  Adjust.
27463 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
27465         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
27466         spelling in two comments.
27468 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
27470         PR target/56797
27471         * config/arm/arm.c (load_multiple_sequence): Require SP
27472         as base register for loads if SP is in the register list.
27474 2013-04-19  Martin Jambor  <mjambor@suse.cz>
27476         PR tree-optimization/56718
27477         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
27478         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
27479         and made public.  Adjusted all callers.
27480         (ipa_intraprocedural_devirtualization): New function.
27481         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
27482         (ipa_intraprocedural_devirtualization): Likewise.
27483         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
27485 2013-04-19  Richard Biener  <rguenther@suse.de>
27487         PR tree-optimization/57000
27488         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
27490 2013-04-19  Terry Guo  <terry.guo@arm.com>
27492         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
27493         Replace with ...
27494         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
27495         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
27496         (cortex_m4_fmacs): Use new reservations.
27497         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
27499 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
27501         PR rtl-optimization/56999
27502         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
27503         related code.
27504         (lra_coalesce): Remove split_origin_bitmap and related code.
27505         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
27506         ranges if necessary.
27508 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
27510         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
27511         New array.
27512         (ix86_expand_call): Remove clobbered_registers array and use
27513         x86_64_ms_sysv_extra_clobbered_registers instead.
27514         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
27515         Declare here.
27516         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
27517         predicate.
27518         * config/i386/i386.md (*call_rex64_ms_sysv): Use
27519         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
27520         (*call_value_rex64_ms_sysv): Ditto.
27522 2013-04-18  Cary Coutant  <ccoutant@google.com>
27524         * dwarf2out.c (output_pubnames): Check die_perennial_p of
27525         parent instead of die_mark.
27527 2013-04-18  Diego Novillo  <dnovillo@google.com>
27529         * gimple.c (create_gimple_tmp): New.
27530         (get_expr_type): New.
27531         (build_assign): New.
27532         (build_type_cast): New.
27533         * gimple.h (enum ssa_mode): Define.
27534         (gimple_seq_set_location): New.
27535         * asan.c (build_check_stmt): Change some gimple_build_* calls
27536         to use build_assign and build_type_cast.
27538 2013-04-18  Richard Biener  <rguenther@suse.de>
27540         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27541         handle negative step.  Remove redundant checks.
27542         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
27543         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
27544         for negative step and grouped loads fail to vectorize.
27546 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
27548         * emit-rtl.c (reset_insn_used_flags): New function.
27549         (reset_all_used_flags): Use it.
27550         (verify_insn_sharing): New function.
27551         (verify_rtl_sharing): Fix verification for SEQUENCEs.
27553 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
27555         PR tree-optimization/56984
27556         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
27557         and (x >> M) >= N don't register any assertion if N << M is the
27558         minimum value.
27560 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
27562         * lower-subreg.c (resolve_simple_move): If called self-recursive,
27563         do not delete_insn insns that have not yet been emitted, only
27564         unlink them with remove_insn.
27565         * df-scan.c (df_insn_delete): Revert r197492.
27567 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
27569         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
27570         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
27572 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
27574         * config/arm/arm.md (movsicc_insn): Convert define_insn into
27575         define_insn_and_split.
27576         (and_scc,ior_scc,negscc): Likewise.
27577         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
27579 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
27581         * config/arm/arm.c (use_return_insn): Return 0 for targets that
27582         can benefit from using a sequence of LDRD instructions in epilogue
27583         instead of a single LDM instruction.
27585 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27587         PR 45688
27588         * doc/extend.texi: Fix typo.
27590 2013-04-17  Richard Biener  <rguenther@suse.de>
27592         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
27593         (vect_build_slp_tree): ... here.
27594         (vect_build_slp_tree_1): Compute which stmts of the SLP group
27595         match.  Remove special-casing of mismatched complex loads.
27596         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
27597         re-try the match with swapped commutative operands.
27598         (vect_supported_load_permutation_p): Remove special-casing of
27599         mismatched complex loads.
27600         (vect_analyze_slp_instance): Adjust.
27602 2013-04-17  Richard Biener  <rguenther@suse.de>
27604         PR rtl-optimization/56921
27605         * cfgloop.h (struct loop): Add simple_loop_desc member.
27606         (struct niter_desc): Mark with GTY(()).
27607         (simple_loop_desc): Do not use aux field but simple_loop_desc.
27608         * loop-iv.c (get_simple_loop_desc): Likewise.
27609         (free_simple_loop_desc): Likewise.
27611         Revert
27612         2013-04-16  Richard Biener  <rguenther@suse.de>
27614         PR rtl-optimization/56921
27615         * loop-init.c (pass_rtl_move_loop_invariants): Add
27616         TODO_do_not_ggc_collect to todo_flags_finish.
27617         (pass_rtl_unswitch): Same.
27618         (pass_rtl_unroll_and_peel_loops): Same.
27619         (pass_rtl_doloop): Same.
27621 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
27623         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
27624         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
27625         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
27626         references.
27627         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
27628         * tree-streamer.c (record_common_node): Adjust reference in comment.
27630 2013-04-17  Terry Guo  <terry.guo@arm.com>
27632         * config/arm/cortex-m4.md: Add a new bypass.
27634 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27636         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
27637         New pattern.
27638         (*subs_<optab><mode>_multp2): New pattern.
27639         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
27640         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
27642 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27644         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
27645         (*subs_mul_imm_<mode>): New pattern.
27647 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
27649         PR target/56948
27650         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
27651         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
27652         (vsx_movti_32bit): Change j->wa to O->wa.
27654 2013-04-16  Richard Biener  <rguenther@suse.de>
27656         PR rtl-optimization/56921
27657         * loop-init.c (pass_rtl_move_loop_invariants): Add
27658         TODO_do_not_ggc_collect to todo_flags_finish.
27659         (pass_rtl_unswitch): Same.
27660         (pass_rtl_unroll_and_peel_loops): Same.
27661         (pass_rtl_doloop): Same.
27663 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
27665         * config/arm/arm.c (emit_multi_reg_push): New declaration
27666         for an existing function.
27667         (arm_emit_strd_push): New function.
27668         (arm_expand_prologue): Used here.
27669         (arm_emit_ldrd_pop): New function.
27670         (arm_expand_epilogue): Used here.
27671         (arm_get_frame_offsets): Update condition.
27672         (arm_emit_multi_reg_pop): Add a special case for load of a single
27673         register with writeback.
27675 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
27677         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
27678         description.
27680 2013-04-16  Richard Biener  <rguenther@suse.de>
27682         PR tree-optimization/56756
27683         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
27684         (first_mem_ref_loc): New.
27685         (execute_sm): Place the load temporarily before a previous
27686         access instead of in the latch edge to ensure its SSA dependencies
27687         are defined at points dominating the load.
27689 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
27691         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
27692         correct fix by moving header and footer insn to the footer of
27693         the merged basic block.  Clear BB_END of the merged-away block.
27695         PR middle-end/43631
27696         * emit-rtl.c (make_note_raw): New function.
27697         (link_insn_into_chain): New static inline function.
27698         (add_insn): Use it.
27699         (add_insn_before, add_insn_after): Factor insn chain linking code...
27700         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
27701         using link_insn_into_chain.
27702         (note_outside_basic_block_p): New helper function for emit_note_after
27703         and emit_note_before.
27704         (emit_note_after): Use nobb variant of add_insn_after if the note
27705         should not be contained in a basic block.
27706         (emit_note_before): Use nobb variant of add_insn_before if the note
27707         should not be contained in a basic block.
27708         (emit_note_copy): Use make_note_raw.
27709         (emit_note): Likewise.
27710         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
27711         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
27712         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
27713         the moved barrier the tail of the basic block it follows.
27714         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
27716 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
27718         PR tree-optimization/56962
27719         * gimple-ssa-strength-reduction.c (record_increment): Only set
27720         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
27721         either rhs1 or rhs2 is equal to c->base_expr.
27723 2013-04-15  Richard Biener  <rguenther@suse.de>
27725         PR tree-optimization/56933
27726         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
27727         member.
27728         (GROUP_READ_WRITE_DEPENDENCE): Remove.
27729         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
27730         * tree-vect-data-refs.c (vect_analyze_group_access): Move
27731         dependence check ...
27732         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
27733         ... here.
27734         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
27735         GROUP_READ_WRITE_DEPENDENCE.
27737 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27739         * emit-rtl.c (reset_all_used_flags): New function.
27740         (verify_rtl_sharing): Call reset_all_used_flags before and after
27741         performing the checks.
27743 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27745         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
27746         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
27747         * config/arm/constraints.md (De): New constraint.
27748         * config/arm/neon.md (anddi3_neon): Delete.
27749         (neon_vand<mode>): Expand to standard anddi3 pattern.
27750         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
27751         Move earlier in the file.
27752         (neon_inv_logic_op2): Likewise.
27753         (arm_anddi_operand_neon): New predicate.
27755 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27757         * configure.ac (gcc_cv_ld_as_needed): Set
27758         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
27759         Use -z ignore, -z record on *-*-solaris2*.
27760         (HAVE_LD_AS_NEEDED): Update comment.
27761         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
27762         * configure: Regenerate.
27763         * config.in: Regenerate.
27764         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
27765         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
27766         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
27767         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
27768         equivalents.  Fix markup.
27769         * doc/tm.texi: Regenerate.
27771 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
27773         * config/i386/i386.opt: New option mstack-protector-guard=.
27774         * config/i386/i386-opts.h: Add enum stack_protector_guard.
27775         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
27776         TARGET_SSP_TLS_GUARD.
27777         * config/i386/i386.c (ix86_option_override_internal): Set
27778         ix86_stack_protector_guard.
27779         * config/i386/i386.md (stack_protect_set): Enable for
27780         TARGET_SSP_TLS_GUARD only.
27781         (stack_protect_set_<mode>): Ditto.
27782         (stack_protect_test): Ditto.
27783         (stack_protect_test_<mode>): Ditto.
27784         * doc/invoke.texi (i386 Option): Document.
27786 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
27788         PR target/56890
27789         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
27790         (S_MODES): Set H_MODE bit.
27791         (SF_MODES): Set only S_MODE and SF_MODE bits.
27792         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
27793         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
27794         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
27795         <MODE_FLOAT>: Likewise.
27797 2013-04-15  Joey Ye  <joey.ye@arm.com>
27799         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
27801 2013-04-15  Joey Ye  <joey.ye@arm.com>
27803         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
27804         for real far jump.
27805         (thumb_far_jump_used_p): Count instruction size and set
27806         far_jump_used.
27808 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
27810         * reorg.c (fill_simple_delay_slots): Reindent block of code.
27811         * resource.c (mark_target_live_regs): Reformat conditional block.
27813 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
27815         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
27816         notes, they are emitted only just before final.
27817         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
27819 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
27821         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
27822         * cfgrtl.c (delete_insn): Call it here instead.
27823         * lra-spills.c (lra_final_code_change): Use delete_insn.
27824         * haifa-sched.c (sched_remove_insn): Likewise.
27825         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
27826         returning to the nop pool.
27827         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
27828         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
27830 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
27832         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
27833         * doc/tm.texi: Regenerated.
27835 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
27837         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
27838         QImode checks.
27840 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
27842         * df-core.c (df_find_def): Compare register numbers.
27843         (df_find_use): Likewise.
27845 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
27847         PR target/56903
27848         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
27849         lra_in_progress for return.
27851 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
27853         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
27854         define_insn into define_insn_and_split and emit movsicc patterns.
27856 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
27858         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
27860 2013-04-12  Richard Biener  <rguenther@suse.de>
27862         * tree-pass.h (TODO_do_not_ggc_collect): New.
27863         * passes.c (execute_one_ipa_transform_pass): Honor
27864         TODO_do_not_ggc_collect.
27865         (execute_one_pass): Likewise.
27867         Revert
27868         2013-04-10  Richard Biener  <rguenther@suse.de>
27870         * passes.c (init_optimization_passes): Remove reload pass.
27871         * ira.c (do_reload): Merge into ...
27872         (ira): ... this.
27873         (rest_of_handle_reload): Remove.
27874         (pass_reload): Likewise.
27875         * config/i386/i386.c (ix86_option_override): Refer to ira instead
27876         of reload for vzeroupper pass placement.
27878 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
27880         PR tree-optimization/56918
27881         PR tree-optimization/56920
27882         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
27883         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
27884         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
27885         use wide_mul_with_sign method.
27887 2013-04-12  Richard Biener  <rguenther@suse.de>
27889         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
27890         not be considered a gimple constant.
27892 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
27894         * fold-const.c (const_binop): Handle vector shifts by a scalar.
27895         (fold_binary_loc): Call const_binop also for mixed vector-scalar
27896         operations.
27898 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27899             Jakub Jelinek  <jakub@redhat.com>
27901         * opts.c: Include diagnostic-color.h.
27902         (common_handle_option): Handle OPT_fdiagnostics_color_.
27903         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
27904         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
27905         (diagnostic-color.o): New.
27906         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
27907         (diagnostic_color_rule): New enum.
27908         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
27909         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
27910         the location string.
27911         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
27912         either NULL, or color kind.
27913         * diagnostic-color.c: New file.
27914         * diagnostic-color.h: New file.
27915         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
27916         arguments.
27917         * doc/invoke.texi (-fdiagnostics-color): Document.
27918         * pretty-print.h (pp_show_color): Define.
27919         (struct pretty_print_info): Add show_color field.
27920         * diagnostic.c: Include diagnostic-color.h.
27921         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
27922         macros.  Colorize error:, warning: etc. strings and also the location
27923         string.
27924         (diagnostic_show_locus): Colorize the caret line.
27925         * pretty-print.c: Include diagnostic-color.h.
27926         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
27927         inside of %< %> quotes or quoted through q format modifier.
27929 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27931         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
27933 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27935         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
27936         code in CC_NZ mode.
27937         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
27938         pattern.
27940 2013-04-11  Marek Polacek  <polacek@redhat.com>
27942         PR tree-optimization/48184
27943         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
27945 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
27947         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
27948         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
27949         (skip_simple_arithmetic): Tidy up.
27950         * tree.h (skip_simple_constant_arithmetic): Declare.
27952 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27954         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
27956 2013-04-11  Richard Biener  <rguenther@suse.de>
27958         * tree-vect-loop.c (get_initial_def_for_induction): Properly
27959         generate vector constants.
27961 2013-04-11  Richard Biener  <rguenther@suse.de>
27963         PR tree-optimization/56878
27964         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
27965         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
27966         New function.
27967         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27968         Prefer to align the DR with the most invariant base address.
27970 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
27972         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
27973         comment.
27975 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
27977         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
27978         floating-point vector comparisons against 0.
27980 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
27982         PR tree-optimization/56899
27983         * fold-const.c (extract_muldiv_1): Apply distributive law
27984         only if TYPE_OVERFLOW_WRAPS (ctype).
27986 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
27988         PR target/56124
27989         * ira-costs.c (scan_one_insn): Check whether the source rtx of
27990         loading has side effect.
27992 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
27994         * config/sparc/sparc.c: Include tree-pass.h.
27995         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
27996         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
27997         head of file.  Change return type.  Split off gate function.
27998         (sparc_gate_work_around_errata): New function.
27999         (pass_work_around_errata): New pass definition.
28000         (insert_pass_work_around_errata) New pass insert definition to
28001         insert pass_work_around_errata just after delayed-branch scheduling.
28002         (sparc_option_override): Insert the pass.
28003         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
28005 2013-04-10  David S. Miller  <davem@davemloft.net>
28007         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
28008         or -mcpu=hypersparc.
28010         * target.def (cstore_mode): New hook.
28011         * target.h: Include insn-codes.h
28012         * targhooks.c: Likewise.
28013         (default_cstore_mode): New function.
28014         * targhooks.h: Declare it.
28015         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
28016         * doc/tm.texi: Rebuild.
28017         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
28018         target hook, rather than inspecting the insn_data.
28019         * config/sparc/sparc.c (sparc_cstore_mode): New function.
28020         (TARGET_CSTORE_MODE): Redefine.
28021         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
28022         result patterns.
28023         * config/sparc/predicates.md (cstore_result_operand): New special
28024         predicate.
28025         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
28026         Use it for operand 0.
28027         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
28028         (*snesi_special): Likewise.
28029         (*snesi_zero): Likewise.
28030         (*seqsi_zero): Likewise.
28031         (*sltu_insn): Likewise.
28032         (*sgeu_insn): Likewise.
28033         (*seqdi_special): Make operand 0 and comparison operation be of
28034         DImode.
28035         (*snedi_special): Likewise.
28036         (*snedi_special_vis3): Likewise.
28037         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
28038         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
28039         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
28040         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
28041         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
28042         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
28043         (*sltu_extend_sp64): Likewise.
28044         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
28045         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
28046         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
28047         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
28048         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
28050 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
28052         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
28053         (aarch64_start_file): Use the new function.
28055 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28056             Jason Merrill  <jason@redhat.com>
28058         * common.opt: Add -gdwarf.
28059         * opts.c (common_handle_option): Handle it.
28060         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
28062 2013-04-10  Richard Biener  <rguenther@suse.de>
28064         * passes.c (execute_todo): Do not call ggc_collect conditional here.
28065         (execute_one_ipa_transform_pass): But unconditionally here.
28066         (execute_one_pass): And here.
28067         (init_optimization_passes): Remove reload pass.
28068         * tree-pass.h (TODO_ggc_collect): Remove.
28069         (pass_reload): Likewise.
28070         * ira.c (do_reload): Merge into ...
28071         (ira): ... this.
28072         (rest_of_handle_reload): Remove.
28073         (pass_reload): Likewise.
28074         * config/i386/i386.c (ix86_option_override): Refer to ira instead
28075         of reload for vzeroupper pass placement.
28076         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
28077         and todo_flags_finish of all passes.
28079 2013-04-10  Richard Biener  <rguenther@suse.de>
28081         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
28082         first_const_oprnd field, rename first_def_type to first_op_type.
28083         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
28084         (vect_get_and_check_slp_defs): Always use the type of the
28085         operand.  Allow mixed vect_external_def, vect_constant_def types.
28086         (vect_get_constant_vectors): Handle mixed vect_external_def,
28087         vect_constant_def types.
28089 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
28091         PR tree-optimization/55524
28092         * tree-ssa-math-opts.c
28093         (convert_mult_to_fma): Don't use an fms construct
28094         when we don't have an fms operation, but fnma, and it looks
28095         likely that we'll be able to use the latter.
28097 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
28099         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
28100         function.
28101         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
28102         inline fail caused by overwritable functions.
28104 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
28106         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
28107         unnecessary bits in the constant power of two case.
28109 2013-04-10  Richard Biener  <rguenther@suse.de>
28111         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
28112         broken code swapping operands.
28113         (vect_build_slp_tree): Do not compute load permutations here.
28114         (vect_analyze_slp_instance): Compute load permutations here,
28115         after building the SLP tree.
28117 2013-04-09  Christian Bruel  <christian.bruel@st.com>
28119         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
28120         of next/prev_real_insn.
28122 2013-04-09  Jan Hubicka  <jh@suse.cz>
28124         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
28125         Drop aliased parameter.
28126         (function_and_variable_visibility): Do not handle alias pairs.
28127         * cgraph.c (varpool_externally_visible_p): Update prototype.
28128         * varpool.c (varpool_add_new_variable): Update.
28130 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28132         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
28134 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
28136         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
28138         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
28140 2013-04-09  Marek Polacek  <polacek@redhat.com>
28142         PR tree-optimization/48762
28143         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
28145 2013-04-09  Richard Biener  <rguenther@suse.de>
28147         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
28148         dealing with cost.
28149         (vect_build_slp_tree): Likewise.
28150         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
28151         calculating the cost of a SLP instance.
28152         (vect_analyze_slp_instance): Use it from here, after building
28153         the SLP tree.
28155 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
28157         PR middle-end/56883
28158         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
28159         expand_omp_for_static_chunk): Use simple_p = true in
28160         force_gimple_operand_gsi calls when assigning to addressable decls.
28162 2013-04-09  Jeff Law  <law@redhat.com>
28164         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
28165         when the boolean was created by converting a wider object which
28166         had a boolean range.
28168 2013-04-09  Richard Biener  <rguenther@suse.de>
28170         * tree-vectorizer.h (slp_void_p): Remove.
28171         (slp_tree): Typedef before _slp_tree declaration.
28172         (struct _slp_tree): Use a vector of slp_tree as children.
28173         (vect_get_place_in_interleaving_chain): Remove.
28174         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
28175         Move ...
28176         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
28177         and make static.
28178         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
28179         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
28180         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
28181         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
28182         Use slp_node instead of slp_void_p and adjust.
28184 2013-04-09  Richard Biener  <rguenther@suse.de>
28186         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
28187         work that is not necessary.
28189 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
28191         PR tree-optimization/56854
28192         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
28193         forward into clobber stmts if it would change MEM_REF lhs into
28194         non-MEM_REF.
28196 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
28198         * tree.c (type_hash_lookup, type_hash_add): Make static.
28199         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
28201 2013-04-09  Richard Biener  <rguenther@suse.de>
28203         * tree.h (unsave_expr_now): Remove.
28204         * tree-inline.c (mark_local_for_remap_r): Remove.
28205         (unsave_expr_1): Likewise.
28206         (unsave_r): Likewise.
28207         (unsave_expr_now): Likewise.
28208         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
28209         (propagate_tree_value): Likewise.
28211 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
28213         * doc/rtl.texi (sequence): Rewrite documentation to match the
28214         current use of SEQUENCE rtl objects.
28215         * rtl.def (SEQUENCE): Likewise.
28217         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
28218         Update documentation.
28219         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
28220         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
28222         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
28224 2013-04-08  Teresa Johnson  <tejohnson@google.com>
28226         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
28227         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
28228         methods.
28229         (estimate_edge_size_and_time): Add comment to suggest using rounding
28230         methods.
28231         (estimate_node_size_and_time): Ditto.
28232         (remap_edge_change_prob): Use helper rounding divide methods.
28233         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
28234         (gimple_mod_pow2_value_transform): Ditto.
28235         (gimple_mod_subtract_transform): Ditto.
28236         (gimple_ic_transform): Ditto.
28237         (gimple_stringops_transform): Ditto.
28238         * stmt.c (conditional_probability): Ditto.
28239         (emit_case_dispatch_table): Ditto.
28240         * lto-cgraph.c (merge_profile_summaries): Ditto.
28241         * tree-optimize.c (execute_fixup_cfg): Ditto.
28242         * cfgcleanup.c (try_forward_edges): Ditto.
28243         * cfgloopmanip.c (scale_loop_profile): Ditto.
28244         (loopify): Ditto.
28245         (duplicate_loop_to_header_edge): Ditto.
28246         (lv_adjust_loop_entry_edge): Ditto.
28247         * tree-vect-loop.c (vect_transform_loop): Ditto.
28248         * profile.c (compute_branch_probabilities): Ditto.
28249         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
28250         * lto-streamer-in.c (input_cfg): Ditto.
28251         * gimple-streamer-in.c (input_bb): Ditto.
28252         * ipa-cp.c (update_profiling_info): Ditto.
28253         (update_specialized_profile): Ditto.
28254         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
28255         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
28256         rounding methods.
28257         * sched-rgn.c (compute_dom_prob_ps): Ditto.
28258         (compute_trg_info): Ditto.
28259         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
28260         (purge_dead_edges): Ditto.
28261         * loop-unswitch.c (unswitch_loop): Ditto.
28262         * cgraphclones.c (cgraph_clone_edge): Ditto.
28263         (cgraph_clone_node): Ditto.
28264         * tree-inline.c (copy_bb): Ditto.
28265         (copy_edges_for_bb): Ditto.
28266         (initialize_cfun): Ditto.
28267         (copy_cfg_body): Ditto.
28268         (expand_call_inline): Ditto.
28270 2013-04-08  Kai Tietz  <ktietz@redhat.com>
28272         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
28273         TARGET_CYGWIN64 by TARGET_64BIT.
28275 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
28277         * config/epiphany/epiphany.md (GPR_1): New constant.
28278         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
28279         * config/epiphany/epiphany.c (gen_compare_reg):
28280         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
28281         is already in place.
28282         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
28283         Don't require being called during rtl expansion; If y operlaps r0,
28284         return 0.
28285         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
28286         (epiphany_expand_epilogue): Likewise.
28288         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
28289         Don't use CC_FPmode for ORDERED / UNORDERED.
28290         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
28292         * config/epiphany/constraints.md (CnL): New constraint.
28293         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
28294         * config/epiphany/predicates.md (add_operand): Allow 1024.
28296         * config/epiphany/epiphany.md (logical_op): New code iterator.
28297         (op_mnc): New code attribute.
28298         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
28299         (mov_f+1, mov_f+2): New peephole2 patterns.
28301         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
28302         (cstoresi4): Also allow re-use of zero result when doing a NE
28303         comparison to a non-zero operand.
28304         Use (clobber (scratch)) for first insn if the gpr output is not needed.
28306         * config/epiphany/epiphany.md (<insn_opname>v2si3):
28307         Use gen_addsi3_i / gen_subsi3_i.
28309 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
28311         PR c++/34949
28312         PR c++/50243
28313         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
28314         contain anything but clobbers, at most one __builtin_stack_restore,
28315         optionally debug stmts and final resx, and if it has at least one
28316         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
28317         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
28318         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
28319         which isn't defaut definition, remove them.
28320         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
28321         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
28322         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
28323         with MEM_REF LHS with SSA_NAME address.
28325 2013-04-08  Jeff Law  <law@redhat.com>
28327         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
28329 2013-04-08  Richard Biener  <rguenther@suse.de>
28331         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
28332         extra newline.
28333         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
28334         determined vector type.
28335         (vect_analyze_data_refs): Likewise.
28336         (vect_get_new_vect_var): Adjust.
28337         (vect_create_destination_var): Preserve SSA name versions.
28338         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
28339         not dump anything here.
28341 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
28343         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
28344         Add member lr_slot_known.
28345         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
28346         if necessary.
28347         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
28348         Remove code that sets lr_slot_offset according to what a previous
28349         version of epiphany_emit_save_restore used to do.
28350         (epiphany_emit_save_restore): When doing an lr save or restore,
28351         set/verify lr_slot_known and lr_slot_offset.
28353 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
28355         PR target/54338
28356         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
28357         in ALL_REGS.
28359 2013-04-08  Richard Biener  <rguenther@suse.de>
28361         * alias.c (find_base_term): Fix thinko in previous change.
28363 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
28365         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
28366         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
28367         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
28368         if possible to compute val.
28369         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
28370         For QImode integers don't require anything about precision.  Use
28371         const_with_all_bytes_same to find out if the constant doesn't have
28372         repeated bytes in it.
28374 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28376         * config/s390/s390.c (s390_expand_insv): Only accept insertions
28377         within mode size.
28379 2013-04-08  Marek Polacek  <polacek@redhat.com>
28381         PR rtl-optimization/48182
28382         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
28383         value to 1.
28385 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28387         PR target/55487
28388         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
28389         nuses, make sure we have a label.
28391 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28393         PR target/56843
28394         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
28395         (rs6000_emit_swdiv_low_precision): Remove.
28396         (rs6000_emit_swdiv): Rewrite to handle between one and four
28397         iterations of Newton-Raphson generally; modify required number of
28398         iterations for some cases.
28399         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
28401 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
28403         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
28404         set-but-unused variable.
28406         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
28407         basic blocks of released function bodies garbage-collectable.
28409         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
28410         (struct rtl_opt_pass): Add TODO_df_finish.
28412         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
28414 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28416         * config/arm/constraints.md (q): New constraint.
28417         * config/arm/ldrdstrd.md: New file.
28418         * config/arm/arm.md (ldrdstrd.md) New include.
28419         (arm_movdi): Use "q" instead of "r" constraint
28420         for double-word memory access.
28421         (movdf_soft_insn): Likewise.
28422         * config/arm/vfp.md (movdi_vfp): Likewise.
28423         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
28424         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
28425         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
28426         (mem_ok_for_ldrd_strd): Likewise.
28427         (output_move_double): Update assertion.
28429 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28431         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
28433 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28435         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
28436         define_insn_and_split.
28437         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
28439 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28441         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
28442         define_insn_and_split.
28443         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
28444         (shiftsi3_compare): New pattern.
28445         (rrx): New pattern.
28446         * config/arm/unspecs.md (UNSPEC_RRX): New.
28448 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28450         * config/arm/arm.md (negdi_extendsidi): New pattern.
28451         (negdi_zero_extendsidi): Likewise.
28453 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28455         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
28456         define_insn_and_split.
28457         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
28458         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
28460 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28462         * config/arm/arm.md (arm_subdi3): Convert define_insn into
28463         define_insn_and_split.
28464         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
28465         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
28467 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28469         * config/arm/arm.md (subsi3_carryin): New pattern.
28470         (subsi3_carryin_const): Likewise.
28471         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
28472         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
28474 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28476         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
28478 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
28480         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
28481         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
28483 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28485         * config/arm/arm.c (arm_expand_builtin): Change fcode
28486         type to unsigned int.
28488 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28490         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
28492 2013-04-04  Ian Lance Taylor  <iant@google.com>
28494         * doc/standards.texi (Standards): The Go frontend supports the Go 1
28495         language standard.
28497 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
28499         PR middle-end/56729
28500         * df-scan.c (df_insn_delete): Disable failing assert.
28502 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28504         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
28505         New function prototype.
28506         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
28507         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
28508         (arm_builtin_vectorized_function): New function.
28510 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28512         * config/arm/arm_neon_builtins.def: New file.
28513         * config/arm/arm.c (neon_builtin_data): Move contents to
28514         arm_neon_builtins.def.
28515         (enum arm_builtins): Include neon builtin definitions.
28516         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
28517         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
28519 2013-04-04  Marek Polacek  <polacek@redhat.com>
28521         PR tree-optimization/48186
28522         * predict.c (maybe_hot_frequency_p): Return false if
28523         HOT_BB_FREQUENCY_FRACTION is 0.
28524         (cgraph_maybe_hot_edge_p): Likewise.
28526 2013-04-04  Richard Biener  <rguenther@suse.de>
28528         PR tree-optimization/56826
28529         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
28530         more accurately.
28532 2013-04-04  Richard Biener  <rguenther@suse.de>
28534         PR tree-optimization/56213
28535         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
28536         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
28538 2013-04-04  Richard Biener  <rguenther@suse.de>
28540         PR tree-optimization/56837
28541         * tree-loop-distribution.c (classify_partition): For non-zero
28542         values require that the value has the same precision as its
28543         mode to be useful as memset value.
28545 2013-04-03  Nick Clifton  <nickc@redhat.com>
28547         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
28548         (fmssf4): Use fmsf.s on E3V5 architectures.
28549         (fnmasf4): Use fnmaf.s on E3V5 architectures.
28550         (fnmssf4): Use fnmsf.s on E3V5 architectures.
28552 2013-04-03  Jeff Law  <law@redhat.com>
28554         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
28555         (lra-eliminations.o): Likewise.
28557 2013-04-03  Teresa Johnson  <tejohnson@google.com>
28559         * gcov-io.c (compute_working_sets): Moved most of body of old
28560         compute_working_sets here from profile.c.
28561         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
28562         (gcov_working_set_t): Moved typedef here from basic-block.h
28563         (compute_working_set): Declare.
28564         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
28565         (get_working_sets): Renamed from compute_working_set,
28566         replace most of body with call to new compute_working_sets.
28567         (get_exec_counts): Replace call to compute_working_sets
28568         to get_working_sets.
28569         * profile.h (get_working_sets): Renamed from compute_working_set.
28570         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
28571         to get_working_sets.
28572         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
28573         * gcov-dump.c (dump_working_sets): New function.
28575 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
28577         * hwint.c (sext_hwi, zext_hwi): New functions.
28578         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
28579         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
28580         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
28581         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
28582         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
28583         (sext_hwi, zext_hwi): New functions.
28585 2013-04-03  Jeff Law  <law@redhat.com>
28587         PR tree-optimization/56799
28588         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
28589         back test for widening conversion erroneously dropped in prior change.
28591 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28593         PR target/56809
28594         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
28595         instead of next_real_insn.
28597 2013-04-03  Marek Polacek  <polacek@redhat.com>
28599         PR sanitizer/55702
28600         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
28602 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28604         PR target/56809
28605         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
28606         next_real_insn.
28607         (thumb1_output_casesi): Likewise.
28608         (thumb2_output_casesi): Likewise.
28610 2013-04-03  Richard Biener  <rguenther@suse.de>
28612         PR tree-optimization/56817
28613         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
28614         Split out ...
28615         (tree_unroll_loops_completely_1): ... new function to manually
28616         walk the loop tree, properly defering outer loops of unrolled
28617         loops to later iterations.
28619 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
28621         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
28622         (vectorizable_load): Likewise.
28623         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
28624         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
28626 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
28628         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
28629         BIT_FIELD_REF.
28631 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28633         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
28635 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
28637         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
28639 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
28641         PR tree-optimization/56790
28642         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
28643         folding.
28645 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
28647         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
28648         Handle VEC_MERGE.
28649         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
28650         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
28651         equal arguments.
28653 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
28655         PR c/19449
28656         * tree.h (force_folding_builtin_constant_p): New decl.
28657         * builtins.c (force_folding_builtin_constant_p): New variable.
28658         (fold_builtin_constant_p): Fold immediately also if
28659         force_folding_builtin_constant_p.
28661 2013-04-03  Richard Biener  <rguenther@suse.de>
28663         PR tree-optimization/56812
28664         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
28665         DRs of the same interleaving chain are independent.
28667 2013-04-02  Jason Merrill  <jason@redhat.com>
28669         * gdbinit.in (pbb): Use debug fn.
28671 2013-04-02  Lawrence Crowl  <crowl@google.com>
28673         * sese.h (struct ivtype_map_elt_s): Remove unused.
28674         (extern debug_ivtype_map): Remove unused.
28675         (extern eq_ivtype_map_elts): Remove unused.
28676         * sese.c (debug_ivtype_map): Removed unused.
28677         (debug_ivtype_map_1): Removed unused.
28678         (debug_ivtype_elt): Remove unused.
28679         (eq_ivtype_map_elts): Remove unused.
28681 2013-04-02  Kai Tietz  <ktietz@redhat.com>
28683         PR target/52790
28684         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
28685         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
28686         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
28687         function.
28688         (legitimize_pe_coff_symbol): Likewise.
28689         (is_imported_p): New helper-function.
28690         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
28691         for Windows x64 targets.
28692         (ix86_expand_prologue): Optimize for pe-coff targets.
28693         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
28694         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
28695         medium/large code-model.
28696         (legitimize_pic_address): Likewise.
28697         (legitimize_tls_address): Likewise.
28698         (ix86_expand_call): Likewise.
28699         (x86_output_mi_thunk): Likewise.
28700         (get_dllimport_decl): Add new beimport argument.
28701         (construct_plt_address): Don't assert for x64 pe-coff targets.
28702         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
28703         targets.
28704         (SYMBOL_FLAG_STUBVAR): New macro.
28705         (SYMBOL_REF_STUBVAR_P): Likewise.
28706         * config/i386/winnt.c (stub_list): New structure.
28707         (stub_head): New local variable.
28708         (i386_pe_record_stub): New function.
28709         (i386_pe_file_end): Emit refptr-stubs.
28711 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
28713         PR rtl-optimization/56745
28714         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
28715         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
28717         PR c++/34949
28718         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
28719         and both of them are MEM_REFs, just compare first argument for
28720         equality and attempt to deal even with differing offsets.
28722         PR c++/34949
28723         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
28724         of gimple_clobber_p to be MEM_REF.
28725         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
28726         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
28727         after gimplification.
28728         * asan.c (get_mem_ref_of_assignment): Don't instrument
28729         gimple_clobber_p stmts.
28730         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
28731         gimple_clobber_p stmt if they have MEM_REF lhs and
28732         are dead because of another gimple_clobber_p stmt.
28733         * tree-ssa-live.c (clear_unused_block_pointer): Treat
28734         gimple_clobber_p stmts like debug stmts.
28735         (remove_unused_locals): Remove clobbers with MEM_REF lhs
28736         that refer to unused VAR_DECLs or uninitialized values.
28737         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
28738         gimple_clobber_p stmts if they refer to removed parameters.
28739         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
28740         formatting.
28742 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
28744         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
28745         using SWI48 mode attribute.
28747 2013-04-02  Wei Mi  <wmi@google.com>
28749         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
28750         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
28751         *<rotate_insn><mode>3_mask in i386.md.
28753 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
28755         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
28757 2013-04-02  Richard Biener  <rguenther@suse.de>
28759         PR tree-optimization/56778
28760         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28761         Runtime alias tests are not supported for gather loads.
28762         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
28763         stmts referenced from SSA operands before updating SSA form.
28765 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
28766             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28768         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
28769         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
28770         * config/arm/cortex-a53.md: New file.
28771         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
28772         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
28773         * config/arm/arm.c (arm_issue_rate): Likewise.
28774         * config/arm/arm-tune.md: Regenerate
28775         * config/arm/arm-tables.opt: Regenerate.
28776         * config/arm/arm-cores.def: Add cortex-a53.
28778 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
28780         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
28781         non-static link.
28783 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
28785         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
28786         scalar load/store operations using B/H registers.
28787         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
28789 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
28791         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
28792         scalar move.
28793         * config/aarch64/aarch64.c
28794         (aarch64_simd_scalar_immediate_valid_for_move): New.
28795         * config/aarch64/aarch64-protos.h
28796         (aarch64_simd_scalar_immediate_valid_for_move): New.
28797         * config/aarch64/constraints.md (Dh, Dq): New.
28798         * config/aarch64/iterators.md (hq): New.
28800 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
28802         * reorg.c (get_branch_condition): Deal with conditional returns.
28803         (fill_simple_delay_slots): Remove dead code dealing with jumps.
28805 2013-04-01  Wei Mi  <wmi@google.com>
28807         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
28808         Truncate operand 2 using %b asm operand modifier.
28809         (*<shift_insn><mode>3_mask): Ditto.
28810         (*<rotate_insn><mode>3_mask): Ditto.
28812 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
28814         PR middle-end/56798
28815         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
28817 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
28819         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
28820         of next_real_insn.
28821         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
28823 2013-03-30  Lawrence Crowl  <crowl@google.com>
28825         * dse.c (clear_alias_sets): Remove never set.
28826         (disqualified_clear_alias_sets): Remove never set.
28827         (clear_alias_mode_pool): Remove never set.
28828         (dse_step0): Remove condition that is never true.
28829         (canon_address): Remove condition that is never true.
28830         (dse_step7): Remove condition that is never true.
28831         (rest_of_handle_dse): Remove condition that is never true.
28832         (rest_of_handle_dse::did_global): Remove never read from above.
28833         (dse_step2_spill): Remove never called from above.
28834         (dse_step5_spill): Remove never called from above.
28836 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
28838         * doc/md.texi (Standard Names) <casesi>: Update documentation for
28839         JUMP_TABLE_DATA changes.
28840         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
28841         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
28842         (Insns) <jump_table_data>: New entry.
28843         * doc/tm.texi: Regenerate.
28845         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
28847         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
28848         for table jump at the end of a basic block using tablejump_p.
28849         * targhooks.c (default_invalid_within_doloop): Likewise.
28850         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
28851         target hook implementation that is identical to the default hook.
28852         (rs6000_invalid_within_doloop): Remove.
28854         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
28855         unused variable from tablejump_p call.
28857         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
28858         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
28859         (INSN_DELETED_P): Likewise.
28860         (emit_jump_table_data): New prototype.
28861         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
28862         after 4th as unused.
28863         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
28864         * sched-vis.c (print_insn): Likewise.
28865         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
28866         insn for compatibility with back ends that use next_active_insn to
28867         identify jump table data.
28868         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
28869         (remove_insn): Likewise.
28870         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
28871         to be emitted.
28872         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
28873         (emit_jump_table_data): New function.
28875         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
28876         basic block, a JUMP_TABLE_DATA never is.
28877         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
28878         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
28879         off from code handling real insns.
28880         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
28881         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
28882         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
28883         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
28884         is not a NONDEBUG_INSN_P.
28885         * ira-costs.c (scan_one_insn): Likewise.
28886         * jump.c (mark_all_labels): Likewise.
28887         (mark_jump_label_1): Likewise.
28888         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
28889         * lra.c (get_insn_freq): Expect all insns reaching here to be in
28890         a basic block.
28891         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
28892         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
28893         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
28894         JUMP_TABLE_DATA_P insns.
28895         (calculate_elim_costs_all_insns): Likewise.
28896         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
28897         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
28898         (delete_output_reload): Code style fixups.
28899         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
28900         insn flags on this non-insn.
28901         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
28902         as scheduling barriers, for pre-change compatibility.
28903         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
28904         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
28906         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
28907         redundant JUMP_TABLE_DATA_P test.
28908         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
28909         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
28910         (frv_for_each_packet): Likewise.
28911         * config/i386/i386.c (min_insn_size): Likewise.
28912         (ix86_avoid_jump_mispredicts): Likewise.
28913         * config/m32r/m32r.c (m32r_is_insn): Likewise.
28914         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
28915         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
28916         (mips16_insn_length): Robustify.
28917         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
28918         (mips16_split_long_branches): Likewise.
28919         * config/pa/pa.c (pa_combine_instructions): Likewise.
28920         * config/rs6000/rs6000.c (get_next_active_insn): Treat
28921         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
28922         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
28923         as contributing to pool range lengths.
28924         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
28925         Remove redundant JUMP_TABLE_DATA_P test.
28926         (sh_loop_align): Likewise.
28927         (split_branches): Likewise.
28928         (sh_insn_length_adjustment): Likewise.
28929         * config/spu/spu.c (get_branch_target): Likewise.
28931 2013-03-29  Jan Hubicka  <jh@suse.cz>
28933         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
28934         gcov streaming; stream hot bb threshold to ltrans.
28935         * predict.c (get_hot_bb_threshold): Break out from ....
28936         (maybe_hot_count_p): ... here.
28937         (set_hot_bb_threshold): New function.
28938         * lto-section-in.c (lto_section_name): Add profile.
28939         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
28940         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
28941         and data-streamer.h
28942         (histogram_entry): New structure.
28943         (histogram, histogram_pool): New global vars.
28944         (histogram_hash): New structure.
28945         (histogram_hash::hash): New method.
28946         (histogram_hash::equal): Likewise.
28947         (account_time_size): New function.
28948         (cmp_counts): New function.
28949         (dump_histogram): New function.
28950         (ipa_profile_generate_summary): New function.
28951         (ipa_profile_write_summary): New function.
28952         (ipa_profile_read_summary): New function.
28953         (ipa_profile): Decide on threshold.
28954         (pass_ipa_profile): Add ipa_profile_write_summary and
28955         ipa_profile_read_summary.
28956         * Makefile.in (ipa.o): Update dependencies.
28957         * lto-streamer.h (LTO_section_ipa_profile): New section.
28959 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
28961         * tree.h (VAR_P): New.
28963 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
28965         PR lto/56777
28966         * doc/invoke.texi ([-fwhole-program]): Fix typo.
28968 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
28970         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
28971         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
28972         (control_flow_insn_p): Likewise.
28973         * cfgrtl.c (duplicate_insn_chain): Likewise.
28974         * final.c (get_attr_length_1): Likewise.
28975         (shorten_branches): Likewise.
28976         (final_scan_insn): Likewise.
28977         * function.c (instantiate_virtual_regs): Likewise.
28978         * gcse.c (insert_insn_end_basic_block): Likewise.
28979         * ira-costs.c (scan_one_insn): Likewise.
28980         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
28981         * lra.c (check_rtl): Likewise.
28982         * reload1.c (elimination_costs_in_insn): Likewise.
28983         * reorg.c (follow_jumps): Likewise.
28985         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
28986         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
28987         (thumb_far_jump_used_p): Likewise.
28988         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
28989         (workaround_speculation): Likewise.
28990         (add_sched_insns_for_speculation): Likewise.
28991         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
28992         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
28993         (frv_for_each_packet): Likewise.
28994         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
28995         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
28996         (final_emit_insn_group_barriers): Likewise.
28997         * config/m32r/m32r.c (m32r_is_insn): Likewise.
28998         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
28999         (mips16_insn_length): Likewise.
29000         * config/pa/pa.c (pa_reorg): Likewise.
29001         (pa_combine_instructions): Likewise.
29002         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
29003         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
29004         (sh_reorg): Likewise.
29005         (split_branches): Likewise.
29006         * config/spu/spu.c (get_branch_target): Likewise.
29008         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
29009         JUMP_TABLE_DATA_P.
29011 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
29013         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
29014         Fix declaration name.
29016 2013-03-28  Lawrence Crowl  <crowl@google.com>
29018         * graphds.h (struct graph.indicies): Remove unused.
29019         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
29020         (SCOP_ORIGINAL_PDDRS): Remove unused.
29021         * sese.h (extern insert_loop_close_phis): Removed unused.
29022         (extern insert_guard_phis): Removed unused.
29023         (extern ivtype_map_elt_info): Removed unused.
29024         (new_ivtype_map_elt): Removed unused.
29025         * sese.c (ivtype_map_elt_info): Removed unused.
29027 2013-03-28  Lawrence Crowl  <crowl@google.com>
29029         * Makefile.in: Add several missing include dependences.
29030         (DUMPFILE_H): New.
29031         (test-dump.o): New.  This object is not added to any executable,
29032         but is present for ad-hoc testing.
29033         * bitmap.c
29034         (debug (const bitmap_head_def &)): New.
29035         (debug (const bitmap_head_def *)): New.
29036         * bitmap.h
29037         (extern debug (const bitmap_head_def &)): New.
29038         (extern debug (const bitmap_head_def *)): New.
29039         * cfg.c
29040         (debug (edge_def &)): New.
29041         (debug (edge_def *)): New.
29042         * cfghooks.c
29043         (debug (basic_block_def &)): New.
29044         (debug (basic_block_def *)): New.
29045         * dumpfile.h
29046         (dump_node (const_tree, int, FILE *)): Correct source file.
29047         * dwarf2out.c
29048         (debug (die_struct &)): New.
29049         (debug (die_struct *)): New.
29050         * dwarf2out.h
29051         (extern debug (die_struct &)): New.
29052         (extern debug (die_struct *)): New.
29053         * gimple-pretty-print.c
29054         (debug (gimple_statement_d &)): New.
29055         (debug (gimple_statement_d *)): New.
29056         * gimple-pretty-print.h
29057         (extern debug (gimple_statement_d &)): New.
29058         (extern debug (gimple_statement_d *)): New.
29059         * ira-build.c
29060         (debug (ira_allocno_copy &)): New.
29061         (debug (ira_allocno_copy *)): New.
29062         (debug (ira_allocno &)): New.
29063         (debug (ira_allocno *)): New.
29064         * ira-int.h
29065         (extern debug (ira_allocno_copy &)): New.
29066         (extern debug (ira_allocno_copy *)): New.
29067         (extern debug (ira_allocno &)): New.
29068         (extern debug (ira_allocno *)): New.
29069         * ira-lives.c
29070         (debug (live_range &)): New.
29071         (debug (live_range *)): New.
29072         * lra-int.h
29073         (debug (lra_live_range &)): New.
29074         (debug (lra_live_range *)): New.
29075         * lra-lives.c
29076         (debug (lra_live_range &)): New.
29077         (debug (lra_live_range *)): New.
29078         * omega.c
29079         (debug (omega_pb_d &)): New.
29080         (debug (omega_pb_d *)): New.
29081         * omega.h
29082         (extern debug (omega_pb_d &)): New.
29083         (extern debug (omega_pb_d *)): New.
29084         * print-rtl.c
29085         (debug (const rtx_def &)): New.
29086         (debug (const rtx_def *)): New.
29087         * print-tree.c
29088         (debug_tree (tree): Move within file.
29089         (debug_raw (const tree_node &)): New.
29090         (debug_raw (const tree_node *)): New.
29091         (dump_tree_via_hooks (const tree_node *, int)): New.
29092         (debug (const tree_node &)): New.
29093         (debug (const tree_node *)): New.
29094         (debug_verbose (const tree_node &)): New.
29095         (debug_verbose (const tree_node *)): New.
29096         (debug_head (const tree_node &)): New.
29097         (debug_head (const tree_node *)): New.
29098         (debug_body (const tree_node &)): New.
29099         (debug_body (const tree_node *)): New.
29100         (debug_vec_tree (tree): Move and reimplement in terms of dump.
29101         (debug (vec<tree, va_gc> &)): New.
29102         (debug (vec<tree, va_gc> *)): New.
29103         * rtl.h
29104         (extern debug (const rtx_def &)): New.
29105         (extern debug (const rtx_def *)): New.
29106         * sbitmap.c
29107         (debug_raw (simple_bitmap_def &)): New.
29108         (debug_raw (simple_bitmap_def *)): New.
29109         (debug (simple_bitmap_def &)): New.
29110         (debug (simple_bitmap_def *)): New.
29111         * sbitmap.h
29112         (extern debug (simple_bitmap_def &)): New.
29113         (extern debug (simple_bitmap_def *)): New.
29114         (extern debug_raw (simple_bitmap_def &)): New.
29115         (extern debug_raw (simple_bitmap_def *)): New.
29116         * sel-sched-dump.c
29117         (debug (vinsn_def &)): New.
29118         (debug (vinsn_def *)): New.
29119         (debug_verbose (vinsn_def &)): New.
29120         (debug_verbose (vinsn_def *)): New.
29121         (debug (expr_def &)): New.
29122         (debug (expr_def *)): New.
29123         (debug_verbose (expr_def &)): New.
29124         (debug_verbose (expr_def *)): New.
29125         (debug (vec<rtx> &)): New.
29126         (debug (vec<rtx> *)): New.
29127         * sel-sched-dump.h
29128         (extern debug (vinsn_def &)): New.
29129         (extern debug (vinsn_def *)): New.
29130         (extern debug_verbose (vinsn_def &)): New.
29131         (extern debug_verbose (vinsn_def *)): New.
29132         (extern debug (expr_def &)): New.
29133         (extern debug (expr_def *)): New.
29134         (extern debug_verbose (expr_def &)): New.
29135         (extern debug_verbose (expr_def *)): New.
29136         (extern debug (vec<rtx> &)): New.
29137         (extern debug (vec<rtx> *)): New.
29138         * sel-sched-ir.h
29139         (_list_iter_cond_expr): Make inline instead of static.
29140         * sreal.c
29141         (debug (sreal &)): New.
29142         (debug (sreal *)): New.
29143         * sreal.h
29144         (extern debug (sreal &)): New.
29145         (extern debug (sreal *)): New.
29146         * tree.h
29147         (extern debug_raw (const tree_node &)): New.
29148         (extern debug_raw (const tree_node *)): New.
29149         (extern debug (const tree_node &)): New.
29150         (extern debug (const tree_node *)): New.
29151         (extern debug_verbose (const tree_node &)): New.
29152         (extern debug_verbose (const tree_node *)): New.
29153         (extern debug_head (const tree_node &)): New.
29154         (extern debug_head (const tree_node *)): New.
29155         (extern debug_body (const tree_node &)): New.
29156         (extern debug_body (const tree_node *)): New.
29157         (extern debug (vec<tree, va_gc> &)): New.
29158         (extern debug (vec<tree, va_gc> *)): New.
29159         * tree-cfg.c
29160         (debug (struct loop &)): New.
29161         (debug (struct loop *)): New.
29162         (debug_verbose (struct loop &)): New.
29163         (debug_verbose (struct loop *)): New.
29164         * tree-dump.c: Add header dependence.
29165         * tree-flow.h
29166         (extern debug (struct loop &)): New.
29167         (extern debug (struct loop *)): New.
29168         (extern debug_verbose (struct loop &)): New.
29169         (extern debug_verbose (struct loop *)): New.
29170         * tree-data-ref.c
29171         (debug (data_reference &)): New.
29172         (debug (data_reference *)): New.
29173         (debug (vec<data_reference_p> &)): New.
29174         (debug (vec<data_reference_p> *)): New.
29175         (debug (vec<ddr_p> &)): New.
29176         (debug (vec<ddr_p> *)): New.
29177         * tree-data-ref.h
29178         (extern debug (data_reference &)): New.
29179         (extern debug (data_reference *)): New.
29180         (extern debug (vec<data_reference_p> &)): New.
29181         (extern debug (vec<data_reference_p> *)): New.
29182         (extern debug (vec<ddr_p> &)): New.
29183         (extern debug (vec<ddr_p> *)): New.
29184         * tree-ssa-alias.c
29185         (debug (pt_solution &)): New.
29186         (debug (pt_solution *)): New.
29187         * tree-ssa-alias.h
29188         (extern debug (pt_solution &)): New.
29189         (extern debug (pt_solution *)): New.
29190         * tree-ssa-alias.c
29191         (debug (_var_map &)): New.
29192         (debug (_var_map *)): New.
29193         (debug (tree_live_info_d &)): New.
29194         (debug (tree_live_info_d *)): New.
29195         * tree-ssa-alias.h
29196         (extern debug (_var_map &)): New.
29197         (extern debug (_var_map *)): New.
29198         (extern debug (tree_live_info_d &)): New.
29199         (extern debug (tree_live_info_d *)): New.
29201 2013-03-28  Jan Hubicka  <jh@suse.cz>
29203         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
29205 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
29207         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
29208         record only when desired or required.
29210 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
29212         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
29213         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
29215 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29217         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
29218         (*andsi3_compare0_uxtw): New pattern.
29219         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
29220         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
29222 2013-03-28  Jan Hubicka  <jh@suse.cz>
29224         * data-streamer-in.c (streamer_read_gcov_count): New function.
29225         * gimple-streamer-out.c: Include value-prof.h.
29226         (output_gimple_stmt): Output histogram.
29227         (output_bb): Use streamer_write_gcov_count.
29228         * value-prof.c: Include data-streamer.h
29229         (dump_histogram_value): Add HIST_TYPE_MAX.
29230         (stream_out_histogram_value): New function.
29231         (stream_in_histogram_value): New function.
29232         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
29233         (stream_out_histogram_value, stream_in_histogram_value): Declare.
29234         * data-streamer-out.c (streamer_write_gcov_count): New function.
29235         (streamer_write_gcov_count_stream): New function.
29236         * lto-cgraph.c (lto_output_edge): Update counter streaming.
29237         (lto_output_node): Likewise.
29238         (input_node, input_edge): Likewise.
29239         * lto-streamer-out.c (output_cfg): Update streaming.
29240         * lto-streamer-in.c (input_cfg): Likewise.
29241         * data-streamer.h (streamer_write_gcov_count,
29242         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
29243         * gimple-streamer-in.c: Include value-prof.h
29244         (input_gimple_stmt): Input histograms.
29245         (input_bb): Update profile streaming.
29247 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
29249         * genmodes.c (emit_max_int): New function.
29250         (emit_insn_modes_h): Added call to emit_max_function.
29251         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
29252         Added doc.
29253         * machmode.def: Fixed comment.
29255 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
29257         * combine.c (try_combine): Removed useless assert.
29258         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
29260 2013-03-28  Marek Polacek  <polacek@redhat.com>
29261             Richard Biener  <rguenther@suse.de>
29263         PR tree-optimization/56695
29264         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
29265         build signed result of a vector comparison.
29266         * tree-cfg.c (verify_gimple_comparison): Check that a result
29267         of a vector comparison has signed type.
29269 2013-03-28  Richard Biener  <rguenther@suse.de>
29271         PR tree-optimization/37021
29272         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
29273         do not restrict gaps between groups.
29274         * tree-vect-stmts.c (vectorizable_load): Properly account for
29275         a gap between groups.
29277 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
29279         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
29280         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
29281         is not enabled.
29283 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
29285         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
29286         * doc/extend.texi (Named Address Spaces): Ditto.
29287         (Variable Attributes): Ditto.
29289 2013-03-27  Kai Tietz  <ktietz@redhat.com>
29291         * config.build: Add support for cygwin x64 target.
29292         * config.gcc: Likewise.
29293         * config.host: Likewise.
29294         * configure.ac: Likewise
29295         * configure: Regenerated.
29297 2013-03-27  Kai Tietz  <ktietz@redhat.com>
29299         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
29300         * config/i386/t-cygwin-w64: New file.
29301         * config/i386/cygwin-w64.h: New file.
29302         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
29303         and add support for x64-cygwin target.
29304         (CPP_SPEC): Likewise.
29305         (CXX_WRAP_SPEC_LIST): Undefine before define.
29306         (LIBGCJ_SONAME): Use 15 as version.
29308 2013-03-27  Richard Biener  <rguenther@suse.de>
29310         PR tree-optimization/56716
29311         * tree-ssa-structalias.c (perform_var_substitution): Adjust
29312         dumping for ref nodes.
29314 2013-03-27  Martin Jambor  <mjambor@suse.cz>
29316         PR tree-optimization/55334
29317         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
29318         restricted pointers to arrays.
29320 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
29322         * Makefile.in (.SUFFIXES): Add .cc.
29323         (.c.o): Apply same recipe for implicit rule .cc.o.
29325 2013-03-27  Richard Biener  <rguenther@suse.de>
29327         PR tree-optimization/37021
29328         * tree-vect-data-refs.c (vect_check_strided_load): Allow
29329         REALPART/IMAGPART_EXPRs around the supported refs.
29330         * tree-ssa-structalias.c (find_func_aliases): Assume that
29331         floating-point values are not used to transfer pointers.
29333 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
29335         * target.def (TARGET_HAS_IFUNC_P): New target hook.
29336         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
29337         * doc/tm.texi: Regenerate.
29338         * targhooks.h (default_has_ifunc_p): New.
29339         * targhooks.c (default_has_ifunc_p): Ditto.
29340         * config/linux-protos.h: New file.
29341         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
29342         hook for linux which disables support of indirect functions in android.
29343         * config/linux-android.c: New file.
29344         * config/t-linux-android.c: Ditto.
29345         * config.gcc: Added new object file linux-android.o.
29346         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
29347         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
29348         * varasm.c (do_assemble_alias): Likewise.
29349         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
29350         doesn't support indirect functions.
29351         * configure: Regenerate.
29353 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
29355         PR target/56102
29356         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
29357         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
29358         mult-word mode.
29360 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29362         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
29364 2013-03-27  Terry Guo  <terry.guo@arm.com>
29366         * config/arm/arm-cores.def: Added core cortex-r7.
29367         * config/arm/arm-tune.md: Regenerated.
29368         * config/arm/arm-tables.opt: Regenerated.
29369         * doc/invoke.texi: Added entry for core cortex-r7.
29371 2013-03-27  Walter Lee  <walt@tilera.com>
29373         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
29374         double-decrement of next_scratch_regno.
29376 2013-03-27  Walter Lee  <walt@tilera.com>
29378         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
29379         input operands.
29380         (insn_v1mulus): Ditto.
29381         (insn_v2muls): Ditto.
29383 2013-03-27  Walter Lee  <walt@tilera.com>
29385         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
29386         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
29388 2013-03-27  Walter Lee  <walt@tilera.com>
29390         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
29391         (*sibcall_value): Ditto.
29393 2013-03-27  Walter Lee  <walt@tilera.com>
29395         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
29396         (insn_mnz_v8qi): ... this ...
29397         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
29398         vector equivalent.
29399         (insn_v<n>mnz): Replaced by ...
29400         (insn_v1mnz): ... this ...
29401         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
29402         equivalent.
29403         (insn_mz_<mode>): Replaced by ...
29404         (insn_mz_v8qi): ... this ...
29405         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
29406         vector equivalent.
29407         (insn_v<n>mz): Replaced by ...
29408         (insn_v1mz): ... this ...
29409         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
29410         equivalent.
29412 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
29414         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
29416 2013-03-26  Roland McGrath  <mcgrathr@google.com>
29418         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
29419         than fprintf with a non-constant, non-format string.
29421 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
29423         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
29424         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
29425         operand 0 predicate.
29426         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
29427         attribute.  Use general_x64nomem_operand as operand 1 predicate.
29428         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
29429         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
29430         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
29431         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
29432         (mov<mode>_insv_1): Remove expander.  Merge insn with
29433         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
29434         Use general_x64nomem_operand as operand 1 predicate.
29435         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
29436         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
29437         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
29438         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
29439         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
29440         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
29441         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
29442         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
29443         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
29444         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
29445         (general_x64nomem_operand): Ditto.
29447 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29449         * config/rtems.opt: Add -pthread option.
29451 2013-03-26  Richard Biener  <rguenther@suse.de>
29453         * alias.c (find_base_term): Avoid redundant and not used recursion.
29454         (base_alias_check): Get the initial base term from the caller.
29455         (true_dependence_1): Compute and pass base terms to base_alias_check.
29456         (write_dependence_p): Likewise.
29457         (may_alias_p): Likewise.
29459 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
29461         * config/aarch64/aarch64.c (aarch64_classify_address): Support
29462         PC-relative load in SI modes and above only.
29464 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
29466         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
29467         * config/arm/iwmmxt.md (WCGR0): Update.
29468         (WCGR1, WCGR2, WCGR3): Likewise.
29470 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
29472         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
29473         Use x64 and nox64 isa attributes.
29475 2013-03-26  Richard Biener  <rguenther@suse.de>
29477         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
29478         alignment computations and rely on get_object_alignment_1
29479         for the !TYPE_P case.
29480         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
29482 2013-03-26  Walter Lee  <walt@tilera.com>
29484         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
29485         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
29487 2013-03-25  Jeff Law  <law@redhat.com>
29489         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
29490         check for INTEGRAL_TYPE_P that was missing due to checking in
29491         wrong version of prior patch.
29493 2013-03-25  Walter Lee  <walt@tilera.com>
29495         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
29496         TILEGX_INSN_SHUFFLEBYTES1.
29497         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
29498         shufflebytes1.
29499         (tilegx_builtins): Ditto.
29500         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
29502 2013-03-25  Walter Lee  <walt@tilera.com>
29504         * config/tilegx/tilegx.md (floatsisf2): New pattern.
29505         (floatunssisf2): New pattern.
29506         (floatsidf2): New pattern.
29507         (floatunssidf2): New pattern.
29509 2013-03-25  Walter Lee  <walt@tilera.com>
29511         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
29512         tests for constraint J, K, N, P.
29514 2013-03-25  Walter Lee  <walt@tilera.com>
29516         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
29517         Use indirect/pcrel encoding.
29518         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
29519         Ditto.
29521 2013-03-25  Steve Ellcey  <sellcey@mips.com>
29523         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
29524         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
29525         * config/mips/mips.c (mips_option_override): Set IMADD default.
29526         * config/mips/mips.h (PTF_AVOID_IMADD): New.
29527         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
29528         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
29529         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
29530         * doc/invoke.texi (-mimadd/-mno-imadd): New.
29532 2013-03-25  Jeff Law  <law@redhat.com>
29534         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
29535         slightly to avoid creating and folding useless trees.  Simplify
29536         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
29538 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
29540         * config/i386/i386.md (*zero_extendsidi2): Merge with
29541         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
29542         * config/i386/predicates.md (x86_64_zext_operand): Rename from
29543         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
29544         targets.  Clarify comment.
29546 2013-03-25  Martin Jambor  <mjambor@suse.cz>
29548         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
29549         pass-through jump functions differently.
29550         (ipa_read_jump_function): Likewise.  Also use setter functions to set
29551         up jump functions.
29553 2013-03-25  Martin Jambor  <mjambor@suse.cz>
29555         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
29556         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
29557         process it.
29558         (ipa_get_indirect_edge_target): New function.
29559         (devirtualization_time_bonus): New parameter known_aggs, pass it to
29560         ipa_get_indirect_edge_target.  Update all callers.
29561         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
29562         ipa_get_indirect_edge_target_1 instead of calling
29563         ipa_get_indirect_edge_target.
29564         (create_specialized_node): Pass aggvlas to
29565         ipcp_discover_new_direct_edges.
29567 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29569         * config/arm/arm.md (f_sels, f_seld): New types.
29570         (*cmov<mode>): New pattern.
29571         * config/arm/predicates.md (arm_vsel_comparison_operator): New
29572         predicate.
29574 2013-03-25  Kai Tietz  <ktietz@redhat.com>
29576         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
29577         POSIX-printf for mingw-hosted  builds.
29579 2013-03-25  Richard Biener  <rguenther@suse.de>
29581         PR middle-end/56694
29582         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
29583         must-not-throw stmt location.
29585 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29587         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
29588         Emit load-acquire versions when acq is true.
29589         (arm_emit_store_exclusive): Add rel parameter.
29590         Emit store-release versions when rel is true.
29591         (arm_split_compare_and_swap): Use acquire-release instructions
29592         instead.
29593         of barriers when appropriate.
29594         (arm_split_atomic_op): Likewise.
29595         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
29596         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
29597         (VUNSPEC_SLX): Likewise.
29598         (VUNSPEC_LDA): Likewise.
29599         (VUNSPEC_STL): Likewise.
29600         * config/arm/sync.md (atomic_load<mode>): New pattern.
29601         (atomic_store<mode>): Likewise.
29602         (arm_load_acquire_exclusive<mode>): Likewise.
29603         (arm_load_acquire_exclusivesi): Likewise.
29604         (arm_load_acquire_exclusivedi): Likewise.
29605         (arm_store_release_exclusive<mode>): Likewise.
29607 2013-03-25  Catherine Moore  <clm@codesourcery.com>
29609         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
29610         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
29611         * config/mip/predicates.md (lwsp_swsp_operand,
29612         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
29613         sb16_operand, db4_operand, db7_operand, ib3_operand,
29614         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
29615         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
29616         andi16_operand): New predicates.
29617         * config/mips/mips.md (compression): New attribute.
29618         (enabled): New attribute.
29619         (length): Consider compression in computing length.
29620         (shift_compression): New code attribute.
29621         (*add<mode>3): New operands. Record compression.
29622         (sub<mode>3): Likewise.
29623         (one_cmpl<mode>2): Likewise.
29624         (*and<mode>3): Likewise.
29625         (*ior<mode>3): Likewise.
29626         (unnamed pattern for xor): Likewise.
29627         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
29628         (*<optab><mode>3): Likewise.
29629         (*mov<mode>_internal: Likewise.
29630         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
29631         (mips_unsigned_immediate_p): New.
29632         (umips_lwsp_swsp_address_p): New.
29633         (m16_based_address_p): New.
29634         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
29635         (mips_unsigned_immediate_p): New prototype.
29636         (lwsp_swsp_address_p): New prototype.
29637         (m16_based_address_p): New prototype.
29638         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
29639         (mips_signed_immediate_p): New function.
29640         (m16_based_address_p): New function.
29641         (lwsp_swsp_address_p): New function.
29642         (mips_print_operand_punctuation): Recognize short delay slot insns
29643         for microMIPS.add<mode>3"
29645 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29647         PR target/56720
29648         * config/arm/iterators.md (v_cmp_result): New mode attribute.
29649         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
29651 2013-03-25  Richard Biener  <rguenther@suse.de>
29653         PR tree-optimization/56689
29654         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
29655         any edge.
29657 2013-03-25  Richard Biener  <rguenther@suse.de>
29659         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
29660         of bitmap.
29661         (memory_references): Likewise.
29662         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
29663         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
29664         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
29665         (gather_mem_refs_in_loops): Fold into ...
29666         (analyze_memory_references): ... this.  Move initialization
29667         to tree_ssa_lim_initialize.
29668         (fill_always_executed_in): Rename to ...
29669         (fill_always_executed_in_1): ... this.
29670         (fill_always_executed_in): Move contains_call computation to
29671         this new function from ...
29672         (tree_ssa_lim_initialize): ... here.
29673         (tree_ssa_lim): Call fill_always_executed_in.
29675 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
29677         * postreload.c (reload_combine): Fix code detecting returns.
29679 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
29681         * function.c (emit_use_return_register_into_block): On cc0 targets,
29682         do not emit the sequence between cc0 setter and user.
29684 2013-03-25  Kai Tietz  <ktietz@redhat.com>
29686         * config/i386/predicates.md (local_symbolic_operand): Interpret
29687         dll-imported symbols as none-local.
29689 2013-03-25  Richard Biener  <rguenther@suse.de>
29691         * tree-ssa-loop-im.c (struct depend): Remove.
29692         (struct lim_aux_data): Make depends a vec of gimples.
29693         (free_lim_aux_data): Adjust.
29694         (add_dependency): Likewise.
29695         (set_level): Likewise.
29697 2013-03-25  Richard Biener  <rguenther@suse.de>
29699         PR middle-end/56434
29700         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
29701         the pointer returned by calls with ECF_MALLOC set.
29703 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
29705         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
29707 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
29709         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
29710         using MMXMODE mode iterator.
29711         (*move<mode>_internal): Merge with *movv2sf_internal and
29712         *movv2sf_internal_rex64 using MMXMODE mode iterator.
29714 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
29716         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
29717         (record_last_mem_set_info): Likewise.
29719         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
29720         of XNEWVEC followed by memset.
29721         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
29723 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
29725         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29726         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
29727         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
29728         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
29729         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
29730         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
29731         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
29732         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
29733         BARRIER_P instead of GET_CODE.
29735 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
29737         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
29738         inaccuracy in the probing code.
29740         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
29741         (ctrapdi4): Likewise.
29743 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
29745         * calls.c (expand_call): Add missing guard to code handling return
29746         of non-BLKmode structures in MSB.
29747         * function.c (expand_function_end): Likewise.
29749 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
29751         * combine.c (try_combine): Adjust comment.  Do not add the set of
29752         insn #0 if the destination indirectly is set or dies in insn #2.
29753         Tidy up code to distribute a new note.
29755 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
29757         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
29758         also for alternatives 16 and 17.
29760 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
29762         * config/i386/sse.md (*mov<mode>_internal): Merge with
29763         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
29764         Emit insn template depending on type attribute.  Use
29765         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
29766         movd instead of movq mnemonic for interunit moves.  Rewrite mode
29767         attribute calculation.  Remove unit attribute calculation.
29768         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
29769         Set prefix_data16 attribute for DImode ssemov types.
29770         Use Ym instead of y for SSE-MMX conversion alternatives.
29771         Reorder operand constraints.
29773 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
29775         * df.h (df_insn_delete): Adjust prototype.
29776         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
29777         and let it decide whether mark the basic block dirty.
29778         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
29779         * df-scan.c (df_insn_info_delete): New helper function, split
29780         off from df_insn_delete.
29781         (df_scan_free_bb_info): Use it.
29782         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
29783         Likewise.
29784         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
29785         that the insn is actually an insn and it has a non-NULL basic block.
29786         Do not mark basic block dirty if only deleting a DEBUG_INSN.
29788 2013-03-22  Richard Biener  <rguenther@suse.de>
29790         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
29791         dep_ref members.
29792         (mem_ref_alloc): Do not allocate them.
29793         (refs_independent_p): Do not query or maintain a cache.
29795 2013-03-22  Richard Biener  <rguenther@suse.de>
29797         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
29798         (gather_mem_refs_in_loops): Do not compute it.
29799         (analyze_memory_references): Do not allocate it.
29800         (tree_ssa_lim_finalize): Do not free it.
29801         (for_all_locs_in_loop): Do not query all_refs_in_loop.
29803 2013-03-22  Richard Biener  <rguenther@suse.de>
29805         * is-a.h (as_a): Use gcc_checking_assert.
29807 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
29809         * config/aarch64/aarch64.c (aarch64_print_operand): New
29810         format specifier for printing a constant in hex.
29811         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
29812         format specifier for printing second operand.
29814 2013-03-22  Richard Biener  <rguenther@suse.de>
29816         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
29817         bitmaps.
29818         (gather_mem_refs_in_loops): Perform store accumulation here.
29819         (create_vop_ref_mapping_loop): Remove.
29820         (create_vop_ref_mapping): Likewise.
29821         (analyze_memory_references): Initialize refs_stored_in_loop.
29822         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
29823         (record_indep_loop): Remove.
29824         (record_dep_loop): New function.
29825         (ref_indep_loop_p_1): Adjust to only walk over references
29826         in the loop, not its subloops.
29827         (ref_indep_loop_p): Rename to ...
29828         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
29829         maintaining a more fine-grained cache.
29830         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
29831         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
29833 2013-03-22  Richard Biener  <rguenther@suse.de>
29835         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
29836         (struct mem_ref): Make accesses_in_loop a vec of a vec of
29837         aggregate mem_ref_loc.
29838         (free_mem_ref_locs): Inline into ...
29839         (memref_free): ... this and adjust.
29840         (mem_ref_alloc): Adjust.
29841         (mem_ref_locs_alloc): Remove.
29842         (record_mem_ref_loc): Adjust.
29843         (get_all_locs_in_loop): Rewrite into ...
29844         (for_all_locs_in_loop): ... this iterator.
29845         (rewrite_mem_ref_loc): New functor.
29846         (rewrite_mem_refs): Use for_all_locs_in_loop.
29847         (sm_set_flag_if_changed): New functor.
29848         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
29849         (ref_always_accessed): New functor.
29850         (ref_always_accessed_p): Use for_all_locs_in_loop.
29852 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
29854         * tree-pass.h (PROP_gimple_lvec): New.
29855         * passes.c (dump_properties): Handle PROP_gimple_lvec.
29856         (init_optimization_passes): Move pass_lower_vector.
29857         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
29858         PROP_gimple_lvec.
29859         (pass_lower_vector): Provide PROP_gimple_lvec.
29860         (pass_lower_vector_ssa): Likewise.
29861         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
29863 2013-03-21  Mark Wielaard  <mjw@redhat.com>
29865         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
29867 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
29869         * config/i386/i386.md (*movdi_internal): Disparage slightly
29870         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
29871         conversion alternatives.
29873 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
29875         PR middle-end/48087
29876         * diagnostic.def (DK_WERROR): New kind.
29877         * diagnostic.h (werrorcount): Define.
29878         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
29879         promoted to DK_ERROR, increment DK_WERROR counter instead of
29880         DK_ERROR counter.
29881         * toplev.c (toplev_main): Call print_ignored_options even if
29882         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
29883         even if just werrorcount is non-zero.
29885         PR debug/55608
29886         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
29887         on failure.
29888         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
29889         (string_cst_pool_decl): New function.
29890         (optimize_one_addr_into_implicit_ptr): New function.
29891         (resolve_addr_in_expr): Optimize DWARF location expression
29892         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
29893         which doesn't live in memory, but has DW_AT_location or
29894         DW_AT_const_value, or refers to a string literal, into
29895         DW_OP_GNU_implicit_pointer.
29896         (optimize_location_into_implicit_ptr): New function.
29897         (resolve_addr): If removing DW_AT_location of a variable because
29898         it was DW_OP_addr of address of the variable, but the variable doesn't
29899         live in memory, try to emit const value attribute for the initializer.
29901 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
29903         * tree.h (VECTOR_TYPE_P): New macro.
29904         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
29905         TYPE_MODE): Use it.
29906         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
29907         VEC_COND_EXPR cannot be lvalues.
29908         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
29910 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
29912         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
29913         Restrict the transformation to equal modes.
29915 2013-03-21  Richard Biener  <rguenther@suse.de>
29917         PR tree-optimization/39326
29918         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
29919         (MEM_ANALYZABLE): Adjust.
29920         (record_mem_ref_loc): Move bitmap ops ...
29921         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
29922         unanalyzable refs, do not record locations for it.
29923         (analyze_memory_references): Allocate ref zero as shared
29924         unanalyzable ref.
29925         (refs_independent_p): Do not test for unanalyzed mems here.
29926         (ref_indep_loop_p_1): Special-case disambiguation against
29927         the unanalyzed ref.
29928         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
29930 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
29932         * config/arm/arm-protos.h (tune_params): Add
29933         prefer_neon_for_64bits field.
29934         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
29935         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
29936         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
29937         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
29938         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
29939         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
29940         (arm_option_override): Handle -mneon-for-64bits new option.
29941         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
29942         (prefer_neon_for_64bits): Declare new variable.
29943         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
29944         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
29945         (arch_enabled): Handle new arch types. Remove support for onlya8
29946         and nota8.
29947         (one_cmpldi2): Use new arch names.
29948         (zero_extend<mode>di2, extend<mode>di2): Ditto.
29949         * config/arm/arm.opt (mneon-for-64bits): Add option.
29950         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
29951         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
29952         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
29953         of onlya8.
29954         * doc/invoke.texi (-mneon-for-64bits): Document.
29956 2013-03-21  Richard Biener  <rguenther@suse.de>
29958         PR tree-optimization/39326
29959         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
29960         (sort_bbs_in_loop_postorder_cmp): New function.
29961         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
29963 2013-03-21  Richard Biener  <rguenther@suse.de>
29965         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
29966         (vect_insert_into_interleaving_chain): Likewise.
29967         (vect_drs_dependent_in_basic_block): Inline ...
29968         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
29969         split out from ...
29970         (vect_analyze_data_ref_dependence): ... here.  Simplify.
29971         (vect_check_interleaving): Simplify.
29972         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
29973         (vect_slp_analyze_data_ref_dependences): ... this new function.
29974         (dr_group_sort_cmp): New function.
29975         (vect_analyze_data_ref_accesses): Compute data-reference groups
29976         here instead of in vect_analyze_data_ref_dependence.  Use
29977         a more efficient algorithm.
29978         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
29979         vect_slp_analyze_data_ref_dependences.  Call
29980         vect_analyze_data_ref_accesses earlier.
29981         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
29982         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
29983         (vect_slp_analyze_data_ref_dependences): New prototype.
29985 2013-03-21  Richard Biener  <rguenther@suse.de>
29987         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
29988         ref is stored in the loop.
29989         (find_refs_for_sm): Walk only over all stores.
29990         (store_motion_loop): Allocate from lim_bitmap_obstack.
29991         (store_motion): Likewise.
29993 2013-03-21  Richard Biener  <rguenther@suse.de>
29995         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
29996         Update virtual SSA form.
29998 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30000         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
30001         * configure: Regenerate.
30002         * config.in: Regenerate.
30003         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
30004         if !HAVE_LD_EH_FRAME_CIEV3.
30006 2013-03-21  Richard Biener  <rguenther@suse.de>
30008         * tree-cfg.c (verify_expr_no_block): New function.
30009         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
30010         nor DECL_VALUE_EXPR have locations with associated blocks.
30011         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
30012         (clear_unused_block_pointer): Remove code dealing with
30013         blocks in DECL_DEBUG_EXPR locations.
30015 2013-03-21  Richard Biener  <rguenther@suse.de>
30017         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
30018         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
30019         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
30020         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
30021         instead of DECL_DEBUG_EXPR_IS_FROM.
30022         * gimplify.c (gimplify_modify_expr): Likewise.
30023         * tree-cfg.c (verify_expr_location_1): Likewise.
30024         * tree-complex.c (create_one_component_var): Likewise.
30025         * tree-sra.c (create_access_replacement): Likewise.
30026         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
30027         (clear_unused_block_pointer): Likewise.
30028         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
30029         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
30030         * var-tracking.c (var_debug_decl): Likewise.
30031         (track_expr_p): Likewise.
30032         * tree-inline.c (add_local_variables): Likewise.  Set
30033         DECL_HAS_DEBUG_EXPR_P after copying it.
30034         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
30035         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
30037 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
30039         PR bootstrap/56656
30040         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
30041         * configure: Regenerate.
30042         * config.in: Regenerate.
30043         * config/i386/i386.md (*movdf_internal): Use
30044         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
30045         movd instead of movq mnemonic for interunit moves.
30046         (*movdi_internal): Ditto.
30048 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30050         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
30051         (abd<mode>_3): New pattern.
30052         (aba<mode>_3): New pattern.
30053         (fabd<mode>_3): New pattern.
30055 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30057         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
30058         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
30059         occurrence of REGISTER_PREFIX as its empty string.
30061 2013-03-20  Jeff Law  <law@redhat.com>
30063         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
30064         addititional equivalences for equality comparisons between an SSA_NAME
30065         and a constant where the SSA_NAME was set from a widening conversion.
30067 2013-03-20  Walter Lee  <walt@tilera.com>
30069         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
30071 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
30073         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
30074         depending on type attribute.
30075         (*movti_internal): Ditto.
30076         (*movtf_internal): Ditto.
30077         (*movxf_internal): Ditto.
30078         (*movdf_internal): Ditto.
30079         (*movsf_internal): Ditto.
30081 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
30083         * config/i386/i386.md (*movti_internal): Set prefix attribute to
30084         maybe_vex for sselog1 and ssemov types.
30085         (*movdi_internal): Reorder operand constraints.
30086         (*movsi_internal): Ditto.  Set prefix attribute to
30087         maybe_vex for sselog1 and ssemov types.
30088         (*movtf_internal): Set prefix attribute to maybe_vex
30089         for sselog1 and ssemov types.
30090         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
30091         DImode ssemov types.  Reorder operand constraints.
30092         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
30093         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
30094         attribute for SImode ssemov types.  Reorder operand constraints.
30096 2013-03-20  Martin Jambor  <mjambor@suse.cz>
30098         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
30099         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
30101 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
30103         * config/rs6000/predicates.md (indexed_address, update_address_mem
30104         update_indexed_address_mem): New predicates.
30105         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
30106         attribute for load/store instructions.
30107         * config/rs6000/dfp.md (movsd_store): Likewise.
30108         (movsd_load): Likewise.
30109         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
30110         (unnamed HI->DI extend define_insn): Likewise.
30111         (unnamed SI->DI extend define_insn): Likewise.
30112         (unnamed QI->SI extend define_insn): Likewise.
30113         (unnamed QI->HI extend define_insn): Likewise.
30114         (unnamed HI->SI extend define_insn): Likewise.
30115         (unnamed HI->SI extend define_insn): Likewise.
30116         (extendsfdf2_fpr): Likewise.
30117         (movsi_internal1): Likewise.
30118         (movsi_internal1_single): Likewise.
30119         (movhi_internal): Likewise.
30120         (movqi_internal): Likewise.
30121         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
30122         attribute for load/store instructions.
30123         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
30124         instructions.
30125         (mov<mode>_softfloat): Likewise.
30126         (mov<mode>_hardfloat32): Likewise.
30127         (mov<mode>_hardfloat64): Likewise.
30128         (mov<mode>_softfloat64): Likewise.
30129         (movdi_internal32): Likewise.
30130         (movdi_internal64): Likewise.
30131         (probe_stack_<mode>): Likewise.
30133 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
30135         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
30136         floating point, and decimal floating point to reload iterator.
30138         * config/rs6000/constraints.md (wl constraint): New constraints to
30139         return FLOAT_REGS if certain options are used to reduce the number
30140         of separate patterns that exist in the file.
30141         (wx constraint): Likewise.
30142         (wz constraint): Likewise.
30144         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30145         -mdebug=reg, print wg, wl, wx, and wz constraints.
30146         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30147         Initialize the reload functions for 64-bit binary/decimal floating
30148         point types.
30149         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30150         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30151         create the buffer on the stack to overcome not having a 32-bit
30152         load and store.
30153         (rs6000_emit_move): Likewise.
30154         (rs6000_secondary_memory_needed_rtx): Likewise.
30155         (rs6000_alloc_sdmode_stack_slot): Likewise.
30156         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30157         via xxlxor, just like DFmode 0.0.
30159         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
30160         define as 1 if we are running on a power7 or newer.
30161         (enum r6000_reg_class_enum): Add new constraints.
30163         * config/rs6000/dfp.md (movsd): Delete, combine with binary
30164         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
30165         with other moves by using conditional constraits (wg).  Use LFIWZX
30166         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
30167         (movsd splitter): Likewise.
30168         (movsd_hardfloat): Likewise.
30169         (movsd_softfloat): Likewise.
30171         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
30172         binary and decimal floating point moves.
30173         (fmove_ok): New attributes to combine binary and decimal floating
30174         point moves, and to combine power6x (mfpgpr) moves along normal
30175         floating moves.
30176         (real_value_to_target): Likewise.
30177         (f32_lr): Likewise.
30178         (f32_lm): Likewise.
30179         (f32_li): Likewise.
30180         (f32_sr): Likewise.
30181         (f32_sm): Likewise.
30182         (f32_si): Likewise.
30183         (movsf): Combine binary and decimal floating point moves.  Combine
30184         power6x (mfpgpr) moves with other moves by using conditional
30185         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
30186         (mov<mode> for SFmode/SDmode); Likewise.
30187         (SFmode/SDmode splitters): Likewise.
30188         (movsf_hardfloat): Likewise.
30189         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
30190         (movsf_softfloat): Likewise.
30191         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
30193         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
30194         wx and wz constraints.
30196         * config/rs6000/constraints.md (wg constraint): New constraint to
30197         return FLOAT_REGS if -mmfpgpr (power6x) was used.
30199         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
30200         constraint.
30202         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30203         -mdebug=reg, print wg, wl, wx, and wz constraints.
30204         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30205         Initialize the reload functions for 64-bit binary/decimal floating
30206         point types.
30207         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30208         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30209         create the buffer on the stack to overcome not having a 32-bit
30210         load and store.
30211         (rs6000_emit_move): Likewise.
30212         (rs6000_secondary_memory_needed_rtx): Likewise.
30213         (rs6000_alloc_sdmode_stack_slot): Likewise.
30214         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30215         via xxlxor, just like DFmode 0.0.
30217         * config/rs6000/dfp.md (movdd): Delete, combine with binary
30218         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
30219         with other moves by using conditional constraits (wg).  Use LFIWZX
30220         and STFIWX for loading SDmode on power7.
30221         (movdd splitters): Likewise.
30222         (movdd_hardfloat32): Likewise.
30223         (movdd_softfloat32): Likewise.
30224         (movdd_hardfloat64_mfpgpr): Likewise.
30225         (movdd_hardfloat64): Likewise.
30226         (movdd_softfloat64): Likewise.
30228         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
30229         64-bit binary and decimal floating point moves.
30230         (FMOVE64X): Likewise.
30231         (movdf): Combine 64-bit binary and decimal floating point moves.
30232         Combine power6x (mfpgpr) moves with other moves by using
30233         conditional constraits (wg).
30234         (mov<mode> for DFmode/DDmode): Likewise.
30235         (DFmode/DDmode splitters): Likewise.
30236         (movdf_hardfloat32): Likewise.
30237         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
30238         (movdf_softfloat32): Likewise.
30239         (movdf_hardfloat64_mfpgpr): Likewise.
30240         (movdf_hardfloat64): Likewise.
30241         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
30242         (movdf_softfloat64): Likewise.
30243         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
30244         (reload_<mode>_load): Move to later in the file so they aren't in
30245         the middle of the floating point move insns.
30246         (reload_<mode>_store): Likewise.
30248         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
30249         constraint.
30251         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
30252         constraint if -mdebug=reg.
30253         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
30254         Enable using dd reload support if needed.
30256         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
30257         binary and decimal floating point moves in rs6000.md.
30258         (movtd_internal): Likewise.
30260         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
30261         decimal floating point moves.
30262         (movtf): Likewise.
30263         (movtf_internal): Likewise.
30264         (mov<mode>_internal, TDmode/TFmode): Likewise.
30265         (movtf_softfloat): Likewise.
30266         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
30268         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
30269         movdi_internal64, using wg constraint for move direct operations.
30270         (movdi_internal64): Likewise.
30272         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
30273         MODES_TIEABLE_P for selected modes.  Print the numerical value of
30274         the various virtual registers. Use GPR/FPR first/last values,
30275         instead of hard coding the register numbers.  Print which modes
30276         have reload functions registered.
30277         (rs6000_option_override_internal): If -mdebug=reg, trace the options
30278         settings before/after setting cpu, target and subtarget settings.
30279         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
30280         and for secondary reload failures in rs6000_secondary_reload_inner.
30281         (rs6000_secondary_reload_fail): Likewise.
30282         (rs6000_secondary_reload_inner): Likewise.
30284         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
30285         macros for first/last GPR and FPR registers.
30286         (LAST_GPR_REGNO): Likewise.
30287         (FIRST_FPR_REGNO): Likewise.
30288         (LAST_FPR_REGNO): Likewise.
30290         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
30291         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
30292         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
30293         (vcond<mode><mode>): Likewise.
30294         (vcondu<mode><mode>): Likewise.
30295         (vector_gtu<mode>): Likewise.
30296         (vector_gte<mode>): Likewise.
30297         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
30298         to prevent the compiler from converting DImode operations to TImode.
30299         (ior<mode>3): Likewise.
30300         (and<mode>3): Likewise.
30301         (one_cmpl<mode>2): Likewise.
30302         (nor<mode>3): Likewise.
30303         (andc<mode>3): Likewise.
30305         * config/rs6000/constraints.md (wt constraint): New constraint
30306         that returns VSX_REGS if TImode is allowed in VSX registers.
30308         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
30309         constant under VSX.
30311         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
30312         similar to TImode, but it is restricted to being in the GPRs.
30314         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
30315         TImode to occupy a single VSX register.
30317         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
30318         -mvsx-timode for power7/power8.
30319         (power7 cpu): Likewise.
30320         (power8 cpu): Likewise.
30322         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
30323         sure that TFmode/TDmode take up two registers if they are ever
30324         allowed in the upper VSX registers.
30325         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
30326         registers.
30327         (rs6000_init_hard_regno_mode_ok): Likewise.
30328         (rs6000_debug_reg_global): Add debugging for PTImode and wt
30329         constraint.  Print if LRA is turned on.
30330         (rs6000_option_override_internal): Give an error if -mvsx-timode
30331         and VSX is not enabled.
30332         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
30333         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
30334         to reg+offset addressing.  Use PTImode when checking offset
30335         addresses for validity.
30336         (reg_offset_addressing_ok_p): Likewise.
30337         (rs6000_legitimate_offset_address_p): Likewise.
30338         (rs6000_legitimize_address): Likewise.
30339         (rs6000_legitimize_reload_address): Likewise.
30340         (rs6000_legitimate_address_p): Likewise.
30341         (rs6000_eliminate_indexed_memrefs): Likewise.
30342         (rs6000_emit_move): Likewise.
30343         (rs6000_secondary_reload): Likewise.
30344         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
30345         reloads to fpr registers to continue to use reg+offset addressing,
30346         but 64-bit reloads to altivec registers need reg+reg addressing.
30347         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
30348         it.  Treat LO_SUM like a PLUS operation.
30349         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
30350         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
30351         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
30352         registers to share a register with a smaller sized type, since VSX
30353         puts scalars in the upper 64-bits.
30354         (print_operand): Add support for PTImode.
30355         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
30356         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
30357         registers, but don't have arithmetic support.
30358         (rs6000_memory_move_cost): Add test for VSX.
30359         (rs6000_opt_masks): Add -mvsx-timode.
30361         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
30362         for TImode.
30363         (VSs): Likewise.
30364         (VSr): Use wt constraint for TImode.
30365         (VSv): Drop TImode support.
30366         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
30367         (vsx_movti_64bit): Likewise.
30368         (vsx_movti_32bit): Likewise.
30369         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
30370         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
30371         one '?' on the appropriate output constraint.  Do not allow TImode
30372         logical operations on 32-bit systems.
30373         (vsx_ior<mode>3): Likewise.
30374         (vsx_xor<mode>3): Likewise.
30375         (vsx_one_cmpl<mode>2): Likewise.
30376         (vsx_nor<mode>3): Likewise.
30377         (vsx_andc<mode>3): Likewise.
30378         (vsx_concat_<mode>): Likewise.
30379         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
30381         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
30382         OPTION_MASK_VSX_TIMODE.
30383         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
30384         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
30386         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
30387         (TI2 iterator): New iterator for TImode, PTImode.
30388         (wd mode attribute): Add values for vector types.
30389         (movti_string): Replace TI move operations with operations for TImode
30390         and PTImode.  Add support for TImode being allowed in VSX registers.
30391         (mov<mode>_string, TImode/PTImode): Likewise.
30392         (movti_ppc64): Likewise.
30393         (mov<mode>_ppc64, TImode/PTImode): Likewise.
30394         (TI mode splitters): Likewise.
30396         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
30397         constraint.
30399 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
30401         PR tree-optimization/56355
30402         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
30403         Also handle integers with undefined overflow.
30405 2013-03-20  Catherine Moore  <clm@codesourcery.com>
30406             Maciej W. Rozycki  <macro@codesourcery.com>
30407             Tom de Vries  <tom@codesourcery.com>
30408             Nathan Sidwell  <nathan@codesourcery.com>
30409             Iain Sandoe  <iain@codesourcery.com>
30410             Nathan Froyd  <froydnj@codesourcery.com>
30411             Chao-ying Fu  <fu@mips.com>
30413         * doc/extend.texi: (micromips, nomicromips, nocompression):
30414         Document new function attributes.
30415         * doc/invoke.texi (minterlink-compressed, mmicromips,
30416         m14k, m14ke, m14kec): Document new options.
30417         (minterlink-mips16): Update documentation.
30418         * doc/md.texi (ZC, ZD): Document new constraints.
30419         * configure.ac (gcc_cv_as_micromips): Check if linker
30420         supports the .set micromips directive.
30421         * configure: Regenerate.
30422         * config.in: Regenerate.
30423         * config/mips/mips-tables.opt: Regenerate.
30424         * config/mips/micromips.md: New file.
30425         * constraints.md (ZC, ZD): New constraints.
30426         * config/mips/predicates.md (movep_src_register): New predicate.
30427         (movep_src_operand): New predicate.
30428         (non_volatile_mem_operand): New predicate.
30429         * config/mips/mips.md (multimem): New type.
30430         (length): Differentiate between 17-bit and 18-bit branch offsets.
30431         (MOVEP1, MOVEP2): New mode iterator.
30432         (mov_<load>l): Use ZC constraint.
30433         (mov_<load>r): Likewise.
30434         (mov_<store>l): Likewise.
30435         (mov_<store>r): Likewise.
30436         (*branch_equality<mode>_inverted): Add microMIPS support.
30437         (*branch_equality<mode>): Likewise.
30438         (*jump_absolute): Likewise.
30439         (indirect_jump_<mode>): Likewise.
30440         (tablejump_<mode>): Likewise.
30441         (<optab>_internal): Likewise.
30442         (sibcall_internal): Likewise.
30443         (sibcall_value_internal): Likewise.
30444         (prefetch): Use constraint ZD.
30445         * config/mips/mips.opt (minterlink-compressed): New option.
30446         (minterlink-mips16): Now an alias for minterlink-compressed.
30447         (mmicromips): New option.
30448         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
30449         (compare_and_swap_12): Likewise.
30450         (sync_add<mode>): Likewise.
30451         (sync_<optab>_12): Likewise.
30452         (sync_old_<optab>_12): Likewise.
30453         (sync_new_<optab>_12): Likewise.
30454         (sync_nand_12): Likewise.
30455         (sync_old_nand_12): Likewise.
30456         (sync_new_nand_12): Likewise.
30457         (sync_sub<mode>): Likewise.
30458         (sync_old_add<mode>): Likewise.
30459         (sync_old_sub<mode>): Likewise.
30460         (sync_new_add<mode>): Likewise.
30461         (sync_new_sub<mode>): Likewise.
30462         (sync_<optab><mode>): Likewise.
30463         (sync_old_<optab><mode>): Likewise.
30464         (sync_new_<optab><mode>): Likewise.
30465         (sync_nand<mode>): Likewise.
30466         (sync_old_nand<mode>): Likewise.
30467         (sync_new_nand<mode>): Likewise.
30468         (sync_lock_test_and_set<mode>): Likewise.
30469         (test_and_set_12): Likewise.
30470         (atomic_compare_and_swap<mode>): Likewise.
30471         (atomic_exchange<mode>_llsc): Likewise.
30472         (atomic_fetch_add<mode>_llsc): Likewise.
30473         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
30474         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
30475         (umips_save_restore_pattern_p): Likewise.
30476         (umips_load_store_pair_p): Likewise.
30477         (umips_output_load_store_pair): Likewise.
30478         (umips_movep_target_p): Likewise.
30479         (umips_12bit_offset_address_p): Likewise.
30480         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
30481         (mips_base_mips16): Rename this...
30482         (mips_base_compression_flags): ...to this. Update all uses.
30483         (mips_attribute_table): Add micromips, nomicromips and nocompression.
30484         (mips_mips16_decl_p): Delete.
30485         (mips_nomips16_decl_p): Delete.
30486         (mips_get_compress_on_flags): New function.
30487         (mips_get_compress_off_flags): New function.
30488         (mips_get_compress_mode): New function.
30489         (mips_get_compress_on_name): New function.
30490         (mips_get_compress_off_name): New function.
30491         (mips_insert_attributes): Support multiple compression types.
30492         (mips_merge_decl_attributes): Likewise.
30493         (umips_12bit_offset_address_p): New function.
30494         (mips_start_function_definition): Emit .set micromips directive.
30495         (mips_call_may_need_jalx_p): New function.
30496         (mips_function_ok_for_sibcall): Add microMIPS support.
30497         (mips_print_operand_punctuation): Support short delay slots and
30498         compact jumps.
30499         (umips_swm_mask, umips_swm_encoding): New.
30500         (umips_build_save_restore): New function.
30501         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
30502         (was_mips16_p): Remove.
30503         (old_compression_mode): New.
30504         (mips_set_compression_mode): New function.
30505         (mips_set_current_function): Add microMIPS support.
30506         (mips_option_override): Likewise.
30507         (umips_save_restore_pattern_p): New function.
30508         (umips_output_save_restore): New function.
30509         (umips_load_store_pair_p_1): New function.
30510         (umips_load_store_pair_p): New function.
30511         (umips_output_load_store_pair_1): New function.
30512         (umips_output_load_store_pair): New function.
30513         (umips_movep_target_p) New function.
30514         (mips_prepare_pch_save): Add microMIPS support.
30515         * config/mips/mips.h (TARGET_COMPRESSION): New.
30516         (TARGET_CPU_CPP_BUILTINS): Update macro
30517         to use new compression flags and to support microMIPS.
30518         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
30519         (MIPS_ARCH_FLOAT_SPEC): Likewise.
30520         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
30521         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
30522         (ASM_SPEC): Support mmicromips and mno-micromips.
30523         (M16STORE_REG_P): New macro.
30524         (MIPS_CALL): Support TARGET_MICROMIPS.
30525         (MICROMIPS_J): New macro.
30526         (mips_base_mips16): Rename this...
30527         (mips_base_compression_flags): ...to this.
30528         (UMIPS_12BIT_OFFSET_P): New macro.
30529         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
30530         (MULTILIB_DIRNAMES): Likewise.
30531 2013-03-20  Richard Biener  <rguenther@suse.de>
30533         PR tree-optimization/56661
30534         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
30535         the result does not have to be distinct.
30537 2013-03-20  Richard Biener  <rguenther@suse.de>
30539         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
30540         remap_gimple_op_r.
30542 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30543             Steven Bosscher  <steven@gcc.gnu.org>
30545         PR rtl-optimization/56605
30546         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
30548 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
30550         PR bootstrap/56656
30551         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
30552         that require movd instead of movq.
30554 2013-03-20  Richard Biener  <rguenther@suse.de>
30556         * tree-ssa-structalias.c (struct variable_info): Add pointer
30557         to the first field of an aggregate with sub-vars.  Make
30558         this and the pointer to the next subfield its ID.
30559         (vi_next): New function.
30560         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
30561         storedanything_id, integer_id): Increment by one.
30562         (new_var_info, get_call_vi, lookup_call_clobber_vi,
30563         get_call_clobber_vi): Adjust.
30564         (solution_set_expand): Simplify and speedup.
30565         (solution_set_add): Inline into ...
30566         (set_union_with_increment): ... this.  Adjust accordingly.
30567         (do_sd_constraint): Likewise.
30568         (do_ds_constraint): Likewise.
30569         (do_complex_constraint): Simplify.
30570         (build_pred_graph): Adjust.
30571         (solve_graph): Likewise.  Simplify and speedup.
30572         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
30573         get_constraint_for_component_ref, get_constraint_for_1,
30574         first_vi_for_offset, first_or_preceding_vi_for_offset,
30575         create_function_info_for, create_variable_info_for_1,
30576         create_variable_info_for, intra_create_variable_infos): Adjust.
30577         (init_base_vars): Push NULL for ID zero.
30578         (compute_points_to_sets): Adjust.
30580 2013-03-20  Richard Biener  <rguenther@suse.de>
30582         * cfgloop.c (verify_loop_structure): Streamline and avoid
30583         ICEing on corrupt loop tree.
30584         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
30585         loop tree.
30587 2013-03-20  Richard Biener  <rguenther@suse.de>
30589         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
30590         check whether an SSA update is needed.
30592 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
30594         * config/mips/constraints.md (T): Rename to...
30595         (Yf): ...this.
30596         (U): Rename to...
30597         (Yd): ...this.
30598         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
30599         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
30601 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
30603         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
30604         (*subsi3_carryin_uxtw): Likewise.
30606 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
30608         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
30609         (*rorsi3_insn_uxtw): Likewise.
30611 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
30613         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
30614         (*extrsi5_insn_uxtw): Likewise.
30616 2013-03-19  Richard Biener  <rguenther@suse.de>
30618         PR tree-optimization/56273
30619         * passes.c (init_optimization_passes): Move second VRP after DOM.
30621 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
30623         * config/i386/i386.md (*movti_internal): Merge from
30624         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
30625         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
30626         nox64 isa attributes.
30628 2013-03-18  Richard Biener  <rguenther@suse.de>
30630         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
30631         (unite): Likewise.
30632         (merge_node_constraints): Likewise.
30633         (build_succ_graph): Likewise.
30634         (valid_graph_edge): Inline into single caller.
30635         (unify_nodes): Likewise.  Use bitmap_set_bit return value
30636         and cache varinfo.
30637         (scc_visit): Fix formatting and variable use.
30638         (do_sd_constraint): Use gcc_checking_assert.
30639         (do_ds_constraint): Likewise.
30640         (do_complex_constraint): Likewise.
30641         (condense_visit): Likewise.  Cleanup.
30642         (dump_pred_graph): New function.
30643         (perform_var_substitution): Dump the pred-graph before
30644         variable substitution.
30645         (find_equivalent_node): Use gcc_checking_assert.
30646         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
30648 2013-03-18  Richard Biener  <rguenther@suse.de>
30650         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30651         Remove cond_expr_stmt_list argument and do not gimplify the
30652         built expression.
30653         (vect_loop_versioning): Adjust.
30654         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
30655         Cleanup to use less temporaries.
30656         (vect_create_data_ref_ptr): Cleanup.
30658 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
30660         PR tree-optimization/56635
30661         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
30662         require types_compatible_p types.
30664 2013-03-18  Nick Clifton  <nickc@redhat.com>
30666         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
30667         spurious backslash.
30669         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
30670         Add missing line to comment describing function.
30672 2013-03-18  Richard Biener  <rguenther@suse.de>
30674         PR tree-optimization/56210
30675         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30676         Handle string / character search functions.
30677         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30679 2013-03-18  Richard Biener  <rguenther@suse.de>
30681         PR middle-end/56483
30682         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
30683         and implement properly.
30684         * gimple.h (gimple_cond_single_var_p): Remove.
30686 2013-03-18  Richard Biener  <rguenther@suse.de>
30688         * tree-data-ref.h (find_data_references_in_loop): Declare.
30689         * tree-data-ref.c (get_references_in_stmt): Use a stack
30690         vector pre-allocated in the callers.
30691         (find_data_references_in_stmt): Adjust.
30692         (graphite_find_data_references_in_stmt): Likewise.
30693         (create_rdg_vertices): Likewise.
30694         (find_data_references_in_loop): Export.
30695         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
30696         Compute dependences here...
30697         (vect_analyze_data_refs): ...not here.  When we encounter
30698         a non-vectorizable data reference in basic-block vectorization
30699         truncate the data reference vector.  Do not bother to
30700         fixup data-dependence information for gather loads.
30701         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
30702         of data references, as reported.
30704 2013-03-18  Richard Biener  <rguenther@suse.de>
30706         PR tree-optimization/3713
30707         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
30708         has_constants and expr.
30709         (stmt_has_constants): Properly valueize SSA names when deciding
30710         whether the stmt has constants.
30712 2013-03-18  Richard Biener  <rguenther@suse.de>
30714         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
30715         whole function when there is nothing to do.
30716         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
30717         * tree-vectorizer.c (vectorize_loops): Update virtual and
30718         loop-closed SSA once.
30719         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
30721 2013-03-18  Richard Biener  <rguenther@suse.de>
30723         PR middle-end/56113
30724         * domwalk.c (bb_postorder): New global static.
30725         (cmp_bb_postorder): New function.
30726         (walk_dominator_tree): Replace scheme imposing an order for
30727         visiting dominator sons by one sorting them at the time they
30728         are pushed on the stack.
30730 2013-03-18  Richard Biener  <rguenther@suse.de>
30732         PR tree-optimization/39326
30733         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
30734         (struct mem_ref): Replace mem member with ao_ref typed member.
30735         (MEM_ANALYZABLE): Adjust.
30736         (memref_eq): Likewise.
30737         (mem_ref_alloc): Likewise.
30738         (gather_mem_refs_stmt): Likewise.
30739         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
30740         (execute_sm_if_changed_flag_set): Adjust.
30741         (execute_sm): Likewise.
30742         (ref_always_accessed_p): Likewise.
30743         (refs_independent_p): Likewise.
30744         (can_sm_ref_p): Likewise.
30746 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
30748         PR c/56566
30749         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
30750         return 1 even for !unsignedp.
30752 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
30754         * config/i386/i386.md (isa): Add x64 and nox64.
30755         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
30756         (*pushtf): Enable *roF alternative for x64 isa only.
30757         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
30758         mode attribute of integer alternatives to DImode for TARGET_64BIT.
30759         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
30760         (*movtf_internal): Merge from *movtf_internal_rex64 and
30761         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
30762         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
30763         nox64 isa attributes.
30764         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
30765         nox64 isa attributes.
30766         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
30768 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
30770         * config/alpha/alpha.c (TARGET_LRA_P): New define.
30772 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
30774         PR target/56640
30775         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
30776         class names.  Remove trailing comma after "ALL_REGS".
30778 2013-03-16  Jan Hubicka  <jh@suse.cz>
30780         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
30781         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
30782         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
30783         of cgraph_get_create_node.
30784         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
30786 2013-03-16  Jason Merrill  <jason@redhat.com>
30788         PR debug/49090
30789         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
30790         with DW_AT_default_value.
30792 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
30794         * BASE-VER: Set to 4.9.0.
30796 2013-03-14  Andi Kleen  <ak@linux.intel.com>
30798         PR target/56619
30799         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
30800         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
30801         Document _x* TSX intrinsics.
30803 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
30804             David Holsgrove  <david.holsgrove@xilinx.com>
30806         * configure.ac: Add MicroBlaze TLS support detection.
30807         * configure: Regenerate.
30808         * config/microblaze/microblaze-protos.h
30809         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
30810         symbol_mentioned_p, label_mentioned_p): Add prototypes.
30811         * config/microblaze/microblaze.c (microblaze_address_type): Add
30812         ADDRESS_TLS and tls_reloc address types.
30813         (microblaze_address_info): Add tls_reloc.
30814         (TARGET_HAVE_TLS): Define.
30815         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
30816          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
30817          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
30818         load_tls_operand,  microblaze_call_tls_get_addr,
30819         microblaze_legitimize_tls_address): New functions.
30820         (microblaze_classify_unspec): Handle UNSPEC_TLS.
30821         (get_base_reg): Use microblaze_tls_symbol_p.
30822         (microblaze_classify_address): Handle TLS.
30823         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
30824         label_mentioned_p and microblaze_tls_referenced_p.
30825         (microblaze_legitimize_address): Handle TLS.
30826         (microblaze_address_insns): Handle ADDRESS_TLS.
30827         (pic_address_needs_scratch): Handle TLS.
30828         (print_operand_address): Handle TLS.
30829         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
30830         (microblaze_expand_move): Handle TLS.
30831         (microblaze_legitimate_constant_p): Check
30832         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
30833         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
30834         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
30835         (PIC_OFFSET_TABLE_REGNUM): Set.
30836         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
30837         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
30838         (addsi3, movsi_internal2, movdf_internal): Update constraints
30839         * config/microblaze/predicates.md (arith_plus_operand): Define
30840         (move_operand): Redefine as move_src_operand,
30841         check microblaze_tls_referenced_p.
30843 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
30845         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
30846         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
30848 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
30850         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
30851         CC mode for AND.
30853 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
30855         PR tree-optimization/53265
30856         * common.opt (Waggressive-loop-optimizations): New option.
30857         * tree-ssa-loop-niter.c: Include tree-pass.h.
30858         (do_warn_aggressive_loop_optimizations): New function.
30859         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
30860         if number_of_latch_executions returned constant.
30861         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
30862         early.  If number_of_latch_executions returned constant, set
30863         nb_iterations_upper_bound back to it.
30864         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
30865         field.
30866         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
30867         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
30869         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
30870         (MULTILIB_OSDIRNAMES): Set.
30871         * genmultilib: If defaultosdirname doesn't start with :: , set
30872         defaultosdirname2 instead, clear it and emit two . multilib_raw
30873         entries instead of just one.
30875 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
30877         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
30878         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
30879         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
30880         (SUBTARGET_OVERRIDE_OPTIONS): New.
30882 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
30884         PR target/49880
30885         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
30886         (musermode): Convert to Var(TARGET_USERMODE).
30887         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
30888         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
30889         * config/sh/sh.c (sh_option_override): Use
30890         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
30891         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
30892         condition.
30893         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
30894         TARGET_SH4.
30895         (udivsi3_i4_single, divsi3_i4_single): Use
30896         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
30898 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
30900         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
30901         default setting.
30903 2013-03-13  Richard Biener  <rguenther@suse.de>
30905         PR tree-optimization/56608
30906         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
30907         calls when vectorizing basic-blocks.
30909 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
30911         PR plugins/45078
30912         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
30913         tm_file.
30915 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
30917         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
30919 2013-03-11  Jan Hubicka  <jh@suse.cz>
30921         PR lto/56557
30922         * lto-streamer-out.c (output_symbol_p): Skip references from
30923         constructors of external variables.
30925 2013-03-11  Jan Hubicka  <jh@suse.cz>
30927         PR middle-end/56571
30928         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
30929         from pseudos.
30930         * emit-rtl.c (verify_rtx_sharing): Likewise.
30931         (copy_insn_1): Likewise.
30932         * rtl.c (copy_rtx): Likewise.
30934 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
30936         PR target/56591
30937         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
30938         output_operand_lossage message.
30940 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
30942         PR target/56470
30943         * arm.c (shift_op): Validate RTL pattern on the fly.
30944         (arm_print_operand, case 'S'): Don't use shift_operator to validate
30945         the RTL.
30947 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30949         PR target/56347
30950         * config/pa/pa.md (call_value): Check for calls to powf and direct to
30951         new call patterns that clobber %fr12.
30952         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
30953         split and postreload patterns.
30954         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
30955         registers %fr12 and %fr12R as call used.
30957 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
30959         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
30960         (canon_address, record_store, replace_read, check_mem_read_rtx,
30961         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
30962         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
30963         rest_of_handle_dse): Likewise.
30965 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
30967         PR middle-end/56524
30968         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
30969         Add base_optabs.
30970         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
30971         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
30972         (save_optabs_if_changed): Replace with...
30973         (init_tree_optimization_optabs): ...this.
30974         * optabs.c (save_optabs_if_changed): Rename to...
30975         (init_tree_optimization_optabs): ...this.  Take the optimization node
30976         as argument.  Do nothing if the base optabs are already correct.
30977         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
30978         to recompute optabs.
30979         * function.h (function): Remove optabs field.
30980         * function.c (invoke_set_current_function_hook): Call
30981         init_tree_optimization_optabs.  Use the result to initialize
30982         this_fn_optabs.
30984 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
30986         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
30987         if GTMA_HAS_NO_INSTRUMENTATION.
30988         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
30989         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
30990         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
30991         * gimple-pretty-print.c (dump_gimple_transaction): Handle
30992         GTMA_HAS_NO_INSTRUMENTATION.
30994 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
30996         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
30997         libasan_preinit.o.
30999 2013-03-08  Marek Polacek  <polacek@redhat.com>
31000             Jakub Jelinek  <jakub@redhat.com>
31002         PR tree-optimization/56478
31003         * predict.c (is_comparison_with_loop_invariant_p): Change the
31004         type of loop_step to tree.
31005         (predict_loops): Adjust.
31006         (predict_iv_comparison): Perform the computations on double_ints.
31008 2013-03-08  Richard Biener  <rguenther@suse.de>
31010         PR tree-optimization/56570
31011         * tree-cfg.c (verify_expr_location_1): Verify locations for
31012         DECL_DEBUG_EXPR.
31013         * tree-sra.c (create_access_replacement): Strip locations
31014         from DECL_DEBUG_EXPRs.
31016 2013-03-08  Richard Biener  <rguenther@suse.de>
31018         * tree-inline.c (expand_call_inline): Do not associate
31019         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
31020         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
31022 2013-03-08  Richard Biener  <rguenther@suse.de>
31024         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
31025         or block changes with -Og.  Fix for location / block encoding
31026         changes and PHI arguments with locations.
31028 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
31030         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
31031         for all counters.
31032         (struct output_info): Likewise.
31033         (register_overhead): Remove bad gcc_assert.
31034         (bitmap_find_bit): If there is only a single bitmap element, do not
31035         count a miss as a search.
31036         (print_statistics): Update for counter type changes.
31037         (dump_bitmap_statistics): Likewise.  Print headers such that they
31038         are properly lined up with the printed counters.
31040 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
31042         PR tree-optimization/56559
31043         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
31044         check that it has only a single use.
31046 2013-03-07  Richard Biener  <rguenther@suse.de>
31048         * doc/invoke.texi (fwhole-program): Discourage use in combination
31049         with -flto.
31051 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
31053         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
31055         PR tree-optimization/56539
31056         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
31057         instead of GSI_CONTINUE_LINKING as last argument to
31058         force_gimple_operand_gsi.  Adjust function comment.
31060         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
31061         aarch64-cores.def.
31063         PR middle-end/56548
31064         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
31065         promoted mode, convert the result back to the original mode.
31067 2013-03-06  Richard Biener  <rguenther@suse.de>
31069         PR middle-end/56294
31070         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
31071         (insert_updated_phi_nodes_compare_uids): New function.
31072         (update_ssa): Sort symbols_to_rename after UID before
31073         traversing it to insert PHI nodes.
31075 2013-03-06  Richard Biener  <rguenther@suse.de>
31077         PR middle-end/50494
31078         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
31079         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
31081         Revert
31082         2013-02-13  Richard Biener  <rguenther@suse.de>
31084         PR lto/50494
31085         * varasm.c (output_constant_def_1): Get the decl representing
31086         the constant as argument.
31087         (output_constant_def): Wrap output_constant_def_1.
31088         (make_decl_rtl): Use output_constant_def_1 with the decl
31089         representing the constant.
31090         (build_constant_desc): Optionally re-use a decl already
31091         representing the constant.
31092         (tree_output_constant_def): Adjust.
31094 2013-03-06  Joey Ye  <joey.ye@arm.com>
31096         PR lto/50293
31097         * gcc.c (convert_white_space): New function.
31098         (main): Handles white space in function name.
31100 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
31102         PR target/56529
31103         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
31104         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
31105         to SH_DIV_CALL_TABLE for TARGET_SH2.
31106         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
31107         list.
31108         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
31109         call-table options.
31111 2013-03-05  Sterling Augustine  <saugustine@google.com>
31112             Cary Coutant  <ccoutant@google.com>
31114         PR debug/55364
31115         * dwarf2out.c (resolve_addr): Don't call
31116         remove_loc_list_addr_table_entries a second time for the same
31117         expression.
31119 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31121         PR debug/56510
31122         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
31123         (avoid_complex_debug_insns): New function.
31124         (expand_debug_locations): Call it.
31126         PR rtl-optimization/56484
31127         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
31128         lifetimes of hard registers on small register class machines.
31130 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
31132         * config/microblaze/microblaze-protos.h: Rename
31133         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
31134         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
31135         fast_interrupt.
31136         (microblaze_fast_interrupt_function_p): New function.
31137         (microblaze_is_interrupt_handler): Rename to
31138         microblaze_is_interrupt_variant and add fast_interrupt check.
31139         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
31140         (save_restore_insns): Likewise.
31141         (compute_frame_size): Likewise.
31142         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
31143         (microblaze_globalize_label): Likewise.
31144         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
31145         * config/microblaze/microblaze.md: Use wrapper
31146         microblaze_is_interrupt_variant.
31148 2013-03-05  Kai Tietz  <ktietz@redhat.com>
31150         * sdbout.c (sdbout_one_type): Switch to current function's section
31151         supporting cold/hot.
31153 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
31155         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
31156         -mxl-reorder.
31158 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31160         PR middle-end/56461
31161         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
31162         if VALGRIND_GET_VBITS is defined, temporarily make object
31163         memory all defined, and restore previous valgrind addressability
31164         and definability afterwards.  Free this_object at the end.
31166         PR middle-end/56461
31167         * lra.c (lra): Call lra_clear_live_ranges if live_p,
31168         right before calling lra_create_live_ranges, also call it
31169         when clearing live_p.  Only call lra_clear_live_ranges
31170         at the end if live_p.
31172         PR middle-end/56461
31173         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
31175 2013-03-05  Richard Biener  <rguenther@suse.de>
31177         PR tree-optimization/56521
31178         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
31179         value-id.
31181 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
31183         PR c++/55135
31184         * except.h (remove_unreachable_eh_regions): New prototype.
31185         * except.c (remove_eh_handler_splicer): New function, split out
31186         of remove_eh_handler.
31187         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
31188         warning about running it on many EH regions one at a time.
31189         (remove_unreachable_eh_regions_worker): New function, walk the
31190         EH tree in depth-first order and remove non-marked regions.
31191         (remove_unreachable_eh_regions): New function.
31192         * tree-eh.c (mark_reachable_handlers): New function, split out
31193         from remove_unreachable_handlers.
31194         (remove_unreachable_handlers): Use mark_reachable_handlers and
31195         remove_unreachable_eh_regions.
31196         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
31197         and remove_unreachable_eh_regions.
31199 2013-03-05  Richard Biener  <rguenther@suse.de>
31201         PR middle-end/56525
31202         * loop-init.c (fix_loop_structure): Remove loops in two stages,
31203         not freeing them until the end.
31205 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31207         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
31209 2013-03-05  Richard Biener  <rguenther@suse.de>
31211         PR tree-optimization/56270
31212         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
31213         of loads after scheduling an SLP instance.
31215 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31217         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
31218         tic6x.exp.
31219         (check_gcc_parallelize): Run guality.exp as a separate job from
31220         vect.exp with unsorted.exp and $(dg_target_exps) separately from
31221         struct-layout-1.exp with stackalign.exp.
31223         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
31225         PR middle-end/56461
31226         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
31227         load_index sbitmap even if some bit in it isn't set.
31229         PR middle-end/56461
31230         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
31231         (discover_iteration_bound_by_body_walk): Change queues to
31232         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
31233         spelling in comment.  Call safe_push on queues[bound_index] directly.
31234         Release queues[queue_index] in every iteration unconditionally.
31235         Release bounds vector.
31237         PR middle-end/56461
31238         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
31239         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
31240         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
31241         inner_phis vector.
31243 2013-03-05  Richard Biener  <rguenther@suse.de>
31245         PR lto/56515
31246         * tree-inline.c (remap_blocks_to_null): New function.
31247         (expand_call_inline): When expanding a call stmt without
31248         an associated block inline remap all callee blocks to NULL.
31250 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
31252         PR rtl-optimization/56494
31253         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
31254         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
31255         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
31257         PR middle-end/56461
31258         * sel-sched-ir.c (free_sched_pools): Release
31259         succs_info_pool.stack[succs_info_pool.max_top] vectors too
31260         if succs_info_pool.max_top isn't -1.
31262         PR bootstrap/56509
31263         * opts.c (opts_obstack, opts_concat): Moved to...
31264         * opts-common.c (opts_obstack, opts_concat): ... here.
31266 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
31268         PR middle-end/56461
31269         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
31271 2013-03-04  Martin Jambor  <mjambor@suse.cz>
31273         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
31274         all appropriate places.
31276 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
31278         PR tree-optimization/56424
31279         * ipa-split.c (split_function): Do not set the RSO flag if result is
31280         not by reference and its type is a register type.
31282 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
31284         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
31285         (microblaze_legitimate_pic_operand): Likewise
31286         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
31287         new function microblaze_legitimate_pic_operand
31288         * config/microblaze/microblaze-protos.h
31289         (microblaze_legitimate_pic_operand): Declare.
31291 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
31293         * config/microblaze/predicates.md (call_insn_simple_operand):
31294         New predicate for supported rtx code types.
31295         * config/microblaze/microblaze.md (call_internal1): Use
31296         call_insn_simple_operand predicate.
31298 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
31300         PR middle-end/56461
31301         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
31302         partitions.ordered_remove.
31304         PR middle-end/56461
31305         * tree-vect-stmts.c (vectorizable_conversion): Don't call
31306         vec_oprnds0.create (1) for modifier == NONE.
31308         PR middle-end/56461
31309         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
31310         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
31311         vec_oprnds1 right before pushing anything to it for
31312         scalar_shift_arg.
31314         PR middle-end/56461
31315         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
31316         set nbbs to 0 instead of having separate code path.
31317         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
31318         instead of false as last argument if returning NULL.
31320 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
31322         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
31323         the attribute is now called "target" instead of "option".
31324         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
31325         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
31326         attribute/pragma name for TARGET_OPTION_VALID_P and
31327         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
31328         * doc/tm.texi: Regenerated.
31330 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
31332         * config/microblaze/microblaze.c:
31333         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
31334         * config/microblaze/microblaze.h: Add -mxl-reorder to
31335         DRIVER_SELF_SPECS.
31336         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
31337         instructions emitted if TARGET_REORDER.
31338         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
31339         or 0 for -m/-mno case, but initialises as 2 to detect default use case
31340         separately.
31342 2013-03-01  Xinliang David Li  <davidxl@google.com>
31344         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
31345         walk length.
31347 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
31349         PR middle-end/56461
31350         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
31351         vector even when returning true.  Fix up function comment formatting.
31353         PR middle-end/56461
31354         * ira-build.c (ira_loop_nodes_count): New variable.
31355         (create_loop_tree_nodes): Initialize it.
31356         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
31358         PR middle-end/56461
31359         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
31360         method on dr_chain and result_chain.
31361         * tree-vect-stmts.c (vectorizable_store): Only call
31362         result_chain.create if j == 0.
31364         PR middle-end/56461
31365         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
31366         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
31367         before overwriting it.
31369 2013-03-01  Tobias Burnus  <burnus@net-b.de>
31371         * doc/extended.texi (C Extensions): Change order in @menu
31372         to match @node.
31373         (Other MIPS Built-in Functions): Move last MIPS entry before
31374         "picoChip Built-in Functions".
31375         (SH Built-in Functions): Move after RX Built-in Functions.
31376         * doc/gcc.texi (Introduction): Change order in @menu
31377         to match @node.
31378         * doc/md.texi (Constraints): Ditto.
31379         * gty.texi (Type Information): Ditto.
31380         (User-provided marking routines for template types): Make
31381         subsection.
31382         * doc/invoke.texi (AArch64 Options): Move before
31383         "Adapteva Epiphany Options".
31385 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
31386             Jakub Jelinek  <jakub@redhat.com>
31388         PR sanitizer/56454
31389         * asan.c (gate_asan): Lookup no_sanitize_address instead of
31390         no_address_safety_analysis attribute.
31391         * doc/extend.texi (no_address_safety_attribute): Rename to
31392         no_sanitize_address attribute, mention no_address_safety_analysis
31393         attribute as deprecated alias.
31395 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
31397         PR middle-end/56461
31398         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
31399         type to vec<vec<tree> > *.
31400         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
31401         to be vec<tree> instead of vec<tree> *, set vec_defs
31402         to vNULL and call vec_defs.create (number_of_vects), adjust other
31403         uses of vec_defs.
31404         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
31405         vectorizable_condition): Adjust vect_get_slp_defs callers.
31407 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
31409         * config/aarch64/aarch64.c
31410         (aarch64_float_const_representable): Remove unused variable.
31412 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
31414         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
31416 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
31418         * config/aarch64/aarch64-builtins.c
31419         (aarch64_init_simd_builtins): Make static.
31421 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
31423         * config/aarch64/aarch64.c
31424         (aarch64_simd_make_constant): Make static.
31426 2013-02-28  Martin Jambor  <mjambor@suse.cz>
31428         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
31429         with no initialization to the RHS of debug statements.
31431 2013-02-28  Martin Jambor  <mjambor@suse.cz>
31433         PR tree-optimization/56294
31434         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
31435         Adjust dumping.
31436         (get_access_replacement): Do not call create_access_replacement.
31437         Assert a replacement exists.
31438         (get_repl_default_def_ssa_name): Create the replacement declaration
31439         itself.
31441 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31443         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
31444         final_end_function.
31446 2013-02-28  Marek Polacek  <polacek@redhat.com>
31448         PR rtl-optimization/56466
31449         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
31450         if we're changing a loop.
31451         (peel_loops_completely): Likewise.
31453 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
31455         PR c++/55813
31456         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
31458 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
31460         PR target/56445
31461         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
31462         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
31463         INTX_FTYPE_FX, FX_FTYPE_INTX.
31464         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
31466 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
31468         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
31469         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
31470         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
31471         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
31472         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
31473         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
31474         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
31475         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
31476         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
31477         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
31478         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
31479         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
31480         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
31481         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
31482         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
31483         (avrxmega6): Increase max flash segments from 5 to 6.
31484         * config/avr/t-multilib: Regenerate.
31485         * config/avr/avr-tables.opt: Regenerate.
31486         * doc/avr-mmcu.texi: Regenerate.
31488 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
31490         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
31491         (avr_device_to_arch): Rename to avr_device_to_ld.
31492         (avr_device_to_as): New prototype.
31493         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
31494         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
31495         * config/avr/driver-avr.c (avr_device_to_as): New.
31496         (avr_device_to_arch): Rename to avr_device_to_ld.
31498 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
31500         PR middle-end/56461
31501         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
31502         method on dr_chain and result_chain.
31504         PR middle-end/56461
31505         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
31506         pointer_set_destroy on not_executed_last_iteration.
31508         PR middle-end/56461
31509         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
31511         PR middle-end/56461
31512         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
31513         FOR_EACH_DEFINED_FUNCTION when freeing state.
31515         PR middle-end/56461
31516         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
31517         pool_free.
31518         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
31519         overwriting it.
31521         PR middle-end/56461
31522         * ipa-cp.c (decide_whether_version_node): Call vec_free on
31523         known_aggs[i].items and release known_aggs vector.
31525         PR middle-end/56461
31526         * ipa-reference.c (propagate): Free node_info even for alias nodes.
31528 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
31530         * config/microblaze/microblaze.c (microblaze_emit_compare):
31531         Use xor for EQ/NE comparisions.
31532         * config/microblaze/microblaze.md (cstoresf4): Add constraints
31533         (cbranchsf4): Adjust operator to comparison_operator.
31535 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
31537         PR middle-end/56461
31538         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
31539         vector.
31540         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
31541         vec_safe_push, always update *slot.
31542         (redirect_edge_var_map_clear): Use vec_free.
31543         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
31544         (free_var_map_entry): Use vec_free.
31545         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
31546         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
31548 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
31550         PR middle-end/45472
31551         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
31552         when the may_trap_p bit of the exprs being merged differs.
31553         Reorder tests for speculativeness in the logical and operator.
31555 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
31557         * incpath.c (add_standard_paths): Use reconcat instead of concat
31558         where appropriate and avoid leaking memory.
31560         * opts.h: Include obstack.h.
31561         (opts_concat): New prototype.
31562         (opts_obstack): New declaration.
31563         * opts.c (opts_concat): New function.
31564         (opts_obstack): New variable.
31565         (init_options_struct): Call gcc_init_obstack on opts_obstack.
31566         (finish_options): Use opts_concat instead of concat
31567         and XOBNEWVEC instead of XNEWVEC.
31568         * opts-common.c (generate_canonical_option, decode_cmdline_option,
31569         generate_option): Likewise.
31570         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
31571         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
31573         PR target/56455
31574         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
31575         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
31577 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
31579         PR middle-end/56461
31580         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
31582 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
31584         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
31585         (arm_block_move_unaligned_straight): Likewise.
31586         (arm_adjust_block_mem): Likewise.
31588 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
31590         PR target/48901
31591         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
31592         temp, cond and label.
31593         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
31595         PR target/52500
31596         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
31597         * config/c6x/c6x.h (dbx_register_map): Update declaration.
31599         PR target/52501
31600         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
31601         of prologue/epilogue functions.
31603         PR target/52550
31604         * config/tilegx/tilegx.c (tilegx_expand_prologue):
31605         Remove unused variable cfa_offset.
31606         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
31608         PR target/54639
31609         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
31610         type promotion to unsigned.
31612         PR target/54640
31613         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
31614         for HOST_WIDE_INT of 32 bit / same size as int.
31615         (arm_block_move_unaligned_straight): Likewise.
31616         (arm_adjust_block_mem): Likewise.
31618         PR target/54662
31619         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
31620         ALL_CFLAGS.
31622 2013-02-26  Marek Polacek  <polacek@redhat.com>
31624         PR tree-optimization/56426
31625         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
31627 2013-02-26  Richard Biener  <rguenther@suse.de>
31629         PR target/56444
31630         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
31631         unused variable loops.
31633 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
31635         PR tree-optimization/56448
31636         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
31637         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
31638         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
31639         later operands of the references, or even first operand for
31640         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
31642         PR tree-optimization/56443
31643         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
31644         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
31645         to type_for_mode langhook.
31647 2013-02-25  Matt Turner  <mattst88@gmail.com>
31649         * doc/invoke.texi: Document r4700.
31651 2013-02-25  Richard Biener  <rguenther@suse.de>
31653         PR tree-optimization/56175
31654         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
31655         split out from ...
31656         (simplify_bitwise_binary): ... here.  Also guard the conversion
31657         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
31659 2013-02-25  Catherine Moore  <clm@codesourcery.com>
31661         Revert:
31662         2013-02-24  Catherine Moore  <clm@codesourcery.com>
31663             Maciej W. Rozycki  <macro@codesourcery.com>
31664             Tom de Vries  <tom@codesourcery.com>
31665             Nathan Sidwell  <nathan@codesourcery.com>
31666             Iain Sandoe  <iain@codesourcery.com>
31667             Nathan Froyd  <froydnj@codesourcery.com>
31668             Chao-ying Fu  <fu@mips.com>
31670         * doc/extend.texi: (micromips, nomicromips, nocompression):
31671         Document new function attributes.
31672         * doc/invoke.texi (minterlink-compressed, mmicromips,
31673         m14k, m14ke, m14kec): Document new options.
31674         (minterlink-mips16): Update documentation.
31675         * doc/md.texi (ZC, ZD): Document new constraints.
31676         * configure.ac (gcc_cv_as_micromips): Check if linker
31677         supports the .set micromips directive.
31678         * configure: Regenerate.
31679         * config.in: Regenerate.
31680         * config/mips/mips-tables.opt: Regenerate.
31681         * config/mips/micromips.md: New file.
31682         * constraints.md (ZC, AD): New constraints.
31683         * config/mips/predicates.md (movep_src_register): New predicate.
31684         (movep_src_operand): New predicate.
31685         (non_volatile_mem_operand): New predicate.
31686         * config/mips/mips.md (multimem): New type.
31687         (length): Differentiate between 17-bit and 18-bit branch offsets.
31688         (MOVEP1, MOVEP2): New mode iterator.
31689         (mov_<load>l): Use ZC constraint.
31690         (mov_<load>r): Likewise.
31691         (mov_<store>l): Likewise.
31692         (mov_<store>r): Likewise.
31693         (*branch_equality<mode>_inverted): Add microMIPS support.
31694         (*branch_equality<mode>): Likewise.
31695         (*jump_absolute): Likewise.
31696         (indirect_jump_<mode>): Likewise.
31697         (tablejump_<mode>): Likewise.
31698         (<optab>_internal): Likewise.
31699         (sibcall_internal): Likewise.
31700         (sibcall_value_internal): Likewise.
31701         (prefetch): Use constraint ZD.
31702         * config/mips/mips.opt (minterlink-compressed): New option.
31703         (minterlink-mips16): Now an alias for minterlink-compressed.
31704         (mmicromips): New option.
31705         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31706         (compare_and_swap_12): Likewise.
31707         (sync_add<mode>): Likewise.
31708         (sync_<optab>_12): Likewise.
31709         (sync_old_<optab>_12): Likewise.
31710         (sync_new_<optab>_12): Likewise.
31711         (sync_nand_12): Likewise.
31712         (sync_old_nand_12): Likewise.
31713         (sync_new_nand_12): Likewise.
31714         (sync_sub<mode>): Likewise.
31715         (sync_old_add<mode>): Likewise.
31716         (sync_old_sub<mode>): Likewise.
31717         (sync_new_add<mode>): Likewise.
31718         (sync_new_sub<mode>): Likewise.
31719         (sync_<optab><mode>): Likewise.
31720         (sync_old_<optab><mode>): Likewise.
31721         (sync_new_<optab><mode>): Likewise.
31722         (sync_nand<mode>): Likewise.
31723         (sync_old_nand<mode>): Likewise.
31724         (sync_new_nand<mode>): Likewise.
31725         (sync_lock_test_and_set<mode>): Likewise.
31726         (test_and_set_12): Likewise.
31727         (atomic_compare_and_swap<mode>): Likewise.
31728         (atomic_exchange<mode>_llsc): Likewise.
31729         (atomic_fetch_add<mode>_llsc): Likewise.
31730         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31731         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31732         (umips_save_restore_pattern_p): Likewise.
31733         (umips_load_store_pair_p): Likewise.
31734         (umips_output_load_store_pair): Likewise.
31735         (umips_movep_target_p): Likewise.
31736         (umips_12bit_offset_address_p): Likewise.
31737         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31738         (mips_base_mips16): Rename this...
31739         (mips_base_compression_flags): ...to this. Update all uses.
31740         (mips_attribute_table): Add micromips, nomicromips and nocompression.
31741         (mips_mips16_decl_p): Delete.
31742         (mips_nomips16_decl_p): Delete.
31743         (mips_get_compress_on_flags): New function.
31744         (mips_get_compress_off_flags): New function.
31745         (mips_get_compress_mode): New function.
31746         (mips_get_compress_on_name): New function.
31747         (mips_get_compress_off_name): New function.
31748         (mips_insert_attributes): Support multiple compression types.
31749         (mips_merge_decl_attributes): Likewise.
31750         (umips_12bit_offset_address_p): New function.
31751         (mips_start_function_definition): Emit .set micromips directive.
31752         (mips_call_may_need_jalx_p): New function.
31753         (mips_function_ok_for_sibcall): Add microMIPS support.
31754         (mips_print_operand_punctuation): Support short delay slots and
31755         compact jumps.
31756         (umips_swm_mask, umips_swm_encoding): New.
31757         (umips_build_save_restore): New function.
31758         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31759         (was_mips16_p): Remove.
31760         (old_compression_mode): New.
31761         (mips_set_compression_mode): New function.
31762         (mips_set_current_function): Add microMIPS support.
31763         (mips_option_override): Likewise.
31764         (umips_save_restore_pattern_p): New function.
31765         (umips_output_save_restore): New function.
31766         (umips_load_store_pair_p_1): New function.
31767         (umips_load_store_pair_p): New function.
31768         (umips_output_load_store_pair_1): New function.
31769         (umips_output_load_store_pair): New function.
31770         (umips_movep_target_p) New function.
31771         (mips_prepare_pch_save): Add microMIPS support.
31772         * config/mips/mips.h (TARGET_COMPRESSION): New.
31773         (TARGET_CPU_CPP_BUILTINS): Update macro
31774         to use new compression flags and to support microMIPS.
31775         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31776         (MIPS_ARCH_FLOAT_SPEC): Likewise.
31777         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31778         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31779         (ASM_SPEC): Support mmicromips and mno-micromips.
31780         (M16STORE_REG_P): New macro.
31781         (MIPS_CALL): Support TARGET_MICROMIPS.
31782         (MICROMIPS_J): New macro.
31783         (mips_base_mips16): Rename this...
31784         (mips_base_compression_flags): ...to this.
31785         (UMIPS_12BIT_OFFSET_P): New macro.
31786         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31787         (MULTILIB_DIRNAMES): Likewise.
31789 2013-02-25  Tom de Vries  <tom@codesourcery.com>
31791         PR rtl-optimization/56131
31792         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
31793         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
31794         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
31796 2013-02-25  Tobias Burnus  <burnus@net-b.de>
31798         * doc/invoke.texi (-fsanitize=): Move from optimization
31799         to debugging options.
31801 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
31803         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
31805 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
31806             Alexander Monakov  <amonakov@ispras.ru>
31808         PR middle-end/56077
31809         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
31810         flush pending lists also on non-jumps.  Adjust comment.
31812 2013-02-24  Catherine Moore  <clm@codesourcery.com>
31813             Maciej W. Rozycki  <macro@codesourcery.com>
31814             Tom de Vries  <tom@codesourcery.com>
31815             Nathan Sidwell  <nathan@codesourcery.com>
31816             Iain Sandoe  <iain@codesourcery.com>
31817             Nathan Froyd  <froydnj@codesourcery.com>
31818             Chao-ying Fu  <fu@mips.com>
31820         * doc/extend.texi: (micromips, nomicromips, nocompression):
31821         Document new function attributes.
31822         * doc/invoke.texi (minterlink-compressed, mmicromips,
31823         m14k, m14ke, m14kec): Document new options.
31824         (minterlink-mips16): Update documentation.
31825         * doc/md.texi (ZC, ZD): Document new constraints.
31826         * configure.ac (gcc_cv_as_micromips): Check if linker
31827         supports the .set micromips directive.
31828         * configure: Regenerate.
31829         * config.in: Regenerate.
31830         * config/mips/mips-tables.opt: Regenerate.
31831         * config/mips/micromips.md: New file.
31832         * constraints.md (ZC, AD): New constraints.
31833         * config/mips/predicates.md (movep_src_register): New predicate.
31834         (movep_src_operand): New predicate.
31835         (non_volatile_mem_operand): New predicate.
31836         * config/mips/mips.md (multimem): New type.
31837         (length): Differentiate between 17-bit and 18-bit branch offsets.
31838         (MOVEP1, MOVEP2): New mode iterator.
31839         (mov_<load>l): Use ZC constraint.
31840         (mov_<load>r): Likewise.
31841         (mov_<store>l): Likewise.
31842         (mov_<store>r): Likewise.
31843         (*branch_equality<mode>_inverted): Add microMIPS support.
31844         (*branch_equality<mode>): Likewise.
31845         (*jump_absolute): Likewise.
31846         (indirect_jump_<mode>): Likewise.
31847         (tablejump_<mode>): Likewise.
31848         (<optab>_internal): Likewise.
31849         (sibcall_internal): Likewise.
31850         (sibcall_value_internal): Likewise.
31851         (prefetch): Use constraint ZD.
31852         * config/mips/mips.opt (minterlink-compressed): New option.
31853         (minterlink-mips16): Now an alias for minterlink-compressed.
31854         (mmicromips): New option.
31855         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31856         (compare_and_swap_12): Likewise.
31857         (sync_add<mode>): Likewise.
31858         (sync_<optab>_12): Likewise.
31859         (sync_old_<optab>_12): Likewise.
31860         (sync_new_<optab>_12): Likewise.
31861         (sync_nand_12): Likewise.
31862         (sync_old_nand_12): Likewise.
31863         (sync_new_nand_12): Likewise.
31864         (sync_sub<mode>): Likewise.
31865         (sync_old_add<mode>): Likewise.
31866         (sync_old_sub<mode>): Likewise.
31867         (sync_new_add<mode>): Likewise.
31868         (sync_new_sub<mode>): Likewise.
31869         (sync_<optab><mode>): Likewise.
31870         (sync_old_<optab><mode>): Likewise.
31871         (sync_new_<optab><mode>): Likewise.
31872         (sync_nand<mode>): Likewise.
31873         (sync_old_nand<mode>): Likewise.
31874         (sync_new_nand<mode>): Likewise.
31875         (sync_lock_test_and_set<mode>): Likewise.
31876         (test_and_set_12): Likewise.
31877         (atomic_compare_and_swap<mode>): Likewise.
31878         (atomic_exchange<mode>_llsc): Likewise.
31879         (atomic_fetch_add<mode>_llsc): Likewise.
31880         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31881         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31882         (umips_save_restore_pattern_p): Likewise.
31883         (umips_load_store_pair_p): Likewise.
31884         (umips_output_load_store_pair): Likewise.
31885         (umips_movep_target_p): Likewise.
31886         (umips_12bit_offset_address_p): Likewise.
31887         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31888         (mips_base_mips16): Rename this...
31889         (mips_base_compression_flags): ...to this. Update all uses.
31890         (mips_attribute_table): Add micromips, nomicromips and nocompression.
31891         (mips_mips16_decl_p): Delete.
31892         (mips_nomips16_decl_p): Delete.
31893         (mips_get_compress_on_flags): New function.
31894         (mips_get_compress_off_flags): New function.
31895         (mips_get_compress_mode): New function.
31896         (mips_get_compress_on_name): New function.
31897         (mips_get_compress_off_name): New function.
31898         (mips_insert_attributes): Support multiple compression types.
31899         (mips_merge_decl_attributes): Likewise.
31900         (umips_12bit_offset_address_p): New function.
31901         (mips_start_function_definition): Emit .set micromips directive.
31902         (mips_call_may_need_jalx_p): New function.
31903         (mips_function_ok_for_sibcall): Add microMIPS support.
31904         (mips_print_operand_punctuation): Support short delay slots and
31905         compact jumps.
31906         (umips_swm_mask, umips_swm_encoding): New.
31907         (umips_build_save_restore): New function.
31908         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31909         (was_mips16_p): Remove.
31910         (old_compression_mode): New.
31911         (mips_set_compression_mode): New function.
31912         (mips_set_current_function): Add microMIPS support.
31913         (mips_option_override): Likewise.
31914         (umips_save_restore_pattern_p): New function.
31915         (umips_output_save_restore): New function.
31916         (umips_load_store_pair_p_1): New function.
31917         (umips_load_store_pair_p): New function.
31918         (umips_output_load_store_pair_1): New function.
31919         (umips_output_load_store_pair): New function.
31920         (umips_movep_target_p) New function.
31921         (mips_prepare_pch_save): Add microMIPS support.
31922         * config/mips/mips.h (TARGET_COMPRESSION): New.
31923         (TARGET_CPU_CPP_BUILTINS): Update macro
31924         to use new compression flags and to support microMIPS.
31925         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31926         (MIPS_ARCH_FLOAT_SPEC): Likewise.
31927         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31928         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31929         (ASM_SPEC): Support mmicromips and mno-micromips.
31930         (M16STORE_REG_P): New macro.
31931         (MIPS_CALL): Support TARGET_MICROMIPS.
31932         (MICROMIPS_J): New macro.
31933         (mips_base_mips16): Rename this...
31934         (mips_base_compression_flags): ...to this.
31935         (UMIPS_12BIT_OFFSET_P): New macro.
31936         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31937         (MULTILIB_DIRNAMES): Likewise.
31939 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
31941         PR target/52555
31942         * target-globals.c (save_target_globals): For init_reg_sets and
31943         target_reinit remporarily set this_fn_optabs to this_target_optabs.
31945 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
31947         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
31948         * config/aarch64/t-aarch64
31949         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
31951 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
31953         PR inline-asm/56148
31954         * lra-constraints.c (process_alt_operands): Reload operand
31955         conflicting with earlier clobber only if no more other conflicting
31956         operands.
31958 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
31960         PR sanitizer/56393
31961         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
31962         if not linking a shared library.
31964 2013-02-22  Seth LaForge  <sethml@google.com>
31966         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
31968 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
31970         * config/arm/arm.md (split for extendsidi): Update condition.
31971         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
31972         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
31973         (qhs_zextenddi_cstr): Likewise.
31975 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
31977         PR middle-end/56420
31978         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
31979         avoid signed wrapping.
31980         (expand_mult): Handle properly multiplication by
31981         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
31982         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
31983         in the compiler if coeff is HOST_WIDE_INT_MIN.
31984         (expand_divmod): Don't make ext_op1 static, change it's type to
31985         uhwi.  Avoid undefined behavior in -INTVAL (op1).
31987         PR rtl-optimization/50339
31988         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
31989         field.
31990         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
31991         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
31992         into splitting_ashiftrt field.
31993         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
31994         ASHIFTRT.
31995         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
31996         choices.
31998 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
32000         PR middle-end/56108
32001         * trans-mem.c (execute_tm_mark): Do not expand transactions that
32002         are sure to go irrevocable.
32004 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
32006         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
32007         scalars are valid operands.
32009 2013-02-21  Martin Jambor  <mjambor@suse.cz>
32011         PR tree-optimization/56310
32012         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
32013         only matching indices and non-negative final offsets.
32014         (intersect_aggregates_with_edge): Pass src_idx to
32015         agg_replacements_to_vector.  Pass src_idx insstead of index to
32016         intersect_with_agg_replacements.
32018 2013-02-21  Martin Jambor  <mjambor@suse.cz>
32020         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
32021         instead of hard-wired defaults.
32023 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
32025         * doc/invoke.texi (MIPS Options): Update documentation of the
32026         floating-point multiply-accumulate instruction restrictions.
32028 2013-02-21  Kostya Serebryany  <kcc@google.com>
32030         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
32031         asan_shadow_offset on x86_64 linux.
32033 2013-02-21  Richard Biener  <rguenther@suse.de>
32035         PR tree-optimization/56415
32036         Revert
32037         2013-02-11  Richard Biener  <rguenther@suse.de>
32039         PR tree-optimization/56273
32040         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32041         first VRP run.
32043 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
32045         PR bootstrap/56258
32046         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
32047         instead of @itemx.
32049         PR inline-asm/56405
32050         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
32051         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
32053 2013-02-20  Jan Hubicka  <jh@suse.cz>
32055         PR tree-optimization/56265
32056         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
32057         when target is referenced for first time.
32059 2013-02-20  Richard Biener  <rguenther@suse.de>
32061         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
32062         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
32063         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
32064         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
32065         not return anything.
32066         (rename_ssa_copies): Do not remove unused locals.
32067         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
32068         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
32069         * passes.c (execute_function_todo): Do not schedule unused locals
32070         removal if cleanup_tree_cfg did something.
32071         * tree-ssa-live.c (remove_unused_locals): Dump statistics
32072         about the number of removed locals.
32074 2013-02-20  Richard Biener  <rguenther@suse.de>
32076         PR tree-optimization/56398
32077         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
32079 2013-02-20  Martin Jambor  <mjambor@suse.cz>
32081         PR tree-optimization/55334
32082         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
32083         restricted pointers to arrays.
32085 2013-02-20  Richard Biener  <rguenther@suse.de>
32086             Jakub Jelinek  <jakub@redhat.com>
32088         PR tree-optimization/56396
32089         * tree-ssa-ccp.c (n_const_val): New static variable.
32090         (get_value): Return NULL for SSA names we don't have a lattice
32091         entry for.
32092         (ccp_initialize): Initialize n_const_val.
32093         * tree-ssa-copy.c (n_copy_of): New static variable.
32094         (init_copy_prop): Initialize n_copy_of.
32095         (get_value): Return NULL_TREE for SSA names we don't have a
32096         lattice entry for.
32098 2013-02-20  Martin Jambor  <mjambor@suse.cz>
32100         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
32102 2013-02-20  Richard Biener  <rguenther@suse.de>
32104         * genpreds.c (write_lookup_constraint): Do not compare first
32105         letter of the constraint again.
32107 2013-02-20  Richard Biener  <rguenther@suse.de>
32109         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
32110         and ceil_log2.
32111         (get_use_iv_cost): Terminate hashtable walk when coming across
32112         an empty entry.
32114 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
32116         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
32117         reassociation for avx2 targets.
32119 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32121         * config/microblaze/microblaze.c: microblaze_has_clz = 0
32122         Add version check for v8.10.a to enable microblaze_has_clz
32123         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
32124         version and TARGET_PATTERN_COMPARE check
32125         * config/microblaze/microblaze.md: New clzsi2 instruction
32127 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32129         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
32130         function before branching.
32132 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
32134         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
32135         DUMP_INSN_RTX_UID.
32136         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
32138 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
32140         PR middle-end/55889
32141         * sel-sched.c: Include ira.h.
32142         (implicit_clobber_conflict_p): New function.
32143         (moveup_expr): Use it.
32144         * Makefile.in (sel-sched.o): Depend on ira.h.
32146 2013-02-19  Richard Biener  <rguenther@suse.de>
32148         PR tree-optimization/56384
32149         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
32150         (vn_hash_type): Split out from ...
32151         (vn_hash_constant_with_type): ... here.
32152         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
32153         (vn_phi_eq): Compare types from vn_phi_s structure.
32154         (vn_phi_lookup): Populate vn_phi_s type.
32155         (vn_phi_insert): Likewise.
32157 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
32159         PR tree-optimization/56350
32160         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
32161         if haven't found reduction or nested cycle operand, rather than
32162         asserting we must find it.
32164         PR tree-optimization/56381
32165         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
32166         to fold_build3.
32168 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
32169             Jakub Jelinek  <jakub@redhat.com>
32171         PR target/52555
32172         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
32173         (swap_optab_enable): Same.
32174         (init_all_optabs): Use argument instead of global.
32175         * tree.h (struct tree_optimization_option): New field target_optabs.
32176         * expr.h (init_all_optabs): Add argument to prototype.
32177         (TREE_OPTIMIZATION_OPTABS): New.
32178         (save_optabs_if_changed): Protoize.
32179         * optabs.h: Declare this_fn_optabs.
32180         * optabs.c (save_optabs_if_changed): New.
32181         Declare this_fn_optabs.
32182         (init_optabs): Add argument to init_all_optabs() call.
32183         * function.c (invoke_set_current_function_hook): Handle per
32184         function optabs.
32185         * function.h (struct function): New field optabs.
32186         * config/mips/mips.c (mips_set_mips16_mode): Handle when
32187         optimization_current_node has changed.
32188         * target-globals.h (save_target_globals_default_opts): Protoize.
32189         * target-globals.c (save_target_globals_default_opts): New.
32191 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32193         PR target/56347
32194         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
32195         registers %fr12 and %fr12R as call used.
32197         PR target/56214
32198         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
32199         and HImode, require all displacements to be an integer multiple of
32200         their mode size.
32201         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
32202         only allow QImode and HImode when reload is in progress and strict is
32203         true.  Likewise for symbolic addresses.  Use base14_operand to check
32204         displacements in REG+BASE addresses.
32206 2013-02-18  Richard Biener  <rguenther@suse.de>
32208         PR tree-optimization/56366
32209         * tree-vect-loop.c (get_initial_def_for_induction): Properly
32210         handle sign-conversion of outer-loop initial induction value.
32212 2013-02-18  Richard Biener  <rguenther@suse.de>
32214         PR middle-end/56349
32215         * cfghooks.c (merge_blocks): If we merge a latch into another
32216         block adjust references to it.
32217         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
32218         (verify_loop_structure): Verify that a recorded latch is in fact
32219         a latch.
32221 2013-02-18  Richard Biener  <rguenther@suse.de>
32223         PR tree-optimization/56321
32224         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
32225         order SSA name release and virtual operand unlinking.
32227 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32229         * config/microblaze/microblaze.md (save_stack_block): Define.
32230         (restore_stack_block): Likewise.
32232 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32234         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
32235         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
32236         * config/microblaze/microblaze.c (microblaze_option_override):
32237         Bail out early for PIC modes when target does not support PIC.
32239 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32241         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
32242         Replace with a microblaze version.
32243         (microblaze_trampoline_init): Adapt for microblaze.
32244         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
32245         microblaze.
32247 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
32248             Dodji Seketeli  <dodji@redhat.com>
32250         PR asan/56330
32251         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
32252         (instrument_mem_region_access): Do not forget to always put
32253         instrumentation of the of 'base' and 'base + len' in a "if (len !=
32254         0) statement, even for cases where either 'base' or 'base + len'
32255         are not instrumented -- because they have been previously
32256         instrumented.  Simplify the logic by putting all the statements
32257         instrument 'base + len' inside a sequence, and then insert that
32258         sequence right before the current insertion point.  Then, to
32259         instrument 'base + len', just get an iterator on that statement.
32260         And do not forget to update the pointer to iterator the function
32261         received as argument.
32263 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
32265         PR rtl-optimization/56348
32266         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
32268 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
32270         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
32271         (clean_graph_dump_file): Pass base to start_graph_dump.
32273 2013-02-14  Richard Henderson  <rth@redhat.com>
32275         PR target/55941
32276         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
32278 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
32280         * collect2-aix.h: Define F_LOADONLY.
32282 2013-02-14  Richard Biener  <rguenther@suse.de>
32284         PR lto/50494
32285         * varasm.c (output_constant_def_1): Get the decl representing
32286         the constant as argument.
32287         (output_constant_def): Wrap output_constant_def_1.
32288         (make_decl_rtl): Use output_constant_def_1 with the decl
32289         representing the constant.
32290         (build_constant_desc): Optionally re-use a decl already
32291         representing the constant.
32292         (tree_output_constant_def): Adjust.
32294 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
32296         Fix an asan crash
32297         * asan.c (instrument_builtin_call):  Really put the length of the
32298         second source argument into src1_len.
32300 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
32302         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
32303         argument.  If it is false, don't create edge from then_bb to
32304         fallthru_bb.
32305         (insert_if_then_before_iter): Pass true to it.
32306         (build_check_stmt): Pass false to it.
32307         (transform_statements): Flush hash table only on extended basic
32308         block boundaries, rather than at the beginning of every bb.
32309         Don't flush hash table on nonfreeing_call_p calls.
32310         * tree-flow.h (nonfreeing_call_p): New prototype.
32311         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
32313 2013-02-13  David S. Miller  <davem@davemloft.net>
32315         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
32317 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
32319         PR target/56184
32320         * ira.c (max_regno_before_ira): Move from ...
32321         (ira): ... here.
32322         (fix_reg_equiv_init): Use max_regno_before_ira instead of
32323         vec_safe_length.
32325 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
32327         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
32329 2013-02-13  Richard Biener  <rguenther@suse.de>
32331         PR lto/56295
32332         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
32333         globals in MEM_REFs.
32335 2013-02-13  Richard Biener  <rguenther@suse.de>
32337         * loop-init.c (loop_optimizer_init): Clear loop state when
32338         re-initializing preserved loops.
32339         * loop-unswitch.c (unswitch_single_loop): Return whether
32340         we unswitched the loop.  Do not verify loop state here.
32341         (unswitch_loops): When we unswitched a loop discover new loops.
32343 2013-02-13  Kostya Serebryany  <kcc@google.com>
32345         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
32346         on x86_64 linux.
32347         * sanitizer.def: Rename __asan_init to __asan_init_v1.
32349 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
32351         Avoid instrumenting duplicated memory access in the same basic block
32352         * Makefile.in (asan.o): Add new dependency on hash-table.h
32353         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
32354         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
32355         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
32356         (free_mem_ref_resources, has_mem_ref_been_instrumented)
32357         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
32358         (get_mem_ref_of_assignment): New functions.
32359         (get_mem_refs_of_builtin_call): Extract from
32360         instrument_builtin_call and tweak a little bit to make it fit with
32361         the new signature.
32362         (instrument_builtin_call): Use the new
32363         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
32364         of is_gimple_builtin_call.
32365         (instrument_derefs, instrument_mem_region_access): Insert the
32366         instrumented memory reference into the hash table.
32367         (maybe_instrument_assignment): Renamed instrument_assignment into
32368         this, and change it to advance the iterator when instrumentation
32369         actually happened and return true in that case.  This makes it
32370         homogeneous with maybe_instrument_assignment, and thus give a
32371         chance to callers to be more 'regular'.
32372         (transform_statements): Clear the memory reference hash table
32373         whenever we enter a new BB, when we cross a function call, or when
32374         we are done transforming statements.  Use
32375         maybe_instrument_assignment instead of instrumentation.  No more
32376         need to special case maybe_instrument_assignment and advance the
32377         iterator after calling it; it's now handled just like
32378         maybe_instrument_call.  Update comment.
32380 2013-02-13  Richard Biener  <rguenther@suse.de>
32382         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
32383         Fix loop discovery code.
32385 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
32387         PR inline-asm/56148
32388         * lra-constraints.c (process_alt_operands): Match early clobber
32389         operand with itself.  Check conflicts with earlyclobber only if
32390         the operand is not reloaded.  Prefer to reload conflicting operand
32391         if earlyclobber and matching operands are the same.
32393 2013-02-12  Richard Biener  <rguenther@suse.de>
32395         PR lto/56297
32396         * lto-streamer-out.c (write_symbol): Do not output symbols
32397         for hard register variables.
32399 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
32401         PR target/54222
32402         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
32403         (umulsidi3_insn, mulsidi3_insn): New insns.
32405 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
32407         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
32408         (struct tune_params): Add vec_costs field.
32409         * config/arm/arm.c (arm_builtin_vectorization_cost)
32410         (arm_add_stmt_cost): New functions.
32411         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
32412         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
32413         (arm_default_vec_cost): New struct of type cpu_vec_costs.
32414         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
32415         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
32416         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
32417         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
32419 2013-02-12  Richard Biener  <rguenther@suse.de>
32421         PR lto/56295
32422         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
32423         decls again if possible.
32425 2013-02-12  Richard Biener  <rguenther@suse.de>
32427         PR middle-end/56288
32428         * tree-ssa.c (verify_ssa_name): Fix check, move
32429         SSA_NAME_IN_FREE_LIST check up.
32431 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
32432             Steven Bosscher   <steven@gcc.gnu.org>
32434         PR rtl-optimization/56151
32435         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
32436         equal to op0 or op1, and last_insn pattern is CODE operation
32437         with MEM dest and one of the operands matches that MEM.
32439 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
32441         * doc/extend.texi: Document Function Multiversioning and "default"
32442         parameter string to target attribute.
32443         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
32444         target attribute parameter is "default".
32445         (ix86_compare_version_priority): Remove checks for target attribute.
32446         (ix86_mangle_function_version_assembler_name): Change error to sorry.
32447         Remove check for target attribute equal to NULL. Add assert.
32448         (ix86_generate_version_dispatcher_body): Change error to sorry.
32450 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
32451             Jack Howarth  <howarth@bromo.med.uc.edu>
32452             Patrick Marlier  <patrick.marlier@gmail.com>
32454         PR libitm/55693
32455         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
32456         define ENDFILE_SPEC as TM_DESTRUCTOR.
32457         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
32459 2013-02-11  Alexander Potapenko  <glider@google.com>
32460             Jack Howarth  <howarth@bromo.med.uc.edu>
32461             Jakub Jelinek  <jakub@redhat.com>
32463         PR sanitizer/55617
32464         * config/darwin.c (cdtor_record): Rename ctor_record.
32465         (sort_cdtor_records): Rename sort_ctor_records.
32466         (finalize_dtors): New routine to sort destructors by
32467         priority before use in assemble_integer.
32468         (machopic_asm_out_destructor): Use finalize_dtors if needed.
32470 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
32472         PR rtl-optimization/56275
32473         * simplify-rtx.c (avoid_constant_pool_reference): Check that
32474         offset is non-negative and less than cmode size before
32475         calling simplify_subreg.
32477 2013-02-11  Richard Biener  <rguenther@suse.de>
32479         PR tree-optimization/56264
32480         * cfgloop.h (fix_loop_structure): Adjust prototype.
32481         * loop-init.c (fix_loop_structure): Return the number of
32482         newly discovered loops.
32483         * tree-cfgcleanup.c (repair_loop_structures): When new loops
32484         are discovered, do a full loop-closed SSA rewrite.
32486 2013-02-11  Richard Biener  <rguenther@suse.de>
32488         PR tree-optimization/56273
32489         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32490         first VRP run.
32491         (check_array_ref): Fix missing newline in dumps.
32492         (search_for_addr_array): Likewise.
32494 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
32496         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
32498 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
32500         PR target/56256
32501         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
32503 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
32505         PR rtl-optimization/56246
32506         * lra-constraints.c (simplify_operand_subreg): Try to reuse
32507         reload pseudo.
32508         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
32509         constraints are satisfied.
32511 2013-02-08  Jeff Law  <law@redhat.com>
32513         PR debug/53948
32514         * emit-rtl.c (reg_is_parm_p): New function.
32515         * regs.h (reg_is_parm_p): New prototype.
32516         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
32517         callee-clobbered registers.
32519 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
32521         PR target/56043
32522         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
32523         If there is no implicit builtin declaration, just return NULL.
32525 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
32527         * config/i386/sse.md (FMAMODEM): New mode iterator.
32528         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
32529         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
32531 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
32533         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
32534         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
32535         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
32537 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32539         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
32540         (microblaze*-*-elf): Likewise.
32541         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
32542         LINK_SPEC.
32543         * config/microblaze/microblaze-c.c: Add builtin defines for
32544         _LITTLE_ENDIAN and _BIG_ENDIAN.
32545         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
32546         add to TARGET_DEFAULT flags.
32547         Expand ASM_SPEC and LINK_SPEC.
32548         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
32549         * config/microblaze/microblaze.md: Update extendsidi2 and
32550         movdi_internal instructions to use low-order / high-order reg
32551         print_operands.
32552         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
32553         options and inversemask / mask of LITTLE_ENDIAN.
32554         * config/microblaze/t-microblaze: Expand multilib options to
32555         include mlittle-endian (le) and update exceptions patterns.
32557 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
32559         PR rtl-optimization/56195
32560         * lra-constraints.c (get_reload_reg): Don't reuse regs
32561         if they have smaller mode than requested, if they have
32562         wider mode than requested, try to return a SUBREG.
32564         PR tree-optimization/56250
32565         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
32566         if type is unsigned and code isn't MULT_EXPR.
32568 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
32570         PR tree-optimization/56064
32571         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
32572         bits according to mode.
32573         * fixed-value.h (fixed_from_double_int)
32574         (const_fixed_from_double_int): Adjust comments.
32576 2013-02-08  Richard Biener  <rguenther@suse.de>
32578         PR lto/56231
32579         * lto-streamer.h (struct data_in): Remove current_file, current_line
32580         and current_col members.
32581         * lto-streamer-out.c (lto_output_location): Stream changed bits
32582         en-block for efficiency.
32583         * lto-streamer-in.c (clear_line_info): Remove.
32584         (lto_input_location): Cache current file, line and column
32585         globally via local statics.  Read changed bits en-block.
32586         (input_function): Do not call clear_line_info.
32587         (lto_read_body): Likewise.
32588         (lto_input_toplevel_asms): Likewise.
32590 2013-02-08  Michael Matz  <matz@suse.de>
32592         PR tree-optimization/52448
32593         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
32594         (nt_call_phase): New static.
32595         (add_or_mark_expr): Only mark accesses with newer phase than any
32596         call seen.
32597         (nonfreeing_call_p): New.
32598         (nt_init_block): Update nt_call_phase, mark blocks as visited.
32599         (nt_fini_block): Keep blocks marked as visited.
32600         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
32602 2013-02-08  Richard Biener  <rguenther@suse.de>
32604         * ira.c (ira): Free broken dominator information.
32606 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
32608         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
32610 2013-02-08  Marek Polacek  <polacek@redhat.com>
32612         * cfgloop.c (verify_loop_structure): Add more checking of headers.
32614 2013-02-08  Richard Biener  <rguenther@suse.de>
32616         PR middle-end/56181
32617         * cfgloop.h (flow_loops_find): Adjust.
32618         (bb_loop_header_p): Declare.
32619         * cfgloop.c (bb_loop_header_p): New function split out from ...
32620         (flow_loops_find): ... here.  Adjust function signature,
32621         support incremental loop structure update.
32622         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
32623         * cfgloopmanip.c (fix_loop_structure): Move ...
32624         * loop-init.c (fix_loop_structure): ... here.
32625         (apply_loop_flags): Split out from ...
32626         (loop_optimizer_init): ... here.
32627         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
32628         in incremental mode, only remove dead loops here.
32630 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
32632         PR target/54222
32633         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
32634         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
32635         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
32636         (*round<mode>3.libgcc): New insns for fixed-modes.
32637         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
32638         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
32639         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
32640         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
32641         implementations.  Define to __builtin_avr_absFX,
32642         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
32643         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
32644         __builtin_avr_countlsFX, respectively.
32645         * config/avr/avr-c.c (target.h): Include it.
32646         (enum avr_builtin_id): New enum.
32647         (avr_resolve_overloaded_builtin): New static function.
32648         (avr_register_target_pragmas): Use it to set
32649         targetm.resolve_overloaded_builtin.
32650         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
32651         tree nodes used by DEF_BUILTIN.
32652         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
32653         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
32654         <AVR_BUILTIN_xxBITS>: Same.
32656 2013-02-08  Richard Biener  <rguenther@suse.de>
32658         * cfgloop.c (verify_loop_structure): Properly handle
32659         a loop exiting to another loop header.
32660         * ira-int.h (ira_loops): Remove.
32661         * ira.c (ira_loops): Remove.
32662         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
32663         (do_reload): Use loop_optimizer_finalize.
32664         * ira-build.c (create_loop_tree_nodes): Use get_loops and
32665         number_of_loops to access the loop tree.
32666         (more_one_region_p): Likewise.
32667         (finish_loop_tree_nodes): Likewise.
32668         (rebuild_regno_allocno_maps): Likewise.
32669         (mark_loops_for_removal): Likewise.
32670         (mark_all_loops_for_removal): Likewise.
32671         (remove_unnecessary_regions): Likewise.
32672         (ira_build): Likewise.
32673         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
32675 2013-02-08  Richard Biener  <rguenther@suse.de>
32677         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
32678         * ipa-pure-const.c (analyze_function): Avoid calling
32679         mark_irreducible_loops twice.
32680         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
32682 2013-02-07  David S. Miller  <davem@davemloft.net>
32684         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
32685         on 'reg'.
32686         * var-tracking.c (vt_add_function_parameter): Test the presence of
32687         HAVE_window_save properly and do not remap argument registers when
32688         we have a leaf function.
32690 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
32692         PR bootstrap/56227
32693         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
32694         instead of "ll".
32695         * config/i386/i386.c (ix86_print_operand): Ditto.
32697 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
32699         * lra-constraints.c (process_alt_operands): Fix recently added comment.
32701 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
32703         PR rtl-optimization/56225
32704         * lra-constraints.c (process_alt_operands): Check that reload hard
32705         reg can hold value for strict_low_part.
32707 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
32709         PR debug/56154
32710         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
32711         dwarf2out_end_function.
32712         (in_first_function_p, maybe_at_text_label_p,
32713         first_loclabel_num_not_at_text_label): New variables.
32714         (dwarf2out_var_location): In the first function find out
32715         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
32716         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
32717         functions.
32719 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
32721         PR rtl-optimization/56178
32722         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
32723         SUBREG of a register.  Tidy up related block of code.
32724         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
32725         note if the source is a register or a SUBREG of a register.
32727 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
32729         PR target/56228
32730         * config/rs6000/rs6000.md (ptrm): New mode attr.
32731         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
32732         call_value_indirect_aix<pttrsize>,
32733         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
32734         m in constraints.
32736 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32738         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
32739         if -bnortl. Convert to strcmp and strncmp.
32741 2013-02-07  Alan Modra  <amodra@gmail.com>
32743         PR target/54009
32744         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
32745         addresses won't wrap when offsetting.
32746         (rs6000_secondary_reload): Provide secondary reloads needed for
32747         wrapping LO_SUM addresses.
32749 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
32751         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
32752         MACH, just __MACH__.
32754 2013-02-06  Richard Biener  <rguenther@suse.de>
32756         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
32757         instead of calling fix_loop_structure.
32759 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
32761         PR middle-end/56217
32762         * omp-low.c (use_pointer_for_field): Return false if
32763         lower_send_shared_vars doesn't generate any copy-out code.
32765 2013-02-06  Tom de Vries  <tom@codesourcery.com>
32767         PR rtl-optimization/56131
32768         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
32769         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
32770         of the label is NULL.  Add comment.
32772 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
32774         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
32776         PR sanitizer/55374
32777         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
32778         (STATIC_LIBTSAN_LIBS): Likewise.
32779         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
32780         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
32781         is defined, don't add anything else beyond that.
32782         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
32783         (LINK_COMMAND_SPEC): Use them.
32785         PR tree-optimization/56205
32786         * tree-stdarg.c (check_all_va_list_escapes): Return true if
32787         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
32788         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
32790 2013-02-05  Richard Biener  <rguenther@suse.de>
32792         PR tree-optimization/53342
32793         PR tree-optimization/53185
32794         * tree-vectorizer.h (vect_check_strided_load): Remove.
32795         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
32796         not disallow peeling for vectorized strided loads.
32797         (vect_check_strided_load): Make static and simplify.
32798         (vect_analyze_data_refs): Adjust.
32799         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
32800         correctly when vectorizing strided loads.
32802 2013-02-05  Richard Biener  <rguenther@suse.de>
32804         * doc/install.texi: Refer to ISL, not PPL.
32806 2013-02-05  Jan Hubicka  <jh@suse.cz>
32808         PR tree-optimization/55789
32809         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
32811 2013-02-05  Jan Hubicka  <jh@suse.cz>
32813         PR tree-optimization/55789
32814         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
32815         the dead call anyway.
32817 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
32819         PR sanitizer/55374
32820         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
32822 2013-02-04  Alexander Potapenko  <glider@google.com>
32823             Jack Howarth  <howarth@bromo.med.uc.edu>
32824             Jakub Jelinek  <jakub@redhat.com>
32826         PR sanitizer/55617
32827         * config/darwin.c (sort_ctor_records): Stabilized qsort
32828         on constructor priority by using original position.
32829         (finalize_ctors): New routine to sort constructors by
32830         priority before use in assemble_integer.
32831         (machopic_asm_out_constructor): Use finalize_ctors if needed.
32833 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
32835         PR libstdc++/54314
32836         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
32837         about visibility on artificial decls.
32838         * config/sol2.c (solaris_assemble_visibility): Likewise.
32840 2013-02-04  Kai Tietz  <ktietz@redhat.com>
32842         PR target/56186
32843         * config/i386/i386.c (function_value_ms_64): Add additional valtype
32844         argument and improve checking of return-argument types for 16-byte
32845         modes.
32846         (ix86_function_value_1): Add additional valtype argument on call
32847         of function_value_64.
32848         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
32849         handling infunction_value_64 function.
32851 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
32853         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
32855 2013-02-04  Richard Biener  <rguenther@suse.de>
32857         PR tree-optimization/56188
32858         * tree-ssa-structalias.c (label_visit): Consider case with
32859         initially non-empty points-to set.
32860         (perform_var_substitution): Dump node mapping and clean up.
32862 2013-02-04  Richard Guenther  <rguenther@suse.de>
32864         PR lto/56168
32865         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
32866         node prevail as last resort.
32867         (lto_symtab_merge_decls): Remove guard on LTRANS here.
32868         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
32870 2013-02-04  Richard Biener  <rguenther@suse.de>
32872         PR tree-optimization/56113
32873         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
32874         Merge into ...
32875         (equiv_class_lookup_or_add): ... this.
32876         (label_visit): Adjust and fix error in previous patch.
32877         (perform_var_substitution): Adjust.
32879 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
32881         * config/sh/divtab.c: Fix formatting and comments throughout the file.
32882         * config/sh/sh4-300.md: Likewise.
32883         * config/sh/sh4a.md: Likewise.
32884         * config/sh/constraints.md: Likewise.
32885         * config/sh/sh.md: Likewise.
32886         * config/sh/netbsd-elf.h: Likewise.
32887         * config/sh/predicates.md: Likewise.
32888         * config/sh/sh-protos.h: Likewise.
32889         * config/sh/ushmedia.h: Likewise.
32890         * config/sh/linux.h: Likewise.
32891         * config/sh/sh.c: Likewise.
32892         * config/sh/superh.h: Likewise.
32893         * config/sh/elf.h: Likewise.
32894         * config/sh/sh4.md: Likewise.
32895         * config/sh/sh.h: Likewise.
32897 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32899         * config/pa/constraints.md: Adjust unused letters.  Change "T"
32900         constraint to match_test floating_point_store_memory_operand().
32901         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
32902         (base14_operand): New.
32903         (floating_point_store_memory_operand): New.
32904         (integer_store_memory_operand): Revise to use base14_operand and
32905         reg_plus_base_memory_operand.
32906         (move_dest_operand): Allow symbolic_memory_operands.
32907         (symbolic_memory_operand): Check for LO_SOM.
32908         (symbolic_operand): Change default case to break.
32909         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
32910         CONST_DOUBLE values to be reloaded by putting them into memory when
32911         the destination is a floating point register.
32912         (movdf): Remove code to handle CONST_DOUBLE.
32913         (movsf): Likewise.
32914         (reload_indf_r1): New.
32915         (reload_insf_r1): New.
32916         Consistently use "Q" and "T" constraints with integer and floating
32917         point move instructions, respectively.
32918         (movdi): Remove FAIL.
32919         Change predicate for source operand unamed DImode move from
32920         general_operand to move_src_operand.
32921         (umulsidi3): Change predicate for destination operand to
32922         register_operand.
32923         Likewise for similar unamed patterns.
32924         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
32925         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
32926         (hppa_legitimize_address): Simplify mask calculation.
32927         (pa_emit_move_sequence): Revised handling of secondary reloads from
32928         REG+D addresses for floating point loads and stores.  Directly handle
32929         loading CONST0_RTX (mode) to a floating point register.
32930         (pa_secondary_reload): Handle reloading DF and SFmode constant values
32931         to floating point registers.  Don't restrict secondary reloads to
32932         floating point registers to integer modes.  Revise some comments and
32933         cleanup some code.
32934         (TARGET_LEGITIMATE_ADDRESS_P): Define.
32935         (pa_legitimate_address_p): New.
32936         (pa_legitimize_reload_address): New.
32937         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
32938         (STRICT_REG_OK_FOR_BASE_P): New.
32939         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
32940         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
32942 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
32943             Andrew Dixie  <andrewd@gentrack.com>
32945         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
32946         flag set.
32948 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
32950         * expmed.c (extract_bit_field_1): Pass the full width of the
32951         structure to get_best_reg_extraction_insn.
32953 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
32955         PR target/54601
32956         * configure.ac (use_cxa_atexit): Add AIX.
32957         * configure: Regenerate.
32959         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
32961 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
32963         PR debug/54793
32964         * final.c (need_profile_function): New variable.
32965         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
32966         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
32967         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
32968         notes, targetm.asm_out.function_prologue doesn't emit anything,
32969         HAVE_prologue and profiler should be emitted before prologue,
32970         set need_profile_function instead of emitting it.
32971         (final_scan_insn): If need_profile_function, emit
32972         profile_function on the first NOTE_INSN_BASIC_BLOCK or
32973         NOTE_INSN_FUNCTION_BEG note.
32975 2013-02-01  Richard Henderson  <rth@redhat.com>
32977         * config/rs6000/rs6000.md (smulditi3): New.
32978         (umulditi3): New.
32980         * config/alpha/alpha.md (umulditi3): New.
32982 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
32984         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
32985         (ASM_OUTPUT_ALIGNED_LOCAL): New.
32987 2013-02-01  Richard Biener  <rguenther@suse.de>
32989         PR tree-optimization/56113
32990         * tree-ssa-structalias.c (label_visit): Reduce work for
32991         single-predecessor nodes.
32993 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
32995         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
32996         range isn't testing for zero.
32998 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
33000         PR middle-end/56113
33001         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
33003 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
33004             Nick Clifton  <nickc@redhat.com>
33006         * config/v850/constraints.md (Q): Define as a memory constraint.
33007         * config/v850/predicates.md (label_ref_operand): New predicate.
33008         (e3v5_shift_operand): New predicate.
33009         (ior_operator): New predicate.
33010         * config/v850/t-v850: Add e3v5 multilib.
33011         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
33012         (v850_gen_movdi): Prototype.
33013         * config/v850/v850.c: Add support for e3v5 architecture.
33014         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
33015         TARGET_V850E_UP.
33016         (construct_save_jarl): Add e3v5 long JARL support.
33017         (v850_adjust_insn_length): New function.  Adjust length of call
33018         insns when using e3v5 instructions.
33019         (v850_gen_movdi): New function: Generate instructions to move a
33020         DImode value.
33021         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
33022         (CPP_SPEC): Define __v850e3v5__ as appropriate.
33023         (TARGET_USE_FPU): Enable for e3v5.
33024         (CONST_OK_FOR_W): New macro.
33025         (ADJUST_INSN_LENGTH): Define.
33026         * config/v850/v850.md (UNSPEC_LOOP): Define.
33027         (attr cpu): Add v850e3v5.
33028         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
33029         (movdi): New pattern.
33030         (movdi_internal): New pattern.
33031         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
33032         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
33033         (cstoresf4): Likewise.
33034         (cstoredf4): Likewise.
33035         (insv): New pattern.
33036         (rotlso3_a): New pattern.
33037         (rotlsi3_b): New pattern
33038         (rotlsi3_v850e3v5): New pattern.
33039         (doloop_begin): New pattern.
33040         (fix_loop_counter): New pattern.
33041         (doloop_end): New pattern.
33042         (branch_normal): Add e3v5 long branch support.
33043         (branch_invert): Likewise.
33044         (branch_z_normal): Likewise.
33045         (branch_z_invert): Likewise.
33046         (branch_nz_normal): Likewise.
33047         (branch_nz_invert): Likewise.
33048         (call_internal_short): Add e3v5 register-indirect JARL support.
33049         (call_internal_long): Likewise.
33050         (call_value_internal_short): Likewise.
33051         (call_value_internal_long): Likewise.
33052         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
33053         (mloop): New option.
33054         * config.gcc: Add support for configuring v840e3v5 target.
33055         * doc/invoke.texi: Document new v850 specific command line options.
33057 2013-01-31  Paul Koning  <ni1d@arrl.net>
33059         PR debug/55059
33060         PR debug/54508
33061         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
33062         children if parent is a class.
33063         (prune_unused_types_prune): Don't add DW_AT_declaration.
33065 2013-01-31  Richard Biener  <rguenther@suse.de>
33067         PR tree-optimization/56157
33068         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
33069         match up operand with SLP child.
33071 2013-01-31  Jason Merrill  <jason@redhat.com>
33073         PR debug/54410
33074         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
33075         parameters the first time.
33076         (gen_scheduled_generic_parms_dies): Check completeness here.
33078 2013-01-31  Richard Biener  <rguenther@suse.de>
33080         PR middle-end/53073
33081         * common.opt (faggressive-loop-optimizations): New flag,
33082         enabled by default.
33083         * doc/invoke.texi (faggressive-loop-optimizations): Document.
33084         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
33085         infer_loop_bounds_from_undefined by it.
33087 2013-01-31  Richard Biener  <rguenther@suse.de>
33089         PR tree-optimization/56150
33090         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
33091         visit virtual operands.
33092         (find_uses_to_rename_bb): Likewise.
33094 2013-01-31  Richard Biener  <rguenther@suse.de>
33096         PR tree-optimization/56150
33097         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
33098         mixed store non-store stmts.
33100 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
33102         PR sanitizer/55374
33103         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
33104         LIBASAN_EARLY_SPEC is defined.
33105         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
33106         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
33107         before %o.
33108         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
33110         PR c++/55742
33111         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
33112         invalid args instead of ICEing on it.
33113         (ix86_valid_target_attribute_tree): Return error_mark_node if
33114         ix86_valid_target_attribute_inner_p failed.
33115         (ix86_valid_target_attribute_p): Return false only if
33116         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
33117         target("default") attribute.
33118         (sorted_attr_string): Change argument from const char * to tree,
33119         merge in all target attribute arguments rather than just one.
33120         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
33121         instead of free.  Avoid using strcat.
33122         (ix86_mangle_function_version_assembler_name): Mangle
33123         target("default") as if no target attribute is present.  Adjust
33124         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
33125         instead of xmalloc and XDELETEVEC instead of free.
33126         (ix86_function_versions): Don't return true if one of the decls
33127         doesn't have target attribute.  If they don't and one of the decls
33128         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
33129         sorted_attr_string caller.  Use XDELETEVEC instead of free.
33130         (ix86_supports_function_versions): Remove.
33131         (make_name): Fix up formatting.
33132         (make_dispatcher_decl): Remove resolver_name and its initialization.
33133         Avoid leaking memory.
33134         (is_function_default_version): Return true if there is
33135         target("default") attribute rather than no target attribute at all.
33136         (make_resolver_func): Avoid leaking memory.
33137         (ix86_generate_version_dispatcher_body): Likewise.
33138         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
33139         * target.def (supports_function_versions): Remove.
33140         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
33141         * doc/tm.texi: Regenerated.
33143 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
33145         PR rtl-optimization/56144
33146         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
33147         for values with side effects.
33149 2013-01-30  Richard Biener  <rguenther@suse.de>
33151         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
33152         (sparseset_pop): Likewise.
33153         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
33154         to be able to use quick_push in the worker loop.
33156 2013-01-30  Marek Polacek  <polacek@redhat.com>
33158         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
33160 2013-01-30  Richard Biener  <rguenther@suse.de>
33162         PR lto/56147
33163         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
33165 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
33167         PR tree-optimization/56064
33168         * fixed-value.c (fixed_from_double_int): New function.
33169         * fixed-value.h (fixed_from_double_int): New prototype.
33170         (const_fixed_from_double_int): New static inline function.
33171         * fold-const.c (native_interpret_fixed): New static function.
33172         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
33173         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
33174         (native_encode_fixed): New static function.
33175         (native_encode_expr) <FIXED_CST>: Use it.
33176         (native_interpret_int): Move double_int worker code to...
33177         * double-int.c (double_int::from_buffer): ...this new static method.
33178         * double-int.h (double_int::from_buffer): Prototype it.
33180 2013-01-30  Richard Biener  <rguenther@suse.de>
33182         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
33183         New pointer-map and obstack.
33184         (init_alias_vars): Allocate pointer-map and obstack.
33185         (delete_points_to_sets): Free them.
33186         (find_what_var_points_to): Cache result.
33187         (find_what_p_points_to): Adjust for changed interface of
33188         find_what_var_points_to.
33189         (compute_points_to_sets): Likewise.
33190         (ipa_pta_execute): Likewise.
33192 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33194         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
33195         * configure: Regenerate.
33196         * config.in: Regenerate.
33197         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
33198         #nobits/#progbits if supported.
33200 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
33202         PR target/56121
33203         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
33204         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
33205         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
33207 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33209         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
33210         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
33212 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33214         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
33215         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
33217 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33219         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
33220         declaration.
33221         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
33222         * config/arm/cortex-a7.md: New bypasses using
33223         arm_mac_accumulator_is_result.
33225 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33227         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
33228         (cortex_a7_neon_mla): Likewise.
33229         (cortex_a7_fpfmad): New reservation.
33230         (cortex_a7_fpmacs): Use ffmas and update required units.
33231         (cortex_a7_fpmuld): Update required units and latency.
33232         (cortex_a7_fpmacd): Likewise.
33233         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
33234         (cortex_a7_neon). Likewise.
33235         (bypass) Update participating units.
33237 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
33239         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
33240         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
33241         from fmac to ffma.
33242         * config/arm/vfp11.md (vfp_farith): Use ffmas.
33243         (vfp_fmul): Use ffmad.
33244         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
33245         (cortex_r4_fmacd): Use ffmad.
33246         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
33247         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
33248         (cortex_a9_fmacd): Use ffmad.
33249         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
33250         (cortex_a8_vfp_macd): Use ffmad.
33251         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
33252         (cortex_a5_fpmacd): Use ffmad.
33253         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
33254         (cortex_a15_vfp_macd): Use ffmad.
33255         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
33257 2013-01-29  Jason Merrill  <jason@redhat.com>
33259         PR libstdc++/54314
33260         * varasm.c (default_assemble_visibility): Don't warn about
33261         visibility on artificial decls.
33263 2013-01-29  Richard Biener  <rguenther@suse.de>
33265         PR tree-optimization/56113
33266         * tree-ssa-structalias.c (equiv_class_lookup): Also return
33267         the bitmap leader.
33268         (label_visit): Free duplicate bitmaps and record the leader instead.
33269         (perform_var_substitution): Adjust.
33271 2013-01-29  Richard Biener  <rguenther@suse.de>
33273         PR tree-optimization/55270
33274         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
33275         the CFG, schedule loops for fixup.
33277 2013-01-29  Nick Clifton  <nickc@redhat.com>
33279         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
33280         SP_REG.
33282 2013-01-28  Leif Ekblad  <leif@rdos.net>
33284         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
33285         * config/i386/i386.h (TARGET_RDOS): New macro.
33286         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
33287         * config/i386/i386.c (ix86_option_override_internal): For 64bit
33288         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
33289         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
33290         DEFAULT_LARGE_SECTION_THRESHOLD.
33291         * config/i386/i386.md (R14_REG, R15_REG): New constants.
33292         * config/i386/rdos.h: New file.
33293         * config/i386/rdos64.h: New file.
33295 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
33297         PR other/54814
33298         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
33299         TEST_HARD_REG_BIT.
33301 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
33303         PR rtl-optimization/56117
33304         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
33305         call cselib_lookup_from_insn on the MEM before calling
33306         add_insn_mem_dependence.
33308 2013-01-28  Richard Biener  <rguenther@suse.de>
33310         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
33311         to a stmt that didn't have one.
33312         (copy_phis_for_bb): Likewise for PHI arguments.
33313         (copy_debug_stmt): Likewise for debug stmts.
33315 2013-01-28  Richard Biener  <rguenther@suse.de>
33317         PR tree-optimization/56034
33318         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
33319         (partition_builtin_p): Adjust.
33320         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
33321         it is the last partition.
33322         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
33323         up the vertex for the definition.
33324         (classify_partition): Classify whether a partition is a
33325         PKIND_REDUCTION, thus has uses outside of the loop.
33326         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
33327         Merge all PKIND_REDUCTION partitions into the last partition.
33328         (tree_loop_distribution): Seed partitions from reductions as well.
33330 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
33332         PR tree-optimization/56125
33333         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
33334         pow(x,c) into sqrt(x) * powi(x, n/2) or
33335         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
33336         optimizing for size.
33337         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
33338         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
33339         integer.
33341         PR tree-optimization/56094
33342         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
33343         to UNKNOWN_LOCATION while gimplifying expr.
33345 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
33347         PR target/56114
33348         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
33349         operand 0 in movabs insn template for -masm=intel asm alternative.
33350         (*movabs<mode>_2): Ditto for operand 1.
33352 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
33354         PR target/54663
33355         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
33356         of microblaze-c.o
33358 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33360         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
33361         tm_file.
33363 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
33365         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
33366         Undef to avoid warning.
33368 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33370         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
33371         * configure: Regenerate.
33373 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
33375         PR tree-optimization/56098
33376         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
33377         for stmts with volatile ops.
33378         (cond_store_replacement): Don't optimize if assign has volatile ops.
33379         (cond_if_else_store_replacement_1): Don't optimize if either
33380         then_assign or else_assign have volatile ops.
33381         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
33382         volatile ops.
33384 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
33386         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
33388 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
33390         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
33391         missing ':' in asm example.
33393 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
33395         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
33396         entries into lane and laneq entries.
33397         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
33398         Remove AdvSIMD scalar modes.
33399         (aarch64_sq<r>dmulh_laneq<mode>): New.
33400         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
33401         modes.
33402         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
33403         builtin implementations to relfect changes in RTL in aarch64-simd.md.
33404         * config/aarch64/iterators.md (VCOND): New.
33405         (VCONQ): New.
33407 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
33409         PR target/54222
33410         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
33411         Add NULL LIBNAME argument to existing definitions.
33412         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
33413         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
33414         * config/avr/avr.c (DEF_BUILTIN): Same.
33415         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
33416         (avr_expand_builtin): Expand to a vanilla call if a libgcc
33417         implementation is available (DECL_ASSEMBLER_NAME is set).
33418         (avr_fold_absfx): New static function.
33419         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
33420         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
33421         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
33422         AVR_BUILTIN_ABSLLK.
33423         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
33424         (abshk, absk, abslk, absllk): Provide as static inline functions.
33426 2013-01-25  Marek Polacek  <polacek@redhat.com>
33428         PR tree-optimization/56035
33429         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
33431 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
33433         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
33434         (*movtf_internal_rex64): Add (!o,C) alternative
33435         (*movxf_internal_rex64): Ditto.
33436         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
33438 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
33440         * doc/invoke.texi: fix typo.
33441         * doc/objc.texi: fix typo.
33443 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
33445         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
33446         for the first two alternatives.
33448 2013-01-24  Diego Novillo  <dnovillo@google.com>
33450         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
33451         (ggc-zone.o): Remove.
33452         * configure.ac: Remove option --with-gc.
33453         * configure: Re-generate.
33454         * doc/install.texi: Remove documentation for --with-gc.
33455         * gengtype.c (write_enum_defn): Remove.  Update all users.
33456         (write_Types_process_field): Remove generation of gt_e_* argument.
33457         (output_type_enum): Remove.  Update all users.
33458         (write_enum_defn): Remove.  Update all users.
33459         (enum alloc_zone): Remove.  Update all users.
33460         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
33461         * ggc-common.c (ggc_splay_alloc): Remove first argument.
33462         Update all callers.
33463         (struct ptr_data): Remove field TYPE.  Update all users.
33464         (gt_pch_note_object): Remove argument TYPE.  Update all users.
33465         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
33466         Update all users.
33467         * ggc-none.c (ggc_alloc_typed_stat): Remove.
33468         (struct alloc_zone): Remove.
33469         (ggc_internal_alloc_zone_stat): Remove.
33470         (ggc_internal_cleared_alloc_zone_stat): Remove.
33471         * ggc-page.c (ggc_alloc_typed_stat): Remove.
33472         (ggc_pch_count_object): Remove last argument.  Update all users.
33473         (ggc_pch_alloc_object): Remove last argument.  Update all users.
33474         (struct alloc_zone): Remove.
33475         * ggc-zone.c: Remove.
33476         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
33477         (struct alloc_zone): Remove.
33478         (ggc_alloc_typed_stat): Remove.
33479         (ggc_alloc_typed): Remove.
33480         (ggc_splay_alloc): Remove first argument.
33481         (rtl_zone): Remove.  Update all users.
33482         (tree_zone): Remove.  Update all users.
33483         (tree_id_zone): Remove.  Update all users.
33484         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
33485         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
33486         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
33487         * tree-ssanames.c: Remove references to zone allocator in comments.
33489 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
33491         * config/avr/avr.c (avr_out_fract): Make register numbers that
33492         might be outside of source operand signed.
33494 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
33496         * config/i386/constraints.md (Yf): New constraint.
33497         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
33498         of f constraint to conditionaly disable x87 register preferences.
33499         (*movdf_internal): Ditto.
33500         (*movsf_internal): Ditto.
33502 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
33504         PR inline-asm/55934
33505         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
33506         that have operands with impossible constraints.
33507         Add a FIXME for a speed-up opportunity.
33508         * lra-constraints.c (process_alt_operands): Verify that a class
33509         selected from constraints on asms is valid for the operand mode.
33510         (curr_insn_transform): Remove incorrect comment.
33512 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
33514         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
33515         TOC operand is a valid symbol ref in the constant pool.
33517 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33519         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
33521 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
33523         PR target/54222
33524         * config/avr/stdfix.h: New file.
33525         * t-avr (stdfix-gcc.h): New rule to build it.
33526         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
33528 2013-01-23  Kostya Serebryany  <kcc@google.com>
33530         * config/darwin.h: remove dependency on
33531         CoreFoundation (asan on Mac OS).
33533 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
33535         PR target/49069
33536         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
33537         instead of cmpdi_operand for first comparison operand.
33538         Don't assert that comparison operands aren't both constants.
33540 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
33542         * doc/install.texi (Downloading the Source): Update references to
33543         downloading separate components.
33545 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
33547         * doc/extend.texi (__int128): Improve grammar.
33549 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
33551         PR target/56028
33552         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
33553         alternative to (o,r).
33554         (*movdi_internal_rex64): Remove (!o,n) alternative.
33555         (DImode immediate->memory splitter): Remove.
33556         (DImode immediate->memory peephole2): Remove.
33557         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
33558         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
33559         alternative to (!o,*r).
33560         (*movtf_internal_sse): New pattern.
33561         (*movxf_internal_rex64): New pattern.
33562         (*movxf_internal): Disable for TARGET_64BIT.
33563         (*movdf_internal_rex64): Remove (!o,F) alternative.
33565 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
33567         PR middle-end/56074
33568         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
33569         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
33570         * tree-vect-loop-manip.c (find_loop_location): Also ignore
33571         stmt locations where LOCATION_LOCUS of the stmt location is
33572         UNKNOWN_LOCATION or BUILTINS_LOCATION.
33574         PR target/55686
33575         * config/i386/i386.md (UNSPEC_STOS): New.
33576         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
33577         *strsetqi_1): Add UNSPEC_STOS.
33579 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
33581         PR c++/56067
33582         * doc/invoke.texi: Remove left over -Wsynth example.
33584 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
33586         PR tree-optimization/56051
33587         * fold-const.c (fold_binary_loc): Don't fold
33588         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
33589         a narrowing conversion, or widening conversion from signed
33590         to unsigned.
33592 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
33594         PR rtl-optimization/56023
33595         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
33596         dependent on debug instruction.
33598 2013-01-21  Martin Jambor  <mjambor@suse.cz>
33600         PR middle-end/56022
33601         * function.c (allocate_struct_function): Call
33602         invoke_set_current_function_hook earlier.
33604 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
33606         * reload1.c (init_reload): Only initialize reload_obstack
33607         during the first call.
33609 2013-01-21  Marek Polacek  <polacek@redhat.com>
33611         * cfgloop.c (verify_loop_structure): Fix up grammar.
33613 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
33615         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
33616         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
33618 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33620         PR target/56058
33621         * config/arm/marvell-pj4.md: Update copyright year.
33622         Fix up use of alu to alu_reg and simple_alu_imm.
33624 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
33626         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
33628 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
33630         PR target/55433
33631         * lra-constraints.c (curr_insn_transform): Don't reuse original
33632         insn for secondary memory move when memory mode should be different.
33634 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33636         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
33637         atomic_storedi_1): New patterns.
33639 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
33641         btver2 pipeline descriptions.
33642         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
33643         descriptions.
33644         * config/i386/i386.md (btver2_decode): New type attributes.
33645         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
33646         type attributes.
33647         * config/i386/btver2.md: New file describing btver2 pipelines.
33649 2013-01-19  Andrew Pinski  <apinski@cavium.com>
33651         PR tree-optimization/52631
33652         * tree-ssa-sccvn (visit_use): Before looking up the original
33653         statement, try looking up the simplified expression.
33655 2013-01-19  Anthony Green  <green@moxielogic.com>
33657         * config/moxie/moxie.c (moxie_expand_prologue): Set
33658         current_function_static_stack_size.
33660 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
33662         PR tree-optimization/56029
33663         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
33664         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
33666 2013-01-18  Sharad Singhai  <singhai@google.com>
33668         PR tree-optimization/55995
33669         * dumpfile.c (dump_loc): Print location only if available.
33670         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
33672 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
33674         PR target/55433
33675         * lra-constraints.c (curr_insn_transform): Reuse original insn for
33676         secondary memory move.
33677         (inherit_reload_reg): Use rclass instead of cl for
33678         check_secondary_memory_needed_p.
33680 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
33682         PR middle-end/56015
33683         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
33684         the case where writing real complex part of target modifies op1.
33686 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
33688         * config/aarch64/aarch64-simd.md
33689         (aarch64_vcond_internal<mode>): Handle unordered cases.
33690         * config/aarch64/iterators.md (v_cmp_result): New.
33692 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
33693             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33695         * config/arm/marvell-pj4.md: New file.
33696         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
33697         * config/arm/arm.md (generic_sched): Add marvell_pj4.
33698         (generic_vfp): Likewise.
33699         * config/arm/arm-cores.def: Add marvell-pj4.
33700         * config/arm/arm-tune.md: Regenerate.
33701         * config/arm/arm-tables.opt: Regenerate.
33702         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
33703         * doc/invoke.texi: Document marvell-pj4.
33705 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
33707         * config/aarch64/arm_neon.h: Map scalar types to standard types.
33709 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
33711         PR debug/54114
33712         PR debug/54402
33713         PR debug/49888
33714         * var-tracking.c (negative_power_of_two_p): New.
33715         (global_get_addr_cache, local_get_addr_cache): New.
33716         (get_addr_from_global_cache, get_addr_from_local_cache): New.
33717         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
33718         heading comment.
33719         (vt_stack_offset_p): Remove.
33720         (vt_canon_true_dep): Always canonicalize loc's address.
33721         (clobber_overlapping_mems): Make sure we have a MEM.
33722         (local_get_addr_clear_given_value): New.
33723         (val_reset): Clear local cached entries.
33724         (compute_bb_dataflow): Create and release the local cache.
33725         Disable duplicate MEMs clobbering.
33726         (emit_notes_in_bb): Clobber MEMs likewise.
33727         (vt_emit_notes): Create and release the local cache.
33728         (vt_initialize, vt_finalize): Create and release the global
33729         cache, respectively.
33730         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
33732 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
33734         PR libmudflap/53359
33735         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
33736         not found in the symtab.
33738 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
33740         PR debug/56006
33741         PR rtl-optimization/55547
33742         PR rtl-optimization/53827
33743         PR debug/53671
33744         PR debug/49888
33745         * alias.c (offset_overlap_p): New, factored out of...
33746         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
33747         the conservative special case for symbolic constants.  Don't
33748         adjust zero sizes on alignment.
33750 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
33752         PR rtl-optimization/52573
33753         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
33754         REG_UNUSED for the same register.
33756 2013-01-17  Richard Biener  <rguenther@suse.de>
33757             Marek Polacek  <polacek@redhat.com>
33759         PR rtl-optimization/55833
33760         * loop-unswitch.c (unswitch_loops): Move loop verification...
33761         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
33762         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
33763         Set it to true when we're removing a loop from hierarchy tree in
33764         an irreducible region.
33765         (fix_bb_placements): Adjust caller.
33766         (fix_loop_placements): Likewise.
33768 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
33770         * config/avr/builtins.def (DEF_BUILTIN): Factor out
33771         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
33772         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
33773         Remove ID.  Adjust comments.
33774         * config/avr/avr-c.c (avr_builtin_name): Remove.
33775         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
33776         * config/avr/avr.c (avr_tolower): New static function.
33777         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
33778         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
33779         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
33780         default expansion.
33782 2013-01-17  Jan Hubicka  <jh@suse.cz>
33784         PR tree-optimization/55273
33785         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
33787 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
33789         PR target/55981
33790         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
33791         store through atomic_store<mode>_1.
33792         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
33794 2013-01-17  Martin Jambor  <mjambor@suse.cz>
33796         PR tree-optimizations/55264
33797         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
33798         for virtual methods.
33799         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
33800         virtual methods before inlining is over.
33801         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
33802         virtual functions.
33803         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
33804         non-virtual.
33806 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
33808         PR rtl-optimization/56005
33809         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
33810         pending reads for prefetch.
33812 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
33814         * config/aarch64/aarch64.md
33815         (*cstoresi_neg_uxtw): New pattern.
33816         (*cmovsi_insn_uxtw): New pattern.
33817         (*<optab>si3_uxtw): New pattern.
33818         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
33819         (*<optab>si3_insn_uxtw): New pattern.
33820         (*bswapsi2_uxtw): New pattern.
33822 2013-01-16  Richard Biener  <rguenther@suse.de>
33824         * tree-inline.c (tree_function_versioning): Remove set but
33825         never used variable.
33827 2013-01-16  Richard Biener  <rguenther@suse.de>
33829         PR tree-optimization/55964
33830         * tree-flow.h (rename_variables_in_loop): Remove.
33831         (rename_variables_in_bb): Likewise.
33832         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
33833         (copy_loop_before): Adjust and delete update-ssa status.
33834         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
33835         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
33836         (rename_variables_in_loop): Remove.
33837         (slpeel_update_phis_for_duplicate_loop): Likewise.
33838         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
33839         use available cfg machinery instead of duplicating it.
33840         Update PHI nodes and perform poor-mans SSA update here.
33841         (slpeel_tree_peel_loop_to_edge): Adjust.
33843 2013-01-16  Richard Biener  <rguenther@suse.de>
33845         PR tree-optimization/54767
33846         PR tree-optimization/53465
33847         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
33848         (vrp_visit_phi_node): For PHI arguments coming via backedges
33849         drop all symbolical range information.
33850         (execute_vrp): Compute backedges.
33852 2013-01-16  Richard Biener  <rguenther@suse.de>
33854         * doc/install.texi: Update CLooG and ISL requirements to
33855         0.18.0 and 0.11.1.
33857 2013-01-16  Christian Bruel  <christian.bruel@st.com>
33859         PR target/55301
33860         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
33861         (broken_move): Handle UNSPECV_SP_SWITCH_B.
33862         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
33864 2013-01-16  DJ Delorie  <dj@redhat.com>
33866         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
33867         (UNSPECV_SP_SWITCH_E): New.
33868         (sp_switch_1): Change to an unspec.
33869         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
33870         replace $r15.
33872 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
33874         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
33875         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
33876         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
33877         (expand_mem_thread_fence): Ditto.
33878         (expand_mem_signal_fence): Ditto.
33879         (expand_atomic_load): Ditto.
33880         (expand_atomic_store): Ditto.
33882 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
33884         PR rtl-optimization/55547
33885         PR rtl-optimization/53827
33886         PR debug/53671
33887         PR debug/49888
33888         * alias.c (memrefs_conflict_p): Set sizes to negative after
33889         AND adjustments.
33891 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
33893         PR target/55940
33894         * function.c (thread_prologue_and_epilogue_insns): Always
33895         add crtl->drap_reg to set_up_by_prologue.set, even if
33896         stack_realign_drap is false.
33898 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
33900         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
33901         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
33902         *call): Fix indention.
33904 2013-01-15  Tom de Vries  <tom@codesourcery.com>
33906         PR target/55876
33907         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
33908         Update comment.
33910 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
33912         PR rtl-optimization/55153
33913         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
33915 2013-01-15  Martin Jambor  <mjambor@suse.cz>
33917         PR tree-optimization/55920
33918         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
33919         accesses as grp_to_be_debug_replaced.
33921 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
33923         PR tree-optimization/55920
33924         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
33925         there is non-useless type conversion needed from debug rhs to lhs,
33926         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
33928 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
33929             Mikael Pettersson  <mikpe@it.uu.se>
33931         PR target/43961
33932         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
33933         Thumb.
33934         (ASM_OUTPUT_CASE_LABEL): Remove.
33935         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
33936         * final.c (shorten_branches): Update alignment of labels before
33937         jump tables if CASE_VECTOR_SHORTEN_MODE.
33939 2013-01-15  Richard Biener  <rguenther@suse.de>
33941         PR bootstrap/55961
33942         * system.h: Do not include gmp.h for building host tools.
33944 2013-01-15  Richard Biener  <rguenther@suse.de>
33946         PR middle-end/55882
33947         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
33948         account for bitpos when computing alignment.
33950 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
33952         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
33953         (ix86_target_macros_internal): Likewise.
33955         * config/i386/i386.c (m_CORE2I7): Removed.
33956         (m_CORE_HASWELL): New macro.
33957         (m_CORE_ALL): Likewise.
33958         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
33959         (initial_ix86_arch_features): Likewise.
33960         (processor_target_table): Initializations for Core avx2.
33961         (cpu_names): New names "core-avx2".
33962         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
33963         PROCESSOR_CORE_HASWELL.
33964         (ix86_issue_rate): New case.
33965         (ia32_multipass_dfa_lookahead): Likewise.
33966         (ix86_sched_init_global): Likewise.
33968         * config/i386/i386.h (TARGET_HASWELL): New macro.
33969         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
33970         (processor_type): New PROCESSOR_HASWELL.
33972 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
33974         PR tree-optimization/55955
33975         * tree-vect-loop.c (vectorizable_reduction): Give up early on
33976         *SHIFT_EXPR and *ROTATE_EXPR codes.
33978         PR tree-optimization/48766
33979         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
33980         -ftrapv disable -fwrapv.
33982 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
33984         PR target/55974
33985         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
33986         etc. to 1 and not to __flash.
33987         Use LL suffix for __INT24_MAX__ with -mint8.
33988         Use ULL suffix for __UINT24_MAX__ with -mint8.
33990 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
33992         * config/avr/avr-arch.h
33993         (struct base_arch_s): Use typedef avr_arch_t instead.
33994         (struct arch_info_s): Use typedef avr_arch_info_t instead.
33995         (struct mcu_type_s): Use typedef avr_mcu_t instead.
33996         * config/avr/avr.c: Same.
33997         * config/avr/avr-devices.c: Same.
33998         * config/avr/driver-avr.c: Same.
33999         * config/avr/gen-avr-mmcu-texi.c: Same.
34000         * config/avr/avr-mcus.def: Adjust comment.
34002 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
34004         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
34005         * config/aarch64/iterators.md (VALLDI): New.
34007 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
34008             Andi Kleen  <ak@linux.intel.com>
34010         PR target/55948
34011         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
34012         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
34013         memmodel flag.
34015 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
34017         * config/avr/avr-stdint.h: Remove trailing blanks.
34018         * config/avr/avr-log.h: Same.
34019         * config/avr/avr-arch.h: Same.
34020         * config/avr/avr-devices.c: Same.
34021         * config/avr/avr-dimode.md: Same.
34022         * config/avr/predicates.md: Same.
34023         * config/avr/avr-c.c: Same.  And fix typo.
34025         * config/avr/avr-protos.h: Same.  And:
34026         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
34027         (init_cumulative_args): Rename to avr_init_cumulative_args.
34028         (expand_prologue): Rename to avr_expand_prologue.
34029         (expand_epilogue): Rename to avr_expand_epilogue.
34030         (adjust_insn_length): Rename to avr_adjust_insn_length.
34031         (notice_update_cc): Rename to avr_notice_update_cc.
34032         (final_prescan_insn): Rename to avr_final_prescan_insn.
34033         * config/avr/avr.c: Same.
34034         * config/avr/avr.h: Same.
34035         * config/avr/avr.md: Remove trailing blanks.
34036         (prologue): Use avr_expand_prologue.
34037         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
34039 2013-01-14  Richard Biener  <rguenther@suse.de>
34041         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
34042         verify_location, collect_subblocks): New functions.
34043         (verify_gimple_in_cfg): Verify that locations only reference
34044         BLOCKs in the functions BLOCK tree.
34046 2013-01-14  Richard Biener  <rguenther@suse.de>
34048         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
34049         PHI argument.
34050         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
34051         unshare reference.
34052         (insert_out_of_ssa_copy_on_edge): Likewise.
34053         (rewrite_close_phi_out_of_ssa): Likewise.
34054         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
34055         debug expressions.
34056         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
34057         propagated constants.
34058         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
34059         can not be shared.
34061 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
34063         * config/avr/avr-modes.def: Add GPL copyright notice.
34065 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
34067         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
34068         MEMMODEL_MASK to determine memory model.
34069         (atomic_store<mode>): Ditto from operands[2].
34070         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
34072 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
34074         PR fortran/55935
34075         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
34076         (fold_gimple_assign): Don't call unshare_expr here.
34077         (fold_ctor_reference): Call unshare_expr.
34079 2013-01-13  Terry Guo  <terry.guo@arm.com>
34081         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
34082         * doc/fragments.texi: Document MULTILIB_REUSE.
34083         * gcc.c (multilib_reuse): New internal spec.
34084         (set_multilib_dir): Also search multilib from multilib_reuse.
34085         * genmultilib (tmpmultilib3): Refactor code.
34086         (tmpmultilib4): Ditto.
34087         (multilib_reuse): New multilib argument.
34089 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
34091         * Makefile.in: Update copyright.
34093 2013-01-12  Tom de Vries  <tom@codesourcery.com>
34095         PR middle-end/55890
34096         * calls.c (expand_call): Check if arg_nr is valid.
34098 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
34100         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
34101         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
34102         documentation.  Add missing '__' in front of
34103         __builtin_ia32_packssdw256.
34105 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34107         PR target/55719
34108         * config/s390/s390.c (s390_preferred_reload_class): Do not return
34109         NO_REGS for larl operands.
34110         (s390_reload_larl_operand): Use s390_load_address instead of
34111         emit_move_insn.
34113 2013-01-11  Richard Biener  <rguenther@suse.de>
34115         * tree-cfg.c (verify_node_sharing_1): Split out from ...
34116         (verify_node_sharing): ... here.
34117         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
34119 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
34121         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
34122         Substitute TREECHECKING.
34123         * configure: Regenerate.
34124         * Makefile.in (TREECHECKING): New.
34126 2013-01-11  Richard Guenther  <rguenther@suse.de>
34128         PR tree-optimization/44061
34129         * tree-vrp.c (extract_range_basic): Compute zero as
34130         value-range for __builtin_constant_p of function parameters.
34132 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
34134         Update copyright years.
34136 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
34138         PR rtl-optimization/55672
34139         * lra-eliminations.c (mark_not_eliminable): Permit addition with
34140         const to be eliminable.
34142 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
34144         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
34145         * configure: Regenerate.
34147 2013-01-10  Richard Biener  <rguenther@suse.de>
34149         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
34151 2013-01-10  Richard Biener  <rguenther@suse.de>
34153         PR bootstrap/55792
34154         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
34155         locations for virtual PHI arguments.
34156         (rewrite_update_phi_arguments): Likewise.
34158 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
34160         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
34161         on to assembler.
34163 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
34165         PR tree-optimization/55921
34166         * tree-complex.c (expand_complex_asm): New function.
34167         (expand_complex_operations_1): Call it for GIMPLE_ASM.
34169 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34171         PR target/55718
34172         * config/s390/s390.c (s390_symref_operand_p)
34173         (s390_loadrelative_operand_p): Merge the two functions.
34174         (s390_check_qrst_address, print_operand_address): Add parameters
34175         to s390_loadrelative_operand_p invokation.
34176         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
34177         (s390_reload_larl_operand, s390_secondary_reload): Use
34178         s390_loadrelative_operand_p instead of s390_symref_operand_p.
34179         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
34181 2013-01-09  Mike Stump  <mikestump@comcast.net>
34183         * dse.c (record_store): Remove unnecessary assert.
34185 2013-01-09  Jan Hubicka  <jh@suse.cz>
34187         PR tree-optimization/55569
34188         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
34189         * cfgloop.h (scale_loop_profile): Likewise.
34191 2013-01-09  Jan Hubicka  <jh@suse.cz>
34193         PR lto/45375
34194         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
34195         functions.
34196         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
34198 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
34200         PR middle-end/55114
34201         * expr.h (maybe_emit_group_store): Declare.
34202         * expr.c (maybe_emit_group_store): New function.
34203         * builtins.c (expand_builtin_int_roundingfn): Call it.
34204         (expand_builtin_int_roundingfn_2): Likewise.
34206 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
34208         PR rtl-optimization/55829
34209         * lra-constraints.c (match_reload): Add code for absent output.
34210         (curr_insn_transform): Add code for reloads of matched inputs
34211         without output.
34213 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
34215         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
34216         attribute of movddup insn to DF.
34217         (*vec_interleave_lowv2df): Ditto.
34218         (vec_dupv2df): Ditto.
34220 2013-01-09  Jan Hubicka  <jh@suse.cz>
34222         PR tree-optimiation/55875
34223         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
34224         EVERY_ITERATION parameter.
34225         (number_of_iterations_exit): Check if exit is executed every iteration.
34226         (idx_infer_loop_bounds): Similarly here.
34227         (n_of_executions_at_most): Simplify
34228         to only test for cases where statement is dominated by the
34229         particular bound; handle correctly the "postdominance" test.
34230         (scev_probably_wraps_p): Use max loop iterations info
34231         as a global bound first.
34233 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
34234             Nick Clifton  <nickc@redhat.com>
34236         * config/v850/v850.md (cbranchsf4): New pattern.
34237         (cstoresf4): New pattern.
34238         (cbranchdf4): New pattern.
34239         (cstoredf4): New pattern.
34240         (movsicc): Disallow floating point comparisons.
34241         (cmpsf_le_insn): Fix order of operators.
34242         (cmpsf_lt_insn): Likewise.
34243         (cmpsf_eq_insn): Likewise.
34244         (cmpdf_le_insn): Likewise.
34245         (cmpdf_lt_insn): Likewise.
34246         (cmpdf_eq_insn): Likewise.
34247         (cmpsf_ge_insn): Use LE comparison.
34248         (cmpdf_ge_insn): Likewise.
34249         (cmpsf_gt_insn): Use LT comparison.
34250         (cmpdf_gt_insn): Likewise.
34251         (cmpsf_ne_insn): Delete pattern.
34252         (cmpdf_ne_insn): Delete pattern.
34253         * config/v850/v850.c (v850_gen_float_compare): Use
34254         gen_cmpdf_eq_insn for NE comparison.
34255         (v850_float_z_comparison_operator)
34256         (v850_float_nz_comparison_operator): Move from here ...
34257         * config/v850/predicates.md: ... to here.  Move GT and GE
34258         comparisons into v850_float_z_comparison_operator.
34259         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
34260         Delete prototype.
34261         (v850_float_nz_comparison_operator): Likewise.
34263 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34265         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
34266         with calls to gen_insvsi/gen_insvdi.
34268 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
34270         * config/i386/i386.c (initial_ix86_tune_features): Set up
34271         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
34273 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
34274             Jakub Jelinek  <jakub@redhat.com>
34276         PR tree-optimization/48189
34277         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
34278         If nitercst is 0, don't predict the exit edge.
34280 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34282         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
34283         in asm_fprintf with reg_names.
34284         (aarch64_print_operand_address): Likewise.
34285         (aarch64_return_addr): Likewise.
34286         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
34288 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34290         * config/pa/pa.h (VAL_U6_BITS_P): Define.
34291         (INT_U6_BITS): Likewise.
34292         * config/pa/predicates.md (uint6_operand): New predicate.
34293         (shift5_operand, shift6_operand): Likewise.
34294         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
34295         arith32_operand.
34296         (lshrdi3): Use shift6_operand.
34297         (shrpsi4, shrpdi4): New insn patterns.
34298         (extzv): Delete expander.
34299         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
34300         predicates in unamed zero extract patterns.  Tighten common constraint.
34301         (extv): Delete expander.
34302         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
34303         predicates in unamed sign extract patterns.  Tighten common constraint.
34304         (insv): Delete expander.
34305         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
34306         predicates in unamed insert patterns.  Tighten common constraint.
34307         Change uint32_operand predicate to uint6_operand predicate in unamed
34308         DImode pattern to insert constant values of type 1...1xxxx.
34310 2013-01-04  Jan Hubicka  <jh@suse.cz>
34312         PR tree-optimization/55823
34313         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
34314         issue.
34316 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
34317             Uros Bizjak  <ubizjak@gmail.com>
34319         PR rtl-optimization/55845
34320         * df-problems.c (can_move_insns_across): Stop scanning at
34321         volatile_insn_p source instruction or give up if
34322         across_from .. across_to range contains any volatile_insn_p
34323         instructions.
34325 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
34327         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
34328         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
34329         Declare.
34330         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
34331         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
34333 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
34335         PR fortran/55341
34336         * asan.c (asan_clear_shadow): New function.
34337         (asan_emit_stack_protection): Use it.
34339 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
34341         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
34342         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
34343         with tab instead of space.
34345 2013-01-08  Nick Clifton  <nickc@redhat.com>
34347         * config/rl78/rl78.c (rl78_expand_prologue): Always select
34348         register bank 0 at the start of an interrupt handler.
34349         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
34350         MDBH registers.
34352 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
34354         * config/aarch64/aarch64-simd.md
34355         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
34356         (aarch64_simd_bsl): Likewise.
34357         (aarch64_vcond_internal<mode>): Likewise.
34358         (vcond<mode><mode>): Likewise.
34359         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
34360         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
34362 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
34364         * config/aarch64/aarch64-builtins.c
34365         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
34367 2013-01-08  Martin Jambor  <mjambor@suse.cz>
34369         PR debug/55579
34370         * tree-sra.c (analyze_access_subtree): Return true also after
34371         potentially creating a debug-only replacement.
34373 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
34375         PR middle-end/55890
34376         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
34378         PR tree-optimization/54120
34379         * tree-vrp.c (range_fits_type_p): Don't allow
34380         src_precision < precision from signed vr to unsigned_p
34381         if vr->min or vr->max is negative.
34382         (simplify_float_conversion_using_ranges): Test can_float_p
34383         against CODE_FOR_nothing.
34385 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
34386             Richard Biener  <rguenther@suse.de>
34388         PR middle-end/55851
34389         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
34390         types instead of just INTEGER_TYPE types.
34392 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
34394         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
34395         TF_SIZE): Define.
34397 2013-01-07  Steve Ellcey  <sellcey@mips.com>
34399         PR target/42661
34400         * config/mips/mips.opt: Change mad to mmad to match documentation.
34402 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34404         PR target/55897
34405         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
34406         .progmemx.data now.
34408 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34410         PR target/55897
34411         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
34412         (avr_addrspace_t): Add .section_name field.
34413         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
34414         array size.
34415         (avr_addrspace): Same.  Initialize .section_name.  Remove last
34416         NULL entry.  Put __memx into .progmemx.data.
34417         (progmem_section_prefix): Remove.
34418         (avr_asm_init_sections): No need to initialize progmem_section.
34419         (avr_asm_named_section): Use avr_addrspace[].section_name to get
34420         section name prefix.
34421         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
34422         retrieve the progmem section.
34423         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
34424         boundary to run over avr_addrspace[].
34425         (avr_register_target_pragmas): Ditto.
34427 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
34429         * varasm.c (output_constant_def_contents): For asan_protect_global
34430         protected strings, adjust DECL_ALIGN if needed, before testing for
34431         anchored symbols.
34432         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
34433         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
34434         normal decls.
34435         (output_object_block): For asan protected decls, emit asan padding
34436         after their contents.
34437         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
34438         (asan_finish_file): Test it here instead.
34440 2013-01-07  Nick Clifton  <nickc@redhat.com>
34441             Matthias Klose  <doko@debian.org>
34442             Doug Kwan  <dougkwan@google.com>
34443             H.J. Lu  <hongjiu.lu@intel.com>
34445         PR driver/55470
34446         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
34448         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
34450         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
34452         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
34454         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
34456 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34458         PR target/54461
34459         * doc/install.texi (Cross-Compiler-Specific Options): Document
34460         --with-avrlibc.
34462 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
34464         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
34465         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
34466         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
34467         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
34468         vqmovun_high_s64): Fix source operand number and update copyright.
34470 2013-01-07  Richard Biener  <rguenther@suse.de>
34472         PR middle-end/55890
34473         * gimple.h (gimple_call_builtin_p): New overload.
34474         * gimple.c (validate_call): New function.
34475         (gimple_call_builtin_p): Likewise.
34476         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34477         Use gimple_call_builtin_p.
34478         (find_func_clobbers): Likewise.
34479         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
34480         (strlen_optimize_stmt): Likewise.
34482 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
34484         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
34485         (vld1q_dup_*): Likewise.
34486         (vld1_*): Likewise.
34487         (vld1q_*): Likewise.
34488         (vld1_lane_*): Likewise.
34489         (vld1q_lane_*): Likewise.
34491 2013-01-07  Richard Biener  <rguenther@suse.de>
34493         * lto-streamer.h (LTO_minor_version): Bump to 2.
34495 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
34497         * config/aarch64/aarch64-protos.h
34498         (aarch64_const_double_zero_rtx_p): Rename to...
34499         (aarch64_float_const_zero_rtx_p): ...this.
34500         (aarch64_float_const_representable_p): New.
34501         (aarch64_output_simd_mov_immediate): Likewise.
34502         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
34503         move immediate case.
34504         * config/aarch64/aarch64.c
34505         (aarch64_const_double_zero_rtx_p): Rename to...
34506         (aarch64_float_const_zero_rtx_p): ...this.
34507         (aarch64_print_operand): Allow printing of new constants.
34508         (aarch64_valid_floating_const): New.
34509         (aarch64_legitimate_constant_p): Check for valid floating-point
34510         constants.
34511         (aarch64_simd_valid_immediate): Likewise.
34512         (aarch64_vect_float_const_representable_p): New.
34513         (aarch64_float_const_representable_p): Likewise.
34514         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
34515         (aarch64_output_simd_mov_immediate): New.
34516         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
34517         (*movdf_aarch64): Likewise.
34518         * config/aarch64/constraints.md (Ufc): New.
34519         (Y): call aarch64_float_const_zero_rtx.
34520         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
34522 2013-01-07  Richard Biener  <rguenther@suse.de>
34524         PR tree-optimization/55888
34525         PR tree-optimization/55862
34526         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
34527         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
34528         not if it is contained therein.
34530 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34532         * config/avr/t-avr: Typo.
34534 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
34536         PR55243
34537         * config/avr/t-avr: Don't automatically rebuild
34538         $(srcdir)/config/avr/t-multilib
34539         $(srcdir)/config/avr/avr-tables.opt
34540         $(srcdir)/doc/avr-mmcu.texi
34541         (avr-mcus): New phony target to build them on request.
34542         (s-avr-mlib, s-avr-mmcu-texi): Remove.
34543         * avr/avr-mcus.def: Adjust comments.
34545 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
34547         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
34549 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
34551         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
34553 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
34555         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
34557 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
34559         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
34560         to generate profiling.
34561         * config/rs6000/aix64.h (LIB_SPEC): Same.
34563 2013-01-04  Andrew Pinski  <apinski@cavium.com>
34565         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
34566         New function.
34567         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
34569 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
34571         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
34572         unconditionally.
34573         (ix86_expand_move): Ditto.
34574         (ix86_zero_extend_to_Pmode): Ditto.
34575         (ix86_expand_call): Ditto.
34576         (ix86_expand_special_args_builtin): Ditto.
34577         (ix86_expand_builtin): Ditto.
34579 2013-01-04  Richard Biener  <rguenther@suse.de>
34581         PR tree-optimization/55862
34582         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
34583         translating them through PHI nodes.
34585 2013-01-04  Martin Jambor  <mjambor@suse.cz>
34587         PR tree-optimization/55755
34588         * tree-sra.c (sra_modify_assign): Do not check that an access has no
34589         children when trying to avoid producing a VIEW_CONVERT_EXPR.
34591 2013-01-04  Marek Polacek  <polacek@redhat.com>
34593         PR middle-end/55859
34594         * opts.c (default_options_optimization): Clarify error message.
34596 2013-01-04  Richard Biener  <rguenther@suse.de>
34598         PR middle-end/55863
34599         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
34600         reassociation.
34602 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34604         PR target/53789
34605         * config/pa/pa.md (movsi): Revert previous change.
34606         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
34607         references.
34609 2013-01-03  Richard Henderson  <rth@redhat.com>
34611         * config/i386/i386.c (ix86_expand_move): Always assign to op1
34612         after eliminating TLS symbols.
34614 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
34616         PR bootstrap/50167
34617         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
34618         * graphite-poly.c (debug_gmp_value): Likewise.
34620 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
34622         PR target/55712
34623         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
34624         selected code model, define __code_mode_small__, __code_model_medium__,
34625         __code_model_large__, __code_model_32__ or __code_model_kernel__.
34626         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
34627         xchg temporary register with %k.  Declare temporary register as
34628         early clobbered.
34629         [__x86_64__]: For medium and large code models, preserve %rbx register.
34631 2013-01-03  Richard Biener  <rguenther@suse.de>
34633         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
34634         (dump_subscript): Adjust.
34635         (finalize_ddr_dependent): Do not dump redundant info.
34636         (analyze_siv_subscript): Adjust.
34637         (subscript_dependence_tester): Likewise.
34638         (compute_affine_dependence): Likewise.
34640 2013-01-03  Richard Biener  <rguenther@suse.de>
34642         Revert
34643         2013-01-03  Richard Biener  <rguenther@suse.de>
34645         PR tree-optimization/55857
34646         * tree-vect-stmts.c (vectorizable_load): Do not setup
34647         re-alignment for invariant loads.
34649         2013-01-02  Richard Biener  <rguenther@suse.de>
34651         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
34652         invariant load do not generate a vector load from the scalar location.
34654 2013-01-03  Richard Biener  <rguenther@suse.de>
34656         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
34657         for not vectorizing.
34658         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
34659         not build INDIRECT_REFs, call get_name once only.
34660         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
34661         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
34663 2013-01-03  Richard Biener  <rguenther@suse.de>
34665         PR tree-optimization/55857
34666         * tree-vect-stmts.c (vectorizable_load): Do not setup
34667         re-alignment for invariant loads.
34669 2013-01-03  Richard Biener  <rguenther@suse.de>
34671         PR lto/55848
34672         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
34673         prefer a built-in decl.
34675 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
34677         * gcc.c (process_command): Update copyright notice dates.
34678         * gcov.c (print_version): Likewise.
34679         * gcov-dump.c (print_version): Likewise.
34681         PR rtl-optimization/55838
34682         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
34683         iv0.step, iv1.step and step.
34685 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
34686             Marc Glisse  <marc.glisse@inria.fr>
34688         PR tree-optimization/55832
34689         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
34690         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
34691         integer_{one,zero}_node.
34693 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
34695         PR debug/54402
34696         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
34697         * var-tracking.c (reverse_op): Don't add reverse ops to
34698         VALUEs that have already
34699         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
34701 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
34703         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
34705 2013-01-02  Teresa Johnson  <tejohnson@google.com>
34707         * dumpfile.c (dump_loc): Print filename with location.
34708         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
34709         new location_t parameter to emit complete unroll message with
34710         new dump framework.
34711         (canonicalize_loop_induction_variables): Compute loops location
34712         and pass to try_unroll_loop_completely.
34713         * loop-unroll.c (report_unroll_peel): New function.
34714         (peel_loops_completely): Use new dump format with location
34715         for main dumpfile message, and invoke report_unroll_peel on success.
34716         (decide_unrolling_and_peeling): Ditto.
34717         (decide_peel_once_rolling): Remove old dumpfile message subsumed
34718         by report_unroll_peel.
34719         (decide_peel_completely): Ditto.
34720         (decide_unroll_constant_iterations): Ditto.
34721         (decide_unroll_runtime_iterations): Ditto.
34722         (decide_peel_simple): Ditto.
34723         (decide_unroll_stupid): Ditto.
34724         * cfgloop.c (get_loop_location): New function.
34725         * cfgloop.h (get_loop_location): Declare.
34727 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
34729         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
34730         NULL.
34732 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34734         PR middle-end/55198
34735         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
34736         BLKmode objects when EXPAND_MEMORY is specified.
34738 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
34740         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
34741         in loop predicate.
34742         (fold_builtin_cpu): Do not share cpu model decls across statements.
34744 2013-01-02  Jason Merrill  <jason@redhat.com>
34746         PR c++/55804
34747         * tree.c (build_array_type_1): Revert earlier change.
34749 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
34751         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
34752         "cortex-a57".
34753         * config/aarch64/aarch64-tune.md: Re-generate.
34755 2013-01-02  Richard Biener  <rguenther@suse.de>
34757         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
34758         invariant load do not generate a vector load from the scalar location.
34760 2013-01-02  Richard Biener  <rguenther@suse.de>
34762         PR bootstrap/55784
34763         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
34764         * configure: Regenerate.
34766 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
34768         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
34769         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
34770         (expand_builtin_int_roundingfn_2): Keep the original target around
34771         for the fallback case.
34773 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
34775         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
34776         to be clear for sign changes.
34778 2013-01-01  Jan Hubicka  <jh@suse.cz>
34780         * ipa-inline-analysis.c: Fix formatting.
34782 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
34784         PR tree-optimization/55831
34785         * tree-vect-loop.c (get_initial_def_for_induction): Use
34786         gsi_after_labels instead of gsi_start_bb.
34788 Copyright (C) 2013 Free Software Foundation, Inc.
34790 Copying and distribution of this file, with or without modification,
34791 are permitted in any medium without royalty provided the copyright
34792 notice and this notice are preserved.