1 2013-11-21 Richard Biener <rguenther@suse.de>
3 * tree-ssa-forwprop.c (simplify_vce): New function.
4 (ssa_forward_propagate_and_combine): Call it.
6 2013-11-21 Richard Biener <rguenther@suse.de>
8 * tree-vect-loop-manip.c (vect_build_loop_niters,
9 vect_generate_tmps_on_preheader): Move ...
10 * tree-vect-loop.c (vect_build_loop_niters,
11 vect_generate_tmps_on_preheader): ... here and simplify.
12 (vect_transform_loop): Call them here and pass down results
14 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
15 Get niter variables from caller.
16 (vect_do_peeling_for_alignment): Likewise.
17 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
18 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
21 2013-11-21 Richard Biener <rguenther@suse.de>
23 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
24 nb_iterations_upper_bound by one.
26 2013-11-21 Richard Biener <rguenther@suse.de>
28 PR tree-optimization/59058
29 * tree-loop-distribution.c (struct partition_s): Add plus_one
31 (build_size_arg_loc): Apply niter adjustment here.
32 (generate_memset_builtin): Adjust.
33 (generate_memcpy_builtin): Likewise.
34 (classify_partition): Do not use number_of_exit_cond_executions
35 but record whether niter needs to be adjusted.
37 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
39 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
42 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
45 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
46 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
47 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
48 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
49 sh_optimize_sett_clrt pass.o to extra_objs.
51 2013-11-20 David Malcolm <dmalcolm@redhat.com>
53 * cfg.c (dump_edge_info): Remove redundant comment.
54 * cfgcleanup.c (outgoing_edges_match): Reword reference to
55 EXIT_BLOCK_PTR in comment.
56 (try_optimize_cfg): Likewise.
57 * cfgrtl.c (last_bb_in_partition): Likewise.
58 * cgraph.c (cgraph_node_cannot_return): Likewise.
59 * function.c (thread_prologue_and_epilogue_insns): Likewise.
60 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
61 * ipa-split.c (consider_split): Likewise.
62 * profile.c (find_spanning_tree): Likewise.
63 * sched-int.h (common_sched_info_def.add_block): Likewise.
64 * dominance.c (calc_dfs_tree_nonrec): Reword references in
65 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
66 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
67 in comments to now removed ENTRY_BLOCK_PTR macro.
68 (tree_forwarder_block_p): Reword reference in comment to
70 * tree-inline.c (copy_cfg_body): Reword references in comments to
71 now removed ENTRY_BLOCK_PTR macro.
72 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
73 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
74 a comma to the comment to clarify the meaning.
76 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
78 * gimplify.h (gimplify_hasher : typed_free_remove, struct gimplify_ctx):
80 (free_gimplify_stack): Add prototype.
81 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
82 (struct gimplify_ctx): Relocate here.
83 (gimplify_ctxp): Make static.
84 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
85 list of struct gimplify_ctx.
86 (push_gimplify_context): Add default parameters and allocate a struct
88 (pop_gimplify_context): Free a struct back to the pool.
89 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
90 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
91 use a local 'struct gimplify_ctx'.
92 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
93 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
95 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
96 lower_omp_ordered, lower_omp_critical, lower_omp_for,
97 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
98 lower_omp_teams, execute_lower_omp): Likewise.
99 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
100 * tree-inline.c (optimize_inline_calls): Likewise.
102 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
104 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
105 (vsx_extract_<mode>): Likewise.
106 (*vsx_extract_<mode>_one_le): New LE variant on
107 *vsx_extract_<mode>_zero.
108 (vsx_extract_v4sf): Adjust for little endian.
110 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
112 PR rtl-optimization/59133
113 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
115 (lra_create_new_reg_with_unique_value): Pass new argument value.
116 (lra_emit_add, lra_emit_move): Ditto.
117 * lra-constraints.c (in_class_p): Add check for move for a new
119 (change_class): Rename to lra_change_class. Move to lra-int.h.
120 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
122 (process_addr_reg, process_addr): Ditto.
123 (curr_insn_transform): Ditto. Add check on old pseudo for
125 * lra-int.h (lra_get_regno_hard_regno): Move below.
126 (lra_change_class): Renamed change_class from lra.c.
128 2013-11-20 David Malcolm <dmalcolm@redhat.com>
130 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
131 the children of a NULL pointer.
133 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
135 * lra.c (lra): Set lra_in_progress before check_rtl call.
136 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
137 adding clobber regs when LRA is running.
139 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
141 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
142 restriction for ISA_MIPS32R2.
143 (ISA_HAS_LXC1_SXC1): New macro.
144 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
145 (ISA_HAS_NMADD4_NMSUB4): Likewise.
146 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
147 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
148 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
149 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
150 (*<ANYF:storex>_<P:mode>): Likewise.
152 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
154 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
155 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
156 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
157 * config/mips/mips.md (recip_condition): Remove mode attribute.
158 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
160 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
162 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
165 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
166 Make sure neg2_ovf is set before being used.
168 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
170 * plugin.def: Add comment about register_callback and
171 invoke_plugin_callbacks_full.
173 * plugin.c (register_callback, invoke_plugin_callbacks_full):
174 Handle PLUGIN_INCLUDE_FILE event.
176 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
178 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
179 allow subregs of TDmode in FPRs of smaller size in little-endian.
180 (rs6000_split_multireg_move): When splitting an access to TDmode
181 in FPRs, do not use simplify_gen_subreg.
183 2013-11-20 Joseph Myers <joseph@codesourcery.com>
186 * real.c: Remove comment about decimal string conversion and
188 (real_from_string): Use MPFR to convert nonzero decimal constant
191 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
193 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
194 endianness of the D registers for the legacy encodings.
196 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
198 PR rtl-optimization/54300
199 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
200 outputs in a single-set are killed from the value chains.
202 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
204 * cgraph.h (varpool_node): Add need_bounds_init field.
205 * lto-cgraph.c (lto_output_varpool_node): Output
206 need_bounds_init value.
207 (input_varpool_node): Read need_bounds_init value.
208 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
210 2013-11-20 Jan Hubicka <jh@suse.cz>
212 * opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker-plugin.
213 * common.opt (fuse-linker-plugin): Add var.
215 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
217 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
218 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
219 (gen_type_die_with_usage): Skip pointer bounds.
220 (dwarf2out_global_decl): Likewise.
222 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
224 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
227 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
230 * config/i386/i386.c (ix86_option_override_internal): Add missed
231 argument prefix for 'ix86_fpmath'.
232 * config/i386/ssemath.h: Add missed definition of
233 TARGET_FPMATH_DEFAULT_P macros.
235 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
236 Mike Stump <mikestump@comcast.net>
237 Richard Sandiford <rdsandiford@googlemail.com>
239 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
240 instead of TREE_INT_CST_LOW, in cases where there is a protecting
241 tree_fits_shwi_p or tree_fits_uhwi_p.
242 * builtins.c (fold_builtin_powi): Likewise.
243 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
245 * dbxout.c (dbxout_symbol): Likewise.
246 * expr.c (expand_expr_real_1): Likewise.
247 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
248 (fold_binary_loc): Likewise.
249 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
250 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
251 * omp-low.c (lower_omp_for_lastprivate): Likewise.
252 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
253 * stor-layout.c (compute_record_mode): Likewise.
254 * tree-cfg.c (verify_expr): Likewise.
255 * tree-dfa.c (get_ref_base_and_extent): Likewise.
256 * tree-pretty-print.c (dump_array_domain): Likewise.
257 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
258 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
259 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
260 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
261 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
262 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
263 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
264 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
265 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
266 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
267 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
268 (create_variable_info_for_1): Likewise.
269 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
270 (vect_verify_datarefs_alignment): Likewise.
271 (vect_analyze_data_ref_accesses): Likewise.
272 (vect_prune_runtime_alias_test_list): Likewise.
273 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
275 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
277 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
278 overflow. Use tree_to_shwi.
280 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
282 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
283 HOST_WIDE_INTs when folding (x >> c) << c.
285 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
286 Dominik Vogt <vogt@linux.vnet.ibm.com>
288 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
289 int comparisons with an out of range condition code.
290 (s390_optimize_nonescaping_tx): Skip empty BBs.
291 Generate the new tbegin RTX when removing the FPR clobbers (with
293 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
294 result before doing the retry calculations.
295 (s390_init_builtins): Make tbegin "returns_twice" and tabort
297 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
298 the TDB setting part of an tbegin.
299 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
300 ("tx_assist"): Set unused argument to an immediate zero instead of
301 loading zero into a GPR and pass it as argument.
302 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
303 Remove inline and related attributes.
304 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
305 (__TM_is_illegal, __TM_is_footprint_exceeded)
306 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value
309 2013-11-20 Richard Biener <rguenther@suse.de>
312 * lto-opts.c (lto_write_options): Write defaults only if
313 they were not explicitely specified. Also write
314 -ffp-contract default.
315 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
317 (run_gcc): Pass through -ffp-contract.
319 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
321 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
323 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
325 * gcc/config/aarch64/aarch64-builtins.c
326 (aarch64_simd_itype): Remove.
327 (aarch64_simd_builtin_datum): Remove itype, add
329 (VAR1): Use qualifiers.
330 (aarch64_build_scalar_type): New.
331 (aarch64_build_vector_type): Likewise.
332 (aarch64_build_type): Likewise.
333 (aarch64_init_simd_builtins): Refactor, remove special cases,
334 consolidate main loop.
335 (aarch64_simd_expand_args): Likewise.
337 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
340 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
342 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
344 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
346 2013-11-19 David Malcolm <dmalcolm@redhat.com>
348 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
349 to "vec<>" instances.
350 (build_pretty_printer): Register the vec<>* prettyprinter.
352 2013-11-19 David Malcolm <dmalcolm@redhat.com>
354 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
355 (GdbSubprinter.handles_type): New.
356 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
357 (GdbSubprinterRegex): New subclass of GdbSubprinter.
358 (GdbPrettyPrinters.add_printer): Remove in favor of...
359 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
360 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
361 (GdbPrettyPrinters.__call__): Update search for subprinter
362 to use handles_type method.
363 (build_pretty_printer): Update registration of subprinters to
364 use the new API above, supporting multiple spelling of each type,
365 and allowing for future regex-based subprinters.
367 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
369 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
370 V16QI vector splat case for little endian.
372 2013-11-19 Jeff Law <law@redhat.com>
374 * tree-ssa-threadedge.c (thread_across_edge): After threading
375 through a joiner, allow threading a normal block requiring duplication.
377 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
378 jump threading requests that would muck up the loop structures.
380 * tree-ssa-threadupdate.c: Fix trailing whitespace.
381 * tree-ssa-threadupdate.h: Likewise.
383 2013-11-19 Mike Stump <mikestump@comcast.net>
385 * gdbinit.in: Add pmz to print out mpz values.
387 2013-11-20 Jan Hubicka <jh@suse.cz>
389 * common.opt (ffat-lto-objects): Disable by default.
390 * doc/invoke.texi (fat-lto-objects): Update documentation.
391 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
393 2013-11-19 Martin Jambor <mjambor@suse.cz>
395 PR rtl-optimization/59099
396 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
398 (ira): Move init_reg_equiv and call to
399 split_live_ranges_for_shrink_wrap up, remove analyses around call
400 to find_moveable_pseudos.
402 2013-11-20 Alan Modra <amodra@gmail.com>
404 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
405 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
406 to strict alignment on older processors when little-endian.
407 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
410 2013-11-19 Teresa Johnson <tejohnson@google.com>
412 * common/config/i386/i386-common.c: Enable
413 -freorder-blocks-and-partition at -O2 and up for x86.
414 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
415 * opts.c (finish_options): Only warn if
416 -freorder-blocks-and-partition was set on command line.
418 2013-11-19 Sriraman Tallam <tmsriram@google.com>
420 * final.c (final_scan_insn): Emit a label for the split
421 cold function part. Label name is formed by suffixing
422 the original function name with "cold".
424 2013-11-19 David Malcolm <dmalcolm@redhat.com>
426 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
427 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
428 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
429 (EXIT_BLOCK_PTR_FOR_FN): ...this.
430 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
432 (EXIT_BLOCK_PTR): Likewise.
433 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
434 (FOR_ALL_BB_FN): Update for renaming of
435 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
437 * cfg.c (init_flow): Likewise.
438 (check_bb_profile): Likewise.
439 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
440 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
441 * cfghooks.c (account_profile_record): Likewise.
442 * cfgloop.c (init_loops_structure): Likewise.
443 * cgraphbuild.c (record_eh_tables): Likewise.
444 (compute_call_stmt_bb_frequency): Likewise.
445 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
446 * lto-streamer-in.c (input_cfg): Likewise.
447 * predict.c (maybe_hot_frequency_p): Likewise.
448 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
449 * tree-inline.c (initialize_cfun): Likewise.
450 (copy_cfg_body): Likewise.
451 (copy_body): Likewise.
452 (tree_function_versioning): Likewise.
454 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
455 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
456 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
457 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
458 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
459 (connect_traces): Likewise.
460 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
461 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
462 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
464 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
466 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
467 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
468 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
469 (rotate_loop): Likewise.
470 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
471 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
473 (alloc_aux_for_edges): Likewise.
474 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
475 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
477 (compact_blocks): Likewise.
478 (clear_edges): Likewise.
479 * cfganal.c (single_pred_before_succ_order): Remove usage of
480 ENTRY_BLOCK_PTR macro.
481 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
482 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
483 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
484 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
485 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
487 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
488 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
490 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
491 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
492 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
493 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
494 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
495 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
497 (print_edge_list): Likewise.
498 (create_edge_list): Likewise.
499 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
500 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
502 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
504 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
505 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
506 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
507 (try_optimize_cfg): Likewise.
508 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
509 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
510 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
511 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
512 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
513 (try_forward_edges): Likewise.
514 (try_simplify_condjump): Likewise.
515 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
516 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
517 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
518 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
520 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
521 (expand_gimple_tailcall): Likewise.
522 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
523 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
524 (tidy_fallthru_edges): Likewise.
525 (verify_flow_info): Likewise.
526 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
527 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
528 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
529 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
530 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
531 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
532 (get_loop_body_in_dom_order): Likewise.
533 (get_loop_body): Likewise.
534 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
535 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
536 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
538 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
539 (fix_bb_placement): Likewise.
540 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
541 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
542 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
543 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
545 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
546 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
547 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
548 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
550 (fixup_fallthru_exit_predecessor): Remove uses of macros:
551 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
552 (fixup_reorder_chain): Likewise.
553 (relink_block_chain): Likewise.
554 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
555 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
556 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
557 (force_one_exit_fallthru): Likewise.
558 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
560 (rtl_verify_edges): Likewise.
561 (commit_edge_insertions): Likewise.
562 (commit_one_edge_insertion): Likewise.
563 (rtl_split_edge): Likewise.
564 (force_nonfallthru_and_redirect): Likewise.
565 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
566 (skip_insns_after_block): Likewise.
567 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
569 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
570 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
572 (contains_no_active_insn_p): Likewise.
573 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
574 (entry_of_function): Likewise.
575 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
576 (fixup_new_cold_bb): Likewise.
577 (patch_jump_insn): Likewise.
578 (try_redirect_by_replacing_jump): Likewise.
579 (block_label): Likewise.
580 (could_fall_through): Likewise.
581 (can_fallthru): Likewise.
582 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
583 ENTRY_BLOCK_PTR macro.
584 (rebuild_cgraph_edges): Likewise.
585 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
586 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
587 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
588 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
589 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
590 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
591 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
592 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
594 (reg_nonzero_bits_for_combine): Likewise.
595 (set_nonzero_bits_and_sign_copies): Likewise.
596 (combine_instructions): Likewise.
597 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
599 (bypass_conditional_jumps): Likewise.
600 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
601 (find_implicit_sets): Likewise.
602 (cprop_jump): Likewise.
603 * cse.c (cse_cc_succs): Likewise.
604 (cse_find_path): Likewise.
605 * df-problems.c (df_lr_confluence_0): Likewise.
606 * df-scan.c (df_entry_block_defs_collect): Remove usage of
607 ENTRY_BLOCK_PTR macro.
608 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
609 * dominance.c (iterate_fix_dominators): Remove usage of
610 ENTRY_BLOCK_PTR macro.
611 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
612 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
613 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
615 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
617 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
619 * domwalk.c (cmp_bb_postorder): Likewise.
620 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
621 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
623 (sjlj_emit_function_enter): Likewise.
624 * final.c (compute_alignments): Likewise.
625 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
626 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
627 (reposition_prologue_and_epilogue_notes): Remove usage of
628 EXIT_BLOCK_PTR macro.
629 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
631 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
632 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
633 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
634 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
635 (compute_code_hoist_vbeinout): Likewise.
636 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
637 (pre_expr_reaches_here_p_work): Likewise.
638 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
639 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
641 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
642 ENTRY_BLOCK_PTR macro.
643 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
645 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
646 ENTRY_BLOCK_PTR macro.
647 * graphite-scop-detection.c (build_scops): Likewise.
648 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
649 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
650 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
652 (unlink_bb_notes): Likewise.
653 (create_check_block_twin): Likewise.
654 (init_before_recovery): Likewise.
655 (sched_extend_bb): Likewise.
656 (priority): Likewise.
657 * hw-doloop.c (reorder_loops): Likewise.
658 (discover_loop): Likewise.
659 * ifcvt.c (dead_or_predicable): Remove uses of macros:
660 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
661 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
662 (block_has_only_trap): Likewise.
663 (cond_exec_find_if_block): Likewise.
664 (merge_if_block): Likewise.
665 * ipa-inline-analysis.c (param_change_prob): Remove usage of
666 ENTRY_BLOCK_PTR macro.
667 (record_modified): Likewise.
668 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
669 EXIT_BLOCK_PTR macro.
670 (local_pure_const): Likewise.
671 * ipa-split.c (split_function): Remove uses of macros:
672 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
673 (find_split_points): Likewise.
674 (consider_split): Likewise.
675 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
676 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
677 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
678 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
679 * ira-emit.c (entered_from_non_parent_p): Remove usage of
680 ENTRY_BLOCK_PTR macro.
681 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
682 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
683 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
684 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
685 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
687 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
689 (compute_farthest): Likewise.
690 (compute_available): Likewise.
691 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
692 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
694 (compute_earliest): Likewise.
695 (compute_antinout_edge): Likewise.
696 * loop-iv.c (simplify_using_initial_values): Remove usage of
697 ENTRY_BLOCK_PTR macro.
698 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
700 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
702 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
704 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
705 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
706 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
708 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
710 * lto-streamer-out.c (output_cfg): Likewise.
711 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
713 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
714 * mode-switching.c (optimize_mode_switching): Likewise.
715 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
716 * modulo-sched.c (rest_of_handle_sms): Likewise.
717 (canon_loop): Likewise.
718 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
719 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
720 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
721 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
723 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
724 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
725 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
726 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
727 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
728 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
729 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
730 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
731 (gimple_predict_edge): Likewise.
732 (probably_never_executed): Likewise.
733 * profile.c (find_spanning_tree): Remove uses of macros:
734 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
735 (branch_prob): Likewise.
736 (compute_branch_probabilities): Likewise.
737 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
738 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
739 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
740 (set_bb_counts): Likewise.
741 (correct_negative_edge_counts): Likewise.
742 (get_exec_counts): Likewise.
743 (instrument_values): Likewise.
744 (instrument_edges): Likewise.
745 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
747 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
748 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
749 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
750 (reg_to_stack): Likewise.
751 * regs.h (REG_N_SETS): Likewise.
752 * reload.c (find_dummy_reload): Likewise.
753 (combine_reloads): Likewise.
754 (push_reload): Likewise.
755 * reload1.c (has_nonexceptional_receiver): Remove usage of
756 EXIT_BLOCK_PTR macro.
757 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
759 (find_basic_block): Likewise.
760 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
761 (schedule_ebbs): Likewise.
762 * sched-int.h (sel_sched_p): Likewise.
763 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
765 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
766 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
768 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
769 (extend_rgns): Likewise.
770 (find_single_block_region): Likewise.
771 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
772 ENTRY_BLOCK_PTR macro.
773 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
774 (sel_create_recovery_block): Likewise.
775 (bb_ends_ebb_p): Likewise.
776 (sel_bb_end): Likewise.
777 (sel_bb_head): Likewise.
778 (free_lv_sets): Likewise.
779 (init_lv_sets): Likewise.
780 (tidy_control_flow): Likewise.
781 (maybe_tidy_empty_bb): Likewise.
782 * sel-sched-ir.h (_succ_iter_cond): Likewise.
783 (_succ_iter_start): Likewise.
784 (sel_bb_empty_or_nop_p): Likewise.
785 (get_loop_exit_edges_unique_dests): Likewise.
786 (inner_loop_header_p): Likewise.
787 * sel-sched.c (create_block_for_bookkeeping): Likewise.
788 (find_block_for_bookkeeping): Likewise.
789 * store-motion.c (remove_reachable_equiv_notes): Likewise.
790 (insert_store): Likewise.
791 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
792 ENTRY_BLOCK_PTR macro.
793 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
794 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
795 (gate_tm_init): Likewise.
796 (tm_region_init): Likewise.
797 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
798 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
799 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
800 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
802 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
803 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
805 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
807 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
809 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
811 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
812 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
813 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
814 (build_gimple_cfg): Likewise.
815 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
816 (gimple_can_merge_blocks_p): Likewise.
817 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
818 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
819 * tree-complex.c (update_parameter_components): Remove usage of
820 ENTRY_BLOCK_PTR macro.
821 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
822 EXIT_BLOCK_PTR macro.
823 * tree-inline.c (tree_function_versioning): Remove uses of macros:
824 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
825 (delete_unreachable_blocks_update_callgraph): Likewise.
826 (initialize_cfun): Likewise.
827 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
828 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
829 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
830 * tree-into-ssa.c (update_ssa): Likewise.
831 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
832 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
833 (rewrite_into_ssa): Likewise.
834 (rewrite_debug_stmt_uses): Likewise.
835 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
836 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
837 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
838 ENTRY_BLOCK_PTR macro.
839 * tree-scalar-evolution.h (block_before_loop): Likewise.
840 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
841 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
843 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
845 (propagate_dereference_distances): Remove uses of macros:
846 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
847 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
849 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
850 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
851 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
852 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
853 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
854 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
855 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
856 (mark_control_dependent_edges_necessary): Remove uses of macros:
857 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
858 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
859 ENTRY_BLOCK_PTR macro.
860 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
861 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
862 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
863 (calculate_live_on_exit): Likewise.
864 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
865 (loe_visit_block): Likewise.
866 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
867 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
868 (live_on_entry): Likewise.
869 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
870 EXIT_BLOCK_PTR macro.
871 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
872 ENTRY_BLOCK_PTR macro.
873 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
874 (bound_difference): Likewise.
875 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
876 of EXIT_BLOCK_PTR macro.
877 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
878 of ENTRY_BLOCK_PTR macro.
879 * tree-ssa-math-opts.c (register_division_in): Likewise.
880 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
881 * tree-ssa-pre.c (compute_avail): Likewise.
882 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
883 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
884 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
885 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
886 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
888 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
889 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
890 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
891 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
892 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
893 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
894 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
895 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
896 (find_pdom): Likewise.
897 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
898 * tree-stdarg.c (reachable_at_most_once): Likewise.
899 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
900 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
901 (eliminate_tail_call): Likewise.
902 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
904 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
905 * var-tracking.c (vt_initialize): Remove uses of macros:
906 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
907 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
908 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
909 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
911 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
913 * config/bfin/bfin.c (hwloop_optimize): Likewise.
914 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
915 of EXIT_BLOCK_PTR macro.
916 * config/arm/arm.c (require_pic_register): Remove usage of
917 ENTRY_BLOCK_PTR macro.
918 (arm_r3_live_at_start_p): Likewise.
919 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
920 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
921 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
922 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
923 ENTRY_BLOCK_PTR macro.
924 * config/i386/i386.c (ix86_count_insn): Likewise.
925 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
926 (ix86_pad_short_function): Likewise.
927 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
928 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
929 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
930 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
931 (ix86_expand_epilogue): Likewise.
932 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
933 (ia64_expand_prologue): Likewise.
935 2013-11-19 Catherine Moore <clm@codesourcery.com>
937 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
938 * config/mips/mips.opt (mfix-rm7000): New option.
939 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
940 * config/mips/mips.c (mips_reorg_process_insns): Disable
941 noreorder for TARGET_FIX_RM7000.
943 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
945 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
947 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
949 * config/arm/arm.c (arm_new_rtx_costs):
950 Handle narrow mode add-shifts properly.
951 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
952 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
955 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
957 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
959 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
961 * config/rs6000/vector.md ("mov<mode>"): Do not call
962 rs6000_emit_le_vsx_move to move into or out of GPRs.
963 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
964 source and destination are not GPR hard regs.
966 2013-11-19 David Malcolm <dmalcolm@redhat.com>
968 * basic-block.h (n_edges_for_function): Rename macro to...
969 (n_edges_for_fn): ...this.
970 (n_edges): Eliminate macro as work towards making uses of
973 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
976 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
977 (clear_edges): Likewise.
978 (free_edge): Likewise.
979 * cfghooks.c (dump_flow_info): Likewise.
980 * cprop.c (is_too_expensive): Likewise.
981 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
982 * gcse.c (is_too_expensive): Likewise.
983 (prune_insertions_deletions): Likewise.
984 * mcf.c (create_fixup_graph): Likewise.
985 * sched-rgn.c (haifa_find_rgns): Likewise.
986 * tree-cfg.c (gimple_dump_cfg): Likewise.
987 * var-tracking.c (variable_tracking_main_1): Likewise.
989 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
991 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
994 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
996 * config/aarch64/aarch64.md
997 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
999 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
1001 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
1003 2013-11-19 Joseph Myers <joseph@codesourcery.com>
1005 * varasm.c (align_variable): Give error instead of warning for
1006 unsupported alignment.
1007 (assemble_noswitch_variable): Likewise.
1009 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1011 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
1014 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
1016 * loop-doloop.c (doloop_optimize_loops): Remove unused
1017 loop iterator argument from FOR_EACH_LOOP.
1019 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1021 Convert gimple types from a union to C++ inheritance.
1022 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
1023 * coretypes.h (union gimple_statement_d): Remove declaration.
1024 (gimple): Convert from being a "union gimple_statement_d *"
1025 to a "struct gimple_statement_base *".
1026 (const_gimple): Likewise (with "const").
1027 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
1028 (ggc_alloc_cleared_gimple_statement_stat): ...this.
1029 * gimple-pretty-print.c (debug): Change parameter from a
1030 "gimple_statement_d &" to a "gimple_statement_base &".
1031 (debug): Change parameter from a "gimple_statement_d *" to
1032 a "gimple_statement_base *".
1033 * gimple-pretty-print.h (debug): Update declarations as above.
1034 * gimple.c (gimple_alloc_stat): Update for renaming of
1035 ggc_alloc_cleared_gimple_statement_d_stat to
1036 ggc_alloc_cleared_gimple_statement_stat.
1037 * gimple.h: Include "is-a.h" for use by is_a_helper
1038 specializations in followup autogenerated patch.
1039 (struct gimple statement_base): Make this type usable as a base
1040 class by adding "desc", "tag" and "variable_size" to GTY, thus
1041 using opting-in to gengtype's support for simple inheritance.
1042 (gimple_statement_with_ops_base): Convert to a subclass of
1043 gimple_statement_base, dropping initial "gsbase" field. Note that
1044 this type is abstract, with no GSS_ value, and thus no GTY tag value.
1045 (gimple_statement_with_ops): Convert to a subclass of
1046 gimple_statement_with_ops_base, dropping initial "opbase" field.
1047 Add tag value to GTY marking. Update marking of op field to
1048 reflect how num_ops field is accessed via inheritance.
1049 (gimple_statement_with_memory_ops_base): Convert to a subclass of
1050 gimple_statement_with_ops_base, dropping initial "opbase" field.
1051 Add tag value to GTY marking.
1052 (gimple_statement_with_memory_ops): Convert to a subclass of
1053 public gimple_statement_with_memory_ops_base, dropping initial
1054 "membase" field. Add tag value to GTY marking. Update marking
1055 of op field to reflect how num_ops field is accessed via inheritance.
1056 (gimple_statement_call): Analogous changes that also update the
1057 marking of the "u" union.
1058 (gimple_statement_omp): Convert to a subclass of
1059 gimple_statement_base, dropping initial "gsbase" field, adding
1060 tag value to GTY marking.
1061 (gimple_statement_bind): Likewise.
1062 (gimple_statement_catch): Likewise.
1063 (gimple_statement_eh_filter): Likewise.
1064 (gimple_statement_eh_else): Likewise.
1065 (gimple_statement_eh_mnt): Likewise.
1066 (gimple_statement_phi): Likewise.
1067 (gimple_statement_eh_ctrl): Likewise.
1068 (gimple_statement_try): Likewise.
1069 (gimple_statement_wce): Likewise.
1070 (gimple_statement_asm): Convert to a subclass of
1071 gimple_statement_with_memory_ops_base, dropping initial
1072 "membase" field, adding tag value to GTY marking, and updating
1073 marking of op field.
1074 (gimple_statement_omp_critical): Convert to a subclass of
1075 gimple_statement_omp, dropping initial "omp" field, adding tag
1076 value to GTY marking.
1077 (gimple_statement_omp_for): Likewise.
1078 (gimple_statement_omp_parallel): Likewise.
1079 (gimple_statement_omp_task): Convert to a subclass of
1080 gimple_statement_omp_parallel, dropping initial "par" field,
1081 adding tag value to GTY marking.
1082 (gimple_statement_omp_sections): Convert to a subclass of
1083 gimple_statement_omp, dropping initial "omp" field, adding
1084 tag value to GTY marking.
1085 (gimple_statement_omp_continue): Convert to a subclass of
1086 gimple_statement_base, dropping initial "gsbase" field, adding
1087 tag value to GTY marking.
1088 (gimple_statement_omp_single): Convert to a subclass of
1089 gimple_statement_omp, dropping initial "omp" field, adding
1090 tag value to GTY marking.
1091 (gimple_statement_omp_atomic_load): Convert to a subclass of
1092 gimple_statement_base, dropping initial "gsbase" field, adding
1093 tag value to GTY marking.
1094 (gimple_statement_omp_atomic_store): Convert to a subclass of
1095 gimple_statement_base, dropping initial "gsbase" field, adding
1096 tag value to GTY marking.
1097 (gimple_statement_transaction): Convert to a subclass of
1098 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
1099 field, adding tag value to GTY marking.
1100 (union gimple_statement_d): Remove.
1101 * system.h (CONST_CAST_GIMPLE): Update to use
1102 "struct gimple_statement_base *" rather than
1103 "union gimple_statement_d *".
1104 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
1105 gimple_statement_d to gimple_statement_base.
1107 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
1108 (gimple_set_use_ops): Port from union to usage of as_a.
1109 (gimple_set_vuse): Likewise.
1110 (gimple_set_vdef): Likewise.
1111 (gimple_call_internal_fn): Port from union to a static_cast,
1112 given that the type has already been asserted.
1113 (gimple_omp_body_ptr): Port from unchecked union usage to
1115 (gimple_omp_set_body): Likewise.
1117 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
1118 gimple types to a true class hierarchy.
1119 (update_call_edge_frequencies): Likewise.
1120 (gsi_insert_seq_nodes_before): Likewise.
1121 (gsi_insert_seq_nodes_after): Likewise.
1122 (gsi_split_seq_after): Likewise.
1123 (gsi_set_stmt): Likewise.
1124 (gsi_split_seq_before): Likewise.
1125 (gsi_remove): Likewise.
1126 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
1127 (gsi_next): Likewise.
1128 (gsi_prev): Likewise.
1129 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
1130 * gimple-ssa.h (gimple_vuse_op): Likewise.
1131 (gimple_vdef_op): Likewise.
1132 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
1133 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1134 * gimple.c (gimple_set_code): Likewise.
1135 (gimple_alloc_stat): Likewise.
1136 (gimple_set_subcode): Likewise.
1137 (gimple_build_call_internal_1): Likewise.
1138 (gimple_check_failed): Likewise.
1139 (gimple_call_flags): Likewise.
1140 (gimple_set_bb): Likewise.
1141 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
1142 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
1143 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
1144 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
1145 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
1146 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
1147 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
1148 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
1149 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
1150 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
1151 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
1152 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
1153 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
1154 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
1155 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
1156 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
1157 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
1158 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
1159 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
1160 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
1161 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
1162 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
1163 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
1164 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
1165 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
1166 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
1168 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
1170 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
1172 (is_a_helper <const gimple_statement_omp_atomic_store>
1173 (const_gimple)): Likewise.
1174 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
1176 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
1178 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
1180 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
1182 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
1184 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
1186 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
1188 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
1189 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
1191 (gimple_seq_last): Update for conversion of gimple types to a true
1193 (gimple_seq_set_last): Likewise.
1194 (gimple_code): Likewise.
1195 (gimple_bb): Likewise.
1196 (gimple_block): Likewise.
1197 (gimple_set_block): Likewise.
1198 (gimple_location): Likewise.
1199 (gimple_location_ptr): Likewise.
1200 (gimple_set_location): Likewise.
1201 (gimple_no_warning_p): Likewise.
1202 (gimple_set_no_warning): Likewise.
1203 (gimple_set_visited): Likewise.
1204 (gimple_visited_p): Likewise.
1205 (gimple_set_plf): Likewise.
1206 (gimple_plf): Likewise.
1207 (gimple_set_uid): Likewise.
1208 (gimple_uid): Likewise.
1209 (gimple_init_singleton): Likewise.
1210 (gimple_modified_p): Likewise.
1211 (gimple_set_modified): Likewise.
1212 (gimple_expr_code): Likewise.
1213 (gimple_has_volatile_ops): Likewise.
1214 (gimple_set_has_volatile_ops): Likewise.
1215 (gimple_omp_subcode): Likewise.
1216 (gimple_omp_set_subcode): Likewise.
1217 (gimple_omp_return_set_nowait): Likewise.
1218 (gimple_omp_section_set_last): Likewise.
1219 (gimple_omp_parallel_set_combined_p): Likewise.
1220 (gimple_omp_atomic_set_need_value): Likewise.
1221 (gimple_omp_atomic_set_seq_cst): Likewise.
1222 (gimple_num_ops): Likewise.
1223 (gimple_set_num_ops): Likewise.
1224 (gimple_assign_nontemporal_move_p): Likewise.
1225 (gimple_assign_set_nontemporal_move): Likewise.
1226 (gimple_assign_rhs_code): Likewise.
1227 (gimple_assign_set_rhs_code): Likewise.
1228 (gimple_call_internal_p): Likewise.
1229 (gimple_call_with_bounds_p): Likewise.
1230 (gimple_call_set_with_bounds): Likewise.
1231 (gimple_call_set_tail): Likewise.
1232 (gimple_call_tail_p): Likewise.
1233 (gimple_call_set_return_slot_opt): Likewise.
1234 (gimple_call_return_slot_opt_p): Likewise.
1235 (gimple_call_set_from_thunk): Likewise.
1236 (gimple_call_from_thunk_p): Likewise.
1237 (gimple_call_set_va_arg_pack): Likewise.
1238 (gimple_call_va_arg_pack_p): Likewise.
1239 (gimple_call_set_nothrow): Likewise.
1240 (gimple_call_set_alloca_for_var): Likewise.
1241 (gimple_call_alloca_for_var_p): Likewise.
1242 (gimple_call_copy_flags): Likewise.
1243 (gimple_cond_code): Likewise.
1244 (gimple_cond_set_code): Likewise.
1245 (gimple_cond_make_false): Likewise.
1246 (gimple_cond_make_true): Likewise.
1247 (gimple_asm_volatile_p): Likewise.
1248 (gimple_asm_set_volatile): Likewise.
1249 (gimple_asm_set_input): Likewise.
1250 (gimple_asm_input_p): Likewise.
1251 (gimple_try_kind): Likewise.
1252 (gimple_try_set_kind): Likewise.
1253 (gimple_try_catch_is_cleanup): Likewise.
1254 (gimple_try_set_catch_is_cleanup): Likewise.
1255 (gimple_wce_cleanup_eh_only): Likewise.
1256 (gimple_wce_set_cleanup_eh_only): Likewise.
1257 (gimple_debug_bind_p): Likewise.
1258 (gimple_debug_source_bind_p): Likewise.
1259 (gimple_omp_for_set_kind): Likewise.
1260 (gimple_omp_for_set_combined_p): Likewise.
1261 (gimple_omp_for_set_combined_into_p): Likewise.
1262 (gimple_omp_target_set_kind): Likewise.
1263 (gimple_transaction_subcode): Likewise.
1264 (gimple_transaction_set_subcode): Likewise.
1265 (gimple_predict_predictor): Likewise.
1266 (gimple_predict_set_predictor): Likewise.
1267 (gimple_predict_outcome): Likewise.
1268 (gimple_predict_set_outcome): Likewise.
1269 (gimple_transaction_set_label): Likewise.
1270 (gimple_transaction_set_body): Likewise.
1271 (gimple_transaction_label_ptr): Likewise.
1272 (gimple_transaction_label): Likewise.
1273 (gimple_transaction_body_ptr): Likewise.
1274 (gimple_omp_continue_set_control_use): Likewise.
1275 (gimple_omp_continue_control_use_ptr): Likewise.
1276 (gimple_omp_continue_control_use): Likewise.
1277 (gimple_omp_continue_set_control_def): Likewise.
1278 (gimple_omp_continue_control_def_ptr): Likewise.
1279 (gimple_omp_continue_control_def): Likewise.
1280 (gimple_omp_atomic_load_rhs_ptr): Likewise.
1281 (gimple_omp_atomic_load_rhs): Likewise.
1282 (gimple_omp_atomic_load_set_rhs): Likewise.
1283 (gimple_omp_atomic_load_lhs_ptr): Likewise.
1284 (gimple_omp_atomic_load_lhs): Likewise.
1285 (gimple_omp_atomic_load_set_lhs): Likewise.
1286 (gimple_omp_atomic_store_val_ptr): Likewise.
1287 (gimple_omp_atomic_store_val): Likewise.
1288 (gimple_omp_atomic_store_set_val): Likewise.
1289 (gimple_omp_for_cond): Likewise.
1290 (gimple_omp_for_set_cond): Likewise.
1291 (gimple_omp_sections_set_control): Likewise.
1292 (gimple_omp_sections_control_ptr): Likewise.
1293 (gimple_omp_sections_control): Likewise.
1294 (gimple_omp_sections_set_clauses): Likewise.
1295 (gimple_omp_sections_clauses_ptr): Likewise.
1296 (gimple_omp_sections_clauses): Likewise.
1297 (gimple_omp_teams_set_clauses): Likewise.
1298 (gimple_omp_teams_clauses_ptr): Likewise.
1299 (gimple_omp_teams_clauses): Likewise.
1300 (gimple_omp_target_set_data_arg): Likewise.
1301 (gimple_omp_target_data_arg_ptr): Likewise.
1302 (gimple_omp_target_data_arg): Likewise.
1303 (gimple_omp_target_set_child_fn): Likewise.
1304 (gimple_omp_target_child_fn_ptr): Likewise.
1305 (gimple_omp_target_child_fn): Likewise.
1306 (gimple_omp_target_set_clauses): Likewise.
1307 (gimple_omp_target_clauses_ptr): Likewise.
1308 (gimple_omp_target_clauses): Likewise.
1309 (gimple_omp_single_set_clauses): Likewise.
1310 (gimple_omp_single_clauses_ptr): Likewise.
1311 (gimple_omp_single_clauses): Likewise.
1312 (gimple_omp_task_set_arg_align): Likewise.
1313 (gimple_omp_task_arg_align_ptr): Likewise.
1314 (gimple_omp_task_arg_align): Likewise.
1315 (gimple_omp_task_set_arg_size): Likewise.
1316 (gimple_omp_task_arg_size_ptr): Likewise.
1317 (gimple_omp_task_arg_size): Likewise.
1318 (gimple_omp_task_set_copy_fn): Likewise.
1319 (gimple_omp_task_copy_fn_ptr): Likewise.
1320 (gimple_omp_task_copy_fn): Likewise.
1321 (gimple_omp_task_set_data_arg): Likewise.
1322 (gimple_omp_task_data_arg_ptr): Likewise.
1323 (gimple_omp_task_data_arg): Likewise.
1324 (gimple_omp_task_set_child_fn): Likewise.
1325 (gimple_omp_task_child_fn_ptr): Likewise.
1326 (gimple_omp_task_child_fn): Likewise.
1327 (gimple_omp_task_set_clauses): Likewise.
1328 (gimple_omp_task_clauses_ptr): Likewise.
1329 (gimple_omp_task_clauses): Likewise.
1330 (gimple_omp_parallel_set_data_arg): Likewise.
1331 (gimple_omp_parallel_data_arg_ptr): Likewise.
1332 (gimple_omp_parallel_data_arg): Likewise.
1333 (gimple_omp_parallel_set_child_fn): Likewise.
1334 (gimple_omp_parallel_child_fn_ptr): Likewise.
1335 (gimple_omp_parallel_child_fn): Likewise.
1336 (gimple_omp_parallel_set_clauses): Likewise.
1337 (gimple_omp_parallel_clauses_ptr): Likewise.
1338 (gimple_omp_parallel_clauses): Likewise.
1339 (gimple_omp_for_set_pre_body): Likewise.
1340 (gimple_omp_for_pre_body_ptr): Likewise.
1341 (gimple_omp_for_set_incr): Likewise.
1342 (gimple_omp_for_incr_ptr): Likewise.
1343 (gimple_omp_for_incr): Likewise.
1344 (gimple_omp_for_set_final): Likewise.
1345 (gimple_omp_for_final_ptr): Likewise.
1346 (gimple_omp_for_final): Likewise.
1347 (gimple_omp_for_set_initial): Likewise.
1348 (gimple_omp_for_initial_ptr): Likewise.
1349 (gimple_omp_for_initial): Likewise.
1350 (gimple_omp_for_set_index): Likewise.
1351 (gimple_omp_for_index_ptr): Likewise.
1352 (gimple_omp_for_index): Likewise.
1353 (gimple_omp_for_collapse): Likewise.
1354 (gimple_omp_for_set_clauses): Likewise.
1355 (gimple_omp_for_clauses_ptr): Likewise.
1356 (gimple_omp_for_clauses): Likewise.
1357 (gimple_omp_critical_set_name): Likewise.
1358 (gimple_omp_critical_name_ptr): Likewise.
1359 (gimple_omp_critical_name): Likewise.
1360 (gimple_eh_dispatch_set_region): Likewise.
1361 (gimple_eh_dispatch_region): Likewise.
1362 (gimple_resx_set_region): Likewise.
1363 (gimple_resx_region): Likewise.
1364 (gimple_phi_set_arg): Likewise.
1365 (gimple_phi_arg): Likewise.
1366 (gimple_phi_set_result): Likewise.
1367 (gimple_phi_result_ptr): Likewise.
1368 (gimple_phi_result): Likewise.
1369 (gimple_phi_num_args): Likewise.
1370 (gimple_phi_capacity): Likewise.
1371 (gimple_wce_set_cleanup): Likewise.
1372 (gimple_wce_cleanup_ptr): Likewise.
1373 (gimple_try_set_cleanup): Likewise.
1374 (gimple_try_set_eval): Likewise.
1375 (gimple_try_cleanup_ptr): Likewise.
1376 (gimple_try_eval_ptr): Likewise.
1377 (gimple_eh_else_set_e_body): Likewise.
1378 (gimple_eh_else_set_n_body): Likewise.
1379 (gimple_eh_else_e_body_ptr): Likewise.
1380 (gimple_eh_else_n_body_ptr): Likewise.
1381 (gimple_eh_must_not_throw_set_fndecl): Likewise.
1382 (gimple_eh_must_not_throw_fndecl): Likewise.
1383 (gimple_eh_filter_set_failure): Likewise.
1384 (gimple_eh_filter_set_types): Likewise.
1385 (gimple_eh_filter_failure_ptr): Likewise.
1386 (gimple_eh_filter_types_ptr): Likewise.
1387 (gimple_eh_filter_types): Likewise.
1388 (gimple_catch_set_handler): Likewise.
1389 (gimple_catch_set_types): Likewise.
1390 (gimple_catch_handler_ptr): Likewise.
1391 (gimple_catch_types_ptr): Likewise.
1392 (gimple_catch_types): Likewise.
1393 (gimple_asm_string): Likewise.
1394 (gimple_asm_set_label_op): Likewise.
1395 (gimple_asm_label_op): Likewise.
1396 (gimple_asm_set_clobber_op): Likewise.
1397 (gimple_asm_clobber_op): Likewise.
1398 (gimple_asm_set_output_op): Likewise.
1399 (gimple_asm_output_op_ptr): Likewise.
1400 (gimple_asm_output_op): Likewise.
1401 (gimple_asm_set_input_op): Likewise.
1402 (gimple_asm_input_op_ptr): Likewise.
1403 (gimple_asm_input_op): Likewise.
1404 (gimple_asm_nlabels): Likewise.
1405 (gimple_asm_nclobbers): Likewise.
1406 (gimple_asm_noutputs): Likewise.
1407 (gimple_asm_ninputs): Likewise.
1408 (gimple_bind_set_block): Likewise.
1409 (gimple_bind_block): Likewise.
1410 (gimple_bind_add_seq): Likewise.
1411 (gimple_bind_add_stmt): Likewise.
1412 (gimple_bind_set_body): Likewise.
1413 (gimple_bind_body_ptr): Likewise.
1414 (gimple_bind_append_vars): Likewise.
1415 (gimple_bind_set_vars): Likewise.
1416 (gimple_bind_vars): Likewise.
1417 (gimple_call_clobber_set): Likewise.
1418 (gimple_call_use_set): Likewise.
1419 (gimple_call_set_internal_fn): Likewise.
1420 (gimple_call_set_fntype): Likewise.
1421 (gimple_call_fntype): Likewise.
1422 (gimple_omp_return_lhs_ptr): Likewise.
1423 (gimple_omp_return_lhs): Likewise.
1424 (gimple_omp_return_set_lhs): Likewise.
1425 (gimple_omp_taskreg_set_data_arg): Likewise.
1426 (gimple_omp_taskreg_data_arg_ptr): Likewise.
1427 (gimple_omp_taskreg_data_arg): Likewise.
1428 (gimple_omp_taskreg_set_child_fn): Likewise.
1429 (gimple_omp_taskreg_child_fn_ptr): Likewise.
1430 (gimple_omp_taskreg_child_fn): Likewise.
1431 (gimple_omp_taskreg_set_clauses): Likewise.
1432 (gimple_omp_taskreg_clauses_ptr): Likewise.
1433 (gimple_omp_taskreg_clauses): Likewise.
1434 (gimple_vuse): Likewise.
1435 (gimple_vdef): Likewise.
1436 (gimple_vuse_ptr): Likewise.
1437 (gimple_vdef_ptr): Likewise.
1438 * tree-inline.c (copy_debug_stmt): Likewise.
1439 * tree-phinodes.c (make_phi_node): Likewise.
1441 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
1442 (is_a_helper <gimple_statement_with_ops>::test): New.
1443 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
1444 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
1446 * gimple-streamer-in.c (input_gimple_stmt): Port from union
1447 access to use of as_a.
1448 * gimple.c (gimple_build_asm_1): Likewise.
1449 (gimple_build_try): Likewise. Also, return a specific subclass
1450 rather than just gimple.
1451 (gimple_build_resx): Port from union access to use of as_a.
1452 (gimple_build_eh_dispatch): Likewise.
1453 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
1454 now that gengtype no longer provides a typed allocator function.
1455 (gimple_copy): Likewise.
1456 * gimple.h (gimple_build_try): Return a specific subclass rather
1458 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
1459 with subclass access by making use of new return type of
1461 * tree-phinodes.c: (allocate_phi_node): Return a
1462 "gimple_statement_phi *" rather than just a gimple.
1463 (resize_phi_node): Likewise.
1464 (make_phi_node): Replace union access with subclass access by
1465 making use of new return type of allocate_phi_node.
1466 (reserve_phi_args_for_new_edge): Replace union access with as_a.
1467 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
1469 (remove_phi_args): Update for change to remove_phi_arg_num.
1471 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
1472 code field to reflect inheritance, rather than embedding of
1473 the base gimple type.
1475 2013-11-19 Richard Biener <rguenther@suse.de>
1477 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
1478 and destructor and make fel_next a member function.
1479 (fel_next): Transform into ...
1480 (loop_iterator::next): ... this.
1481 (fel_init): Transform into ...
1482 (loop_iterator::loop_iterator): ... this.
1483 (loop_iterator::~loop_iterator): New.
1484 (FOR_EACH_LOOP): Remove loop-iterator argument.
1485 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
1486 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
1487 graphite-clast-to-gimple.c, graphite-scop-detection.c,
1488 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
1489 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
1490 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
1491 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
1492 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
1493 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
1494 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
1495 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
1496 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
1497 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
1498 FOR_EACH_LOOP_BREAK with break.
1500 2013-11-19 Richard Biener <rguenther@suse.de>
1502 PR tree-optimization/59164
1503 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1505 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
1506 whether we can create an epilogue loop to reflect thecases where
1509 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
1511 * graphite-sese-to-poly.c: Include expr.h.
1513 2013-11-19 Richard Biener <rguenther@suse.de>
1516 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
1517 loads into stmts that may clobber it.
1519 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
1521 * cgraphunit.c (symtab_terminator): New variable.
1522 (queued_nodes): Renamed from first. Use symtab_terminator as
1524 (analyze_functions): Adjust accordingly.
1525 (cgraph_process_new_functions): Return void.
1526 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
1528 2013-11-19 Marek Polacek <polacek@redhat.com>
1530 * opts.c (common_handle_option): Add -fsanitize=null option.
1531 Turn off -fdelete-null-pointer-checks option when doing the
1532 NULL pointer checking.
1533 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
1534 * tree-pass.h (make_pass_ubsan): Declare.
1535 (make_pass_sanopt): Declare.
1536 * timevar.def (TV_TREE_UBSAN): New timevar.
1537 * passes.def: Add pass_sanopt and pass_ubsan.
1538 * ubsan.h (ubsan_null_ckind): New enum.
1539 (ubsan_mismatch_data): New struct.
1540 (ubsan_expand_null_ifn): Declare.
1541 (ubsan_create_data): Adjust declaration.
1542 (ubsan_type_descriptor): Likewise.
1543 * asan.c: Include "ubsan.h".
1544 (pass_data_sanopt): New pass.
1545 (execute_sanopt): New function.
1546 (gate_sanopt): Likewise.
1547 (make_pass_sanopt): Likewise.
1548 (class pass_sanopt): New class.
1549 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
1550 gimple-iterator.h and cfgloop.h.
1551 (PROB_VERY_UNLIKELY): Define.
1552 (tree_type_map_hash): New function.
1553 (ubsan_type_descriptor): Add new parameter.
1554 Improve type name generation.
1555 (ubsan_create_data): Add new parameter. Add pointer data into
1557 (ubsan_expand_null_ifn): New function.
1558 (instrument_member_call): Likewise.
1559 (instrument_mem_ref): Likewise.
1560 (instrument_null): Likewise.
1561 (ubsan_pass): Likewise.
1562 (gate_ubsan): Likewise.
1563 (make_pass_ubsan): Likewise.
1564 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
1565 (class pass_ubsan): New class.
1566 (pass_data_ubsan): New pass.
1567 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
1568 * internal-fn.c (expand_UBSAN_NULL): New function.
1569 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
1570 even when !flag_toplevel_reorder.
1571 * internal-fn.def (UBSAN_NULL): New.
1573 2013-11-19 Jan Hubicka <jh@suse.cz>
1575 * cgraph.c (cgraph_create_indirect_edge): Use
1576 get_polymorphic_call_info.
1577 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
1578 maybe_in_construction and maybe_derived_type.
1579 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
1580 (ipa_dummy_polymorphic_call_context): New global var.
1581 (possible_polymorphic_call_targets): Add context paramter.
1582 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
1583 (possible_polymorphic_call_target_p): Likewise.
1584 (get_polymorphic_call_info): New function.
1585 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
1586 (add_type_duplicate): Remove forgotten debug output.
1587 (method_class_type): Add sanity check.
1588 (maybe_record_node): Add FINALP parameter.
1589 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
1590 by info by get_binfo_at_offset.
1591 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
1592 parameters; pass them to record-binfo.
1593 (polymorphic_call_target_d): Add context and FINAL.
1594 (polymorphic_call_target_hasher::hash): Hash context.
1595 (polymorphic_call_target_hasher::equal): Compare context.
1596 (free_polymorphic_call_targets_hash):
1597 (get_class_context): New function.
1598 (contains_type_p): New function.
1599 (get_polymorphic_call_info): New function.
1600 (walk_bases): New function.
1601 (possible_polymorphic_call_targets): Add context parameter; honnor it.
1602 (dump_possible_polymorphic_call_targets): Dump context.
1603 (possible_polymorphic_call_target_p): Add context.
1604 (update_type_inheritance_graph): Update comment.s
1605 (ipa_set_jf_known_type): Assert that compoentn type is known.
1606 (ipa_note_param_call): Do not tamper with offsets.
1607 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
1609 (update_indirect_edges_after_inlining): Likewise.
1610 (ipa_write_indirect_edge_info): Stream new fields.
1611 (ipa_read_indirect_edge_info): Stream in new fields.
1613 2013-11-19 Jan Hubicka <jh@suse.cz>
1615 * tree-pretty-print.c (dump_generic_node): Print class type of
1618 2013-11-19 Joey Ye <joey.ye@arm.com>
1620 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
1621 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
1623 * config/arm/arm.c (arm_option_override): By default disable
1624 -marm-pic-data-is-text-relative.
1625 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
1626 (arm_assemble_integer): Likewise.
1627 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
1628 New macro to initialize -marm-pic-data-is-text-relative.
1630 2013-11-19 Bin Cheng <bin.cheng@arm.com>
1632 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
1633 (address_cost_data): New field.
1634 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
1635 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
1637 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
1639 * config/aarch64/aarch64.md: Remove v8type from all insns.
1641 2013-11-19 Richard Biener <rguenther@suse.de>
1643 PR tree-optimization/57517
1644 * tree-predcom.c (combinable_refs_p): Verify the combination
1645 is always executed when the refs are.
1647 2013-11-19 Jeff Law <law@redhat.com>
1649 * tree-ssa-threadupdate.c: Include ssa-iterators.h
1650 (copy_phi_arg_into_existing_phi): New function.
1651 (any_remaining_duplicated_blocks): Likewise.
1652 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
1653 blocks on a jump threading path.
1655 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
1656 thread through a joiner which has the latch edge.
1658 2013-11-19 Jan Hubicka <jh@suse.cz>
1660 * md.texi (setmem): Document new parameter.
1661 * optabs.c (maybe_gen_insn): Support 9 operands.
1662 * builtins.c (determine_block_size): Add probable_max_size;
1663 support anti-ranges.
1664 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
1666 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
1667 emit_block_move, clear_storage_hints, set_storage_via_setmem):
1669 * expr.h (emit_block_move_hints, clear_storage_hints,
1670 set_storage_via_setmem): Update prototype.
1671 * i386.md (setmem, movmem patterns): Add 9th operand.
1672 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
1673 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
1674 argument; pass it to decide_alg.
1676 2013-11-19 David Malcolm <dmalcolm@redhat.com>
1678 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
1679 (n_basic_blocks_for_fn): ...this.
1681 (n_basic_blocks): Eliminate macro as work towards making uses of
1684 * cfgloop.c (init_loops_structure): Update for renaming of
1685 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
1686 * graph.c (draw_cfg_nodes_no_loops): Likewise.
1687 * ipa-utils.c (ipa_merge_profiles): Likewise.
1688 * lto-streamer-in.c (make_new_block): Likewise.
1689 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1690 (dump_function_to_file): Likewise.
1692 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
1693 macro with "n_basic_blocks_for_fn (cfun)".
1694 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
1695 (duplicate_computed_gotos): Likewise.
1696 (reorder_basic_blocks): Likewise.
1697 * bt-load.c (augment_live_range): Likewise.
1698 * cfg.c (expunge_block): Likewise.
1699 (compact_blocks): Likewise.
1700 * cfganal.c (single_pred_before_succ_order): Likewise.
1701 (compute_idf): Likewise.
1702 (flow_dfs_compute_reverse_init): Likewise.
1703 (pre_and_rev_post_order_compute): Likewise.
1704 (pre_and_rev_post_order_compute_fn): Likewise.
1705 (inverted_post_order_compute): Likewise.
1706 (post_order_compute): Likewise.
1707 (print_edge_list): Likewise.
1708 (find_unreachable_blocks): Likewise.
1709 (mark_dfs_back_edges): Likewise.
1710 * cfgcleanup.c (try_optimize_cfg): Likewise.
1711 (try_forward_edges): Likewise.
1712 * cfghooks.c (dump_flow_info): Likewise.
1713 * cfgloop.c (verify_loop_structure): Likewise.
1714 (get_loop_body): Likewise.
1715 (flow_loops_find): Likewise.
1716 * cfgloopmanip.c (add_loop): Likewise.
1717 (remove_path): Likewise.
1718 (find_path): Likewise.
1719 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1720 (rtl_verify_bb_layout): Likewise.
1721 (entry_of_function): Likewise.
1722 (rtl_create_basic_block): Likewise.
1723 * coverage.c (coverage_compute_cfg_checksum): Likewise.
1724 * cprop.c (one_cprop_pass): Likewise.
1725 (is_too_expensive): Likewise.
1726 * df-core.c (df_compute_cfg_image): Likewise.
1727 (df_compact_blocks): Likewise.
1728 (df_worklist_dataflow_doublequeue): Likewise.
1729 * dominance.c (calculate_dominance_info): Likewise.
1730 (calc_dfs_tree): Likewise.
1731 (calc_dfs_tree_nonrec): Likewise.
1732 (init_dom_info): Likewise.
1733 * domwalk.c (cmp_bb_postorder): Likewise.
1734 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1735 (generate_setjmp_warnings): Likewise.
1736 * fwprop.c (build_single_def_use_links): Likewise.
1737 * gcse.c (is_too_expensive): Likewise.
1738 (one_code_hoisting_pass): Likewise.
1739 (one_pre_gcse_pass): Likewise.
1740 * graphite.c (graphite_initialize): Likewise.
1741 * haifa-sched.c (haifa_sched_init): Likewise.
1742 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
1743 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
1744 * ira-build.c (ira_build): Likewise.
1745 * lcm.c (compute_nearerout): Likewise.
1746 (compute_available): Likewise.
1747 (compute_laterin): Likewise.
1748 (compute_antinout_edge): Likewise.
1749 * lra-lives.c (lra_create_live_ranges): Likewise.
1750 * lra.c (has_nonexceptional_receiver): Likewise.
1751 * mcf.c (create_fixup_graph): Likewise.
1752 * profile.c (branch_prob): Likewise.
1753 * reg-stack.c (convert_regs_2): Likewise.
1754 * regrename.c (regrename_analyze): Likewise.
1755 * reload1.c (has_nonexceptional_receiver): Likewise.
1756 * reorg.c (dbr_schedule): Likewise.
1757 * sched-deps.c (sched_deps_init): Likewise.
1758 * sched-ebb.c (schedule_ebbs): Likewise.
1759 * sched-rgn.c (extend_regions): Likewise.
1760 (schedule_insns): Likewise.
1761 (sched_rgn_init): Likewise.
1762 (extend_rgns): Likewise.
1763 (haifa_find_rgns): Likewise.
1764 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
1765 (sel_recompute_toporder): Likewise.
1766 * sel-sched.c (run_selective_scheduling): Likewise.
1767 * store-motion.c (one_store_motion_pass): Likewise.
1768 (remove_reachable_equiv_notes): Likewise.
1769 * tracer.c (tracer): Likewise.
1770 (tail_duplicate): Likewise.
1771 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
1772 (dump_cfg_stats): Likewise.
1773 (gimple_dump_cfg): Likewise.
1774 (create_bb): Likewise.
1775 (build_gimple_cfg): Likewise.
1776 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
1777 * tree-inline.c (optimize_inline_calls): Likewise.
1778 (fold_marked_statements): Likewise.
1779 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
1780 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1781 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1782 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
1783 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1784 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
1785 * tree-ssa-pre.c (do_pre): Likewise.
1786 (init_pre): Likewise.
1787 (compute_avail): Likewise.
1788 * tree-ssa-reassoc.c (init_reassoc): Likewise.
1789 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1790 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
1791 (init_worklist): Likewise.
1792 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1793 * var-tracking.c (variable_tracking_main_1): Likewise.
1794 (vt_find_locations): Likewise.
1795 (vt_stack_adjustments): Likewise.
1796 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
1797 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1799 2013-11-18 Jan Hubicka <jh@suse.cz>
1801 * profile.c (compute_branch_probabilities): Do not sanity check
1804 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
1806 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
1808 * fold-const.c (fold_single_bit_test_into_sign_test)
1809 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
1811 2013-11-18 Teresa Johnson <tejohnson@google.com>
1813 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
1814 cfglayout after bb reordering.
1815 * passes.def: Move compgotos before bb reordering since it goes into
1818 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
1820 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
1821 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
1823 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
1824 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
1825 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
1826 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
1827 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
1828 Remove all_lto_gen_passes.
1829 * passes.c (pass_manager::dump_passes): Remove its use.
1830 (pass_manager::register_pass): Likewise.
1831 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
1832 (pass_manager::pass_manager): Don't initialize or use it.
1833 (write_lto): New static function.
1834 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
1835 instead of using all_lto_gen_passes.
1836 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
1837 pass_ipa_lto_finish_out): Delete.
1838 * tree-pass.h (make_pass_ipa_lto_gimple_out,
1839 make_pass_ipa_lto_finish_out): Don't declare.
1841 2013-11-18 Jeff Law <law@redhat.com>
1843 * tree-ssa-threadupdate.c (redirection_data): Record two
1844 duplicated blocks instead of just one.
1845 (local_info): Explain why we don't create a template for the
1846 second duplicated block in a thread path.
1847 (create_block_for_threading): Accept argument indicating array
1848 index into redirection_data to store its result.
1849 (lookup_redirection_data): Initialize both duplicate blocks.
1850 (ssa_create_duplicates): If a jump threading path needs multiple
1851 blocks duplicated, then duplicate them.
1852 (ssa_fix_duplicate_block_edges): Corresponding changes.
1853 (ssa_fixup_template_block, thread_single_edge): Likewise.
1855 2013-11-18 Marek Polacek <polacek@redhat.com>
1857 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
1859 2013-11-18 Andrew Pinski <apinski@cavium.com>
1860 Steve Ellcey <sellcey@mips.com>
1863 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
1864 type restriction from equality_operator on conditonal move.
1865 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
1866 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
1868 2013-11-18 Jeff Law <law@redhat.com>
1870 * tree-ssa-threadupdate.c: Fix file block comment.
1871 Fix minor indention issue.
1873 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
1875 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
1876 ix86_address_subreg_operand. Move subreg checks to
1877 ix86_validate_address_register. Move address override check to
1878 ix86_legitimate_address_p.
1879 (ix86_validate_address_register): New function.
1880 (ix86_legitimate_address_p): Call ix86_validate_address_register
1881 to validate base and index registers. Add address override check
1882 from ix86_decompose_address.
1883 (ix86_decompose_address): Remove.
1885 2013-11-18 Richard Biener <rguenther@suse.de>
1887 PR tree-optimization/59125
1888 PR tree-optimization/54570
1889 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
1890 is not complete do not treat component-references with offset zero
1891 but different fields as equal.
1892 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
1893 (compute_object_sizes): Apply TLC. Propagate the constant
1894 results into all uses and fold their stmts.
1895 * passes.def (pass_all_optimizations): Move pass_object_sizes
1896 after the first pass_forwprop and before pass_fre.
1898 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1900 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
1901 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
1902 (tree_ctz): Remove cast to unsigned type.
1903 * builtins.c (fold_builtin_memory_op): Likewise.
1904 * dwarf2out.c (descr_info_loc): Likewise.
1905 * godump.c (go_output_typedef): Likewise.
1906 * omp-low.c (expand_omp_simd): Likewise.
1907 * stor-layout.c (excess_unit_span): Likewise.
1908 * tree-object-size.c (addr_object_size): Likewise.
1909 * tree-sra.c (analyze_all_variable_accesses): Likewise.
1910 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
1911 (simplify_rotate): Likewise.
1912 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
1913 (handle_pointer_plus): Likewise.
1914 * tree-switch-conversion.c (check_range): Likewise.
1915 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
1916 * tsan.c (instrument_builtin_call): Likewise.
1917 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
1918 * trans-mem.c (tm_log_add): Likewise.
1919 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
1920 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
1921 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
1922 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
1924 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1926 * tree.h (host_integerp, tree_low_cst): Delete.
1927 * tree.c (host_integerp, tree_low_cst): Delete.
1929 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1931 * expr.h: Update comments to refer to tree_to_[su]hwi rather
1933 * fold-const.c (fold_binary_loc): Likewise.
1934 * expr.c (store_constructor): Use tree_to_uhwi rather than
1936 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
1937 * stmt.c (emit_case_dispatch_table): Likewise.
1938 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
1940 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1942 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
1943 config/aarch64/aarch64.c, config/alpha/predicates.md,
1944 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
1945 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
1946 config/mep/mep-pragma.c, config/mips/mips.c,
1947 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
1948 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
1949 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
1950 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
1951 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
1952 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
1953 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
1954 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
1955 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
1956 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
1958 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1960 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
1961 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
1962 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
1963 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
1964 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
1965 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
1966 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
1967 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
1968 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
1969 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
1970 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
1972 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1974 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
1975 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
1977 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1979 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
1982 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1984 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
1985 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
1986 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
1987 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
1988 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
1989 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
1990 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
1991 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
1992 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
1993 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
1994 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
1995 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
1996 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
1997 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
1998 tree_fits_uhwi_p throughout.
2000 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2002 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
2003 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
2004 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
2005 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
2006 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
2007 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
2008 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
2009 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
2010 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
2011 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
2012 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
2013 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
2014 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
2017 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2019 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
2020 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
2022 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
2024 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
2025 flag if it kills its address, not its post-increment.
2027 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
2029 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
2030 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
2031 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
2032 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
2033 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
2034 (gimple_call_with_bounds_p): New.
2035 (gimple_call_set_with_bounds): New.
2036 (gimple_call_num_nobnd_args): Remove.
2037 (gimple_call_nobnd_arg): Remove.
2038 * tree.h (CALL_WITH_BOUNDS_P): New.
2039 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
2041 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
2043 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
2044 (symtab_node_name): Rename to symtab_node::name.
2045 (cgraph_node_asm_name): Remove.
2046 (varpool_node_asm_name): Remove.
2047 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
2048 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
2049 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
2050 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
2051 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
2053 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2055 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
2056 * config/arm/arm.c (arm_cortex_a53_tune): New.
2057 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
2059 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2061 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
2062 (case ${target}): Add bdver4.
2063 * config/i386/bdver3.md: Add bdver4.
2064 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2065 -march=native recognize bdver4 processors.
2066 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2067 bdver4 def_and_undef
2068 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
2069 (m_BDVER4): New definition.
2070 (m_AMD_MULTIPLE): Includes m_BDVER4.
2071 (processor_target_table): Add bdver4 entry.
2072 (static const char *const cpu_names): Add bdver4 entry.
2073 (software_prefetching_beneficial_p): Add bdver3.
2074 (ix86_option_override_internal): Add bdver4 instruction sets.
2075 (ix86_issue_rate): Add bdver4.
2076 (ix86_adjust_cost): Add bdver4.
2077 (ia32_multipass_dfa_lookahead): Add bdver4.
2078 (enum processor_model): Add M_AMDFAM15H_BDVER4.
2079 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
2080 (has_dispatch): Add bdver4.
2081 * config/i386/i386.h (TARGET_BDVER4): New definition.
2082 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
2083 (enum processor_type): Add PROCESSOR_BDVER4.
2084 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
2085 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
2086 * doc/extend.texi: Add details about bdver4.
2087 * doc/invoke.texi: Add details about bdver4. Add
2088 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
2090 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2092 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
2093 sdmode_stack_slot also in little-endian mode.
2095 2013-11-17 Jan Hubicka <jh@suse.cz>
2097 * doc/md.texi (setmem, movstr): Update documentation.
2098 * builtins.c (determine_block_size): New function.
2099 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
2100 (expand_builtin_memset_args): Use it and pass it to
2101 set_storage_via_setmem.
2102 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
2103 parameters; update call to expander.
2104 (emit_block_move_hints): Add min_size/max_size parameters.
2105 (clear_storage_hints): Likewise.
2106 (set_storage_via_setmem): Likewise.
2107 (clear_storage): Update.
2108 * expr.h (emit_block_move_hints, clear_storage_hints,
2109 set_storage_via_setmem): Update prototypes.
2110 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
2111 (ix86_expand_movmem, ix86_expand_setmem): Remove.
2112 (ix86_expand_movmem, ix86_expand_setmem): Remove.
2113 * i386.md (movmem, setmem): Pass parameters.
2115 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
2118 * config/i386/i386.c (ix86_address_subreg_operand): Do not
2119 reject non-integer subregs.
2120 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
2121 Move check for invalid x32 constant addresses ...
2122 (ix86_legitimate_address_p): ... here.
2124 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2126 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
2127 parameter and use it in REG_FRAME_RELATED_EXPR note.
2128 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
2130 (rs6000_emit_prologue): Likewise, but for little endian VSX
2131 stores, pass the source register of the store instead.
2133 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
2135 * gimple.h: Reorder prototypes to match .c declaration order, and
2136 remove protyotypes for functions not in gimple.c.
2137 (LABEL): Move to tree-into-ssa.c.
2138 * gimple.c: Remove unused prototypes.
2139 (get_base_address): Move to tree.c.
2140 * tree.c (get_base_address): Relocate from gimple.c.
2141 * builtins.h (validate_gimple_arglist): Add prototype.
2142 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
2143 * cfgexpand.h: New File.
2144 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
2145 * tree.h (build_addr): Move to tree-nested.h.
2146 * tree-nested.h: New File.
2147 (build_addr, lower_nested_functions, insert_field_into_struct): Add
2149 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
2150 * ipa-inline-analysis.c: Include cfgexpand.h.
2151 * cgraphunit.c: Include tree-nested.h.
2152 * omp-low.c: Likewise.
2153 * tree-parloops.c: Likewise.
2154 * gimple-low.h: Likewise.
2155 * tree-profile.h: Likewise.
2156 * expr.c: Include cfgexpand.h.
2157 * tree-affine.c: Likewise.
2158 * tree-ssa.c: Likewise.
2159 * tree-ssa-loop-im.c: Include trans-mem.h.
2160 * tree-ssa-tail-merge.c: Likewise.
2161 * value-prof.c: Include builtins.h and tree-nested.h.
2162 * tree-into-ssa.c (LABEL): Define here.
2164 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
2166 * config/arc/arc.c (arc_predicate_delay_insns): New function.
2167 (pass_data_arc_predicate_delay_insns): New pass_data instance.
2168 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
2169 (make_pass_arc_predicate_delay_insns): New function.
2170 (arc_init): Register pass_arc_predicate_delay_insns if
2171 flag_delayed_branch is active.
2173 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
2175 * config/arc/constraints.md (Rcq): Simplify register number test.
2177 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
2179 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
2181 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
2183 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
2186 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
2188 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
2189 * gimple-pretty-print.c (dump_omp_for): Add case for
2190 GF_OMP_FOR_KIND_CILKSIMD.
2191 * gimple.h (enum gf_mask): Restructure entries to add
2192 GF_OMP_FOR_KIND_CILKSIMD.
2193 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
2194 (gimplify_omp_for): Handle CILK_SIMD.
2195 (gimplify_expr): Add ccase for CILK_SIMD.
2196 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
2197 (build_outer_var_ref): Same.
2198 (check_omp_nesting_restrictions): Same.
2199 (lower_rec_input_clauses): Same.
2200 (lower_lastprivate_clauses): Same.
2201 (expand_omp_for): Same.
2202 (execute_expand_omp): Check flag_enable_cilkplus.
2203 (execute_lower_omp): Same.
2204 (diagnose_sb_0): Handle CILK_SIMD.
2205 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
2206 (setjmp_or_longjmp_p): New.
2207 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
2208 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
2209 * tree.def: Add tree code for CILK_SIMD.
2211 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2213 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
2215 (altivec_vperm_<mode>): Revert earlier little endian change.
2216 (*altivec_vperm_<mode>_internal): Remove.
2217 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
2218 (*altivec_vperm_<mode>_uns_internal): Remove.
2219 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
2221 2013-11-15 Jeff Law <law@redhat.com>
2223 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
2224 has_abnormal_or_outgoing_edge. Check for EH edges as well.
2225 * gimple-ssa-isolate-paths.c
2226 (find_implicit_erroneous_behaviour): Corresponding changes.
2227 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
2228 (find_explicit_erroneous_behaviour): Likewise.
2230 2013-11-15 Jeff Law <law@redhat.com>
2232 * ifcvt.c (find_cond_trap): Properly handle case where
2235 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
2237 * configure: Regenerate.
2239 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
2241 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
2242 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
2243 where it is incorrect or missing.
2245 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2247 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
2249 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
2250 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
2252 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
2253 pair with a TREE_CODE test and TREE_INT_CST_LOW.
2254 * tree-vect-generic.c (expand_vector_divmod): Likewise.
2256 2013-11-15 Richard Biener <rguenther@suse.de>
2258 PR tree-optimization/50262
2259 * tree-ssa-alias.h (struct pt_solution): Split
2260 vars_contains_global into vars_contains_nonlocal,
2261 vars_contains_escaped and vars_contains_escaped_heap.
2262 * tree-ssa-structalias.c (label_visit): Expand comment.
2263 (handle_lhs_call): Adjust comment.
2264 (set_uids_in_ptset): Set the new flags appropriately.
2265 (pt_solution_set): Adjust.
2266 (pt_solution_set_var): Likewise.
2267 (pt_solution_ior_into): Likewise.
2268 (pt_solution_includes_global): Likewise.
2269 (pt_solutions_intersect_1): Optimize escaped handling.
2270 (compute_points_to_sets): Remove heap variable globalization.
2271 (ipa_escaped_pt): Adjust initializer.
2272 (pass_data_ipa_pta): Do not run TODO_update_ssa.
2273 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
2274 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
2276 2013-11-15 Richard Biener <rguenther@suse.de>
2278 * tree-loop-distribution.c (tree_loop_distribution): Make sure
2279 to distribute all stores.
2281 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2283 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
2285 2013-11-15 Joseph Myers <joseph@codesourcery.com>
2287 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
2288 * configure.ac: Determine target_header_dir earlier.
2289 (--with-glibc-version): New configure option.
2290 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
2291 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
2292 * configure: Regenerate.
2293 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
2294 native toolchains for default.
2295 (--with-glibc-version): Document.
2297 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
2299 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
2301 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
2303 * lto-streamer-in.c (input function): Call cgraph_create_node if
2304 cgraph_get_node failed.
2306 2013-11-14 Olivier Hainque <hainque@adacore.com>
2308 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
2309 defer allocation of DECL_IGNORED_P variables at toplevel unless really
2310 small. Factorize size threshold computation from the existing one.
2311 (expand_used_vars): Refine comment.
2313 2013-11-14 Cong Hou <congh@google.com>
2315 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
2316 address field as it can be obtained from dr. Rename the struct.
2317 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
2318 steps of data references during sort.
2319 (vect_prune_runtime_alias_test_list): Adjust with the change to
2320 struct dr_with_seg_len.
2321 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2322 Adjust with the change to struct dr_with_seg_len.
2324 2013-11-14 Jeff Law <law@redhat.com>
2327 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
2328 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
2329 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
2330 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
2331 edges, then ignore it. If the statement exhibiting erroneous
2332 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
2333 then we can not optimize.
2334 (find_explicit_erroneous_behaviour): Likewise.
2336 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
2338 * gimplify-me.h: New file. Add prototypes.
2339 * gimplify.h: Don't include gimple.h.
2340 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
2341 Relocate from gimple.h.
2342 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
2343 is_gimple_sizepos): Move to gimplify.h.
2344 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
2345 (enum gsi_iterator_update): Move to gimple-iterator.h.
2346 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
2347 * gimplify-me.c: New File.
2348 (force_gimple_operand_1, force_gimple_operand,
2349 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2350 gimple_regimplify_operands): Relocate from gimplify.c.
2351 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
2352 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
2353 gimple_regimplify_operands): Move to gimplify-me.c.
2354 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
2356 * Makefile.in (OBJS): Add gimplify-me.o
2357 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
2359 * cfgloopmanip.c: Likewise.
2360 * cgraphunit.c: Likewise.
2361 * cilk-common.c: Likewise.
2362 * fold-const.c: Likewise.
2363 * function.c: Likewise.
2364 * gimple-expr.c: Likewise.
2365 * gimple-fold.c: Likewise.
2366 * gimple-ssa-strength-reduction.c: Likewise.
2367 * gimple.c: Likewise.
2368 * graphite-clast-to-gimple.c: Likewise.
2369 * graphite-sese-to-poly.c: Likewise.
2370 * ipa-prop.c: Likewise.
2371 * ipa-split.c: Likewise.
2373 * langhooks.c: Likewise.
2374 * omp-low.c: Likewise.
2376 * stor-layout.c: Likewise.
2377 * targhooks.c: Likewise.
2378 * trans-mem.c: Likewise.
2379 * tree-affine.c: Likewise.
2380 * tree-cfg.c: Likewise.
2381 * tree-cfgcleanup.c: Likewise.
2382 * tree-complex.c: Likewise.
2383 * tree-if-conv.c: Likewise.
2384 * tree-inline.c: Likewise.
2385 * tree-loop-distribution.c: Likewise.
2386 * tree-nested.c: Likewise.
2387 * tree-parloops.c: Likewise.
2388 * tree-predcom.c: Likewise.
2389 * tree-profile.c: Likewise.
2390 * tree-scalar-evolution.c: Likewise.
2391 * tree-sra.c: Likewise.
2392 * tree-ssa-address.c: Likewise.
2393 * tree-ssa-ccp.c: Likewise.
2394 * tree-ssa-dce.c: Likewise.
2395 * tree-ssa-forwprop.c: Likewise.
2396 * tree-ssa-ifcombine.c: Likewise.
2397 * tree-ssa-loop-im.c: Likewise.
2398 * tree-ssa-loop-ivopts.c: Likewise.
2399 * tree-ssa-loop-manip.c: Likewise.
2400 * tree-ssa-loop-niter.c: Likewise.
2401 * tree-ssa-loop-prefetch.c: Likewise.
2402 * tree-ssa-loop-unswitch.c: Likewise.
2403 * tree-ssa-math-opts.c: Likewise.
2404 * tree-ssa-phiopt.c: Likewise.
2405 * tree-ssa-phiprop.c: Likewise.
2406 * tree-ssa-pre.c: Likewise.
2407 * tree-ssa-propagate.c: Likewise.
2408 * tree-ssa-reassoc.c: Likewise.
2409 * tree-ssa-sccvn.c: Likewise.
2410 * tree-ssa-strlen.c: Likewise.
2411 * tree-ssa.c: Likewise.
2412 * tree-switch-conversion.c: Likewise.
2413 * tree-tailcall.c: Likewise.
2414 * tree-vect-data-refs.c: Likewise.
2415 * tree-vect-generic.c: Likewise.
2416 * tree-vect-loop-manip.c: Likewise.
2417 * tree-vect-loop.c: Likewise.
2418 * tree-vect-patterns.c: Likewise.
2419 * tree-vect-stmts.c: Likewise.
2422 * value-prof.c: Likewise.
2423 * config/aarch64/aarch64.c: Likewise.
2424 * config/alpha/alpha.c: Likewise.
2425 * config/darwin.c: Likewise.
2426 * config/i386/i386.c: Likewise.
2427 * config/ia64/ia64.c: Likewise.
2428 * config/mep/mep.c: Likewise.
2429 * config/mips/mips.c: Likewise.
2430 * config/rs6000/rs6000.c: Likewise.
2431 * config/s390/s390.c: Likewise.
2432 * config/sh/sh.c: Likewise.
2433 * config/sparc/sparc.c: Likewise.
2434 * config/spu/spu.c: Likewise.
2435 * config/stormy16/stormy16.c: Likewise.
2436 * config/tilegx/tilegx.c: Likewise.
2437 * config/tilepro/tilepro.c: Likewise.
2438 * config/xtensa/xtensa.c: Likewise.
2440 2013-11-14 Diego Novillo <dnovillo@google.com>
2442 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
2444 2013-11-14 Diego Novillo <dnovillo@google.com>
2446 * tree.h: Include fold-const.h.
2447 (aggregate_value_p): Moved to function.h.
2448 (alloca_call_p): Moved to calls.h.
2449 (allocate_struct_function): Moved to function.h.
2450 (apply_tm_attr): Moved to attribs.h.
2451 (array_at_struct_end_p): Moved to expr.h.
2452 (array_ref_element_size): Moved to tree-dfa.h.
2453 (array_ref_low_bound): Moved to tree-dfa.h.
2454 (array_ref_up_bound): Moved to tree.h.
2455 (assemble_alias): Moved to cgraph.h.
2456 (bit_from_pos): Moved to stor-layout.h.
2457 (build_addr): Moved to tree-nested.h.
2458 (build_duplicate_type): Moved to tree-inline.h.
2459 (build_fold_addr_expr): Moved to fold-const.h.
2460 (build_fold_addr_expr_with_type): Moved to fold-const.h.
2461 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
2462 (build_fold_indirect_ref): Moved to fold-const.h.
2463 (build_fold_indirect_ref_loc): Moved to fold-const.h.
2464 (build_personality_function): Moved to tree.h.
2465 (build_range_check): Moved to fold-const.h.
2466 (build_simple_mem_ref): Moved to fold-const.h.
2467 (build_simple_mem_ref_loc): Moved to fold-const.h.
2468 (build_tm_abort_call): Moved to trans-mem.h.
2469 (byte_from_pos): Moved to stor-layout.h.
2470 (call_expr_flags): Moved to calls.h.
2471 (can_move_by_pieces): Moved to expr.h.
2472 (categorize_ctor_elements): Moved to expr.h.
2473 (change_decl_assembler_name): Moved to gcc-symtab.h.
2474 (combine_comparisons): Moved to fold-const.h.
2475 (complete_ctor_at_level_p): Moved to tree.h.
2476 (component_ref_field_offset): Moved to tree-dfa.h.
2477 (compute_builtin_object_size): Moved to tree-object-size.h.
2478 (compute_record_mode): Moved to stor-layout.h.
2479 (constant_boolean_node): Moved to fold-const.h.
2480 (constructor_static_from_elts_p): Moved to varasm.h.
2481 (cxx11_attribute_p): Moved to attribs.h.
2482 (debug_body): Moved to print-tree.h.
2483 (debug_find_tree): Moved to tree-inline.h.
2484 (debug_fold_checksum): Moved to fold-const.h.
2485 (debug_head): Moved to print-tree.h.
2486 (debug_head): Moved to print-tree.h.
2487 (debug_raw): Moved to print-tree.h.
2488 (debug_tree): Moved to print-tree.h.
2489 (debug_vec_tree): Moved to print-tree.h.
2490 (debug_verbose): Moved to print-tree.h.
2491 (debug_verbose): Moved to print-tree.h.
2492 (decl_attributes): Moved to attribs.h.
2493 (decl_binds_to_current_def_p): Moved to varasm.h.
2494 (decl_default_tls_model): Moved to varasm.h.
2495 (decl_replaceable_p): Moved to varasm.h.
2496 (div_if_zero_remainder): Moved to fold-const.h.
2497 (double_int mem_ref_offset): Moved to fold-const.h.
2498 (dump_addr): Moved to print-tree.h.
2499 (element_precision): Moved to machmode.h.
2500 (expand_dummy_function_end): Moved to function.h.
2501 (expand_function_end): Moved to function.h.
2502 (expand_function_start): Moved to function.h.
2503 (expand_label): Moved to stmt.h.
2504 (expr_first): Moved to tree-iterator.h.
2505 (expr_last): Moved to tree-iterator.h.
2506 (finalize_size_functions): Moved to stor-layout.h.
2507 (finish_builtin_struct): Moved to stor-layout.h.
2508 (finish_record_layout): Moved to stor-layout.h.
2509 (fixup_signed_type): Moved to stor-layout.h.
2510 (fixup_unsigned_type): Moved to stor-layout.h.
2511 (flags_from_decl_or_type): Moved to calls.h.
2512 (fold): Moved to fold-const.h.
2513 (fold_abs_const): Moved to fold-const.h.
2514 (fold_binary): Moved to fold-const.h.
2515 (fold_binary_loc): Moved to fold-const.h.
2516 (fold_binary_to_constant): Moved to fold-const.h.
2517 (fold_build1): Moved to fold-const.h.
2518 (fold_build1_initializer_loc): Moved to fold-const.h.
2519 (fold_build1_loc): Moved to fold-const.h.
2520 (fold_build1_stat_loc): Moved to fold-const.h.
2521 (fold_build2): Moved to fold-const.h.
2522 (fold_build2_initializer_loc): Moved to fold-const.h.
2523 (fold_build2_loc): Moved to fold-const.h.
2524 (fold_build2_stat_loc): Moved to fold-const.h.
2525 (fold_build3): Moved to fold-const.h.
2526 (fold_build3_loc): Moved to fold-const.h.
2527 (fold_build3_stat_loc): Moved to fold-const.h.
2528 (fold_build_call_array): Moved to fold-const.h.
2529 (fold_build_call_array_initializer): Moved to fold-const.h.
2530 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
2531 (fold_build_call_array_loc): Moved to fold-const.h.
2532 (fold_build_cleanup_point_expr): Moved to fold-const.h.
2533 (fold_convert): Moved to fold-const.h.
2534 (fold_convert_loc): Moved to fold-const.h.
2535 (fold_convertible_p): Moved to fold-const.h.
2536 (fold_defer_overflow_warnings): Moved to fold-const.h.
2537 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
2538 (fold_fma): Moved to fold-const.h.
2539 (fold_ignored_result): Moved to fold-const.h.
2540 (fold_indirect_ref): Moved to fold-const.h.
2541 (fold_indirect_ref_1): Moved to fold-const.h.
2542 (fold_indirect_ref_loc): Moved to fold-const.h.
2543 (fold_read_from_constant_string): Moved to fold-const.h.
2544 (fold_real_zero_addition_p): Moved to fold-const.h.
2545 (fold_single_bit_test): Moved to fold-const.h.
2546 (fold_strip_sign_ops): Moved to fold-const.h.
2547 (fold_ternary): Moved to fold-const.h.
2548 (fold_ternary_loc): Moved to fold-const.h.
2549 (fold_unary): Moved to tree-data-ref.h.
2550 (fold_unary_ignore_overflow): Moved to fold-const.h.
2551 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
2552 (fold_unary_loc): Moved to fold-const.h.
2553 (fold_unary_to_constant): Moved to fold-const.h.
2554 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
2555 (fold_undefer_overflow_warnings): Moved to fold-const.h.
2556 (folding_initializer): Moved to fold-const.h.
2557 (free_temp_slots): Moved to function.h.
2558 (generate_setjmp_warnings): Moved to function.h.
2559 (get_attribute_name): Moved to attribs.h.
2560 (get_identifier): Moved to stringpool.h.
2561 (get_identifier_with_length): Moved to stringpool.h.
2562 (get_inner_reference): Moved to tree.h.
2563 (gimple_alloca_call_p): Moved to calls.h.
2564 (gimplify_parameters): Moved to function.h.
2565 (highest_pow2_factor): Moved to expr.h.
2566 (indent_to): Moved to print-tree.h.
2567 (init_attributes): Moved to attribs.h.
2568 (init_dummy_function_start): Moved to function.h.
2569 (init_function_start): Moved to function.h.
2570 (init_inline_once): Moved to tree-inline.h.
2571 (init_object_sizes): Moved to tree-object-size.h.
2572 (init_temp_slots): Moved to function.h.
2573 (init_tree_optimization_optabs): Moved to optabs.h.
2574 (initialize_sizetypes): Moved to stor-layout.h.
2575 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
2576 (initializer_constant_valid_p): Moved to varasm.h.
2577 (int_const_binop): Moved to fold-const.h.
2578 (internal_reference_types): Moved to stor-layout.h.
2579 (invert_tree_comparison): Moved to fold-const.h.
2580 (invert_truthvalue): Moved to fold-const.h.
2581 (invert_truthvalue_loc): Moved to fold-const.h.
2582 (is_tm_ending_fndecl): Moved to trans-mem.h.
2583 (is_tm_may_cancel_outer): Moved to trans-mem.h.
2584 (is_tm_pure): Moved to trans-mem.h.
2585 (is_tm_safe): Moved to trans-mem.h.
2586 (layout_decl): Moved to stor-layout.h.
2587 (layout_type): Moved to stor-layout.h.
2588 (lookup_attribute_spec): Moved to attribs.h.
2589 (make_accum_type): Moved to stor-layout.h.
2590 (make_decl_one_only): Moved to varasm.h.
2591 (make_decl_rtl): Moved to tree.h.
2592 (make_decl_rtl_for_debug): Moved to varasm.h.
2593 (make_fract_type): Moved to stor-layout.h.
2594 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
2595 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
2596 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
2597 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
2598 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
2599 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
2600 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
2601 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
2602 (make_range): Moved to fold-const.h.
2603 (make_range_step): Moved to fold-const.h.
2604 (make_sat_signed_accum_type): Moved to stor-layout.h.
2605 (make_sat_signed_fract_type): Moved to stor-layout.h.
2606 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
2607 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
2608 (make_signed_accum_type): Moved to stor-layout.h.
2609 (make_signed_fract_type): Moved to stor-layout.h.
2610 (make_signed_type): Moved to stor-layout.h.
2611 (make_unsigned_accum_type): Moved to stor-layout.h.
2612 (make_unsigned_fract_type): Moved to stor-layout.h.
2613 (make_unsigned_type): Moved to stor-layout.h.
2614 (mark_decl_referenced): Moved to varasm.h.
2615 (mark_referenced): Moved to varasm.h.
2616 (may_negate_without_overflow_p): Moved to fold-const.h.
2617 (maybe_get_identifier): Moved to stringpool.h.
2618 (merge_ranges): Moved to fold-const.h.
2619 (merge_weak): Moved to varasm.h.
2620 (mode_for_size_tree): Moved to stor-layout.h.
2621 (multiple_of_p): Moved to fold-const.h.
2622 (must_pass_in_stack_var_size): Moved to calls.h.
2623 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
2624 (native_encode_expr): Moved to fold-const.h.
2625 (native_interpret_expr): Moved to fold-const.h.
2626 (non_lvalue): Moved to fold-const.h.
2627 (non_lvalue_loc): Moved to fold-const.h.
2628 (normalize_offset): Moved to stor-layout.h.
2629 (normalize_rli): Moved to stor-layout.h.
2630 (notice_global_symbol): Moved to varasm.h.
2631 (omit_one_operand): Moved to fold-const.h.
2632 (omit_one_operand_loc): Moved to fold-const.h.
2633 (omit_two_operands): Moved to fold-const.h.
2634 (omit_two_operands_loc): Moved to fold-const.h.
2635 (operand_equal_p): Moved to tree-data-ref.h.
2636 (parse_input_constraint): Moved to stmt.h.
2637 (parse_output_constraint): Moved to stmt.h.
2638 (place_field): Moved to stor-layout.h.
2639 (pop_function_context): Moved to function.h.
2640 (pop_temp_slots): Moved to function.h.
2641 (pos_from_bit): Moved to stor-layout.h.
2642 (preserve_temp_slots): Moved to function.h.
2643 (print_node): Moved to print-tree.h.
2644 (print_node_brief): Moved to print-tree.h.
2645 (print_rtl): Moved to rtl.h.
2646 (process_pending_assemble_externals): Moved to varasm.h.
2647 (ptr_difference_const): Moved to fold-const.h.
2648 (push_function_context): Moved to function.h.
2649 (push_struct_function): Moved to function.h.
2650 (push_temp_slots): Moved to function.h.
2651 (record_tm_replacement): Moved to trans-mem.h.
2652 (relayout_decl): Moved to stor-layout.h.
2653 (resolve_asm_operand_names): Moved to stmt.h.
2654 (resolve_unique_section): Moved to varasm.h.
2655 (rli_size_so_far): Moved to stor-layout.h.
2656 (rli_size_unit_so_far): Moved to stor-layout.h.
2657 (round_down): Moved to fold-const.h.
2658 (round_down_loc): Moved to fold-const.h.
2659 (round_up): Moved to fold-const.h.
2660 (round_up_loc): Moved to fold-const.h.
2661 (set_decl_incoming_rtl): Moved to emit-rtl.h.
2662 (set_decl_rtl): Moved to tree.h.
2663 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
2664 (set_user_assembler_name): Moved to varasm.h.
2665 (setjmp_call_p): Moved to calls.h.
2666 (size_binop): Moved to fold-const.h.
2667 (size_binop_loc): Moved to fold-const.h.
2668 (size_diffop): Moved to fold-const.h.
2669 (size_diffop_loc): Moved to fold-const.h.
2670 (size_int_kind): Moved to fold-const.h.
2671 (stack_protect_epilogue): Moved to function.h.
2672 (start_record_layout): Moved to stor-layout.h.
2673 (supports_one_only): Moved to varasm.h.
2674 (swap_tree_comparison): Moved to fold-const.h.
2675 (tm_malloc_replacement): Moved to trans-mem.h.
2676 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
2677 (tree build_invariant_address): Moved to fold-const.h.
2678 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
2679 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
2680 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
2681 (tree_expr_nonnegative_p): Moved to fold-const.h.
2682 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
2683 (tree_output_constant_def): Moved to varasm.h.
2684 (tree_overlaps_hard_reg_set): Moved to stmt.h.
2685 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
2686 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
2687 (tree_swap_operands_p): Moved to fold-const.h.
2688 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
2689 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
2690 (update_alignment_for_field): Moved to stor-layout.h.
2691 (use_register_for_decl): Moved to function.h.
2692 (variable_size): Moved to rtl.h.
2693 (vector_type_mode): Moved to stor-layout.h.
2694 * cgraph.h: Corresponding changes.
2695 * emit-rtl.h: Corresponding changes.
2696 * expr.h: Corresponding changes.
2697 * function.h: Corresponding changes.
2698 * optabs.h: Corresponding changes.
2699 * trans-mem.h: Corresponding changes.
2700 Protect against multiple inclusion.
2701 * tree-inline.h: Corresponding changes.
2702 * tree-iterator.h: Corresponding changes.
2703 * tree-dfa.h: Include expr.h.
2704 * tree-ssanames.h: Include stringpool.h.
2705 * attribs.h: New file.
2706 * calls.h: New file.
2707 * fold-const.h: New file.
2708 * gcc-symtab.h: New file.
2709 * print-rtl.h: New file.
2710 * print-tree.h: New file.
2712 * stor-layout.h: New file.
2713 * strinpool.h: New file.
2714 * tree-nested.h: New file
2715 * tree-object-size.h: New file.
2716 * varasm.h: New file.
2718 2013-11-14 Diego Novillo <dnovillo@google.com>
2720 * alias.c: Include varasm.h.
2722 * asan.c: Include calls.h.
2723 Include stor-layout.h.
2725 * attribs.c: Include stringpool.h.
2727 Include stor-layout.h.
2728 * builtins.c: Include stringpool.h.
2729 Include stor-layout.h.
2732 Include tree-object-size.h.
2733 * calls.c: Include stor-layout.h.
2735 Include stringpool.h.
2737 * cfgexpand.c: Include stringpool.h.
2739 Include stor-layout.h.
2741 Include print-tree.h.
2742 * cgraph.c: Include varasm.h.
2744 Include print-tree.h.
2745 * cgraphclones.c: Include stringpool.h.
2748 Move inclusion of rtl.h earlier in the file.
2749 * cgraphunit.c: Include varasm.h.
2750 Include stor-layout.h.
2751 Include stringpool.h.
2752 * cilk-common.c: Include stringpool.h.
2753 Include stor-layout.h.
2754 * combine.c: Include stor-layout.h.
2755 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
2756 Include stringpool.h.
2758 * config/aarch64/aarch64.c: Include stringpool.h.
2759 Include stor-layout.h.
2762 * config/alpha/alpha.c: Include stor-layout.h.
2765 * config/arc/arc.c: Include varasm.h.
2766 Include stor-layout.h.
2767 Include stringpool.h.
2769 * config/arm/arm.c: Include stringpool.h.
2770 Include stor-layout.h.
2773 * config/avr/avr-c.c: Include stor-layout.h.
2774 * config/avr/avr-log.c: Include print-tree.h.
2775 * config/avr/avr.c: Include print-tree.h.
2777 Include stor-layout.h.
2778 Include stringpool.h.
2779 * config/bfin/bfin.c: Include varasm.h.
2781 * config/c6x/c6x.c: Include stor-layout.h.
2784 Include stringpool.h.
2785 * config/cr16/cr16.c: Include stor-layout.h.
2787 * config/cris/cris.c: Include varasm.h.
2788 Include stor-layout.h.
2791 * config/darwin.c: Include stringpool.h.
2793 Include stor-layout.h.
2794 * config/epiphany/epiphany.c: Include stor-layout.h.
2797 Include stringpool.h.
2798 * config/fr30/fr30.c: Include stor-layout.h.
2800 * config/frv/frv.c: Include varasm.h.
2801 Include stor-layout.h.
2802 Include stringpool.h.
2803 * config/h8300/h8300.c: Include stor-layout.h.
2806 Include stringpool.h.
2807 * config/i386/i386.c: Include stringpool.h.
2810 Include stor-layout.h.
2812 * config/i386/winnt-cxx.c: Include stringpool.h.
2814 * config/i386/winnt.c: Include stringpool.h.
2816 * config/ia64/ia64-c.c: Include stringpool.h.
2817 * config/ia64/ia64.c: Include stringpool.h.
2818 Include stor-layout.h.
2821 * config/iq2000/iq2000.c: Include stor-layout.h.
2824 * config/lm32/lm32.c: Include calls.h.
2825 * config/m32c/m32c.c: Include stor-layout.h.
2828 * config/m32r/m32r.c: Include stor-layout.h.
2830 Include stringpool.h.
2832 * config/m68k/m68k.c: Include calls.h.
2833 Include stor-layout.h.
2835 * config/mcore/mcore.c: Include stor-layout.h.
2837 Include stringpool.h.
2839 * config/mep/mep.c: Include varasm.h.
2841 Include stringpool.h.
2842 Include stor-layout.h.
2843 * config/microblaze/microblaze.c: Include varasm.h.
2844 Include stor-layout.h.
2846 * config/mips/mips.c: Include varasm.h.
2847 Include stringpool.h.
2848 Include stor-layout.h.
2850 * config/mmix/mmix.c: Include varasm.h.
2851 Include stor-layout.h.
2853 * config/mn10300/mn10300.c: Include stor-layout.h.
2856 * config/moxie/moxie.c: Include stor-layout.h.
2859 * config/msp430/msp430.c: Include stor-layout.h.
2861 * config/nds32/nds32.c: Include stor-layout.h.
2864 * config/pa/pa.c: Include stor-layout.h.
2865 Include stringpool.h.
2868 * config/pdp11/pdp11.c: Include stor-layout.h.
2871 * config/picochip/picochip.c: Include calls.h.
2872 Include stor-layout.h.
2873 Include stringpool.h.
2875 * config/rl78/rl78.c: Include varasm.h.
2876 Include stor-layout.h.
2878 * config/rs6000/rs6000-c.c: Include stor-layout.h.
2879 Include stringpool.h.
2880 * config/rs6000/rs6000.c: Include stringpool.h.
2881 Include stor-layout.h.
2883 Include print-tree.h.
2885 * config/rx/rx.c: Include varasm.h.
2886 Include stor-layout.h.
2888 * config/s390/s390.c: Include print-tree.h.
2889 Include stringpool.h.
2890 Include stor-layout.h.
2893 * config/score/score.c: Include stringpool.h.
2896 Include stor-layout.h.
2897 * config/sh/sh-c.c: Include stringpool.h.
2898 Include attribs.h.h.
2899 * config/sh/sh.c: Include stringpool.h.
2900 Include stor-layout.h.
2903 * config/sol2-c.c: Include stringpool.h.
2905 * config/sol2-cxx.c: Include stringpool.h.
2906 * config/sol2.c: Include stringpool.h.
2908 * config/sparc/sparc.c: Include stringpool.h.
2909 Include stor-layout.h.
2912 * config/spu/spu-c.c: Include stringpool.h.
2913 * config/spu/spu.c: Include stringpool.h.
2914 Include stor-layout.h.
2917 * config/stormy16/stormy16.c: Include stringpool.h.
2918 Include stor-layout.h.
2921 * config/tilegx/tilegx.c: Include stringpool.h.
2922 Include stor-layout.h.
2925 * config/tilepro/tilepro.c: Include stringpool.h.
2926 Include stor-layout.h.
2929 * config/v850/v850-c.c: Include stringpool.h.
2931 * config/v850/v850.c: Include stringpool.h.
2932 Include stor-layout.h.
2935 * config/vax/vax.c: Include calls.h.
2937 * config/vms/vms.c: Include stringpool.h.
2938 * config/vxworks.c: Include stringpool.h.
2939 * config/xtensa/xtensa.c: Include stringpool.h.
2940 Include stor-layout.h.
2943 * convert.c: Include stor-layout.h.
2944 * coverage.c: Include stringpool.h.
2945 Include stor-layout.h.
2946 * dbxout.c: Include varasm.h.
2947 Include stor-layout.h.
2948 * dojump.c: Include stor-layout.h.
2949 * dse.c: Include stor-layout.h.
2950 * dwarf2asm.c: Include stringpool.h.
2952 * dwarf2cfi.c: Include stor-layout.h.
2953 * dwarf2out.c: Include rtl.h.
2954 Include stringpool.h.
2955 Include stor-layout.h.
2959 Move inclusion of rtl.h earlier in the file.
2960 * emit-rtl.c: Include varasm.h.
2961 * except.c: Include stringpool.h.
2962 Include stor-layout.h.
2963 * explow.c: Include stor-layout.h.
2964 * expmed.c: Include stor-layout.h.
2965 * expr.c: Include stringpool.h.
2966 Include stor-layout.h.
2969 * final.c: Include varasm.h.
2970 * fold-const.c: Include stor-layout.h.
2972 Include tree-iterator.h.
2973 * function.c: Include stor-layout.h.
2975 Include stringpool.h.
2976 * genattrtab.c (write_header): Emit includes for varasm.h,
2977 stor-layout.h and calls.h.
2978 * genautomata.c (main): Likewise.
2979 * genemit.c: Likewise.
2980 * genopinit.c: Likewise.
2981 * genoutput.c (output_prologue): Likewise.
2982 * genpeep.c: Likewise.
2983 * genpreds.c (write_insn_preds_c): Likewise.
2984 * gengtype.c (open_base_files): Add stringpool.h.
2985 * gimple-expr.c: Include stringpool.h.
2986 Include stor-layout.h.
2987 * gimple-fold.c: Include stringpool.h.
2990 Include stor-layout.h.
2991 * gimple-low.c: Include tree-nested.h.
2993 * gimple-pretty-print.c: Include stringpool.h.
2994 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
2996 * gimple-walk.c: Include stmt.h.
2997 * gimple.c: Include calls.h.
2999 Include stor-layout.h.
3000 * gimplify.c: Include stringpool.h.
3003 Include stor-layout.h.
3005 Include print-tree.h.
3007 * gimplify-me.c: Include stmt.h
3008 Include stor-layout.h
3009 * internal-fn.c: Include stor-layout.h.
3010 * ipa-devirt.c: Include print-tree.h.
3012 * ipa-inline-analysis.c: Include stor-layout.h.
3013 Include stringpool.h.
3014 Include print-tree.h.
3015 * ipa-inline.c: Include trans-mem.h.
3017 * ipa-prop.c: Include expr.h.
3018 Include stor-layout.h.
3019 Include print-tree.h.
3020 * ipa-pure-const.c: Include print-tree.h.
3022 * ipa-reference.c: Include calls.h.
3023 * ipa-split.c: Include stringpool.h.
3026 * ipa.c: Include calls.h.
3027 Include stringpool.h.
3028 * langhooks.c: Include stringpool.h.
3030 * lto-cgraph.c: Include stringpool.h.
3031 * lto-streamer-in.c: Include stringpool.h.
3032 * lto-streamer-out.c: Include stor-layout.h.
3033 Include stringpool.h.
3034 * omp-low.c: Include stringpool.h.
3035 Include stor-layout.h.
3037 * optabs.c: Include stor-layout.h.
3038 Include stringpool.h.
3040 * passes.c: Include varasm.h.
3041 * predict.c: Include calls.h.
3042 * print-rtl.c: Include print-tree.h.
3043 * print-tree.c: Include varasm.h.
3044 Include print-rtl.h.
3045 Include stor-layout.h.
3046 * realmpfr.c: Include stor-layout.h.
3047 * reg-stack.c: Include varasm.h.
3048 * sdbout.c: Include varasm.h.
3049 Include stor-layout.h.
3050 * simplify-rtx.c: Include varasm.h.
3051 * stmt.c: Include varasm.h.
3052 Include stor-layout.h.
3053 * stor-layout.c: Include stor-layout.h.
3054 Include stringpool.h.
3056 Include print-tree.h.
3057 * symtab.c: Include rtl.h.
3058 Include print-tree.h.
3062 * targhooks.c: Include stor-layout.h.
3064 * toplev.c: Include varasm.h.
3065 Include tree-inline.h.
3066 * trans-mem.c: Include calls.h.
3070 * tree-affine.c: Include expr.h.
3071 * tree-browser.c: Include print-tree.h.
3072 * tree-call-cdce.c: Include stor-layout.h.
3073 * tree-cfg.c: Include trans-mem.h.
3074 Include stor-layout.h.
3075 Include print-tree.h.
3076 * tree-complex.c: Include stor-layout.h.
3077 * tree-data-ref.c: Include expr.h.
3078 * tree-dfa.c: Include stor-layout.h.
3079 * tree-eh.c: Include expr.h.
3081 * tree-emutls.c: Include stor-layout.h.
3083 * tree-if-conv.c: Include stor-layout.h.
3084 * tree-inline.c: Include stor-layout.h.
3086 * tree-loop-distribution.c: Include stor-layout.h.
3087 * tree-nested.c: Include stringpool.h.
3088 Include stor-layout.h.
3089 * tree-object-size.c: Include tree-object-size.h.
3090 * tree-outof-ssa.c: Include stor-layout.h.
3091 * tree-parloops.c: Include stor-layout.h.
3092 Include tree-nested.h.
3093 * tree-pretty-print.c: Include stor-layout.h.
3095 * tree-profile.c: Include varasm.h.
3096 Include tree-nested.h.
3097 * tree-scalar-evolution.c: Include expr.h.
3098 * tree-sra.c: Include stor-layout.h.
3099 * tree-ssa-address.c: Include stor-layout.h.
3100 * tree-ssa-ccp.c: Include stor-layout.h.
3101 * tree-ssa-dce.c: Include calls.h.
3102 * tree-ssa-dom.c: Include stor-layout.h.
3103 * tree-ssa-forwprop.c: Include stor-layout.h.
3104 * tree-ssa-ifcombine.c: Include stor-layout.h.
3105 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
3106 * tree-ssa-loop-niter.c: Include calls.h.
3108 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
3109 * tree-ssa-math-opts.c: Include stor-layout.h.
3110 * tree-ssa-operands.c: Include stmt.h.
3111 Include print-tree.h.
3112 * tree-ssa-phiopt.c: Include stor-layout.h.
3113 * tree-ssa-reassoc.c: Include stor-layout.h.
3114 * tree-ssa-sccvn.c: Include stor-layout.h.
3115 * tree-ssa-sink.c: Include stor-layout.h.
3116 * tree-ssa-strlen.c: Include stor-layout.h.
3117 * tree-ssa-structalias.c: Include stor-layout.h.
3119 * tree-ssa-tail-merge.c: Include stor-layout.h.
3120 Include trans-mem.h.
3121 * tree-ssa-uncprop.c: Include stor-layout.h.
3122 * tree-ssa.c: Include stor-layout.h.
3123 * tree-ssanames.c: Include stor-layout.h.
3124 * tree-streamer-in.c: Include stringpool.h.
3125 * tree-streamer-out.c: Include stor-layout.h.
3126 * tree-switch-conversion.c: Include varasm.h.
3127 Include stor-layout.h.
3128 * tree-tailcall.c: Include stor-layout.h.
3129 * tree-vect-data-refs.c: Include stor-layout.h.
3130 * tree-vect-generic.c: Include stor-layout.h.
3131 * tree-vect-loop.c: Include stor-layout.h.
3132 * tree-vect-patterns.c: Include stor-layout.h.
3133 * tree-vect-slp.c: Include stor-layout.h.
3134 * tree-vect-stmts.c: Include stor-layout.h.
3135 * tree-vectorizer.c: Include stor-layout.h.
3136 * tree-vrp.c: Include stor-layout.h.
3138 * tree.c: Include stor-layout.h.
3142 * tsan.c: Include expr.h.
3143 * ubsan.c: Include stor-layout.h.
3144 Include stringpool.h.
3145 * value-prof.c: Include tree-nested.h.
3147 * var-tracking.c: Include varasm.h.
3148 Include stor-layout.h.
3149 * varasm.c: Include stor-layout.h.
3150 Include stringpool.h.
3151 Include gcc-symtab.h.
3153 * varpool.c: Include varasm.h.
3154 * vmsdbgout.c: Include varasm.h.
3155 * xcoffout.c: Include varasm.h.
3157 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
3159 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
3162 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3164 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
3166 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3167 Alan Modra <amodra@gmail.com>
3169 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
3170 (RS6000_SAVE_TOC): Remove.
3171 (RS6000_TOC_SAVE_SLOT): New macro.
3172 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
3173 (rs6000_parm_start): Use it.
3174 (rs6000_function_arg_advance_1): Likewise.
3175 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
3176 (rs6000_emit_epilogue): Likewise.
3177 (rs6000_call_aix): Likewise.
3178 (rs6000_output_function_prologue): Do not save/restore r11
3179 around calling _mcount for ABI_ELFv2.
3181 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3182 Alan Modra <amodra@gmail.com>
3184 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
3186 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
3187 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
3188 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
3189 (rs6000_function_parms_need_stack): Likewise.
3190 (rs6000_reg_parm_stack_space): Likewise.
3191 (rs6000_function_arg): Do not replace BLKmode by Pmode when
3192 returning a register argument.
3194 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3195 Michael Gschwind <mkg@us.ibm.com>
3197 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
3198 (ALTIVEC_ARG_MAX_RETURN): Likewise.
3199 (FUNCTION_VALUE_REGNO_P): Use them.
3200 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
3201 (rs6000_return_in_msb): New function.
3202 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
3203 Handle aggregates of up to 16 bytes for ELFv2.
3204 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
3206 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3207 Michael Gschwind <mkg@us.ibm.com>
3209 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3210 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3211 (rs6000_discover_homogeneous_aggregate): Likewise.
3212 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3213 (rs6000_function_arg_advance_1): Likewise.
3214 (rs6000_function_arg): Likewise.
3215 (rs6000_arg_partial_bytes): Likewise.
3216 (rs6000_psave_function_arg): Handle BLKmode arguments.
3218 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3219 Michael Gschwind <mkg@us.ibm.com>
3221 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
3222 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
3223 (rs6000_discover_homogeneous_aggregate): Likewise.
3224 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
3225 (rs6000_function_arg_advance_1): Likewise.
3226 (rs6000_function_arg): Likewise.
3227 (rs6000_arg_partial_bytes): Likewise.
3228 (rs6000_psave_function_arg): Handle BLKmode arguments.
3230 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3232 * config/rs6000/rs6000.c (machine_function): New member
3234 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
3235 (rs6000_output_mi_thunk): Set r2_setup_needed.
3236 (rs6000_output_function_prologue): Output global entry point
3237 prologue and local entry point marker if needed for ABI_ELFv2.
3238 Output -mprofile-kernel code here.
3239 (output_function_profiler): Do not output -mprofile-kernel
3240 code here; moved to rs6000_output_function_prologue.
3241 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
3243 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
3244 (rs6000_output_function_entry): Likewise.
3245 (rs6000_assemble_integer): Likewise.
3246 (rs6000_elf_encode_section_info): Likewise.
3247 (rs6000_elf_declare_function_name): Do not create dot symbols
3248 or .opd section for ABI_ELFv2.
3250 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
3251 (rs6000_trampoline_init): Likewise.
3252 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
3254 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
3255 for function descriptors in ABI_ELFv2.
3257 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
3258 on ABI_AIX only, not ABI_ELFv2.
3259 ("*call_value_indirect_aix<mode>"): Likewise.
3260 ("*call_indirect_elfv2<mode>"): New pattern.
3261 ("*call_value_indirect_elfv2<mode>"): Likewise.
3263 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
3264 check for function descriptors in ABI_ELFv2.
3265 ("current_file_function_operand"): Likewise.
3267 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
3269 (FUNC_NAME): Define ELFv2 variant.
3270 (JUMP_TARGET): Likewise.
3271 (FUNC_START): Likewise.
3272 (HIDDEN_FUNC): Likewise.
3273 (FUNC_END): Likeiwse.
3275 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3277 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
3278 and --with-abi=elfv2.
3279 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
3280 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
3281 (mabi=elfv2): Likewise.
3282 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
3283 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
3285 (ELFv2_ABI_CHECK): New macro.
3286 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
3287 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
3288 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
3289 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
3290 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
3292 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
3293 (debug_stack_info): Likewise.
3294 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
3295 (rs6000_legitimize_tls_address): Likewise.
3296 (rs6000_conditional_register_usage): Likewise.
3297 (rs6000_emit_move): Likewise.
3298 (init_cumulative_args): Likewise.
3299 (rs6000_function_arg_advance_1): Likewise.
3300 (rs6000_function_arg): Likewise.
3301 (rs6000_arg_partial_bytes): Likewise.
3302 (rs6000_output_function_entry): Likewise.
3303 (rs6000_assemble_integer): Likewise.
3304 (rs6000_savres_strategy): Likewise.
3305 (rs6000_stack_info): Likewise.
3306 (rs6000_function_ok_for_sibcall): Likewise.
3307 (rs6000_emit_load_toc_table): Likewise.
3308 (rs6000_savres_routine_name): Likewise.
3309 (ptr_regno_for_savres): Likewise.
3310 (rs6000_emit_prologue): Likewise.
3311 (rs6000_emit_epilogue): Likewise.
3312 (rs6000_output_function_epilogue): Likewise.
3313 (output_profile_hook): Likewise.
3314 (output_function_profiler): Likewise.
3315 (rs6000_trampoline_size): Likewise.
3316 (rs6000_trampoline_init): Likewise.
3317 (rs6000_elf_output_toc_section_asm_op): Likewise.
3318 (rs6000_elf_encode_section_info): Likewise.
3319 (rs6000_elf_reloc_rw_mask): Likewise.
3320 (rs6000_elf_declare_function_name): Likewise.
3321 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
3322 except that rs6000_compat_align_parm is always assumed false.
3323 (rs6000_gimplify_va_arg): Likewise.
3324 (rs6000_call_aix): Update comment.
3325 (rs6000_sibcall_aix): Likewise.
3326 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
3327 Treat ABI_ELFv2 the same as ABI_AIX.
3328 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3329 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
3330 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
3331 ("load_toc_aix_si"): Likewise.
3332 ("load_toc_aix_di"): Likewise.
3334 ("call_value"): Likewise.
3335 ("*call_local_aix<mode>"): Likewise.
3336 ("*call_value_local_aix<mode>"): Likewise.
3337 ("*call_nonlocal_aix<mode>"): Likewise.
3338 ("*call_value_nonlocal_aix<mode>"): Likewise.
3339 ("*call_indirect_aix<mode>"): Likewise.
3340 ("*call_value_indirect_aix<mode>"): Likewise.
3341 ("sibcall"): Likewise.
3342 ("sibcall_value"): Likewise.
3343 ("*sibcall_aix<mode>"): Likewise.
3344 ("*sibcall_value_aix<mode>"): Likewise.
3345 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
3346 ("current_file_function_operand"): Likewise.
3348 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3350 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
3351 by making use of the fact that for vector / floating point arguments
3352 passed both in VRs/FPRs and in the fixed parameter area, the partial
3353 bytes mechanism is in fact not used.
3355 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3357 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
3358 (rs6000_finish_function_arg): Likewise.
3359 (rs6000_function_arg): Use rs6000_psave_function_arg and
3360 rs6000_finish_function_arg to handle both vector and floating
3361 point arguments that are also passed in GPRs / the stack.
3363 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3365 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
3366 (USE_ALTIVEC_FOR_ARG_P): Likewise.
3367 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
3368 (rs6000_function_arg_advance_1):Likewise.
3369 (rs6000_darwin64_record_arg_recurse): Likewise.
3370 (rs6000_function_arg): Likewise.
3371 (rs6000_arg_partial_bytes): Likewise.
3373 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3375 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
3376 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
3377 (rs6000_savres_strategy): Likewise.
3378 (rs6000_return_addr): Likewise.
3379 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
3380 testing for ABI_V4 (since ABI_DARWIN is impossible here).
3381 (rs6000_emit_prologue): Likewise.
3382 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
3383 (rs6000_elf_declare_function_name): Remove duplicated test.
3384 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
3385 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
3386 ("load_toc_v4_PIC_1_normal"): Likewise.
3387 ("load_toc_v4_PIC_1_476"): Likewise.
3388 ("load_toc_v4_PIC_1b"): Likewise.
3389 ("load_toc_v4_PIC_1b_normal"): Likewise.
3390 ("load_toc_v4_PIC_1b_476"): Likewise.
3391 ("load_toc_v4_PIC_2"): Likewise.
3392 ("load_toc_v4_PIC_3b"): Likewise.
3393 ("load_toc_v4_PIC_3c"): Likewise.
3394 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
3395 (RS6000_SAVE_AREA): Likewise.
3396 (FP_ARG_MAX_REG): Likewise.
3397 (RETURN_ADDRESS_OFFSET): Likewise.
3398 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
3400 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
3401 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3403 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3405 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
3406 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
3407 Create call insn directly instead of via various gen_... routines.
3408 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
3409 (rs6000_sibcall_aix): New function.
3410 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
3411 (TOC_SAVE_OFFSET_64BIT): Likewise.
3412 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
3413 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
3414 (AIX_FUNC_DESC_SC_32BIT): Likewise.
3415 (AIX_FUNC_DESC_SC_64BIT): Likewise.
3416 ("call" expander): Call rs6000_call_aix.
3417 ("call_value" expander): Likewise.
3418 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
3419 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3420 ("*call_indirect_aix<mode>"): ... by this insn pattern.
3421 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
3422 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
3423 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
3424 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
3425 ("*call_nonlocal_aix<mode>"): ... this pattern.
3426 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
3427 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
3428 ("*call_local_aix<mode>"): New insn pattern.
3429 ("*call_value_local_aix<mode>"): Likewise.
3430 ("sibcall" expander): Call rs6000_sibcall_aix.
3431 ("sibcall_value" expander): Likewise. Move earlier in file.
3432 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
3433 ("*sibcall_aix<mode>"): ... this pattern.
3434 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
3435 ("*sibcall_value_aix<mode>"): ... this pattern.
3436 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
3437 (rs6000_call_aix): Add prototype.
3438 (rs6000_sibcall_aix): Likewise.
3440 2013-11-14 Jakub Jelinek <jakub@redhat.com>
3443 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
3444 isn't confused by the artificial decl.
3446 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3448 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
3449 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
3450 Instead, add USEs of all modified call-saved CR fields to the
3451 insn storing the result to the stack slot, and provide an
3452 appropriate REG_FRAME_RELATED_EXPR for that insn.
3453 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
3454 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
3456 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3457 Alan Modra <amodra@gmail.com>
3459 * function.c (assign_parms): Use all.reg_parm_stack_space instead
3460 of re-evaluating REG_PARM_STACK_SPACE target macro.
3461 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
3462 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
3463 (assign_parm_find_entry_rtl): Update call.
3464 * calls.c (initialize_argument_information): Update call.
3465 (emit_library_call_value_1): Likewise.
3466 * expr.h (locate_and_pad_parm): Update prototype.
3468 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3470 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
3473 2013-11-14 DJ Delorie <dj@redhat.com>
3475 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
3478 2013-11-14 Jeff Law <law@redhat.com>
3480 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
3481 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
3483 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3485 * doc/invoke.texi: Update documentation for AArch64's -mcpu
3488 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3490 * config/aarch64/aarch64-cores.def (example-1): Remove.
3491 (example-2): Likewise.
3492 * config/aarch64/aarch64-tune.md: Regenerate.
3493 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
3494 (generic_sched): Remove "large", "small".
3495 * config/aarch64/large.md: Delete.
3496 * config/aarch64/small.md: Delete.
3498 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3500 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
3501 * config/aarch64/aarch64-tune.md: Regenerate.
3502 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
3503 (generic_sched): "no" if we are tuning for cortexa15.
3504 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
3507 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3509 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
3510 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
3511 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
3512 (all_cores): Use cortexa53 when tuning for "generic".
3513 (aarch64_override_options): Fix comment.
3514 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
3515 * config/aarch64/aarch64-generic.md: Delete.
3517 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
3519 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
3521 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3523 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
3524 (generic_rtx_cost_table): Remove.
3525 (aarch64_rtx_costs): Use fields from cpu_cost_table.
3526 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
3528 (cpu_rtx_cost_table): Remove.
3530 2013-11-14 Julian Brown <julian@codesourcery.com>
3531 Joey Ye <joey.ye@arm.com>
3533 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
3534 (arm_v7m_tune): New.
3535 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
3536 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
3537 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
3538 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
3540 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
3543 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
3546 2013-11-14 Jakub Jelinek <jakub@redhat.com>
3547 Uros Bizjak <ubizjak@gmail.com>
3550 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
3551 operands[2] satisfies_constraint_Z that might have bit 31 set.
3553 2013-11-13 Jeff Law <law@redhat.com>
3555 PR tree-optimization/59102
3556 * gimple-ssa-isolate-paths.c
3557 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
3558 gimple assignment before looking at gimple_assign_lhs.
3560 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
3562 * ira.c: Add comment about threads at the top of file.
3564 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
3566 * ira-color.c (coalesce_allocnos): Don't allocate and free
3569 2013-11-14 Tom de Vries <tom@codesourcery.com>
3571 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
3572 equality for GIMPLE_ASSIGN.
3574 2013-11-14 Tom de Vries <tom@codesourcery.com>
3576 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
3578 (gimple_equal_p): ... here.
3580 2013-11-14 Tom de Vries <tom@codesourcery.com>
3582 * trans-mem.c (is_tm_ending): New function.
3583 * gimple.h (is_tm_ending): Declare.
3584 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
3586 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
3588 2013-11-14 Tom de Vries <tom@codesourcery.com>
3590 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
3592 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
3594 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
3595 (struct walk_stmt_info): Relocate here from gimple.h.
3596 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
3597 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
3598 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
3599 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
3600 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
3601 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
3602 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
3603 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
3604 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
3605 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
3606 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
3607 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
3608 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
3609 (struct walk_stmt_info): Move to gimple-walk.h.
3610 (gimple_seq_set_location): Move to gimple.c
3611 * gimple-walk.c: New File.
3612 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
3613 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
3614 walk_stmt_load_store_ops): Relocate here from gimple.c.
3615 * gimple-iterator.c: Include gimple-iterator.h.
3616 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
3617 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
3618 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
3620 (gimple_seq_set_location): Relocate from gimple.h.
3621 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
3622 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
3623 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
3624 * Makefile.in (OBJS): Add gimple-walk.o
3625 * asan.c: Update Include list as required for gimple-iterator.h and
3627 * cfgexpand.c: Likewise.
3628 * cfgloop.c: Likewise.
3629 * cfgloopmanip.c: Likewise.
3630 * cgraph.c: Likewise.
3631 * cgraphbuild.c: Likewise.
3632 * cgraphunit.c: Likewise.
3633 * gimple-fold.c: Likewise.
3634 * gimple-low.c: Likewise.
3635 * gimple-pretty-print.c: Likewise.
3636 * gimple-ssa-isolate-paths.c: Likewise.
3637 * gimple-ssa-strength-reduction.c: Likewise.
3638 * gimple-streamer-in.c: Likewise.
3639 * gimple-streamer-out.c: Likewise.
3640 * gimplify.c: Likewise.
3641 * graphite-blocking.c: Likewise.
3642 * graphite-clast-to-gimple.c: Likewise.
3643 * graphite-dependences.c: Likewise.
3644 * graphite-interchange.c: Likewise.
3645 * graphite-optimize-isl.c: Likewise.
3646 * graphite-poly.c: Likewise.
3647 * graphite-scop-detection.c: Likewise.
3648 * graphite-sese-to-poly.c: Likewise.
3649 * graphite.c: Likewise.
3650 * ipa-inline-analysis.c: Likewise.
3651 * ipa-profile.c: Likewise.
3652 * ipa-prop.c: Likewise.
3653 * ipa-pure-const.c: Likewise.
3654 * ipa-split.c: Likewise.
3655 * lto-streamer-in.c: Likewise.
3656 * lto-streamer-out.c: Likewise.
3657 * omp-low.c: Likewise.
3658 * predict.c: Likewise.
3659 * profile.c: Likewise.
3661 * tracer.c: Likewise.
3662 * trans-mem.c: Likewise.
3663 * tree-call-cdce.c: Likewise.
3664 * tree-cfg.c: Likewise.
3665 * tree-cfgcleanup.c: Likewise.
3666 * tree-complex.c: Likewise.
3667 * tree-data-ref.c: Likewise.
3668 * tree-dfa.c: Likewise.
3669 * tree-eh.c: Likewise.
3670 * tree-emutls.c: Likewise.
3671 * tree-if-conv.c: Likewise.
3672 * tree-inline.c: Likewise.
3673 * tree-into-ssa.c: Likewise.
3674 * tree-loop-distribution.c: Likewise.
3675 * tree-nested.c: Likewise.
3676 * tree-nrv.c: Likewise.
3677 * tree-object-size.c: Likewise.
3678 * tree-outof-ssa.c: Likewise.
3679 * tree-parloops.c: Likewise.
3680 * tree-predcom.c: Likewise.
3681 * tree-profile.c: Likewise.
3682 * tree-scalar-evolution.c: Likewise.
3683 * tree-sra.c: Likewise.
3684 * tree-ssa-ccp.c: Likewise.
3685 * tree-ssa-coalesce.c: Likewise.
3686 * tree-ssa-copy.c: Likewise.
3687 * tree-ssa-copyrename.c: Likewise.
3688 * tree-ssa-dce.c: Likewise.
3689 * tree-ssa-dom.c: Likewise.
3690 * tree-ssa-dse.c: Likewise.
3691 * tree-ssa-forwprop.c: Likewise.
3692 * tree-ssa-ifcombine.c: Likewise.
3693 * tree-ssa-live.c: Likewise.
3694 * tree-ssa-loop-ch.c: Likewise.
3695 * tree-ssa-loop-im.c: Likewise.
3696 * tree-ssa-loop-ivcanon.c: Likewise.
3697 * tree-ssa-loop-ivopts.c: Likewise.
3698 * tree-ssa-loop-manip.c: Likewise.
3699 * tree-ssa-loop-niter.c: Likewise.
3700 * tree-ssa-loop-prefetch.c: Likewise.
3701 * tree-ssa-loop.c: Likewise.
3702 * tree-ssa-math-opts.c: Likewise.
3703 * tree-ssa-phiopt.c: Likewise.
3704 * tree-ssa-phiprop.c: Likewise.
3705 * tree-ssa-pre.c: Likewise.
3706 * tree-ssa-propagate.c: Likewise.
3707 * tree-ssa-reassoc.c: Likewise.
3708 * tree-ssa-sink.c: Likewise.
3709 * tree-ssa-strlen.c: Likewise.
3710 * tree-ssa-structalias.c: Likewise.
3711 * tree-ssa-tail-merge.c: Likewise.
3712 * tree-ssa-ter.c: Likewise.
3713 * tree-ssa-threadedge.c: Likewise.
3714 * tree-ssa-threadupdate.c: Likewise.
3715 * tree-ssa-uncprop.c: Likewise.
3716 * tree-ssa-uninit.c: Likewise.
3717 * tree-ssa.c: Likewise.
3718 * tree-stdarg.c: Likewise.
3719 * tree-switch-conversion.c: Likewise.
3720 * tree-tailcall.c: Likewise.
3721 * tree-vect-data-refs.c: Likewise.
3722 * tree-vect-generic.c: Likewise.
3723 * tree-vect-loop-manip.c: Likewise.
3724 * tree-vect-loop.c: Likewise.
3725 * tree-vect-patterns.c: Likewise.
3726 * tree-vect-slp.c: Likewise.
3727 * tree-vect-stmts.c: Likewise.
3728 * tree-vectorizer.c: Likewise.
3729 * tree-vrp.c: Likewise.
3732 * value-prof.c: Likewise.
3733 * vtable-verify.c: Likewise.
3735 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
3737 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
3740 2013-11-13 Jeff Law <law@redhat.com>
3742 * PR middle-end/59119
3743 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
3744 function, extracted from gimple_ssa_isolate_erroneous_paths.
3745 (find_explicit_erroneous_behaviour): Similarly.
3746 (insert_trap_and_remove_trailing_statements): Remove statements
3749 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
3751 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
3752 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
3753 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
3754 looking at INSN_CODE.
3755 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
3756 active_insn_p object, respect basic block boundaries.
3757 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
3758 follows immediately after the jump table data label.
3759 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
3760 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
3761 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
3763 2013-11-13 Teresa Johnson <tejohnson@google.com>
3766 * predict.c (drop_profile): Error is currently too strict.
3767 (handle_missing_profiles): Pass call_count to drop_profile.
3769 2013-11-13 Teresa Johnson <tejohnson@google.com>
3772 * ipa-inline.c (edge_badness): Fix overflow.
3774 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
3776 PR rtl-optimization/59036
3777 * ira-color.c (struct allocno_color_data): Add new members
3778 first_thread_allocno, next_thread_allocno, thread_freq.
3779 (sorted_copies): New static var.
3780 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
3781 (allocno_thread_conflict_p, merge_threads)
3782 (form_threads_from_copies, form_threads_from_bucket)
3783 (form_threads_from_colorable_allocno, init_allocno_threads): New
3785 (bucket_allocno_compare_func): Add comparison by thread frequency
3787 (add_allocno_to_ordered_bucket): Rename to
3788 add_allocno_to_ordered_colorable_bucket. Remove parameter.
3789 (push_only_colorable): Call form_threads_from_bucket.
3790 (color_pass): Call init_allocno_threads. Use
3791 consideration_allocno_bitmap instead of coloring_allocno_bitmap
3792 for nuillify allocno color data.
3793 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
3794 (coalesce_allocnos): Use static sorted copies.
3796 2013-11-13 Jakub Jelinek <jakub@redhat.com>
3798 * passes.c (execute_todo): Don't call do_per_function if
3800 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
3801 execute_function_dump if dump_file is NULL.
3803 2013-11-13 Martin Jambor <mjambor@suse.cz>
3805 * cgraph.c (cgraph_get_create_node): Do what
3806 cgraph_get_create_real_symbol_node used to do.
3807 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
3808 call cgraph_get_create_node.
3809 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
3810 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
3811 cgraph_get_create_node. Assert we get a node.
3813 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
3815 * config/aarch64/aarch64-simd.md (vec_extract): New.
3817 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
3819 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
3822 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
3824 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
3825 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
3826 or if optimization is enabled.
3827 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
3828 require that all the names based on a PARM_DECL or a RESULT_DECL that
3829 isn't ignored for debug info be coalesced.
3831 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3833 * config/c6x/c6x.c: Include "gimple-expr.h".
3835 2013-11-13 Richard Biener <rguenther@suse.de>
3837 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
3838 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
3839 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
3840 dealing with type mismatches inside component reference chains.
3842 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
3844 PR tree-optimization/59077
3845 * ipa-pure-const.c (better_state): Update *state.
3847 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
3849 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
3850 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
3851 Update offset calculations.
3853 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
3856 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
3857 for fields. Do not add the attribute if the size is negative.
3859 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3861 * config/arm/arm.c: Include aarch-cost-tables.h.
3862 (generic_extra_costs): Move from here...
3863 * config/arm/aarch-cost-tables.h: ... To here. New file.
3865 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
3866 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3867 Sergey Lega <sergey.s.lega@intel.com>
3868 Anna Tikhonova <anna.tikhonova@intel.com>
3869 Ilya Tocar <ilya.tocar@intel.com>
3870 Andrey Turetskiy <andrey.turetskiy@intel.com>
3871 Ilya Verbin <ilya.verbin@intel.com>
3872 Kirill Yukhin <kirill.yukhin@intel.com>
3873 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3875 * config/i386/i386.c (ix86_print_operand): Support z-masking.
3876 * config/i386/predicate.md (const_0_to_4_operand): New.
3877 (const_0_to_5_operand): Ditto.
3878 * config/i386/sse.md (UNSPEC_COMPRESS): New.
3879 (UNSPEC_COMPRESS_STORE): Ditto.
3880 (UNSPEC_EXPAND): Ditto.
3881 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
3882 (define_mode_attr ssescalarsize): Ditto.
3883 (avx512f_load<mode>_mask): Ditto.
3884 (avx512f_store<mode>_mask): Ditto.
3885 (avx512f_storedqu<mode>_mask): Ditto.
3886 (avx512f_vmcmp<mode>3_mask): Ditto.
3887 (avx512f_fmadd_<mode>_mask): Ditto.
3888 (avx512f_fmadd_<mode>_mask3): Ditto.
3889 (avx512f_fmsub_<mode>_mask): Ditto.
3890 (avx512f_fmsub_<mode>_mask3): Ditto.
3891 (avx512f_fnmadd_<mode>_mask): Ditto.
3892 (avx512f_fnmadd_<mode>_mask3): Ditto.
3893 (avx512f_fnmsub_<mode>_mask): Ditto.
3894 (avx512f_fnmsub_<mode>_mask3): Ditto.
3895 (avx512f_fmaddsub_<mode>_mask): Ditto.
3896 (avx512f_fmaddsub_<mode>_mask3): Ditto.
3897 (avx512f_fmsubadd_<mode>_mask): Ditto.
3898 (avx512f_fmsubadd_<mode>_mask3): Ditto.
3899 (vec_unpacku_float_lo_v16si): Ditto.
3900 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
3901 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
3902 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
3903 (vec_extract_lo_<mode>_maskm): Ditto.
3904 (vec_extract_hi_<mode>_maskm): Ditto.
3905 (avx512f_vternlog<mode>_mask): Ditto.
3906 (avx512f_shufps512_mask): Ditto.
3907 (avx512f_fixupimm<mode>_mask): Ditto.
3908 (avx512f_shufpd512_mask): Ditto.
3909 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
3910 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
3911 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
3912 (ashr<mode>3<mask_name>): Ditto.
3913 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
3914 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
3915 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
3916 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
3917 (avx512f_pshufdv3_mask): Ditto.
3918 (avx512f_perm<mode>_mask): Ditto.
3919 (avx512f_vpermi2var<mode>3_mask): Ditto.
3920 (avx512f_vpermt2var<mode>3_mask): Ditto.
3921 (avx512f_compress<mode>_mask): Ditto.
3922 (avx512f_compressstore<mode>_mask): Ditto.
3923 (avx512f_expand<mode>_mask): Ditto.
3924 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
3926 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
3927 (<plusminus_insn><mode>3<mask_name>): Ditto.
3928 (*<plusminus_insn><mode>3<mask_name>): Ditto.
3929 (mul<mode>3<mask_name>): Ditto.
3930 (*mul<mode>3<mask_name>): Ditto.
3931 (<sse>_div<mode>3<mask_name>): Ditto.
3932 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
3933 (<sse>_sqrt<mode>2<mask_name>): Ditto.
3934 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
3935 (<code><mode>3<mask_name>/smaxmin): Ditto.
3936 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
3937 (*<code><mode>3<mask_name>/smaxmin): Ditto.
3938 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
3939 (ufloatv16siv16sf2<mask_name>): Ditto.
3940 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
3941 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
3942 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
3943 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
3944 (ufloatv8siv8df<mask_name>): Ditto.
3945 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
3946 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
3947 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
3948 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
3949 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
3950 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
3951 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
3952 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
3953 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
3954 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
3955 (vec_extract_lo_<mode><mask_name>): Ditto.
3956 (vec_extract_hi_<mode><mask_name>): Ditto.
3957 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
3958 (avx512f_movddup512<mask_name>): Ditto.
3959 (avx512f_unpcklpd512<mask_name>): Ditto.
3960 (*avx512f_unpcklpd512<mask_name>): Ditto.
3961 (*avx512f_vmscalef<mode>): Ditto.
3962 (avx512f_scalef<mode><mask_name>): Ditto.
3963 (avx512f_getexp<mode><mask_name>): Ditto.
3964 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
3965 (avx512f_rndscale<mode><mask_name>): Ditto.
3966 (avx512f_shufps512_1<mask_name>): Ditto.
3967 (avx512f_shufpd512_1<mask_name>): Ditto.
3968 (<plusminus_insn><mode>3<mask_name>): Ditto.
3969 (*<plusminus_insn><mode>3<mask_name>): Ditto.
3970 (vec_widen_umult_even_v16si<mask_name>): Ditto.
3971 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
3972 (vec_widen_smult_even_v16si<mask_name>): Ditto.
3973 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
3974 (mul<mode>3<mask_name>): Ditto.
3975 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
3976 (<shift_insn><mode>3<mask_name>): Ditto.
3977 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
3978 (avx512f_<rotate><mode><mask_name>): Ditto.
3979 (<code><mode>3<mask_name>/maxmin): Ditto.
3980 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
3981 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
3982 (*andnot<mode>3<mask_name>): Ditto.
3983 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
3984 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
3985 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
3986 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
3987 (vec_set_lo_<mode><mask_name>): Ditto.
3988 (vec_set_hi_<mode><mask_name>): Ditto.
3989 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
3990 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
3991 (avx512f_pshufd_1<mask_name>): Ditto.
3992 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
3993 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
3994 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
3995 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
3996 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
3997 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
3998 (avx512er_exp2<mode><mask_name>): Ditto.
3999 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
4000 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
4001 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
4002 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
4003 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
4004 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
4005 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
4006 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
4007 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
4008 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
4009 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
4010 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
4011 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
4012 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
4013 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
4014 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
4015 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
4016 (avx512f_getmant<mode><mask_name>): Ditto.
4017 (clz<mode>2<mask_name>): Ditto.
4018 (<mask_codefor>conflict<mode><mask_name>): Ditto.
4019 (*srcp14<mode>): Remove visibility.
4020 (*rsqrt14<mode>): Ditto.
4021 (*fma_fmsub_<mode>): Ditto.
4022 (*fma_fnmadd_<mode>): Ditto.
4023 (*avx512f_rndscale<mode>): Ditto.
4024 * config/i386/subst.md: New file.
4026 2013-11-13 Joseph Myers <joseph@codesourcery.com>
4028 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
4029 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
4030 (atomic_load_explicit, atomic_exchange_explicit)
4031 (atomic_compare_exchange_strong_explicit)
4032 (atomic_compare_exchange_weak_explicit): Use __auto_type to
4033 declare variable initialized with PTR argument.
4035 2013-11-12 Jeff Law <law@redhat.com>
4037 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
4038 backedge_seen_p. Set, use and pass it to children appropriately.
4039 (thread_through_normal_block): Similarly.
4040 (thread_across_edge): Similarly.
4042 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
4043 memory references as volatile.
4044 (insert_trap_and_remove_trailing_statements): Fix comment.
4046 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
4049 * ira-costs.c (record_operand_costs): Check operands number for
4052 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4055 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
4056 constraints that would allow DImode into the traditional Altivec
4057 registers, but cause undesirable code generation when loading 0 as
4059 (movdi_internal64): Likewise.
4060 (cmp<mode>_fpr): Do not use %x for CR register output.
4061 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
4062 -mallow-upper-sf debug switches are used.
4064 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
4066 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
4067 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
4068 Relocate prototypes from gimple.h.
4069 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
4070 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
4072 * gimple.h: Move some prototypes to gimplify.h.
4073 (gimple_predicate, enum fallback, enum gimplify_status): Move to
4075 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
4076 Relocate from gimpify.c.
4077 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
4078 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
4079 is_gimple_reg_rhs) Relocate from gimplify.c.
4080 * gimplify.c (mark_addressable): Move to gimple-expr.c.
4081 (gimple_seq_add_stmt_without_update): Move to gimple.c.
4082 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
4083 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
4084 is_gimple_reg_rhs): Move to gimple-expr.c.
4085 (should_carry_location_p): Move to gimple.c.
4086 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
4088 (annotate_one_with_location, annotate_all_with_location_after,
4089 annotate_all_with_location): Move to gimple.c.
4090 (compare_case_labels, sort_case_labels,
4091 preprocess_case_label_vec_for_gimple): Move to gimple.c.
4092 (rhs_predicate_for): Make static.
4093 (gimplify_assign): Relocate from gimple.c.
4094 * gimple.c (gimplify_assign): Move to gimplify.c.
4095 (gimple_seq_add_stmt_without_update, should_carry_location_p,
4096 annotate_one_with_location, annotate_all_with_location_after,
4097 annotate_all_with_location, compare_case_labels, sort_case_labels,
4098 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
4099 * tree.h (unshare_expr, unshare_expr_without_location,
4100 mark_addressable): Move prototypes to gimplify.h.
4101 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
4103 * asan.c: Include gimplify.h rather than gimple.h.
4104 * cfgloopmanip.c: Likewise.
4105 * cgraphunit.c: Likewise.
4106 * cilk-common.c: Likewise.
4107 * dwarf2out.c: Dont include gimple.h.
4108 * fold-const.c: Include gimplify.h rather than gimple.h.
4109 * function.c: Likewise.
4110 * gimple-fold.c: Likewise.
4111 * gimple-ssa-strength-reduction.c: Likewise.
4112 * graphite-clast-to-gimple.c: Likewise.
4113 * graphite-sese-to-poly.c: Likewise.
4114 * ipa-prop.c: Likewise.
4115 * ipa-split.c: Likewise.
4117 * langhooks.c: Dont include gimple.h.
4118 * loop-init.c: Include gimplify.h rather than gimple.h.
4119 * omp-low.c: Likewise.
4121 * stor-layout.c: Likewise.
4122 * targhooks.c: Likewise.
4123 * trans-mem.c: Likewise.
4124 * tree-affine.c: Likewise.
4125 * tree-cfg.c: Likewise.
4126 * tree-cfgcleanup.c: Likewise.
4127 * tree-complex.c: Likewise.
4128 * tree-if-conv.c: Likewise.
4129 * tree-inline.c: Likewise.
4130 * tree-iterator.c: Likewise.
4131 * tree-loop-distribution.c: Likewise.
4132 * tree-nested.c: Likewise.
4133 * tree-parloops.c: Likewise.
4134 * tree-predcom.c: Likewise.
4135 * tree-profile.c: Likewise.
4136 * tree-scalar-evolution.c: Likewise.
4137 * tree-sra.c: Likewise.
4138 * tree-ssa-address.c: Likewise.
4139 * tree-ssa-ccp.c: Likewise.
4140 * tree-ssa-dce.c: Likewise.
4141 * tree-ssa-forwprop.c: Likewise.
4142 * tree-ssa-ifcombine.c: Likewise.
4143 * tree-ssa-loop-im.c: Likewise.
4144 * tree-ssa-loop-ivopts.c: Likewise.
4145 * tree-ssa-loop-manip.c: Likewise.
4146 * tree-ssa-loop-niter.c: Likewise.
4147 * tree-ssa-loop-prefetch.c: Likewise.
4148 * tree-ssa-loop-unswitch.c: Likewise.
4149 * tree-ssa-math-opts.c: Likewise.
4150 * tree-ssa-phiopt.c: Likewise.
4151 * tree-ssa-phiprop.c: Likewise.
4152 * tree-ssa-pre.c: Likewise.
4153 * tree-ssa-propagate.c: Likewise.
4154 * tree-ssa-reassoc.c: Likewise.
4155 * tree-ssa-sccvn.c: Likewise.
4156 * tree-ssa-strlen.c: Likewise.
4157 * tree-ssa.c: Likewise.
4158 * tree-switch-conversio: Likewise.n.c
4159 * tree-tailcall.c: Likewise.
4160 * tree-vect-data-refs.c: Likewise.
4161 * tree-vect-generic.c: Likewise.
4162 * tree-vect-loop-manip.c: Likewise.
4163 * tree-vect-loop.c: Likewise.
4164 * tree-vect-patterns.c: Likewise.
4165 * tree-vect-stmts.c: Likewise.
4167 * value-prof.c: Likewise.
4168 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
4169 * config/alpha/alpha.c: Likewise.
4170 * config/darwin.c: Likewise.
4171 * config/i386/i386.c: Likewise.
4172 * config/ia64/ia64.c: Likewise.
4173 * config/mep/mep.c: Likewise.
4174 * config/mips/mips.c: Likewise.
4175 * config/rs6000/rs6000.c: Likewise.
4176 * config/s390/s390.c: Likewise.
4177 * config/sh/sh.c: Likewise.
4178 * config/sparc/sparc.c: Likewise.
4179 * config/spu/spu.c: Likewise.
4180 * config/stormy16/stormy16.c: Likewise.
4181 * config/tilegx/tilegx.c: Likewise.
4182 * config/tilepro/tilepro.c: Likewise.
4183 * config/xtensa/xtensa.c: Likewise.
4185 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
4187 * tree.c (grow_tree_vec_stat): New function ...
4188 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
4189 and macro front-end.
4191 2013-11-12 Marek Polacek <polacek@redhat.com>
4193 * final.c (update_alignments): Initialize label to NULL_RTX.
4195 2013-11-12 Jeff Law <law@redhat.com>
4197 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
4198 (insert_trap_and_remove_trailing_statements): New argument OP which
4199 is the NULL pointer. Emit the trap after the load/store through
4200 the NULL pointer. Simplify the RHS of a store through a NULL pointer
4201 when trivial to do so.
4202 (isolate_path): Corresponding changes.
4203 (gimple_ssa_isolate_erroneous_path): Likewise.
4205 2013-11-12 Teresa Johnson <tejohnson@google.com>
4206 Jan Hubicka <jh@suse.cz>
4208 * predict.c (drop_profile): New function.
4209 (handle_missing_profiles): Ditto.
4210 (counts_to_freqs): Don't overwrite estimated frequencies
4211 when function has no profile counts.
4212 * predict.h (handle_missing_profiles): Declare.
4213 * tree-inline.c (freqs_to_counts): New function.
4214 (copy_cfg_body): Invoke freqs_to_counts as needed.
4215 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
4217 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
4220 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
4222 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
4224 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
4227 * config/i386/i386.c (ix86_option_override_internal): Check
4228 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
4229 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
4230 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
4231 MASK_AVX256_SPLIT_UNALIGNED_STORE.
4233 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
4234 Clear m_COREI7_AVX and update comments.
4235 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
4237 2013-11-12 Martin Jambor <mjambor@suse.cz>
4239 PR rtl-optimization/10474
4240 * ira.c (interesting_dest_for_shprep): New function.
4241 (split_live_ranges_for_shrink_wrap): Likewise.
4242 (find_moveable_pseudos): Move calculation of dominance info,
4243 df_analysios and the final anlyses to...
4244 (ira): ...here, call split_live_ranges_for_shrink_wrap.
4246 2013-11-12 Bin Cheng <bin.cheng@arm.com>
4248 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
4249 Handle type conversion.
4251 2013-11-11 Martin Liska <marxin.liska@gmail.com>
4252 Jan Hubicka <jh@suse.cz>
4254 * cgraph.c (dump_cgraph_node): Profile dump added.
4255 * cgraph.h (struct cgraph_node): New time profile variable added.
4256 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
4257 * gcov-io.h (gcov_type): New profiler type introduced.
4258 * ipa-profile.c (lto_output_node): Streaming for time profile added.
4259 (input_node): Time profiler is read from LTO stream.
4260 * predict.c (maybe_hot_count_p): Hot prediction changed.
4261 * profile.c (instrument_values): New case for time profiler added.
4262 (compute_value_histograms): Read of time profile.
4263 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
4264 * tree-profile.c (init_ic_make_global_vars): Time profiler
4266 (gimple_init_edge_profiler): TP function instrumentation.
4267 (gimple_gen_time_profiler): New.
4268 * value-prof.c (gimple_add_histogram_value): Support for time profiler
4270 (dump_histogram_value): TP type added to dumps.
4271 (visit_hist): More sensitive check that takes TP into account.
4272 (gimple_find_values_to_profile): TP instrumentation.
4273 * value-prof.h (hist_type): New histogram type added.
4274 (struct histogram_value_t): Pointer to struct function added.
4275 * libgcc/Makefile.in: New GCOV merge function for TP added.
4276 * libgcov.c: function_counter variable introduced.
4277 (_gcov_merge_time_profile): New.
4278 (_gcov_time_profiler): New.
4280 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
4281 Jeff Law <law@redhat.com>
4283 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
4284 ao_ref_init_from_ptr_and_size for builtins.
4286 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
4287 H.J. Lu <hongjiu.lu@intel.com>
4290 * config/i386/x86-tune.def
4291 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
4292 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
4293 * config/i386/i386.h
4294 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
4295 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
4296 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
4297 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
4298 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
4299 misaligned_prologue_used. Check that
4300 desired_aling <= epilogue_size_needed.
4302 2013-11-11 Cong Hou <congh@google.com>
4304 PR tree-optimization/59050
4305 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
4307 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
4310 * expmed.c (emit_store_flag): Fail for const-const comparison.
4312 2013-11-11 Tristan Gingold <gingold@adacore.com>
4313 Eric Botcazou <ebotcazou@adacore.com>
4315 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
4316 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
4317 * tree.def (CONSTRUCTOR): Likewise.
4318 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
4319 * gimplify.c (gimplify_init_constructor): Do not clear the object when
4320 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
4322 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
4324 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
4327 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4329 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
4332 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
4334 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
4336 2013-11-08 Jeff Law <law@redhat.com>
4338 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
4339 threading paths first, then perform PHI node checks if applicable.
4341 2013-11-10 Karlson2k <k2k@narod.ru>
4342 Kai Tietz <ktietz@redhat.com>
4345 * configure.ac: Adding for exported symbols check
4346 and for rdynamic-check executable-extension.
4347 * configure: Regenerated.
4349 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
4351 * mode-switching.c (optimize_mode_switching): Mark block as
4352 nontransparent, if last_mode at block exit is different from no_mode.
4354 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4356 * function.c (NAME__MAIN): Move to...
4357 * cfgexpand.c (NAME__MAIN): ...here.
4359 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
4361 * target.def (can_use_doloop_p): New hook.
4362 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
4363 * doc/tm.texi: Regenerate.
4364 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
4365 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
4366 * hooks.c (hook_bool_dint_dint_uint_true): New function.
4367 * targhooks.h (can_use_doloop_if_innermost): Declare.
4368 * targhooks.c (can_use_doloop_if_innermost): New function.
4369 * target.h: Include double-int.h.
4370 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
4371 Remove iteration count, maximum iteration count, loop depth and
4372 enter-at-top inputs from doloop_begin and doloop_end.
4373 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
4375 * config/arc/arc.c (arc_can_use_doloop_p): New function.
4376 (TARGET_CAN_USE_DOLOOP_P): Define.
4377 * config/arm/thumb2.md (doloop_end): Update for new interface.
4378 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
4379 * config/bfin/bfin.md (doloop_end): Update for new interface.
4380 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
4381 (TARGET_CAN_USE_DOLOOP_P): Define.
4382 * config/c6x/c6x.md (doloop_end): Update for new interface.
4383 * config/ia64/ia64.md (doloop_end): Update for new interface.
4384 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
4385 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
4387 * config/mep/mep.c (mep_emit_doloop): Likewise.
4388 (TARGET_CAN_USE_DOLOOP_P): Define.
4389 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
4390 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
4391 * config/s390/s390.md (doloop_end): Update for new interface.
4392 * config/sh/sh.md (doloop_end): Likewise.
4393 * config/spu/spu.md (doloop_end): Likewise.
4394 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
4395 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
4396 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
4397 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
4398 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
4399 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
4401 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
4403 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
4406 * doc/extend.texi: Move Cilk Plus Builtins node before Other
4409 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
4410 Joseph Myers <joseph@codesourcery.com>
4412 * ginclude/stdatomic.h: New file.
4413 * Makefile.in (USER_H): Add stdatomic.h.
4415 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4417 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
4420 2013-11-08 Jeff Law <law@redhat.com>
4422 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
4423 * tree-ssa-threadupdate.c (delete_thread_path): New function.
4424 (ssa_redirect_edges, thread_block_1): Use it.
4425 (thread_through_loop_header, mark_threaded_blocks): Likewise.
4426 (thread_through_all_blocks, register_jump_thread): Likewise.
4427 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
4429 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
4431 * config/arm/aarch-common.c
4432 (search_term): New typedef.
4433 (shift_rtx_costs): New array.
4434 (arm_rtx_shift_left_p): New.
4435 (arm_find_sub_rtx_with_search_term): Likewise.
4436 (arm_find_sub_rtx_with_code): Likewise.
4437 (arm_early_load_addr_dep): Add sanity checking.
4438 (arm_no_early_alu_shift_dep): Likewise.
4439 (arm_no_early_alu_shift_value_dep): Likewise.
4440 (arm_no_early_mul_dep): Likewise.
4441 (arm_no_early_store_addr_dep): Likewise.
4443 2013-11-08 Richard Biener <rguenther@suse.de>
4445 PR tree-optimization/59047
4446 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
4448 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
4450 * common.opt (fcheck-pointer-bounds): Move to ...
4451 * c-family/c.opt: ... here.
4452 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
4453 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
4454 * langhooks.h (lang_hooks): Remove chkp_supported field.
4455 * toplev.c (process_options): Remove chkp_supported check.
4457 2013-11-08 Richard Biener <rguenther@suse.de>
4459 PR tree-optimization/59038
4460 PR tree-optimization/58955
4461 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
4462 previous change. Handle known dependences correctly.
4464 2013-11-08 Tom de Vries <tom@codesourcery.com>
4466 * config/rs6000/t-xilinx: Remove duplicate contents.
4468 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
4469 Joseph Myers <joseph@codesourcery.com>
4471 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
4472 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
4473 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
4474 (struct tree_base): Add atomic_flag field.
4475 * tree.h (TYPE_ATOMIC): New accessor macro.
4476 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
4477 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
4478 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
4479 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
4480 * tree.c (set_type_quals): Set TYPE_ATOMIC.
4481 (find_atomic_core_type): New function.
4482 (build_qualified_type): Adjust alignment for qualified types.
4483 (build_atomic_base): New function
4484 (build_common_tree_nodes): Build atomicQI_type_node,
4485 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
4487 * print-tree.c (print_node): Print atomic qualifier.
4488 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
4489 * target.def (atomic_assign_expand_fenv): New hook.
4490 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
4491 * doc/tm.texi: Regenerate.
4492 * targhooks.c (default_atomic_assign_expand_fenv): New function.
4493 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
4494 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
4495 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
4497 * config/i386/i386.c (enum ix86_builtins): Add
4498 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
4499 IX86_BUILTIN_FNCLEX.
4500 (bdesc_special_args): Add __builtin_ia32_fnstenv,
4501 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
4502 (ix86_expand_builtin): Handle the new built-in functions.
4503 (ix86_atomic_assign_expand_fenv): New function.
4504 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
4505 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
4506 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
4507 (fnstenv, fldenv, fnstsw, fnclex): New insns.
4509 2013-11-07 Steve Ellcey <sellcey@mips.com>
4511 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
4512 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
4513 (MULTILIB_DIRNAMES): Add fp64 directory.
4514 (MULTILIB_EXCEPTIONS): Add new exclusions.
4516 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
4518 * gimplify.c (gimple_regimplify_operands): Do not set
4520 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
4521 (rewrite_close_phi_out_of_ssa): Same.
4522 (rewrite_phi_out_of_ssa): Same.
4523 (rewrite_degenerate_phi): Same.
4524 (handle_scalar_deps_crossing_scop_limits): Same.
4525 * tree-if-conv.c (predicate_scalar_phi): Same.
4526 * tree-parloops.c (create_loads_for_reductions): Same.
4527 (create_final_loads_for_reduction): Same.
4528 (create_loads_and_stores_for_name): Same.
4529 (transform_to_exit_first_loop): Same.
4530 (create_parallel_loop): Same.
4531 * tree-ssa-loop-im.c
4532 (move_computations_dom_walker::before_dom_children): Same.
4533 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
4534 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
4535 * tree-ssa-propagate.c (substitute_and_fold): Same.
4536 * tree-vect-loop.c (vect_finalize_reduction): Same.
4537 * tree-vect-stmts.c (vectorizable_call): Same.
4539 2013-11-07 Mike Stump <mikestump@comcast.net>
4541 * config/pdp11/pdp11.c: Include dbxout.h.
4542 * config/picochip/picochip.c: Likewise.
4544 2013-11-07 Cong Hou <congh@google.com>
4546 PR tree-optimization/56764
4547 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4548 Combine alias checks if it is possible to amortize the runtime
4549 overhead. Return the number of alias checks after merging.
4550 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
4551 Use the function vect_create_cond_for_alias_checks () to check
4552 the number of alias checks.
4554 2013-11-07 Jeff Law <law@redhat.com>
4556 * varpool.c (ctor_for_folding): Fix typo in comment.
4558 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
4560 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
4561 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
4563 2013-11-07 Jeff Law <law@redhat.com>
4565 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
4567 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
4568 No longer check if we have __builtin_trap, assume it's available.
4570 2013-11-07 Diego Novillo <dnovillo@google.com>
4572 * attribs.c (lookup_scoped_attribute_spec): Make static.
4573 (get_attribute_namespace): Likewise.
4574 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
4575 (validate_arglist): Move earlier in the file. Make static.
4576 (expand_stack_restore): Move from stmt.c
4577 (expand_stack_save): Move from stmt.c
4578 (rewrite_call_expr_array): Move earlier in the file.
4579 (rewrite_call_expr_valist): Likewise.
4580 * cfgexpand.c: Include hard-reg-set.h before tree.h
4583 (expand_asm_loc): Move from stmt.c.
4584 (n_occurrences): Move from stmt.c.
4585 (check_operand_nalternatives): Move from stmt.c.
4586 (tree_conflicts_with_clobbers_p): Move from stmt.c.
4587 (expand_asm_operands): Move from stmt.c
4588 (expand_asm_stmt): Move from stmt.c
4589 (expand_computed_goto): Move from stmt.c
4590 (expand_goto): Move from stmt.c
4591 (expand_null_return_1): Move from stmt.c
4592 (expand_null_return): Move from stmt.c
4593 (expand_value_return): Move from stmt.c
4594 (expand_return): Move from stmt.c
4595 (expand_main_function): Move from function.c
4596 (stack_protect_prologue): Move from function.c
4597 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
4598 (build_function_decl_skip_args): Move from tree.c.
4599 * explow.c (tree_expr_size): Move from tree.c.
4600 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
4601 (fields_length): Move from tree.c.
4602 * fold-const.c (size_low_cst): Move from tree.c.
4603 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
4604 (tree_expr_nonzero_p): Make static. Move earlier in the file.
4605 (fold_build3_initializer_loc): Remove.
4606 (tree_invalid_nonnegative_warnv_p): Make static.
4607 * function.c (expand_main_function): Move to cfgexpand.c.
4608 (stack_protect_prologue): Move to cfgexpand.c.
4609 (set_insn_locations): Move earlier in the file.
4610 * gimple-fold.c: Include langhooks.h.
4611 (truth_type_for): Move from tree.c.
4612 * print-tree.c (print_vec_tree): Remove.
4613 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
4614 (expand_goto): Move to cfgexpand.c.
4615 (n_occurrences): Move to cfgexpand.c.
4616 (expand_asm_loc): Move to cfgexpand.c
4617 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
4618 (expand_asm_operands): Move to cfgexpand.c.
4619 (expand_asm_stmt): Move to cfgexpand.c.
4620 (check_operand_nalternatives): Move to cfgexpand.c
4621 (expand_null_return): Move to cfgexpand.c.
4622 (expand_value_return): Move to cfgexpand.c.
4623 (expand_null_return_1): Move to cfgexpand.c.
4624 (expand_return): Move to cfgexpand.c.
4625 (expand_stack_save): Move to builtins.c.
4626 (expand_stack_restore): Move to builtins.c
4627 * symtab.c: Include output.h.
4628 (decl_assembler_name_hash): Move from tree.c.
4629 (decl_assembler_name_equal): Move from tree.c.
4630 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
4631 * tree-eh.c (in_array_bounds_p): Move from tree.c.
4632 (range_in_array_bounds_p): Move from tree.c.
4633 * tree-object-size.c (fini_object_sizes): Make static.
4634 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
4635 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
4636 * tree.c (decl_assembler_name_equal): Move to symtab.c.
4637 (tree_expr_size): Move to explow.c.
4638 (decl_assembler_name_hash): Move to symtab.c.
4639 (real_twop): Remove.
4640 (tree_expr_size): Move to explow.c.
4641 (stabilize_reference_1): Move earlier in the file. Make static.
4642 (omp_remove_redundant_declare_simd_attrs): Remove.
4643 (simple_cst_list_equal): Move earlier in the file. Make static.
4644 (size_low_cst): Move to fold-const.c.
4645 (build_type_no_quals): Remove.
4646 (build_function_type_skip_args): Move to cgraphclones.c.
4647 (build_function_decl_skip_args): Move to cgraphclones.c.
4648 (in_array_bounds_p): Move to tree-eh.c.
4649 (range_in_array_bounds_p): Move to tree-eh.c.
4650 (truth_type_for): Move to gimple-fold.c.
4651 (list_equal_p): Remove.
4652 * tree.h (decl_assembler_name_equal): Remove.
4653 (decl_assembler_name_hash): Remove.
4654 (truth_type_for): Remove.
4655 (build_type_no_quals): Remove.
4656 (build_function_decl_skip_args): Remove.
4657 (in_array_bounds_p): Remove.
4658 (range_in_array_bounds_p): Remove.
4659 (size_low_cst): Remove.
4660 (omp_remove_redundant_declare_simd_attrs): Remove.
4661 (tree_expr_size): Remove.
4662 (fields_length): Remove.
4663 (stabilize_reference_1): Remove.
4664 (expand_goto): Remove.
4665 (expand_stack_save): Remove.
4666 (expand_stack_restore): Remove.
4667 (expand_return): Remove.
4668 (fold_build3_initializer_loc): Remove.
4669 (tree_expr_nonzero_p): Remove.
4670 (tree_invalid_nonnegative_warnv_p): Remove.
4671 (tree_expr_nonzero_warnv_p): Remove.
4672 (fold_builtin_snprintf_chk): Remove.
4673 (validate_arglist): Remove.
4674 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
4675 (simple_cst_list_equal): Remove.
4676 (real_twop): Remove.
4677 (expand_main_function): Remove.
4678 (stack_protect_prologue): Remove.
4679 (print_vec_tree): Remove.
4680 (lookup_scoped_attribute_spec): Remove.
4681 (get_attribute_namespace): Remove.
4682 (expand_computed_goto): Remove.
4683 (expand_asm_stmt): Remove.
4684 (list_equal_p): Remove.
4685 (ssa_name_nonnegative_p): Remove.
4686 (fini_object_sizes): Remove.
4687 (addr_expr_of_non_mem_decl_p): Remove.
4688 (is_tm_safe_or_pure): Move to trans-mem.c.
4689 (more_const_call_expr_args_p): Remove.
4690 (save_vtable_map_decl): Remove.
4692 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
4694 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
4695 linker plugins, too.
4697 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
4698 link to libgomp and its dependencies.
4699 * config/ia64/hpux.h (LIB_SPEC): Likewise.
4700 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4701 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4702 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
4704 2013-11-07 Jakub Jelinek <jakub@redhat.com>
4706 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
4707 (determine_value_range): Add loop argument. Use get_range_info to
4709 (bound_difference): Adjust caller.
4711 2013-11-07 Richard Biener <rguenther@suse.de>
4712 Jakub Jelinek <jakub@redhat.com>
4714 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
4715 latches from header PHI arguments from the latch edge.
4717 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
4720 * varasm.c (output_constant): Handle NULLPTR_TYPE.
4722 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
4724 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
4725 misaligned_prologue_used when it has been set.
4727 2013-11-07 Yury Gribov <y.gribov@samsung.com>
4728 Jakub Jelinek <jakub@redhat.com>
4731 * asan.c (get_mem_refs_of_builtin_call): Allow
4732 integer literals as addresses in instrumented builtins.
4734 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4736 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4737 Explain why plus_constant is not used.
4739 2013-11-07 Richard Biener <rguenther@suse.de>
4741 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
4742 (canonicalize_value): ... this. Also handle stripping of
4744 (get_value, set_lattice_value, get_value_for_expr): Adjust.
4745 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
4746 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
4748 2013-11-07 Richard Biener <rguenther@suse.de>
4750 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
4752 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
4755 * config/i386/i386.md (push peepholer/splitter): Use Pmode
4756 with stack_pointer_rtx.
4758 2013-11-07 Bin Cheng <bin.cheng@arm.com>
4760 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
4761 using operand_equal_p.
4763 2013-11-07 Bin Cheng <bin.cheng@arm.com>
4765 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
4766 * tree-affine.c (get_inner_reference_aff): Return base.
4767 * tree-affine.h (get_inner_reference_aff): Change prototype.
4769 2013-11-06 Tobias Burnus <burnus@net-b.de>
4771 * doc/invoke.texi (Wdate-time): Fix typo.
4773 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
4775 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
4776 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
4777 fp_arith_reg_operand instead of arith_reg_operand.
4779 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
4781 * config/sh/sh.md (adddi3): Remove empty constraints.
4782 Remove can_create_pseudo_p and arith_reg_operand check.
4783 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
4784 Split before reload.
4786 2013-11-06 Jeff Law <law@redhat.com>
4787 Tom Tromey <tromey@redhat.com>
4789 * gdbinit.in: Disable strict type checking.
4791 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
4793 * tree-pass.h (make_pass_live_range_shrinkage): New external.
4794 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
4795 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
4796 (rest_of_handle_live_range_shrinkage): Ditto
4797 (class pass_live_range_shrinkage): Ditto.
4798 (pass_data_live_range_shrinkage): Ditto.
4799 (make_pass_live_range_shrinkage): Ditto.
4800 * sched-int.h (initialize_live_range_shrinkage): New prototype.
4801 (finish_live_range_shrinkage): Ditto.
4802 * sched-deps.c (create_insn_reg_set): Make void return value.
4803 * passes.def: Add pass_live_range_shrinkage.
4804 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
4805 * haifa-sched.c (live_range_shrinkage_p): New.
4806 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
4808 (rank_for_schedule): Add code for pressure relief through live
4810 (schedule_insn): Print more debug info.
4811 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
4812 through live range shrinkage.
4813 * doc/invoke.texi (-flive-range-shrinkage): New.
4814 * common.opt (flive-range-shrinkage): New.
4816 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
4819 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
4820 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
4821 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
4822 RTXes that return in AVX256 register.
4824 2013-11-06 Richard Biener <rguenther@suse.de>
4826 PR tree-optimization/58653
4827 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
4828 (prepare_initializers_chain): Adjust.
4830 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
4832 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
4833 (gimple_in_transaction): Use bb_in_transaction.
4834 * basic-block.h (bb_in_transaction): Relocate here and rename.
4835 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
4837 2013-11-06 Richard Biener <rguenther@suse.de>
4839 * tree.c (drop_tree_overflow): New function.
4840 * tree.h (drop_tree_overflow): Declare.
4841 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
4842 * tree-vrp.c (range_int_cst_singleton_p): Use
4843 is_overflow_infinity instead of testing TREE_OVERFLOW.
4844 (extract_range_from_assert): Likewise.
4845 (zero_nonzero_bits_from_vr): Likewise.
4846 (extract_range_basic): Likewise.
4847 (register_new_assert_for): Use drop_tree_overflow.
4848 (vrp_visit_phi_node): Likewise.
4850 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
4852 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
4853 checking for leaf functions without dynamic stack allocation.
4854 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
4855 (ia64_expand_prologue): Likewise.
4856 * config/mips/mips.c (mips_expand_prologue): Likewise.
4857 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4858 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4859 (sparc_flat_expand_prologue): Likewise.
4861 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
4863 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
4864 (__ST3_LANE_FUNC): Likewise.
4865 (__ST4_LANE_FUNC): Likewise.
4867 2013-11-06 Nick Clifton <nickc@redhat.com>
4869 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
4870 name returned by msp430_mcu_name.
4871 (LIB_SPEC): If a -T option has not been specified then set a
4872 default, mcu-specific, linker script.
4873 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
4874 * config/msp430/msp430.c (msp430x_names): Likewise.
4875 Alpha sort the names for ease of comparison.
4876 (msp430_mcu_name): New function: Returns a string suitable for
4877 use as a C preprocessor symbol based upon the name of the MCU
4879 (msp430_option_override): Accept msp430x and msp430xv2 as generic
4881 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
4883 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
4884 unless it is the last part of a spec substring.
4885 * doc/invoke.texi (Spec Files): Document space insertion
4888 2013-11-06 Christian Bruel <christian.bruel@st.com>
4890 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
4891 Factorize probabilities, Use adjust_address instead of
4892 adjust_automodify_address when possible. Enable for optimize.
4893 (sh_expand_strlen): New function.
4894 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
4895 * config/sh/sh.md (strlensi): New pattern.
4896 (UNSPEC_BUILTIN_STRLEN): Define.
4898 2013-11-06 Jakub Jelinek <jakub@redhat.com>
4901 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
4902 (expand_assignment): If *bitpos is negative, set *offset
4903 and adjust *bitpos, so that it is not negative.
4905 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4907 * config/i386/bdver3.md : Added two additional decoder units
4908 to support issue rate of 4 and remodeled vector unit.
4909 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
4910 architectures is set to 4.
4911 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
4912 lookahead is set to 4 for BD architectures.
4914 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4916 * config/rs6000/rs6000.c (rs6000_option_override_internal):
4917 Remove restriction against use of VSX instructions when generating
4918 code for little endian mode.
4920 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4922 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
4923 for both big and little endian.
4924 (mulv8hi3): Swap input operands for merge high and merge low
4925 instructions for little endian.
4927 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4929 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
4930 define_insn to define_expand that uses even patterns for big
4931 endian and odd patterns for little endian.
4932 (vec_widen_smult_even_v16qi): Likewise.
4933 (vec_widen_umult_even_v8hi): Likewise.
4934 (vec_widen_smult_even_v8hi): Likewise.
4935 (vec_widen_umult_odd_v16qi): Likewise.
4936 (vec_widen_smult_odd_v16qi): Likewise.
4937 (vec_widen_umult_odd_v8hi): Likewise.
4938 (vec_widen_smult_odd_v8hi): Likewise.
4939 (altivec_vmuleub): New define_insn.
4940 (altivec_vmuloub): Likewise.
4941 (altivec_vmulesb): Likewise.
4942 (altivec_vmulosb): Likewise.
4943 (altivec_vmuleuh): Likewise.
4944 (altivec_vmulouh): Likewise.
4945 (altivec_vmulesh): Likewise.
4946 (altivec_vmulosh): Likewise.
4948 2013-11-05 Mike Stump <mikestump@comcast.net>
4950 * Makefile.in (mostlyclean): Remove c-family objects.
4952 2013-11-05 Ian Lance Taylor <iant@google.com>
4954 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
4955 If possible, add .cfi directives to record change to bx.
4956 * config/i386/i386.c (ix86_emit_cfi): New function.
4957 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
4959 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
4961 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
4962 immediately after a label for a tablejump pattern.
4964 * config/arm/arm.c (is_jump_table): Remove.
4965 (create_fix_barrier): Use tablejump_p instead.
4966 (arm_reorg): Likewise.
4967 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
4968 (thumb2_output_casesi): Likewise.
4969 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
4970 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
4971 casesi_shift_media, casesi_load_media): Likewise.
4972 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
4973 * config/microblaze/microblaze.md: Likewise.
4975 2013-11-05 Tobias Burnus <burnus@net-b.de>
4977 * doc/invoke.texi (-Wdate-time): Document.
4979 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
4981 * double-int.c (lshift_double, rshift_double): Remove
4982 SHIFT_COUNT_TRUNCATED handling.
4984 2013-11-05 Jeff Law <law@redhat.com>
4986 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
4987 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
4988 * gimple-ssa-isolate-paths.c: New file.
4989 * gimple.c (check_loadstore): New function.
4990 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
4991 Verify OP is in the argument list and the argument corresponding
4992 to OP is a pointer type. Use operand_equal_p rather than
4993 pointer equality when testing if OP is on the nonnull list.
4994 Use check_loadstore rather than count_ptr_derefs. Handle
4995 GIMPLE_RETURN statements.
4996 * tree-vrp.c (infer_nonnull_range): Remove.
4997 * gimple.h (infer_nonnull_range): Declare.
4998 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
4999 * passes.def: Add pass_isolate_erroneous_paths.
5000 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
5001 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
5002 * tree-ssa.c (struct count_ptr_d): Remove.
5003 (count_ptr_derefs, count_uses_and_derefs): Remove.
5004 * tree-ssa.h (count_uses_and_derefs): Remove.
5006 2013-11-05 Jakub Jelinek <jakub@redhat.com>
5008 PR rtl-optimization/58997
5009 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
5010 get_iv_value to be in iv->mode rather than iv->extend_mode.
5011 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
5012 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
5013 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
5016 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
5018 * gimple.h: Move some prototypes to gimple-expr.h and add to include
5020 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
5021 Move to gimple-expr.h.
5022 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
5023 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
5024 is_gimple_id, virtual_operand_p, is_gimple_addressable,
5025 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
5027 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
5028 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
5029 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
5030 is_gimple_address, is_gimple_invariant_address,
5031 is_gimple_ip_invariant_address, is_gimple_min_invariant,
5032 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
5033 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
5034 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
5035 gimple_decl_printable_name, useless_type_conversion_p,
5036 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
5038 * gimple-expr.c: New File.
5039 (useless_type_conversion_p, gimple_set_body, gimple_body,
5040 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
5041 gimple_can_coalesce_p, extract_ops_from_tree_1,
5042 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
5043 is_gimple_address, is_gimple_invariant_address,
5044 is_gimple_ip_invariant_address, is_gimple_min_invariant,
5045 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
5046 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
5047 is_gimple_mem_ref_addr): Relocate here.
5048 * Makefile.in (OBJS): Add gimple-expr.o.
5050 2013-11-05 David Malcolm <dmalcolm@redhat.com>
5052 * gengtype-parse.c (struct_field_seq): Support empty structs.
5054 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
5056 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
5058 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
5060 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
5062 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
5064 (LONG_DOUBLE_TYPE_SIZE): New define.
5065 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
5067 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
5070 * doc/extend.texi [visibility ("visibility_type")]: Add example
5071 about visibility attribute on namespace declaration.
5073 2013-11-05 Richard Biener <rguenther@suse.de>
5076 * passes.def (all_passes): Start with pass_fixup_cfg again.
5078 2013-11-05 Richard Biener <rguenther@suse.de>
5080 PR tree-optimization/58955
5081 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
5084 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5086 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
5088 (vec_pack_ufix_trunc_v2df): Likewise.
5090 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
5093 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
5094 pattern, instead of word_mode.
5096 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
5098 (set_storage_via_setmem): Likewise.
5100 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
5102 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
5103 gimple.h and the rest of the condition in eliminate_build.
5104 (eliminate_build): Call new routine.
5105 * gimple.h (phi_ssa_name_p): Delete.
5107 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
5109 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
5110 case of no prefix and reserving zero slots, because when that's the
5111 case we'll never get here.
5112 * vec.h (va_heap::reserve): Don't try and handle
5113 vec_prefix::calculate_allocation returning zero because that should
5116 2013-11-05 Richard Biener <rguenther@suse.de>
5119 * tree-dfa.c (get_ref_base_and_extent): Merge common code
5120 in MEM_REF and TARGET_MEM_REF handling. Make sure to
5121 process trailing array detection before diving into the
5122 view-converted object (and possibly apply some extra offset).
5124 2013-11-05 Joseph Myers <joseph@codesourcery.com>
5126 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
5128 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
5130 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
5132 PR tree-optimization/58958
5133 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
5134 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
5136 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
5138 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
5139 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
5141 2013-11-05 Jakub Jelinek <jakub@redhat.com>
5143 PR tree-optimization/58984
5144 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
5145 set *SIZE_P if non-NULL on success.
5146 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
5148 (ipcp_transform_function): Likewise. Punt if size of access
5149 is different from TYPE_SIZE on v->value's type.
5151 2013-11-05 Tobias Burnus <burnus@net-b.de>
5153 * doc/invoke.texi (-fopenmp-simd): Document new option.
5154 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
5155 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
5156 * tree.c (attribute_value_equal): Ditto.
5158 2013-11-04 Wei Mi <wmi@google.com>
5160 * sched-rgn.c (add_branch_dependences): Keep insns in
5161 a SCHED_GROUP at the end of BB to remain their location.
5163 2013-11-04 Wei Mi <wmi@google.com>
5165 * config/i386/i386.c (memory_address_length): Extract a part
5166 of code to rip_relative_addr_p.
5167 (rip_relative_addr_p): New Function.
5168 (ix86_macro_fusion_p): Ditto.
5169 (ix86_macro_fusion_pair_p): Ditto.
5170 * config/i386/i386.h: Add new tune features about macro-fusion.
5171 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5172 * doc/tm.texi: Generated.
5173 * doc/tm.texi.in: Ditto.
5174 * haifa-sched.c (try_group_insn): New Function.
5175 (group_insns_for_macro_fusion): Ditto.
5176 (sched_init): Call group_insns_for_macro_fusion.
5177 * target.def: Add two hooks: macro_fusion_p and
5178 macro_fusion_pair_p.
5180 2013-11-04 Kostya Serebryany <kcc@google.com>
5182 Update to match the changed asan API.
5183 * asan.c (asan_function_start): New function.
5184 (asan_emit_stack_protection): Update the string stored in the
5185 stack red zone to match new API. Store the PC of the current
5186 function in the red zone.
5187 (asan_global_struct): Update the __asan_global definition to match
5189 (asan_add_global): Ditto.
5190 * asan.h (asan_function_start): New prototype.
5191 * final.c (final_start_function): Call asan_function_start.
5192 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
5195 2013-11-04 Wei Mi <wmi@google.com>
5197 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
5198 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
5199 * config/i386/i386.c (ix86_option_override_internal): Ditto.
5200 (ix86_issue_rate): Ditto.
5201 (ix86_adjust_cost): Ditto.
5202 (ia32_multipass_dfa_lookahead): Ditto.
5203 (ix86_sched_init_global): Ditto.
5204 (get_builtin_code_for_version): Ditto.
5205 * config/i386/i386.h (enum target_cpu_default): Ditto.
5206 (enum processor_type): Ditto.
5207 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
5209 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
5211 PR rtl-optimization/58967
5212 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
5213 !lra_in_progress for mode sizes bigger word.
5215 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5217 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
5218 arguments to merge instruction for little endian.
5219 (vec_widen_umult_lo_v16qi): Likewise.
5220 (vec_widen_smult_hi_v16qi): Likewise.
5221 (vec_widen_smult_lo_v16qi): Likewise.
5222 (vec_widen_umult_hi_v8hi): Likewise.
5223 (vec_widen_umult_lo_v8hi): Likewise.
5224 (vec_widen_smult_hi_v8hi): Likewise.
5225 (vec_widen_smult_lo_v8hi): Likewise.
5227 2013-11-04 Ian Lance Taylor <iant@google.com>
5229 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
5230 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
5231 builtins that take pointers.
5232 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
5233 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
5234 (run_gcc): Pass -fnon-call-exceptions.
5236 2013-11-04 Jakub Jelinek <jakub@redhat.com>
5238 * optabs.c (expand_vec_perm): Revert one incorrect line from
5241 PR tree-optimization/58978
5242 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
5243 use_stmt by single_imm_use directly. Only call single_imm_use
5246 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
5248 PR rtl-optimization/58968
5249 * lra-spills.c (return_regno_p): New function.
5250 (lra_final_code_change): Use it.
5252 2013-11-04 Joseph Myers <joseph@codesourcery.com>
5254 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
5255 * target.def (float_exceptions_rounding_supported_p): New hook.
5256 * targhooks.c (default_float_exceptions_rounding_supported_p): New
5258 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
5259 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
5261 * doc/tm.texi: Regenerate.
5262 * config.gcc (powerpc*-*-linux*): Set extra_objs.
5263 * config/rs6000/rs6000-linux.c: New file.
5264 * config/rs6000/rs6000-protos.h
5265 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
5266 * config/rs6000/linux.h
5267 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
5268 * config/rs6000/linux64.h
5269 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
5270 * config/rs6000/t-linux (rs6000-linux.o): New rule.
5271 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
5273 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5275 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
5276 Replace the define_insn_and_split with a define_insn and two
5277 define_splits, with the split after reload re-permuting the source
5278 register to its original value.
5279 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
5280 (*vsx_le_perm_store_v8hi): Likewise.
5281 (*vsx_le_perm_store_v16qi): Likewise.
5283 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5285 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
5288 2013-11-04 Jakub Jelinek <jakub@redhat.com>
5290 PR tree-optimization/58946
5291 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
5292 bbs with bbinfo[idx].op != NULL before all blocks with
5293 bbinfo[idx].op == NULL.
5295 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
5297 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
5298 (avr_dump_double_int_hex): Likewise.
5299 (avr_log_vadump): Remove %D and %X handling.
5300 * config/avr/avr.c (avr_double_int_push_digit): Delete.
5301 (avr_map_op_t): Change map from double_int to unsigned int.
5302 (avr_map_op): Update accordingly.
5303 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
5304 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
5305 unsigned ints rather than double_ints.
5307 2013-11-03 Marek Polacek <polacek@redhat.com>
5309 Implement -fsanitize=vla-bound.
5310 * opts.c (common_handle_option): Handle vla-bound.
5311 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
5312 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
5313 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
5315 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
5317 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
5320 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
5322 * config/i386/constraints.md (Ts, Tv): New address constrains.
5323 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
5324 constraint for address_no_seg_operand.
5325 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
5326 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
5327 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
5328 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
5329 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
5330 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
5331 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
5332 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
5333 constraint for vsib_address_operand.
5335 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
5337 * gcse.c (pre_delete): Remove references to regmove from comments.
5338 * recog.c: (validate_replace_rtx_1): Likewise.
5339 * config/rl78/rl78.c: Likewise.
5340 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
5341 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
5342 * common/config/mmix/mmix-common.c: Likewise.
5344 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
5346 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
5347 * gimplify.c (gimplify_compound_lval): Likewise.
5348 * graphite-clast-to-gimple.c (gloog): Likewise.
5349 * graphite-dependences.c (loop_is_parallel_p): Likewise.
5350 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
5351 (limit_scop); Likewise.
5352 (build_scops): Likewise.
5353 (dot_scop): Likewise.
5354 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
5355 (build_scop_drs): Likewise.
5356 (insert_stmts): Likewise.
5357 (insert_out_of_ssa_copy): Likewise.
5358 (remove_phi): Likewise.
5359 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
5360 * hw-doloop.c (discover_loop): Likewise.
5361 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
5362 * tree-dfa.c (dump_enumerated_decls): Likewise.
5363 * tree-if-conv.c (if_convertable_loop_p): Likewise.
5364 * tree-inline.c (tree_function_versioning): Likewise.
5365 * tree-loop-distribution.c (build_rdg): Likewise.
5366 (rdg_flag_vertex_and_dependent): Likewise.
5367 (distribute_loop): Likewise.
5368 * tree-parloops.c (loop_parallel_p): Likewise.
5369 (eliminate_local_variables): Likewise.
5370 (separate_decls_in_region): Likewise.
5371 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
5372 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
5373 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
5374 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
5375 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
5376 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
5377 (vectorizable_condition): Likewise.
5379 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
5381 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
5382 * configure: Regenerate.
5383 * config/i386/i386.md (*movdi_internal): Change
5384 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
5385 (*movdf_internal): Ditto.
5386 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
5387 * config/i386/sse.md (vec_concatv2di): Output interunit movq
5388 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
5390 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
5392 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
5395 2013-10-31 David Malcolm <dmalcolm@redhat.com>
5397 Automated part of renaming of symtab_node_base to symtab_node.
5399 Patch autogenerated by rename_symtab.py from
5400 https://github.com/davidmalcolm/gcc-refactoring-scripts
5401 revision 58bb219cc090b2f4516a9297d868c245495ee622
5402 with ChangeLog entry fixed up by hand.
5404 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
5406 (cgraph_node_for_asm): Likewise.
5407 * cgraph.h (symtab_node_base): Likewise.
5408 (cgraph_node): Likewise.
5409 (varpool_node): Likewise.
5410 (is_a_helper <cgraph_node>::test): Likewise.
5411 (is_a_helper <varpool_node>::test): Likewise.
5412 (symtab_nodes): Likewise.
5413 (symtab_register_node): Likewise.
5414 (symtab_unregister_node): Likewise.
5415 (symtab_remove_node): Likewise.
5416 (symtab_get_node): Likewise.
5417 (symtab_node_for_asm): Likewise.
5418 (symtab_node_asm_name): Likewise.
5419 (symtab_node_name): Likewise.
5420 (symtab_insert_node_to_hashtable): Likewise.
5421 (symtab_add_to_same_comdat_group): Likewise.
5422 (symtab_dissolve_same_comdat_group_list): Likewise.
5423 (dump_symtab_node): Likewise.
5424 (debug_symtab_node): Likewise.
5425 (dump_symtab_base): Likewise.
5426 (verify_symtab_node): Likewise.
5427 (verify_symtab_base): Likewise.
5428 (symtab_used_from_object_file_p): Likewise.
5429 (symtab_alias_ultimate_target): Likewise.
5430 (symtab_resolve_alias): Likewise.
5431 (fixup_same_cpp_alias_visibility): Likewise.
5432 (symtab_for_node_and_aliases): Likewise.
5433 (symtab_nonoverwritable_alias): Likewise.
5434 (availability symtab_node_availability): Likewise.
5435 (symtab_semantically_equivalent_p): Likewise.
5436 (fixup_same_cpp_alias_visibility): Likewise.
5437 (symtab_prevail_in_asm_name_hash): Likewise.
5439 (varpool): Likewise.
5440 (varpool_first_variable): Likewise.
5441 (varpool_next_variable): Likewise.
5442 (varpool_first_static_initializer): Likewise.
5443 (varpool_next_static_initializer): Likewise.
5444 (varpool_first_defined_variable): Likewise.
5445 (varpool_next_defined_variable): Likewise.
5446 (cgraph_first_defined_function): Likewise.
5447 (cgraph_next_defined_function): Likewise.
5448 (cgraph_first_function): Likewise.
5449 (cgraph_next_function): Likewise.
5450 (cgraph_first_function_with_gimple_body): Likewise.
5451 (cgraph_next_function_with_gimple_body): Likewise.
5452 (symtab_alias_target): Likewise.
5453 (symtab_real_symbol_p): Likewise.
5454 (symtab_can_be_discarded): Likewise.
5455 * cgraphbuild.c (mark_address): Likewise.
5456 (mark_load): Likewise.
5457 (mark_store): Likewise.
5458 * cgraphunit.c (decide_is_symbol_needed): Likewise.
5460 (enqueue_node): Likewise.
5461 (referred_to_p): Likewise.
5462 (cgraph_process_same_body_aliases): Likewise.
5463 (analyze_functions): Likewise.
5464 (handle_alias_pairs): Likewise.
5465 (output_weakrefs): Likewise.
5466 (compile): Likewise.
5467 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
5468 * ipa-inline-analysis.c (inline_write_summary): Likewise.
5469 * ipa-prop.c (remove_described_reference): Likewise.
5470 (try_decrement_rdesc_refcount): Likewise.
5471 (ipa_edge_duplication_hook): Likewise.
5472 * ipa-ref.c (ipa_record_reference): Likewise.
5473 (ipa_maybe_record_reference): Likewise.
5474 (ipa_clone_ref): Likewise.
5475 (ipa_clone_references): Likewise.
5476 (ipa_clone_referring): Likewise.
5477 (ipa_find_reference): Likewise.
5478 (ipa_remove_stmt_references): Likewise.
5479 (ipa_clear_stmts_in_references): Likewise.
5480 * ipa-ref.h (symtab_node_base): Likewise.
5481 (ipa_ref): Likewise.
5482 (ipa_record_reference): Likewise.
5483 (ipa_maybe_record_reference): Likewise.
5484 (ipa_clone_references): Likewise.
5485 (ipa_clone_referring): Likewise.
5486 (ipa_clone_ref): Likewise.
5487 (ipa_find_reference): Likewise.
5488 (ipa_remove_stmt_references): Likewise.
5489 (ipa_clear_stmts_in_references): Likewise.
5490 * ipa-reference.c (ipa_reference_write_optimization_summary):
5492 * ipa.c (enqueue_node): Likewise.
5493 (process_references): Likewise.
5494 (walk_polymorphic_call_targets): Likewise.
5495 (symtab_remove_unreachable_nodes): Likewise.
5496 (address_taken_from_non_vtable_p): Likewise.
5497 (comdat_can_be_unshared_p_1): Likewise.
5498 (comdat_can_be_unshared_p): Likewise.
5499 (can_replace_by_local_alias): Likewise.
5500 (function_and_variable_visibility): Likewise.
5501 * is-a.h: Likewise (within example in comment).
5502 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
5503 (lto_symtab_encoder_encode): Likewise.
5504 (lto_symtab_encoder_delete_node): Likewise.
5505 (lto_symtab_encoder_in_partition_p): Likewise.
5506 (lto_set_symtab_encoder_in_partition): Likewise.
5507 (output_refs): Likewise.
5508 (compute_ltrans_boundary): Likewise.
5509 (output_symtab): Likewise.
5510 (input_node): Likewise.
5511 (input_ref): Likewise.
5512 (input_edge): Likewise.
5513 (input_cgraph_1): Likewise.
5514 (input_refs): Likewise.
5515 (output_cgraph_opt_summary): Likewise.
5516 (input_node_opt_summary): Likewise.
5517 (input_cgraph_opt_section): Likewise.
5518 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
5520 * lto-streamer-out.c (lto_output): Likewise.
5521 (output_symbol_p): Likewise.
5522 (produce_symtab): Likewise.
5523 * lto-streamer.h (lto_encoder_entry): Likewise.
5524 (lto_free_function_in_decl_state_for_node): Likewise.
5525 (lto_symtab_encoder_encode): Likewise.
5526 (lto_symtab_encoder_delete_node): Likewise.
5527 (lto_symtab_encoder_in_partition_p): Likewise.
5528 (lto_set_symtab_encoder_in_partition): Likewise.
5529 (lto_symtab_encoder_lookup): Likewise.
5530 (lsei_node): Likewise.
5531 (lto_symtab_encoder_deref): Likewise.
5532 * symtab.c (symtab_hash): Likewise.
5533 (assembler_name_hash): Likewise.
5534 (symtab_nodes): Likewise.
5535 (hash_node): Likewise.
5536 (eq_node): Likewise.
5537 (hash_node_by_assembler_name): Likewise.
5538 (eq_assembler_name): Likewise.
5539 (insert_to_assembler_name_hash): Likewise.
5540 (unlink_from_assembler_name_hash): Likewise.
5541 (symtab_prevail_in_asm_name_hash): Likewise.
5542 (symtab_register_node): Likewise.
5543 (symtab_insert_node_to_hashtable): Likewise.
5544 (symtab_unregister_node): Likewise.
5545 (symtab_get_node): Likewise.
5546 (symtab_remove_node): Likewise.
5547 (symtab_initialize_asm_name_hash): Likewise.
5548 (symtab_node_for_asm): Likewise.
5549 (symtab_add_to_same_comdat_group): Likewise.
5550 (symtab_dissolve_same_comdat_group_list): Likewise.
5551 (symtab_node_asm_name): Likewise.
5552 (symtab_node_name): Likewise.
5553 (dump_symtab_base): Likewise.
5554 (dump_symtab_node): Likewise.
5555 (dump_symtab): Likewise.
5556 (debug_symtab_node): Likewise.
5557 (verify_symtab_base): Likewise.
5558 (verify_symtab_node): Likewise.
5559 (verify_symtab): Likewise.
5560 (symtab_used_from_object_file_p): Likewise.
5561 (symtab_node_availability): Likewise.
5562 (symtab_alias_ultimate_target): Likewise.
5563 (fixup_same_cpp_alias_visibility): Likewise.
5564 (symtab_resolve_alias): Likewise.
5565 (symtab_for_node_and_aliases): Likewise.
5566 (symtab_for_node_and_aliases): Likewise.
5567 (symtab_nonoverwritable_alias_1): Likewise.
5568 (symtab_nonoverwritable_alias): Likewise.
5569 (symtab_semantically_equivalent_p): Likewise.
5570 * value-prof.c (init_node_map): Likewise.
5571 * varasm.c (find_decl): Likewise.
5572 * varpool.c (varpool_node_for_asm): Likewise.
5573 (varpool_remove_unreferenced_decls): Likewise.
5575 2013-10-31 David Malcolm <dmalcolm@redhat.com>
5577 Manual part of renaming of symtab_node_base to symtab_node.
5579 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
5580 clashes with the preferred name for the base class.
5581 (const_symtab_node): Remove redundant typedef.
5583 2013-10-31 Jakub Jelinek <jakub@redhat.com>
5585 * optabs.c (expand_vec_perm): Avoid vector mode punning
5586 SUBREGs in SET_DEST.
5587 * expmed.c (store_bit_field_1): Likewise.
5588 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
5589 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
5590 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
5591 * config/i386/i386.c (ix86_expand_vector_move_misalign,
5592 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
5593 ix86_expand_sse_unpack, ix86_expand_args_builtin,
5594 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
5595 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
5596 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
5597 expand_vec_perm_vpshufb2_vpermq,
5598 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
5599 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
5600 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
5601 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
5604 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
5606 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
5607 Use gcc_unreachable for unhandled modes. Do not check results of
5608 expand_simple_binop. If not expanded to target, move the result.
5610 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
5611 Shiva Chen <shiva0217@gmail.com>
5613 * config.gcc (nds32*-*-*): Add nds32 target.
5614 * config/nds32/nds32.c: New file.
5615 * config/nds32/nds32.h: New file.
5616 * config/nds32/nds32.md: New file.
5617 * config/nds32/constants.md: New file.
5618 * config/nds32/constraints.md: New file.
5619 * config/nds32/iterators.md: New file.
5620 * config/nds32/nds32-doubleword.md: New file.
5621 * config/nds32/nds32-intrinsic.md: New file.
5622 * config/nds32/nds32_intrinsic.h: New file.
5623 * config/nds32/nds32-modes.def: New file.
5624 * config/nds32/nds32-multiple.md: New file.
5625 * config/nds32/nds32.opt: New file.
5626 * config/nds32/nds32-opts.h: New file.
5627 * config/nds32/nds32-protos.h: New file.
5628 * config/nds32/nds32-peephole2.md: New file.
5629 * config/nds32/pipelines.md: New file.
5630 * config/nds32/predicates.md: New file.
5631 * config/nds32/t-mlibs: New file.
5632 * common/config/nds32: New directory and files.
5634 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
5635 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
5636 * doc/install.texi (Cross-Compiler-Specific Options): Document
5637 --with-nds32-lib for nds32 target.
5638 * doc/extend.texi (Function Attributes, Target Builtins): Document
5639 nds32 specific attributes.
5641 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
5643 * lra-constraints (process_alt_operands): Use the result
5644 elimination register for operand when matching constraints.
5646 2013-10-31 Jakub Jelinek <jakub@redhat.com>
5648 * tree-vrp.c (maybe_set_nonzero_bits): New function.
5649 (remove_range_assertions): Call it.
5651 * tree.c (tree_ctz): New function.
5652 * tree.h (tree_ctz): New prototype.
5653 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
5654 first argument from tree to const_tree.
5655 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
5656 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
5657 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
5659 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
5660 * tree-vect-loop.c (vect_analyze_loop_operations,
5661 vect_transform_loop): Don't force scalar loop for bound just because
5662 number of iterations is unknown, only do it if it is not known to be
5663 a multiple of vectorization_factor.
5664 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
5666 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
5667 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
5668 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
5669 (set_nonzero_bits, get_nonzero_bits): New prototypes.
5670 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
5671 a default def isn't partially constant.
5672 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
5673 is known to be partially zero.
5674 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
5675 to see if a default def isn't partially constant.
5676 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
5677 creation of a range, if VR_RANGE, try to improve nonzero_bits from
5679 (set_nonzero_bits, get_nonzero_bits): New functions.
5681 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
5682 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
5683 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
5684 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
5685 uses but in the condition and ASSERT_EXPR and the other successor of
5686 the predecessor bb is __builtin_unreachable (), set_range_info of the
5687 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
5689 2013-10-31 Martin Jambor <mjambor@suse.cz>
5691 PR rtl-optimization/58934
5693 2013-10-30 Martin Jambor <mjambor@suse.cz>
5694 PR rtl-optimization/10474
5695 * ira.c (find_moveable_pseudos): Do not calculate dominance info
5697 (interesting_dest_for_shprep): New function.
5698 (split_live_ranges_for_shrink_wrap): Likewise.
5699 (ira): Calculate dominance info and df analysis. Call
5700 split_live_ranges_for_shrink_wrap.
5702 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5703 Yury Gribov <y.gribov@samsung.com>
5706 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
5707 shadow pointer to avoid clobbering the main one.
5709 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5711 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
5713 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
5716 * ira-color.c (update_costs_from_copies): Add new parameter. Use
5717 it for calling update_costs_from_allocno.
5718 (assign_hard_reg): Call restore_costs_from_copies only for
5719 !retry_p. Pass new argument to update_costs_from_copies.
5720 (color_pass): Pass new argument to update_costs_from_copies.
5721 (ira_mark_allocation_change): Ditto.
5723 2013-10-30 Sharad Singhai <singhai@google.com>
5726 * opts.c (common_handle_option): Remove deprecated option
5727 -ftree-vectorizer-verbose.
5728 * doc/invoke.texi (Debugging Options): Ditto.
5729 * opts-global.c (handle_common_deferred_options): Ditto.
5730 (dump_remap_tree_vectorizer_verbose): Delete.
5731 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
5733 2013-10-30 DJ Delorie <dj@redhat.com>
5735 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
5736 that take no arguments.
5738 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
5741 * reload1.c (update_eliminables_and_spill): New function, broken
5743 (reload): Use it. Check for frame size change after frame size
5744 alignment, and call update_eliminables_and_spill first if continue-ing.
5746 2013-10-30 Cong Hou <congh@google.com>
5749 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
5750 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
5751 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
5753 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
5755 PR rtl-optimization/58369
5756 * reload1.c (compute_reload_subreg_offset): New function.
5757 (choose_reload_regs): Use it to pass endian-correct
5758 offset to subreg_regno_offset.
5760 2013-10-30 Tobias Burnus <burnus@net-b.de>
5763 * tree-cfg.c (replace_loop_annotate): Replace warning by
5766 2013-10-30 Jason Merrill <jason@redhat.com>
5768 * configure.ac (loose_warn): Add -Wno-format if
5769 --disable-build-format-warnings.
5771 2013-10-30 David Malcolm <dmalcolm@redhat.com>
5773 * cgraphunit.c (analyze_functions): Split symtab_node declarations
5774 onto multiple lines to make things easier for rename_symtab.py.
5776 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
5777 (symtab_semantically_equivalent_p): Likewise.
5779 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
5782 * lra.c (check_rtl): Remove address check before LRA work.
5784 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
5786 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
5787 POINTER_PLUS_EXPR in the defining statement.
5789 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
5791 * regmove.c: Remove.
5792 * tree-pass.h (make_pass_regmove): Remove.
5793 * timevar.def (TV_REGMOVE): Remove.
5794 * passes.def (pass_regmove): Remove.
5795 * opts.c (default_options_table): Remove entry for regmove.
5796 * doc/passes.texi: Remove regmove pass description.
5797 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
5799 (-fdump-rtl-regmove): Ditto.
5800 * common.opt (foptimize-register-move, fregmove): Ignore.
5801 * Makefile.in (OBJS): Remove regmove.o.
5802 * regmove.c: Remove.
5803 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
5805 (struct ira_allocno) New member allocno_prefs.
5806 (ALLOCNO_PREFS): New macro.
5807 (ira_prefs, ira_prefs_num): New external vars.
5808 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
5809 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
5810 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
5812 (ira_add_allocno_copy_to_list): Remove prototype.
5813 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
5814 (ira_pref_iterator): New type.
5815 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
5816 (FOR_EACH_PREF): New macro.
5817 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
5818 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
5820 (ira_setup_alts): New function.
5821 (decrease_live_ranges_number): New function.
5822 (ira): Call the above function.
5823 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
5824 (ira_create_allocno): Initialize allocno prefs.
5825 (pref_pool, pref_vec): New static vars.
5826 (initiate_prefs, find_allocno_pref, ira_create_pref): New
5828 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
5829 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
5830 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
5831 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
5832 (ira_add_allocno_copy_to_list): Make static. Rename to
5833 add_allocno_copy_to_list.
5834 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
5835 swap_allocno_copy_ends_if_necessary.
5836 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
5837 ira_remove_allocno_prefs.
5838 (ira_flattening): Ditto.
5839 (ira_build): Call initiate_prefs, print_prefs.
5840 (ira_destroy): Call finish_prefs.
5841 * ira-color.c (struct update_cost_record): New.
5842 (struct allocno_color_data): Add new member update_cost_records.
5843 (update_cost_record_pool): New static var.
5844 (init_update_cost_records, get_update_cost_record): New functions.
5845 (free_update_cost_record_list, finish_update_cost_records): Ditto.
5846 (struct update_cost_queue_elem): Add member from.
5847 (initiate_cost_update): Call init_update_cost_records.
5848 (finish_cost_update): Call finish_update_cost_records.
5849 (queue_update_cost, get_next_update_cost): Add new param from.
5850 (Update_allocno_cost, update_costs_from_allocno): New functions.
5851 (update_costs_from_prefs): Ditto.
5852 (update_copy_costs): Rename to update_costs_from_copies.
5853 (restore_costs_from_copies): New function.
5854 (update_conflict_hard_regno_costs): Don't go back.
5855 (assign_hard_reg): Call restore_costs_from_copies. Add printing
5857 (pop_allocnos): Add priniting more debug info.
5858 (color_allocnos): Remove prefs for conflicting hard regs.
5859 Call update_costs_from_prefs.
5860 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
5861 (get_dup_num): Rename, modify, and move to ira.c
5862 (process_regs_for_copy): Add prefs.
5863 (add_insn_allocno_copies): Put src as first arg of
5864 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
5865 * ira-costs.c (record_reg_classes): Modify and move code into
5866 record_operands_costs.
5867 (find_costs_and_classes): Create prefs for the hard reg of small
5869 (process_bb_node_for_hard_reg_moves): Add prefs.
5871 2013-10-30 Richard Biener <rguenther@suse.de>
5874 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
5875 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
5877 (pre_and_rev_post_order_compute): ... which now wraps it.
5878 * graph.c (draw_cfg_nodes_no_loops): Use
5879 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
5882 2013-10-30 Christian Bruel <christian.bruel@st.com>
5884 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
5885 (sh_expand_cmpstr): Handle known align and schedule improvements.
5886 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
5887 * config/sh/sh.md (cmpstrnsi): New pattern.
5889 2013-10-30 Martin Jambor <mjambor@suse.cz>
5891 PR rtl-optimization/10474
5892 * ira.c (find_moveable_pseudos): Do not calculate dominance info
5894 (interesting_dest_for_shprep): New function.
5895 (split_live_ranges_for_shrink_wrap): Likewise.
5896 (ira): Calculate dominance info and df analysis. Call
5897 split_live_ranges_for_shrink_wrap.
5899 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5902 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
5904 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
5906 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
5907 * tree.h (POINTER_BOUNDS_P): New.
5908 (BOUNDED_TYPE_P): New.
5910 (pointer_bounds_type_node): New.
5911 * tree.c (build_common_tree_nodes): Initialize
5912 pointer_bounds_type_node.
5913 * gimple.h (gimple_call_get_nobnd_arg_index): New.
5914 (gimple_call_num_nobnd_args): New.
5915 (gimple_call_nobnd_arg): New.
5916 (gimple_return_retbnd): New.
5917 (gimple_return_set_retbnd): New
5918 * gimple.c (gimple_build_return): Increase number of ops
5919 for return statement.
5920 (gimple_call_get_nobnd_arg_index): New.
5921 * gimple-pretty-print.c (dump_gimple_return): Print second op.
5923 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
5925 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
5926 with "chkp ctor" and "bnd_legacy" attributes.
5927 * gimplify.c (gimplify_init_constructor): Avoid infinite
5928 loop during gimplification of bounds initializer.
5930 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
5932 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
5933 (handle_bnd_legacy): New.
5934 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
5935 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
5938 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
5940 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
5941 (BT_FN_PTR_CONST_PTR): New.
5942 (BT_FN_CONST_PTR_CONST_PTR): New.
5943 (BT_FN_PTR_CONST_PTR_SIZE): New.
5944 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
5945 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
5946 (BT_FN_VOID_CONST_PTR_SIZE): New.
5947 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
5948 * chkp-builtins.def: New.
5949 * builtins.def: include chkp-builtins.def.
5950 (DEF_CHKP_BUILTIN): New.
5951 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
5952 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
5953 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
5954 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
5955 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
5956 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
5957 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
5958 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
5959 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
5960 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
5961 * common.opt (fcheck-pointer-bounds): New.
5962 * toplev.c (process_options): Check Pointer Bounds Checker is
5964 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
5966 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
5968 * target.def (builtin_chkp_function): New.
5969 (chkp_bound_type): New.
5970 (chkp_bound_mode): New.
5971 (fn_abi_va_list_bounds_size): New.
5972 (load_bounds_for_arg): New.
5973 (store_bounds_for_arg): New.
5974 * targhooks.h (default_load_bounds_for_arg): New.
5975 (default_store_bounds_for_arg): New.
5976 (default_fn_abi_va_list_bounds_size): New.
5977 (default_chkp_bound_type): New.
5978 (default_chkp_bound_mode): New.
5979 (default_builtin_chkp_function): New.
5980 * targhooks.c (default_load_bounds_for_arg): New.
5981 (default_store_bounds_for_arg): New.
5982 (default_fn_abi_va_list_bounds_size): New.
5983 (default_chkp_bound_type): New.
5984 (default_chkp_bound_mode); New.
5985 (default_builtin_chkp_function): New.
5986 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
5987 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
5988 (TARGET_STORE_BOUNDS_FOR_ARG): New.
5989 (TARGET_BUILTIN_CHKP_FUNCTION): New.
5990 (TARGET_CHKP_BOUND_TYPE): New.
5991 (TARGET_CHKP_BOUND_MODE): New.
5992 * doc/tm.texi: Regenerated.
5993 * langhooks.h (lang_hooks): Add chkp_supported field.
5994 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
5995 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
5997 2013-10-29 Andrew Pinski <apinski@cavium.com>
5999 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
6000 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
6001 fails, combining the branches anyways.
6002 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
6003 increases the number of combinings.
6004 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
6006 2013-10-29 Mike Stump <mikestump@comcast.net>
6008 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
6009 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
6010 (make_vector_mode): Increase namebuf to 16.
6011 (emit_insn_modes_h): When processing BImode, don't
6012 also match partial int modes.
6013 (emit_class_narrowest_mode): Likewise.
6015 * config/bfin/bfin-modes.def: Add precision to PDI.
6016 * config/m32c/m32c-modes.def: Add precision to PSI.
6017 * config/msp430/msp430-modes.def: Add precision to PSI.
6018 * config/rs6000/rs6000-modes.def: Add precision to PTI.
6019 * config/sh/sh-modes.def: Add precision to PSI and PDI.
6021 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
6024 * config/sh/sh.md (*addc): Rename existing variations to ...
6025 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
6026 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
6027 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
6028 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
6030 2013-10-29 Teresa Johnson <tejohnson@google.com>
6033 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
6034 insanities when updating probabilities.
6036 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6038 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
6039 prettyprinter for cgraph_node to reflect the conversion of the
6040 symtable types to a C++ class hierarchy: it now *is* a
6041 symtab_node_base, rather than having one (named "symbol").
6043 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
6045 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
6046 __cilkrts_pop_frame. If matched, then return true for built-in
6048 (expand_builtin): Added BUILT_IN_CILK_DETACH and
6049 BUILT_IN_CILK_POP_FRAME case.
6050 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
6051 (lhs_cilk_detect_spawn): Likewise.
6052 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
6053 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
6054 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
6055 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
6056 (LANG_HOOKS_CILKPLUS): Likewise.
6057 * tree.h (CILK_SPAWN_FN): Likewise.
6058 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
6059 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
6060 (OBJS): Added cilk-common.o.
6061 (BUILTINS_DEF): Added cilk-builtins.def.
6062 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
6063 (lhd_cilk_detect_spawn): Likewise.
6064 * langhooks.h (lang_hooks_for_cilkplus): New struct.
6065 (struct lang_hooks): Added new field called "cilkplus."
6066 * cilk-common.c: New file.
6068 * cilk-builtins.def: Likewise.
6069 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
6070 "__cilk" macro and set it to 200.
6071 * function.h (struct function::cilk_frame_decl): New field.
6072 (struct function::is_cilk_function): Likewise.
6073 (struct function::calls_cilk_spawn): Likewise.
6074 * gimplify.c (gimplify_call_expr): Added a check if the function call
6075 being gimplified is a spawn detach point. If so, then add pop_frame
6076 and detach function calls.
6077 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
6078 for gimplifying _Cilk_spawn and _Cilk_sync statements.
6079 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
6080 function. If so, added a _Cilk_sync and gimplified it.
6081 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
6082 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
6083 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
6085 (can_inline_edge_p): Prevent inling of spawnee function.
6086 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
6087 for functions that use Cilk keywords.
6088 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
6089 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
6090 CILK_SYNC_STMT cases.
6091 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
6093 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
6094 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
6095 * passes.texi (Cilk Keywords): New section that describes the compiler
6096 code changes for handling Cilk Keywords.
6098 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6100 Patch autogenerated by refactor_symtab.py from
6101 https://github.com/davidmalcolm/gcc-refactoring-scripts
6102 revision 58bb219cc090b2f4516a9297d868c245495ee622
6104 * asan.c (asan_finish_file): Update for conversion of symtab types to
6105 a true class hierarchy.
6106 * cfgexpand.c (estimated_stack_frame_size): Likewise.
6107 * cgraph.c (cgraph_get_body): Likewise.
6108 (cgraph_get_create_real_symbol_node): Likewise.
6109 (verify_cgraph_node): Likewise.
6110 (verify_edge_corresponds_to_fndecl): Likewise.
6111 (verify_edge_count_and_frequency): Likewise.
6112 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
6113 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
6114 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
6115 (cgraph_node_cannot_return): Likewise.
6116 (cgraph_set_pure_flag_1): Likewise.
6117 (cgraph_set_const_flag_1): Likewise.
6118 (cgraph_set_nothrow_flag_1): Likewise.
6119 (cgraph_make_node_local_1): Likewise.
6120 (cgraph_for_node_and_aliases): Likewise.
6121 (cgraph_for_node_thunks_and_aliases): Likewise.
6122 (cgraph_node_can_be_local_p): Likewise.
6123 (cgraph_node_cannot_be_local_p_1): Likewise.
6124 (cgraph_function_body_availability): Likewise.
6125 (dump_cgraph_node): Likewise.
6126 (cgraph_rtl_info): Likewise.
6127 (cgraph_mark_address_taken_node): Likewise.
6128 (cgraph_remove_node): Likewise.
6129 (cgraph_release_function_body): Likewise.
6130 (cgraph_update_edges_for_call_stmt_node): Likewise.
6131 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
6132 (cgraph_make_edge_direct): Likewise.
6133 (cgraph_resolve_speculation): Likewise.
6134 (cgraph_speculative_call_info): Likewise.
6135 (cgraph_turn_edge_to_speculative): Likewise.
6136 (cgraph_create_edge_1): Likewise.
6137 (cgraph_set_call_stmt): Likewise.
6138 (cgraph_node_for_asm): Likewise.
6139 (cgraph_add_thunk): Likewise.
6140 (cgraph_same_body_alias): Likewise.
6141 (cgraph_create_function_alias): Likewise.
6142 (cgraph_create_node): Likewise.
6143 (cgraph_create_empty_node): Likewise.
6144 (record_function_versions): Likewise.
6145 (used_from_object_file_p): Likewise.
6146 * cgraph.h (symtab_can_be_discarded): Likewise.
6147 (symtab_real_symbol_p): Likewise.
6148 (cgraph_mark_force_output_node): Likewise.
6149 (cgraph_edge_recursive_p): Likewise.
6150 (symtab_alias_target): Likewise.
6151 (varpool_all_refs_explicit_p): Likewise.
6152 (varpool_can_remove_if_no_refs): Likewise.
6153 (cgraph_only_called_directly_or_aliased_p): Likewise.
6154 (cgraph_next_function_with_gimple_body): Likewise.
6155 (cgraph_first_function_with_gimple_body): Likewise.
6156 (cgraph_function_with_gimple_body_p): Likewise.
6157 (cgraph_next_function): Likewise.
6158 (cgraph_first_function): Likewise.
6159 (cgraph_next_defined_function): Likewise.
6160 (cgraph_first_defined_function): Likewise.
6161 (varpool_next_defined_variable): Likewise.
6162 (varpool_first_defined_variable): Likewise.
6163 (varpool_next_static_initializer): Likewise.
6164 (varpool_first_static_initializer): Likewise.
6165 (varpool_next_variable): Likewise.
6166 (varpool_first_variable): Likewise.
6167 (varpool_node_name): Likewise.
6168 (varpool): Likewise.
6170 (is_a_helper <varpool_node>::test): Likewise.
6171 (is_a_helper <cgraph_node>::test): Likewise.
6172 (varpool_variable_node): Likewise.
6173 (cgraph_function_or_thunk_node): Likewise.
6174 (varpool_alias_target): Likewise.
6175 (cgraph_alias_target): Likewise.
6176 (cgraph_node_name): Likewise.
6177 (varpool_node_asm_name): Likewise.
6178 (cgraph_node_asm_name): Likewise.
6179 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
6180 (cgraph_rebuild_references): Likewise.
6181 (rebuild_cgraph_edges): Likewise.
6182 (record_eh_tables): Likewise.
6183 (build_cgraph_edges): Likewise.
6184 (mark_store): Likewise.
6185 (mark_load): Likewise.
6186 (mark_address): Likewise.
6187 (record_type_list): Likewise.
6188 (record_reference): Likewise.
6189 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
6190 (cgraph_materialize_clone): Likewise.
6191 (cgraph_function_versioning): Likewise.
6192 (cgraph_copy_node_for_versioning): Likewise.
6193 (update_call_expr): Likewise.
6194 (cgraph_find_replacement_node): Likewise.
6195 (cgraph_create_virtual_clone): Likewise.
6196 (cgraph_clone_node): Likewise.
6197 * cgraphunit.c (compile): Likewise.
6198 (output_weakrefs): Likewise.
6199 (output_in_order): Likewise.
6200 (expand_function): Likewise.
6201 (assemble_thunks_and_aliases): Likewise.
6202 (expand_thunk): Likewise.
6203 (mark_functions_to_output): Likewise.
6204 (handle_alias_pairs): Likewise.
6205 (analyze_functions): Likewise.
6206 (walk_polymorphic_call_targets): Likewise.
6207 (varpool_finalize_decl): Likewise.
6208 (process_function_and_variable_attributes): Likewise.
6209 (cgraph_process_same_body_aliases): Likewise.
6210 (analyze_function): Likewise.
6211 (cgraph_add_new_function): Likewise.
6212 (cgraph_finalize_function): Likewise.
6213 (referred_to_p): Likewise.
6214 (cgraph_reset_node): Likewise.
6215 (cgraph_process_new_functions): Likewise.
6216 (enqueue_node): Likewise.
6217 (decide_is_symbol_needed): Likewise.
6218 * coverage.c (coverage_compute_profile_id): Likewise.
6219 * dbxout.c (dbxout_expand_expr): Likewise.
6220 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
6221 (reference_to_unused): Likewise.
6222 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6223 * gimplify.c (unvisit_body): Likewise.
6224 (unshare_body): Likewise.
6225 * ipa-cp.c (ipcp_generate_summary): Likewise.
6226 (ipcp_decision_stage): Likewise.
6227 (identify_dead_nodes): Likewise.
6228 (decide_whether_version_node): Likewise.
6229 (decide_about_value): Likewise.
6230 (perhaps_add_new_callers): Likewise.
6231 (create_specialized_node): Likewise.
6232 (update_profiling_info): Likewise.
6233 (ipcp_propagate_stage): Likewise.
6234 (estimate_local_effects): Likewise.
6235 (good_cloning_opportunity_p): Likewise.
6236 (devirtualization_time_bonus): Likewise.
6237 (propagate_constants_accross_call): Likewise.
6238 (initialize_node_lattices): Likewise.
6239 (ipcp_cloning_candidate_p): Likewise.
6240 (determine_versionability): Likewise.
6241 (print_all_lattices): Likewise.
6242 (print_lattice): Likewise.
6243 (ipcp_discover_new_direct_edges): Likewise.
6244 * ipa-devirt.c (ipa_devirt): Likewise.
6245 (likely_target_p): Likewise.
6246 (update_type_inheritance_graph): Likewise.
6247 (possible_polymorphic_call_target_p): Likewise.
6248 (dump_possible_polymorphic_call_targets): Likewise.
6249 (devirt_variable_node_removal_hook): Likewise.
6250 (record_binfo): Likewise.
6251 (maybe_record_node): Likewise.
6252 (build_type_inheritance_graph): Likewise.
6253 * ipa-inline-analysis.c (inline_write_summary): Likewise.
6254 (inline_generate_summary): Likewise.
6255 (inline_analyze_function): Likewise.
6256 (do_estimate_growth): Likewise.
6257 (simple_edge_hints): Likewise.
6258 (estimate_node_size_and_time): Likewise.
6259 (estimate_edge_devirt_benefit): Likewise.
6260 (compute_inline_parameters): Likewise.
6261 (estimate_function_body_sizes): Likewise.
6262 (compute_bb_predicates): Likewise.
6263 (initialize_inline_failed): Likewise.
6264 (dump_inline_summary): Likewise.
6265 (dump_inline_edge_summary): Likewise.
6266 * ipa-inline-transform.c (inline_transform): Likewise.
6267 (preserve_function_body_p): Likewise.
6268 (save_inline_function_body): Likewise.
6269 (inline_call): Likewise.
6270 (clone_inlined_nodes): Likewise.
6271 (can_remove_node_now_p): Likewise.
6272 (can_remove_node_now_p_1): Likewise.
6273 * ipa-inline.c (early_inliner): Likewise.
6274 (early_inline_small_functions): Likewise.
6275 (inline_always_inline_functions): Likewise.
6276 (ipa_inline): Likewise.
6277 (flatten_function): Likewise.
6278 (inline_small_functions): Likewise.
6279 (speculation_useful_p): Likewise.
6280 (recursive_inlining): Likewise.
6281 (update_caller_keys): Likewise.
6282 (reset_edge_caches): Likewise.
6283 (update_edge_key): Likewise.
6284 (edge_badness): Likewise.
6285 (relative_time_benefit): Likewise.
6286 (want_inline_self_recursive_call_p): Likewise.
6287 (want_inline_small_function_p): Likewise.
6288 (want_early_inline_function_p): Likewise.
6289 (num_calls): Likewise.
6290 (can_early_inline_edge_p): Likewise.
6291 (can_inline_edge_p): Likewise.
6292 (report_inline_failed_reason): Likewise.
6293 * ipa-profile.c (ipa_profile): Likewise.
6294 (ipa_propagate_frequency): Likewise.
6295 (ipa_propagate_frequency_1): Likewise.
6296 (ipa_profile_generate_summary): Likewise.
6297 * ipa-prop.c (ipcp_transform_function): Likewise.
6298 (read_replacements_section): Likewise.
6299 (ipa_prop_read_section): Likewise.
6300 (ipa_modify_call_arguments): Likewise.
6301 (ipa_print_node_params): Likewise.
6302 (propagate_controlled_uses): Likewise.
6303 (update_indirect_edges_after_inlining): Likewise.
6304 (remove_described_reference): Likewise.
6305 (ipa_make_edge_direct_to_target): Likewise.
6306 (ipa_analyze_node): Likewise.
6307 (ipa_analyze_params_uses): Likewise.
6308 (ipa_compute_jump_functions): Likewise.
6309 (ipa_get_callee_param_type): Likewise.
6310 (ipa_print_node_jump_functions): Likewise.
6311 (ipa_initialize_node_params): Likewise.
6312 (ipa_populate_param_decls): Likewise.
6313 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
6314 (write_agg_replacement_chain): Likewise.
6315 (ipa_write_node_info): Likewise.
6316 (ipa_edge_duplication_hook): Likewise.
6317 (try_decrement_rdesc_refcount): Likewise.
6318 * ipa-pure-const.c (propagate_nothrow): Likewise.
6319 (propagate_pure_const): Likewise.
6320 (pure_const_read_summary): Likewise.
6321 (pure_const_write_summary): Likewise.
6322 (analyze_function): Likewise.
6323 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
6324 (ipa_ref_referring_ref_list): Likewise.
6325 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
6326 (ipa_remove_stmt_references): Likewise.
6327 (ipa_find_reference): Likewise.
6328 (ipa_dump_referring): Likewise.
6329 (ipa_dump_references): Likewise.
6330 (ipa_record_reference): Likewise.
6331 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
6332 (ipa_reference_write_optimization_summary): Likewise.
6333 (write_node_summary_p): Likewise.
6334 (propagate): Likewise.
6335 (read_write_all_from_decl): Likewise.
6336 (generate_summary): Likewise.
6337 (analyze_function): Likewise.
6338 (propagate_bits): Likewise.
6339 (ipa_reference_get_not_written_global): Likewise.
6340 (ipa_reference_get_not_read_global): Likewise.
6341 * ipa-split.c (execute_split_functions): Likewise.
6342 (split_function): Likewise.
6343 * ipa-utils.c (ipa_merge_profiles): Likewise.
6344 (dump_cgraph_node_set): Likewise.
6345 (ipa_reverse_postorder): Likewise.
6346 (ipa_edge_within_scc): Likewise.
6347 (ipa_get_nodes_in_cycle): Likewise.
6348 (ipa_free_postorder_info): Likewise.
6349 (ipa_reduced_postorder): Likewise.
6350 (searchc): Likewise.
6351 (recursive_call_p): Likewise.
6352 * ipa.c (ipa_cdtor_merge): Likewise.
6353 (record_cdtor_fn): Likewise.
6354 (function_and_variable_visibility): Likewise.
6355 (varpool_externally_visible_p): Likewise.
6356 (cgraph_externally_visible_p): Likewise.
6357 (comdat_can_be_unshared_p): Likewise.
6358 (comdat_can_be_unshared_p_1): Likewise.
6359 (address_taken_from_non_vtable_p): Likewise.
6360 (ipa_discover_readonly_nonaddressable_vars): Likewise.
6361 (symtab_remove_unreachable_nodes): Likewise.
6362 (walk_polymorphic_call_targets): Likewise.
6363 (process_references): Likewise.
6364 (enqueue_node): Likewise.
6365 (has_addr_references_p): Likewise.
6366 (cgraph_non_local_node_p_1): Likewise.
6367 * is-a.h (varpool_analyze_node): Likewise.
6368 * lto-cgraph.c (input_symtab): Likewise.
6369 (merge_profile_summaries): Likewise.
6370 (input_cgraph_1): Likewise.
6371 (input_edge): Likewise.
6372 (input_varpool_node): Likewise.
6373 (input_node): Likewise.
6374 (input_overwrite_node): Likewise.
6375 (compute_ltrans_boundary): Likewise.
6376 (output_refs): Likewise.
6377 (lto_output_varpool_node): Likewise.
6378 (lto_output_node): Likewise.
6379 (reachable_from_other_partition_p): Likewise.
6380 (referenced_from_other_partition_p): Likewise.
6381 (lto_output_edge): Likewise.
6382 (output_node_opt_summary): Likewise.
6383 (add_node_to): Likewise.
6384 (reachable_from_this_partition_p): Likewise.
6385 (lto_set_symtab_encoder_in_partition): Likewise.
6386 (lto_symtab_encoder_in_partition_p): Likewise.
6387 (lto_set_symtab_encoder_encode_initializer): Likewise.
6388 (lto_symtab_encoder_encode_initializer_p): Likewise.
6389 (lto_set_symtab_encoder_encode_body): Likewise.
6390 (lto_symtab_encoder_encode_body_p): Likewise.
6391 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6393 * lto-streamer-in.c (lto_read_body): Likewise.
6394 (fixup_call_stmt_edges): Likewise.
6395 (fixup_call_stmt_edges_1): Likewise.
6396 * lto-streamer-out.c (produce_symtab): Likewise.
6397 (output_symbol_p): Likewise.
6398 (write_symbol): Likewise.
6399 (lto_output): Likewise.
6400 (copy_function): Likewise.
6401 (output_function): Likewise.
6402 * passes.c (function_called_by_processed_nodes_p): Likewise.
6403 (ipa_write_optimization_summaries): Likewise.
6404 (ipa_write_summaries): Likewise.
6405 (do_per_function_toporder): Likewise.
6406 (do_per_function): Likewise.
6407 (dump_passes): Likewise.
6408 * symtab.c (symtab_semantically_equivalent_p): Likewise.
6409 (symtab_nonoverwritable_alias): Likewise.
6410 (symtab_nonoverwritable_alias_1): Likewise.
6411 (symtab_for_node_and_aliases): Likewise.
6412 (symtab_resolve_alias): Likewise.
6413 (fixup_same_cpp_alias_visibility): Likewise.
6414 (symtab_alias_ultimate_target): Likewise.
6415 (symtab_used_from_object_file_p): Likewise.
6416 (verify_symtab_base): Likewise.
6417 (dump_symtab_base): Likewise.
6418 (symtab_node_name): Likewise.
6419 (symtab_node_asm_name): Likewise.
6420 (symtab_dissolve_same_comdat_group_list): Likewise.
6421 (symtab_add_to_same_comdat_group): Likewise.
6422 (symtab_unregister_node): Likewise.
6423 (symtab_insert_node_to_hashtable): Likewise.
6424 (symtab_register_node): Likewise.
6425 (unlink_from_assembler_name_hash): Likewise.
6426 (insert_to_assembler_name_hash): Likewise.
6427 (eq_assembler_name): Likewise.
6428 (hash_node_by_assembler_name): Likewise.
6429 (eq_node): Likewise.
6430 (hash_node): Likewise.
6431 * toplev.c (wrapup_global_declaration_2): Likewise.
6432 * trans-mem.c (ipa_tm_execute): Likewise.
6433 (ipa_tm_transform_clone): Likewise.
6434 (ipa_tm_transform_transaction): Likewise.
6435 (ipa_tm_transform_calls_redirect): Likewise.
6436 (ipa_tm_insert_gettmclone_call): Likewise.
6437 (ipa_tm_insert_irr_call): Likewise.
6438 (ipa_tm_create_version): Likewise.
6439 (ipa_tm_create_version_alias): Likewise.
6440 (ipa_tm_mark_forced_by_abi_node): Likewise.
6441 (ipa_tm_mark_force_output_node): Likewise.
6442 (ipa_tm_diagnose_tm_safe): Likewise.
6443 (ipa_tm_mayenterirr_function): Likewise.
6444 (ipa_tm_scan_irr_function): Likewise.
6445 (ipa_tm_note_irrevocable): Likewise.
6446 (ipa_tm_scan_calls_clone): Likewise.
6447 (get_cg_data): Likewise.
6448 * tree-eh.c (tree_could_trap_p): Likewise.
6449 * tree-emutls.c (ipa_lower_emutls): Likewise.
6450 (create_emultls_var): Likewise.
6451 (lower_emutls_function_body): Likewise.
6452 (gen_emutls_addr): Likewise.
6453 (emutls_decl): Likewise.
6454 (new_emutls_decl): Likewise.
6455 * tree-inline.c (tree_function_versioning): Likewise.
6456 (optimize_inline_calls): Likewise.
6457 (expand_call_inline): Likewise.
6458 (estimate_num_insns): Likewise.
6459 (copy_bb): Likewise.
6460 (delete_unreachable_blocks_update_callgraph): Likewise.
6461 * tree-nested.c (gimplify_all_functions): Likewise.
6462 (create_nesting_tree): Likewise.
6463 (check_for_nested_with_variably_modified): Likewise.
6464 * tree-pretty-print.c (dump_function_header): Likewise.
6465 * tree-profile.c (tree_profiling): Likewise.
6466 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6467 (modify_function): Likewise.
6468 (convert_callers): Likewise.
6469 (convert_callers_for_node): Likewise.
6470 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
6471 (associate_varinfo_to_alias): Likewise.
6472 (create_variable_info_for): Likewise.
6473 (get_constraint_for_ssa_var): Likewise.
6474 * tree-vectorizer.c (increase_alignment): Likewise.
6475 * tree.c (find_decls_types_in_var): Likewise.
6476 (find_decls_types_in_node): Likewise.
6477 (free_lang_data_in_decl): Likewise.
6478 * value-prof.c (gimple_ic_transform): Likewise.
6479 (gimple_ic): Likewise.
6480 (check_ic_target): Likewise.
6481 (init_node_map): Likewise.
6482 * varasm.c (decl_binds_to_current_def_p): Likewise.
6483 (default_binds_local_p_1): Likewise.
6484 (dump_tm_clone_pairs): Likewise.
6485 (assemble_alias): Likewise.
6486 (find_decl): Likewise.
6487 (mark_decl_referenced): Likewise.
6488 * varpool.c (varpool_for_node_and_aliases): Likewise.
6489 (varpool_extra_name_alias): Likewise.
6490 (varpool_create_variable_alias): Likewise.
6491 (add_new_static_var): Likewise.
6492 (varpool_finalize_named_section_flags): Likewise.
6493 (varpool_remove_unreferenced_decls): Likewise.
6494 (enqueue_node): Likewise.
6495 (varpool_assemble_decl): Likewise.
6496 (assemble_aliases): Likewise.
6497 (varpool_analyze_node): Likewise.
6498 (cgraph_variable_initializer_availability): Likewise.
6499 (varpool_add_new_variable): Likewise.
6500 (ctor_for_folding): Likewise.
6501 (dump_varpool_node): Likewise.
6502 (varpool_remove_initializer): Likewise.
6503 (varpool_remove_node): Likewise.
6504 (varpool_node_for_decl): Likewise.
6505 (varpool_create_empty_node): Likewise.
6506 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
6507 (ix86_get_function_versions_dispatcher): Likewise.
6509 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6511 * cgraph.h (symtab_node_base): Convert to a class;
6512 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
6513 chain_next/prev from symtab_node_def.
6514 (cgraph_node): Inherit from symtab_node; add GTY option
6515 tag ("SYMTAB_FUNCTION").
6516 (varpool_node): Inherit from symtab_node; add GTY option
6517 tag ("SYMTAB_VARIABLE").
6518 (symtab_node_def): Remove.
6519 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
6520 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
6521 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
6522 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
6524 * ipa-ref.h (symtab_node_def): Drop.
6525 (symtab_node): Change underlying type from symtab_node_def to
6527 (const_symtab_node): Likwise.
6529 * is-a.h: Update examples in comment.
6531 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
6532 (assembler_name_hash): Likewise.
6534 2013-10-29 Martin Liska <marxin.liska@gmail.com>
6536 * doc/tree-ssa.texi (gimple_phi_result): Document.
6537 (gimple_phi_num_args, gimple_phi_arg): Likewise.
6538 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
6539 (PHI_RESULT, PHI_NUM_ARGS): Remove.
6540 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
6542 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6544 * expr.h: Revert change and include tree-core.h.
6545 * rtl.h: Revert change and don't include tree-core.h.
6547 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6549 * config/darwin.c: Include gimple.h.
6550 * config/i386/winnt.c: Likewise.
6552 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
6554 PR tree-optimization/19831
6555 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
6557 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
6559 * tree-outof-ssa.h: Remove include files.
6560 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
6562 * tree-ssa-coalesce.c: Likewise.
6563 * cfgexpand.c: Likewise.
6564 * tree-ssa-ter.c: Likewise.
6565 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
6566 * lto-streamer.h: Likewise.
6567 * cgraphbuild.c: Add gimple.h to include list.
6568 * data-streamer-in.c: Likewise.
6569 * ipa-cp.c: Likewise.
6570 * tree-streamer.c: Likewise.
6571 * lto-compress.c: Likewise.
6572 * ipa-reference.c: Likewise.
6573 * data-streamer-out.c: Likewise.
6574 * lto-cgraph.c: Likewise.
6575 * cgraphclones.c: Likewise.
6576 * ipa-utils.c: Likewise.
6577 * data-streamer.c: Likewise.
6578 * ipa-split.c: Likewise.
6579 * lto-section-in.c: Likewise.
6580 * tree-streamer-out.c: Likewise.
6581 * ipa-prop.c: Likewise.
6582 * tree-streamer-in.c: Likewise.
6583 * symtab.c: Likewise.
6584 * opts-global.c: Likewise.
6585 * lto-opts.c: Likewise.
6586 * lto-section-out.c: Likewise.
6587 * lto-streamer.c: Likewise.
6588 * rtl.h: Add tree-core.h to include list.
6589 * expr.h: Remove tree-core.h from include list.
6590 * gimple.h: Likewise.
6591 * ipa-utils.h: Likewise.
6592 * streamer-hooks.h: Likewise.
6593 * streamer-hooks.c: Include input.h.
6595 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6597 * config/arm/arm.c (cortexa7_extra_costs): New table.
6598 (arm_cortex_a7_tune): New.
6599 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
6601 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
6603 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
6605 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6607 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
6608 to use autogenerated markers for a class-hierarchy, every class
6609 must have a GTY marker.
6610 * gengtype.h (struct type): Add linked list of subclasses to
6611 the "s" member of the union.
6612 (add_subclass): New decl.
6613 * gengtype-state.c (read_state_struct_type): Set up subclass
6615 * gengtype.c (get_ultimate_base_class): New.
6616 (add_subclass): New.
6617 (new_structure): Set up subclass linked list.
6618 (set_gc_used_type): Propagate usage information to subclasses.
6619 (output_mangled_typename): Use get_ultimate_base_class.
6620 (walk_subclasses): Use the subclass linked list, avoiding an
6621 O(N^2) when writing out all types.
6622 (walk_type): Issue an error if the base class is missing a tag,
6623 rather than generating bogus C code. Add a gcc_unreachable
6624 default case, in case people omit tags from concrete subclasses,
6625 or get the values wrong.
6626 (write_func_for_structure): Issue an error for subclasses for
6627 which the base doesn't have a "desc", since otherwise the
6628 autogenerated routines for the base would silently fail to visit
6629 any subclass fields.
6630 (write_root): Use get_ultimate_base_class, tweaking constness of
6631 tp to match that function's signature.
6633 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6635 * doc/gty.texi (GTY Options): Add note about inheritance to
6636 description of desc and tag.
6637 (Inheritance and GTY): New.
6639 2013-10-29 David Malcolm <dmalcolm@redhat.com>
6641 * gengtype-parse.c (opts_have): Drop "static" so that
6642 we can use this from gengtype.c.
6643 * gengtype.c (set_gc_used_type): Mark any base class as used;
6644 update field traversal to visit inherited fields.
6645 (output_mangled_typename): Convert references to classes within
6646 an inheritance hierarchy to reference the ultimate base class,
6647 since only it will have gt_ functions.
6648 (get_string_option): New.
6649 (walk_subclasses): New.
6650 (walk_type): Treat GTY structs that have a "desc" as being the
6651 root of an inheritance hierarchy. Generate a switch on it
6652 within the marking function which walks all subclasses, adding
6653 cases for them via walk_subclasses. For subclasses, visit all
6654 fields of the type (including inherited ones).
6655 (write_func_for_structure): Don't write fns for subclasses, only
6656 for the ultimate base class within an inheritance hierarchy.
6657 Subclasses-marking will be handled by the base class marking functions.
6658 (write_types): Likewise.
6659 (write_local_func_for_structure): Likewise.
6660 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
6661 a "tag" option (and are thus concrete subclasses).
6662 (write_root): Use the marker function for the ultimate base class.
6663 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
6664 (opts_have): Add declaration.
6666 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
6668 * lra-spills.c (lra_final_code_change): Remove useless move insns
6669 originated from moves of pseudos.
6671 2013-10-28 Jeff Law <law@redhat.com>
6673 * lower-subreg.c (resolve_simple_move): Fix comment typo.
6675 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
6677 * df-scan.c (df_collection_rec): Adjust.
6678 (copy_defs): New constant.
6679 (copy_uses): Likewise.
6680 (copy_eq_uses): Likewise.
6681 (copy_mw): Likewise.
6682 (copy_all): Likewise.
6683 (df_insn_rescan): Adjust.
6684 (df_notes_rescan): Likewise.
6685 (df_swap_refs): Likewise.
6686 (df_sort_and_compress_refs): Likewise.
6687 (df_sort_and_compress_mws): Likewise.
6688 (df_install_refs): Likewise.
6689 (df_install_mws): Likewise.
6690 (df_refs_add_to_chains): Add flags parameter controlling which vectors
6692 (df_bb_refs_record): Adjust.
6693 (df_record_entry_block_defs): Likewise.
6694 (df_record_exit_block_defs): Likewise.
6695 (df_refs_verify): Likewise.
6696 (df_mws_verify): Likewise.
6697 (df_insn_refs_verify): Likewise.
6698 (df_bb_verify): Likewise.
6699 * ipa-pure-const.c (finish_state): Remove.
6700 (propagate): Adjust.
6701 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
6702 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
6703 var-tracking.c: Adjust.
6704 * vec.c (stack_vecs): Remove.
6705 (register_stack_vec): Likewise.
6706 (stack_vec_register_index): Likewise.
6707 (unregister_stack_vec): Likewise.
6708 * vec.h (struct va_stack): Remove.
6709 (struct vec<T, A, vl_ptr>): Specialize as
6710 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
6711 allocation strategy compatable with the vl_ptr layout.
6712 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
6713 specialization anyway.
6714 (class stack_vec): New class.
6715 (vec_stack_alloc): Remove.
6716 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
6718 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
6719 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6720 Sergey Lega <sergey.s.lega@intel.com>
6721 Anna Tikhonova <anna.tikhonova@intel.com>
6722 Ilya Tocar <ilya.tocar@intel.com>
6723 Andrey Turetskiy <andrey.turetskiy@intel.com>
6724 Ilya Verbin <ilya.verbin@intel.com>
6725 Kirill Yukhin <kirill.yukhin@intel.com>
6726 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6728 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
6729 (*prefetch_avx512pf_<mode>): New.
6730 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
6731 (avx512f_maskcmp<mode>3): Ditto.
6732 (vashrv16si3): Ditto.
6734 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
6735 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6736 Sergey Lega <sergey.s.lega@intel.com>
6737 Anna Tikhonova <anna.tikhonova@intel.com>
6738 Ilya Tocar <ilya.tocar@intel.com>
6739 Andrey Turetskiy <andrey.turetskiy@intel.com>
6740 Ilya Verbin <ilya.verbin@intel.com>
6741 Kirill Yukhin <kirill.yukhin@intel.com>
6742 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6744 * config/i386/i386.md (any_truncate): New.
6745 (trunsuffix): Ditto.
6746 * config/i386/predicates.md (const_8_to_9_operand): New.
6747 (const_10_to_11_operand): Ditto.
6748 (const_12_to_13_operand): Ditto.
6749 (const_14_to_15_operand): Ditto.
6750 (const_16_to_19_operand): Ditto.
6751 (const_20_to_23_operand): Ditto.
6752 (const_24_to_27_operand): Ditto.
6753 (const_28_to_31_operand): Ditto.
6754 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
6755 (cvtusi2<ssescalarmodesuffix>32): New.
6756 (cvtusi2<ssescalarmodesuffix>64): Ditto.
6757 (ufloatv16siv16sf2): Ditto.
6758 (avx512f_fix_notruncv16sfv16si): Ditto.
6759 (avx512f_ufix_notruncv16sfv16si): Ditto.
6760 (avx512f_vcvtss2usi): Ditto.
6761 (avx512f_vcvtss2usiq): Ditto.
6762 (avx512f_vcvttss2usi): Ditto.
6763 (avx512f_vcvttss2usiq): Ditto.
6764 (avx512f_vcvtsd2usi): Ditto.
6765 (avx512f_vcvtsd2usiq): Ditto.
6766 (avx512f_vcvttsd2usi): Ditto.
6767 (avx512f_vcvttsd2usiq): Ditto.
6768 (ufloatv8siv8df): Ditto.
6769 (avx512f_cvtdq2pd512_2): Ditto.
6770 (avx512f_cvtpd2dq512): Ditto.
6771 (avx512f_ufix_notruncv8dfv8si): Ditto.
6772 (avx512f_cvtpd2ps512): Ditto.
6773 (vec_unpacks_lo_v16sf): Ditto.
6774 (vec_unpacks_hi_v16sf): Ditto.
6775 (vec_unpacks_float_hi_v16si): Ditto.
6776 (vec_unpacks_float_lo_v16si): Ditto.
6777 (avx512f_unpckhps512): Ditto.
6778 (avx512f_unpcklps512): Ditto.
6779 (avx512f_movshdup512): Ditto.
6780 (avx512f_movsldup512): Ditto.
6781 (vec_extract_lo_v32hi): Ditto.
6782 (vec_extract_hi_v32hi): Ditto.
6783 (vec_extract_lo_v64qi): Ditto.
6784 (vec_extract_hi_v64qi): Ditto.
6785 (avx512f_unpckhpd512): Ditto.
6786 (avx512f_movddup512): Ditto.
6787 (avx512f_unpcklpd512): Ditto.
6788 (*avx512f_unpcklpd512): Ditto.
6789 (avx512f_shufps512_1): Ditto.
6790 (avx512f_shufpd512_1): Ditto.
6791 (avx512f_interleave_highv8di): Ditto.
6792 (avx512f_interleave_lowv8di): Ditto.
6793 (PMOV_DST_MODE): Ditto.
6794 (pmov_src_mode): Ditto.
6795 (pmov_src_lower): Ditto.
6797 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
6798 (*avx512f_<code>v8div16qi2): Ditto.
6799 (*avx512f_<code>v8div16qi2_store): Ditto.
6800 (vec_widen_umult_even_v16si): Ditto.
6801 (*vec_widen_umult_even_v16si): Ditto.
6802 (vec_widen_smult_even_v16si): Ditto.
6803 (*vec_widen_smult_even_v16si): Ditto.
6804 (avx512f_interleave_highv16si): Ditto.
6805 (avx512f_interleave_lowv16si): Ditto.
6806 (avx512f_<code>v16qiv16si2): Ditto.
6807 (avx512f_<code>v16hiv16si2): Ditto.
6808 (avx512f_<code>v8qiv8di2): Ditto.
6809 (avx512f_<code>v8hiv8di2): Ditto.
6810 (avx512f_<code>v8siv8di2): Ditto.
6811 (avx512cd_maskb_vec_dupv8di): Ditto.
6812 (avx512cd_maskw_vec_dupv16si): Ditto.
6813 (avx512f_vcvtph2ps512): Ditto.
6814 (avx512f_vcvtps2ph512): Ditto.
6815 (VEC_EXTRACT_MODE): Extened with wider modes.
6816 (VEC_PERM_AVX2): Ditto.
6817 (VEC_PERM_CONST): Ditto.
6819 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
6821 * config/arc/arc.c (arc_ccfsm_post_advance):
6822 Add comment about TYPE_RETURN.
6824 2013-10-28 Bin Cheng <bin.cheng@arm.com>
6826 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
6827 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
6828 (strip_offset): Convert offset to unsigned number.
6830 2013-10-27 Tom de Vries <tom@codesourcery.com>
6832 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
6833 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
6835 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
6837 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
6838 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
6839 (TARGET_BIG_ENDIAN): New macro.
6840 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
6841 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
6842 * config/sh/sh.c: Likewise.
6843 * config/sh/sh.h: Likewise.
6845 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
6847 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
6848 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
6850 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
6852 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
6854 (cmpstr_t, cmpstrsi): Fix formatting.
6856 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
6859 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
6860 addressing, do not use general_operand for memory operands.
6862 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
6865 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
6866 * lra-spills.c (lra_final_code_change): Remove useless move insns.
6868 2013-10-26 Jeff Law <law@redhat.com>
6870 * predict.c (PRED_MUDFLAP): Remove.
6871 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
6873 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
6874 (OBJS): Remove tree-nomudflap.o
6875 (GTFILES): Remove tree-mudflap.c
6876 * builtins.c (expand_builtin_alloc): Remove mudflap support.
6877 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
6878 (mfwrap_spec, mflib_spec): Likewise.
6879 (cpp_unique_options, cc1_options, static_specs): Likewise.
6880 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
6881 * passes.def: Likewise.
6882 * toplev.c (compile_file, process_options): Likewise.
6883 * tree-inline.c (copy_tree_r): Likewise.
6884 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
6885 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
6886 (build_constant_desc, output_constant_def_contents): Likewise.
6887 (categorize_decl_for_section): Likewise.
6888 * tree-mudflap.c: Removed.
6889 * tree-mudflap.h: Removed.
6890 * tree-nomudflap.c: Removed.
6891 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
6892 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
6893 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
6894 * config/sol2.h (MFLIB_SPEC): Likewise.
6895 * doc/install.texi: Remove mudflap references.
6896 * doc/passes.texi: Similarly.
6897 * doc/sourcebuild.texi: Similarly.
6898 * doc/invoke.texi: Remove mudlfap related options.
6900 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
6902 PR rtl-optimization/58759
6903 * lra-constraints.c (lra_constraints): Remove wrong condition to
6904 remove insn setting up an equivalent pseudo.
6906 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
6908 * config/rs6000/rs6000-protos.h
6909 (rs6000_secondary_memory_needed_mode): New prototype.
6910 * config/rs6000/rs6000.c: Include ira.h.
6911 (TARGET_LRA_P): Redefine.
6912 (rs6000_legitimate_offset_address_p): Call
6913 legitimate_constant_pool_address_p in strict mode for LRA.
6914 (rs6000_legitimate_address_p): Ditto.
6915 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
6916 (rs6000_emit_move): Add LRA version of code to generate load/store
6918 (rs6000_secondary_memory_needed_mode): New.
6919 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
6920 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
6921 constants, memory, and FP registers.
6922 (rs6000_lra_p): New.
6923 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
6924 * config/rs6000/rs6000.opt (mlra): New option.
6925 * lra-spills.c (lra_final_code_change): Remove useless move insns.
6927 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
6929 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
6930 has_single_use () and not do the conversion if has_single_use ()
6931 returns false for the multiplication result.
6933 2013-10-25 David Malcolm <dmalcolm@redhat.com>
6935 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
6936 to "NODE", since this works on a "tree", not an
6938 (CONSTANT_CLASS_P): Likewise.
6941 (INDIRECT_REF_P): Likewise.
6942 (REFERENCE_CLASS_P): Likewise.
6943 (COMPARISON_CLASS_P): Likewise.
6944 (UNARY_CLASS_P): Likewise.
6945 (BINARY_CLASS_P): Likewise.
6946 (STATEMENT_CLASS_P): Likewise.
6947 (VL_EXP_CLASS_P): Likewise.
6948 (EXPRESSION_CLASS_P): Likewise.
6949 (IS_TYPE_OR_DECL_P): Likewise.
6951 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
6953 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
6954 ADDR_EXPR in the defining statement.
6956 2013-10-25 Richard Biener <rguenther@suse.de>
6958 PR tree-optimization/58626
6959 * tree-loop-distribution.c (enum rdg_dep_type): Remove
6960 anti_dd, output_dd and input_dd.
6961 (struct rdg_edge): Remove level and relation members.
6962 (RDGE_LEVEL, RDGE_RELATION): Remove.
6963 (dot_rdg_1): Adjust.
6964 (create_rdg_edge_for_ddr): Remove.
6965 (create_rdg_edges_for_scalar): Adjust.
6966 (create_edge_for_control_dependence): Likewise.
6967 (create_rdg_edges): Split into ...
6968 (create_rdg_flow_edges): ... this
6969 (create_rdg_cd_edges): ... and this.
6971 (build_rdg): Likewise, do not compute data dependences or
6973 (pg_add_dependence_edges): New function.
6975 (distribute_loop): First apply all non-dependence based
6976 partition mergings. Then compute dependences between partitions
6977 and merge and order partitions according to them.
6979 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
6981 PR rtl-optimization/58831
6982 * alias.c (init_alias_analysis): At the beginning of each iteration,
6983 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
6985 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
6987 * recog.c (search_ofs): New static variable moved from...
6988 (peep2_find_free_register): ...here.
6989 (peephole2_optimize): Initialize it.
6991 2013-10-25 Tobias Burnus <burnus@net-b.de>
6993 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
6995 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
6997 * config/i386/i386.h (TARGET_MPX): New define.
6998 (TARGET_MPX_P): Ditto.
7000 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
7002 * config/i386/constraints.md (B): New.
7005 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
7006 * config/i386/i386-modes.def (BND32): New.
7008 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
7009 * config/i386/i386.c (isa_opts): Add mmpx.
7010 (regclass_map): Add bound registers.
7011 (dbx_register_map): Likewise.
7012 (dbx64_register_map): Likewise.
7013 (svr4_dbx_register_map): Likewise.
7015 (ix86_option_override_internal): Support MPX ISA.
7016 (ix86_conditional_register_usage): Support bound registers.
7017 (print_reg): Likewise.
7018 (ix86_code_end): Add MPX bnd prefix.
7019 (output_set_got): Likewise.
7020 (ix86_output_call_insn): Likewise.
7021 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
7022 (ix86_print_operand_punct_valid_p): Likewise.
7023 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
7025 (ix86_class_likely_spilled_p): Add bound regs support.
7026 (ix86_hard_regno_mode_ok): Likewise.
7027 (x86_order_regs_for_local_alloc): Likewise.
7028 (ix86_bnd_prefixed_insn_p): New.
7029 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
7030 (FIXED_REGISTERS): Add bound registers.
7031 (CALL_USED_REGISTERS): Likewise.
7032 (REG_ALLOC_ORDER): Likewise.
7033 (HARD_REGNO_NREGS): Likewise.
7035 (VALID_BND_REG_MODE): New.
7036 (FIRST_BND_REG): New.
7037 (LAST_BND_REG): New.
7038 (reg_class): Add BND_REGS.
7039 (REG_CLASS_NAMES): Likewise.
7040 (REG_CLASS_CONTENTS): Likewise.
7042 (ANY_BND_REG_P): New.
7044 (HI_REGISTER_NAMES): Add bound registers.
7045 * config/i386/i386.md (UNSPEC_BNDMK): New.
7046 (UNSPEC_BNDMK_ADDR): New.
7047 (UNSPEC_BNDSTX): New.
7048 (UNSPEC_BNDLDX): New.
7049 (UNSPEC_BNDLDX_ADDR): New.
7050 (UNSPEC_BNDCL): New.
7051 (UNSPEC_BNDCU): New.
7052 (UNSPEC_BNDCN): New.
7053 (UNSPEC_MPX_FENCE): New.
7056 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
7057 (length_immediate): Likewise.
7058 (prefix_0f): Likewise.
7060 (prefix_rep): Check for bnd prefix.
7061 (length_nobnd): New.
7062 (length): Use length_nobnd if specified.
7067 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
7070 (simple_return_internal): Likewise.
7071 (simple_return_pop_internal): Likewise.
7072 (*indirect_jump): Add MPX bnd prefix.
7073 (*tablejump_1): Likewise.
7074 (simple_return_internal_long): Likewise.
7075 (simple_return_indirect_internal): Likewise.
7079 (*mov<mode>_internal_mpx): New.
7080 (<mode>_<bndcheck>): New.
7081 (*<mode>_<bndcheck>): New.
7086 * config/i386/predicates.md (lea_address_operand): Rename to...
7087 (address_no_seg_operand): ... this.
7088 (address_mpx_no_base_operand): New.
7089 (address_mpx_no_index_operand): New.
7090 (bnd_mem_operator): New.
7091 * config/i386/i386.opt (mmpx): New.
7092 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
7093 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
7095 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
7097 * mode-classes.def (MODE_POINTER_BOUNDS): New.
7098 * tree.def (POINTER_BOUNDS_TYPE): New.
7099 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
7100 (POINTER_BOUNDS_MODE): New.
7101 (make_pointer_bounds_mode): New.
7102 * machmode.h (POINTER_BOUNDS_MODE_P): New.
7103 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
7104 (layout_type): Support POINTER_BOUNDS_TYPE.
7105 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
7106 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
7107 (type_contains_placeholder_1): Likewise.
7108 * tree.h (POINTER_BOUNDS_TYPE_P): New.
7109 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
7110 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
7112 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
7114 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
7115 mode of address computation when calling memory_address_addr_space.
7117 2013-08-24 Richard Henderson <rth@twiddle.net>
7120 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
7121 instead of create_convert_operand_to.
7122 (maybe_emit_sync_lock_test_and_set): Likewise.
7123 (expand_atomic_compare_and_swap): Likewise.
7124 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
7126 2013-08-24 Sriraman Tallam <tmsriram@google.com>
7128 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
7129 Change param_is to use the struct and not the pointer to the struct.
7131 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
7133 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
7134 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
7135 Move to targhooks.c.
7136 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
7137 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
7138 Relocate from gimplify.c.
7139 * targhooks.h: Add 2 prototypes.
7140 * tree.h: Delete 2 prototypes.
7142 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
7144 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
7145 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
7147 2013-10-24 Cong Hou <congh@google.com>
7149 * convert.c (convert_to_real): Guard those unsafe math function
7150 convertions with flag_unsafe_math_optimizations. Handle sqrt()
7153 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
7156 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
7158 (cgraph_create_edge): Use the new argument.
7159 (cgraph_create_indirect_edge): Likewise.
7161 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
7163 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
7165 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
7166 changes statep->state.
7168 2013-10-24 Tobias Burnus <burnus@net-b.de>
7171 * tree-cfg.c (replace_loop_annotate): New function.
7172 (execute_build_cfg): Call it.
7173 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
7174 * internal-fn.c (expand_ANNOTATE): New function.
7175 * internal-fn.def (ANNOTATE): Define as new internal function.
7176 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
7177 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
7178 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
7179 * doc/extend.texi (Pragmas): Document #pragma ivdep.
7180 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
7182 2013-10-17 Ian Bolton <ian.bolton@arm.com>
7183 Marcus Shawcroft <marcus.shawcroft@arm.com>
7185 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
7186 Special case reload SP+C into none GENERAL_REGS.
7188 2013-10-24 Michael Matz <matz@suse.de>
7190 * gengtype.c (is_file_equal): Check that files will be same length.
7192 2013-10-25 Christian Bruel <christian.bruel@st.com>
7194 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
7195 * config/sh/t-sh (sh-mem.o): New rule.
7196 * config/sh/sh-mem.cc (expand_block_move): Moved here.
7197 (sh_expand_cmpstr): New function.
7198 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
7199 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
7200 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
7201 (rotlhi3_8): Rename.
7203 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7205 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
7206 * Makefile.in (CXXDEPMODE): Assign and change users.
7207 (CCDEPMODE): Delete.
7208 * configure: Regenerate.
7210 2013-10-23 David Malcolm <dmalcolm@redhat.com>
7212 * gengtype-parse.c (require_without_advance): New.
7213 (type): For GTY-marked types that are not GTY((user)), parse any
7214 base classes, requiring them to be single-inheritance, and not
7215 be templates. For non-GTY-marked types and GTY((user)),
7216 continue to skip over any C++ inheritance specification.
7217 * gengtype-state.c (state_writer::write_state_struct_type):
7218 Write base class of type (if any).
7219 (read_state_struct_type): Read base class of type (if any).
7220 * gengtype.c (new_structure): Add a "base_class" parameter.
7221 (create_optional_field_): Update for new parameter to new_structure.
7222 (adjust_field_rtx_def): Likewise.
7223 (adjust_field_tree_exp): Likewise.
7224 * gengtype.h (struct type): Add "base_class" field to the s
7226 (new_structure): Add "base" parameter.
7228 2013-10-23 Sriraman Tallam <tmsriram@google.com>
7231 * config/i386/i386.c (ix86_option_override_internal):
7232 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
7233 (ix86_valid_target_attribute_tree):
7234 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
7235 Change TARGET_SSE to TARGET_SSE_P (opts->...)
7237 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
7239 * tree-ssa-loop.h: Remove include files.
7240 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7241 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
7242 * graphite-clast-to-gimple.c: Likewise.
7243 * graphite-scop-detection.c: Likewise.
7244 * graphite-sese-to-poly.c: Likewise.
7245 * ipa-inline-analysis.c: Likewise.
7246 * ipa-pure-const.c: Likewise.
7247 * loop-init.c: Likewise.
7248 * passes.c: Likewise.
7249 * predict.c: Likewise.
7250 * tree-cfg.c: Likewise.
7251 * tree-cfgcleanup.c: Likewise.
7252 * tree-chrec.c: Likewise.
7253 * tree-data-ref.c: Likewise.
7254 * tree-loop-distribution.c: Likewise.
7255 * tree-parloops.c: Likewise.
7256 * tree-predcom.c: Likewise.
7257 * tree-scalar-evolution.c: Likewise.
7258 * tree-ssa-address.c: Likewise.
7259 * tree-ssa.c: Likewise.
7260 * tree-ssa-dce.c: Likewise.
7261 * tree-ssa-loop.c: Likewise.
7262 * tree-ssa-loop-im.c: Likewise.
7263 * tree-ssa-loop-ivcanon.c: Likewise.
7264 * tree-ssa-loop-ivopts.c: Likewise.
7265 * tree-ssa-loop-manip.c: Likewise.
7266 * tree-ssa-loop-niter.c: Likewise.
7267 * tree-ssa-loop-prefetch.c: Likewise.
7268 * tree-ssa-loop-unswitch.c: Likewise.
7269 * tree-ssa-reassoc.c: Likewise.
7270 * tree-vect-data-refs.c: Likewise.
7271 * tree-vect-loop.c: Likewise.
7272 * tree-vect-loop-manip.c: Likewise.
7273 * tree-vectorizer.c: Likewise.
7274 * tree-vect-stmts.c: Likewise.
7275 * tree-vrp.c: Likewise.
7277 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7279 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
7281 2013-10-23 Jakub Jelinek <jakub@redhat.com>
7283 PR tree-optimization/58775
7284 PR tree-optimization/58791
7285 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
7286 (insert_stmt_after): Rewritten, don't move the stmt, but really
7288 (get_stmt_uid_with_default): Remove.
7289 (build_and_add_sum): Use insert_stmt_after and
7290 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
7291 (update_range_test): Set uid on stmts added by
7292 force_gimple_operand_gsi. Don't immediately modify statements
7293 in inter-bb optimization, just update oe->op values.
7294 (optimize_range_tests): Return bool whether any changed have been made.
7295 (update_ops): New function.
7296 (struct inter_bb_range_test_entry): New type.
7297 (maybe_optimize_range_tests): Perform statement changes here.
7298 (not_dominated_by, appears_later_in_bb, get_def_stmt,
7299 ensure_ops_are_available): Remove.
7300 (find_insert_point): Rewritten.
7301 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
7302 return LHS of the (new resp. old) stmt. Don't call
7303 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
7304 instead of last, move new stmt at the right place.
7305 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
7306 (negate_value): Likewise. Set uids.
7307 (break_up_subtract_bb): Initialize uids.
7308 (reassociate_bb): Adjust rewrite_expr_tree caller.
7309 (do_reassoc): Don't call renumber_gimple_stmt_uids.
7311 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
7314 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
7315 TARGET_32BIT final condition.
7316 (mulsi3_internal2 and splitter): Same.
7318 2013-10-23 Jeff Law <law@redhat.com>
7320 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
7321 through joiner blocks with abnormal outgoing edges.
7323 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
7324 Add parameter JOINERS, to allow/disallow threading through joiner
7326 (thread_block): New. Call thread_block_1.
7327 (mark_threaded_blocks): Remove code to filter out certain cases
7328 of threading through joiner blocks.
7329 (thread_through_all_blocks): Document how we can have a dangling
7330 edge AUX field and clear it.
7332 2013-10-23 Ian Lance Taylor <iant@google.com>
7334 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
7335 (C++ Dialect Options): Likewise.
7336 (Optimize Options): Likewise.
7338 2013-10-23 Tom de Vries <tom@codesourcery.com>
7340 PR tree-optimization/58805
7341 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
7343 2013-10-23 Jakub Jelinek <jakub@redhat.com>
7345 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
7346 sequence based on get_range_info returned range.
7348 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
7350 * tree-ssa.h: Remove all #include's
7351 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
7352 * alias.c: Move required includes from tree-ssa.h.
7354 * builtins.c: Likewise.
7355 * calls.c: Likewise.
7356 * cfgexpand.c: Likewise.
7357 * cfghooks.c: Likewise.
7358 * cfgloop.c: Likewise.
7359 * cfgloopmanip.c: Likewise.
7360 * cgraph.c: Likewise.
7361 * cgraphbuild.c: Likewise.
7362 * cgraphclones.c: Likewise.
7363 * cgraphunit.c: Likewise.
7365 * except.c: Likewise.
7367 * final.c: Likewise.
7368 * fold-const.c: Likewise.
7369 * ggc-page.c: Likewise.
7370 * gimple-builder.c: Likewise.
7371 * gimple-fold.c: Likewise.
7372 * gimple-iterator.c: Likewise.
7373 * gimple-low.c: Likewise.
7374 * gimple-pretty-print.c: Likewise.
7375 * gimple-ssa-strength-reduction.c: Likewise.
7376 * gimple-streamer-in.c: Likewise.
7377 * gimple-streamer-out.c: Likewise.
7378 * gimplify.c: Likewise.
7379 * graphite-blocking.c: Likewise.
7380 * graphite-clast-to-gimple.c: Likewise.
7381 * graphite-dependences.c: Likewise.
7382 * graphite-interchange.c: Likewise.
7383 * graphite-optimize-isl.c: Likewise.
7384 * graphite-poly.c: Likewise.
7385 * graphite-scop-detection.c: Likewise.
7386 * graphite-sese-to-poly.c: Likewise.
7387 * graphite.c: Likewise.
7388 * ipa-cp.c: Likewise.
7389 * ipa-inline-analysis.c: Likewise.
7390 * ipa-inline-transform.c: Likewise.
7391 * ipa-inline.c: Likewise.
7392 * ipa-prop.c: Likewise.
7393 * ipa-pure-const.c: Likewise.
7394 * ipa-reference.c: Likewise.
7395 * ipa-split.c: Likewise.
7396 * ipa-utils.c: Likewise.
7397 * loop-init.c: Likewise.
7398 * lto-cgraph.c: Likewise.
7399 * lto-section-in.c: Likewise.
7400 * lto-section-out.c: Likewise.
7401 * lto-streamer-in.c: Likewise.
7402 * lto-streamer-out.c: Likewise.
7403 * lto-streamer.c: Likewise.
7404 * omp-low.c: Likewise.
7405 * passes.c: Likewise.
7406 * predict.c: Likewise.
7407 * print-tree.c: Likewise.
7408 * profile.c: Likewise.
7410 * targhooks.c: Likewise.
7411 * tracer.c: Likewise.
7412 * trans-mem.c: Likewise.
7413 * tree-call-cdce.c: Likewise.
7414 * tree-cfg.c: Likewise.
7415 * tree-cfgcleanup.c: Likewise.
7416 * tree-chrec.c: Likewise.
7417 * tree-complex.c: Likewise.
7418 * tree-data-ref.c: Likewise.
7419 * tree-dfa.c: Likewise.
7420 * tree-eh.c: Likewise.
7421 * tree-emutls.c: Likewise.
7422 * tree-if-conv.c: Likewise.
7423 * tree-inline.c: Likewise.
7424 * tree-into-ssa.c: Likewise.
7425 * tree-loop-distribution.c: Likewise.
7426 * tree-mudflap.c: Likewise.
7427 * tree-nested.c: Likewise.
7428 * tree-nrv.c: Likewise.
7429 * tree-object-size.c: Likewise.
7430 * tree-outof-ssa.c: Likewise.
7431 * tree-parloops.c: Likewise.
7432 * tree-phinodes.c: Likewise.
7433 * tree-predcom.c: Likewise.
7434 * tree-pretty-print.c: Likewise.
7435 * tree-profile.c: Likewise.
7436 * tree-scalar-evolution.c: Likewise.
7437 * tree-sra.c: Likewise.
7438 * tree-ssa-address.c: Likewise.
7439 * tree-ssa-alias.c: Likewise.
7440 * tree-ssa-ccp.c: Likewise.
7441 * tree-ssa-coalesce.c: Likewise.
7442 * tree-ssa-copy.c: Likewise.
7443 * tree-ssa-copyrename.c: Likewise.
7444 * tree-ssa-dce.c: Likewise.
7445 * tree-ssa-dom.c: Likewise.
7446 * tree-ssa-dse.c: Likewise.
7447 * tree-ssa-forwprop.c: Likewise.
7448 * tree-ssa-ifcombine.c: Likewise.
7449 * tree-ssa-live.c: Likewise.
7450 * tree-ssa-loop-ch.c: Likewise.
7451 * tree-ssa-loop-im.c: Likewise.
7452 * tree-ssa-loop-ivcanon.c: Likewise.
7453 * tree-ssa-loop-ivopts.c: Likewise.
7454 * tree-ssa-loop-manip.c: Likewise.
7455 * tree-ssa-loop-niter.c: Likewise.
7456 * tree-ssa-loop-prefetch.c: Likewise.
7457 * tree-ssa-loop-unswitch.c: Likewise.
7458 * tree-ssa-loop.c: Likewise.
7459 * tree-ssa-math-opts.c: Likewise.
7460 * tree-ssa-operands.c: Likewise.
7461 * tree-ssa-phiopt.c: Likewise.
7462 * tree-ssa-phiprop.c: Likewise.
7463 * tree-ssa-pre.c: Likewise.
7464 * tree-ssa-propagate.c: Likewise.
7465 * tree-ssa-reassoc.c: Likewise.
7466 * tree-ssa-sccvn.c: Likewise.
7467 * tree-ssa-sink.c: Likewise.
7468 * tree-ssa-strlen.c: Likewise.
7469 * tree-ssa-structalias.c: Likewise.
7470 * tree-ssa-tail-merge.c: Likewise.
7471 * tree-ssa-ter.c: Likewise.
7472 * tree-ssa-threadedge.c: Likewise.
7473 * tree-ssa-threadupdate.c: Likewise.
7474 * tree-ssa-uncprop.c: Likewise.
7475 * tree-ssa-uninit.c: Likewise.
7476 * tree-ssa.c: Likewise.
7477 * tree-ssanames.c: Likewise.
7478 * tree-stdarg.c: Likewise.
7479 * tree-streamer-in.c: Likewise.
7480 * tree-switch-conversion.c: Likewise.
7481 * tree-tailcall.c: Likewise.
7482 * tree-vect-data-refs.c: Likewise.
7483 * tree-vect-generic.c: Likewise.
7484 * tree-vect-loop-manip.c: Likewise.
7485 * tree-vect-loop.c: Likewise.
7486 * tree-vect-patterns.c: Likewise.
7487 * tree-vect-slp.c: Likewise.
7488 * tree-vect-stmts.c: Likewise.
7489 * tree-vectorizer.c: Likewise.
7490 * tree-vrp.c: Likewise.
7493 * value-prof.c: Likewise.
7494 * var-tracking.c: Likewise.
7495 * varpool.c: Likewise.
7496 * vtable-verify.c: Likewise.
7498 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7500 * config/tilegx/tilegx.c: Include "tree.h".
7502 2013-10-23 Jakub Jelinek <jakub@redhat.com>
7504 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
7505 the info, not after it.
7506 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
7507 dump_ssaname_info call.
7508 (pp_gimple_stmt_1): Adjust caller.
7509 (dump_phi_nodes): Likewise. Don't print "# " here.
7511 2013-10-22 Jan Hubicka <jh@suse.cz>
7513 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
7515 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
7516 * i386.c (expand_small_movmem_or_setmem): New function.
7517 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
7519 (alg_usable_p): Add support for value ranges; cleanup.
7520 (ix86_expand_set_or_movmem): Add support for misaligned moves.
7522 2013-10-22 Sterling Augustine <saugustine@google.com>
7524 * doc/invoke.texi: Document -ggnu-pubnames.
7525 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
7527 * dwarf2out.c: Include gdb/gdb-index.h.
7528 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
7529 debug_generate_pub_sections.
7530 (is_java, output_pubtables, output_pubname): New functions.
7531 (include_pubname_in_output): Handle debug_generate_pub_sections at
7533 (size_of_pubnames): Use new local space_for_flags based on
7534 debug_generate_pub_sections.
7535 (output_pubnames): Unify pubnames and pubtypes output logic.
7536 Genericize comments. Call output_pubname.
7537 (dwarf2out_finish): Move logic to output_pubnames and call it.
7539 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
7542 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
7543 Remove CCCmode handling.
7544 <case LTU>: Return 'c' suffix for CCCmode.
7545 <case GEU>: Return 'nc' suffix for CCCmode.
7546 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
7547 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
7548 (*sub<mode>3_cc_overflow): Ditto.
7549 (*subsi3_zext_cc_overflow): Ditto.
7551 2013-10-22 Steve Ellcey <sellcey@mips.com>
7553 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
7554 (AND (NOT OP1) (NOT OP2)).
7556 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
7558 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
7559 meaning of merge-high and merge-low masks for little endian; avoid
7560 use of vector-pack masks for little endian for mismatched modes.
7562 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7564 * config/tilepro/tilepro.c: Include "tree.h".
7566 2013-10-22 Andreas Schwab <schwab@suse.de>
7568 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
7571 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
7573 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
7574 [Ed Smith-Rowland]): New entries.
7575 ([Stephen M. Webb]): Update.
7577 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
7579 * tree-ssa-ter.h: Remove duplicate copy of file contents.
7581 2013-10-21 Marek Polacek <polacek@redhat.com>
7584 * fold-const.c (fold_range_test): Return 0 if the type is not
7587 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
7589 * system.h: Move hwint.h include further down.
7590 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
7591 gcc_checking_asserts.
7592 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
7594 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7596 Fix volatile issues in optimize_bit_field_compare.
7597 * fold-const.c (optimize_bit_field_compare): Bail out if
7598 lvolatilep or rvolatilep.
7600 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7602 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
7603 and get_inner_reference returning different pmode for non-volatile
7604 bit-field members dependent on flag_strict_volatile_bitfields.
7605 * stor-layout.c (layout_decl): Remove special handling of
7606 flag_strict_volatile_bitfields.
7607 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
7608 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
7610 2013-10-21 Paulo Matos <pmatos@broadcom.com>
7612 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
7615 2013-10-21 Jeff Law <law@redhat.com>
7617 * tree-ssa-threadedge.c (thread_through_normal_block): New
7618 argument VISITED. Remove VISISTED as a local variable. When we
7619 have a threadable jump, verify the destination of the jump has not
7621 (thread_across_edge): Allocate VISITED bitmap once at function
7622 scope and use it throughout. Make sure to set appropriate bits in
7623 VISITED for E (start of jump thread path).
7624 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
7625 through a joiner if any edge on the path has a recorded jump thread.
7627 2013-10-21 Ian Lance Taylor <iant@google.com>
7629 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
7630 don't imply that attributes can solve all problems.
7631 (Directory Options): Fix typo.
7633 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7635 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
7636 extend and extend_add.
7638 2013-10-21 Richard Biener <rguenther@suse.de>
7640 PR tree-optimization/58794
7641 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
7642 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
7644 2013-10-21 Richard Biener <rguenther@suse.de>
7647 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
7648 to (T) X for sign-changing conversions (or no conversion).
7650 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
7652 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
7654 2013-10-20 Jan Hubicka <jh@suse.cz>
7656 * config/i386/i386-tune.def: Add comment; organize into categories
7658 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
7660 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
7661 argument. Update function comment.
7662 (expand_set_or_movmem_via_rep): New function combining
7663 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
7664 (expand_movmem_via_rep_mov): Remove.
7665 expand_setmem_via_rep_stos): Remove.
7666 (expand_movmem_epilogue): Update calls correspondingly.
7667 (expand_setmem_epilogue_via_loop): Likewise.
7669 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
7670 (expand_set_or_movmem_prologue): New function combining
7671 expand_movmem_prologue and expand_setmem_prologue.
7672 (expand_movmem_prologue): Remove.
7673 (expand_setmem_prologue): Remove.
7674 (expand_set_or_movmem_constant_prologue): New function combining
7675 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
7676 (expand_constant_movmem_prologue): Remove.
7677 (expand_constant_setmem_prologue): Remove.
7678 (promote_duplicated_reg): Allow vector-const0 value.
7679 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
7680 and ix86_expand_setmem.
7681 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
7682 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
7684 2013-10-21 Diego Novillo <dnovillo@google.com>
7686 * asan.c: Include tree.h
7687 * bb-reorder.c: Likewise.
7688 * cfgcleanup.c: Likewise.
7689 * cfgloopmanip.c: Likewise.
7690 * data-streamer-in.c: Likewise.
7691 * data-streamer-out.c: Likewise.
7692 * data-streamer.c: Likewise.
7693 * dwarf2cfi.c: Likewise.
7694 * graphite-blocking.c: Likewise.
7695 * graphite-clast-to-gimple.c: Likewise.
7696 * graphite-dependences.c: Likewise.
7697 * graphite-interchange.c: Likewise.
7698 * graphite-optimize-isl.c: Likewise.
7699 * graphite-poly.c: Likewise.
7700 * graphite-scop-detection.c: Likewise.
7701 * graphite-sese-to-poly.c: Likewise.
7702 * graphite.c: Likewise.
7703 * ipa-devirt.c: Likewise.
7704 * ipa-profile.c: Likewise.
7707 * loop-init.c: Likewise.
7708 * loop-unroll.c: Likewise.
7709 * lower-subreg.c: Likewise.
7710 * lto/lto-object.c: Likewise.
7711 * recog.c: Likewise.
7712 * reginfo.c: Likewise.
7713 * tree-loop-distribution.c: Likewise.
7714 * tree-parloops.c: Likewise.
7715 * tree-ssa-strlen.c: Likewise.
7716 * tree-streamer.c: Likewise.
7717 * value-prof.c: Likewise.
7718 * target-globals.c: Likewise.
7719 * expr.h: Include tree-core.h instead of tree.h.
7720 * gimple.h: Likewise.
7721 * ipa-prop.h: Likewise.
7722 * ipa-utils.h: Likewise.
7723 * lto-streamer.h: Likewise.
7724 * streamer-hooks.h: Likewise.
7725 * ipa-reference.h: Include cgraph.h instead of tree.h.
7726 * cgraph.h: Include basic-block.h instead of tree.h.
7727 * tree-streamer.h: Do not include tree.h.
7728 * genattrtab.c (write_header): Generate inclusion of tree.h.
7729 * genautomata.c (main): Likewise.
7730 * genemit.c: Likewise.
7731 * genopinit.c: Likewise.
7732 * genoutput.c (output_prologue): Likewise.
7733 * genpeep.c: Likewise.
7735 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7737 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
7739 (vec_unpacku_hi_v8hi): Likewise.
7740 (vec_unpacku_lo_v16qi): Likewise.
7741 (vec_unpacku_lo_v8hi): Likewise.
7743 2013-10-20 Jan Hubicka <jh@suse.cz>
7745 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
7746 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
7747 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
7749 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
7751 * config/mips/mips.h (ISA_HAS_WSBH): Define.
7752 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
7754 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
7756 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
7759 * system.h: Undef m_slot.
7761 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7763 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
7764 all elements for both endian flavors.
7766 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
7769 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
7770 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
7771 and SI_REG for 64bit SYSV ABI targets.
7773 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
7775 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
7776 to multi_reg_return. Clarify that we are skipping USEs of multiple
7777 return registers. Use bool type where appropriate.
7779 2013-10-18 Jan Hubicka <jh@suse.cz>
7781 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
7783 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
7784 (X86_TUNE_PUSH_MEMORY): Likewise.
7785 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
7786 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
7787 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
7789 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
7790 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
7792 (ix86_option_override_internal): Update to use tune features instead
7795 2013-10-18 Cong Hou <congh@google.com>
7797 PR tree-optimization/58508
7798 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
7799 statement that contains data refs with zero-step.
7801 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
7803 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
7804 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
7805 * gimple-low.c (gimple_check_call_arg,
7806 gimple_check_call_matching_types): Move to cgraph.c.
7807 * gimple-low.h: Remove prototype.
7808 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
7809 Relocate from gimple-low.c.
7810 * cgraph.h: Add prototype. Don't include basic-block.h.
7811 * gimplify.c: Add gimple-low to include list.
7812 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
7813 * tree-eh.c: Add gimple-low to include list.
7814 * tree-nested.c: Likewise.
7815 * cfgexpand.c: Add tree-ssa-address.h to include list.
7817 * gimple-fold.c: Likewise.
7818 * gimple-ssa-strength-reduction.c: Likewise.
7819 * trans-mem.c: Likewise.
7820 * tree-mudflap.c: Likewise.
7821 * tree-ssa-loop-ivopts.c: Likewise.
7822 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
7823 (degenerate_phi_result): Move to tree-phinodes.c.
7824 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
7825 * tree-ssa-threadedge.c: Likewise.
7826 * tree-vrp.c: Likewise.
7827 * tree-phinodes.c (degenerate_phi_result): Relocate here.
7828 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
7829 * tree-phinodes.h (degenerate_phi_result): Add prototype.
7830 * tree-ssa-copy.c: Include tree-ssa-dom.h.
7831 * tree-ssa-forwprop.c: Likewise.
7832 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
7833 pass_data_cleanup_cfg_post_optimizing,
7834 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
7835 * tree-optimize.c: Delete File.
7836 * graphite.c: Include tree-cfgcleanup.h.
7837 * passes.c: Likewise.
7838 * tree-cfg.c: Likewise.
7839 * tree-profile.c: Likewise.
7840 * tree-ssa-dse.c: Likewise.
7841 * tree-ssa-loop-ivcanon.c: Likewise.
7842 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
7843 * tree-outof-ssa.c: Include sbitmap.h.
7844 * tree-ssa-live.c: Likewise.
7845 * tree-ssa-propagate.c: Likewise.
7846 * tree-ssa-structalias.c: Likewise.
7847 * tree-stdarg.c: Likewise.
7848 * Makefile.in (OBJS): Delete tree-optimize.o.
7849 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
7850 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
7851 * varasm.c: Include basic-block.h.
7852 * cfgloop.h: Include function.h instead of basic-block.h
7853 (bb_loop_depth): Move to cfgloop.c.
7854 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
7856 2013-10-18 Teresa Johnson <tejohnson@google.com>
7858 * predict.c (probably_never_executed): Compare frequency-based
7859 count to number of training runs.
7860 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
7862 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7864 * config/arm/arm.c (cortexa9_extra_costs): New table.
7865 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
7867 2013-10-18 Jeff Law <law@redhat.com>
7869 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
7871 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
7872 (register_jump_thread): Add "registered_jump_thread" debug
7874 * dbgcnt.def (registered_jump_thread): New debug counter.
7876 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
7878 * config/rs6000/rs6000.c: Include cgraph.h.
7880 2013-10-18 Teresa Johnson <tejohnson@google.com>
7882 * tree-ssa-tail-merge.c (replace_block_by): Update edge
7883 weights during merging.
7885 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
7887 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
7888 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
7889 * tree-ssa-operands.h: Remove prototype.
7890 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
7891 * gimple.c (virtual_operand_p): Relocate from gimple.c.
7892 * gimple.h: Add prototype.
7893 * gimple-ssa.h: Include tree-ssa-operands.h.
7894 * tree-dump.c: Add tree-cfg.h to include list.
7895 * tree-ssa-alias.c: Add ipa-reference.h to include list.
7896 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
7897 * config/i386/i386.c: Don't include tree-flow.h.
7898 * config/rs6000/rs6000.c: Likewise.
7900 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7902 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
7904 2013-10-18 Richard Biener <rguenther@suse.de>
7906 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
7907 or TYPE_UNSIGNED of integral types.
7908 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
7909 NULL_TREE for zero-precision integral types.
7911 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
7913 * config/aarch64/arm_neon.h
7914 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
7916 2013-10-17 Sriraman Tallam <tmsriram@google.com>
7919 * opth-gen.awk: Define target_flags_explicit.
7921 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
7923 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
7924 fields to the reg_addr array that describes the valid addressing
7925 mode for any register, general purpose registers, floating point
7926 registers, and Altivec registers.
7927 (FIRST_RELOAD_REG_CLASS): Likewise.
7928 (LAST_RELOAD_REG_CLASS): Likewise.
7929 (struct reload_reg_map_type): Likewise.
7930 (reload_reg_map_type): Likewise.
7931 (RELOAD_REG_VALID): Likewise.
7932 (RELOAD_REG_MULTIPLE): Likewise.
7933 (RELOAD_REG_INDEXED): Likewise.
7934 (RELOAD_REG_OFFSET): Likewise.
7935 (RELOAD_REG_PRE_INCDEC): Likewise.
7936 (RELOAD_REG_PRE_MODIFY): Likewise.
7937 (reg_addr): Likewise.
7938 (mode_supports_pre_incdec_p): New helper functions to say whether
7939 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
7940 (mode_supports_pre_modify_p): Likewise.
7941 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
7942 print the valid address mode bits for each mode.
7943 (rs6000_debug_print_mode): Likewise.
7944 (rs6000_debug_reg_global): Likewise.
7945 (rs6000_setup_reg_addr_masks): New function to set up the address
7946 mask bits for each type.
7947 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
7948 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
7949 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
7950 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
7951 PRE_MODIFY are supported.
7952 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
7953 registers, instead of {src,dest}_av_p.
7954 (rs6000_print_options_internal): Tweak the debug output slightly.
7956 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
7958 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
7961 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
7963 * tree-flow.h (struct omp_region): Move to omp-low.c.
7964 Remove omp_ prototypes and variables.
7965 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
7966 (copy_var_decl): Relocate prototype from tree-flow.h.
7967 * gimple.c (copy_var_decl): Relocate from omp-low.c.
7968 * tree.h: Move prototype to omp-low.h.
7969 * omp-low.h: New File. Relocate prototypes here.
7970 * omp-low.c (struct omp_region): Make local here.
7971 (root_omp_region): Make static.
7972 (copy_var_decl) Move to gimple.c.
7973 (new_omp_region): Make static.
7974 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
7975 * tree-cfg.c: Include omp-low.h.
7976 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
7977 * gimplify.c: Include omp-low.h.
7978 * tree-parloops.c: Likewise.
7980 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
7982 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
7983 operands are in memory, prefer to force non-matched operand 1 to
7986 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
7989 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
7990 restrict TImode addresses to single indirect registers if both
7991 -mquad-memory and -mvsx-timode are used.
7992 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
7993 we should emit load/store quad. Remove using %y for quad memory
7996 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
7997 constraints to allow load/store quad on machines where TImode is
7998 not allowed in VSX registers. Use 'n' instead of 'F' constraint
7999 for TImode to load integer constants.
8001 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8003 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
8005 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
8007 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
8008 handling of STACK_REG.
8010 2013-10-17 Richard Biener <rguenther@suse.de>
8012 PR tree-optimization/58143
8013 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
8015 (rewrite_to_defined_overflow): Likewise.
8016 (move_computations_dom_walker::before_dom): Rewrite stmts
8017 with undefined signed overflow that are not always executed
8018 into unsigned arithmetic.
8020 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
8023 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
8024 explicit isa flag to be an options variable, instead of using
8025 global_options_set. Remove define from rs6000.h.
8026 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
8028 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8029 Initialize rs6000_isa_flags_explicit.
8030 (rs6000_function_specific_save): Add gcc_options* parameter, so
8031 that the powerpc builds after the 2013-10-15 changes.
8032 (rs6000_function_specific_restore): Likewise.
8034 2013-10-16 DJ Delorie <dj@redhat.com>
8036 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
8037 op is a REG before checking REGNO.
8038 (rl78_alloc_physical_registers): Verify pattern is a SET before
8041 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8043 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
8045 (vec_unpacks_lo_v4sf): Likewise.
8046 (vec_unpacks_float_hi_v4si): Likewise.
8047 (vec_unpacks_float_lo_v4si): Likewise.
8048 (vec_unpacku_float_hi_v4si): Likewise.
8049 (vec_unpacku_float_lo_v4si): Likewise.
8051 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8053 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
8054 (vsx_concat_v2sf): Likewise.
8056 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
8058 * config/aarch64/aarch64.md
8059 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
8061 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
8063 PR tree-optimization/58697
8064 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
8065 estimated_loop_iterations_int.
8066 (max_stmt_executions_int): Call get_max_loop_iterations_int.
8067 (get_max_loop_iterations_int): New. HWINT version of
8068 get_max_loop_iterations.
8069 * cfgloop.h: Add prototypes.
8070 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
8071 * loop-unroll.c (decide_peel_once_rolling): Call
8072 get_estimated_loop_iterations_int.
8073 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
8074 * tree-ssa-loop-niter.h: Tweak prototypes.
8076 2013-10-16 David Malcolm <dmalcolm@redhat.com>
8078 * gengtype-parse.c (struct_field_seq): Ignore access-control
8079 keywords ("public:" etc).
8081 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
8083 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
8084 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
8086 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
8088 * config/arm/arm.opt (mlra): New option.
8089 * config/arm/arm.c (arm_lra_p): New function.
8090 (TARGET_LRA_P): Define.
8092 2013-10-16 Paulo Matos <pmatos@broadcom.com>
8094 * tree-core.h (tree_code_name): Remove.
8095 * tree.h (get_tree_code_name): New prototype.
8096 * tree.c (tree_code_name): Make static.
8097 (get_tree_code_name): New function.
8098 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
8099 tree_class_check_failed, tree_range_check_failed,
8100 tree_not_class_check_failed, omp_clause_check_failed,
8101 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
8102 wrapper get_tree_code_name instead of calling tree_code_name directly.
8103 * tree-vrp.c (dump_asserts_for): Likewise.
8104 * tree-dump.c (dequeue_and_dump): Likewise.
8105 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
8106 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
8107 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
8108 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
8109 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
8110 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
8111 dump_gimple_omp_for): Likewise.
8112 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
8113 * tree-ssa-pre.c (print_pre_expr): Likewise.
8114 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
8115 * print-tree.c (print_node_brief, print_node): Likewise.
8116 * gimple.c (gimple_check_failed): Likewise.
8117 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
8118 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
8119 * config/mep/mep.c (mep_validate_vliw): Likewise.
8120 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
8121 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
8123 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8125 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
8128 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
8130 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
8131 (MULTILIB_MATCHES): Add multilib for -march=v8.
8133 2013-10-15 Sriraman Tallam <tmsriram@google.com>
8136 * optc-save-gen.awk: Add extra parameter to the save and restore
8138 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
8139 * tree.c (build_optimization_node): New parameter. Add extra parameter
8140 to call to cl_optimization_save.
8141 (build_target_option_node): New parameter. Add extra parameter
8142 to call to cl_target_option_save.
8143 * tree.h (build_optimization_node): New parameter.
8144 (build_target_option_node): New parameter.
8145 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
8146 build_optimization_node and build_target_option_node.
8147 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
8148 (handle_pragma_push_options): Ditto.
8149 * toplev.c (process_options): Ditto.
8150 * opts.c (init_options_struct): Check for opts_set non-null.
8151 * target.def (target_option.save): New parameter.
8152 (target_option.restore): New parameter.
8153 * tm.texi: Generate.
8154 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
8155 (ix86_pragma_target_parse): Ditto.
8156 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
8158 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
8159 to build_optimization_node and build_target_option_node.
8160 (rs6000_valid_attribute_p): Ditto.
8161 (rs6000_pragma_target_parse): Ditto.
8162 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
8164 * config/i386/i386.h:
8165 TARGET_64BIT_P: New Macro
8166 TARGET_MMX_P: New Macro.
8167 TARGET_3DNOW_P: New Macro.
8168 TARGET_3DNOW_A_P: New Macro.
8169 TARGET_SSE_P: New Macro.
8170 TARGET_SSE2_P: New Macro.
8171 TARGET_SSE3_P: New Macro.
8172 TARGET_SSSE3_P: New Macro.
8173 TARGET_SSE4_1_P: New Macro.
8174 TARGET_SSE4_2_P: New Macro.
8175 TARGET_AVX_P: New Macro.
8176 TARGET_AVX2_P: New Macro.
8177 TARGET_AVX512F_P: New Macro.
8178 TARGET_AVX512PF_P: New Macro.
8179 TARGET_AVX512ER_P: New Macro.
8180 TARGET_AVX512CD_P: New Macro.
8181 TARGET_FMA_P: New Macro.
8182 TARGET_SSE4A_P: New Macro.
8183 TARGET_FMA4_P: New Macro.
8184 TARGET_XOP_P: New Macro.
8185 TARGET_LWP_P: New Macro.
8186 TARGET_ABM_P: New Macro.
8187 TARGET_BMI_P: New Macro.
8188 TARGET_BMI2_P: New Macro.
8189 TARGET_LZCNT_P: New Macro.
8190 TARGET_TBM_P: New Macro.
8191 TARGET_POPCNT_P: New Macro.
8192 TARGET_SAHF_P: New Macro.
8193 TARGET_MOVBE_P: New Macro.
8194 TARGET_CRC32_P: New Macro.
8195 TARGET_AES_P: New Macro.
8196 TARGET_PCLMUL_P: New Macro.
8197 TARGET_CMPXCHG16B_P: New Macro.
8198 TARGET_FSGSBASE_P: New Macro.
8199 TARGET_RDRND_P: New Macro.
8200 TARGET_F16C_P: New Macro.
8201 TARGET_RTM_P: New Macro.
8202 TARGET_HLE_P: New Macro.
8203 TARGET_RDSEED_P: New Macro.
8204 TARGET_PRFCHW_P: New Macro.
8205 TARGET_ADX_P: New Macro.
8206 TARGET_FXSR_P: New Macro.
8207 TARGET_XSAVE_P: New Macro.
8208 TARGET_XSAVEOPT_P: New Macro.
8209 TARGET_LP64_P: New Macro.
8210 TARGET_X32_P: New Macro.
8211 TARGET_FPMATH_DEFAULT_P: New Macro.
8212 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
8213 * config/i386/i386.c (ix86_option_override_internal): New parameters.
8215 Change ix86_tune_string to access opts->x_ix86_tune_string.
8216 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
8217 Change ix86_arch_string to access opts->x_ix86_arch_string.
8218 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
8219 Change ix86_pmode to access opts->x_ix86_pmode.
8220 Change ix86_abi to access opts->x_ix86_abi.
8221 Change ix86_cmodel to access opts->x_ix86_cmodel.
8222 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
8223 Change ix86_isa_flags_explicit to access
8224 opts->x_ix86_isa_flags_explicit.
8225 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
8226 Change ix86_regparm to access opts->x_ix86_regparm.
8227 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
8228 Change ix86_preferred_stack_boundary_arg to access
8229 opts->x_ix86_preferred_stack_boundary_arg.
8230 Change ix86_force_align_arg_pointer to access
8231 opts->x_ix86_force_align_arg_pointer.
8232 Change ix86_incoming_stack_boundar_arg to access
8233 opts->x_ix86_incoming_stack_boundar_arg.
8234 Change ix86_fpmath to access opts->x_ix86_fpmath.
8235 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
8236 Change ix86_recip_name to access opts->x_ix86_recip_name.
8237 Change ix86_stack_protector_guard to access
8238 opts->x_ix86_stack_protector_guard.
8239 Change ix86_tune_memcpy_strategy to access
8240 opts->x_ix86_tune_memcpy_strategy.
8241 Change ix86_tune_memset_strategy to access
8242 opts->x_ix86_tune_memset_strategy.
8243 Change global_options to access opts.
8244 Change global_options_set to access opts_set.
8245 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
8246 Change TARGET_MMX to TARGET_MMX_P (opts->...).
8247 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
8248 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
8249 Change TARGET_SSE to TARGET_SSE_P (opts->...).
8250 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
8251 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
8252 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
8253 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
8254 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
8255 Change TARGET_AVX to TARGET_AVX_P (opts->...).
8256 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
8257 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
8258 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
8259 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
8260 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
8261 Change TARGET_FMA to TARGET_FMA_P (opts->...).
8262 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
8263 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
8264 Change TARGET_XOP to TARGET_XOP_P (opts->...).
8265 Change TARGET_LWP to TARGET_LWP_P (opts->...).
8266 Change TARGET_ABM to TARGET_ABM_P (opts->...).
8267 Change TARGET_BMI to TARGET_BMI_P (opts->...).
8268 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
8269 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
8270 Change TARGET_TBM to TARGET_TBM_P (opts->...).
8271 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
8272 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
8273 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
8274 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
8275 Change TARGET_AES to TARGET_AES_P (opts->...).
8276 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
8277 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
8278 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
8279 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
8280 Change TARGET_F16C to TARGET_F16C_P (opts->...).
8281 Change TARGET_RTM to TARGET_RTM_P (opts->...).
8282 Change TARGET_HLE to TARGET_HLE_P (opts->...).
8283 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
8284 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
8285 Change TARGET_ADX to TARGET_ADX_P (opts->...).
8286 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
8287 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
8288 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
8289 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
8290 Change TARGET_X32 to TARGET_X32_P (opts->...).
8291 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
8292 Change TARGET_FLOAT_RETURNS_IN_80387 to
8293 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
8294 (ix86_function_specific_save): New parameter. Use opts-> fields
8295 to replace global fields.
8296 (ix86_function_specific_restore): Ditto.
8297 (ix86_valid_target_attribute_inner_p): New parameters.
8299 Fix call to ix86_handle_option and set_option.
8300 (ix86_valid_target_attribute_tree): New parameters.
8301 Change global_options to access opts.
8302 Change global_options_set to access opts_set.
8303 Fix call to ix86_valid_target_attribute_inner_p.
8304 Change ix86_tune_string to access opts->x_ix86_tune_string.
8305 Change ix86_arch_string to access opts->x_ix86_arch_string.
8306 Change ix86_fpmath to access opts->x_ix86_fpmath
8307 Fix call to ix86_option_override_internal.
8308 Fix call to ix86_add_new_builtins.
8309 Fix calls to build_optimization_node and build_target_option_node.
8310 (ix86_valid_target_attribute_p): Remove access to global_options.
8311 Use new gcc_options structure func_options.
8312 Fix call to ix86_valid_target_attribute_tree.
8313 Fix call to build_optimization_node.
8314 (get_builtin_code_for_version): Fix call to
8315 ix86_valid_target_attribute_tree.
8317 2013-10-15 David Malcolm <dmalcolm@redhat.com>
8319 * Makefile.in (PICFLAG): New.
8320 (enable_host_shared): New.
8321 (INTERNAL_CFLAGS): Use PICFLAG.
8322 (LIBIBERTY): Use pic build of libiberty.a if configured with
8323 --enable-host-shared.
8324 * configure.ac: Add --enable-host-shared, setting up new
8326 * configure: Regenerate.
8327 * doc/install.texi (--enable-shared): Add note contrasting it with ...
8328 (--enable-host-shared): New option.
8330 2013-10-15 Richard Biener <rguenther@suse.de>
8332 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
8333 for built-in functions.
8335 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
8337 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
8338 (optimize_range_tests_1): New function,
8339 extracted from optimize_range_tests.
8340 (optimize_range_tests_xor): Similarly.
8341 (optimize_range_tests_diff): New function.
8342 (optimize_range_tests): Use optimize_range_tests_1.
8344 2013-10-15 Cong Hou <congh@google.com>
8346 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
8347 requirement of the reduction pattern so that one operand of the
8348 reduction operation can come from outside of the loop.
8350 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8352 * config/arm/neon-schedgen.ml: Remove.
8353 * config/arm/cortex-a9-neon.md: Remove comment regarding
8356 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8358 * config/arm/types: Remove old neon types.
8360 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8362 * config/arm/cortex-a7.md
8363 (cortex_a7_neon_type): New.
8364 (cortex_a7_neon_mul): Update for new types.
8365 (cortex_a7_neon_mla): Likewise.
8366 (cortex_a7_neon): Likewise.
8368 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8370 * config/arm/cortex-a15-neon.md
8371 (cortex_a15_neon_type): New,
8373 (cortex_a15_neon_int_1): Remove.
8374 (cortex_a15_neon_int_2): Likewise.
8375 (cortex_a15_neon_int_3): Likewise.
8376 (cortex_a15_neon_int_4): Likewise.
8377 (cortex_a15_neon_int_5): Likewise.
8378 (cortex_a15_neon_vqneg_vqabs): Likewise.
8379 (cortex_a15_neon_vmov): Likewise.
8380 (cortex_a15_neon_vaba): Likewise.
8381 (cortex_a15_neon_vaba_qqq): Likewise.
8382 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8383 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8384 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8386 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8387 (cortex_a15_neon_mla_qqq_8_16): Likewise.
8388 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
8389 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8390 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8391 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
8392 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8393 (cortex_a15_neon_shift_1): Likewise.
8394 (cortex_a15_neon_shift_2): Likewise.
8395 (cortex_a15_neon_shift_3): Likewise.
8396 (cortex_a15_neon_vshl_ddd): Likewise.
8397 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8398 (cortex_a15_neon_vsra_vrsra): Likewise.
8399 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8400 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8401 (cortex_a15_neon_bp_3cycle): Likewise.
8402 (cortex_a15_neon_ldm_2): Likewise.
8403 (cortex_a15_neon_stm_2): Likewise.
8404 (cortex_a15_neon_mcr): Likewise.
8405 (cortex_a15_neon_mrc): Likewise.
8406 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
8407 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
8408 (cortex_a15_neon_fp_vmul_ddd): Likewise.
8409 (cortex_a15_neon_fp_vmul_qqd): Likewise.
8410 (cortex_a15_neon_fp_vmla_ddd): Likewise.
8411 (cortex_a15_neon_fp_vmla_qqq): Likewise.
8412 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
8413 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
8414 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8415 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8416 (cortex_a15_neon_bp_simple): Likewise.
8417 (cortex_a15_neon_bp_2cycle): Likewise.
8418 (cortex_a15_neon_bp_3cycle): Likewise.
8419 (cortex_a15_neon_vld1_1_2_regs): Likewise.
8420 (cortex_a15_neon_vld1_3_4_regs): Likewise.
8421 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8422 (cortex_a15_neon_vld2_4_regs): Likewise.
8423 (cortex_a15_neon_vld3_vld4): Likewise.
8424 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8425 (cortex_a15_neon_vst1_3_4_regs): Likewise.
8426 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
8427 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
8428 (cortex_a15_neon_vst3_vst4): Rename to...
8429 (cortex_a15_neon_vst4): This, update for new attributes.
8430 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
8431 (cortex_a15_neon_vld3_vld4_lane): Likewise.
8432 (cortex_a15_neon_vst1_vst2_lane): Likewise.
8433 (cortex_a15_neon_vst3_vst4_lane): Likewise.
8434 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
8435 (cortex_a15_neon_ldm_2): Likewise.
8436 (cortex_a15_neon_stm_2): Likewise.
8437 (cortex_a15_neon_mcr): Likewise.
8438 (cortex_a15_neon_mcr_2_mcrr): Likewise.
8439 (cortex_a15_neon_mrc): Likewise.
8440 (cortex_a15_neon_mrrc): Likewise.
8442 (cortex_a15_neon_abd): New.
8443 (cortex_a15_neon_abd_q): Likewise.
8444 (cortex_a15_neon_aba): Likewise.
8445 (cortex_a15_neon_aba_q): Likewise.
8446 (cortex_a15_neon_acc): Likewise.
8447 (cortex_a15_neon_acc_q): Likewise.
8448 (cortex_a15_neon_arith_basic): Likewise.
8449 (cortex_a15_neon_arith_complex): Likewise.
8450 (cortex_a15_neon_multiply): Likewise.
8451 (cortex_a15_neon_multiply_q): Likewise.
8452 (cortex_a15_neon_mla): Likewise.
8453 (cortex_a15_neon_mla_q): Likewise.
8454 (cortex_a15_neon_sat_mla_long): Likewise.
8455 (cortex_a15_neon_shift_acc): Likewise.
8456 (cortex_a15_neon_shift_imm_basic): Likewise.
8457 (cortex_a15_neon_shift_imm_complex): Likewise.
8458 (cortex_a15_neon_shift_reg_basic): Likewise.
8459 (cortex_a15_neon_shift_reg_basic_q): Likewise.
8460 (cortex_a15_neon_shift_reg_complex): Likewise.
8461 (cortex_a15_neon_shift_reg_complex_q): Likewise.
8462 (cortex_a15_neon_fp_negabs): Likewise
8463 (cortex_a15_neon_fp_arith): Likewise
8464 (cortex_a15_neon_fp_arith_q): Likewise
8465 (cortex_a15_neon_fp_cvt_int): Likewise
8466 (cortex_a15_neon_fp_cvt_int_q): Likewise
8467 (cortex_a15_neon_fp_cvt_16): Likewise
8468 (cortex_a15_neon_fp_mul): Likewise
8469 (cortex_a15_neon_fp_mul_q): Likewise
8470 (cortex_a15_neon_fp_mla): Likewise
8471 (cortex_a15_neon_fp_mla_q): Likewise
8472 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
8473 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
8474 (cortex_a15_neon_bitops): Likewise.
8475 (cortex_a15_neon_bitops_q): Likewise.
8476 (cortex_a15_neon_from_gp): Likewise.
8477 (cortex_a15_neon_from_gp_q): Likewise.
8478 (cortex_a15_neon_tbl3_tbl4): Likewise.
8479 (cortex_a15_neon_zip_q): Likewise.
8480 (cortex_a15_neon_to_gp): Likewise.
8481 (cortex_a15_neon_load_a): Likewise.
8482 (cortex_a15_neon_load_b): Likewise.
8483 (cortex_a15_neon_load_c): Likewise.
8484 (cortex_a15_neon_load_d): Likewise.
8485 (cortex_a15_neon_load_e): Likewise.
8486 (cortex_a15_neon_load_f): Likewise.
8487 (cortex_a15_neon_store_a): Likewise.
8488 (cortex_a15_neon_store_b): Likewise.
8489 (cortex_a15_neon_store_c): Likewise.
8490 (cortex_a15_neon_store_d): Likewise.
8491 (cortex_a15_neon_store_e): Likewise.
8492 (cortex_a15_neon_store_f): Likewise.
8493 (cortex_a15_neon_store_g): Likewise.
8494 (cortex_a15_neon_store_h): Likewise.
8495 (cortex_a15_vfp_to_from_gp): Likewise.
8497 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8499 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
8501 (cortex_a9_neon_vshl_ddd): Remove.
8502 (cortex_a9_neon_vst3_vst4): Likewise.
8503 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8505 (cortex_a9_neon_bit_ops_q): New.
8507 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
8508 (cortex_a9_neon_int_2): Likewise.
8509 (cortex_a9_neon_int_3): Likewise.
8510 (cortex_a9_neon_int_4): Likewise.
8511 (cortex_a9_neon_int_5): Likewise.
8512 (cortex_a9_neon_vqneg_vqabs): Likewise.
8513 (cortex_a9_neon_vmov): Likewise.
8514 (cortex_a9_neon_vaba): Likewise.
8515 (cortex_a9_neon_vaba_qqq): Likewise.
8516 (cortex_a9_neon_shift_1): Likewise.
8517 (cortex_a9_neon_shift_2): Likewise.
8518 (cortex_a9_neon_shift_3): Likewise.
8519 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8520 (cortex_a9_neon_vsra_vrsra): Likewise.
8521 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8522 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8523 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8525 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8526 (cortex_a9_neon_mla_qqq_8_16): Likewise.
8527 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8529 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8530 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8531 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
8532 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8533 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
8534 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
8535 (cortex_a9_neon_fp_vsum): Likewise.
8536 (cortex_a9_neon_fp_vmul_ddd): Likewise.
8537 (cortex_a9_neon_fp_vmul_qqd): Likewise.
8538 (cortex_a9_neon_fp_vmla_ddd): Likewise.
8539 (cortex_a9_neon_fp_vmla_qqq): Likewise.
8540 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
8541 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
8542 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8543 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8544 (cortex_a9_neon_bp_simple): Likewise.
8545 (cortex_a9_neon_bp_2cycle): Likewise.
8546 (cortex_a9_neon_bp_3cycle): Likewise.
8547 (cortex_a9_neon_ldr): Likewise.
8548 (cortex_a9_neon_str): Likewise.
8549 (cortex_a9_neon_vld1_1_2_regs): Likewise.
8550 (cortex_a9_neon_vld1_3_4_regs): Likewise.
8551 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8552 (cortex_a9_neon_vld2_4_regs): Likewise.
8553 (cortex_a9_neon_vld3_vld4): Likewise.
8554 (cortex_a9_neon_vld1_vld2_lane): Likewise.
8555 (cortex_a9_neon_vld3_vld4_lane): Likewise.
8556 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
8557 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8558 (cortex_a9_neon_vst1_3_4_regs): Likewise.
8559 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
8560 (cortex_a9_neon_vst1_vst2_lane): Likewise.
8561 (cortex_a9_neon_vst3_vst4_lane): Likewise.
8562 (cortex_a9_neon_mcr): Likewise.
8563 (cortex_a9_neon_mcr_2_mcrr): Likewise.
8564 (cortex_a9_neon_mrc): Likewise.
8565 (cortex_a9_neon_mrrc): Likewise.
8567 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8569 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
8571 (cortex_a8_neon_vshl_ddd): Remove.
8572 (cortex_a8_neon_vst3_vst4): Likewise.
8573 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
8575 (cortex_a8_neon_bit_ops_q): New.
8577 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
8578 (cortex_a8_neon_int_2): Likewise..
8579 (cortex_a8_neon_int_3): Likewise.
8580 (cortex_a8_neon_int_5): Likewise.
8581 (cortex_a8_neon_vqneg_vqabs): Likewise.
8582 (cortex_a8_neon_int_4): Likewise.
8583 (cortex_a8_neon_vaba): Likewise.
8584 (cortex_a8_neon_vaba_qqq): Likewise.
8585 (cortex_a8_neon_shift_1): Likewise.
8586 (cortex_a8_neon_shift_2): Likewise.
8587 (cortex_a8_neon_shift_3): Likewise.
8588 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
8589 (cortex_a8_neon_vsra_vrsra): Likewise.
8590 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8591 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
8592 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
8594 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
8595 (cortex_a8_neon_mla_qqq_8_16): Likewise.
8596 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
8598 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
8599 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
8600 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
8601 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
8602 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
8603 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
8604 (cortex_a8_neon_fp_vsum): Likewise.
8605 (cortex_a8_neon_fp_vmul_ddd): Likewise.
8606 (cortex_a8_neon_fp_vmul_qqd): Likewise.
8607 (cortex_a8_neon_fp_vmla_ddd): Likewise.
8608 (cortex_a8_neon_fp_vmla_qqq): Likewise.
8609 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
8610 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
8611 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
8612 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
8613 (cortex_a8_neon_bp_simple): Likewise.
8614 (cortex_a8_neon_bp_2cycle): Likewise.
8615 (cortex_a8_neon_bp_3cycle): Likewise.
8616 (cortex_a8_neon_ldr): Likewise.
8617 (cortex_a8_neon_str): Likewise.
8618 (cortex_a8_neon_vld1_1_2_regs): Likewise.
8619 (cortex_a8_neon_vld1_3_4_regs): Likewise.
8620 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
8621 (cortex_a8_neon_vld2_4_regs): Likewise.
8622 (cortex_a8_neon_vld3_vld4): Likewise.
8623 (cortex_a8_neon_vld1_vld2_lane): Likewise.
8624 (cortex_a8_neon_vld3_vld4_lane): Likewise.
8625 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
8626 (cortex_a8_neon_vst1_3_4_regs): Likewise.
8627 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
8628 (cortex_a8_neon_vst1_vst2_lane): Likewise.
8629 (cortex_a8_neon_vst3_vst4_lane): Likewise.
8630 (cortex_a8_neon_mcr): Likewise.
8631 (cortex_a8_neon_mcr_2_mcrr): Likewise.
8632 (cortex_a8_neon_mrc): Likewise.
8633 (cortex_a8_neon_mrrc): Likewise.
8635 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8637 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
8639 * config/aarch64/aarch64-simd.md (neon_type): Remove.
8640 (aarch64_simd_dup<mode>): Add "type" attribute.
8641 (aarch64_dup_lane<mode>): Likewise.
8642 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
8643 (*aarch64_simd_mov<mode>): Likewise.
8644 (aarch64_simd_mov_from_<mode>low): Likewise.
8645 (aarch64_simd_mov_from_<mode>high): Likewise.
8646 (orn<mode>3): Likewise.
8647 (bic<mode>3): Likewise.
8648 (add<mode>3): Likewise.
8649 (sub<mode>3): Likewise.
8650 (mul<mode>3): Likewise.
8651 (*aarch64_mul3_elt<mode>): Likewise.
8652 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
8653 (*aarch64_mul3_elt_to_128df): Likewise.
8654 (*aarch64_mul3_elt_to_64v2df): Likewise.
8655 (neg<mode>2): Likewise.
8656 (abs<mode>2): Likewise.
8657 (abd<mode>_3): Likewise.
8658 (aba<mode>_3): Likewise.
8659 (fabd<mode>_3): Likewise.
8660 (*fabd_scalar<mode>3): Likewise.
8661 (and<mode>3): Likewise.
8662 (ior<mode>3): Likewise.
8663 (xor<mode>3): Likewise.
8664 (one_cmpl<mode>2): Likewise.
8665 (aarch64_simd_vec_set<mode>): Likewise.
8666 (aarch64_simd_lshr<mode>): Likewise.
8667 (aarch64_simd_ashr<mode>): Likewise.
8668 (aarch64_simd_imm_shl<mode>): Likewise.
8669 (aarch64_simd_reg_sshl<mode): Likewise.
8670 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
8671 (aarch64_simd_reg_shl<mode>_signed): Likewise.
8672 (aarch64_simd_vec_setv2di): Likewise.
8673 (aarch64_simd_vec_set<mode>): Likewise.
8674 (aarch64_mla<mode>): Likewise.
8675 (*aarch64_mla_elt<mode>): Likewise.
8676 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
8677 (aarch64_mls<mode>): Likewise.
8678 (*aarch64_mls_elt<mode>): Likewise.
8679 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
8680 (<su><maxmin><mode>3): Likewise.
8681 (move_lo_quad_<mode>): Likewise.
8682 (aarch64_simd_move_hi_quad_<mode>): Likewise.
8683 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
8684 (vec_pack_trunc_<mode>): Likewise.
8685 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
8686 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
8687 (*aarch64_<su>mlal_lo<mode>): Likewise.
8688 (*aarch64_<su>mlal_hi<mode>): Likewise.
8689 (*aarch64_<su>mlsl_lo<mode>): Likewise.
8690 (*aarch64_<su>mlsl_hi<mode>): Likewise.
8691 (*aarch64_<su>mlal<mode>): Likewise.
8692 (*aarch64_<su>mlsl<mode>): Likewise.
8693 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
8694 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
8695 (add<mode>3): Likewise.
8696 (sub<mode>3): Likewise.
8697 (mul<mode>3): Likewise.
8698 (div<mode>3): Likewise.
8699 (neg<mode>2): Likewise.
8700 (abs<mode>2): Likewise.
8701 (fma<mode>4): Likewise.
8702 (*aarch64_fma4_elt<mode>): Likewise.
8703 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
8704 (*aarch64_fma4_elt_to_128df): Likewise.
8705 (*aarch64_fma4_elt_to_64v2df): Likewise.
8706 (fnma<mode>4): Likewise.
8707 (*aarch64_fnma4_elt<mode>): Likewise.
8708 (*aarch64_fnma4_elt_<vswap_width_name><mode>
8709 (*aarch64_fnma4_elt_to_128df): Likewise.
8710 (*aarch64_fnma4_elt_to_64v2df): Likewise.
8711 (<frint_pattern><mode>2): Likewise.
8712 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
8713 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
8714 (vec_unpacks_lo_v4sf): Likewise.
8715 (aarch64_float_extend_lo_v2df): Likewise.
8716 (vec_unpacks_hi_v4sf): Likewise.
8717 (aarch64_float_truncate_lo_v2sf): Likewise.
8718 (aarch64_float_truncate_hi_v4sf): Likewise.
8719 (aarch64_vmls<mode>): Likewise.
8720 (<su><maxmin><mode>3): Likewise.
8721 (<maxmin_uns><mode>3): Likewise.
8722 (reduc_<sur>plus_<mode>): Likewise.
8723 (reduc_<sur>plus_v2di): Likewise.
8724 (reduc_<sur>plus_v2si): Likewise.
8725 (reduc_<sur>plus_<mode>): Likewise.
8726 (aarch64_addpv4sf): Likewise.
8727 (clz<mode>2): Likewise.
8728 (reduc_<maxmin_uns>_<mode>): Likewise.
8729 (reduc_<maxmin_uns>_v2di): Likewise.
8730 (reduc_<maxmin_uns>_v2si): Likewise.
8731 (reduc_<maxmin_uns>_<mode>): Likewise.
8732 (reduc_<maxmin_uns>_v4sf): Likewise.
8733 (aarch64_simd_bsl<mode>_internal): Likewise.
8734 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
8735 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
8736 (aarch64_get_lane<mode>): Likewise.
8737 (*aarch64_combinez<mode>): Likewise.
8738 (aarch64_combine<mode>): Likewise.
8739 (aarch64_simd_combine<mode>): Likewise.
8740 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
8741 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
8742 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
8743 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
8744 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
8745 (aarch64_<sur>h<addsub><mode>): Likewise.
8746 (aarch64_<sur><addsub>hn<mode>): Likewise.
8747 (aarch64_<sur><addsub>hn2<mode>): Likewise.
8748 (aarch64_pmul<mode>): Likewise.
8749 (aarch64_<su_optab><optab><mode>): Likewise.
8750 (aarch64_<sur>qadd<mode>): Likewise.
8751 (aarch64_sqmovun<mode>): Likewise.
8752 (aarch64_<sur>qmovn<mode>): Likewise.
8753 (aarch64_s<optab><mode>): Likewise.
8754 (aarch64_sq<r>dmulh<mode>): Likewise.
8755 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8756 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
8757 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
8758 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
8759 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8760 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
8761 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
8762 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
8763 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
8764 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
8765 (aarch64_sqdmull<mode>): Likewise.
8766 (aarch64_sqdmull_lane<mode>_internal): Likewise.
8767 (aarch64_sqdmull_n<mode>): Likewise.
8768 (aarch64_sqdmull2<mode>_internal): Likewise.
8769 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
8770 (aarch64_sqdmull2_n<mode>_internal): Likewise.
8771 (aarch64_<sur>shl<mode>): Likewise.
8772 (aarch64_<sur>q<r>shl<mode>
8773 (aarch64_<sur>shll_n<mode>): Likewise.
8774 (aarch64_<sur>shll2_n<mode>): Likewise.
8775 (aarch64_<sur>shr_n<mode>): Likewise.
8776 (aarch64_<sur>sra_n<mode>): Likewise.
8777 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
8778 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
8779 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
8780 (aarch64_cm<optab><mode>): Likewise.
8781 (aarch64_cm<optab>di): Likewise.
8782 (aarch64_cm<optab><mode>): Likewise.
8783 (aarch64_cm<optab>di): Likewise.
8784 (aarch64_cmtst<mode>): Likewise.
8785 (aarch64_cmtstdi): Likewise.
8786 (aarch64_cm<optab><mode>): Likewise.
8787 (*aarch64_fac<optab><mode>): Likewise.
8788 (aarch64_addp<mode>): Likewise.
8789 (aarch64_addpdi): Likewise.
8790 (sqrt<mode>2): Likewise.
8791 (vec_load_lanesoi<mode>): Likewise.
8792 (vec_store_lanesoi<mode>): Likewise.
8793 (vec_load_lanesci<mode>): Likewise.
8794 (vec_store_lanesci<mode>): Likewise.
8795 (vec_load_lanesxi<mode>): Likewise.
8796 (vec_store_lanesxi<mode>): Likewise.
8797 (*aarch64_mov<mode>): Likewise.
8798 (aarch64_ld2<mode>_dreg): Likewise.
8799 (aarch64_ld2<mode>_dreg): Likewise.
8800 (aarch64_ld3<mode>_dreg): Likewise.
8801 (aarch64_ld3<mode>_dreg): Likewise.
8802 (aarch64_ld4<mode>_dreg): Likewise.
8803 (aarch64_ld4<mode>_dreg): Likewise.
8804 (aarch64_tbl1<mode>): Likewise.
8805 (aarch64_tbl2v16qi): Likewise.
8806 (aarch64_combinev16qi): Likewise.
8807 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
8808 (aarch64_st2<mode>_dreg): Likewise.
8809 (aarch64_st2<mode>_dreg): Likewise.
8810 (aarch64_st3<mode>_dreg): Likewise.
8811 (aarch64_st3<mode>_dreg): Likewise.
8812 (aarch64_st4<mode>_dreg): Likewise.
8813 (aarch64_st4<mode>_dreg): Likewise.
8814 (*aarch64_simd_ld1r<mode>): Likewise.
8815 (aarch64_frecpe<mode>): Likewise.
8816 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
8817 (aarch64_frecps<mode>): Likewise.
8819 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
8821 * config/arm/iterators.md (V_elem_ch): New.
8823 (VQH_type): Likewise.
8824 * config/arm/arm.md (is_neon_type): New.
8825 (conds): Use is_neon_type.
8826 (anddi3_insn): Update type attribute.
8827 (xordi3_insn): Likewise.
8828 (one_cmpldi2): Likewise.
8829 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
8830 * config/arm/neon.md (neon_mov): Update type attribute.
8831 (*movmisalign<mode>_neon_store): Likewise.
8832 (*movmisalign<mode>_neon_load): Likewise.
8833 (vec_set<mode>_internal): Likewise.
8834 (vec_set<mode>_internal): Likewise.
8835 (vec_setv2di_internal): Likewise.
8836 (vec_extract<mode>): Likewise.
8837 (vec_extract<mode>): Likewise.
8838 (vec_extractv2di): Likewise.
8839 (*add<mode>3_neon): Likewise.
8840 (adddi3_neon): Likewise.
8841 (*sub<mode>3_neon): Likewise.
8842 (subdi3_neon): Likewise.
8843 (fma<VCVTF:mode>4): Likewise.
8844 (fma<VCVTF:mode>4_intrinsic): Likewise.
8845 (*fmsub<VCVTF:mode>4): Likewise.
8846 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
8847 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
8848 (ior<mode>3): Likewise.
8849 (and<mode>3): Likewise.
8850 (orn<mode>3_neon): Likewise.
8851 (orndi3_neon): Likewise.
8852 (bic<mode>3_neon): Likewise.
8853 (bicdi3_neon): Likewise.
8854 (xor<mode>3): Likewise.
8855 (one_cmpl<mode>2): Likewise.
8856 (abs<mode>2): Likewise.
8857 (neg<mode>2): Likewise.
8858 (negdi2_neon): Likewise.
8859 (*umin<mode>3_neon): Likewise.
8860 (*umax<mode>3_neon): Likewise.
8861 (*smin<mode>3_neon): Likewise.
8862 (*smax<mode>3_neon): Likewise.
8863 (vashl<mode>3): Likewise.
8864 (vashr<mode>3_imm): Likewise.
8865 (vlshr<mode>3_imm): Likewise.
8866 (ashl<mode>3_signed): Likewise.
8867 (ashl<mode>3_unsigned): Likewise.
8868 (neon_load_count): Likewise.
8869 (ashldi3_neon_noclobber): Likewise.
8870 (ashldi3_neon): Likewise.
8871 (signed_shift_di3_neon): Likewise.
8872 (unsigned_shift_di3_neon): Likewise.
8873 (ashrdi3_neon_imm_noclobber): Likewise.
8874 (lshrdi3_neon_imm_noclobber): Likewise.
8875 (<shift>di3_neon): Likewise.
8876 (widen_ssum<mode>3): Likewise.
8877 (widen_usum<mode>3): Likewise.
8878 (quad_halves_<code>v4si): Likewise.
8879 (quad_halves_<code>v4sf): Likewise.
8880 (quad_halves_<code>v8hi): Likewise.
8881 (quad_halves_<code>v16qi): Likewise.
8882 (reduc_splus_v2di): Likewise.
8883 (neon_vpadd_internal<mode>): Likewise.
8884 (neon_vpsmin<mode>): Likewise.
8885 (neon_vpsmax<mode>): Likewise.
8886 (neon_vpumin<mode>): Likewise.
8887 (neon_vpumax<mode>): Likewise.
8888 (*ss_add<mode>_neon): Likewise.
8889 (*us_add<mode>_neon): Likewise.
8890 (*ss_sub<mode>_neon): Likewise.
8891 (*us_sub<mode>_neon): Likewise.
8892 (neon_vadd<mode>_unspec): Likewise.
8893 (neon_vaddl<mode>): Likewise.
8894 (neon_vaddw<mode>): Likewise.
8895 (neon_vhadd<mode>): Likewise.
8896 (neon_vqadd<mode>): Likewise.
8897 (neon_vaddhn<mode>): Likewise.
8898 (neon_vmul<mode>): Likewise.
8899 (neon_vfms<VCVTF:mode>): Likewise.
8900 (neon_vmlal<mode>): Likewise.
8901 (neon_vmls<mode>): Likewise.
8902 (neon_vmlsl<mode>): Likewise.
8903 (neon_vqdmulh<mode>): Likewise.
8904 (neon_vqdmlal<mode>): Likewise.
8905 (neon_vqdmlsl<mode>): Likewise.
8906 (neon_vmull<mode>): Likewise.
8907 (neon_vqdmull<mode>): Likewise.
8908 (neon_vsub<mode>_unspec): Likewise.
8909 (neon_vsubl<mode>): Likewise.
8910 (neon_vsubw<mode>): Likewise.
8911 (neon_vqsub<mode>): Likewise.
8912 (neon_vhsub<mode>): Likewise.
8913 (neon_vsubhn<mode>): Likewise.
8914 (neon_vceq<mode>): Likewise.
8915 (neon_vcge<mode>): Likewise.
8916 (neon_vcgeu<mode>): Likewise.
8917 (neon_vcgt<mode>): Likewise.
8918 (neon_vcgtu<mode>): Likewise.
8919 (neon_vcle<mode>): Likewise.
8920 (neon_vclt<mode>): Likewise.
8921 (neon_vcage<mode>): Likewise.
8922 (neon_vcagt<mode>): Likewise.
8923 (neon_vtst<mode>): Likewise.
8924 (neon_vabd<mode>): Likewise.
8925 (neon_vabdl<mode>): Likewise.
8926 (neon_vaba<mode>): Likewise.
8927 (neon_vabal<mode>): Likewise.
8928 (neon_vmax<mode>): Likewise.
8929 (neon_vmin<mode>): Likewise.
8930 (neon_vpaddl<mode>): Likewise.
8931 (neon_vpadal<mode>): Likewise.
8932 (neon_vpmax<mode>): Likewise.
8933 (neon_vpmin<mode>): Likewise.
8934 (neon_vrecps<mode>): Likewise.
8935 (neon_vrsqrts<mode>): Likewise.
8936 (neon_vqabs<mode>): Likewise.
8937 (neon_vqneg<mode>): Likewise.
8938 (neon_vcls<mode>): Likewise.
8939 (clz<mode>2): Likewise.
8940 (popcount<mode>2): Likewise.
8941 (neon_vrecpe<mode>): Likewise.
8942 (neon_vrsqrte<mode>): Likewise.
8943 (neon_vget_lane<mode>_sext_internal): Likewise.
8944 (neon_vget_lane<mode>_zext_internal): Likewise.
8945 (neon_vdup_n<mode>): Likewise.
8946 (neon_vdup_n<mode>): Likewise.
8947 (neon_vdup_nv2di): Likewise.
8948 (neon_vdup_lane<mode>_interal): Likewise.
8949 (*neon_vswp<mode>): Likewise.
8950 (neon_vcombine<mode>): Likewise.
8951 (float<mode><V_cvtto>2): Likewise.
8952 (floatuns<mode><V_cvtto>2): Likewise.
8953 (fix_trunc<mode><V_cvtto>2): Likewise.
8954 (fixuns_trunc<mode><V_cvtto>2
8955 (neon_vcvt<mode>): Likewise.
8956 (neon_vcvt<mode>): Likewise.
8957 (neon_vcvtv4sfv4hf): Likewise.
8958 (neon_vcvtv4hfv4sf): Likewise.
8959 (neon_vcvt_n<mode>): Likewise.
8960 (neon_vcvt_n<mode>): Likewise.
8961 (neon_vmovn<mode>): Likewise.
8962 (neon_vqmovn<mode>): Likewise.
8963 (neon_vqmovun<mode>): Likewise.
8964 (neon_vmovl<mode>): Likewise.
8965 (neon_vmul_lane<mode>): Likewise.
8966 (neon_vmul_lane<mode>): Likewise.
8967 (neon_vmull_lane<mode>): Likewise.
8968 (neon_vqdmull_lane<mode>): Likewise.
8969 (neon_vqdmulh_lane<mode>): Likewise.
8970 (neon_vqdmulh_lane<mode>): Likewise.
8971 (neon_vmla_lane<mode>): Likewise.
8972 (neon_vmla_lane<mode>): Likewise.
8973 (neon_vmlal_lane<mode>): Likewise.
8974 (neon_vqdmlal_lane<mode>): Likewise.
8975 (neon_vmls_lane<mode>): Likewise.
8976 (neon_vmls_lane<mode>): Likewise.
8977 (neon_vmlsl_lane<mode>): Likewise.
8978 (neon_vqdmlsl_lane<mode>): Likewise.
8979 (neon_vext<mode>): Likewise.
8980 (neon_vrev64<mode>): Likewise.
8981 (neon_vrev32<mode>): Likewise.
8982 (neon_vrev16<mode>): Likewise.
8983 (neon_vbsl<mode>_internal): Likewise.
8984 (neon_vshl<mode>): Likewise.
8985 (neon_vqshl<mode>): Likewise.
8986 (neon_vshr_n<mode>): Likewise.
8987 (neon_vshrn_n<mode>): Likewise.
8988 (neon_vqshrn_n<mode>): Likewise.
8989 (neon_vqshrun_n<mode>): Likewise.
8990 (neon_vshl_n<mode>): Likewise.
8991 (neon_vqshl_n<mode>): Likewise.
8992 (neon_vqshlu_n<mode>): Likewise.
8993 (neon_vshll_n<mode>): Likewise.
8994 (neon_vsra_n<mode>): Likewise.
8995 (neon_vsri_n<mode>): Likewise.
8996 (neon_vsli_n<mode>): Likewise.
8997 (neon_vtbl1v8qi): Likewise.
8998 (neon_vtbl2v8qi): Likewise.
8999 (neon_vtbl3v8qi): Likewise.
9000 (neon_vtbl4v8qi): Likewise.
9001 (neon_vtbl1v16qi): Likewise.
9002 (neon_vtbl2v16qi): Likewise.
9003 (neon_vcombinev16qi): Likewise.
9004 (neon_vtbx1v8qi): Likewise.
9005 (neon_vtbx2v8qi): Likewise.
9006 (neon_vtbx3v8qi): Likewise.
9007 (neon_vtbx4v8qi): Likewise.
9008 (*neon_vtrn<mode>_insn): Likewise.
9009 (*neon_vzip<mode>_insn): Likewise.
9010 (*neon_vuzp<mode>_insn): Likewise.
9011 (neon_vld1<mode>): Likewise.
9012 (neon_vld1_lane<mode>): Likewise.
9013 (neon_vld1_lane<mode>): Likewise.
9014 (neon_vld1_dup<mode>): Likewise.
9015 (neon_vld1_dup<mode>): Likewise.
9016 (neon_vld1_dupv2di): Likewise.
9017 (neon_vst1<mode>): Likewise.
9018 (neon_vst1_lane<mode>): Likewise.
9019 (neon_vst1_lane<mode>): Likewise.
9020 (neon_vld2<mode>): Likewise.
9021 (neon_vld2<mode>): Likewise.
9022 (neon_vld2_lane<mode>): Likewise.
9023 (neon_vld2_lane<mode>): Likewise.
9024 (neon_vld2_dup<mode>): Likewise.
9025 (neon_vst2<mode>): Likewise.
9026 (neon_vst2<mode>): Likewise.
9027 (neon_vst2_lane<mode>): Likewise.
9028 (neon_vst2_lane<mode>): Likewise.
9029 (neon_vld3<mode>): Likewise.
9030 (neon_vld3qa<mode>): Likewise.
9031 (neon_vld3qb<mode>): Likewise.
9032 (neon_vld3_lane<mode>): Likewise.
9033 (neon_vld3_lane<mode>): Likewise.
9034 (neon_vld3_dup<mode>): Likewise.
9035 (neon_vst3<mode>): Likewise.
9036 (neon_vst3qa<mode>): Likewise.
9037 (neon_vst3qb<mode>): Likewise.
9038 (neon_vst3_lane<mode>): Likewise.
9039 (neon_vst3_lane<mode>): Likewise.
9040 (neon_vld4<mode>): Likewise.
9041 (neon_vld4qa<mode>): Likewise.
9042 (neon_vld4qb<mode>): Likewise.
9043 (neon_vld4_lane<mode>): Likewise.
9044 (neon_vld4_lane<mode>): Likewise.
9045 (neon_vld4_dup<mode>): Likewise.
9046 (neon_vst4<mode>): Likewise.
9047 (neon_vst4qa<mode>): Likewise.
9048 (neon_vst4qb<mode>): Likewise.
9049 (neon_vst4_lane<mode>): Likewise.
9050 (neon_vst4_lane<mode>): Likewise.
9051 (neon_vec_unpack<US>_lo_<mode>): Likewise.
9052 (neon_vec_unpack<US>_hi_<mode>): Likewise.
9053 (neon_vec_<US>mult_lo_<mode>): Likewise.
9054 (neon_vec_<US>mult_hi_<mode>): Likewise.
9055 (neon_vec_<US>shiftl_<mode>): Likewise.
9056 (neon_unpack<US>_<mode>): Likewise.
9057 (neon_vec_<US>mult_<mode>): Likewise.
9058 (vec_pack_trunc_<mode>): Likewise.
9059 (neon_vec_pack_trunc_<mode>): Likewise.
9060 (neon_vabd<mode>_2): Likewise.
9061 (neon_vabd<mode>_3): Likewise.
9063 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9065 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
9066 (load_pair): Update type attribute.
9067 (store_pair): Update type attribute.
9068 * config/aarch64/iterators.md (q): New.
9070 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
9072 * config/arm/types.md: Add new types for Neon insns.
9074 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
9075 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9076 Sergey Lega <sergey.s.lega@intel.com>
9077 Anna Tikhonova <anna.tikhonova@intel.com>
9078 Ilya Tocar <ilya.tocar@intel.com>
9079 Andrey Turetskiy <andrey.turetskiy@intel.com>
9080 Ilya Verbin <ilya.verbin@intel.com>
9081 Kirill Yukhin <kirill.yukhin@intel.com>
9082 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9084 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
9085 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
9086 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
9088 (srcp14<mode>): Ditto.
9089 (rsqrt14<mode>): Ditto.
9090 (rsqrt14<mode>): Ditto.
9091 (avx512f_vmscalef<mode>): Ditto.
9092 (avx512f_scalef<mode>): Ditto.
9093 (avx512f_getexp<mode>): Ditto.
9094 (avx512f_sgetexp<mode>): Ditto.
9095 (avx512f_fixupimm<mode>): Ditto.
9096 (avx512f_sfixupimm<mode>): Ditto.
9097 (avx512f_rndscale<mode>): Ditto.
9098 (*avx512er_exp2<mode>): Ditto.
9099 (*avx512er_rcp28<mode>): Ditto.
9100 (avx512er_rsqrt28<mode>): Ditto.
9101 (avx512f_getmant<mode>): Ditto.
9102 (avx512f_getmant<mode>): Ditto.
9103 (avx512f_rndscale<mode>): Fix formatting.
9105 2013-10-15 Martin Jambor <mjambor@suse.cz>
9107 * ipa-utils.h (ipa_edge_within_scc): Declare.
9108 * ipa-cp.c (edge_within_scc): Moved...
9109 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
9111 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
9112 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9113 Sergey Lega <sergey.s.lega@intel.com>
9114 Anna Tikhonova <anna.tikhonova@intel.com>
9115 Ilya Tocar <ilya.tocar@intel.com>
9116 Andrey Turetskiy <andrey.turetskiy@intel.com>
9117 Ilya Verbin <ilya.verbin@intel.com>
9118 Kirill Yukhin <kirill.yukhin@intel.com>
9119 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9121 * config/i386/predicates.md (const_8_to_15_operand): New.
9122 (const_16_to_31_operand): Ditto.
9123 * config/i386/sse.md (V8FI): New.
9125 (reduc_splus_v8df): Ditto.
9126 (reduc_splus_v16sf): Ditto.
9127 (avx512f_vextract<shuffletype>32x4_1): Ditto.
9128 (vec_extract_hi_<mode>): Ditto.
9129 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
9130 (vec_set_lo_<mode>): Ditto.
9131 (vec_set_hi_<mode>): Ditto.
9132 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
9133 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
9134 (avx512f_pshufd_1): Ditto.
9135 (avx512f_broadcast<mode>): Ditto.
9136 (avx512f_broadcast<mode>): Ditto.
9137 (define_split): Split vec_extract_lo into move.
9138 (ssequartermode): Ditto.
9139 (ssedoublemode): Extened with wider modes.
9140 (vec_extract_lo_<mode>): Ditto.
9142 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
9143 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9144 Sergey Lega <sergey.s.lega@intel.com>
9145 Anna Tikhonova <anna.tikhonova@intel.com>
9146 Ilya Tocar <ilya.tocar@intel.com>
9147 Andrey Turetskiy <andrey.turetskiy@intel.com>
9148 Ilya Verbin <ilya.verbin@intel.com>
9149 Kirill Yukhin <kirill.yukhin@intel.com>
9150 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9152 * config/i386/predicates.md (register_or_constm1_operand): New.
9153 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
9154 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
9155 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
9156 UNSPEC_SCATTER_PREFETCH
9158 (avx512f_ucmp<mode>3): Ditto.
9159 (avx512f_vternlog<mode>): Ditto.
9160 (avx512f_align<mode>): Ditto.
9161 (<shift_insn><mode>3): Ditto.
9162 (avx512f_<rotate>v<mode>): Ditto.
9163 (avx512f_<rotate><mode>): Ditto.
9164 (avx512f_eq<mode>3): Ditto.
9165 (avx512f_eq<mode>3_1): Ditto.
9166 (avx512f_gt<mode>3): Ditto.
9167 (avx512f_testm<mode>3): Ditto.
9168 (avx512f_testnm<mode>3): Ditto.
9169 (avx512pf_gatherpf<mode>): Ditto.
9170 (*avx512pf_gatherpf<mode>_mask): Ditto.
9171 (*avx512pf_gatherpf<mode>): Ditto.
9172 (avx512pf_scatterpf<mode>): Ditto.
9173 (*avx512pf_scatterpf<mode>_mask): Ditto.
9174 (*avx512pf_scatterpf<mode>): Ditto.
9175 (avx512f_vec_dup_gpr<mode>): Ditto.
9176 (clz<mode>2): Ditto.
9177 (conflict<mode>): Ditto.
9178 (REDUC_SMINMAX_MODE): Extened with wider modes.
9179 (reduc_<code>_<mode>): Ditto.
9180 (vlshr<mode>3): Ditto.
9181 (vashl<mode>3): Ditto.
9183 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
9184 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9185 Sergey Lega <sergey.s.lega@intel.com>
9186 Anna Tikhonova <anna.tikhonova@intel.com>
9187 Ilya Tocar <ilya.tocar@intel.com>
9188 Andrey Turetskiy <andrey.turetskiy@intel.com>
9189 Ilya Verbin <ilya.verbin@intel.com>
9190 Kirill Yukhin <kirill.yukhin@intel.com>
9191 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9193 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
9196 (avx512fmaskmode): Ditto.
9197 (bcstscalarsuff): Ditto.
9198 (avx512f_blendm<mode>): Ditto.
9199 (cmp_imm_predicate): Ditto.
9200 (avx512f_cmp<mode>3): Ditto.
9201 (avx512f_vec_dup<mode>): Ditto.
9202 (avx512f_vec_dup_mem<mode>): Ditto.
9203 (avx512f_vpermi2var<mode>3): Ditto.
9204 (avx512f_vpermt2var<mode>3): Ditto.
9205 (vec_init<mode>): Ditto.
9206 (avx512f_gathersi<mode>): Ditto.
9207 (*avx512f_gathersi<mode>): Ditto.
9208 (*avx512f_gathersi<mode>_2): Ditto.
9209 (avx512f_gatherdi<mode>): Ditto.
9210 (*avx512f_gatherdi<mode>): Ditto.
9211 (*avx512f_gatherdi<mode>_2): Ditto.
9212 (avx512f_scattersi<mode>): Ditto.
9213 (*avx512f_scattersi<mode>): Ditto.
9214 (avx512f_scatterdi<mode>): Ditto.
9215 (*avx512f_scatterdi<mode>): Ditto.
9216 (sseintprefix): Extened with wider modes.
9217 (VEC_GATHER_IDXSI): Ditto.
9218 (VEC_GATHER_IDXDI): Ditto.
9219 (VEC_GATHER_SRCDI): Ditto.
9221 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9222 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9224 * config/arm/t-aprofile: New file.
9225 * config.gcc: Handle --with-multilib-list option.
9227 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
9229 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
9232 2013-10-15 Richard Biener <rguenther@suse.de>
9234 * tree-loop-distribution.c (build_empty_rdg): Inline into
9236 (rdg_flag_vertex): Inline into single user.
9237 (rdg_flag_vertex_and_dependent): Likewise.
9238 (build_rdg_partition_for_vertex): Remove processed bitmap.
9239 (rdg_build_partitions): Simplify.
9241 2013-10-15 Richard Biener <rguenther@suse.de>
9243 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
9244 Restructure forwarding through conversions and copies to
9245 avoid performing copy-propagation the wrong way. Adjust
9246 recursion invocations.
9247 (forward_propagate_addr_expr): Add argument stating if we
9248 are recursing from a single-use.
9249 (ssa_forward_propagate_and_combine): Adjust.
9251 2013-10-14 David Malcolm <dmalcolm@redhat.com>
9253 * dumpfile.h (gcc::dump_manager): New class, to hold state
9254 relating to dumpfile management.
9255 (get_dump_file_name): Remove in favor of method of dump_manager.
9256 (dump_initialized_p): Likewise.
9257 (dump_start): Likewise.
9258 (dump_finish): Likewise.
9259 (dump_switch_p): Likewise.
9260 (dump_register): Likewise.
9261 (get_dump_file_info): Likewise.
9262 * context.c (gcc::context::context): Construct the dump_manager
9264 * context.h (gcc::context::get_dumps): New.
9265 (gcc::context::m_dumps): New.
9266 * coverage.c (coverage_init): Port to dump_manager API.
9267 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
9268 (extra_dump_files_in_use): Likewise.
9269 (extra_dump_files_alloced): Likewise.
9270 (gcc::dump_manager::dump_manager): New.
9271 (dump_register): Convert to...
9272 (gcc::dump_manager::dump_register): ...method, replacing
9273 function-static next_dump with m_next_dump field.
9274 (get_dump_file_info): Convert to...
9275 (gcc::dump_manager::get_dump_file_info): ...method.
9276 (get_dump_file_name): Convert to...
9277 (gcc::dump_manager::get_dump_file_name): ...method.
9278 (dump_start): Convert to...
9279 (gcc::dump_manager::dump_start): ...method.
9280 (dump_finish): Convert to...
9281 (gcc::dump_manager::dump_finish): ...method.
9282 (dump_begin): Replace body with...
9283 (gcc::dump_manager::dump_begin): ...new method.
9284 (dump_phase_enabled_p): Convert to...
9285 (gcc::dump_manager::dump_phase_enabled_p): ...method.
9286 (dump_phase_enabled_p): Convert to...
9287 (gcc::dump_manager::dump_phase_enabled_p): ...method.
9288 (dump_initialized_p): Convert to...
9289 (gcc::dump_manager::dump_initialized_p): ...method.
9290 (dump_flag_name): Replace body with...
9291 (gcc::dump_manager::dump_flag_name): ...new method.
9292 (dump_enable_all): Convert to...
9293 (gcc::dump_manager::dump_enable_all): ...new method.
9294 (opt_info_enable_passes): Convert to...
9295 (gcc::dump_manager::opt_info_enable_passes): ...new method.
9296 (dump_switch_p_1): Convert to...
9297 (gcc::dump_manager::dump_switch_p_1): ...new method.
9298 (dump_switch_p): Convert to...
9299 (gcc::dump_manager::dump_switch_p): ...new method.
9300 (opt_info_switch_p): Port to dump_manager API.
9301 (enable_rtl_dump_file): Likewise.
9302 * opts-global.c (handle_common_deferred_options): Port to new
9304 * passes.c (pass_manager::finish_optimization_passes): Likewise.
9305 (pass_manager::register_one_dump_file): Likewise.
9306 (pass_manager::register_pass): Likewise.
9307 (pass_init_dump_file): Likewise.
9308 (pass_fini_dump_file): Likewise.
9309 * statistics.c (statistics_early_init): Likewise.
9311 2013-10-14 Richard Biener <rguenther@suse.de>
9313 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
9314 iterative_hash_canonical_type, gimple_canonical_type_hash,
9315 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
9316 gimple_register_canonical_type, print_gimple_types_stats,
9317 free_gimple_type_tables): Move to lto/lto.c
9318 (gt-gimple.h): Do not include.
9319 * gimple.h (gimple_register_canonical_type,
9320 print_gimple_types_stats, free_gimple_type_tables): Remove.
9321 * Makefile.in (GTFILES): Remove gimple.c.
9323 2013-10-14 Travis Snoozy <quandary@remstate.com>
9326 * config/msp430/msp430.c (msp430_option_override): Correct thinko
9327 scanning for msp430x targets.
9329 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
9332 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
9333 (registers_ok_for_ldd_peep): Move around.
9334 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
9335 * config/sparc/sparc.md (widening peepholes): Use it.
9337 2013-10-14 Richard Biener <rguenther@suse.de>
9341 * gimple.c (iterative_hash_canonical_type): Make sure to
9342 record the hash into the correct hashtable slot.
9344 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
9346 PR rtl-optimization/58662
9347 * combine.c (try_combine): Take into account death nodes on I2 when
9348 splitting a PARALLEL of two independent SETs. Fix dump message.
9350 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
9353 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
9354 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
9356 * config/sh/t-sh (sh_treg_combine.o): New entry.
9357 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
9358 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
9359 (register_sh_passes): New function. Register sh_treg_combine pass.
9360 (sh_option_override): Invoke it.
9361 (sh_canonicalize_comparison): Handle op0_preserve_value.
9362 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
9363 opportunities. Canonicalize branch condition.
9364 (nott): Allow only if pseudos can be created for non-SH2A.
9366 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
9369 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
9370 (ix86_expand_movmem): Replace copy_addr_to_reg with
9371 ix86_copy_addr_to_reg.
9372 (ix86_expand_setmem): Likewise.
9374 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
9376 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
9377 provided by ix86_fp_compare_mode instead of CCFPUmode.
9379 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
9381 * config/aarch64/arm_neon.h
9382 (vtbx<1,3>_<psu>8): Fix register constriants.
9384 2013-10-11 Jeff Law <law@redhat.com>
9386 PR tree-optimization/58640
9387 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9388 threading paths that cross over two loop entry points.
9390 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9392 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
9393 handle vector float as well.
9394 (*vsx_le_perm_load_v4si): Likewise.
9395 (*vsx_le_perm_store_v2di): Likewise.
9396 (*vsx_le_perm_store_v4si): Likewise.
9398 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9400 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
9401 directly to circumvent subtract from splat{31} workaround.
9402 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
9404 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
9405 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
9406 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
9407 (altivec_vperm_<mode>): Convert to define_insn_and_split to
9408 separate big and little endian logic.
9409 (*altivec_vperm_<mode>_internal): New define_insn.
9410 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
9411 separate big and little endian logic.
9412 (*altivec_vperm_<mode>_uns_internal): New define_insn.
9413 (vec_permv16qi): Add little endian logic.
9415 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
9417 * doc/extend.texi (returns_nonnull): Remove arguments.
9419 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9420 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9421 Sergey Lega <sergey.s.lega@intel.com>
9422 Anna Tikhonova <anna.tikhonova@intel.com>
9423 Ilya Tocar <ilya.tocar@intel.com>
9424 Andrey Turetskiy <andrey.turetskiy@intel.com>
9425 Ilya Verbin <ilya.verbin@intel.com>
9426 Kirill Yukhin <kirill.yukhin@intel.com>
9427 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9429 * config/i386/sse.md (VI48F_256_512): New.
9430 (avx2_permvar<mode>): Change to ...
9431 (<avx2_avx512f>_permvar<mode>): This.
9433 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9434 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9435 Sergey Lega <sergey.s.lega@intel.com>
9436 Anna Tikhonova <anna.tikhonova@intel.com>
9437 Ilya Tocar <ilya.tocar@intel.com>
9438 Andrey Turetskiy <andrey.turetskiy@intel.com>
9439 Ilya Verbin <ilya.verbin@intel.com>
9440 Kirill Yukhin <kirill.yukhin@intel.com>
9441 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9443 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
9444 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
9445 * config/i386/sse.md (VI4_AVX): New.
9446 (sf2simodelower): Ditto.
9447 (sse2_cvtps2dq): Change to ...
9448 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
9450 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9451 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9452 Sergey Lega <sergey.s.lega@intel.com>
9453 Anna Tikhonova <anna.tikhonova@intel.com>
9454 Ilya Tocar <ilya.tocar@intel.com>
9455 Andrey Turetskiy <andrey.turetskiy@intel.com>
9456 Ilya Verbin <ilya.verbin@intel.com>
9457 Kirill Yukhin <kirill.yukhin@intel.com>
9458 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9460 * config/i386/sse.md (V_512): New.
9462 (vcond<V_512:mode><VF_512:mode>): Ditto.
9463 (vcond<V_512:mode><VI_512:mode>): Ditto.
9464 (vcondu<V_512:mode><VI_512:mode>): Ditto.
9466 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9467 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9468 Sergey Lega <sergey.s.lega@intel.com>
9469 Anna Tikhonova <anna.tikhonova@intel.com>
9470 Ilya Tocar <ilya.tocar@intel.com>
9471 Andrey Turetskiy <andrey.turetskiy@intel.com>
9472 Ilya Verbin <ilya.verbin@intel.com>
9473 Kirill Yukhin <kirill.yukhin@intel.com>
9474 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9476 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
9477 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
9479 (fma<mode>4): Removed condition.
9480 (fms<mode>4): Ditto.
9481 (fnma<mode>4): Ditto.
9482 (fnms<mode>4): Ditto.
9483 (fma4i_fmadd_<mode>): Ditto.
9484 (*fma_fmadd_<mode>): Ditto.
9485 (*fma_fmsub_<mode>): Ditto.
9486 (*fma_fnmadd_<mode>): Ditto.
9487 (*fma_fnmsub_<mode>): Ditto.
9488 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
9489 (*fma_fmaddsub_<mode>): Ditto.
9490 (*fma_fmsubadd_<mode>): Ditto.
9491 (*fmai_fmadd_<mode>): Ditto.
9492 (*fmai_fmsub_<mode>): Ditto.
9493 (*fmai_fnmadd_<mode>): Ditto.
9494 (*fmai_fnmsub_<mode>): Ditto.
9496 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9497 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9498 Sergey Lega <sergey.s.lega@intel.com>
9499 Anna Tikhonova <anna.tikhonova@intel.com>
9500 Ilya Tocar <ilya.tocar@intel.com>
9501 Andrey Turetskiy <andrey.turetskiy@intel.com>
9502 Ilya Verbin <ilya.verbin@intel.com>
9503 Kirill Yukhin <kirill.yukhin@intel.com>
9504 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9506 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
9507 (VI124_256): Changed to ...
9508 (VI124_256_48_512): This.
9509 (ssepackmode): Extended with wider modes.
9510 (<code><mode>3): Changed iterator.
9511 (*avx2_<code><mode>3): Ditto.
9512 (vec_pack_trunc_<mode>): Ditto.
9514 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9515 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9516 Sergey Lega <sergey.s.lega@intel.com>
9517 Anna Tikhonova <anna.tikhonova@intel.com>
9518 Ilya Tocar <ilya.tocar@intel.com>
9519 Andrey Turetskiy <andrey.turetskiy@intel.com>
9520 Ilya Verbin <ilya.verbin@intel.com>
9521 Kirill Yukhin <kirill.yukhin@intel.com>
9522 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9524 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
9525 (VI8F_256_512): Ditto.
9526 (abs<mode>2): Changed iterator.
9527 (avx2_perm<mode>): Changed to ...
9528 (<avx2_avx512f>_perm<mode>): This.
9529 (avx2_perm<mode>_1): Changed to ...
9530 (<avx2_avx512f>_perm<mode>_1): This.
9532 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9533 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9534 Sergey Lega <sergey.s.lega@intel.com>
9535 Anna Tikhonova <anna.tikhonova@intel.com>
9536 Ilya Tocar <ilya.tocar@intel.com>
9537 Andrey Turetskiy <andrey.turetskiy@intel.com>
9538 Ilya Verbin <ilya.verbin@intel.com>
9539 Kirill Yukhin <kirill.yukhin@intel.com>
9540 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9542 * config/i386/sse.md (VI48_AVX512F): New.
9543 (VI48_AVX2): Changed to ...
9544 (VI48_AVX2_48_AVX512F): This.
9545 (avx2_ashrv<mode>): Changed to ...
9546 (<avx2_avx512f>_ashrv<mode>): This.
9547 (avx2_<shift_insn>v<mode>): Changed to ...
9548 (<avx2_avx512f>_<shift_insn>v<mode>): This.
9550 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9551 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9552 Sergey Lega <sergey.s.lega@intel.com>
9553 Anna Tikhonova <anna.tikhonova@intel.com>
9554 Ilya Tocar <ilya.tocar@intel.com>
9555 Andrey Turetskiy <andrey.turetskiy@intel.com>
9556 Ilya Verbin <ilya.verbin@intel.com>
9557 Kirill Yukhin <kirill.yukhin@intel.com>
9558 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9560 * config/i386/sse.md (VI4_AVX512F): New.
9561 (VI8_AVX2_AVX512F): Ditto.
9562 (mul<mode>3): Extended with wider modes.
9563 (*<sse4_1_avx2>_mul<mode>3): Ditto.
9564 (mul<mode>3): Ditto.
9565 (vec_widen_<s>mult_odd_<mode>): Ditto.
9567 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9568 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9569 Sergey Lega <sergey.s.lega@intel.com>
9570 Anna Tikhonova <anna.tikhonova@intel.com>
9571 Ilya Tocar <ilya.tocar@intel.com>
9572 Andrey Turetskiy <andrey.turetskiy@intel.com>
9573 Ilya Verbin <ilya.verbin@intel.com>
9574 Kirill Yukhin <kirill.yukhin@intel.com>
9575 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9577 * config/i386/sse.md (VI2_AVX512F): New.
9578 (VI124_AVX512F): Ditto.
9579 (sseunpackmode): Extended with wider modes.
9580 (sseunpackfltmode): Ditto.
9581 (vec_unpacks_float_hi_<mode>): Ditto.
9582 (vec_unpacks_float_lo_<mode>): Ditto.
9583 (vec_unpacku_float_hi_<mode>): Ditto.
9584 (vec_unpacku_float_lo_<mode>): Ditto.
9585 (vec_unpacks_lo_<mode>): Ditto.
9586 (vec_unpacks_hi_<mode>): Ditto.
9587 (vec_unpacku_lo_<mode>): Ditto.
9588 (vec_unpacku_hi_<mode>): Ditto.
9590 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9591 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9592 Sergey Lega <sergey.s.lega@intel.com>
9593 Anna Tikhonova <anna.tikhonova@intel.com>
9594 Ilya Tocar <ilya.tocar@intel.com>
9595 Andrey Turetskiy <andrey.turetskiy@intel.com>
9596 Ilya Verbin <ilya.verbin@intel.com>
9597 Kirill Yukhin <kirill.yukhin@intel.com>
9598 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9600 * config/i386/i386.md (multdiv): New.
9601 (multdiv_mnemonic): Ditto.
9602 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
9603 (<sse>_vm<multdiv_mnemonic><mode>3): This.
9604 (<sse>_vmdiv<mode>3): Removed.
9606 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9607 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9608 Sergey Lega <sergey.s.lega@intel.com>
9609 Anna Tikhonova <anna.tikhonova@intel.com>
9610 Ilya Tocar <ilya.tocar@intel.com>
9611 Andrey Turetskiy <andrey.turetskiy@intel.com>
9612 Ilya Verbin <ilya.verbin@intel.com>
9613 Kirill Yukhin <kirill.yukhin@intel.com>
9614 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9616 * config/i386/sse.md (V): Extended with wider modes.
9618 (ssehalfvecmode): Ditto.
9620 (ssepackfltmode): Ditto.
9621 (avx_vec_concat<mode>): Ditto.
9622 (V_256_512): New iterator.
9623 (VF2_512_256): Ditto.
9624 (si2dfmode): New attribute.
9625 (si2dfmodelower): Ditto.
9627 (concat_tg_mode): Ditto.
9628 (floatv4siv4df2): Changed to ...
9629 (float<si2dfmodelower><mode>2): This.
9630 (avx_cvtps2pd256): Changed to ...
9631 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
9632 (vec_pack_trunc_v4df): Changed to ...
9633 (vec_pack_trunc_<mode>): This.
9634 (avx_vpermil<mode>): Changed to ...
9635 (<sse2_avx_avx512f>_vpermil<mode>): This.
9636 (<fixsuffix>fix_truncv8dfv8si2): New.
9637 (vec_pack_sfix_trunc_v8df): Ditto.
9638 (avx512f_rndscale<mode>): Ditto.
9639 (avx512f_roundpd512): Ditto.
9640 (vec_pack_ufix_trunc_<mode>): Updated iterator.
9642 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9643 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9644 Sergey Lega <sergey.s.lega@intel.com>
9645 Anna Tikhonova <anna.tikhonova@intel.com>
9646 Ilya Tocar <ilya.tocar@intel.com>
9647 Andrey Turetskiy <andrey.turetskiy@intel.com>
9648 Ilya Verbin <ilya.verbin@intel.com>
9649 Kirill Yukhin <kirill.yukhin@intel.com>
9650 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9652 * config/i386/i386.md (any_fix): New iterator.
9653 (fixsuffix): New attribute.
9654 * config/i386/sse.md (VF1): Extened with wider modes.
9658 (sseintvecmodelower): Ditto.
9659 (ssescalarmode): Ditto.
9660 (ssescalarnum): Ditto.
9662 (ssexmmmode): Ditto.
9663 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
9664 (<sse>_rcp<mode>2): Change iterator.
9665 (rsqrt<mode>2): Ditto.
9666 (<sse>_rsqrt<mode>2): Ditto.
9667 (avx2_vec_dup<mode>): Ditto.
9668 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
9669 (round<mode>2_sfix): Ditto.
9670 (avx2_pbroadcast<mode>): Ditto.
9671 (*andnot<mode>3): Handle XI mode.
9672 (*<code><mode>3): Ditto.
9673 (AVXTOSSEMODE): Removed.
9674 (avx_vpermil<mode>): Changed to ...
9675 (<sse2_avx_avx512f>_vpermil<mode>): This.
9677 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9678 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9679 Sergey Lega <sergey.s.lega@intel.com>
9680 Anna Tikhonova <anna.tikhonova@intel.com>
9681 Ilya Tocar <ilya.tocar@intel.com>
9682 Andrey Turetskiy <andrey.turetskiy@intel.com>
9683 Ilya Verbin <ilya.verbin@intel.com>
9684 Kirill Yukhin <kirill.yukhin@intel.com>
9685 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9687 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
9688 (<sse>_comi): Ditto.
9689 (<sse>_ucomi): Ditto.
9690 (sse_cvtss2siq_2): Ditto.
9691 (sse2_cvtsd2si): Ditto.
9692 (sse2_cvtsd2siq): Ditto.
9693 (sse2_cvttsd2si): Ditto.
9694 (sse2_cvttsd2siq): Ditto.
9695 (<shift_insn><mode>3): Ditto.
9696 (sse2_cvtsi2sdq): Update constraint and prefix.
9697 (sse_cvtsi2ss): Update prefix.
9698 (sse_cvtsi2ssq): Ditto.
9700 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9702 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
9703 ignore internal calls.
9705 2013-10-11 Richard Biener <rguenther@suse.de>
9707 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
9708 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
9709 TREE_OVERFLOW is set.
9711 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9713 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
9715 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
9716 * gimple.h: Likewise.
9718 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
9720 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
9723 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
9725 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
9726 * configure: Regenerate.
9728 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9730 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
9731 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
9732 formatting fixes, use pp_colon instead of pp_character (..., ':'),
9733 similarly pp_right_paren.
9734 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
9735 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
9736 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
9737 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
9739 (omp_declare_simd_clauses_equal,
9740 omp_remove_redundant_declare_simd_attrs): New functions.
9741 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
9742 (walk_tree_1): Handle new OpenMP 4.0 clauses.
9743 * tree.h (OMP_LOOP_CHECK): Define.
9744 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
9745 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
9746 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
9747 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
9748 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
9749 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
9750 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
9751 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
9752 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
9753 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
9754 OMP_CLAUSE_SIMDLEN_EXPR): Define.
9755 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
9756 (omp_remove_redundant_declare_simd_attrs): New prototype.
9757 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
9758 GIMPLE_OMP_TEAMS): New codes.
9759 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
9760 * omp-low.c (struct omp_context): Add cancel_label and cancellable
9762 (target_nesting_level): New variable.
9763 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
9764 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
9765 for collapse > 1 static schedule unless ordered.
9766 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
9767 (determine_parallel_type): Adjust get_ws_args_for caller.
9768 (install_var_field): Handle mask & 4 for double indirection.
9769 (scan_sharing_clauses): Ignore shared clause on teams construct.
9770 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
9771 (create_omp_child_function): If inside target or declare target
9772 constructs, set "omp declare target" attribute on the child function.
9773 (find_combined_for): New function.
9774 (scan_omp_parallel): Handle combined loops.
9775 (scan_omp_target, scan_omp_teams): New functions.
9776 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
9777 restrictions and set ctx->cancellable for cancellable constructs.
9778 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
9779 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
9780 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
9781 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
9782 (omp_clause_aligned_alignment): New function.
9783 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
9784 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
9785 on teams constructs. Handle user defined reductions and new
9787 (lower_reduction_clauses): Don't set placeholder to address of ref
9788 if it has already the right type.
9789 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
9790 (expand_parallel_call): Use the new non-_start suffixed builtins,
9791 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
9792 and GOMP_parallel_end after the call.
9793 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
9794 (expand_omp_for_init_counts): Handle combined loops.
9795 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
9797 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
9798 end of cancellable loops.
9799 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
9800 Likewise. Handle collapse > 1 loops.
9801 (expand_omp_simd): Handle combined loops.
9802 (expand_omp_for): Add inner_stmt argument, adjust callers of
9803 expand_omp_for* functions, use expand_omp_for_static*chunk even
9804 for collapse > 1 unless ordered.
9805 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
9806 of cancellable sections.
9807 (expand_omp_single): Remove need_barrier variable, just rely on
9808 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
9809 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
9810 (expand_omp_atomic_load, expand_omp_atomic_store,
9811 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
9812 (expand_omp_target): New function.
9813 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
9814 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
9815 (build_omp_regions_1): Immediately close region for
9816 GF_OMP_TARGET_KIND_UPDATE.
9817 (maybe_add_implicit_barrier_cancel): New function.
9818 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
9820 (lower_omp_single): Likewise. Add clobber after the barrier.
9821 (lower_omp_taskgroup): New function.
9822 (lower_omp_for): Handle combined loops. Adjust
9823 lower_rec_input_clauses caller. Handle cancellation.
9824 (lower_depend_clauses): New function.
9825 (lower_omp_taskreg): Lower depend clauses. Adjust
9826 lower_rec_input_clauses caller. Add clobber after the call. Handle
9828 (lower_omp_target, lower_omp_teams): New functions.
9829 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
9830 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
9831 and GOMP_cancellation_point calls.
9832 (lower_omp): Fold stmts inside of target region.
9833 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
9834 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
9835 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
9836 (BT_FN_VOID_OMPFN_PTR_UINT,
9837 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
9838 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
9839 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
9840 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
9841 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
9842 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
9843 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
9844 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9845 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9846 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
9847 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9848 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
9849 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
9850 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
9851 BUILT_IN_GOMP_PARALLEL_END.
9852 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
9853 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
9854 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
9855 GF_OMP_FOR_KIND_DISTRIBUTE.
9856 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
9857 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
9858 (dump_gimple_omp_return): Print lhs if it has any.
9859 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
9860 gimple_omp_atomic_seq_cst_p.
9861 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
9862 and GIMPLE_OMP_TEAMS.
9863 * langhooks.c (lhd_omp_mappable_type): New function.
9864 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
9865 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
9867 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
9868 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
9869 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
9870 (struct gimplify_omp_ctx): Add combined_loop field.
9871 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
9872 on stmts inside of target region.
9873 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
9874 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
9875 ORT_TARGET and ORT_TARGET_DATA.
9876 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
9878 (omp_notice_threadprivate_variable): Complain about threadprivate
9879 variables in target region.
9880 (omp_notice_variable): Complain about vars with non-mappable type
9881 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
9882 (omp_check_private): Ignore ORT_TARGET* regions.
9883 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
9884 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
9885 (find_combined_omp_for): New function.
9886 (gimplify_omp_for): Handle gimplification of combined loops.
9887 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
9889 (gimplify_omp_target_update): New function.
9890 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
9891 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
9892 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
9893 (gimplify_body): If fndecl has "omp declare target" attribute, add
9894 implicit ORT_TARGET context around it.
9895 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
9896 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
9897 * tree-nested.c (convert_nonlocal_reference_stmt,
9898 convert_local_reference_stmt, convert_gimple_call): Handle
9899 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9900 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
9901 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
9902 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
9903 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
9904 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
9905 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
9906 BUILT_IN_GOMP_LOOP_END_CANCEL,
9907 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
9908 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
9909 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
9910 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
9911 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
9912 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
9913 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
9914 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
9915 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
9916 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
9917 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
9918 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
9919 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
9920 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
9921 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
9922 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9923 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
9924 gimple_build_omp_teams): New functions.
9925 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
9926 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
9927 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
9928 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9929 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
9930 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
9931 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
9932 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
9933 GF_OMP_ATOMIC_SEQ_CST): New.
9934 (gimple_build_omp_taskgroup, gimple_build_omp_target,
9935 gimple_build_omp_teams): New prototypes.
9936 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
9937 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9938 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
9939 GIMPLE_OMP_SINGLE as end of range.
9940 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
9941 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
9942 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
9943 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
9944 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
9945 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
9946 gimple_omp_target_kind, gimple_omp_target_set_kind,
9947 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
9948 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
9949 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
9950 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
9951 gimple_omp_teams_set_clauses): New inlines.
9952 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
9953 and GIMPLE_OMP_TASKGROUP.
9954 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
9955 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
9956 enum omp_clause_proc_bind_kind): New.
9957 (union omp_clause_subcode): Add depend_kind, map_kind and
9958 proc_bind_kind fields.
9959 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
9960 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
9961 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
9962 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
9963 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9965 2013-10-10 Teresa Johnson <tejohnson@google.com>
9967 * predict.c (tree_estimate_probability): Add new parameter
9968 for estimate_bb_frequencies.
9969 (estimate_bb_frequencies): Add new parameter to force estimation.
9970 (rebuild_frequencies): When max frequency in function is small,
9971 recompute counts from frequencies.
9972 * predict.h (estimate_bb_frequencies): New parameter.
9974 2013-10-10 David Malcolm <dmalcolm@redhat.com>
9976 * ipa-inline.c (ipa_inline): Fix leak of "order" when
9977 optimizations are disabled.
9979 2013-10-10 David Malcolm <dmalcolm@redhat.com>
9981 * coverage.c (coverage_finish): Fix leak of da_file_name.
9983 2013-10-10 Jan Hubicka <jh@suse.cz>
9985 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
9986 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
9989 2013-10-10 Jakub Jelinek <jakub@redhat.com>
9992 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
9993 if any labels are in FALLTHRU_BB, use a special label emitted
9994 immediately after the asm goto insn rather than label_rtx
9996 (expand_asm_stmt): Adjust caller.
9997 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
9998 edge if the last insn in predecessor is a jump with single successor,
9999 but it isn't simplejump_p.
10001 2013-10-10 Richard Biener <rguenther@suse.de>
10003 PR tree-optimization/58656
10004 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
10006 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
10008 * gimplify.c: Include expr.h and tm_p.h for targets with special
10009 va-arg padding requirements.
10011 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
10013 * tree-flow.h: Move some prototypes to gimple.h.
10014 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
10015 * gimple.h: Relocate some prototypes from tree-flow.h
10016 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
10017 Move to gimplify.c.
10018 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
10019 (build_va_arg_indirect_ref): Relocate and make static.
10020 (std_gimplify_va_arg_expr): Relocate here.
10021 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
10022 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
10024 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10026 * doc/md.texi: Document the mnemonic attribute.
10028 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10031 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
10032 (set_attr_alternative x ...) when searching for user defined
10033 mnemonic attribute.
10035 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
10037 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
10039 2013-10-09 Easwaran Raman <eraman@google.com>
10041 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
10042 * cfgexpand.c (defer_stack_allocation): ...use here
10043 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
10045 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
10047 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
10048 (operand_equal_for_value_replacement): New function, extracted from
10049 value_replacement and enhanced to catch more cases.
10050 (value_replacement): Use operand_equal_for_value_replacement.
10052 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
10054 * loop-doloop.c (doloop_modify, doloop_optimize): Use
10055 get_max_loop_iterations.
10057 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10059 * config/arm/aarch-common.c (arm_early_load_addr_dep):
10060 Place comment above function.
10062 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
10064 * tree-flow.h: Remove all remaining prototypes, enums and structs that
10065 are not related to tree-cfg.c.
10066 * tree-ssa-address.h: New file. Relocate prototypes.
10067 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
10068 (addr_for_mem_ref): New. Combine call to get_address_description and
10069 return addr_for_mem_ref.
10070 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
10071 * tree-ssa-live.h: Adjust prototypes.
10072 * passes.c: Include tree-ssa-live.h.
10073 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
10074 * graphite.c (graphite_transform_loops): Make static.
10075 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
10076 make_pass_graphite, pass_data_graphite_transforms,
10077 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
10078 * ipa-pure-const.c (warn_function_noreturn): Make static.
10079 (execute_warn_function_noreturn, gate_warn_function_noreturn,
10080 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
10081 Relocate from tree-cfg.c
10082 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
10084 (execute_warn_function_noreturn, gate_warn_function_noreturn,
10085 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
10086 Move to ipa-pure-const.c.
10087 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
10088 Relocate from tree-optimize.c.
10089 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
10090 make_pass_fixup_cfg): Move to tree-cfg.c.
10091 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
10092 Relocate some prototypes.
10093 * tree-data-ref.h (tree_check_data_deps) Add prototype.
10094 * tree-dump.c (dump_function_to_file): Remove prototype.
10095 Add tree-flow.h to the include file.
10096 * tree-dump.h: Remove prototype.
10097 * tree-parloops.h: New File. Add prototypes.
10098 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
10099 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
10100 from tree-ssa-loop.c.
10101 * tree-predcom.c (run_tree_predictive_commoning,
10102 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
10103 Relocate here from tree-ssa-loop.c.
10104 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
10105 ssa_name_values.release ().
10106 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
10107 (ssa_name_values): Relocate from tree-flow.h.
10108 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
10109 * tree-ssa-loop.c (run_tree_predictive_commoning,
10110 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
10111 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
10112 make_pass_graphite, pass_data_graphite_transforms,
10113 make_pass_graphite_transforms, gate_tree_parallelize_loops,
10114 tree_parallelize_loops, pass_data_parallelize_loops,
10115 make_pass_parallelize_loops): Move to other files.
10116 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
10118 * tree.h: Remove prototypes from tree-address.c.
10120 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
10122 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
10123 (struct int_tree_map): Move to tree-hasher.h
10124 (SCALE, LABEL, PERCENT): Move to gimple.h
10125 * tree-flow-inline.h: Delete. Move functions to other files.
10126 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
10127 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
10128 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
10129 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
10130 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
10131 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
10132 * tree-hasher.h: Don't include tree-flow.h.
10133 (struct int_tree_map): Relocate from tree-flow.h.
10134 * tree-sra.c (contains_view_convert_expr_p): Relocate from
10135 tree-flow-inline.h and make static.
10136 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
10137 tree-flow-inline.h.
10138 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
10139 tree-flow-inline.h and make static.
10140 * tree.h (is_global_var, may_be_aliased): Relocate from
10141 tree-flow-inline.h.
10142 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
10143 * value-prof.c: No longer include tree-flow-inline.h.
10144 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
10146 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
10148 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
10149 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
10150 (enum move_pos): Move to tree-ssa-loop-im.h
10151 * cfgloop.h: Move some prototypes.
10152 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
10153 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
10154 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
10155 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
10156 (loop_containing_stmt): Relocate from tree-flow-inline.h.
10157 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
10158 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
10159 (enum move_pos): Relocate here.
10160 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
10162 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
10163 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
10164 make_pass_lim): Relocate here from tree-ssa-loop.c.
10165 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
10167 (loop_edge_to_cancel, unloop_loops): Make static.
10168 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10169 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
10170 (tree_complete_unroll, gate_tree_complete_unroll,
10171 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
10172 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10173 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
10174 * tree-ssa-loop-ivopts.c: Remove local prototypes.
10175 (stmt_invariant_in_loop_p): Remove unused function.
10176 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
10177 * tree-ssa-loop-manip.h: New file. Add prototypes.
10178 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
10179 (gcov_type_to_double_int): Move to cfgloop.h.
10180 (double_int_cmp, bound_index,
10181 estimate_numbers_of_iterations_loop): Make static.
10182 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
10183 (max_loop_iterations): Factor out get_max_loop_iterations.
10184 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
10186 * tree-ssa-loop-niter.h: New file. Add prototypes.
10187 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
10188 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
10189 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
10190 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
10191 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
10192 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
10193 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
10194 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
10195 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
10196 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
10197 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
10198 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
10199 pass_data_complete_unroll, make_pass_complete_unroll,
10200 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
10201 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
10202 tree-ssa-loop-ivcanon.c.
10203 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
10204 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
10205 tree-ssa-loop-prefetch.c.
10206 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
10207 tree-ssa-loop-im.c.
10208 (get_lsm_tmp_name): Relocate and add suffix parameter.
10209 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
10210 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
10211 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
10212 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
10213 (get_estimated_loop_iterations): Factor out accessor from
10214 estimated_loop_iterations in tree-ssa-loop-niter.c.
10215 (get_max_loop_iterations): Factor out accessor from
10216 _max_loop_iterations in tree-ssa-niter.c.
10217 * loop-unroll.c (decide_unroll_constant_iterations,
10218 decide_unroll_runtime_iterations, decide_peel_simple,
10219 decide_unroll_stupid): Use new get_* accessors.
10221 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
10223 PR tree-optimization/20318
10224 * doc/extend.texi (returns_nonnull): New function attribute.
10225 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
10227 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
10228 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
10230 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
10232 PR middle-end/58570
10233 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
10234 false if both components are bitfields.
10236 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10238 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
10239 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
10240 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
10241 * config/aarch64/aarch64.h
10242 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
10243 * config/aarch64/aarch64-simd-builtins.def
10244 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
10246 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10248 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
10250 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10252 * config/aarch64/arm_neon.h (vdiv_f64): Added.
10254 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
10256 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
10257 (vneg_f64): New intrinsic.
10258 (vneg_s8): Asm replaced with C.
10259 (vneg_s16): Likewise.
10260 (vneg_s32): Likewise.
10261 (vneg_s64): New intrinsic.
10262 (vnegq_f32): Asm replaced with C.
10263 (vnegq_f64): Likewise.
10264 (vnegq_s8): Likewise.
10265 (vnegq_s16): Likewise.
10266 (vnegq_s32): Likewise.
10267 (vnegq_s64): Likewise.
10269 2013-10-09 Renlin Li <Renlin.Li@arm.com>
10271 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
10273 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10275 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
10276 packed stack special handling.
10277 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
10278 back to fixed stack slots for FPRs saved due to stdarg.
10280 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10282 * config/s390/s390.c (s390_frame_info): Restructure function.
10284 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10286 * config/s390/s390.c (struct s390_frame_layout): New field
10288 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
10289 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
10290 regs_ever_clobbered to char*.
10291 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
10292 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
10293 (s390_register_info): Enable FPR save slots. Move/Copy some
10294 functionality into ...
10295 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
10296 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
10298 (s390_frame_info): Do gpr slot allocation here now. stdarg does
10299 not imply a stack frame.
10300 (s390_init_frame_layout): Remove variable clobbered_regs.
10301 (s390_update_register_info): Remove function.
10302 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
10303 cannot be used for register renaming.
10304 (s390_hard_regno_scratch_ok): New function.
10305 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
10306 (s390_initial_elimination_offset): Change offset calculation of
10307 the return address pointer.
10308 (save_gprs): Deal with only r6 being saved from the call-saved regs.
10309 (restore_gprs): Set frame related flag.
10310 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
10311 (s390_emit_prologue): Call s390_register_info instead of
10312 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
10313 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
10314 (s390_optimize_prologue): Call s390_optimize_register_info.
10315 Try to remove also FPR slot save/restore INSNs. Remove frame
10316 related flags from restore INSNs.
10318 2013-10-08 DJ Delorie <dj@redhat.com>
10320 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
10323 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
10324 avoid conflict with the MI use of %c.
10325 * config/rl78/rl78-real.md: change %c to %C throughout.
10326 * config/rl78/rl78-virt.md: Likewise.
10328 2013-10-08 Jan Hubicka <jh@suse.cz>
10330 * config/i386/i386.c (ix86_option_override_internal): Switch
10331 to SSE math for -ffast-math when target ISA supports SSE2.
10333 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
10335 * tree-flow.h: Remove some prototypes.
10336 * tree.h: Remove some protypes, add a couple.
10337 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
10338 using_eh_for_cleanups_p): Add interface routines for front ends.
10339 * tree-eh.h: New file. Add protoptyes.
10340 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
10341 (add_stmt_to_eh_lp_fn): Make static.
10342 (lower_try_finally): Use new using_eh_for_cleanups_p.
10343 * emit-rtl.c: Include tree-eh.h.
10344 * gimple.h: Include tree-eh.h.
10346 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
10348 PR tree-optimization/58480
10349 * tree-vrp.c (infer_nonnull_range): New function.
10350 (infer_value_range): Call infer_nonnull_range.
10352 2013-10-08 Dehao Chen <dehao@google.com>
10354 PR tree-optimization/58619
10355 * tree-inline.c (copy_phis_for_bb): Combine location data
10358 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10361 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
10362 RTX_FRAME_RELATED_P on INSN.
10364 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10366 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
10367 (altivec_expand_vec_perm_const): Call it.
10369 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10371 * config/rs6000/vector.md (mov<mode>): Emit permuted move
10372 sequences for LE VSX loads and stores at expand time.
10373 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
10375 * config/rs6000/rs6000.c (rs6000_const_vec): New.
10376 (rs6000_gen_le_vsx_permute): New.
10377 (rs6000_gen_le_vsx_load): New.
10378 (rs6000_gen_le_vsx_store): New.
10379 (rs6000_gen_le_vsx_move): New.
10380 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
10381 (*vsx_le_perm_load_v4si): New.
10382 (*vsx_le_perm_load_v8hi): New.
10383 (*vsx_le_perm_load_v16qi): New.
10384 (*vsx_le_perm_store_v2di): New.
10385 (*vsx_le_perm_store_v4si): New.
10386 (*vsx_le_perm_store_v8hi): New.
10387 (*vsx_le_perm_store_v16qi): New.
10388 (*vsx_xxpermdi2_le_<mode>): New.
10389 (*vsx_xxpermdi4_le_<mode>): New.
10390 (*vsx_xxpermdi8_le_V8HI): New.
10391 (*vsx_xxpermdi16_le_V16QI): New.
10392 (*vsx_lxvd2x2_le_<mode>): New.
10393 (*vsx_lxvd2x4_le_<mode>): New.
10394 (*vsx_lxvd2x8_le_V8HI): New.
10395 (*vsx_lxvd2x16_le_V16QI): New.
10396 (*vsx_stxvd2x2_le_<mode>): New.
10397 (*vsx_stxvd2x4_le_<mode>): New.
10398 (*vsx_stxvd2x8_le_V8HI): New.
10399 (*vsx_stxvd2x16_le_V16QI): New.
10401 2013-10-07 Renlin Li <Renlin.Li@arm.com>
10403 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
10405 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10407 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
10408 loop to work also for 31bit ABI.
10409 Save the stack pointer for frame_size > 0.
10411 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10413 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
10414 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
10415 constraint letters from expanders.
10416 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
10417 retry count to general_operand.
10418 ("tabort"): Give operand 0 a mode.
10419 ("tabort_1"): Add mode and constraint letter for operand 0.
10420 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
10422 2013-10-04 Jeff Law <law@redhat.com>
10424 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
10426 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
10428 (thread_across_edge): Here. Call it.
10430 2013-10-04 Cary Coutant <ccoutant@google.com>
10432 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
10433 discarding a location list expression (or a piece of one).
10435 2013-10-03 Jan Hubicka <jh@suse.cz>
10437 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
10438 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
10439 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
10441 2013-10-03 Jan Hubicka <jh@suse.cz>
10443 * config/i386/i386.c (ix86_option_override_internal): Do not enable
10444 accumulate-outgoing-args when producing unwind info.
10446 2013-10-03 Wei Mi <wmi@google.com>
10448 * lra-constraints.c (insert_move_for_subreg): New function
10449 extracted from simplify_operand_subreg.
10450 (simplify_operand_subreg): Add reload for paradoxical subreg.
10452 2013-10-03 Rong Xu <xur@google.com>
10454 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
10455 the candidate of builtin_expect such that we should fix the
10456 size/time estimation.
10457 (estimate_function_body_sizes): Do the acutally size/time fix-up
10458 for builtin_expect.
10460 2013-10-03 Rong Xu <xur@google.com>
10462 * predict.c (tree_predict_by_opcode): Get the probability
10463 for builtin_expect from param builtin_expect_probability.
10464 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
10465 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
10466 * doc/invoke.texi: Add documentation for builtin-expect-probability.
10468 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
10471 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
10472 * calls.c (alloca_call_p): Use get_callee_fndecl.
10473 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
10474 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
10476 (vrp_visit_stmt): Remove duplicated code.
10478 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10480 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
10481 ceildf2, btruncdf2, instead of vsx_* name.
10483 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
10484 iterators to only do V2DF and V4SF here. Move the DF code to
10485 rs6000.md where it is combined with SF mode. Replace <VSv> with
10486 just 'v' since only vector operations are handled with these insns
10487 after moving the DF support to rs6000.md.
10488 (vsx_sub<mode>3): Likewise.
10489 (vsx_mul<mode>3): Likewise.
10490 (vsx_div<mode>3): Likewise.
10491 (vsx_fre<mode>2): Likewise.
10492 (vsx_neg<mode>2): Likewise.
10493 (vsx_abs<mode>2): Likewise.
10494 (vsx_nabs<mode>2): Likewise.
10495 (vsx_smax<mode>3): Likewise.
10496 (vsx_smin<mode>3): Likewise.
10497 (vsx_sqrt<mode>2): Likewise.
10498 (vsx_rsqrte<mode>2): Likewise.
10499 (vsx_fms<mode>4): Likewise.
10500 (vsx_nfma<mode>4): Likewise.
10501 (vsx_copysign<mode>3): Likewise.
10502 (vsx_btrunc<mode>2): Likewise.
10503 (vsx_floor<mode>2): Likewise.
10504 (vsx_ceil<mode>2): Likewise.
10505 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
10506 (vsx_sminsf3): Likewise.
10507 (vsx_fmadf4): Likewise.
10508 (vsx_fmsdf4): Likewise.
10509 (vsx_nfmadf4): Likewise.
10510 (vsx_nfmsdf4): Likewise.
10511 (vsx_cmpdf_internal1): Likewise.
10513 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
10514 simpler to select whether a target has SPE or traditional floating
10515 point support in iterators.
10516 (TARGET_DF_SPE): Likewise.
10517 (TARGET_SF_FPR): Likewise.
10518 (TARGET_DF_FPR): Likewise.
10519 (TARGET_SF_INSN): Macros to say whether floating point support
10520 exists for a given operation for expanders.
10521 (TARGET_DF_INSN): Likewise.
10523 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
10524 combining of SF/DF mode operations, using both traditional and VSX
10532 (abs<mode>2): Combine SF/DF modes using traditional floating point
10533 instructions. Add support for using the upper DF registers with
10534 VSX support, and SF registers with power8-vector support. Update
10535 expanders for operations supported by both the SPE and traditional
10536 floating point units.
10537 (abs<mode>2_fpr): Likewise.
10538 (nabs<mode>2): Likewise.
10539 (nabs<mode>2_fpr): Likewise.
10540 (neg<mode>2): Likewise.
10541 (neg<mode>2_fpr): Likewise.
10542 (add<mode>3): Likewise.
10543 (add<mode>3_fpr): Likewise.
10544 (sub<mode>3): Likewise.
10545 (sub<mode>3_fpr): Likewise.
10546 (mul<mode>3): Likewise.
10547 (mul<mode>3_fpr): Likewise.
10548 (div<mode>3): Likewise.
10549 (div<mode>3_fpr): Likewise.
10550 (sqrt<mode>3): Likewise.
10551 (sqrt<mode>3_fpr): Likewise.
10552 (fre<Fs>): Likewise.
10553 (rsqrt<mode>2): Likewise.
10554 (cmp<mode>_fpr): Likewise.
10555 (smax<mode>3): Likewise.
10556 (smin<mode>3): Likewise.
10557 (smax<mode>3_vsx): Likewise.
10558 (smin<mode>3_vsx): Likewise.
10559 (negsf2): Delete SF operations that are merged with DF.
10560 (abssf2): Likewise.
10561 (addsf3): Likewise.
10562 (subsf3): Likewise.
10563 (mulsf3): Likewise.
10564 (divsf3): Likewise.
10566 (fmasf4_fpr): Likewise.
10567 (fmssf4_fpr): Likewise.
10568 (nfmasf4_fpr): Likewise.
10569 (nfmssf4_fpr): Likewise.
10570 (sqrtsf2): Likewise.
10571 (rsqrtsf_internal1): Likewise.
10572 (smaxsf3): Likewise.
10573 (sminsf3): Likewise.
10574 (cmpsf_internal1): Likewise.
10575 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
10576 (negdf2): Delete DF operations that are merged with SF.
10577 (absdf2): Likewise.
10578 (nabsdf2): Likewise.
10579 (adddf3): Likewise.
10580 (subdf3): Likewise.
10581 (muldf3): Likewise.
10582 (divdf3): Likewise.
10584 (rsqrtdf_internal1): Likewise.
10585 (fmadf4_fpr): Likewise.
10586 (fmsdf4_fpr): Likewise.
10587 (nfmadf4_fpr): Likewise.
10588 (nfmsdf4_fpr): Likewise.
10589 (sqrtdf2): Likewise.
10590 (smaxdf3): Likewise.
10591 (smindf3): Likewise.
10592 (cmpdf_internal1): Likewise.
10593 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
10594 (btrunc<mode>2): Delete separate expander, and combine with the
10595 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
10596 (btrunc<mode>2_fpr): Likewise.
10597 (ceil<mode>2): Likewise.
10598 (ceil<mode>2_fpr): Likewise.
10599 (floor<mode>2): Likewise.
10600 (floor<mode>2_fpr): Likewise.
10601 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
10602 Add support for using the upper registers with VSX and
10603 power8-vector. Move insns to be closer to the define_expands. On
10604 VSX systems, prefer the traditional form of FMA over the VSX
10605 version, since the traditional form allows the target not to
10606 overlap with the inputs.
10607 (fms<mode>4_fpr): Likewise.
10608 (nfma<mode>4_fpr): Likewise.
10609 (nfms<mode>4_fpr): Likewise.
10611 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10612 Richard Earnshaw <richard.earnshaw@arm.com>
10614 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
10615 (struct mult_cost_table): Likewise.
10616 (struct mem_cost_table): Likewise.
10617 (struct fp_cost_table): Likewise.
10618 (struct vector_cost_table): Likewise.
10619 (cpu_cost_table): Likewise.
10620 * config/arm/arm.opt (mold-rts-costs): New option.
10621 (mnew-generic-costs): Likewise.
10622 * config/arm/arm.c (generic_extra_costs): New table.
10623 (cortexa15_extra_costs): Likewise.
10624 (arm_slowmul_tune): Use NULL as new costs.
10625 (arm_fastmul_tune): Likewise.
10626 (arm_strongarm_tune): Likewise.
10627 (arm_xscale_tune): Likewise.
10628 (arm_9e_tune): Likewise.
10629 (arm_v6t2_tune): Likewise.
10630 (arm_cortex_a5_tune): Likewise.
10631 (arm_cortex_a9_tune): Likewise.
10632 (arm_v6m_tune): Likewise.
10633 (arm_fa726te_tune): Likewise.
10634 (arm_cortex_a15_tune): Use cortex15_extra_costs.
10635 (arm_cortex_tune): Use generict_extra_costs.
10636 (shifter_op_p): New function.
10637 (arm_unspec_cost): Likewise.
10638 (LIBCALL_COST): Define.
10639 (arm_new_rtx_costs): New function.
10640 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
10641 table is available. Use old costs otherwise unless mnew-generic-costs
10643 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
10644 (cpu_cost_table): Declare.
10646 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
10649 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
10650 (*subs_mul_imm_<mode>)
10651 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
10652 (*sub_<shift>_<mode>)
10653 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
10654 Remove k constraint.
10656 2013-10-03 Ian Bolton <ian.bolton@arm.com>
10658 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
10660 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
10662 2013-10-02 Teresa Johnson <tejohnson@google.com>
10664 * predict.c (probably_never_executed): New function.
10665 (probably_never_executed_bb_p): Invoke probably_never_executed.
10666 (probably_never_executed_edge_p): Ditto.
10667 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10668 Treat profile insanities conservatively.
10670 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
10672 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
10674 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
10676 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
10677 use it. Use smaller increase for scratch. Don't increase reject
10678 for early clobber scratch.
10679 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
10680 setting eliminated regs except setting fp from hfp.
10681 (lra_eliminate): Check lra_insn_recog_data on NULL.
10683 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10686 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
10687 setting -mvsx-timode by default until the underlying problem is fixed.
10688 (RS6000_CPU, power7 defaults): Likewise.
10690 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
10692 * config/x-linux (host-linux.o): Remove header dependencies.
10693 Use $(COMPILE) and $(POSTCOMPILE).
10694 * config/t-linux-android (linux-android.o): Ditto.
10696 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
10698 * Makefile.in (expmed.o-warn): Remove.
10700 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10702 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
10703 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
10705 2013-10-02 Teresa Johnson <tejohnson@google.com>
10707 * dojump.c (do_jump_1): Divide probability between
10708 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
10710 2013-10-02 Tom Tromey <tromey@redhat.com>
10712 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
10714 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10716 * tree-flow.h: Remove some prototypes.
10717 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
10718 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
10719 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
10720 mark_virtual_phi_result_for_renaming): Relocate here.
10721 * tree-into-ssa.h: Add prototypes.
10722 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
10723 single_pred_before_succ_order.
10724 (blocks_in_phiopt_order): Rename and move to cfganal.c.
10725 (nonfreeing_call_p) Move to gimple.c.
10726 * cfganal.c (single_pred_before_succ_order): Move and renamed from
10728 * basic-block.h (single_pred_before_succ_order): Add prototype.
10729 * gimple.c (nonfreeing_call_p): Relocate here.
10730 * gimple.h: Add prototype.
10731 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
10732 * tree-ssa-dom.h: New file. Relocate prototypes here.
10733 * tree-ssa.h: Include tree-ssa-dom.h.
10735 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
10737 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
10738 Use $(COMPILE) and $(POSTCOMPILE).
10740 * config/alpha/x-alpha (driver-alpha.o): Ditto.
10742 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10744 * tree-flow.h: Remove some prototypes.
10745 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
10746 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
10747 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
10748 propagate_tree_value*): Move from here to...
10749 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
10750 propagate_tree_value*): Relocate here.
10751 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
10752 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
10753 * gimple-fold.c: Remove gimple-fold.h from include list.
10754 * tree-vrp.c: Remove gimple-fold.h from include list.
10755 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
10756 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
10757 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
10758 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
10759 * sese.c: Add tree-ssa-propagate.h to include list.
10761 2013-10-02 Richard Biener <rguenther@suse.de>
10763 * tree-loop-distribution.c: Include tree-vectorizer.h for
10764 find_loop_location.
10765 (enum partition_kind): Remove PKIND_REDUCTION.
10766 (struct partition_s): Remove has_writes member, add reduction_p member.
10767 (partition_alloc): Adjust.
10768 (partition_builtin_p): Likewise.
10769 (partition_has_writes): Remove.
10770 (partition_reduction_p): New function.
10771 (partition_merge_into): Likewise.
10772 (generate_code_for_partition): Commonize builtin partition
10774 (rdg_cannot_recompute_vertex_p): Remove.
10775 (already_processed_vertex_p): Likewise.
10776 (rdg_flag_vertex): Do not set has_writes.
10777 (classify_partition): Adjust.
10778 (rdg_build_partitions): Do not set has_writes, treat all
10779 partitions as useful.
10780 (distribute_loop): Record number of library calls generated. Adjust.
10781 (tree_loop_distribution): Report number of loops and library
10782 calls generated as opt-info.
10784 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
10786 * tree-flow.h: Include new .h files. Move prototypes.
10787 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
10788 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
10789 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
10790 * tree-pretty-print.h: Add prototypes from tree-flow.h.
10791 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
10792 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
10793 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
10794 * tree.h (get_ref_base_and_extent): Move prototype out.
10795 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
10797 * gimple-low.h: New File. Add prototypes from tree-flow.h.
10798 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
10799 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
10800 * tree-scalar-evolution.c: Include tree.h.
10801 * sese.c: Include tree.h.
10802 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
10803 * dwarf2out.c: Include tree-dfa.h.
10804 * tree-chrec.c: Include tree.h.
10805 * tree-data-ref.c: Include tree.h.
10807 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
10809 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
10812 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10814 * config/t-sol2 (sol2-c.o): Remove header dependencies.
10815 Use $(COMPILE) and $(POSTCOMPILE).
10816 (sol2-cxx.o): Likewise.
10817 (sol2-stubs.o): Likewise.
10818 (sol2.o): Likewise.
10819 * config/x-solaris (host-solaris.o): Likewise.
10821 * config/sparc/t-sparc (sparc.o): Remove.
10822 (sparc-c.o): Remove header dependencies.
10823 Use $(COMPILE) and $(POSTCOMPILE).
10824 * config/sparc/x-sparc: Likewise.
10826 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
10828 * config/arc/arc-opts.h: Add 2013 to Copyright years.
10829 * config/arc/arc700.md: Likewise.
10830 * config/arc/arc-modes.def: Likewise.
10831 * config/arc/arc-simd.h: Likewise.
10832 * config/arc/t-arc-uClibc: Likewise.
10833 * config/arc/t-arc-newlib: Likewise.
10835 2013-10-02 Renlin Li <renlin.li@arm.com>
10837 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
10839 (aarch64_expand_epilogue): Likewise.
10841 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10842 Yufeng Zhang <yufeng.zhang@arm.com>
10844 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
10846 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
10847 'base_in' represent a conversion and legal_cast_p_1 holds; set
10848 'base_in' with the returned value from get_unwidened.
10850 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10852 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
10853 plus_constant is not used.
10855 2013-10-01 Wei Mi <wmi@google.com>
10857 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
10858 * config/i386/i386.md: Add define_peephole2 to
10859 break partial reg stall for cvtss2sd/cvtsd2ss.
10861 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10863 * config/arc/arc.c (pass_arc_ifcvt::clone):
10864 Update for ctxt_ -> m_ctxt change.
10866 2013-10-01 Jeff Law <law@redhat.com>
10868 * tree-ssa-threadupdate.c (struct redirection_data): Delete
10869 outgoing_edge and intermediate_edge fields. Instead store the path.
10870 (redirection_data::hash): Hash on the last edge's destination index.
10871 (redirection_data::equal): Check the entire thread path.
10872 (lookup_redirectio_data): Corresponding changes.
10873 (create_edge_and_update_destination_phis): Likewise.
10874 (thread_single_edge): Likewise.
10876 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10877 Diego Novillo <dnovillo@google.com>
10879 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
10880 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
10881 (vld32wh_insn, vld32wl_insn): Delete commented-out old
10882 versions of these patterns.
10884 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
10885 (__builtin_arc_aligned): Likewise.
10887 * config/arc/arc.md: Expand adc_0 comment stating the intended
10888 purpose and why it isn't ready.
10889 Replace commented out call_value_via_label_mixed with a
10890 plain comment about bl_s.
10892 * config/arc/arc.c (stdio.h): Don't include directly.
10893 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
10894 Remove if (1) condition.
10895 (arc_encode_section_info): Fix comment.
10897 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10899 * config/arc/arc.c (arc_conditional_register_usage):
10900 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
10901 Also set reg_alloc_order for DMA config regs.
10903 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10904 Jeremy Bennett <jeremy.bennett@embecosm.com>
10906 * doc/install.texi (--with-cpu): Mention ARC.
10907 (arc-*-elf32): New paragraph.
10908 (arc-linux-uclibc): Likewise.
10909 * doc/md.texi (Machine Constraints): Add ARC part.
10910 * doc/invoke.texi: (menu): Add ARC Options.
10911 (Machine Dependent Options) <ARC Options>: Add synopsis.
10912 (node ARC Options): Add.
10913 * doc/extend.texi (long_call / short_call attribute): Add ARC.
10914 (ARC Built-in Functions): New section defining
10915 generic ARC built-in functions.
10916 (ARC SIMD Built-in Functions): New section defining SIMD specific
10917 built-in functions.
10918 (Declaring Attributes of Functions): Extended
10919 description of short_call and long_call attributes for ARC and
10920 added index entries.
10922 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
10923 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
10924 Joern Rennecke <joern.rennecke@embecosm.com>
10925 Muhammad Khurram Riaz <khurram.riaz@arc.com>
10926 Brendan Kehoe <brendan@zen.org>
10927 Michael Eager <eager@eagercon.com>
10928 Simon Cook <simon.cook@embecosm.com>
10929 Jeremy Bennett <jeremy.bennett@embecosm.com>
10931 * config/arc, common/config/arc: New directories.
10933 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
10934 Brendan Kehoe <brendan@zen.org>
10935 Simon Cook <simon.cook@embecosm.com>
10937 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
10939 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
10941 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
10942 * tree-ssa-coalesce.h: New. Move prototype to here.
10943 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
10944 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
10945 (gimple_can_coalesce_p): Move to...
10946 * gimple.c (gimple_can_coalesce_p): Here.
10948 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
10950 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
10951 (dump_decl_set): Move to gimple.c.
10952 * gimple.h: Don't include tree-ssa-operands.h.
10953 (dump_decl_set): Add prototype.
10954 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
10955 Move to gimple-ssa.h.
10956 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
10957 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
10958 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
10959 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
10960 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
10962 (dump_decl_set): Relocate here.
10963 * gimple-ssa.h: New file.
10964 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
10965 Relocate from gimple.h.
10966 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
10967 * tree-ssa-operands.c (swap_ssa_operands): Rename from
10968 swap_tree_operands and remove non-ssa path.
10969 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
10970 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
10972 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
10973 vect_is_simple_reduction_1): Use swap_ssa_operands.
10974 * tree-flow.h: Move various prototypes to tree-phinodes.h.
10975 (enum need_phi_state): Move to tree-into-ssa.c.
10976 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
10977 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
10978 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
10979 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
10980 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
10981 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
10982 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
10983 num_imm_uses): Move to ssa-iterators.h.
10984 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
10985 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
10987 (op_iter_done, op_iter_next_def, op_iter_next_tree,
10988 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
10989 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
10990 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
10991 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
10992 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
10993 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
10994 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
10995 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
10996 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
10997 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
10998 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
10999 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
11000 (set_phi_nodes): Move to tree-phinodes.h.
11001 * tree-ssa-operands.h (enum ssa_op_iter_type,
11002 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
11003 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
11004 (dump_decl_set): Remove prototype.
11005 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
11006 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
11007 (set_phi_nodes): Relocate from tree-flow-inline.h.
11008 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
11010 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
11011 include list. Temporarily add gimple.h to include list.
11012 * ssa-iterators.h: New file.
11013 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
11014 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
11015 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
11016 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
11017 Relocate from tree-ssa-operands.h.
11018 (delink_imm_use, link_imm_use_to_list, link_imm_use,
11019 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
11020 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
11021 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
11022 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
11023 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
11024 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
11025 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
11026 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
11027 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
11028 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
11029 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
11030 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
11031 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
11032 Relocate from tree-flow-inline.h.
11033 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
11035 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
11038 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
11039 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
11040 Insert '\t' to output template.
11041 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
11042 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
11043 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
11044 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
11046 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
11048 * doc/install.texi (Host/target specific installation notes for GCC):
11049 Put @anchor before @heading.
11050 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
11051 Use @email for email addresses.
11053 2013-10-01 Jeff Law <law@redhat.com>
11055 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
11056 a vec. Only delete the path if we create one without successfully
11057 registering a jump thread.
11058 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
11060 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
11061 (paths): New vector of jump threading paths.
11062 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
11063 (THREAD_PATH): New accessor macro for the entire thread path.
11064 (lookup_redirection_data): Get intermediate and final outgoing edge
11065 from the thread path.
11066 (create_edge_and_update_destination_phis): Copy the threading path.
11067 (ssa_fix_duplicate_block_edges): Get edges and block types from the
11068 jump threading path.
11069 (ssa_redirect_edges): Get edges and block types from the jump threading
11070 path. Free the path vector.
11071 (thread_block): Get edges from the jump threading path. Look at the
11072 entire path to see if we thread to a loop exit. If we cancel a jump
11073 thread request, then free the path vector.
11074 (thread_single_edge): Get edges and block types from the jump threading
11075 path. Free the path vector.
11076 (thread_through_loop_header): Get edges and block types from the jump
11077 threading path. Free the path vector.
11078 (mark_threaded_blocks): Iterate over the vector of paths and store
11079 the path on the appropriate edge. Get edges and block types from the
11080 jump threading path.
11081 (mark_threaded_blocks): Get edges and block types from the jump
11082 threading path. Free the path vector.
11083 (thread_through_all_blocks): Use the vector of paths rather than
11084 a vector of 3-edge sets.
11085 (register_jump_thread): Accept pointer to a path vector rather
11086 than the path vector itself. Store the path vector for later use.
11089 2013-10-01 Jakub Jelinek <jakub@redhat.com>
11090 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11093 * config/s390/s390.c (s390_split_branches): Modify check for table
11095 (s390_chunkify_start): Rearrange table jump insn check in order to
11096 deal with compare and branch insns correctly.
11098 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
11102 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
11103 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
11104 define_insn_and_split.
11105 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
11106 (shiftsi3_compare): New pattern.
11107 (rrx): New pattern.
11108 * config/arm/unspecs.md (UNSPEC_RRX): New.
11110 2013-10-01 Alan Modra <amodra@gmail.com>
11112 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
11113 casing inout operands.
11115 2013-10-01 Richard Biener <rguenther@suse.de>
11117 PR tree-optimization/58553
11118 * tree-loop-distribution.c (struct partition_s): Add niter member.
11119 (classify_partition): Populate niter member for the partition
11120 and properly identify whether the relevant store happens before
11121 or after the loop exit.
11122 (generate_memset_builtin): Use niter member from the partition.
11123 (generate_memcpy_builtin): Likewise.
11125 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
11127 * vec.h (vec_prefix, vec): Prefix member names with "m_".
11128 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
11130 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
11132 * basic-block.h (edge_list): Prefix member names with "m_".
11133 * context.h (context): Likewise.
11134 * domwalk.h (dom_walker): Likewise.
11135 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
11136 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
11137 * hash-table.h (hash_table): Likewise.
11138 * machmode.h (bit_field_mode_iterator): Likewise.
11139 * pass_manager.h (pass_list): Likewise.
11140 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
11141 * tree-pass.h (pass_data): Likewise.
11142 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
11143 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
11144 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
11145 * asan.c (pass_data_asan): Update accordingly.
11146 * cfganal.c (control_dependences::find_control_dependence): Likewise.
11147 (control_dependences::control_dependences): Likewise.
11148 (control_dependences::~control_dependences): Likewise.
11149 (control_dependences::~control_dependences): Likewise.
11150 (control_dependences::get_edges_dependent_on): Likewise.
11151 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
11152 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
11153 * context.c (gcc::context::context): Likewise.
11154 * cprop.c (pass_rtl_cprop::clone): Likewise.
11155 * domwalk.c (dom_walker::walk): Likewise.
11156 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
11157 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
11158 * mode-switching.c (pass_mode_switching::clone): Likewise.
11159 * passes.c (opt_pass::opt_pass): Likewise.
11160 (pass_manager::pass_manager): Likewise.
11161 * predict.c (pass_strip_predict_hints::clone): Likewise.
11162 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
11163 (pass_split_all_insns::clone): Likewise.
11164 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
11166 (bit_field_mode_iterator::next_mode): Likewise.
11167 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
11168 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
11169 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
11170 * tree-complex.c (pass_lower_complex::clone): Likewise.
11171 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
11172 * tree-object-size.c (pass_object_sizes::clone): Likewise.
11173 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
11174 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
11175 (pass_fold_builtins::clone): Likewise.
11176 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
11177 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
11178 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
11179 (pass_cd_dce::clone): Likewise.
11180 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
11181 (pass_phi_only_cprop::clone): Likewise.
11182 * tree-ssa-dse.c (pass_dse::clone): Likewise.
11183 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
11184 * tree-ssa-loop.c (pass_lim::clone): Likewise.
11185 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
11186 * tree-ssa-pre.c (pass_fre::clone): Likewise.
11187 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
11188 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
11189 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
11190 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
11191 * tree-vrp.c (pass_vrp::clone): Likewise.
11192 * tsan.c (pass_tsan::clone): Likewise.
11194 2013-09-30 Jakub Jelinek <jakub@redhat.com>
11196 PR middle-end/58564
11197 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
11198 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
11200 PR middle-end/58564
11201 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
11202 optimization, punt if sign_bit_p looked through any zero extension.
11204 2013-09-30 Teresa Johnson <tejohnson@google.com>
11206 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
11207 Update redirected out edge count in joiner case.
11208 (ssa_redirect_edges): Common the joiner and non-joiner cases
11209 so that joiner case gets profile updates.
11211 2013-09-30 Richard Biener <rguenther@suse.de>
11213 PR tree-optimization/58554
11214 * tree-loop-distribution.c (classify_partition): Require
11215 unconditionally executed stores for memcpy and memset recognition.
11216 (tree_loop_distribution): Calculate dominance info.
11218 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
11220 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
11221 (NO_PROFILE_COUNTERS): Likewise.
11222 (PROFILE_HOOK): Likewise.
11223 (FUNCTION_PROFILER): Likewise.
11224 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
11226 2013-09-30 Iain Sandoe <iain@codesourcery.com>
11228 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
11229 calls and defines in TARGET_MACHO conditional.
11230 (load_macho_picbase_di): Likewise.
11231 (reload_macho_picbase): Likewise.
11232 (reload_macho_picbase_si): Likewise.
11233 (reload_macho_picbase_di): Likewise.
11234 (nonlocal_goto_receiver): Likewise.
11236 2013-09-30 Nick Clifton <nickc@redhat.com>
11238 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
11239 that use the MSP430X ISA.
11240 (msp430_option_override): Scan -mmcu command line option for any
11241 MCU name that supports the MSP430X ISA.
11242 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
11243 -mmcu options which enable the MSP430X ISA.
11245 2013-09-30 Richard Biener <rguenther@suse.de>
11247 PR middle-end/58532
11248 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
11249 before looking for setjmp-like calls.
11251 2013-09-29 Iain Sandoe <iain@codesourcery.com>
11254 * config/darwin-protos.h (machopic_get_function_picbase): New.
11255 * config/darwin.c (machopic_get_function_picbase): New.
11256 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
11257 label for a new func. (load_macho_picbase_di): Likewise.
11258 (reload_macho_picbase): New expand.
11259 (reload_macho_picbase_si): New insn.
11260 (reload_macho_picbase_di): New insn.
11261 (nonlocal_goto_receiver): New define and split.
11262 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
11263 (unspecv enum): Add UNSPECV_NLGR.
11265 2013-09-29 Iain Sandoe <iain@codesourcery.com>
11267 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
11268 that altivec registers are correctly sized on Darwin.
11270 2013-09-29 Iain Sandoe <iain@codesourcery.com>
11272 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
11273 darwin-driver.o): Use COMPILE and POSTCOMPILE.
11274 * config/x-darwin (host-darwin.o): Likewise.
11275 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
11276 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
11277 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
11279 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
11281 * doc/invoke.texi: Fix usage of @tie{} command.
11283 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
11285 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
11287 2013-09-28 Jan Hubicka <jh@suse.cz>
11289 * config/i386/x86-tune.def: Add documentation for each of the options;
11292 2013-09-28 Jan Hubicka <jh@suse.cz>
11294 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
11296 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
11297 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
11298 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
11299 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
11300 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
11302 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
11304 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
11305 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
11306 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
11307 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
11308 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
11309 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
11310 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
11311 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
11312 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
11313 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
11314 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
11315 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
11316 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
11317 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
11318 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
11319 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
11320 gimple.h, godump.c, graphite-clast-to-gimple.c,
11321 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
11322 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
11323 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
11324 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
11325 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
11326 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
11327 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
11328 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
11329 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
11330 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
11331 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
11332 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
11333 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
11334 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
11335 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
11336 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
11337 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
11338 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
11339 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
11340 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
11341 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
11342 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
11343 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
11344 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
11345 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11346 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11347 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
11348 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
11349 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11350 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11351 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11352 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
11353 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
11354 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
11355 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
11356 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
11357 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
11358 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
11359 whitespace before "(".
11361 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
11363 * expr.h (extract_bit_field): Remove packedp parameter.
11364 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
11365 from forward declaration.
11366 (store_split_bit_field): Remove packedp arg from calls to
11367 extract_fixed_bit_field.
11368 (extract_bit_field_1): Remove packedp parameter and packedp
11369 argument from recursive calls and calls to extract_fixed_bit_field.
11370 (extract_bit_field): Remove packedp parameter and corresponding
11371 arg to extract_bit_field_1.
11372 (extract_fixed_bit_field): Remove packedp parameter. Remove code
11374 (extract_split_bit_field): Remove packedp arg from call to
11375 extract_fixed_bit_field.
11376 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
11377 (copy_blkmode_from_reg): Likewise.
11378 (copy_blkmode_to_reg): Likewise.
11379 (read_complex_part): Likewise.
11380 (store_field): Likewise.
11381 (expand_expr_real_1): Likewise.
11382 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
11383 to extract_bit_field.
11384 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
11385 call to extract_bit_field.
11386 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
11387 call to extract_bit_field.
11388 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
11389 and special packedp behavior from -fstrict-volatile-bitfields
11392 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11394 * lra-eliminations.c (init_elim_table): Guard value_p.
11396 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
11398 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
11399 DFmode, DImode, and SFmode in the upper VSX registers based on the
11400 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
11401 if -mpower8-vector. Combine -mvsx-timode handling with the rest
11402 of the VSX register handling.
11404 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
11405 (f32_sv): Likewise.
11406 (zero_extendsidi2_lfiwzx): Add support for loading into the
11407 Altivec registers with -mpower8-vector. Use wu/wv constraints to
11408 only do VSX memory options on Altivec registers.
11409 (extendsidi2_lfiwax): Likewise.
11410 (extendsfdf2_fpr): Likewise.
11411 (mov<mode>_hardfloat, SF/SD modes): Likewise.
11412 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
11413 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
11414 (movdi_internal64): Likewise.
11416 2013-09-27 Xinliang David Li <davidxl@google.com>
11418 * opts.c (finish_options): Adjust parameters
11419 according to vect cost model.
11420 (common_handle_option): Set dynamic vect cost
11422 targhooks.c (default_add_stmt_cost): Compute stmt cost
11424 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11425 Use helper function.
11426 * tree-vectorizer.h (unlimited_cost_model): New function.
11427 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
11428 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
11430 (vect_enhance_data_refs_alignment): Ditto.
11431 * flag-types.h: New enum.
11432 * common/config/i386/i386-common.c (ix86_option_init_struct):
11433 No need to initialize vect_cost_model flag.
11434 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
11437 2013-09-27 Diego Novillo <dnovillo@google.com>
11439 * gimple.h (enum ssa_mode): Remove.
11441 2013-09-27 Paulo Matos <pmatos@broadcom.com>
11443 * cfgloop.h (number_of_loops): Fix typo in check for null.
11445 2013-09-27 Jakub Jelinek <jakub@redhat.com>
11447 PR middle-end/58551
11448 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
11449 are children of outermost saved_cfun's loop, and set it up to
11450 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
11451 if loop != loop0 and SESE region contains bbs that belong to loop0.
11453 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
11455 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
11456 (binary_scale_code_p, get_base_term, get_index_term): New functions.
11457 (set_address_segment, set_address_base, set_address_index)
11458 (set_address_disp): Accept the argument unconditionally.
11459 (baseness): Remove must_be_base_p and must_be_index_p checks.
11460 (decompose_normal_address): Classify as much as possible in the
11463 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
11465 * cse.c (count_reg_usage): Handle INT_LIST.
11466 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
11467 * reginfo.c (reg_scan_mark_refs): Likewise.
11468 * reload1.c (eliminate_regs_1): Likewise.
11470 2013-09-27 Iain Sandoe <iain@codesourcery.com>
11472 PR middle-end/58547
11473 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
11476 2013-09-27 Richard Biener <rguenther@suse.de>
11478 PR tree-optimization/58459
11479 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
11480 restriction not propagating into loops.
11482 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
11484 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
11485 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
11486 * doc/tree-ssa.texi (Walking use-def chains): Delete.
11488 2013-09-26 Richard Biener <rguenther@suse.de>
11490 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
11492 2013-09-26 Richard Biener <rguenther@suse.de>
11494 * alias.h (component_uses_parent_alias_set): Rename to ...
11495 (component_uses_parent_alias_set_from): ... this.
11496 * alias.c (component_uses_parent_alias_set): Rename to ...
11497 (component_uses_parent_alias_set_from): ... this and return
11498 the desired parent.
11499 (reference_alias_ptr_type_1): Use the result from
11500 component_uses_parent_alias_set_from instead of stripping
11501 components one at a time.
11502 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
11504 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
11506 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
11507 Move prototypes to...
11508 * tree-ssa-ter.h: New File. Move prototypes here.
11509 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
11510 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
11511 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
11512 from is_replaceable_p.
11513 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
11514 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
11515 (process_replaceable): Use ter_is_replaceable_p.
11516 (find_replaceable_in_bb): Use ter_is_replaceable_p.
11517 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
11518 newly refactored ssa_is_replaceable_p.
11519 * cfgexpand.c: Include tree-outof-ssa.h.
11520 * ssaexpand.h: Delete.
11522 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
11524 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
11525 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
11527 (create_gimple_tmp): Delete.
11528 (get_expr_type, build_assign, build_type_cast): Move to...
11529 * gimple-builder.c: New File.
11530 (get_expr_type): Relocate from gimple.c.
11531 (build_assign, build_type_cast): Change to only create ssanames.
11532 * gimple.h: Move prototypes to...
11533 * gimple-builder.h: New File. Here.
11534 * tree-ssa.h: And here.
11535 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
11536 count_uses_and_derefs): Relocate from gimple.c.
11537 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
11538 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
11539 * tree-ssa-math-opts (execute_cse_reciprocals): Use
11540 gimple_replace_ssa_lhs.
11541 * asan.c: Include gimple-builder.h.
11542 * Makefile.in: Add gimple-builder.o.
11544 2013-09-26 Richard Biener <rguenther@suse.de>
11546 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
11547 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
11548 (loe_visit_block): Use gcc_checking_assert.
11549 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
11550 gimple_assign_ssa_name_copy_p.
11551 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
11554 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
11556 * config/rs6000/t-rs6000 (rs6000.o): Remove.
11557 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
11559 2013-09-26 Richard Biener <rguenther@suse.de>
11561 PR tree-optimization/58539
11562 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
11563 the fact that debug statements are not taking part in loop-closed
11566 2013-09-26 Nick Clifton <nickc@redhat.com>
11568 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
11569 time warning message.
11570 (msp430_print_operand_raw): Delete unused letter parameter.
11571 (TARGET_PRINT_OPERAND_ADDRESS): Define.
11572 (msp430_print_operand_address): New function.
11573 (msp430_print_operand): Move address printing code from here to
11575 * config/msp430/msp430.md (movsipsi2): Add comment in generated
11577 (zero_extendpsisi2): Likewise.
11578 (extendpsisi2): New pattern.
11579 (andneghi3): New pattern.
11581 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
11583 * config/aarch64/aarch64.opt (mlra): New option.
11584 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
11585 (TARGET_LRA_P): Define.
11587 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
11589 * expr.c (expand_assignment): Remove obsolete comment.
11591 2013-09-25 Jeff Law <law@redhat.com>
11593 * tree-flow.h (thread_through_all_blocks): Prototype moved into
11594 tree-ssa-threadupdate.h.
11595 (register_jump_thread): Similarly.
11596 * tree-ssa-threadupdate.h: New header file.
11597 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
11598 * tree-vrp.c: Likewise.
11599 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
11600 (thread_around_empty_blocks): Change type of path vector argument to
11601 an edge,type pair from just an edge. Initialize both elements when
11602 appending to a jump threading path. Tweak references to elements
11604 (thread_across_edge): Similarly. Release memory for the elements
11606 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
11607 (dump_jump_thread_path): New function broken out from
11608 register_jump_thread.
11609 (register_jump_thread): Use dump_jump_thread_path. Change type of
11610 path vector entries. Search the path for NULL edges and dump
11611 the path if one is found. Tweak the conversion of path to 3-edge
11612 form to use the block copy type information embedded in the path.
11614 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
11616 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
11618 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
11619 Vladimir Makarov <vmakarov@redhat.com>
11621 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
11622 from the least significant bit.
11623 (strip_address_mutations): Add bitfield operations handling.
11624 (must_be_index_p): Add shifting and rotate operations handling.
11625 (set_address_base): Use must_be_base_p predicate.
11626 (set_address_index): Use must_be_index_p predicate.
11628 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
11629 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11630 Sergey Lega <sergey.s.lega@intel.com>
11631 Anna Tikhonova <anna.tikhonova@intel.com>
11632 Ilya Tocar <ilya.tocar@intel.com>
11633 Andrey Turetskiy <andrey.turetskiy@intel.com>
11634 Ilya Verbin <ilya.verbin@intel.com>
11635 Kirill Yukhin <kirill.yukhin@intel.com>
11636 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11638 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11640 (ix86_expand_vector_move_misalign): Support new unaligned load and
11641 stores and use new names.
11642 (CODE_FOR_sse2_storedqu): Rename to ...
11643 (CODE_FOR_sse2_storedquv16qi): ... this.
11644 (CODE_FOR_sse2_loaddqu): Rename to ...
11645 (CODE_FOR_sse2_loaddquv16qi): ... this.
11646 (CODE_FOR_avx_loaddqu256): Rename to ...
11647 (CODE_FOR_avx_loaddquv32qi): ... this.
11648 (CODE_FOR_avx_storedqu256): Rename to ...
11649 (CODE_FOR_avx_storedquv32qi): ... this.
11650 * config/i386/i386.md (fpint_logic): New.
11651 * config/i386/sse.md (VMOVE): Extend for AVX512.
11655 (VI_UNALIGNED_LOADSTORE): Ditto.
11656 (sse2_avx_avx512f): Ditto.
11657 (sse2_avx2): Extend for AVX512.
11658 (sse4_1_avx2): Ditto.
11659 (avx2_avx512f): New.
11660 (sse): Extend for AVX512.
11663 (avxsizesuffix): Ditto.
11664 (sseintvecmode): Ditto.
11665 (ssePSmode): Ditto.
11666 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
11667 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
11668 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
11669 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
11670 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
11671 (<sse2_avx_avx512f>_storedqu<mode): ... this.
11672 (<sse>_movnt<mode>): Replace constraint "x" with "v".
11673 (STORENT_MODE): Extend for AVX512.
11674 (*absneg<mode>2): Replace constraint "x" with "v".
11675 (*mul<mode>3): Ditto.
11676 (*ieee_smin<mode>3): Ditto.
11677 (*ieee_smax<mode>3): Ditto.
11678 (avx_cmp<mode>3): Replace VF with VF_128_256.
11679 (*<sse>_maskcmp<mode>3_comm): Ditto.
11680 (<sse>_maskcmp<mode>3): Ditto.
11681 (<sse>_andnot<mode>3): Extend for AVX512.
11682 (<code><mode>3, anylogic): Replace VF with VF_128_256.
11683 (<code><mode>3, fpint_logic): New.
11684 (*<code><mode>3): Extend for AVX512.
11685 (avx512flogicsuff): New.
11686 (avx512f_<logic><mode>): Ditto.
11687 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
11689 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
11690 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
11691 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
11692 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
11693 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
11694 (xop_vpermil2<mode>3): Ditto.
11695 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
11696 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
11697 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
11698 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
11700 2013-09-25 Tom Tromey <tromey@redhat.com>
11702 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
11703 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
11704 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
11705 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
11706 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
11707 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
11708 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
11709 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
11710 (GRAPHITE_HTAB_H): Remove.
11712 2013-09-25 Tom Tromey <tromey@redhat.com>
11714 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
11716 2013-09-25 Tom Tromey <tromey@redhat.com>
11718 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
11720 2013-09-25 Tom Tromey <tromey@redhat.com>
11722 * config/i386/t-i386 (i386.o): Remove.
11723 (i386-c.o): Use COMPILE and POSTCOMPILE.
11725 2013-09-25 Tom Tromey <tromey@redhat.com>
11727 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
11729 2013-09-25 Tom Tromey <tromey@redhat.com>
11731 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
11732 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
11733 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
11734 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
11735 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
11736 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
11737 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
11738 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
11739 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
11740 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
11741 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
11742 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
11743 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
11744 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
11745 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
11746 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
11747 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
11748 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
11749 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
11750 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
11751 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
11752 (tree-ssa-pre.o, tree-ssa-sccvn.o)
11753 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
11754 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
11755 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
11756 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
11757 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
11758 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
11759 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
11760 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
11761 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
11762 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
11763 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
11764 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
11765 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
11766 (graphite-clast-to-gimple.o, graphite-dependences.o)
11767 (graphite-interchange.o, graphite-poly.o)
11768 (graphite-scop-detection.o, graphite-sese-to-poly.o)
11769 (graphite-optimize-isl.o, tree-vect-loop.o)
11770 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
11771 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
11772 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
11773 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
11774 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
11775 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
11776 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
11777 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
11778 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
11779 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
11780 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
11781 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
11782 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
11783 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
11784 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
11785 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
11786 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
11787 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
11788 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
11789 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
11790 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
11791 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
11792 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
11793 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
11794 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
11795 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
11796 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
11797 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
11798 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
11799 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
11800 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
11801 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
11802 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
11803 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
11804 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
11805 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
11806 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
11807 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
11808 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
11809 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
11810 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
11811 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
11812 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
11813 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
11814 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
11815 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
11816 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
11817 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
11818 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
11819 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
11820 (gcov-dump.o): Remove.
11821 (default-c.o): Use COMPILE and POSTCOMPILE.
11822 (CFLAGS-gcc.o): New variable.
11823 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
11825 2013-09-25 Tom Tromey <tromey@redhat.com>
11827 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
11828 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
11829 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
11830 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
11831 (c-family/c-pragma.o, c-family/c-pretty-print.o)
11832 (c-family/c-semantics.o, c-family/c-ada-spec.o)
11833 (c-family/array-notation-common.o, c-family/stub-objc.o)
11834 (c-family/c-ubsan.o): Remove.
11836 2013-09-25 Tom Tromey <tromey@redhat.com>
11838 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
11840 2013-09-25 Tom Tromey <tromey@redhat.com>
11842 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
11843 to add -DENABLE_SHARED_LIBGCC.
11844 (gcc.o): Don't use subshell.
11846 2013-09-25 Tom Tromey <tromey@redhat.com>
11848 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
11849 * configure.ac: Don't invoke AM_PROG_CC_C_O.
11850 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
11851 * configure, config.in: Rebuild.
11853 2013-09-25 Tom Tromey <tromey@redhat.com>
11855 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
11856 (COMPILE, POSTCOMPILE): New variables.
11857 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
11858 (DEPFILES): New variable.
11859 Include ".Po" files.
11860 * configure.ac: Add checks for dependency checking.
11861 * configure, aclocal.m4: Regenerate.
11863 2013-09-25 Tom Tromey <tromey@redhat.com>
11865 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
11866 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
11868 2013-09-25 Tom Tromey <tromey@redhat.com>
11870 * Makefile.in (generated_files): Add options.h,
11871 target-hooks-def.h, insn-opinit.h,
11872 common/common-target-hooks-def.h, pass-instances.def,
11873 c-family/c-target-hooks-def.h.
11875 2013-09-25 Jeff Law <law@redhat.com>
11877 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
11878 than foo[foo.length () - 1] to access last member in a vec.
11879 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
11881 2013-09-25 Richard Biener <rguenther@suse.de>
11883 PR middle-end/58521
11884 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
11886 2013-09-25 Jan Hubicka <jh@suse.cz>
11888 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
11891 2013-09-25 Marek Polacek <polacek@redhat.com>
11894 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
11895 when determining the type name.
11897 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
11899 * config/sh/sh.md: Fix formatting.
11901 2013-09-24 Xinliang David Li <davidxl@google.com>
11903 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
11904 max peel iterations parameter.
11905 * param.def: New parameter.
11906 * doc/invoke.texi: Document New parameter.
11908 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
11910 * gimple-pretty-print.c: Various whitespace tweaks.
11911 * tree-core.h: Likewise.
11912 * tree-pretty-print.c: Likewise.
11913 * tree-ssa-alias.c: Likewise.
11914 * tree-ssa-copy.c: Likewise.
11915 * tree-ssanames.c: Likewise.
11916 * tree-ssanames.h: Likewise.
11917 * tree-vrp.c: Likewise.
11919 2013-09-24 Alan Modra <amodra@gmail.com>
11921 PR middle-end/57134
11922 PR middle-end/57586
11923 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
11924 for output operands that disallow regs. Don't use EXPAND_WRITE on
11927 2013-09-24 Richard Biener <rguenther@suse.de>
11929 PR middle-end/58513
11930 * tree.c (reference_alias_ptr_type): Move ...
11931 * alias.c (reference_alias_ptr_type): ... here and implement
11932 in terms of the new reference_alias_ptr_type_1.
11933 (ref_all_alias_ptr_type_p): New helper.
11934 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
11935 use ref_all_alias_ptr_type_p.
11936 (get_deref_alias_set): Add flag_strict_aliasing check here.
11937 (reference_alias_ptr_type_1): New function, split out from ...
11938 (get_alias_set): ... here.
11939 (alias_ptr_types_compatible_p): New function.
11940 * alias.h (reference_alias_ptr_type): Declare.
11941 (alias_ptr_types_compatible_p): Likewise.
11942 * tree.h (reference_alias_ptr_type): Remove.
11943 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
11944 to compare MEM_REF alias types.
11946 2013-09-24 Richard Biener <rguenther@suse.de>
11948 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
11950 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11952 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
11953 reload helper function arrays into a single array reg_addr.
11954 (reload_fpr_gpr): Likewise.
11955 (reload_gpr_vsx): Likewise.
11956 (reload_vsx_gpr): Likewise.
11957 (struct rs6000_reg_addr): Likewise.
11958 (reg_addr): Likewise.
11959 (rs6000_debug_reg_global): Change rs6000_vector_reload,
11960 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
11961 (rs6000_init_hard_regno_mode_ok): Likewise.
11962 (rs6000_secondary_reload_direct_move): Likewise.
11963 (rs6000_secondary_reload): Likewise.
11965 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
11966 constraints: wu, ww, and wy. Repurpose wv constraint added during
11967 power8 changes. Put wg constraint in alphabetical order.
11969 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
11970 for future work to add ISA 2.07 VSX single precision support.
11971 (-mvsx-scalar-double): Change default from -1 to 1, update
11972 documentation comment.
11973 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
11974 (-mupper-regs-df): New debug switch to control whether DF values
11975 can go in the traditional Altivec registers.
11976 (-mupper-regs-sf): New debug switch to control whether SF values
11977 can go in the traditional Altivec registers.
11979 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
11980 and wy constraints.
11981 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
11982 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
11983 Add new constraints, wu/ww/wy. Repurpose wv constraint.
11984 (rs6000_debug_legitimate_address_p): Print if we are running
11985 before, during, or after reload.
11986 (rs6000_secondary_reload): Add a comment.
11987 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
11989 * config/rs6000/constraints.md (wa constraint): Sort w<x>
11990 constraints. Update documentation string.
11991 (wd constraint): Likewise.
11992 (wf constraint): Likewise.
11993 (wg constraint): Likewise.
11994 (wn constraint): Likewise.
11995 (ws constraint): Likewise.
11996 (wt constraint): Likewise.
11997 (wx constraint): Likewise.
11998 (wz constraint): Likewise.
11999 (wu constraint): New constraint for ISA 2.07 SFmode scalar
12001 (ww constraint): Likewise.
12002 (wy constraint): Likewise.
12003 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
12004 in the previous submissions.
12005 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
12007 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
12009 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
12010 (REG_BR_PROB): Say that the probability is stored in an int_list.
12011 * reg-notes.def: Update commentary to mention INT_LIST.
12012 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
12013 (INT_LIST): New rtx.
12014 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
12015 * rtlanal.c (int_reg_note_p): New function.
12016 (alloc_reg_note): Assert that the note does not have an int argument.
12017 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
12018 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
12019 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
12020 rather than an INSN_LIST. Handle INT_LIST.
12021 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
12022 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
12023 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
12024 Manipulate them as ints rather than rtxes.
12025 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
12026 * regmove.c (copy_src_to_dest): Likewise.
12027 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
12029 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
12030 into the cases that need it.
12031 * config/arm/arm.c (arm_unwind_emit): Likewise.
12033 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
12034 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
12035 * loop-doloop.c (add_test, doloop_modify): Likewise.
12036 * loop-unswitch.c (compare_and_jump_seq): Likewise.
12037 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
12038 * predict.c (combine_predictions_for_insn): Likewise.
12039 * print-rtl.c (print_rtx): Handle INT_LIST.
12040 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
12041 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
12042 * config/arm/arm.c (emit_unlikely_jump): Likewise.
12043 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
12044 (ix86_split_fp_branch, predict_jump): Likewise.
12045 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
12046 * config/sh/sh.c (expand_cbranchsi4): Likewise.
12047 * config/spu/spu.c (ea_load_store_inline): Likewise.
12049 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
12050 value of a REG_BR_PROB note.
12051 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
12052 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
12053 * emit-rtl.c (try_split): Likewise.
12054 * predict.c (br_prob_note_reliable_p): Likewise.
12055 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
12056 * reorg.c (mostly_true_jump): Likewise.
12057 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
12058 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
12059 * config/i386/i386.c (ix86_print_operand): Likewise.
12060 * config/ia64/ia64.c (ia64_print_operand): Likewise.
12061 * config/mmix/mmix.c (mmix_print_operand): Likewise.
12062 * config/rs6000/rs6000.c (output_cbranch): Likewise.
12063 * config/s390/s390.c (s390_expand_tbegin): Likewise.
12064 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
12065 * config/sparc/sparc.c (output_cbranch): Likewise.
12066 * config/spu/spu.c (get_branch_target): Likewise.
12067 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
12068 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
12070 2013-09-23 Jan Hubicka <jh@suse.cz>
12072 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
12074 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
12075 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
12077 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
12078 (gimple_fold_call): Dump inconsistent devirtualizations; add
12079 sanity check for type based devirtualizations.
12080 * ipa-prop.c: Include ipa-utils.h
12081 (ipa_intraprocedural_devirtualization): Add sanity check.
12082 (try_make_edge_direct_virtual_call): Likewise.
12084 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
12086 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
12087 assignment statements.
12089 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12091 * gimple-pretty-print.c (dump_ssaname_info): New function.
12092 (dump_gimple_phi): Call it.
12093 (pp_gimple_stmt_1): Likewise.
12094 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
12095 (range_info_def): Declare.
12096 * tree-pretty-print.c (pp_double_int): New function.
12097 (dump_generic_node): Call it.
12098 * tree-pretty-print.h (pp_double_int): Declare.
12099 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
12100 * tree-ssanames.h (range_info_def): New structure.
12101 (value_range_type): Move definition here.
12102 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
12104 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
12106 (set_range_info): New function.
12107 (get_range_info): Likewise.
12108 (duplicate_ssa_name_range_info): Likewise.
12109 (duplicate_ssa_name_fn): Check pointer type and call
12110 duplicate_ssa_name_range_info.
12111 * tree-ssa-copy.c (fini_copy_prop): Likewise.
12112 * tree-vrp.c (value_range_type): Remove definition, now in
12114 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
12115 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
12116 (SSA_NAME_RANGE_INFO): New macro.
12118 2013-09-23 Richard Biener <rguenther@suse.de>
12120 PR tree-optimization/58464
12121 * tree-ssa-pre.c (phi_trans_lookup): Remove.
12122 (phi_trans_add): Change to add conditionally on being not present.
12123 (phi_translate_1): Remove recursion detection here.
12124 (phi_translate): Pre-seed the cache with NULL to catch
12125 recursion here in a more generic way.
12126 (bitmap_find_leader): Adjust comment.
12127 (get_representative_for): Dump value-numbers.
12128 (create_expression_by_pieces): Likewise.
12129 (insert_into_preds_of_block): Likewise.
12131 2013-09-23 Christian Bruel <christian.bruel@st.com>
12134 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
12135 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
12137 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
12140 2013-09-20 Renlin Li <renlin.li@arm.com>
12142 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12144 (aarch64_expand_epilogue): Likewise.
12145 (aarch64_legitimize_reload_address): Likewise.
12147 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
12149 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
12150 NULL_TREE before pushing them onto the vector. Likewise for labels.
12152 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
12154 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
12155 comparison operators when -fno-trapping-math is in effect.
12156 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
12157 comparison operators in TFmode and assert that unsupported operators
12159 (ia64_print_operand): Likewise.
12161 2013-09-21 Jan Hubicka <jh@suse.cz>
12163 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
12164 (sse_typeless_stores): Enable for core
12165 (sse_load0_by_pxor): Likewise.
12166 (four_jump_limit): Disable for core.
12167 (pad_returns): Likewise.
12168 (avoid_vector_decode): Likewise.
12169 (fuse_cmp_and_branch): Enable for cores.
12170 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
12172 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
12174 PR middle-end/56791
12175 * config/pa/pa.c (pa_option_override): Disable auto increment and
12176 decrement instructions until reload is completed.
12178 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
12179 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
12180 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
12182 2013-09-20 DJ Delorie <dj@redhat.com>
12183 Nick Clifton <nickc@redhat.com>
12185 * config/rl78/rl78.c: Various whitespace and comment tweaks.
12186 (need_to_save): Save bank 0 on interrupts.
12187 (characterize_address): Strip far address wrappers.
12188 (rl78_as_legitimate_address): Likewise.
12189 (transcode_memory_rtx): Likewise.
12190 (rl78_peep_movhi_p): Disable this peephole after devirt.
12191 (rl78_propogate_register_origins): Forget all origins when a
12193 * config/rl78/rl78-virt.md: Various whitespace tweaks.
12194 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
12196 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
12197 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
12198 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
12200 * config/rl78/constraints.md: Various whitespace and paren tweaks.
12202 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
12204 * config/pa/pa.md: In "scc" insn patterns, change output template to
12205 handle const0_rtx in reg_or_0_operand operands.
12207 2013-09-20 Martin Husemann <martin@NetBSD.org>
12210 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
12211 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
12213 2013-09-20 Richard Biener <rguenther@suse.de>
12215 PR middle-end/58484
12216 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
12217 remembering SSA name version and block index.
12218 (new_scev_info_str): Adjust.
12219 (hash_scev_info): Likewise. Also hash the block index.
12220 (eq_scev_info): Adjust.
12221 (find_var_scev_info): Likewise.
12222 (struct instantiate_cache_entry): Remove.
12223 (struct instantiate_cache_type): Use a htab to map name, block
12225 (instantiate_cache_type::~instantiate_cache_type): Adjust.
12226 (get_instantiated_value_entry): Likewise.
12227 (hash_idx_scev_info, eq_idx_scev_info): New functions.
12228 (instantiate_scev_name): Adjust.
12230 2013-09-20 Jeff Law <law@redhat.com>
12232 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
12234 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
12236 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
12237 Call aarch64_simd_expand_args to update op[argc].
12239 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
12241 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
12244 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
12246 * gengtype.c (file_rules): Added rule for *.cc files.
12247 (get_output_file_with_visibility): Give fatal message when no
12250 2013-09-20 Renlin Li <renlin.li@arm.com>
12252 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
12253 (aarch64_expand_epilogue): Likewise.
12254 (aarch64_legitimize_reload_address): Likewise.
12256 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12258 PR middle-end/57748
12259 * expr.c (expand_assignment): Remove misalignp code path.
12261 2013-09-20 Marek Polacek <polacek@redhat.com>
12264 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
12265 TYPE_PRECISION. Add asserts.
12267 2013-09-20 Richard Biener <rguenther@suse.de>
12269 PR tree-optimization/58453
12270 * tree-loop-distribution.c (distribute_loop): Apply the cost
12271 model for -ftree-loop-distribute-patterns, too.
12273 2013-09-20 Richard Biener <rguenther@suse.de>
12275 PR middle-end/58473
12276 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
12277 make type comparison less strict.
12279 2013-09-20 Alan Modra <amodra@gmail.com>
12281 * configure: Regenerate.
12282 * aclocal.m4: Regenerate.
12284 2013-09-20 Marek Polacek <polacek@redhat.com>
12287 * doc/extend.texi: Document that attribute used is meant to be used
12288 on variables with static storage duration.
12290 2013-09-19 Jakub Jelinek <jakub@redhat.com>
12292 PR tree-optimization/58472
12293 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
12294 simd_lane_access set inv_p = false.
12295 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
12296 the simduid magic VAR_DECL.
12298 2013-09-19 Jan Hubicka <jh@suse.cz>
12300 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
12302 2013-09-17 Jeff Law <law@redhat.com>
12304 * tree-ssa-dom.c (record_temporary_equivalences): New function
12305 split out of dom_opt_dom_walker::after_dom_children.
12306 (dom_opt_dom_walker::thread_across_edge): Move common code
12307 in here from dom_opt_dom_walker::after_dom_children.
12308 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
12310 2013-09-19 Jan Hubicka <jh@suse.cz>
12312 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
12313 (TARGET_GENERIC): Use PROCESOR_GENERIC
12314 (enum processor_type): Unify generic32 and 64.
12315 * i386.md (cpu): Likewise.
12316 * x86-tune.def (use_leave): Enable for generic32.
12317 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
12318 * athlon.md: Change generic64 to generic in all occurences.
12319 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
12320 (ix86_target_macros_internal): Likewise.
12321 * driver-i386.c (host_detect_local_cpu): Likewise.
12322 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
12324 (generic_memcpy, generic_memset, generic_cost): This one.
12325 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
12326 (m_GENERIC32, m_GENERIC64): Remove.
12327 (m_GENERIC): Turn into one flag.
12328 (processor_target): Unify generic tunnings.
12329 (ix86_option_override_internal): Replace generic32/64 by generic.
12330 (ix86_issue_rate): Likewise.
12331 (ix86_adjust_cost): Likewise.
12333 2013-09-19 Jan Hubicka <jh@suse.cz>
12335 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
12336 of speculative flag.
12338 2013-09-19 Jakub Jelinek <jakub@redhat.com>
12340 * omp-low.c (expand_omp_sections): Always pass len - 1 to
12341 GOMP_sections_start, even if !exit_reachable.
12343 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
12345 * lra-constraints.c (need_for_all_save_p): Use macro
12346 HARD_REGNO_CALL_PART_CLOBBERED.
12347 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
12348 set up pseudo conflict hard regs.
12350 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
12353 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
12356 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
12358 PR rtl-optimization/58438
12359 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
12360 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
12361 from previous subpasses.
12363 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
12365 * arm.c (arm_get_frame_offsets): Validate architecture supports
12366 LDRD/STRD before accepting the tuning preference.
12367 (arm_expand_prologue): Likewise.
12368 (arm_expand_epilogue): Likewise.
12370 2013-09-18 Richard Biener <rguenther@suse.de>
12372 PR tree-optimization/58417
12373 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
12374 have chrecs with symbols defined in the loop as operands.
12375 (chrec_fold_multiply): Likewise.
12376 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
12377 parameters before folding binary operations.
12378 (struct instantiate_cache_entry_hasher): Remove.
12379 (struct instantiate_cache_type): Use a pointer-map.
12380 (instantiate_cache_type::instantiate_cache_type): New function.
12381 (instantiate_cache_type::get): Likewise.
12382 (instantiate_cache_type::set): Likewise.
12383 (instantiate_cache_type::~instantiate_cache_type): Adjust.
12384 (get_instantiated_value_entry): Likewise.
12385 (global_cache): New global.
12386 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
12387 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
12388 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
12389 (instantiate_scev_name): Adjust.
12390 (instantiate_scev): Construct global instead of local cache.
12391 (resolve_mixers): Likewise.
12393 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
12394 Paolo Carlini <paolo.carlini@oracle.com>
12397 * doc/implement-cxx.texi: Fix references to the C++ standards.
12399 2013-09-18 Jakub Jelinek <jakub@redhat.com>
12401 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
12402 * tree-vect-data-refs.c (vect_analyze_data_refs): For
12403 simd_lane_access drs, update also DR_ALIGNED_TO.
12405 2013-09-18 Marek Polacek <polacek@redhat.com>
12408 * doc/extend.texi: Document no_sanitize_undefined attribute.
12409 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
12410 no_sanitize_undefined attribute.
12412 2013-09-18 Nick Clifton <nickc@redhat.com>
12414 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
12415 (ASM_DECLARE_FUNCTION_NAME): Define.
12417 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
12419 * compare-elim.c (find_comparison_dom_walker): New class
12420 (find_comparisons_in_bb): Rename to
12421 find_comparison_dom_walker::before_dom_children
12422 (find_comparisons): Adjust
12423 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
12425 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
12426 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
12427 (init_walk_dominator_tree): Remove declaration.
12428 (fini_walk_dominator_tree): Remove declaration.
12429 * fwprop.c (single_def_use_dom_walker): New class
12430 (single_def_use_enter_block): Convert to
12431 single_def_use_dom_walker::before_dom_children.
12432 (single_def_use_leave_block): Convert to
12433 single_def_use_dom_walker::after_dom_children.
12434 (build_single_def_use_links): Adjust.
12435 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
12437 (find_candidates_in_block): Convert to
12438 find_candidates_dom_walker::before_dom_children.
12439 (execute_strength_reduction): Adjust.
12440 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
12441 (sese_dom_walker): New class.
12442 (sese_dom_walker::sese_dom_walker): New constructor.
12443 (sese_dom_walker::~sese_dom_walker): New destructor.
12444 (build_sese_conditions_before): Convert to
12445 sese_dom_walker::before_dom_children.
12446 (build_sese_conditions_after): Convert to
12447 sese_dom_walker::after_dom_children.
12448 (build_poly_scop): Adjust
12449 * tree-into-ssa.c (rewrite_dom_walker): New class
12450 (rewrite_enter_block): Convert to
12451 rewrite_dom_walker::before_dom_children.
12452 (rewrite_leave_block): Convert to
12453 rewrite_dom_walker::after_dom_children.
12454 (rewrite_update_dom_walker): New class.
12455 (rewrite_update_enter_block): Convert to
12456 rewrite_update_dom_walker::before_dom_children.
12457 (rewrite_update_leave_block): Convert to
12458 rewrite_update_dom_walker::after_dom_children.
12459 (rewrite_blocks, rewrite_into_ssa): Adjust.
12460 (mark_def_dom_walker): New class.
12461 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
12462 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
12463 (mark_def_sites_blocks): Convert to
12464 mark_def_dom_walker::before_dom_children.
12465 (mark_def_site_blocks): Remove.
12466 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
12467 (tree_ssa_dominator_optimize): Adjust.
12468 (dom_thread_across_edge): Convert to method
12469 dom_opt_dom_walker::thread_across_edge.
12470 (dom_opt_enter_block): Convert to member function
12471 dom_opt_dom_walker::before_dom_children.
12472 (dom_opt_leave_block): Convert to member function
12473 dom_opt_dom_walker::after_dom_children.
12474 * tree-ssa-dse.c (dse_dom_walker): New class.
12475 (dse_enter_block): Convert to member function
12476 dse_dom_walker::before_dom_children.
12477 (tree_ssa_dse): Adjust.
12478 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
12479 (determine_invariantness_stmt): Convert to method
12480 invariantness_dom_walker::before_dom_children.
12481 (determine_invariantness): Remove
12482 (move_computations_dom_walker): New class.
12483 (move_computations_stmt): Convert to method
12484 move_computations_dom_walker::before_dom_children.
12485 (move_computations, tree_ssa_lim): Adjust.
12486 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
12487 (nt_init_block): Convert to method
12488 notrappping_dom_walker::before_dom_children.
12489 (nt_fini_block): Convert to method
12490 method nontrapping_dom_walker::after_dom_children.
12491 (get_non_trapping): Adjust.
12492 * tree-ssa-pre.c (eliminate_dom_walker): New class.
12493 (eliminate_bb): Convert to method
12494 eliminate_dom_walker::before_dom_children.
12495 (eliminate_leave_block): Convert to method
12496 eliminate_dom_walker::after_dom_children.
12497 (eliminate): Adjust.
12498 * tree-ssa-strlen.c (strlen_dom_walker): New class.
12499 (strlen_enter_block): Convert to method
12500 strlen_dom_walker::before_dom_children.
12501 (strlen_leave_block): Convert to method
12502 method strlen_dom_walker::after_dom_children.
12503 (tree_ssa_strlen): Adjust.
12504 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
12505 (tree_ssa_uncprop): Adjust.
12506 (uncprop_leave_block): Convert to method
12507 uncprop_dom_walker::after_dom_children.
12508 (uncprop_leave_block): Convert to method
12509 uncprop_dom_walker::before_dom_children.
12511 2013-09-18 Bin Cheng <bin.cheng@arm.com>
12513 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
12514 branch in same basic block. Check both src and dest of the move insn.
12516 2013-09-17 Nick Clifton <nickc@redhat.com>
12518 * config/rl78/rl78-real.md (bf): New pattern.
12520 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
12521 (rl78_print_operand): Do not put a # before a %B.
12522 * config/rl78/rl78.opt: Tweak doc strings.
12524 2013-09-17 DJ Delorie <dj@redhat.com>
12526 * config/rl78/constraints.md (Wcv): Allow up to $r31.
12527 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
12528 (rl78_option_override): Likewise, if -mallregs.
12529 (is_virtual_register): Likewise.
12530 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
12531 (REGNO_OK_FOR_BASE_P): Likewise.
12532 * config/rl78/rl78.opt (-mallregs): New.
12534 2013-09-17 Nick Clifton <nickc@redhat.com>
12536 * config/rl78/rl78.c (need_to_save): Change return type to bool.
12537 For interrupt functions: save all call clobbered registers if the
12538 interrupt handler is not a leaf function.
12539 (rl78_expand_prologue): Always recompute the frame information.
12540 For interrupt functions: only select bank 0 if one of the bank 0
12541 registers is going to be psuhed.
12543 2013-09-17 DJ Delorie <dj@redhat.com>
12545 * config/rl78/constraints.md: For each W* constraint, rename to C*
12546 and create a W* constraint that checks for an optional ES: prefix
12548 * config/rl78/rl78.md (UNS_ES_ADDR): New.
12549 (es_addr): New. Used to wrap far addresses.
12550 * config/rl78/rl78-protos.h (rl78_es_addr): New.
12551 (rl78_es_base): New.
12552 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
12553 wrapped far addresses.
12554 (rl78_print_operand_1): Unwrap far addresses before processing.
12555 (rl78_lo16): Wrap far addresses in unspecs.
12556 (rl78_es_addr): New.
12557 (rl78_es_base): New.
12558 (insn_ok_now): Check for not-yet-wrapped far addresses.
12559 (transcode_memory_rtx): Properly re-wrap far addresses.
12561 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
12563 * config/sparc/t-rtems: Add leon3 multilibs.
12565 2013-09-17 Cong Hou <congh@google.com>
12567 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
12568 when checking the dot production pattern. The type of rhs operand
12569 of multiply is now checked correctly.
12571 2013-09-17 Jeff Law <law@redhat.com>
12573 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
12574 edge implied equivalences into successor phis.
12575 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
12576 here from tree-ssa-threadedge.c.
12577 (mark_threaded_blocks): When threading through a joiner, if both
12578 successors of the joiner's clone reach the same block, verify the
12579 PHI arguments are equal. If not, cancel the jump threading request.
12580 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
12581 tree-ssa-threadupdate.c
12582 (thread_across_edge): Don't check PHI argument equality when
12583 threading through joiner block here.
12585 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
12587 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
12588 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
12589 (warn_uninit, warn_uninitialized_vars,
12590 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
12591 Move to tree-ssa-uninit.c.
12592 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
12593 (has_undefined_value_p): New. Pass dependant parts of
12594 ssa_undefined_value_p.
12595 (uninit_undefined_value_p): Use has_undefined_value_p.
12596 (warn_uninit, warn_uninitialized_vars,
12597 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
12598 Move from tree-ssa.c.
12599 * tree-ssa.h: Adjust prototypes.
12601 2013-09-17 Jan Hubicka <jh@suse.cz>
12603 PR middle-end/58332
12604 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
12605 * ipa-inline.c (can_inline_edge_p): Do not downgrade
12606 FUNCTION_NOT_OPTIMIZED.
12607 * ipa-inline-analysis.c (compute_inline_parameters): Function
12608 not optimized is not inlinable unless it is alwaysinline.
12609 (inline_analyze_function): Force calls in not optimized
12610 function not inlinable.
12612 2013-09-17 Jan Hubicka <jh@suse.cz>
12614 PR middle-end/58329
12615 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
12617 * ipa.c (function_and_variable_visibility): Likewise.
12618 * ipa-profile.c (ipa_profile): Likewise.
12620 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
12623 * cgraph.c (cgraph_function_body_availability): Check for ifunc
12624 attribute, and don't inline the resolver in this case.
12626 2013-09-17 Teresa Johnson <tejohnson@google.com>
12628 * coverage.c (get_coverage_counts): Add missing newline.
12630 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12632 PR tree-optimization/58088
12633 * fold-const.c (mask_with_trailing_zeros): New function.
12634 (fold_binary_loc): Make sure we don't recurse infinitely
12635 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
12636 Use mask_with_trailing_zeros where appropriate.
12638 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
12640 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
12641 of 'prev' var to get better distance estimation.
12643 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
12645 * tree-inline.h (struct copy_body_data): Add transform_parameter.
12646 * tree-inline.c (is_parameter_of): New predicate.
12647 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
12648 a parameter has been remapped.
12649 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
12650 (optimize_inline_calls): Initialize transform_parameter.
12651 (copy_gimple_seq_and_replace_locals): Likewise.
12652 (tree_function_versioning): Likewise.
12653 (maybe_inline_call_in_expr): Likewise.
12655 2013-09-17 Nick Clifton <nickc@redhat.com>
12657 * config/msp430/msp430-protos.h: Add prototypes for new functions.
12658 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
12659 interrupt handlers.
12660 (is_attr_func): New function.
12661 (msp430_is_interrupt_func): New function.
12662 (is_naked_func): New function.
12663 (is_reentrant_func): New function.
12664 (is_critical_func): New function.
12665 (msp430_start_function): Add annotations for function attributes.
12666 (msp430_attr): New function.
12667 (msp430_attribute_table): New.
12668 (msp430_function_section): New function.
12669 (TARGET_ASM_FUNCTION_SECTION): Define.
12670 (msp430_builtin): New enum.
12671 (msp430_init_builtins): New function.
12672 (msp430_builtin_devl): New function.
12673 (msp430_expand_builtin): New function.
12674 (TARGET_INIT_BUILTINS): Define.
12675 (TARGET_EXPAND_BUILTINS): Define.
12676 (TARGET_BUILTIN_DECL): Define.
12677 (msp430_expand_prologue): Add support for naked, interrupt,
12678 critical and reentrant functions.
12679 (msp430_expand_epilogue): Likewise.
12680 (msp430_print_operand): Handle 'O' character.
12681 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
12683 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
12684 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
12685 (pushm): Use a 'n' rather than an 'i' constraint.
12686 (msp_return): Add generation of the interrupt return instruction.
12687 (disable_interrupts): New pattern.
12688 (enable_interrupts): New pattern.
12689 (push_intr_state): New pattern.
12690 (pop_intr_state): New pattern.
12691 (bic_SR): New pattern.
12692 (bis_SR): New pattern.
12693 * doc/extend.texi: Document MSP430 function attributes and builtin
12696 2013-09-17 Richard Biener <rguenther@suse.de>
12698 PR tree-optimization/58432
12699 * tree-loop-distribution.c (tree_loop_distribution): Also
12700 scan PHIs for outside loop uses and seed a partition from them.
12702 2013-09-17 Bin Cheng <bin.cheng@arm.com>
12704 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
12705 (restructure_reference): Call backtrace_base_for_ref.
12707 2013-09-17 Alan Modra <amodra@gmail.com>
12710 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
12713 2013-09-16 DJ Delorie <dj@redhat.com>
12715 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
12716 vregs location for RL78/G10.
12717 (rl78_expand_prologue): Avoid SEL on G10.
12718 (rl78_expand_epilogue): Likewise.
12719 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
12720 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
12721 __RL78_G10__ when appropriate.
12722 (ASM_SPEC): Pass -mg10 along to the assembler.
12723 * config/rl78/rl78.md (sel_rb): Disable for G10.
12724 * config/rl78/rl78.opt: Add -mg10 option.
12725 * config/rl78/t-rl78: Add -mg10 multilib.
12727 2013-09-16 Xinliang David Li <davidxl@google.com>
12729 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
12730 * omp-low.c (omp_max_vf): Ditto.
12731 (expand_omp_simd): Ditto.
12732 * tree-vectorizer.c (vectorize_loops): Ditto.
12733 (gate_vect_slp): Ditto.
12734 (gate_increase_alignment): Ditto.
12735 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
12736 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
12737 (gate_tree_vectorize): Name change.
12738 (tree_vectorize): Ditto.
12739 (pass_vectorize::gate): Call new function.
12740 (pass_vectorize::execute): Ditto.
12741 * opts.c: O3 default setting change.
12742 (finish_options): Check new flag.
12743 * doc/invoke.texi: Document new flags.
12744 * common.opt: New flags.
12746 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
12748 * doc/tm.texi.in (Cond Exec Macros): Remove node.
12749 (Condition Code): Don't reference it.
12750 * doc/tm.texi: Regenerate.
12752 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
12754 PR middle-end/58418
12755 * lra-constraints.c (undo_optional_reloads): Consider all optional
12756 reload even if it did not get a hard reg.
12758 2013-09-16 Teresa Johnson <tejohnson@google.com>
12760 * dumpfile.c (dump_loc): Remove newline emission.
12761 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
12762 emission to dump_printf_loc calls where missing.
12763 (vect_mark_for_runtime_alias_test): Ditto.
12764 (vect_analyze_data_ref_dependence): Ditto.
12765 (vect_analyze_data_ref_dependences): Ditto.
12766 (vect_slp_analyze_data_ref_dependence): Ditto.
12767 (vect_slp_analyze_data_ref_dependences): Ditto.
12768 (vect_compute_data_ref_alignment): Ditto.
12769 (vect_update_misalignment_for_peel): Ditto.
12770 (vect_verify_datarefs_alignment): Ditto.
12771 (vector_alignment_reachable_p): Ditto.
12772 (vect_get_data_access_cost): Ditto.
12773 (vect_enhance_data_refs_alignment): Ditto.
12774 (vect_find_same_alignment_drs): Ditto.
12775 (vect_analyze_data_refs_alignment): Ditto.
12776 (vect_analyze_group_access): Ditto.
12777 (vect_analyze_data_ref_access): Ditto.
12778 (vect_analyze_data_ref_accesses): Ditto.
12779 (vect_prune_runtime_alias_test_list): Ditto.
12780 (vect_analyze_data_refs): Ditto.
12781 (vect_create_addr_base_for_vector_ref): Ditto.
12782 (vect_create_data_ref_ptr): Ditto.
12783 (vect_grouped_store_supported): Ditto.
12784 (vect_grouped_load_supported): Ditto.
12785 * value-prof.c (check_counter): Ditto.
12786 (check_ic_target): Ditto.
12787 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
12788 (vect_recog_widen_mult_pattern): Ditto.
12789 (vect_recog_widen_sum_pattern): Ditto.
12790 (vect_recog_over_widening_pattern): Ditto.
12791 (vect_recog_widen_shift_pattern): Ditto.
12792 (vect_recog_rotate_pattern): Ditto.
12793 (vect_recog_vector_vector_shift_pattern): Ditto.
12794 (vect_recog_divmod_pattern): Ditto.
12795 (vect_recog_mixed_size_cond_pattern): Ditto.
12796 (vect_recog_bool_pattern): Ditto.
12797 (vect_pattern_recog_1): Ditto.
12798 (vect_pattern_recog): Ditto.
12799 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
12800 (vect_is_simple_iv_evolution): Ditto.
12801 (vect_analyze_scalar_cycles_1): Ditto.
12802 (vect_get_loop_niters): Ditto.
12803 (vect_analyze_loop_1): Ditto.
12804 (vect_analyze_loop_form): Ditto.
12805 (vect_analyze_loop_operations): Ditto.
12806 (vect_analyze_loop_2): Ditto.
12807 (vect_analyze_loop): Ditto.
12808 (report_vect_op): Ditto.
12809 (vect_is_slp_reduction): Ditto.
12810 (vect_is_simple_reduction_1): Ditto.
12811 (vect_get_known_peeling_cost): Ditto.
12812 (vect_estimate_min_profitable_iters): Ditto.
12813 (vect_model_reduction_cost): Ditto.
12814 (vect_model_induction_cost): Ditto.
12815 (get_initial_def_for_induction): Ditto.
12816 (vect_create_epilog_for_reduction): Ditto.
12817 (vectorizable_reduction): Ditto.
12818 (vectorizable_induction): Ditto.
12819 (vectorizable_live_operation): Ditto.
12820 (vect_loop_kill_debug_uses): Ditto.
12821 (vect_transform_loop): Ditto.
12822 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
12823 (vect_stmt_relevant_p): Ditto.
12824 (process_use): Ditto.
12825 (vect_mark_stmts_to_be_vectorized): Ditto.
12826 (vect_model_simple_cost): Ditto.
12827 (vect_model_promotion_demotion_cost): Ditto.
12828 (vect_model_store_cost): Ditto.
12829 (vect_get_store_cost): Ditto.
12830 (vect_model_load_cost): Ditto.
12831 (vect_get_load_cost): Ditto.
12832 (vect_init_vector_1): Ditto.
12833 (vect_get_vec_def_for_operand): Ditto.
12834 (vect_finish_stmt_generation): Ditto.
12835 (vectorizable_call): Ditto.
12836 (vectorizable_conversion): Ditto.
12837 (vectorizable_assignment): Ditto.
12838 (vectorizable_shift): Ditto.
12839 (vectorizable_operation): Ditto.
12840 (vectorizable_store): Ditto.
12841 (vectorizable_load): Ditto.
12842 (vectorizable_condition): Ditto.
12843 (vect_analyze_stmt): Ditto.
12844 (vect_transform_stmt): Ditto.
12845 (vect_is_simple_use): Ditto.
12846 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
12847 (vect_can_advance_ivs_p): Ditto.
12848 (vect_update_ivs_after_vectorizer): Ditto.
12849 (vect_do_peeling_for_loop_bound): Ditto.
12850 (vect_gen_niters_for_prolog_loop): Ditto.
12851 (vect_update_inits_of_drs): Ditto.
12852 (vect_create_cond_for_alias_checks): Ditto.
12853 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
12854 (vect_build_slp_tree_1): Ditto.
12855 (vect_supported_load_permutation_p): Ditto.
12856 (vect_analyze_slp_instance): Ditto.
12857 (vect_analyze_slp): Ditto.
12858 (vect_make_slp_decision): Ditto.
12859 (vect_detect_hybrid_slp): Ditto.
12860 (vect_bb_vectorization_profitable_p): Ditto.
12861 (vect_slp_analyze_bb_1): Ditto.
12862 (vect_update_slp_costs_according_to_vf): Ditto.
12863 (vect_get_mask_element): Ditto.
12864 (vect_transform_slp_perm_load): Ditto.
12865 (vect_schedule_slp_instance): Ditto.
12866 (vect_schedule_slp): Ditto.
12867 (vect_slp_transform_bb): Ditto.
12868 * profile.c (read_profile_edge_counts): Ditto.
12869 (compute_branch_probabilities): Ditto.
12870 * coverage.c (get_coverage_counts): Ditto.
12872 2013-09-16 Diego Novillo <dnovillo@google.com>
12874 * tree-core.h: Add missing comment lines from refactoring of tree.h.
12876 2013-09-16 Jan Hubicka <jh@suse.cz>
12878 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
12879 abstract functions; for static functions check the presence of body.
12881 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
12883 * config/aarch64/aarch64-simd-builtins.def (fma): New.
12884 * config/aarch64/aarch64-simd.md
12885 (aarch64_mla_elt<mode>): New.
12886 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
12887 (aarch64_mls_elt<mode>): Likewise.
12888 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
12889 (aarch64_fma4_elt<mode>): Likewise.
12890 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
12891 (aarch64_fma4_elt_to_128v2df): Likewise.
12892 (aarch64_fma4_elt_to_64df): Likewise.
12893 (fnma<mode>4): Likewise.
12894 (aarch64_fnma4_elt<mode>): Likewise.
12895 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
12896 (aarch64_fnma4_elt_to_128v2df): Likewise.
12897 (aarch64_fnma4_elt_to_64df): Likewise.
12898 * config/aarch64/iterators.md (VDQSF): New.
12899 * config/aarch64/arm_neon.h
12900 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
12901 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
12903 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
12905 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
12906 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
12907 (aarch64_mul3_elt_to_128df): Likewise.
12908 (aarch64_mul3_elt_to_64v2df): Likewise.
12909 * config/aarch64/iterators.md (VEL): Also handle DFmode.
12911 (VMUL_CHANGE_NLANES) Likewise.
12914 * config/aarch64/arm_neon.h
12915 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
12917 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
12919 * config/aarch64/arm_neon.h
12920 (vcvtx_high_f32_f64): Fix parameters.
12922 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12923 Uros Bizjak <ubizjak@gmail.com>
12925 * config/alpha.c: Include tree-ssanames.h.
12927 2013-09-16 Richard Biener <rguenther@suse.de>
12929 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
12930 (dot_rdg_1): Handle control_dd.
12931 (create_edge_for_control_dependence): New function.
12932 (create_rdg_edges): Add control dependences if asked for.
12933 (build_rdg): Likewise.
12934 (generate_loops_for_partition): If there are not necessary
12935 control stmts remove all their dependencies.
12936 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
12937 (distribute_loop): Pass on control dependences.
12938 (tree_loop_distribution): Compute control dependences and remove
12939 restriction on number of loop nodes.
12941 2013-09-16 Jakub Jelinek <jakub@redhat.com>
12943 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
12944 for internal calls.
12946 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
12948 * cse.c (try_const_anchors): Punt on CC modes.
12950 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12952 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
12954 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
12957 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
12958 calls to word_mode.
12960 2013-09-14 Iain Sandoe <iain@codesourcery.com>
12963 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
12965 (darwin_objc1_section): Likewise.
12966 (darwin_file_end): Emit Image Info section when required.
12968 2013-09-14 Jan Hubicka <jh@suse.cz>
12970 * tree-into-ssa.c (gate_into_ssa): New.
12971 (pass_data_build_ssa): Use it.
12972 * cgraph.h (expand_thunk): Update prototype.
12973 * cgraphunit.c (analyze_function): Expand thunks early.
12974 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
12975 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
12976 set lowered flag; do not add new function.
12977 (assemble_thunks_and_aliases): Update.
12978 * tree-ssa.c (gate_init_datastructures): New gate.
12979 (pass_data_init_datastructures): Use it.
12981 2013-09-14 Iain Sandoe <iain@codesourcery.com>
12984 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
12985 xmm register set described in the psABI.
12987 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
12989 * dwarf2out.c (should_emit_struct_debug): Add check
12990 for type_decl variable is not NULL.
12992 2013-09-13 Jacek Caban <jacek@codeweavers.com>
12994 * config.gcc: Use new winnt-c.c target hooks
12995 * config/t-winnt: New file
12996 * config/winnt-c.c: New file
12997 * doc/tm.texi.in: Document new hook
12998 * doc/tm.texi: Regenerated
13000 2013-09-13 Jan Hubicka <jh@suse.cz>
13002 PR middle-end/58094
13003 * ipa-inline.c (check_callers): New function.
13004 (check_caller_edge): Remove.
13005 (want_inline_function_to_all_callers_p): Also permit alises that are
13007 (inline_to_all_callers): Terminate the walk when devirtualization
13008 introduce new calls.
13010 2013-09-13 Jan Hubicka <jh@suse.cz>
13012 * ipa-inline-analysis.c (struct growth_data): Add node.
13013 (do_estimate_growth_1): Fix detection of recursion.
13015 2013-09-13 Jakub Jelinek <jakub@redhat.com>
13017 PR tree-optimization/58392
13018 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
13019 to avoid shadowing of outer loop variable. If
13020 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
13021 replace_by_duplicate_decl simduid of loops that have it set and
13022 set dest_cfun->has_simduid_loops and/or
13023 dest_cfun->has_force_vect_loops.
13024 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
13025 instead of maybe_lookup_decl.
13026 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
13027 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
13028 call. Copy over force_vect and copy and remap simduid. Set
13029 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
13030 (copy_cfg_body): Remove blocks_to_copy argument. Use
13031 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
13032 caller. Don't set cfun->has_simduid_loops and/or
13033 cfun->has_force_vect_loops here.
13034 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
13036 (expand_call_inline, tree_function_versioning): Adjust copy_body
13039 2013-09-13 Martin Jambor <mjambor@suse.cz>
13042 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
13043 the assert if the edge was a speculative one.
13045 2013-09-13 Richard Biener <rguenther@suse.de>
13047 * tree-data-ref.h (known_dependences_p): Move here ...
13048 * tree-loop-distribution.c (known_dependences_p): ... from here.
13049 (dump_rdg_component, debug_rdg_component): Remove.
13050 (dump_rdg): Adjust.
13051 (generate_loops_for_partition): Use gimple_uid instead of
13052 relying on matching stmt visit order.
13053 (rdg_build_partitions): Take starting stmt vector.
13054 (ldist_gen): Merge into ...
13055 (distribute_loop): ... this function. Do not compute starting
13057 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
13059 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13061 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
13062 Set type attribute correctly. Set predicable_short_it attribute.
13063 (cmpsi_shiftsi): Remove %? from output template.
13065 2013-09-13 Richard Biener <rguenther@suse.de>
13067 * tree-loop-distribution.c (struct rdg_component,
13068 rdg_defs_used_in_other_loops_p, free_rdg_components,
13069 rdg_build_components): Remove.
13070 (stmts_from_loop): Do not record virtual PHIs.
13071 (generate_loops_for_partition): Skip virtual PHIs.
13072 (build_rdg_partition_for_component): Rename to ...
13073 (build_rdg_partition_for_vertex): ... this and adjust.
13074 (rdg_build_partitions): Take a vector of starting vertices
13075 instead of components. Remove unnecessary leftover handling.
13076 (ldist_gen): Do not build components or record other stores.
13077 (distribute_loop): Do not distribute loops containing stmts
13080 2013-09-13 Christian Bruel <christian.bruel@st.com>
13083 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
13085 2013-09-13 Kai Tietz <ktietz@redhat.com>
13087 * config.gcc: Separate cases for mingw and cygwin targets,
13088 and add 64-bit cygwin target case.
13090 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
13091 dll-export inline-functions.
13092 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
13094 2013-09-13 Jeff Law <law@redhat.com>
13096 PR middle-end/58387
13098 2013-09-06 Jeff Law <law@redhat.com>
13100 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13101 edge implied equivalences into successor phis.
13103 2013-09-12 DJ Delorie <dj@redhat.com>
13105 * config/rl78/rl78-virt.md: Change from | to \; for asm line
13108 2013-09-12 Brooks Moses <bmoses@google.com>
13111 * Makefile.in: Do not install driver binaries in $(target)/bin.
13113 2013-09-12 DJ Delorie <dj@redhat.com>
13115 * config/rl78/rl78.opt (mrelax): New.
13116 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
13117 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
13119 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
13121 (rl78_expand_epilogue): Likewise.
13123 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
13125 PR middle-end/58335
13126 * lra-eliminations.c (remove_reg_equal_offset_note): New.
13127 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
13128 pointer elimination with using remove_reg_equal_offset_note.
13130 2013-09-12 DJ Delorie <dj@redhat.com>
13132 * config/msp430/: New port.
13133 * config.gcc (msp430): Added.
13134 * doc/invoke.texi: Document MSP430 options.
13135 * doc/install.texi: Document msp430-elf
13136 * doc/md.texi: Document msp430-elf
13137 * doc/contrib.texi: Document msp430-elf
13139 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
13142 2013-09-12 Martin Jambor <mjambor@suse.cz>
13145 * ipa-prop.c (remove_described_reference): Give up if the edge in the
13146 reference descriptor is NULL.
13147 (ipa_edge_removal_hook): If owning a reference descriptor, set its
13150 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
13152 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
13153 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
13154 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
13155 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
13156 make_temp_ssa_name): move to tree-ssanames.h
13157 * tree-ssa-alias.h: Move prototype.
13158 * tree-ssa.h: Include tree-ssanames.h.
13159 * tree-ssanames.c (FREE_SSANAMES): Move to here.
13160 * tree-ssanames.h: New. Move items from tree-flow*.h
13161 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
13163 2013-09-12 Richard Biener <rguenther@suse.de>
13165 PR tree-optimization/58404
13166 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
13167 propagate non-invariant addresses into dereferences wrapped
13168 in component references.
13170 2013-09-12 Richard Biener <rguenther@suse.de>
13172 PR tree-optimization/58402
13173 * passes.def: Move pass_late_warn_uninitialized later.
13175 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
13177 * tree-ssa.h: New. Move content from tree-flow.h and
13178 tree-flow-inline.h.
13179 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
13180 Move prototypes belonging to tree-ssa.c.
13181 * tree-flow-inline.h (redirect_edge_var_map_def,
13182 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
13184 * gimple.h: Adjust prototypes.
13185 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
13187 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
13188 * tree.h: Move prototype to tree-ssa.h.
13189 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
13190 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
13191 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
13192 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
13193 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
13194 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
13195 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
13196 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
13197 graphite-blocking.c, graphite-clast-to-gimple.c,
13198 graphite-dependences.c, graphite-interchange.c,
13199 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
13200 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
13201 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
13202 ipa-reference.c, ipa-split.c, ipa-utils.c,
13203 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
13204 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
13205 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
13206 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
13207 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
13208 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
13209 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
13210 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
13211 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
13212 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
13213 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
13214 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13215 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
13216 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
13217 value-prof.c, var-tracking.c,
13218 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
13220 2013-09-12 Richard Biener <rguenther@suse.de>
13222 PR tree-optimization/58396
13223 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
13224 (build_rdg): Take a loop-nest parameter, fix memleaks.
13225 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
13227 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
13229 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
13232 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
13234 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
13235 The FMA instruction names should have a 'v' prefix.
13237 2013-09-12 Richard Biener <rguenther@suse.de>
13239 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
13240 (dot_rdg): Use popen instead of system in optional code.
13241 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
13242 (already_processed_vertex_p): Adjust.
13243 (has_anti_or_output_dependence, predecessor_has_mem_write,
13244 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
13245 rdg_flag_uses): Remove.
13246 (rdg_flag_vertex): Simplify.
13247 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
13249 (build_rdg_partition_for_component): Process the first vertex
13250 of a component only.
13251 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
13253 2013-09-12 Alan Modra <amodra@gmail.com>
13255 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
13257 2013-09-11 DJ Delorie <dj@redhat.com>
13258 Nick Clifton <nickc@redhat.com>
13260 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
13261 (rl78_stack_based_mem): New.
13262 * config/rl78/constraints.md (Iv08): New.
13271 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
13273 (movsi): Change from expand to insn-and-split.
13274 (ashrsi3): Clobber AX.
13278 * config/rl78/rl78.md (CC_REG): Fix.
13279 (addsi3): Allow memory and immediate operands.
13280 (addsi3_internal): Split into...
13281 (addsi3_internal_virt): ...new, and ...
13282 (addsi3_internal_real): ...new.
13284 (subsi3_internal_virt): New.
13285 (subsi3_internal_real): New.
13286 (mulsi3): Add memory operand.
13287 (mulsi3_rl78): Likewise.
13288 (mulsi3_g13): Likewise.
13289 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
13290 (cbranchqi4_real): Add more constraint options.
13291 (cbranchhi4_real): Expand pattern.
13292 (cbranchhi4_real_signed): New.
13293 (cbranchhi4_real_inverted): New.
13294 (cbranchsi4_real_lt): New.
13295 (cbranchsi4_real_ge): New.
13296 (cbranchsi4_real_signed): New.
13297 (cbranchsi4_real): New.
13299 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
13301 (lshrsi3_virt): Likewise.
13302 (ashlsi3_virt): Likewise.
13303 (cbranchqi4_virt_signed): New.
13304 (cbranchhi4_virt_signed): New.
13305 (cbranchsi4_virt): New.
13306 * config/rl78/rl78.c: Whitespace fixes throughout.
13307 (move_elim_pass): New.
13308 (pass_data_rl78_move_elim): New.
13309 (pass_rl78_move_elim): New.
13310 (make_pass_rl78_move_elim): New.
13311 (rl78_devirt_info): Run devirt earlier.
13312 (rl78_move_elim_info): New.
13313 (rl78_asm_file_start): Register it.
13314 (rl78_split_movsi): New.
13315 (rl78_as_legitimate_address): Allow virtual base registers when
13317 (rl78_addr_space_convert): Remove spurious debug stuff.
13318 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
13319 (rl78_print_operand): More cases for not printing '#'.
13320 (rl78_expand_compare): Remove most of the logic.
13321 (content_memory): New.
13322 (clear_content_memory): New.
13323 (get_content_index): New.
13324 (get_content_name): New.
13325 (display_content_memory): New.
13326 (update_content): New.
13327 (record_content): New.
13328 (already_contains): New.
13329 (insn_ok_now): Re-recog insns with virtual registers.
13330 (add_postponed_content_update): New.
13331 (process_postponed_content_update): New.
13332 (gen_and_emit_move): New.
13333 (transcode_memory_rtx): Record new location content.
13334 Use gen_and_emit_move.
13335 (force_into_acc): New.
13336 (move_to_acc): Use gen_and_emit_move.
13337 (move_from_acc): Likewise.
13338 (move_acc_to_reg): Likewise.
13339 (move_to_x): Likewise.
13340 (move_to_hl): Likewise.
13341 (move_to_de): Likewise.
13342 (rl78_alloc_physical_registers_op1): Record location content.
13343 (has_constraint): New.
13344 (rl78_alloc_physical_registers_op2): Record location content.
13345 Optimize use of HL.
13346 (rl78_alloc_physical_registers_ro1): Likewise.
13347 (rl78_alloc_physical_registers_cmp): Likewise.
13348 (rl78_alloc_physical_registers_umul): Likewise.
13349 (rl78_alloc_address_registers_macax): New.
13350 (rl78_alloc_physical_registers): Initialize and set location
13351 content memory as needed.
13352 (rl78_reorg): Make sure split2 is called.
13353 (rl78_rtx_costs): New.
13355 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
13357 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
13358 for (not (neg ...)) and (neg (not ...)) cases.
13360 2013-09-11 Richard Biener <rguenther@suse.de>
13362 PR middle-end/58377
13363 * passes.def: Split critical edges before late uninit warning passes.
13364 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
13366 2013-09-11 Jakub Jelinek <jakub@redhat.com>
13368 PR tree-optimization/58385
13369 * fold-const.c (build_range_check): If both low and high are NULL,
13370 use omit_one_operand_loc to preserve exp side-effects.
13372 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13374 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
13376 2013-09-11 Richard Biener <rguenther@suse.de>
13378 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
13379 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
13380 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
13381 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
13382 stmts_from_loop, known_dependences_p, build_empty_rdg,
13383 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
13384 * tree-loop-distribution.c: ... here.
13385 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
13386 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
13387 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
13388 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
13389 * tree-loop-distribution.c: ... here.
13390 * tree-loop-distribution.c: Include gimple-pretty-print.h.
13391 (struct partition_s): Add loops member.
13392 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
13393 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
13394 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
13396 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13397 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13398 Sergey Lega <sergey.s.lega@intel.com>
13399 Anna Tikhonova <anna.tikhonova@intel.com>
13400 Ilya Tocar <ilya.tocar@intel.com>
13401 Andrey Turetskiy <andrey.turetskiy@intel.com>
13402 Ilya Verbin <ilya.verbin@intel.com>
13403 Kirill Yukhin <kirill.yukhin@intel.com>
13404 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13406 * config/i386/constraints.md (k): New.
13408 * config/i386/i386.c (const regclass_map): Add new mask registers.
13409 (dbx_register_map): Ditto.
13410 (dbx64_register_map): Ditto.
13411 (svr4_dbx_register_map): Ditto.
13412 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
13414 (ix86_preferred_reload_class): Disable constants for mask registers.
13415 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
13416 (ix86_hard_regno_mode_ok): Support new mask registers.
13417 (x86_order_regs_for_local_alloc): Ditto.
13418 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
13419 (FIXED_REGISTERS): Add new mask registers.
13420 (CALL_USED_REGISTERS): Ditto.
13421 (REG_ALLOC_ORDER): Ditto.
13422 (VALID_MASK_REG_MODE): New.
13423 (FIRST_MASK_REG): Ditto.
13424 (LAST_MASK_REG): Ditto.
13425 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
13426 (MAYBE_MASK_CLASS_P): New.
13427 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
13428 (REG_CLASS_CONTENTS): Ditto.
13429 (MASK_REGNO_P): New.
13430 (ANY_MASK_REG_P): Ditto.
13431 (HI_REGISTER_NAMES): Add new mask registers.
13432 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
13433 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
13435 (attribute "type"): Add mskmov, msklog.
13436 (attribute "length_immediate"): Support them.
13437 (attribute "memory"): Ditto.
13438 (attribute "prefix_0f"): Ditto.
13439 (*movhi_internal): Support new mask registers.
13440 (*movqi_internal): Ditto.
13441 (define_split): Split out clobber pattern is a logic
13442 insn on mask registers.
13443 (*k<logic><mode>): New.
13444 (*andhi_1): Extend to support mask regs.
13445 (*andqi_1): Extend to support mask regs.
13446 (kandn<mode>): New.
13447 (define_split): Split and-not to and and not if operands
13449 (*<code><mode>_1): Separate HI mode to new pattern...
13450 (*<code>hi_1): This.
13451 (*<code>qi_1): Extend to support mask regs.
13452 (kxnor<mode>): New.
13453 (kortestzhi): Ditto.
13454 (kortestchi): Ditto.
13456 (*one_cmpl<mode>2_1): Remove HImode and handle it...
13457 (*one_cmplhi2_1): ...Here, now with mask registers support.
13458 (*one_cmplqi2_1): Support new mask registers.
13459 (HI/QImode arithmetics splitter): Don't split if mask registers
13461 (HI/QImode not splitter): Ditto.
13462 * config/i386/predicated.md (mask_reg_operand): New.
13463 (general_reg_operand): Ditto.
13465 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13467 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
13468 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
13470 2013-09-10 Jeff Law <law@redhat.com>
13472 PR tree-optimization/58380
13473 * tree-ssa-threadupdate.c (thread_block): Recognize another case
13474 of threading through a buried loop header.
13476 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
13477 return value for single successor case.
13479 2013-09-10 Jan Hubicka <jh@suse.cz>
13481 * ipa-devirt.c (ipa_devirt): Enable with LTO.
13483 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
13486 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
13487 support conditional execution.
13488 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
13490 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
13492 * lra.c (lra): Clear lra_optional_reload_pseudos before every
13494 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
13495 Check destination too to check move insn.
13496 (undo_optional_reloads): Add check that the original peudo did not
13497 changed its allocation and the optional reload was inherited on last
13498 inheritance pass. Break loop after deciding to keep optional reload.
13499 (lra_undo_inheritance): Add check that inherited pseudo still in
13502 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
13504 * config/aarch64/aarch64.md (generic_sched): New.
13505 * config/aarch64/aarch64-generic.md (load): Make conditional
13506 on generic_sched attribute.
13507 (nonload): Likewise.
13509 2013-09-10 Jan Hubicka <jh@suse.cz>
13511 * lto-cgraph.c: Include ipa-utils.h.
13512 (compute_ltrans_boundary): Also add possible targets into the boundary.
13514 2013-09-10 Jan Hubicka <jh@suse.cz>
13516 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
13517 VAR_DECL of vtable rather than full expression.
13519 2013-09-10 Jan Hubicka <jh@suse.cz>
13520 Paolo Carlini <paolo.carlini@oracle.com>
13522 * cgraphunit.c (analyze_functions): Save input_location, set it
13523 to UNKNOWN_LOCATION and restore it at the end.
13525 2013-09-10 Martin Jambor <mjambor@suse.cz>
13527 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
13528 represented by a thunk.
13530 2013-09-10 Jeff Law <law@redhat.com>
13532 PR tree-optimization/58343
13533 * tree-ssa-threadupdate.c (thread_block): Identify and disable
13534 jump threading requests through loop headers buried in the middle
13535 of a jump threading path.
13537 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
13538 in return value/type.
13540 2013-09-10 Jakub Jelinek <jakub@redhat.com>
13542 PR rtl-optimization/58365
13543 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
13544 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
13547 2013-09-10 Richard Biener <rguenther@suse.de>
13549 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
13550 * tree-data-ref.c (create_rdg_vertices): Collect all data
13551 references, signal failure to the caller, use data-ref API.
13552 (build_rdg): Compute data references only once. Maintain lifetime
13553 of data references and data dependences from within RDG.
13554 (free_rdg): Free dependence relations.
13555 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
13556 inventing extra dependences.
13557 (distribute_loop): Update for RDG API changes.
13559 2013-09-10 Kai Tietz <ktietz@redhat.com>
13561 * doc/invoke.texi (fms-extensions): Document changed
13562 behavior for ms-abi targets.
13563 * config/i386/i386.c (ix86_option_override_internal):
13564 Set default value of option -fms-extension for ms-abi targets.
13566 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
13568 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
13570 2013-09-10 Alan Modra <amodra@gmail.com>
13573 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
13575 2013-09-10 Alan Modra <amodra@gmail.com>
13577 * config/rs6000/predicates.md (add_cint_operand): New.
13578 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
13579 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
13580 using add_cint_operand.
13581 (largetoc_high_plus_aix): Likewise.
13583 2013-09-09 Jakub Jelinek <jakub@redhat.com>
13585 PR tree-optimization/58364
13586 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
13587 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
13588 the current range can't be an unconditional true or false.
13590 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
13592 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
13594 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
13596 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
13598 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
13601 * doc/invoke.texi (-Wdelete-incomplete): Document it.
13603 2013-09-09 Ian Bolton <ian.bolton@arm.com>
13605 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
13606 NO_REGS for immediate that can't be moved directly into FP_REGS.
13608 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13610 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
13611 comparison with negated operand.
13612 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
13615 2013-09-09 Richard Biener <rguenther@suse.de>
13617 PR middle-end/58326
13618 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
13619 of a subloop record all its block as affecting loop-closed SSA form.
13621 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13623 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
13624 of an rtx/bitpos pair.
13625 (store_fixed_bit_field): Update accordingly.
13627 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13629 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
13631 * builtins.c (expand_errno_check): Likewise.
13632 * dwarf2cfi.c (init_return_column_size): Likewise.
13633 * except.c (sjlj_mark_call_sites): Likewise.
13634 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
13635 * lra-constraints.c (emit_inc): Likewise.
13636 * ree.c (combine_set_extension): Likewise.
13637 * regmove.c (fixup_match_2): Likewise.
13638 * reload1.c (inc_for_reload): Likewise.
13640 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13642 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
13643 (force_to_mode, simplify_shift_const_1, simplify_comparison):
13644 Use gen_int_mode with the mode of the associated simplify_* call.
13645 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
13646 * expmed.c (expand_shift_1): Likewise.
13647 * function.c (instantiate_virtual_regs_in_insn): Likewise.
13648 * loop-iv.c (iv_number_of_iterations): Likewise.
13649 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
13650 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13652 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13654 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
13655 of the associated expand_* call.
13656 (asan_emit_stack_protection): Likewise.
13657 * builtins.c (round_trampoline_addr): Likewise.
13658 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
13659 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
13660 (emit_store_flag): Likewise.
13661 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
13662 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
13664 * function.c (instantiate_virtual_regs_in_insn): Likewise.
13665 * ifcvt.c (noce_try_store_flag_constants): Likewise.
13666 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
13667 * modulo-sched.c (generate_prolog_epilog): Likewise.
13668 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
13669 (expand_ctz, expand_ffs, expand_unop): Likewise.
13671 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13673 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
13674 of the associated gen_rtx_* call.
13675 * caller-save.c (init_caller_save): Likewise.
13676 * combine.c (find_split_point, make_extraction): Likewise.
13677 (make_compound_operation): Likewise.
13678 * dwarf2out.c (mem_loc_descriptor): Likewise.
13679 * explow.c (plus_constant, probe_stack_range): Likewise.
13680 * expmed.c (expand_mult_const): Likewise.
13681 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
13682 * reload1.c (init_reload): Likewise.
13683 * valtrack.c (cleanup_auto_inc_dec): Likewise.
13684 * var-tracking.c (adjust_mems): Likewise.
13685 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
13686 rather than gen_rtx_fmt_ee.
13688 2013-09-09 Jan Hubicka <jh@suse.cz>
13690 PR middle-end/58294
13691 * value-prof.c (gimple_ic): Copy also abnormal edges.
13693 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
13695 * asan.c (asan_shadow_cst): Use gen_int_mode.
13697 2013-09-08 Jan Hubicka <jh@suse.cz>
13699 * ipa-profile.c: Add toplevel comment.
13700 (ipa_propagate_frequency_1): Be more conservative when profile is read.
13701 (contains_hot_call_p): New function.
13702 (ipa_propagate_frequency): Set frequencies based on counts when
13704 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
13705 profile; do not tamper with profile after inlining if it is read.
13707 2013-09-08 Jan Hubicka <jh@suse.cz>
13709 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
13712 2013-09-08 Jan Hubicka <jh@suse.cz>
13714 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
13715 summary generation.
13717 2013-09-08 Jeff Law <law@redhat.com>
13720 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
13723 2013-09-08 Andi Kleen <ak@linux.intel.com>
13725 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
13727 2013-09-08 Jan Hubicka <jh@suse.cz>
13729 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
13731 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
13733 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
13734 for non-debug insns.
13735 * lra.c (new_insn_reg): Take the containing insn as a parameter.
13736 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
13737 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
13740 2013-09-08 Jan Hubicka <jh@suse.cz>
13742 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
13743 targets and devirtualize to BUILT_IN_UNREACHABLE.
13744 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
13745 * ipa.c (walk_polymorphic_call_targets): New function.
13746 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
13747 functions; use the new timevar.
13748 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
13749 was removed from the program.
13750 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
13751 not consider it in the walk when its vtable is dead.
13752 (possible_polymorphic_call_targets_1): Pass anonymous flag to
13754 (devirt_variable_node_removal_hook): New function.
13755 (possible_polymorphic_call_targets): Also register
13756 devirt_variable_node_removal_hook.
13757 (ipa_devirt): Do not do non-speculative devirtualization.
13758 (gate_ipa_devirt): One execute if devirtualizing speculatively.
13760 2013-09-08 Jan Hubicka <jh@suse.cz>
13762 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
13763 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
13764 varpool_remove_variable_insertion_hook): Declare.
13765 * varpool.c (varpool_node_hook_list): New structure.
13766 (first_varpool_node_removal_hook,
13767 first_varpool_variable_insertion_hook): New variables.
13768 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
13769 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
13770 varpool_remove_variable_insertion_hook,
13771 varpool_call_variable_insertion_hooks): New functions.
13772 (varpool_remove_node): Use it.
13774 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
13777 * diagnostic.c (diagnostic_build_prefix): When s.file is
13778 "<built-in>" don't output line and column numbers.
13780 2013-09-06 Jan Hubicka <jh@suse.cz>
13782 * cgraphunit.c (expand_thunk): Get body before touching arguments.
13783 * lto-streamer-out.c: Stream thunks, too.
13784 * lto-streamer-in.c (input_function): Pop cfun here
13785 (lto_read_body): Instead of here.
13787 2013-09-06 Caroline Tice <cmtice@google.com>
13789 * doc/install.texi: Add documentation for the --enable-vtable-verify
13790 and the --disable-libvtv configure options.
13792 2013-09-06 Jeff Law <law@redhat.com>
13794 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13795 edge implied equivalences into successor phis.
13797 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
13799 * resource.c (mark_referenced_resources): Handle COND_EXEC.
13801 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
13803 * resource.c (mark_target_live_regs): Compute resources taking
13804 into account if a call is predicated or not.
13806 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
13808 * toplev.c (output_stack_usage): Be prepared for suffixes created by
13809 the compiler in the function names.
13811 2013-09-06 Jan Hubicka <jh@suse.cz>
13813 PR middle-end/58094
13814 * ipa-inline.c (has_caller_p): New function.
13815 (want_inline_function_to_all_callers_p): Use it.
13816 (sum_callers, inline_to_all_callers): Break out from ...
13817 (ipa_inline): ... here.
13819 2013-09-06 Jan Hubicka <jh@suse.cz>
13821 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
13822 only when AVX is enabled.
13824 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13826 * config/aarch64/aarch64.md
13827 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
13828 is fpsimd_<load/store>2.
13829 (load_pair<mode>): Likewise.
13830 (store_pair<mode>): Likewise.
13832 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13834 * config/arm/types.md (type): Add "mrs" type.
13835 * config/aarch64/aarch64.md
13836 (aarch64_load_tp_hard): Make type "mrs".
13837 * config/arm/arm.md
13838 (load_tp_hard): Make type "mrs".
13839 * config/arm/cortex-a15.md: Update with new attributes.
13840 * config/arm/cortex-a5.md: Update with new attributes.
13841 * config/arm/cortex-a53.md: Update with new attributes.
13842 * config/arm/cortex-a7.md: Update with new attributes.
13843 * config/arm/cortex-a8.md: Update with new attributes.
13844 * config/arm/cortex-a9.md: Update with new attributes.
13845 * config/arm/cortex-m4.md: Update with new attributes.
13846 * config/arm/cortex-r4.md: Update with new attributes.
13847 * config/arm/fa526.md: Update with new attributes.
13848 * config/arm/fa606te.md: Update with new attributes.
13849 * config/arm/fa626te.md: Update with new attributes.
13850 * config/arm/fa726te.md: Update with new attributes.
13852 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13854 * config/aarch64/aarch64.md
13855 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
13856 (*movtf_aarch64): Likewise.
13857 * config/arm/arm.md
13858 (thumb1_movdi_insn): Use "multiple" for type where more than one
13859 instruction is used for a move.
13860 (*arm32_movhf): Likewise.
13861 (*thumb_movdf_insn): Likewise.
13863 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13865 * config/arm/types.md (type): Rename fcpys to fmov.
13866 * config/arm/vfp.md
13867 (*arm_movsi_vfp): Rename type fcpys as fmov.
13868 (*thumb2_movsi_vfp): Likewise
13869 (*movhf_vfp_neon): Likewise
13870 (*movhf_vfp): Likewise
13871 (*movsf_vfp): Likewise
13872 (*thumb2_movsf_vfp): Likewise
13873 (*movsfcc_vfp): Likewise
13874 (*thumb2_movsfcc_vfp): Likewise
13875 * config/aarch64/aarch64-simd.md
13876 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
13877 * config/aarch64/aarch64.md
13878 (*movsi_aarch64): Replace type mov_reg with fmovs.
13879 (*movdi_aarch64): Likewise
13880 (*movsf_aarch64): Likewise
13881 (*movdf_aarch64): Likewise
13883 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
13884 * config/arm/iwmmxt.md
13885 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
13886 * config/arm/arm1020e.md: Update with new attributes.
13887 * config/arm/cortex-a15-neon.md: Update with new attributes.
13888 * config/arm/cortex-a5.md: Update with new attributes.
13889 * config/arm/cortex-a53.md: Update with new attributes.
13890 * config/arm/cortex-a7.md: Update with new attributes.
13891 * config/arm/cortex-a8-neon.md: Update with new attributes.
13892 * config/arm/cortex-a9.md: Update with new attributes.
13893 * config/arm/cortex-m4-fpu.md: Update with new attributes.
13894 * config/arm/cortex-r4f.md: Update with new attributes.
13895 * config/arm/marvell-pj4.md: Update with new attributes.
13896 * config/arm/vfp11.md: Update with new attributes.
13898 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13900 * config/aarch64/aarch64.md
13901 (*madd<mode>): Fix type attribute.
13902 (*maddsi_uxtw): Likewise.
13903 (*msub<mode>): Likewise.
13904 (*msubsi_uxtw): Likewise.
13905 (<su_optab>maddsidi4): Likewise.
13906 (<su_optab>msubsidi4): Likewise.
13908 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13910 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
13911 * config/arm/arm.md (core_cycles): Remove fdiv.
13912 * config/arm/vfp.md:
13913 (*sqrtsf2_vfp): Update for attribute changes.
13914 (*sqrtdf2_vfp): Likewise.
13915 * config/aarch64/aarch64.md:
13916 (sqrt<mode>2): Update for attribute changes.
13917 * config/arm/arm1020e.md: Update with new attributes.
13918 * config/arm/cortex-a15-neon.md: Update with new attributes.
13919 * config/arm/cortex-a5.md: Update with new attributes.
13920 * config/arm/cortex-a53.md: Update with new attributes.
13921 * config/arm/cortex-a7.md: Update with new attributes.
13922 * config/arm/cortex-a8-neon.md: Update with new attributes.
13923 * config/arm/cortex-a9.md: Update with new attributes.
13924 * config/arm/cortex-m4-fpu.md: Update with new attributes.
13925 * config/arm/cortex-r4f.md: Update with new attributes.
13926 * config/arm/marvell-pj4.md: Update with new attributes.
13927 * config/arm/vfp11.md: Update with new attributes.
13929 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13931 * config/arm/types.md
13932 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
13933 * config/aarch64/aarch64.md
13934 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
13936 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
13937 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
13938 (float<GPI:mode><GPF:mode>2): Likewise.
13939 * config/arm/vfp.md
13940 (*truncsisf2_vfp): Update with new attributes.
13941 (*truncsidf2_vfp): Likewise.
13942 (fixuns_truncsfsi2): Likewise.
13943 (fixuns_truncdfsi2): Likewise.
13944 (*floatsisf2_vfp): Likewise.
13945 (*floatsidf2_vfp): Likewise.
13946 (floatunssisf2): Likewise.
13947 (floatunssidf2): Likewise.
13948 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
13949 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
13950 * config/arm/arm1020e.md: Update with new attributes.
13951 * config/arm/cortex-a15-neon.md: Update with new attributes.
13952 * config/arm/cortex-a5.md: Update with new attributes.
13953 * config/arm/cortex-a53.md: Update with new attributes.
13954 * config/arm/cortex-a7.md: Update with new attributes.
13955 * config/arm/cortex-a8-neon.md: Update with new attributes.
13956 * config/arm/cortex-a9.md: Update with new attributes.
13957 * config/arm/cortex-m4-fpu.md: Update with new attributes.
13958 * config/arm/cortex-r4f.md: Update with new attributes.
13959 * config/arm/marvell-pj4.md: Update with new attributes.
13960 * config/arm/vfp11.md: Update with new attributes.
13962 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13964 * config/aarch64/arm_neon.h
13965 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
13966 (vqtbx<1,2,3,4><q>_s8): Likewise.
13968 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
13970 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
13971 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
13972 (add<mode>3): Add type attribute.
13973 (add<mode>3): Likewise.
13974 (usadd<mode>3): Likewise.
13975 (ssadd<mode>3): Likewise.
13976 (sub<mode>3): Likewise.
13977 (sub<mode>3): Likewise.
13978 (ussub<mode>3): Likewise.
13979 (sssub<mode>3): Likewise.
13980 (ssmulsa3): Likewise.
13981 (usmulusa3): Likewise.
13982 (arm_usatsihi): Likewise.
13983 * config/arm/vfp.md
13984 (*movdi_vfp): Add types for all instructions.
13985 (*movdi_vfp_cortexa8): Likewise.
13986 (*movhf_vfp_neon): Likewise.
13987 (*movhf_vfp): Likewise.
13988 (*movdf_vfp): Likewise.
13989 (*thumb2_movdf_vfp): Likewise.
13990 (*thumb2_movdfcc_vfp): Likewise.
13991 * config/arm/arm.md: Add type attribute to all insn patterns.
13992 (*thumb1_adddi3): Add type attribute.
13993 (*arm_adddi3): Likewise.
13994 (*adddi_sesidi_di): Likewise.
13995 (*adddi_zesidi_di): Likewise.
13996 (*thumb1_addsi3): Likewise.
13997 (addsi3_compare0): Likewise.
13998 (*addsi3_compare0_scratch): Likewise.
13999 (*compare_negsi_si): Likewise.
14000 (cmpsi2_addneg): Likewise.
14001 (*addsi3_carryin_<optab>): Likewise.
14002 (*addsi3_carryin_alt2_<optab>): Likewise.
14003 (*addsi3_carryin_clobercc_<optab>): Likewise.
14004 (*subsi3_carryin): Likewise.
14005 (*subsi3_carryin_const): Likewise.
14006 (*subsi3_carryin_compare): Likewise.
14007 (*subsi3_carryin_compare_const): Likewise.
14008 (*arm_subdi3): Likewise.
14009 (*thumb_subdi3): Likewise.
14010 (*subdi_di_zesidi): Likewise.
14011 (*subdi_di_sesidi): Likewise.
14012 (*subdi_zesidi_di): Likewise.
14013 (*subdi_sesidi_di): Likewise.
14014 (*subdi_zesidi_ze): Likewise.
14015 (thumb1_subsi3_insn): Likewise.
14016 (*arm_subsi3_insn): Likewise.
14017 (*anddi3_insn): Likewise.
14018 (*anddi_zesidi_di): Likewise.
14019 (*anddi_sesdi_di): Likewise.
14020 (*ne_zeroextracts): Likewise.
14021 (*ne_zeroextracts): Likewise.
14022 (*ite_ne_zeroextr): Likewise.
14023 (*ite_ne_zeroextr): Likewise.
14024 (*anddi_notdi_di): Likewise.
14025 (*anddi_notzesidi): Likewise.
14026 (*anddi_notsesidi): Likewise.
14027 (andsi_notsi_si): Likewise.
14028 (thumb1_bicsi3): Likewise.
14029 (*iordi3_insn): Likewise.
14030 (*iordi_zesidi_di): Likewise.
14031 (*iordi_sesidi_di): Likewise.
14032 (*thumb1_iorsi3_insn): Likewise.
14033 (*xordi3_insn): Likewise.
14034 (*xordi_zesidi_di): Likewise.
14035 (*xordi_sesidi_di): Likewise.
14036 (*arm_xorsi3): Likewise.
14037 (*andsi_iorsi3_no): Likewise.
14038 (*smax_0): Likewise.
14039 (*smax_m1): Likewise.
14040 (*arm_smax_insn): Likewise.
14041 (*smin_0): Likewise.
14042 (*arm_smin_insn): Likewise.
14043 (*arm_umaxsi3): Likewise.
14044 (*arm_uminsi3): Likewise.
14045 (*minmax_arithsi): Likewise.
14046 (*minmax_arithsi_): Likewise.
14047 (*satsi_<SAT:code>): Likewise.
14048 (arm_ashldi3_1bit): Likewise.
14049 (arm_ashrdi3_1bit): Likewise.
14050 (arm_lshrdi3_1bit): Likewise.
14051 (*arm_negdi2): Likewise.
14052 (*thumb1_negdi2): Likewise.
14053 (*arm_negsi2): Likewise.
14054 (*thumb1_negsi2): Likewise.
14055 (*negdi_extendsid): Likewise.
14056 (*negdi_zero_extend): Likewise.
14057 (*arm_abssi2): Likewise.
14058 (*thumb1_abssi2): Likewise.
14059 (*arm_neg_abssi2): Likewise.
14060 (*thumb1_neg_abss): Likewise.
14061 (one_cmpldi2): Likewise.
14062 (extend<mode>di2): Likewise.
14063 (*compareqi_eq0): Likewise.
14064 (*arm_extendhisi2addsi): Likewise.
14065 (*arm_movdi): Likewise.
14066 (*thumb1_movdi_insn): Likewise.
14067 (*arm_movt): Likewise.
14068 (*thumb1_movsi_insn): Likewise.
14069 (pic_add_dot_plus_four): Likewise.
14070 (pic_add_dot_plus_eight): Likewise.
14071 (tls_load_dot_plus_eight): Likewise.
14072 (*thumb1_movhi_insn): Likewise.
14073 (*thumb1_movsf_insn): Likewise.
14074 (*movdf_soft_insn): Likewise.
14075 (*thumb_movdf_insn): Likewise.
14076 (cbranchsi4_insn): Likewise.
14077 (cbranchsi4_scratch): Likewise.
14078 (*negated_cbranchsi4): Likewise.
14079 (*tbit_cbranch): Likewise.
14080 (*tlobits_cbranch): Likewise.
14081 (*tstsi3_cbranch): Likewise.
14082 (*cbranchne_decr1): Likewise.
14083 (*addsi3_cbranch): Likewise.
14084 (*addsi3_cbranch_scratch): Likewise.
14085 (*arm_cmpdi_insn): Likewise.
14086 (*arm_cmpdi_unsig): Likewise.
14087 (*arm_cmpdi_zero): Likewise.
14088 (*thumb_cmpdi_zero): Likewise.
14089 (*deleted_compare): Likewise.
14090 (*mov_scc): Likewise.
14091 (*mov_negscc): Likewise.
14092 (*mov_notscc): Likewise.
14093 (*cstoresi_eq0_thumb1_insn): Likewise.
14094 (cstoresi_nltu_thumb1): Likewise.
14095 (cstoresi_ltu_thu): Likewise.
14096 (thumb1_addsi3_addgeu): Likewise.
14097 (*arm_jump): Likewise.
14098 (*thumb_jump): Likewise.
14099 (*check_arch2): Likewise.
14100 (arm_casesi_internal): Likewise.
14101 (thumb1_casesi_dispatch): Likewise.
14102 (*arm_indirect_jump): Likewise.
14103 (*thumb1_indirect_jump): Likewise.
14105 (*and_scc): Likewise.
14106 (*ior_scc): Likewise.
14107 (*compare_scc): Likewise.
14108 (*cond_move): Likewise.
14109 (*cond_arith): Likewise.
14110 (*cond_sub): Likewise.
14111 (*cmp_ite0): Likewise.
14112 (*cmp_ite1): Likewise.
14113 (*cmp_and): Likewise.
14114 (*cmp_ior): Likewise.
14115 (*ior_scc_scc): Likewise.
14116 (*ior_scc_scc_cmp): Likewise.
14117 (*and_scc_scc): Likewise.
14118 (*and_scc_scc_cmp): Likewise.
14119 (*and_scc_scc_nod): Likewise.
14120 (*negscc): Likewise.
14121 (movcond_addsi): Likewise.
14122 (movcond): Likewise.
14123 (*ifcompare_plus_move): Likewise.
14124 (*if_plus_move): Likewise.
14125 (*ifcompare_move_plus): Likewise.
14126 (*if_move_plus): Likewise.
14127 (*ifcompare_arith_arith): Likewise.
14128 (*if_arith_arith): Likewise.
14129 (*ifcompare_arith_move): Likewise.
14130 (*if_arith_move): Likewise.
14131 (*ifcompare_move_arith): Likewise.
14132 (*if_move_arith): Likewise.
14133 (*ifcompare_move_not): Likewise.
14134 (*if_move_not): Likewise.
14135 (*ifcompare_not_move): Likewise.
14136 (*if_not_move): Likewise.
14137 (*ifcompare_shift_move): Likewise.
14138 (*if_shift_move): Likewise.
14139 (*ifcompare_move_shift): Likewise.
14140 (*if_move_shift): Likewise.
14141 (*ifcompare_shift_shift): Likewise.
14142 (*ifcompare_not_arith): Likewise.
14143 (*ifcompare_arith_not): Likewise.
14144 (*if_arith_not): Likewise.
14145 (*ifcompare_neg_move): Likewise.
14146 (*if_neg_move): Likewise.
14147 (*ifcompare_move_neg): Likewise.
14148 (*if_move_neg): Likewise.
14149 (prologue_thumb1_interwork): Likewise.
14150 (*cond_move_not): Likewise.
14151 (*sign_extract_onebit): Likewise.
14152 (*not_signextract_onebit): Likewise.
14153 (stack_tie): Likewise.
14154 (align_4): Likewise.
14155 (align_8): Likewise.
14156 (consttable_end): Likewise.
14157 (consttable_1): Likewise.
14158 (consttable_2): Likewise.
14159 (consttable_4): Likewise.
14160 (consttable_8): Likewise.
14161 (consttable_16): Likewise.
14162 (*thumb1_tablejump): Likewise.
14163 (prefetch): Likewise.
14164 (force_register_use): Likewise.
14165 (thumb_eh_return): Likewise.
14166 (load_tp_hard): Likewise.
14167 (load_tp_soft): Likewise.
14168 (tlscall): Likewise.
14169 (*arm_movtas_ze): Likewise.
14170 (*arm_rev): Likewise.
14171 (*arm_revsh): Likewise.
14172 (*arm_rev16): Likewise.
14173 * config/arm/thumb2.md
14174 (*thumb2_smaxsi3): Likewise.
14175 (*thumb2_sminsi3): Likewise.
14176 (*thumb32_umaxsi3): Likewise.
14177 (*thumb2_uminsi3): Likewise.
14178 (*thumb2_negdi2): Likewise.
14179 (*thumb2_abssi2): Likewise.
14180 (*thumb2_neg_abss): Likewise.
14181 (*thumb2_movsi_insn): Likewise.
14182 (tls_load_dot_plus_four): Likewise.
14183 (*thumb2_movhi_insn): Likewise.
14184 (*thumb2_mov_scc): Likewise.
14185 (*thumb2_mov_negs): Likewise.
14186 (*thumb2_mov_negs): Likewise.
14187 (*thumb2_mov_nots): Likewise.
14188 (*thumb2_mov_nots): Likewise.
14189 (*thumb2_movsicc_): Likewise.
14190 (*thumb2_movsfcc_soft_insn): Likewise.
14191 (*thumb2_indirect_jump): Likewise.
14192 (*thumb2_and_scc): Likewise.
14193 (*thumb2_ior_scc): Likewise.
14194 (*thumb2_ior_scc_strict_it): Likewise.
14195 (*thumb2_cond_move): Likewise.
14196 (*thumb2_cond_arith): Likewise.
14197 (*thumb2_cond_ari): Likewise.
14198 (*thumb2_cond_sub): Likewise.
14199 (*thumb2_negscc): Likewise.
14200 (*thumb2_movcond): Likewise.
14201 (thumb2_casesi_internal): Likewise.
14202 (thumb2_casesi_internal_pic): Likewise.
14203 (*thumb2_alusi3_short): Likewise.
14204 (*thumb2_mov<mode>_shortim): Likewise.
14205 (*thumb2_addsi_short): Likewise.
14206 (*thumb2_subsi_short): Likewise.
14207 (thumb2_addsi3_compare0): Likewise.
14208 (*thumb2_cbz): Likewise.
14209 (*thumb2_cbnz): Likewise.
14210 (*thumb2_one_cmplsi2_short): Likewise.
14211 (*thumb2_negsi2_short): Likewise.
14212 (*orsi_notsi_si): Likewise.
14213 * config/arm/arm1020e.md: Update with new attributes.
14214 * config/arm/arm1026ejs.md: Update with new attributes.
14215 * config/arm/arm1136jfs.md: Update with new attributes.
14216 * config/arm/arm926ejs.md: Update with new attributes.
14217 * config/arm/cortex-a15.md: Update with new attributes.
14218 * config/arm/cortex-a5.md: Update with new attributes.
14219 * config/arm/cortex-a53.md: Update with new attributes.
14220 * config/arm/cortex-a7.md: Update with new attributes.
14221 * config/arm/cortex-a8.md: Update with new attributes.
14222 * config/arm/cortex-a9.md: Update with new attributes.
14223 * config/arm/cortex-m4.md: Update with new attributes.
14224 * config/arm/cortex-r4.md: Update with new attributes.
14225 * config/arm/fa526.md: Update with new attributes.
14226 * config/arm/fa606te.md: Update with new attributes.
14227 * config/arm/fa626te.md: Update with new attributes.
14228 * config/arm/fa726te.md: Update with new attributes.
14230 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
14232 * config/aarch64/aarch64-simd.md
14233 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
14234 <vwx> iterator to ensure correct register choice.
14235 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
14236 (aarch64_sqdmull_n<mode>): Likewise.
14237 (aarch64_sqdmull2_n<mode>_internal): Likewise.
14238 * config/aarch64/arm_neon.h
14239 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
14240 (vml<as><q>_n_<su>16): Likewise.
14241 (vml<as>l_high_lane<q>_<su>16): Likewise.
14242 (vml<as>l_high_n_<su>16): Likewise.
14243 (vml<as>l_lane<q>_<su>16): Likewise.
14244 (vml<as>l_n_<su>16): Likewise.
14245 (vmul<q>_lane<q>_<su>16): Likewise.
14246 (vmul<q>_n_<su>16): Likewise.
14247 (vmull_lane<q>_<su>16): Likewise.
14248 (vmull_n_<su>16): Likewise.
14249 (vmull_high_lane<q>_<su>16): Likewise.
14250 (vmull_high_n_<su>16): Likewise.
14251 (vqrdmulh<q>_n_s16): Likewise.
14253 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
14255 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
14256 have the correct lane parameter.
14258 2013-09-06 Richard Biener <rguenther@suse.de>
14260 * cfganal.c (control_dependences::~control_dependences):
14261 Properly free all of the vector.
14263 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
14266 * config/i386/i386.c (ix86_conditional_register_usage):
14267 Proper initialize extended SSE registers.
14269 2013-09-06 Jan Hubicka <jh@suse.cz>
14271 PR tree-optimization/58311
14272 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
14274 2013-09-06 Jan Hubicka <jh@suse.cz>
14276 * Makefile.in (tree-sra.o): Update dependencies.
14277 * tree-sra.c: Include ipa-utils.h
14278 (scan_function): Use recursive_call_p.
14279 (has_caller_p): New function.
14280 (cgraph_for_node_and_aliases): Count also callers of aliases.
14282 2013-09-06 Jan Hubicka <jh@suse.cz>
14284 PR middle-end/58094
14285 * cgraph.h (symtab_semantically_equivalent_p): Declare.
14286 * tree-tailcall.c: Include ipa-utils.h.
14287 (find_tail_calls): Use it.
14288 * ipa-pure-const.c (check_call): Likewise.
14289 * ipa-utils.c (recursive_call_p): New function.
14290 * ipa-utils.h (recursive_call_p): Dclare.
14291 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
14292 (symtab_semantically_equivalent_p): New function.
14293 * Makefile.in (tree-tailcall.o): Update dependencies.
14295 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
14297 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
14298 non-inlinable part.
14300 2013-09-06 Richard Biener <rguenther@suse.de>
14302 * lto-streamer.h (lto_global_var_decls): Remove.
14303 * Makefile.in (OBJS): Remove lto-symtab.o.
14304 (lto-symtab.o): Remove.
14305 (GTFILES): Remove lto-symtab.c
14306 * lto-symtab.c: Move to lto/
14308 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14310 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
14311 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
14312 (UNSPEC_FPINT_RINT): New constant definitions.
14313 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
14314 definition with 2 attributes.
14315 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
14316 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
14319 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14321 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
14322 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
14323 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
14324 attribute to "z196_alone".
14325 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
14328 2013-09-06 Richard Biener <rguenther@suse.de>
14330 * basic-block.h (class control_dependences): New.
14331 * tree-ssa-dce.c (control_dependence_map): Remove.
14333 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
14334 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
14335 find_pdom, find_control_dependence, find_all_control_dependences):
14337 (mark_control_dependent_edges_necessary,
14338 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
14339 tree_dce_done, perform_tree_ssa_dce): Adjust.
14340 * cfganal.c (set_control_dependence_map_bit,
14341 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
14342 find_all_control_dependences): Move from tree-ssa-dce.c and
14343 implement as methods of control_dependences class.
14344 (control_dependences::control_dependences): New.
14345 (control_dependences::~control_dependences): Likewise.
14346 (control_dependences::get_edges_dependent_on): Likewise.
14347 (control_dependences::get_edge): Likewise.
14349 2013-09-04 Jan Hubicka <jh@suse.cz>
14351 * tree.c (types_same_for_odr): Drop overactive check.
14352 * ipa-devirt.c (hash_type_name): Likewise.
14354 2013-09-04 Jan Hubicka <jh@suse.cz>
14356 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
14357 (analyze_functions): ... here.
14359 2013-09-04 Jan Hubicka <jh@suse.cz>
14361 PR middle-end/58201
14362 * cgraphunit.c (analyze_functions): Clear AUX fields
14363 after processing; initialize assembler name has.
14365 2013-09-05 Jeff Law <law@redhat.com>
14367 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
14368 from thread_around_empty_block. Record threading path into PATH.
14369 Recurse if threading through the initial block is successful.
14370 (thread_across_edge): Corresponding changes to slightly simplify.
14372 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14374 * config/aarch64/aarch64.md
14375 (type): Remove frecpe, frecps, frecpx.
14376 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
14377 fix to be a TARGET_SIMD instruction.
14378 (aarch64_frecps): Remove.
14379 * config/aarch64/aarch64-simd.md
14380 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
14381 (aarch64_frecps<mode>): Handle all float/vector of float modes.
14383 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14384 Sofiane Naci <sofiane.naci@arm.com>
14386 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
14387 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
14388 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
14389 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
14390 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
14391 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
14392 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
14393 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
14394 into "clz, "rbit". Rename "shift" to "shift_imm".
14395 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
14396 changes. Update for attribute changes all occurrences of arlo_* and
14398 * config/arm/arm-fixed.md: Update for attribute changes
14399 all occurrences of arlo_* types.
14400 * config/arm/thumb2.md: Update for attribute changes all occurrences
14402 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
14403 (cortexa7_older_only): Likewise.
14404 (cortexa7_younger): Likewise.
14405 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
14406 (1020alu_shift_op): Likewise.
14407 (1020alu_shift_reg_op): Likewise.
14408 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
14409 (alu_shift_op): Likewise.
14410 (alu_shift_reg_op): Likewise.
14411 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
14412 (11_alu_shift_op): Likewise.
14413 (11_alu_shift_reg_op): Likewise.
14414 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
14415 (9_alu_shift_reg_op): Likewise.
14416 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
14418 (cortex_a15_alu_shift): Likewise.
14419 (cortex_a15_alu_shift_reg): Likewise.
14420 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
14422 (cortex_a5_alu_shift): Likewise.
14423 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
14425 (cortex_a53_alu_shift): Likewise.
14426 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
14428 (cortex_a7_alu_reg): Likewise.
14429 (cortex_a7_alu_shift): Likewise.
14430 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
14432 (cortex_a8_alu_shift): Likewise.
14433 (cortex_a8_alu_shift_reg): Likewise.
14434 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
14435 (cortex_a9_dp_shift): Likewise.
14436 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
14438 * config/arm/cortex-r4.md
14439 (cortex_r4_alu): Update for attribute changes.
14440 (cortex_r4_mov): Likewise.
14441 (cortex_r4_alu_shift_reg): Likewise.
14442 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
14443 (526_alu_shift_op): Likewise.
14444 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
14445 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
14446 (626te_alu_shift_op): Likewise.
14447 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
14448 (726te_alu_shift_op): Likewise.
14449 (726te_alu_shift_reg_op): Likewise.
14450 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
14451 (mp626_alu_shift_op): Likewise.
14452 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
14453 (pj4_alu_conds): Likewise.
14454 (pj4_shift): Likewise.
14455 (pj4_shift_conds): Likewise.
14456 (pj4_alu_shift): Likewise.
14457 (pj4_alu_shift_conds): Likewise.
14458 * config/aarch64/aarch64.md: Update for attribute change
14459 all occurrences of arlo_* and shift* types.
14461 2013-09-05 Mike Stump <mikestump@comcast.net>
14463 * tree.h: Move documentation for tree_function_decl to tree-core.h
14464 with the declaration.
14466 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
14469 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
14470 looking for widest mode.
14472 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
14474 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
14476 2013-09-05 Richard Biener <rguenther@suse.de>
14478 PR tree-optimization/58137
14479 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
14480 Do not create vectors of pointers.
14481 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
14482 types for the components of the vector initializer.
14483 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
14484 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
14486 2013-09-05 Martin Jambor <mjambor@suse.cz>
14488 * ipa-prop.c (remove_described_reference): Accept missing references,
14489 return false if that hppens, otherwise return true.
14490 (cgraph_node_for_jfunc): New function.
14491 (try_decrement_rdesc_refcount): Likewise.
14492 (try_make_edge_direct_simple_call): Use them.
14493 (ipa_edge_removal_hook): Remove references from rdescs.
14494 (ipa_edge_duplication_hook): Clone rdescs and their references
14495 when the new edge has the same caller as the old one.
14496 * cgraph.c (cgraph_resolve_speculation): Remove speculative
14497 reference before removing any edges.
14499 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
14501 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
14503 * thumb2.md (thumb2_storewb_parisi): New pattern.
14505 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
14507 * config/aarch64/aarch64-option-extensions.def: Add
14508 AARCH64_OPT_EXTENSION of 'crc'.
14509 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
14510 (AARCH64_ISA_CRC): Ditto.
14511 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
14512 description of the CRC extension.
14514 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
14516 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
14517 * config/rs6000/linux.h: Ditto.
14518 * alpha/linux.h: Ditto.
14519 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
14520 no_c99_libc_has_function.
14521 * config/c6x/uclinux-elf.h: Ditto.
14522 * config/lm32/uclinux-elf.h: Ditto.
14523 * config/m68k/uclinux.h: Ditto.
14524 * config/moxie/uclinux.h: Ditto.
14525 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
14526 (crisv32-*-linux*, cris-*-linux*): Ditto.
14527 * config/bfin/bfin.c: Include "tm_p.h".
14529 2013-09-05 Richard Biener <rguenther@suse.de>
14531 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
14532 check for a definition without a basic-block.
14534 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14535 Sofiane Naci <sofiane.naci@arm.com>
14537 * config/aarch64/aarch64.md
14538 (*movti_aarch64): Rename r_2_f and f_2_r.
14539 (*movsf_aarch64): Likewise.
14540 (*movdf_aarch64): Likewise.
14541 (*movtf_aarch64): Likewise.
14542 (aarch64_movdi_<mode>low): Likewise.
14543 (aarch64_movdi_<mode>high): Likewise.
14544 (aarch64_mov<mode>high_di): Likewise.
14545 (aarch64_mov<mode>low_di): Likewise.
14546 (aarch64_movtilow_tilow): Likewise.
14547 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
14548 values to config/arm/types.md
14549 (attribute "conds"): Update for attribute change.
14550 (anddi3_insn): Likewise.
14551 (iordi3_insn): Likewise.
14552 (xordi3_insn): Likewise.
14553 (one_cmpldi2): Likewise.
14554 * config/arm/types.md (type): Add Neon types.
14555 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
14556 use "type" attribute.
14557 (movmisalign<mode>_neon_store): Likewise.
14558 (movmisalign<mode>_neon_load): Likewise.
14559 (vec_set<mode>_internal): Likewise.
14560 (vec_setv2di_internal): Likewise.
14561 (vec_extract<mode>): Likewise.
14562 (vec_extractv2di): Likewise.
14563 (add<mode>3_neon): Likewise.
14564 (adddi3_neon): Likewise.
14565 (sub<mode>3_neon): Likewise.
14566 (subdi3_neon): Likewise.
14567 (mul<mode>3_neon): Likewise.
14568 (mul<mode>3add<mode>_neon): Likewise.
14569 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
14570 (fma<VCVTF:mode>4)): Likewise.
14571 (fma<VCVTF:mode>4_intrinsic): Likewise.
14572 (fmsub<VCVTF:mode>4)): Likewise.
14573 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
14574 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
14575 (ior<mode>3): Likewise.
14576 (and<mode>3): Likewise.
14577 (anddi3_neon): Likewise.
14578 (orn<mode>3_neon): Likewise.
14579 (orndi3_neon): Likewise.
14580 (bic<mode>3_neon): Likewise.
14581 (bicdi3_neon): Likewise.
14582 (xor<mode>3): Likewise.
14583 (one_cmpl<mode>2): Likewise.
14584 (abs<mode>2): Likewise.
14585 (neg<mode>2): Likewise.
14586 (umin<mode>3_neon): Likewise.
14587 (umax<mode>3_neon): Likewise.
14588 (smin<mode>3_neon): Likewise.
14589 (smax<mode>3_neon): Likewise.
14590 (vashl<mode>3): Likewise.
14591 (vashr<mode>3_imm): Likewise.
14592 (vlshr<mode>3_imm): Likewise.
14593 (ashl<mode>3_signed): Likewise.
14594 (ashl<mode>3_unsigned): Likewise.
14595 (neon_load_count): Likewise.
14596 (ashldi3_neon_noclobber): Likewise.
14597 (signed_shift_di3_neon): Likewise.
14598 (unsigned_shift_di3_neon): Likewise.
14599 (ashrdi3_neon_imm_noclobber): Likewise.
14600 (lshrdi3_neon_imm_noclobber): Likewise.
14601 (widen_ssum<mode>3): Likewise.
14602 (widen_usum<mode>3): Likewise.
14603 (quad_halves_<code>v4si): Likewise.
14604 (quad_halves_<code>v4sf): Likewise.
14605 (quad_halves_<code>v8hi): Likewise.
14606 (quad_halves_<code>v16qi): Likewise.
14607 (reduc_splus_v2di): Likewise.
14608 (neon_vpadd_internal<mode>): Likewise.
14609 (neon_vpsmin<mode>): Likewise.
14610 (neon_vpsmax<mode>): Likewise.
14611 (neon_vpumin<mode>): Likewise.
14612 (neon_vpumax<mode>): Likewise.
14613 (ss_add<mode>_neon): Likewise.
14614 (us_add<mode>_neon): Likewise.
14615 (ss_sub<mode>_neon): Likewise.
14616 (us_sub<mode>_neon): Likewise.
14617 (neon_vadd<mode>_unspec): Likewise.
14618 (neon_vaddl<mode>): Likewise.
14619 (neon_vaddw<mode>): Likewise.
14620 (neon_vhadd<mode>): Likewise.
14621 (neon_vqadd<mode>): Likewise.
14622 (neon_vaddhn<mode>): Likewise.
14623 (neon_vmul<mode>): Likewise.
14624 (neon_vmla<mode>): Likewise.
14625 (neon_vmlal<mode>): Likewise.
14626 (neon_vmls<mode>): Likewise.
14627 (neon_vmlsl<mode>): Likewise.
14628 (neon_vqdmulh<mode>): Likewise.
14629 (neon_vqdmlal<mode>): Likewise.
14630 (neon_vqdmlsl<mode>): Likewise.
14631 (neon_vmull<mode>): Likewise.
14632 (neon_vqdmull<mode>): Likewise.
14633 (neon_vsub<mode>_unspec): Likewise.
14634 (neon_vsubl<mode>): Likewise.
14635 (neon_vsubw<mode>): Likewise.
14636 (neon_vqsub<mode>): Likewise.
14637 (neon_vhsub<mode>): Likewise.
14638 (neon_vsubhn<mode>): Likewise.
14639 (neon_vceq<mode>): Likewise.
14640 (neon_vcge<mode>): Likewise.
14641 (neon_vcgeu<mode>): Likewise.
14642 (neon_vcgt<mode>): Likewise.
14643 (neon_vcgtu<mode>): Likewise.
14644 (neon_vcle<mode>): Likewise.
14645 (neon_vclt<mode>): Likewise.
14646 (neon_vcage<mode>): Likewise.
14647 (neon_vcagt<mode>): Likewise.
14648 (neon_vtst<mode>): Likewise.
14649 (neon_vabd<mode>): Likewise.
14650 (neon_vabdl<mode>): Likewise.
14651 (neon_vaba<mode>): Likewise.
14652 (neon_vabal<mode>): Likewise.
14653 (neon_vmax<mode>): Likewise.
14654 (neon_vmin<mode>): Likewise.
14655 (neon_vpaddl<mode>): Likewise.
14656 (neon_vpadal<mode>): Likewise.
14657 (neon_vpmax<mode>): Likewise.
14658 (neon_vpmin<mode>): Likewise.
14659 (neon_vrecps<mode>): Likewise.
14660 (neon_vrsqrts<mode>): Likewise.
14661 (neon_vqabs<mode>): Likewise.
14662 (neon_vqneg<mode>): Likewise.
14663 (neon_vcls<mode>): Likewise.
14664 (clz<mode>2): Likewise.
14665 (popcount<mode>2): Likewise.
14666 (neon_vrecpe): Likewise.
14667 (neon_vrsqrte): Likewise.
14668 (neon_vget_lane<mode>_sext_internal): Likewise.
14669 (neon_vget_lane<mode>_zext_internal): Likewise.
14670 (neon_vdup_n<mode>): Likewise.
14671 (neon_vdup_nv2di): Likewise.
14672 (neon_vdpu_lane<mode>_internal): Likewise.
14673 (neon_vswp<mode>): Likewise.
14674 (float<mode><V_cvtto>2): Likewise.
14675 (floatuns<mode><V_cvtto>2): Likewise.
14676 (fix_trunc<mode><V_cvtto>)2): Likewise
14677 (fixuns_trunc<mode><V_cvtto)2): Likewise.
14678 (neon_vcvt<mode>): Likewise.
14679 (neon_vcvtv4sfv4hf): Likewise.
14680 (neon_vcvtv4hfv4sf): Likewise.
14681 (neon_vcvt_n<mode>): Likewise.
14682 (neon_vmovn<mode>): Likewise.
14683 (neon_vqmovn<mode>): Likewise.
14684 (neon_vqmovun<mode>): Likewise.
14685 (neon_vmovl<mode>): Likewise.
14686 (neon_vmul_lane<mode>): Likewise.
14687 (neon_vmull_lane<mode>): Likewise.
14688 (neon_vqdmull_lane<mode>): Likewise.
14689 (neon_vqdmulh_lane<mode>): Likewise.
14690 (neon_vmla_lane<mode>): Likewise.
14691 (neon_vmlal_lane<mode>): Likewise.
14692 (neon_vqdmlal_lane<mode>): Likewise.
14693 (neon_vmls_lane<mode>): Likewise.
14694 (neon_vmlsl_lane<mode>): Likewise.
14695 (neon_vqdmlsl_lane<mode>): Likewise.
14696 (neon_vext<mode>): Likewise.
14697 (neon_vrev64<mode>): Likewise.
14698 (neon_vrev32<mode>): Likewise.
14699 (neon_vrev16<mode>): Likewise.
14700 (neon_vbsl<mode>_internal): Likewise.
14701 (neon_vshl<mode>): Likewise.
14702 (neon_vqshl<mode>): Likewise.
14703 (neon_vshr_n<mode>): Likewise.
14704 (neon_vshrn_n<mode>): Likewise.
14705 (neon_vqshrn_n<mode>): Likewise.
14706 (neon_vqshrun_n<mode>): Likewise.
14707 (neon_vshl_n<mode>): Likewise.
14708 (neon_vqshl_n<mode>): Likewise.
14709 (neon_vqshlu_n<mode>): Likewise.
14710 (neon_vshll_n<mode>): Likewise.
14711 (neon_vsra_n<mode>): Likewise.
14712 (neon_vsri_n<mode>): Likewise.
14713 (neon_vsli_n<mode>): Likewise.
14714 (neon_vtbl1v8qi): Likewise.
14715 (neon_vtbl2v8qi): Likewise.
14716 (neon_vtbl3v8qi): Likewise.
14717 (neon_vtbl4v8qi): Likewise.
14718 (neon_vtbx1v8qi): Likewise.
14719 (neon_vtbx2v8qi): Likewise.
14720 (neon_vtbx3v8qi): Likewise.
14721 (neon_vtbx4v8qi): Likewise.
14722 (neon_vtrn<mode>_internal): Likewise.
14723 (neon_vzip<mode>_internal): Likewise.
14724 (neon_vuzp<mode>_internal): Likewise.
14725 (neon_vld1<mode>): Likewise.
14726 (neon_vld1_lane<mode>): Likewise.
14727 (neon_vld1_dup<mode>): Likewise.
14728 (neon_vld1_dupv2di): Likewise.
14729 (neon_vst1<mode>): Likewise.
14730 (neon_vst1_lane<mode>): Likewise.
14731 (neon_vld2<mode>): Likewise.
14732 (neon_vld2_lane<mode>): Likewise.
14733 (neon_vld2_dup<mode>): Likewise.
14734 (neon_vst2<mode>): Likewise.
14735 (neon_vst2_lane<mode>): Likewise.
14736 (neon_vld3<mode>): Likewise.
14737 (neon_vld3qa<mode>): Likewise.
14738 (neon_vld3qb<mode>): Likewise.
14739 (neon_vld3_lane<mode>): Likewise.
14740 (neon_vld3_dup<mode>): Likewise.
14741 (neon_vst3<mode>): Likewise.
14742 (neon_vst3qa<mode>): Likewise.
14743 (neon_vst3qb<mode>): Likewise.
14744 (neon_vst3_lane<mode>): Likewise.
14745 (neon_vld4<mode>): Likewise.
14746 (neon_vld4qa<mode>): Likewise.
14747 (neon_vld4qb<mode>): Likewise.
14748 (neon_vld4_lane<mode>): Likewise.
14749 (neon_vld4_dup<mode>): Likewise.
14750 (neon_vst4<mode>): Likewise.
14751 (neon_vst4qa<mode>): Likewise.
14752 (neon_vst4qb<mode>): Likewise.
14753 (neon_vst4_lane<mode>): Likewise.
14754 (neon_vec_unpack<US>_lo_<mode>): Likewise.
14755 (neon_vec_unpack<US>_hi_<mode>): Likewise.
14756 (neon_vec_<US>mult_lo_<mode>): Likewise.
14757 (neon_vec_<US>mult_hi_<mode>): Likewise.
14758 (neon_vec_<US>shiftl_<mode>): Likewise.
14759 (neon_unpack<US>_<mode>): Likewise.
14760 (neon_vec_<US>mult_<mode>): Likewise.
14761 (vec_pack_trunc_<mode>): Likewise.
14762 (neon_vec_pack_trunk_<mode>): Likewise.
14763 (neon_vabd<mode>_2): Likewise.
14764 (neon_vabd<mode>_3): Likewise.
14765 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
14766 (thumb2_movsi_vfp): Likewise.
14767 (movdi_vfp): Likewise.
14768 (movdi_vfp_cortexa8): Likewise.
14769 (movhf_vfp_neon): Likewise.
14770 (movhf_vfp): Likewiwse.
14771 (movsf_vfp): Likewiwse.
14772 (thumb2_movsf_vfp): Likewiwse.
14773 (movdf_vfp): Likewise.
14774 (thumb2_movdf_vfp): Likewise.
14775 (movsfcc_vfp): Likewise.
14776 (thumb2_movsfcc_vfp): Likewise.
14777 (movdfcc_vfp): Likewise.
14778 (thumb2_movdfcc_vfp): Likewise.
14779 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
14780 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
14781 (v10_v2c): Likewise.
14782 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
14784 (cortex_a15_neon_int_2): Likewise.
14785 (cortex_a15_neon_int_3): Likewise.
14786 (cortex_a15_neon_int_4): Likewise.
14787 (cortex_a15_neon_int_5): Likewise.
14788 (cortex_a15_neon_vqneg_vqabs): Likewise.
14789 (cortex_a15_neon_vmov): Likewise.
14790 (cortex_a15_neon_vaba): Likewise.
14791 (cortex_a15_neon_vaba_qqq): Likewise.
14792 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14793 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14794 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
14795 scalar_64_32_long_scalar): Likewise.
14796 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14797 (cortex_a15_neon_mla_qqq_8_16): Likewise.
14798 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14799 lotype_qdd_64_32_long): Likewise.
14800 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14801 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14802 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
14803 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14804 (cortex_a15_neon_shift_1): Likewise.
14805 (cortex_a15_neon_shift_2): Likewise.
14806 (cortex_a15_neon_shift_3): Likewise.
14807 (cortex_a15_neon_vshl_ddd): Likewise.
14808 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14809 (cortex_a15_neon_vsra_vrsra): Likewise.
14810 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
14811 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
14812 (cortex_a15_neon_fp_vmul_ddd): Likewise.
14813 (cortex_a15_neon_fp_vmul_qqd): Likewise.
14814 (cortex_a15_neon_fp_vmla_ddd): Likewise.
14815 (cortex_a15_neon_fp_vmla_qqq): Likewise.
14816 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
14817 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
14818 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14819 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14820 (cortex_a15_neon_bp_simple): Likewise.
14821 (cortex_a15_neon_bp_2cycle): Likewise.
14822 (cortex_a15_neon_bp_3cycle): Likewise.
14823 (cortex_a15_neon_vld1_1_2_regs): Likewise.
14824 (cortex_a15_neon_vld1_3_4_regs): Likewise.
14825 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14826 (cortex_a15_neon_vld2_4_regs): Likewise.
14827 (cortex_a15_neon_vld3_vld4): Likewise.
14828 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14829 (cortex_a15_neon_vst1_3_4_regs): Likewise.
14830 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
14831 (cortex_a15_neon_vst3_vst4): Likewise.
14832 (cortex_a15_neon_vld1_vld2_lane): Likewise.
14833 (cortex_a15_neon_vld3_vld4_lane" 10
14834 (cortex_a15_neon_vst1_vst2_lane): Likewise.
14835 (cortex_a15_neon_vst3_vst4_lane): Likewise.
14836 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
14837 (cortex_a15_neon_ldm_2): Likewise.0
14838 (cortex_a15_neon_stm_2): Likewise.
14839 (cortex_a15_neon_mcr): Likewise.
14840 (cortex_a15_neon_mcr_2_mcrr): Likewise.
14841 (cortex_a15_neon_mrc): Likewise.
14842 (cortex_a15_neon_mrrc): Likewise.
14843 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
14845 (cortex_a15_alu_shift): Likewise.
14846 (cortex_a15_alu_shift_reg): Likewise.
14847 (cortex_a15_mult32): Likewise.
14848 (cortex_a15_mult64): Likewise.
14849 (cortex_a15_block): Likewise.
14850 (cortex_a15_branch): Likewise.
14851 (cortex_a15_load1): Likewise.
14852 (cortex_a15_load3): Likewise.
14853 (cortex_a15_store1): Likewise.
14854 (cortex_a15_store3): Likewise.
14855 (cortex_a15_call): Likewise.
14856 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
14857 (cortex_a5_f2r): Likewise.
14858 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
14860 (cortex_a53_f2r): Likewise.
14861 * config/arm/cortex-a7.md
14862 (cortex_a7_branch): Update for attribute change.
14863 (cortex_a7_call): Likewise.
14864 (cortex_a7_alu_imm): Likewise.
14865 (cortex_a7_alu_reg): Likewise.
14866 (cortex_a7_alu_shift): Likewise.
14867 (cortex_a7_mul): Likewise.
14868 (cortex_a7_load1): Likewise.
14869 (cortex_a7_store1): Likewise.
14870 (cortex_a7_load2): Likewise.
14871 (cortex_a7_store2): Likewise.
14872 (cortex_a7_load3): Likewise.
14873 (cortex_a7_store3): Likewise.
14874 (cortex_a7_load4): Likewise.
14875 (cortex_a7_store4): Likewise.
14876 (cortex_a7_fpalu): Likewise.
14877 (cortex_a7_fconst): Likewise.
14878 (cortex_a7_fpmuls): Likewise.
14879 (cortex_a7_neon_mul): Likewise.
14880 (cortex_a7_fpmacs): Likewise.
14881 (cortex_a7_neon_mla: Likewise.
14882 (cortex_a7_fpmuld: Likewise.
14883 (cortex_a7_fpmacd: Likewise.
14884 (cortex_a7_fpfmad: Likewise.
14885 (cortex_a7_fdivs: Likewise.
14886 (cortex_a7_fdivd: Likewise.
14887 (cortex_a7_r2f: Likewise.
14888 (cortex_a7_f2r: Likewise.
14889 (cortex_a7_f_flags: Likewise.
14890 (cortex_a7_f_loads: Likewise.
14891 (cortex_a7_f_loadd: Likewise.
14892 (cortex_a7_f_stores: Likewise.
14893 (cortex_a7_f_stored: Likewise.
14894 (cortex_a7_neon): Likewise.
14895 * config/arm/cortex-a8-neon.md
14896 (cortex_a8_neon_mrc): Update for attribute change.
14897 (cortex_a8_neon_mrrc): Likewise.
14898 (cortex_a8_neon_int_1): Likewise.
14899 (cortex_a8_neon_int_2): Likewise.
14900 (cortex_a8_neon_int_3): Likewise.
14901 (cortex_a8_neon_int_4): Likewise.
14902 (cortex_a8_neon_int_5): Likewise.
14903 (cortex_a8_neon_vqneg_vqabs): Likewise.
14904 (cortex_a8_neon_vmov): Likewise.
14905 (cortex_a8_neon_vaba): Likewise.
14906 (cortex_a8_neon_vaba_qqq): Likewise.
14907 (cortex_a8_neon_vsma): Likewise.
14908 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14909 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14910 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
14911 long_scalar): Likewise.
14912 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14913 (cortex_a8_neon_mla_qqq_8_16): Likewise.
14914 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14915 long_scalar_qdd_64_32_long): Likewise.
14916 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14917 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14918 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
14919 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14920 (cortex_a8_neon_shift_1): Likewise.
14921 (cortex_a8_neon_shift_2): Likewise.
14922 (cortex_a8_neon_shift_3): Likewise.
14923 (cortex_a8_neon_vshl_ddd): Likewise.
14924 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14925 (cortex_a8_neon_vsra_vrsra): Likewise.
14926 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
14927 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
14928 (cortex_a8_neon_fp_vsum): Likewise.
14929 (cortex_a8_neon_fp_vmul_ddd): Likewise.
14930 (cortex_a8_neon_fp_vmul_qqd): Likewise.
14931 (cortex_a8_neon_fp_vmla_ddd): Likewise.
14932 (cortex_a8_neon_fp_vmla_qqq): Likewise.
14933 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
14934 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
14935 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
14936 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
14937 (cortex_a8_neon_bp_simple): Likewise.
14938 (cortex_a8_neon_bp_2cycle): Likewise.
14939 (cortex_a8_neon_bp_3cycle): Likewise.
14940 (cortex_a8_neon_ldr): Likewise.
14941 (cortex_a8_neon_str): Likewise.
14942 (cortex_a8_neon_vld1_1_2_regs): Likewise.
14943 (cortex_a8_neon_vld1_3_4_regs): Likewise.
14944 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
14945 (cortex_a8_neon_vld2_4_regs): Likewise.
14946 (cortex_a8_neon_vld3_vld4): Likewise.
14947 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
14948 (cortex_a8_neon_vst1_3_4_regs): Likewise.
14949 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
14950 (cortex_a8_neon_vst3_vst4): Likewise.
14951 (cortex_a8_neon_vld1_vld2_lane): Likewise.
14952 (cortex_a8_neon_vld3_vld4_lane): Likewise.
14953 (cortex_a8_neon_vst1_vst2_lane): Likewise.
14954 (cortex_a8_neon_vst3_vst4_lane): Likewise.
14955 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
14956 (cortex_a8_neon_mcr): Likewise.
14957 (cortex_a8_neon_mcr_2_mcrr): Likewise.
14958 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
14959 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
14961 (ca9_neon_mrrc): Likewise.
14962 (cortex_a9_neon_int_1): Likewise.
14963 (cortex_a9_neon_int_2): Likewise.
14964 (cortex_a9_neon_int_3): Likewise.
14965 (cortex_a9_neon_int_4): Likewise.
14966 (cortex_a9_neon_int_5): Likewise.
14967 (cortex_a9_neon_vqneg_vqabs): Likewise.
14968 (cortex_a9_neon_vmov): Likewise.
14969 (cortex_a9_neon_vaba): Likewise.
14970 (cortex_a9_neon_vaba_qqq): Likewise.
14971 (cortex_a9_neon_vsma): Likewise.
14972 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14973 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
14974 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
14975 long_scalar): Likewise.
14976 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
14977 (cortex_a9_neon_mla_qqq_8_16): Likewise.
14978 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
14979 long_scalar_qdd_64_32_long): Likewise.
14980 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
14981 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
14982 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
14983 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
14984 (cortex_a9_neon_shift_1): Likewise.
14985 (cortex_a9_neon_shift_2): Likewise.
14986 (cortex_a9_neon_shift_3): Likewise.
14987 (cortex_a9_neon_vshl_ddd): Likewise.
14988 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
14989 (cortex_a9_neon_vsra_vrsra): Likewise.
14990 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
14991 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
14992 (cortex_a9_neon_fp_vsum): Likewise.
14993 (cortex_a9_neon_fp_vmul_ddd): Likewise.
14994 (cortex_a9_neon_fp_vmul_qqd): Likewise.
14995 (cortex_a9_neon_fp_vmla_ddd): Likewise.
14996 (cortex_a9_neon_fp_vmla_qqq): Likewise.
14997 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
14998 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
14999 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
15000 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
15001 (cortex_a9_neon_bp_simple): Likewise.
15002 (cortex_a9_neon_bp_2cycle): Likewise.
15003 (cortex_a9_neon_bp_3cycle): Likewise.
15004 (cortex_a9_neon_ldr): Likewise.
15005 (cortex_a9_neon_str): Likewise.
15006 (cortex_a9_neon_vld1_1_2_regs): Likewise.
15007 (cortex_a9_neon_vld1_3_4_regs): Likewise.
15008 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
15009 (cortex_a9_neon_vld2_4_regs): Likewise.
15010 (cortex_a9_neon_vld3_vld4): Likewise.
15011 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
15012 (cortex_a9_neon_vst1_3_4_regs): Likewise.
15013 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
15014 (cortex_a9_neon_vst3_vst4): Likewise.
15015 (cortex_a9_neon_vld1_vld2_lane): Likewise.
15016 (cortex_a9_neon_vld3_vld4_lane): Likewise.
15017 (cortex_a9_neon_vst1_vst2_lane): Likewise.
15018 (cortex_a9_neon_vst3_vst4_lane): Likewise.
15019 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
15020 (cortex_a9_neon_mcr): Likewise.
15021 (cortex_a9_neon_mcr_2_mcrr): Likewise.
15022 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
15023 (cortex_a9_fps): Likewise.
15024 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
15026 (cortex_m4_fmuls): Likewise.
15027 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
15029 (cortex_r4_mrc): Likewise.
15030 * config/arm/iterators.md: Update comment referring to neon_type.
15031 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
15032 (iwmmxt_movsi_insn): Likewise.
15033 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
15035 (pj4_core_to_vfp): Likewise.
15036 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
15038 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
15039 (vfp_fstore): Likewise.
15040 * doc/md.texi: Change references to neon_type to refer to type.
15042 2013-09-04 Dodji Seketeli <dodji@redhat.com>
15044 * tree.h (DECL_BUILT_IN): Fix typo in comment.
15046 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
15048 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
15049 lglobl if not weak.
15051 2013-09-04 Easwaran Raman <eraman@google.com>
15053 PR middle-end/57370
15054 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
15055 (build_and_add_sum): Use it.
15056 (appears_later_in_bb): Simplify code.
15058 2013-09-04 Teresa Johnson <tejohnson@google.com>
15060 * dumpfile.c (dump_finish): Don't close stderr/stdout.
15062 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
15064 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
15066 2013-09-04 Jan Hubicka <jh@suse.cz>
15068 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
15069 * ipa-devirt.c: Include diganostic.h
15070 (odr_type_d): Add types and types_set.
15071 (hash_type_name): Work for types with vtables during LTO.
15072 (odr_hasher::remove): Fix comment; destroy types_set.
15073 (add_type_duplicate): New function,
15074 (get_odr_type): Use it.
15075 (dump_type_inheritance_graph): Dump type duplicates.
15076 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
15078 * tree.c (types_same_for_odr): Give exact answers on types with
15081 2013-09-04 Dodji Seketeli <dodji@redhat.com>
15083 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
15084 explaining their differences.
15086 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
15088 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
15090 2013-09-03 Jeff Law <law@redhat.com>
15092 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
15093 when not threading through a joiner block. Pass joiner/no joiner
15094 state to register_jump_thread.
15095 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
15096 state from argument rather than implying on path length.
15097 Dump the entire jump thread path into debugging dump.
15098 * tree-flow.h (register_jump_thread): Update prototype.
15100 2013-08-29 Xinliang David Li <davidxl@google.com>
15102 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15103 Remove a trivial gcc_assert.
15105 2013-08-29 Xinliang David Li <davidxl@google.com>
15107 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
15108 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
15109 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
15110 Delay base decl alignment adjustment.
15111 * tree-vectorizer.c (vect_destroy_datarefs): New function.
15112 * tree-vectorizer.h: New data structure.
15113 (set_dr_misalignment): New function.
15114 (dr_misalignment): Ditto.
15115 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
15116 (vectorizable_load): Ditto.
15117 (ensure_base_align): New function.
15118 (vectorize_loops): Add dbg_cnt support.
15119 (execute_vect_slp): Ditto.
15120 * dbgcnt.def: New debug counter.
15121 * Makefile: New dependency.
15123 2013-09-03 Meador Inge <meadori@codesourcery.com>
15127 2013-08-30 Meador Inge <meadori@codesourcery.com>
15129 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15131 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
15133 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
15134 function descriptor.
15136 2013-09-03 Richard Biener <rguenther@suse.de>
15138 * tree-affine.c (add_elt_to_tree): Fix association issue,
15139 avoid useless converts and make sure to always return a
15140 properly typed result.
15142 2013-09-03 Richard Biener <rguenther@suse.de>
15144 PR middle-end/57656
15145 * fold-const.c (negate_expr_p): Fix division case.
15146 (negate_expr): Likewise.
15148 2013-09-03 Richard Biener <rguenther@suse.de>
15151 * tree-streamer-out.c: Include tm.h.
15152 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
15154 2013-09-03 Jan Hubicka <jh@suse.cz>
15156 * tree-profile.c (tree_profiling): Cleanup CFG when done.
15158 2013-09-03 Alan Modra <amodra@gmail.com>
15160 * config.gcc (powerpc*-*-linux*): Add support for little-endian
15161 multilibs to big-endian target and vice versa.
15162 * config/rs6000/t-linux64: Use := assignment on all vars.
15163 (MULTILIB_EXTRA_OPTS): Remove fPIC.
15164 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
15165 * config/rs6000/t-linux64le: New file.
15166 * config/rs6000/t-linux64bele: New file.
15167 * config/rs6000/t-linux64lebe: New file.
15169 2013-09-02 Jan Hubicka <jh@suse.cz>
15171 * ipa-inline-transform.c (inline_transform): Do not
15172 optimize_inline_calls when not optimizing.
15174 2013-09-02 Jan Hubicka <jh@suse.cz>
15176 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
15177 duplicated nodes for assembler names.
15178 * symtab.c (symtab_unregister_node): Do not attempt to unlink
15179 hard registers from assembler name hash.
15181 2013-09-02 Jan Hubicka <jh@suse.cz>
15183 * ipa-split.c (execute_split_functions): Split externally visible
15184 functions called once.
15186 2013-09-02 Martin Jambor <mjambor@suse.cz>
15189 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
15190 linked list. When finding the correct duplicate, also consider also
15191 the caller in additon to its inlined_to node.
15193 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
15195 * config/aarch64/aarch64-simd-builtins.def
15196 (dup_lane_scalar): Remove.
15197 * config/aarch64/aarch64-simd.md
15198 (aarch64_simd_dup): Add 'w->w' alternative.
15199 (aarch64_dup_lane<mode>): Allow for VALL.
15200 (aarch64_dup_lane_scalar<mode>): Remove.
15201 (aarch64_dup_lane_<vswap_width_name><mode>): New.
15202 (aarch64_get_lane_signed<mode>): Add w->w altenative.
15203 (aarch64_get_lane_unsigned<mode>): Likewise.
15204 (aarch64_get_lane<mode>): Likewise.
15205 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
15206 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
15207 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
15208 (VCON): Change container of V2SF.
15209 (vswap_width_name): Likewise.
15210 * config/aarch64/arm_neon.h
15211 (__aarch64_vdup_lane_any): New.
15212 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15213 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
15214 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
15216 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
15218 PR middle-end/56382
15219 * expr.c (emit_move_complex): Do not move complex FP values as parts if
15220 the source or the destination is a single hard register.
15222 2013-09-02 Richard Biener <rguenther@suse.de>
15224 PR middle-end/57511
15225 * tree-scalar-evolution.c (instantiate_scev_name): Allow
15228 2013-09-02 Richard Biener <rguenther@suse.de>
15230 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
15231 arithmetic to sizetype.
15233 2013-09-02 Bin Cheng <bin.cheng@arm.com>
15235 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
15236 Find auto-increment use both before and after candidate.
15238 2013-09-02 Marek Polacek <polacek@redhat.com>
15240 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
15242 2013-09-01 Jan Hubicka <jh@suse.cz>
15244 * Makefile.in: Add ipa-profile.o
15245 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
15246 * cgraph.c (struct cgraph_propagate_frequency_data,
15247 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
15248 ipa-profile.c; replace cgraph_ by ipa_ prefix.
15249 * cgraph.h (cgraph_propagate_frequency): Remove.
15250 * ipa-inline-analysis.c: Include ipa-utils.h;
15251 drop duplicated cfgloop.h.
15252 (inline_update_callee_summaries): Update.
15253 * ipa-profile.c: New file.
15254 * ipa-utils.h (ipa_propagate_frequency): Declare.
15255 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
15256 data-streamer.h, value-prof.h.
15257 (symtab_remove_unreachable_nodes): Update profile.
15258 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
15259 account_time_size, cmp_counts, dump_histogram,
15260 ipa_profile_generate_summary, ipa_profile_write_summary,
15261 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
15262 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
15263 Move to ipa-profile.c.
15265 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
15267 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
15269 2013-09-01 Jan Hubicka <jh@suse.cz>
15271 * common.opt (fdevirtualize-speculatively): New function.
15272 * invoke.texi (fdevirtualize-speculatively): Document.
15273 * ipa-devirt.c: Include ipa-inline.h
15274 (likely_target_p): New function.
15275 (ipa_devirt): New function.
15276 (gate_ipa_devirt): New function.
15277 (pass_data_ipa_devirt): New static var.
15278 (pass_ipa_devirt): Likewise.
15279 (make_pass_ipa_devirt): New function.
15280 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
15281 (common_handle_option): Disable devirtualization when
15282 value range profiling is available.
15283 * passes.def (pass_ipa_devirt): Add.
15284 * timever.def (TV_IPA_DEVIRT): New timevar.
15285 * tree-pass.h (make_pass_ipa_devirt):
15287 2013-09-01 Iain Sandoe <iain@codesourcery.com>
15289 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
15290 include sanitize(undefined).
15292 2013-08-31 Diego Novillo <dnovillo@google.com>
15294 * Makefile.in (TREE_CORE_H): Define.
15296 (GTFILES): Add tree-core.h.
15297 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
15299 * tree-core.h: New file.
15300 Move all data structures, enum, typedefs, global
15301 declarations and constants from ...
15302 * tree.h: ... here.
15304 2013-08-31 Jan Hubicka <jh@suse.cz>
15306 * bulitins.c (expand_builtin): Do not early exit for gcov
15307 instrumented functions.
15309 2013-08-31 Marek Polacek <polacek@redhat.com>
15311 * ubsan.c: Include tm_p.h.
15313 2013-08-31 Jan Hubicka <jh@suse.cz>
15315 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
15318 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
15319 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
15320 * tree-cfg.c (verify_gimple_label): ... here.
15321 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
15322 (ipa_merge_profiles): New function.
15323 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
15324 (lto_input_function_body): Likewise.
15325 * ipa-utils.h (ipa_merge_profiles): Declare.
15326 * lto-streamer.h (lto_input_function_body): Update prototype.
15327 (emit_label_in_global_context_p): Remove.
15328 * lto-symtab.c: Include ipa-utils.h
15329 (lto_cgraph_replace_node): Use ipa_merge_profiles.
15331 2013-08-31 Jan Hubicka <jh@suse.cz>
15333 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
15335 2013-08-31 Jan Hubicka <jh@suse.cz>
15337 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
15339 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
15341 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
15342 "cmp" RTX before signed_comparison_operator check to account
15343 for "code" changes.
15345 2013-08-30 Jan Hubicka <jh@suse.cz>
15347 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
15348 (detect_type_change_1): Rename to ...
15349 (detect_type_change): ... this one; early return on non-polymorphic
15351 (detect_type_change_ssa): Add comp_type parameter; update
15352 use of detect_type_change.
15353 (compute_complex_assign_jump_func): Add param_type parameter;
15354 update use of detect_type_change_ssa.
15355 (compute_complex_ancestor_jump_func): Likewise.
15356 (ipa_get_callee_param_type): New function.
15357 (ipa_compute_jump_functions_for_edge): Compute parameter type;
15358 update calls to the jump function computation functions.
15360 2013-08-30 Teresa Johnson <tejohnson@google.com>
15361 Steven Bosscher <steven@gcc.gnu.org>
15363 * cfgrtl.c (fixup_new_cold_bb): New routine.
15364 (commit_edge_insertions): Invoke fixup_partitions.
15365 (find_partition_fixes): New routine.
15366 (fixup_partitions): Ditto.
15367 (verify_hot_cold_block_grouping): Update comments.
15368 (rtl_verify_edges): Invoke find_partition_fixes.
15369 (rtl_verify_bb_pointers): Update comments.
15370 (rtl_verify_bb_layout): Ditto.
15371 * basic-block.h (probably_never_executed_edge_p): Declare.
15372 (fixup_partitions): Ditto.
15373 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
15374 * bb-reorder.c (sanitize_hot_paths): New function.
15375 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
15376 sanitize_hot_paths.
15377 * predict.c (probably_never_executed_edge_p): New routine.
15378 * cfg.c (check_bb_profile): Add partition insanity warnings.
15380 2013-08-30 Meador Inge <meadori@codesourcery.com>
15382 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
15384 2013-08-30 Marek Polacek <polacek@redhat.com>
15386 * Makefile.in (ubsan.o): Add.
15387 (c-family/c-ubsan.o): Add.
15388 (builtins.o): Add ubsan.h dependency.
15389 * ubsan.h: New file.
15390 * ubsan.c: New file.
15391 * common.opt: Add -fsanitize=undefined option.
15392 (flag_sanitize): Add variable.
15393 (fsanitize=): Add option. Add Driver.
15394 (fsanitize=thread): Remove option.
15395 (fsanitize=address): Likewise.
15396 (static-libubsan): New option.
15397 * doc/invoke.texi: Document the new flag and -static-libubsan.
15398 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
15399 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
15400 * builtin-attrs.def (ATTR_COLD): Define.
15401 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15402 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
15403 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
15404 * flag-types.h (sanitize_code): New enum.
15405 * opts.c (common_handle_option): Parse command line arguments
15406 of -fsanitize=. Add -fsanitize=unreachable option.
15407 * varasm.c (get_variable_section): Adjust.
15408 (assemble_noswitch_variable): Likewise.
15409 (assemble_variable): Likewise.
15410 (output_constant_def_contents): Likewise.
15411 (categorize_decl_for_section): Likewise.
15412 (place_block_symbol): Likewise.
15413 (output_object_block): Likewise.
15414 * builtins.def: Likewise.
15415 * toplev.c (compile_file): Likewise.
15416 (process_options): Likewise.
15417 * cppbuiltin.c: Likewise.
15418 * tsan.c (tsan_pass): Likewise.
15419 (tsan_gate): Likewise.
15420 (tsan_gate_O0): Likewise.
15421 * cfgexpand.c (partition_stack_vars): Likewise.
15422 (expand_stack_vars): Likewise.
15423 (defer_stack_allocation): Likewise.
15424 (expand_used_vars): Likewise.
15425 * cfgcleanup.c (old_insns_match_p): Likewise.
15426 * asan.c (asan_finish_file): Likewise.
15427 (asan_instrument): Likewise.
15428 (gate_asan): Likewise.
15429 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
15430 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
15431 (asan_global_struct): Use pointer_sized_int_node instead
15432 calling build_nonstandard_integer_type.
15433 (initialize_sanitizer_builtins): Likewise.
15434 (asan_finish_file): Likewise.
15435 * gcc.c: Document %{%:function(args):X}.
15436 (static_spec_functions): Add sanitize.
15437 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
15438 store funcval != NULL there.
15439 (do_spec_1): Adjust handle_spec_function caller.
15440 (handle_braces): Allow %:function(args) as condition.
15441 (sanitize_spec_function): New function.
15442 (ADD_STATIC_LIBUBSAN_LIBS): Define.
15443 (LIBUBSAN_SPEC): Likewise.
15444 (LIBUBSAN_EARLY_SPEC): Likewise.
15445 (SANITIZER_SPEC): Handle libubsan.
15446 (SANITIZER_EARLY_SPEC): Likewise.
15447 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
15448 instead of fsanitize=address.
15449 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
15450 instead of fsanitize=address*.
15451 * builtins.c: Include ubsan.h.
15452 (fold_builtin_0): Instrument __builtin_unreachable.
15453 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
15454 instead of flag_asan.
15455 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
15456 (pointer_sized_int_node): Define.
15457 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
15459 2013-08-30 Mike Stump <mikestump@comcast.net>
15461 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
15464 2013-08-29 Jan Hubicka <jh@suse.cz>
15466 * cgraph.c (cgraph_function_body_availability): Handle weakref
15468 * passes.def: Remove pass_fixup_cfg.
15469 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
15470 track when we need to remove functions.
15471 (gate_ipa_inline): Execute inlining always; add comment why.
15472 (pass_data_ipa_inline): Remove TODO_remove_functions.
15473 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
15474 do not produce summaries.
15475 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
15476 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
15477 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
15478 constant pool and vtable.
15480 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
15482 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
15483 New arm_neon.h's internal macros to specify 64-bit constants.
15484 Avoid using stdint.h's macros.
15486 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
15488 * recog.c (verify_changes): Verify that changes[i].old is non-zero
15489 before applying REG_P.
15491 2013-08-30 Jakub Jelinek <jakub@redhat.com>
15493 PR tree-optimization/58277
15494 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
15495 after seeing too many stmts with vdef in between dombb and current
15496 bb, invalidate everything.
15498 2013-08-30 Richard Biener <rguenther@suse.de>
15500 * fold-const.c (fold_single_bit_test): Fix overflow test.
15502 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
15504 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
15505 and which can live in a register, always retrieve the value on entry.
15506 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
15507 passed by invisible reference specially.
15508 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
15509 (vt_add_function_parameter): Correctly deal with a parameter passed by
15510 invisible reference.
15512 2013-08-30 Jan Hubicka <jh@suse.cz>
15514 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
15516 2013-08-30 Richard Biener <rguenther@suse.de>
15518 PR tree-optimization/58228
15519 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
15520 allow invariant loads in nested loop vectorization.
15522 2013-08-30 Richard Biener <rguenther@suse.de>
15524 PR tree-optimization/58223
15525 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
15526 (has_anti_or_output_dependence): ... this and adjust to also
15527 look for output dependences.
15528 (mark_nodes_having_upstream_mem_writes): Adjust.
15529 (rdg_flag_uses): Likewise.
15531 2013-08-30 Richard Biener <rguenther@suse.de>
15533 PR tree-optimization/58010
15534 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15535 assert that we have a loop-closed PHI.
15537 2013-08-29 Jan Hubicka <jh@suse.cz>
15539 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
15540 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
15541 * lto-section-in.c (lto_free_function_in_decl_state): New function.
15542 (lto_free_function_in_decl_state_for_node): New function.
15544 2013-08-29 Xinliang David Li <davidxl@google.com>
15546 * loop-unroll.c (report_unroll_peel): Minor message change.
15547 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
15548 Emit alignment peeling message with default -fopt-info.
15549 (vect_loop_versioning): Emit loop version info message.
15550 * tree-vectorizer.c (vectorize_loops): Minor message change.
15551 (execute_vect_slp): Ditto.
15553 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
15555 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
15556 of the clone from the DECL_NAME of the original function.
15558 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
15560 * passes.c (register_pass): Add overload.
15561 * tree-pass.h (register_pass): Forward declare it. Add comment.
15563 2013-08-29 Jan Hubicka <jh@suse.cz>
15565 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
15566 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
15567 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
15568 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
15569 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
15570 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
15571 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
15572 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
15574 2013-08-29 Teresa Johnson <tejohnson@google.com>
15576 * dumpfile.c (dump_loc): Output column number.
15577 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
15578 * doc/invoke.texi: Document optall -fopt-info flag.
15579 * profile.c (read_profile_edge_counts): Use new dump framework.
15580 (compute_branch_probabilities): Ditto.
15581 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
15582 when pass not in any opt group.
15583 * pass_manager.h (pass_manager::get_pass_profile): New method.
15584 * value-prof.c (check_counter): Use new dump framework.
15585 (check_ic_target): Ditto.
15586 * coverage.c (get_coverage_counts): Ditto.
15587 (coverage_init): Setup new dump framework.
15589 2013-08-29 Richard Biener <rguenther@suse.de>
15591 PR tree-optimization/58246
15592 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
15593 handle the dominance check inside a basic-block.
15595 2013-08-29 Richard Biener <rguenther@suse.de>
15597 PR middle-end/57287
15598 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
15599 of default defs that appear in abnormal PHI nodes.
15601 2013-08-29 Richard Biener <rguenther@suse.de>
15603 PR tree-optimization/57685
15604 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
15605 single-use operands to avoid exponential complexity.
15607 2013-08-28 Dehao Chen <dehao@google.com>
15609 * ipa-inline.c (edge_badness): Fix integer underflow.
15611 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
15613 * gtm-builtins.def (_ITM_free): Declare leaf.
15615 2013-08-28 Jakub Jelinek <jakub@redhat.com>
15618 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
15619 (*tls_local_dynamic_base_64_largepic): Likewise.
15620 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
15621 Remove predicate from call operand.
15622 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
15623 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
15625 2013-08-28 Jeff Law <law@redhat.com>
15627 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
15628 checks for the number of predecessors and successors allowed.
15629 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
15630 which require copying a joiner block if there is a request which
15631 is a subpath that requires no joiner block copying.
15633 2013-08-28 Jan Hubicka <jh@suse.cz>
15635 * lto-streamer-out.c (DFS_write_tree_body): Drop
15636 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
15637 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
15638 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
15639 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
15640 Do not read DECL_ERROR_ISSUED.
15641 (unpack_ts_decl_with_vis_value_fields): Do not read
15643 (lto_input_ts_binfo_tree_pointers): Do not read
15644 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
15645 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
15646 write DECL_ERROR_ISSUED..
15647 (pack_ts_decl_with_vis_value_fields): Do not write
15649 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
15650 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
15651 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
15652 * tree.h (tree_decl_common): Update comment.
15653 (DECL_ERROR_ISSUED): Remove.
15655 2013-08-28 Jakub Jelinek <jakub@redhat.com>
15657 PR middle-end/58257
15658 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
15660 2013-08-28 Jan Hubicka <jh@suse.cz>
15662 * builtins.def (free): Declare leaf.
15664 2013-08-27 David Malcolm <dmalcolm@redhat.com>
15666 * gdbhooks.py: New.
15667 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
15668 * configure: Regenerate.
15670 2013-08-27 Martin Jambor <mjambor@suse.cz>
15672 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
15673 (ipa_ancestor_jf_data): Likewise.
15674 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
15675 (ipa_get_jf_pass_through_type_preserved): New function.
15676 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
15677 (ipa_get_jf_ancestor_type_preserved): New function.
15678 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
15679 (ipa_get_jf_ancestor_result): Likewise.
15680 (propagate_vals_accross_pass_through): Use
15681 ipa_get_jf_pass_through_result to do all the value mappings.
15682 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
15683 type_preserved flag.
15684 (ipa_set_jf_cst_copy): New function.
15685 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
15686 (ipa_set_jf_arith_pass_through): Likewise.
15687 (ipa_set_ancestor_jf): Likewise.
15688 (compute_complex_assign_jump_func): Set type_preserved instead of
15690 (ipa_compute_jump_functions_for_edge): Likewise.
15691 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
15692 (update_jump_functions_after_inlining): Update type_preserved.
15693 Explicitely create jump functions when combining one with pass_through.
15694 (ipa_write_jump_function): Stream the type_preserved flags.
15695 (ipa_read_jump_function): Likewise.
15697 2013-08-27 Jakub Jelinek <jakub@redhat.com>
15698 Aldy Hernandez <aldyh@redhat.com>
15700 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
15701 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
15702 * function.h (struct function): Add has_force_vect_loops and
15704 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
15705 * gimple.c (gimple_build_omp_critical): Add KIND argument and
15707 * gimple.def: Update CLAUSES comments.
15708 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
15709 (gimple_build_omp_for): Add argument to prototype.
15710 (gimple_omp_for_kind): New.
15711 (gimple_omp_for_set_kind): New.
15712 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
15713 GOVD_DATA_SHARE_CLASS.
15714 (enum omp_region_type): Add ORT_SIMD.
15715 (gimple_add_tmp_var): Handle ORT_SIMD.
15716 (gimplify_var_or_parm_decl): Same.
15717 (is_gimple_stmt): Same.
15718 (omp_firstprivatize_variable): Same.
15719 (omp_add_variable): Only use splay_tree_insert if lookup failed.
15720 (omp_notice_variable): Handle ORT_SIMD.
15721 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
15722 (omp_check_private): Handle ORT_SIMD.
15723 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
15724 OMP_CLAUSE_SAFELEN.
15725 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
15726 Handle OMP_CLAUSE_LASTPRIVATE.
15727 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
15728 OMP_CLAUSE_SAFELEN.
15729 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
15730 (gimplify_expr): Handle OMP_SIMD.
15731 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
15732 (expand_GOMP_SIMD_VF): New.
15733 (expand_GOMP_SIMD_LAST_LANE): New.
15734 * internal-fn.def (GOMP_SIMD_LANE): New.
15735 (GOMP_SIMD_VF): New.
15736 (GOMP_SIMD_LAST_LANE): New.
15737 * omp-low.c: Include target.h.
15738 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
15739 OMP_CLAUSE_SAFELEN.
15740 (check_omp_nesting_restrictions): Same.
15742 (lower_rec_simd_input_clauses): New.
15743 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
15745 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
15746 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
15747 (expand_omp_build_assign): New.
15748 (expand_omp_for_init_counts): New.
15749 (expand_omp_for_init_vars): New.
15750 (extract_omp_for_update_vars): New.
15751 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
15752 and rewrite accordingly.
15753 (expand_omp_simd): New.
15754 (expand_omp_for): Use expand_omp_simd.
15755 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
15756 (lower_omp_for): Do not lower the body.
15757 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
15758 in their own loops.
15759 * tree-flow.h (find_omp_clause): Remove prototype.
15760 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
15761 forcing vectorization of the loop, or if flag_tree_vectorize.
15762 (gate_tree_if_conversion): Similarly.
15763 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
15764 gimple_build_omp_for.
15765 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
15766 * tree-parloops (create_parallel_loop): Pass kind argument to
15767 gimple_build_omp_for.
15768 * tree-pretty-print.c (dump_omp_clause): Add cases for
15769 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
15770 OMP_CLAUSE__SIMDUID_.
15771 (dump_generic_node): Handle OMP_SIMD.
15772 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
15773 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
15774 unroll OMP_SIMD loops here.
15775 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
15776 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
15778 (vect_analyze_data_refs): Handle simd loops.
15779 * tree-vect-loop.c (vectorizable_live_operation): Handle
15781 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
15782 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
15783 (vectorizable_load): Same.
15784 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
15785 (struct simduid_to_vf): New.
15786 (simduid_to_vf::hash): New.
15787 (simduid_to-vf::equal): New.
15788 (struct simd_array_to_simduid): New.
15789 (simd_array_to_simduid::hash): New.
15790 (simd_array_to_simduid::equal): New.
15791 (adjust_simduid_builtins): New.
15792 (struct note_simd_array_uses_struct): New.
15793 (note_simd_array_uses_cb): New.
15794 (note_simd_array_uses): New.
15795 (vectorize_loops): Handle simd hints and adjust simd builtins
15797 * tree-vectorizer.h (struct _stmt_vec_info): Add
15798 simd_lane_access_p field.
15799 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
15800 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
15801 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
15802 (omp_clause_code_name): Same.
15803 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
15804 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
15805 * tree.def (OMP_SIMD): New entry.
15806 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
15807 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
15808 (OMP_CLAUSE_DECL): Adjust range for new clauses.
15809 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
15810 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
15811 (OMP_CLAUSE_LINEAR_STEP): New.
15812 (OMP_CLAUSE_SAFELEN_EXPR): New.
15813 (OMP_CLAUSE__SIMDUID__DECL): New.
15814 (find_omp_clause): New prototype.
15816 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
15818 * config/i386/driver-i386.c (host_detect_local_cpu): Update
15819 Haswell processor detection.
15821 2013-08-27 Christian Widmer <shadow@umbrox.de>
15824 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
15825 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
15826 AVX2 capable processors.
15828 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
15830 * config/aarch64/arm_neon.h: Replace all inline asm implementations
15831 of vget_low_* with implementations in terms of other intrinsics.
15833 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
15835 PR middle-end/57219
15836 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
15837 values to -1, 0 and 1.
15839 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
15841 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
15842 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
15843 (<optab><mode>3_insn): Remove.
15844 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
15845 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15846 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15847 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
15848 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
15849 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
15850 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
15851 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
15852 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
15853 (ror<mode>3_insn): Likewise.
15854 * config/aarch64/predicates.md (aarch64_simd_register): New.
15856 2013-08-27 Richard Biener <rguenther@suse.de>
15858 PR tree-optimization/57521
15859 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
15860 one edge is non-critical.
15861 (find_phi_replacement_condition): Make sure to use a non-critical
15862 edge. Cleanup and remove old bug workarounds.
15863 (bb_postdominates_preds): Remove.
15864 (if_convertible_loop_p_1): Do not compute post-dominators.
15865 (combine_blocks): Do not free post-dominators.
15866 (main_tree_if_conversion): Likewise.
15867 (pass_data_if_conversion): Add TODO_verify_ssa.
15869 2013-08-27 DJ Delorie <dj@redhat.com>
15871 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
15873 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
15875 * function.c (assign_parm_find_data_types): Set passed_mode and
15876 nominal_mode to the TYPE_MODE of nominal_type for the built
15877 pointer type in case of the struct-pass-by-reference.
15879 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
15881 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
15882 (UINT16_TYPE): Change default to "unsigned int".
15884 * config/avr/avr.opt (mfract-convert-truncate): New option.
15885 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
15886 is set, round negative fractional integers according to n1169
15887 when converting to integer types.
15889 2013-08-26 Jan Hubicka <jh@suse.cz>
15891 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
15892 methods can not be called indirectly when their address is not taken.
15894 2013-08-26 Jan Hubicka <jh@suse.cz>
15896 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
15899 2013-08-26 Jan Hubicka <jh@suse.cz>
15901 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
15904 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
15906 * reload.c (find_valid_class): Allow classes that do not include
15907 FIRST_PSEUDO_REGISTER - 1.
15909 2013-08-26 Jan Hubicka <jh@suse.cz>
15911 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
15912 fix edge count/frequency when speculation failed; fix type check
15913 for the direct call.
15915 2013-08-26 Jan Hubicka <jh@suse.cz>
15917 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
15919 2013-08-26 Jan Hubicka <jh@suse.cz>
15921 * ipa-inline-transform.c (inline_transform): Be ready for basic block
15922 to be changed by edge redirection.
15924 2013-08-26 Jan Hubicka <jh@suse.cz>
15926 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
15927 formating; add sanity check.
15928 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
15929 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
15930 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
15931 (resolve_noninline_speculation): Update callee keys, too.
15933 2013-08-26 Jan Hubicka <jh@suse.cz>
15935 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
15936 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
15938 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
15940 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
15943 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
15945 * config/i386/i386.c (ix86_debug_options): Remove prototype.
15946 (x86_64_elf_select_section): Ditto.
15947 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
15949 (ix86_pass_by_reference): Ditto.
15950 (output_set_got): Ditto.
15951 (ix86_unary_operator_ok): Ditto.
15952 (ix86_expand_builtin): Ditto.
15954 2013-08-23 Jan Hubicka <jh@suse.cz>
15956 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
15958 2013-08-23 Jan Hubicka <jh@suse.cz>
15960 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
15961 (tree_decl_with_vis): Add FINAL field.
15963 2013-08-23 Jeff Law <law@redhat.com>
15965 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
15966 the debugging dump when the expression is fully redundant.
15968 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
15970 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
15971 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
15972 * pretty-print.c (pp_formatted_text_data): Likewise.
15973 (pp_write_text_to_stream): Likewise.
15974 (pp_write_text_as_dot_label_to_stream): Likewise.
15975 (pp_append_r): Likewise.
15976 (pp_format): Likewise.
15977 (pp_flush): Likewise.
15978 (pp_clear_output_area): Likewise.
15979 (pp_append_text): Likewise.
15980 (pp_formatted_text): Likewise.
15981 (pp_remaining_character_count_for_line): Likewise.
15982 (pp_newline): Likewise.
15983 (pp_character): Likewise.
15984 (output_buffer::~output_buffer): Define.
15985 (pretty_printer::~pretty_printer): Destruct output buffer.
15986 * pretty-print.h (output_buffer::~output_buffer): Declare.
15987 (pretty_printer::~pretty_printer): Declare virtual.
15989 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
15992 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
15993 HOST_WIDE_INT_M1U): New macros.
15994 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
15995 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
15996 unsigned -1 for lshift.
15997 * cse.c (cse_insn): Likewise.
15998 * double-int.c (rshift_double, lshift_double): Likewise.
15999 * builtins.c (fold_builtin_bitop): Likewise.
16000 * combine.c (force_to_mode): Likewise.
16001 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
16002 * simplify-rtx.c (simplify_const_unary_operation,
16003 simplify_const_binary_operation): Likewise.
16004 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
16005 check_va_list_escapes): Likewise.
16006 * rtlanal.c (nonzero_bits1): Likewise.
16007 * expmed.c (expand_smod_pow2): Likewise.
16008 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
16010 2013-08-23 Jan Hubicka <jh@suse.cz>
16012 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
16013 as having address taken.
16015 2013-08-23 Jan Hubicka <jh@suse.cz>
16017 * ipa-utils.h (method_class_type): Declare.
16018 * ipa-devirt.c (method_class_type): Export.
16020 * cgraphunit.c (analyze_functions): Do basic devirtualization;
16021 do not walk base classes of anonymous types.
16023 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
16025 PR rtl-optimization/58220
16026 PR regression/58221
16027 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
16028 handle SEQUENCE insns properly.
16030 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
16032 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
16034 (pp_newline_and_indent): Likewise.
16035 (pp_separate_with): Likewise.
16036 * pretty-print.c (pp_newline_and_flush): Define.
16037 (pp_newline_and_indent): Likewise.
16038 (pp_separate_with): Likewise.
16040 2013-08-23 Jakub Jelinek <jakub@redhat.com>
16043 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
16044 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
16046 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
16048 * config/i386/predicates.md (ext_sse_reg_operand): New.
16049 * config/i386/i386.md (*movti_internal): Use
16050 predicate to determine if EVEX is needed.
16051 (*movsi_internal): Ditto.
16052 (*movdf_internal): Ditto.
16053 (*movsf_internal): Ditto.
16054 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
16056 2013-08-23 Jakub Jelinek <jakub@redhat.com>
16058 PR tree-optimization/58209
16059 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
16060 (find_tail_calls): Give up for pointer result types if m is non-NULL.
16061 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
16062 emit POINTER_PLUS_EXPR.
16063 (create_tailcall_accumulator): For pointer result type accumulate in
16066 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
16068 * configure.ac: Add backslashes missing from the last change.
16069 * configure: Regenerate.
16071 2013-08-22 Jan Hubicka <jh@susue.cz>
16073 * ipa.c (function_and_variable_visibility): First remember function
16074 was global and then make it local.
16076 2013-08-22 Julian Brown <julian@codesourcery.com>
16078 * configure.ac: Add aarch64 to list of arches which use "nop" in
16080 * configure: Regenerate.
16082 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16084 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
16085 gnu_libc_has_function.
16086 * config/s390/tpf.h: Likewise.
16088 2013-08-22 Jan Hubicka <jh@susue.cz>
16090 * timevar.c (validate_phases): Add cast.
16092 2013-08-22 Jan Hubicka <jh@susue.cz>
16094 * timevar.c (validate_phases): Use size_t for memory.
16095 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
16097 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
16099 * pretty-print.h (output_buffer::output_buffer): Declare.
16100 (pretty_printer::pretty_printer): Likewise.
16101 (pp_construct): Remove.
16102 * pretty-print.c (output_buffer::output_buffer): Define.
16103 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
16104 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
16105 (print_gimple_expr): Likewise.
16106 (print_gimple_seq): Likewise.
16107 (gimple_dump_bb): Likewise.
16108 * sched-vis.c (dump_value_slim): Likewise.
16109 (dump_insn_slim): Likewise.
16110 (dump_rtl_slim): Likewise.
16111 (str_pattern_slim): Likewise.
16112 * tree-mudflap.c (mf_varname_tree): Likewise.
16113 * graph.c (print_graph_cfg): Likewise.
16114 (start_graph_dump): Likewise.
16115 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
16117 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
16118 pretty printer initialization.
16119 * coretypes.h (diagnostic_context): Remove superflous type alias
16121 (pretty_printer): Likewise. Declare directly as a class.
16122 (pretty_print_info): Remove declaration as class.
16123 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
16124 and pp_clear_output_area.
16125 (asan_add_global): Likewise.
16127 2013-08-22 Jan Hubicka <jh@suse.cz>
16129 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
16130 * ipa-utils.h (update_type_inheritance_graph): Declare.
16131 (possible_polymorphic_call_target_p): Declare.
16132 (possible_polymorphic_call_target_p): New.
16133 * ipa-devirt.c: Update toplevel comments.
16134 (cached_polymorphic_call_targets): Move up.
16135 (odr_type_d): Move ID down.
16136 (polymorphic_type_binfo_p): Update comment.
16137 (odr_hasher::remove): Likewise;
16138 (get_odr_type): Set anonymous_namespace.
16139 (dump_odr_type): Dump it.
16140 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
16141 (maybe_record_node): Record node in cached_polymorphic_call_targets.
16142 (record_binfo): Add comment.
16143 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
16145 (devirt_node_removal_hook): Do not iCE when cache is freed.
16146 (possible_polymorphic_call_target_p): New predicate.
16147 (update_type_inheritance_graph): New function.
16149 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
16150 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16151 Sergey Lega <sergey.s.lega@intel.com>
16152 Anna Tikhonova <anna.tikhonova@intel.com>
16153 Ilya Tocar <ilya.tocar@intel.com>
16154 Andrey Turetskiy <andrey.turetskiy@intel.com>
16155 Ilya Verbin <ilya.verbin@intel.com>
16156 Kirill Yukhin <kirill.yukhin@intel.com>
16157 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16159 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
16160 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
16161 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
16162 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
16163 (OPTION_MASK_ISA_AVX2_UNSET): Update.
16164 (OPTION_MASK_ISA_AVX512F_UNSET): New.
16165 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
16166 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
16167 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
16168 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
16169 OPT_mavx512pf, OPT_mavx512er cases.
16170 * config/i386/constraints.md (v): New constraint.
16171 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
16172 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
16173 (bit_AVX512CD): New.
16174 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16175 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
16176 * config/i386/i386-c.c (ix86_target_macros_internal):
16177 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
16179 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
16180 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
16181 * config/i386/i386.c (regclass_map, dbx_register_map)
16182 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
16183 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
16184 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
16185 -mavx512pf options.
16186 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
16187 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
16188 -mavx512pf options. Fix formatting.
16189 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
16190 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
16191 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
16192 -mavx512cd, -mavx512pf options.
16193 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
16194 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
16195 (ix86_preferred_output_reload_class): Replace SSE_REGS with
16197 (ix86_hard_regno_mode_ok): Support 512-bit registers.
16198 (ix86_set_reg_reg_cost): Ditto.
16199 (x86_order_regs_for_local_alloc): Ditto.
16200 (MAX_VECT_LEN): Extend to 64-byte.
16201 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
16202 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
16203 (TARGET_AVX512ER, TARGET_AVX512CD): New.
16204 (BIGGEST_ALIGNMENT): Extend to 512-bits.
16205 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
16206 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
16207 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
16208 (SSE_REG_MODE_P): Support new modes.
16209 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
16210 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
16211 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
16212 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
16213 (REG_CLASS_CONTENTS): Add new registers.
16214 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
16215 (EXT_REX_SSE_REGNO_P): New.
16216 (HI_REGISTER_NAMES): Add new registers.
16217 * config/i386/i386.md: Define constants for new registers.
16218 (mode): Add new 512-bit modes.
16219 (prefix): Support evex prefix.
16220 (isa): Support avx512f, noavx512f, fma_avx512f.
16221 (ssemodesuffix): Add new 512-bit modes.
16223 (*movxi_internal_avx512f): Ditto.
16224 (*movdi_internal): Replace constraint "x" with the new constraint "v".
16226 (*movsi_internal): Likewise.
16227 (*movdf_internal): Likewise.
16228 (*movsf_internal): Likewise.
16229 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
16230 (<code><mode>3): Likewise.
16231 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
16233 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
16234 with the new constraint "v".
16235 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
16237 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
16238 with the new constraint "v".
16239 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
16240 (<sse2>_storedqu<avxsizesuffix>): Likewise.
16241 (*<plusminus_insn><mode>3): Likewise.
16242 (<sse>_vm<plusminus_insn><mode>3): Likewise.
16243 (*mul<mode>3): Likewise.
16244 (<sse>_vmmul<mode>3): Likewise.
16245 (<sse>_div<mode>3): Likewise.
16246 (<sse>_vmdiv<mode>3): Likewise.
16247 (<sse>_sqrt<mode>2): Likewise.
16248 (<sse>_vmsqrt<mode>2): Likewise.
16249 (*<code><mode>3_finite): Likewise.
16250 (*<code><mode>3) <smaxmin>: Likewise.
16251 (<sse>_vm<code><mode>3): Likewise.
16252 (*<code><mode>3) <any_logic>: Likewise.
16253 (*fma_fmadd_<mode>): Likewise.
16254 (*fma_fmsub_<mode>): Likewise.
16255 (*fma_fnmadd_<mode>): Likewise.
16256 (*fma_fnmsub_<mode>): Likewise.
16257 (*fma_fmaddsub_<mode>): Likewise.
16258 (*fma_fmsubadd_<mode>): Likewise.
16259 (*fmai_fmadd_<mode>): Likewise.
16260 (*fmai_fmsub_<mode>): Likewise.
16261 (*fmai_fnmadd_<mode>): Likewise.
16262 (*fmai_fnmsub_<mode>): Likewise.
16263 (sse_cvtsi2ss): Likewise.
16264 (sse_cvtsi2ssq): Likewise.
16265 (sse_cvtss2si): Likewise.
16266 (sse_cvtss2si_2): Likewise.
16267 (sse_cvtss2siq): Likewise.
16268 (sse_cvtss2siq_2): Likewise.
16269 (sse_cvttss2si): Likewise.
16270 (sse_cvtss2siq_2): Likewise.
16271 (float<sseintvecmodelower><mode>2): Likewise.
16272 (sse2_cvtsd2si_2): Likewise.
16273 (sse2_cvtsd2siq_2): Likewise.
16274 (*<plusminus_insn><mode>3): Likewise.
16275 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
16276 (*<sse4_1_avx2>_mul<mode>3): Likewise.
16277 (ashr<mode>3): Likewise.
16278 (<shift_insn><mode>3): Likewise.
16279 (avx2_<code><mode>3): Likewise.
16280 (*avx2_<code><mode>3): Likewise.
16281 (*andnot<mode>3): Likewise.
16282 (*<code><mode>3) <any_logic>: Likewise.
16283 (abs<mode>2): Likewise.
16284 (avx2_permvar<mode>): Likewise.
16285 (avx2_perm<mode>_1): Likewise.
16286 (*avx_vpermilp<mode>): Likewise.
16287 (avx_vpermilvar<mode>3): Likewise.
16288 (avx2_ashrv<mode>): Likewise.
16289 (avx2_<shift_insn>v<mode>): Likewise.
16290 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
16292 * doc/rtl.texi: Document XImode.
16294 2013-08-21 Jeff Law <law@redhat.com>
16296 * tree-flow.h (register_jump_thread): Pass vector of edges
16297 instead of each important edge.
16298 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
16299 thread path into a vector and pass that to register_jump_thread.
16300 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
16301 passed in edge vector to the current 3-edge form.
16304 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
16306 * dce.c (fini_dce): Call df_analyze again just in case
16307 delete_unmarked_insns removed anything.
16309 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
16311 * reload.h (struct reg_equivs): Rename to ..
16312 (struct reg_equivs_s): .. this.
16314 2013-08-20 Martin Liska <marxin.liska@gmail.com>
16316 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
16318 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16320 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
16322 2013-08-21 Jeff Law <law@redhat.com>
16324 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
16325 simplify assignments too. If the RHS collapses to a singleton
16326 range, then return the value for the range.
16328 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
16330 * config/i386/sse.md (V16): Rename to...
16332 (mov<mode>): Update iterator name.
16333 (*mov<mode>_internal): Ditto.
16334 (push<mode>1): Ditto.
16335 (movmisalign<mode>): Ditto.
16337 2013-08-20 Jan Hubicka <jh@suse.cz>
16340 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
16341 entry for direct edges.
16342 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
16344 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16346 Revert my last two changes, r201865 and r201864:
16349 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16351 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16352 instances can own GC refs.
16354 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16355 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16356 (gcc::context::gt_pch_nx): Likewise.
16357 (gcc::context::gt_pch_nx): Likewise.
16358 * ggc.h (gt_ggc_mx <T>): New.
16359 (gt_pch_nx_with_op <T>): New.
16360 (gt_pch_nx <T>): New.
16361 * passes.c (opt_pass::gt_ggc_mx): New.
16362 (opt_pass::gt_pch_nx): New.
16363 (opt_pass::gt_pch_nx_with_op): New.
16364 (pass_manager::gt_ggc_mx): New.
16365 (pass_manager::gt_pch_nx): New.
16366 (pass_manager::gt_pch_nx_with_op): New.
16367 (pass_manager::operator new): Use
16368 ggc_internal_cleared_alloc_stat rather than xcalloc.
16369 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16370 (pass_manager::gt_ggc_mx): New.
16371 (pass_manager::gt_pch_nx): New.
16372 (pass_manager::gt_pch_nx_with_op): New.
16373 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16374 (opt_pass::operator new): New.
16375 (opt_pass::gt_ggc_mx): New.
16376 (opt_pass::gt_pch_nx): New.
16377 (opt_pass::gt_pch_nx_with_op): New.
16380 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16382 * Makefile.in (GTFILES): Add context.h.
16383 * context.c (gcc::context::operator new): New.
16384 (gcc::context::gt_ggc_mx): New.
16385 (gcc::context::gt_pch_nx): New.
16386 (gcc::context::gt_pch_nx): New.
16387 * context.h (gcc::context): Add GTY((user)) marking.
16388 (gcc::context::operator new): New.
16389 (gcc::context::gt_ggc_mx): New.
16390 (gcc::context::gt_pch_nx): New.
16391 (gcc::context::gt_pch_nx): New.
16392 (g): Add GTY marking.
16393 (gt_ggc_mx (gcc::context *)): New.
16394 (gt_pch_nx (gcc::context *)): New.
16395 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16396 void *cookie)): New.
16397 * gengtype.c (open_base_files) <ifiles>: Add context.h.
16399 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
16401 * dce.c (fini_dce): Call df_analyze again just in case
16402 delete_unmarked_insns removed anything.
16404 2013-08-20 Teresa Johnson <tejohnson@google.com>
16406 PR rtl-optimizations/57451
16407 * final.c (reemit_insn_block_notes): Prevent lexical blocks
16408 from crossing split section boundaries.
16410 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
16412 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
16413 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
16414 with MULTLIB_DEFAULTS.
16416 2013-08-20 Nick Clifton <nickc@redhat.com>
16418 * target.def (narrow_volatile_bitfield): Note that the default
16419 value is false, not !TARGET_STRICT_ALIGN.
16420 * doc/tm.texi: Regenerate.
16422 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
16424 Fix LIB_SPEC for systems without libpthread.
16426 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
16427 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
16429 * config/i386/linux-common.h: Likewise.
16430 * config/mips/linux-common.h: Likewise.
16432 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16434 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
16437 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16439 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
16440 instances can own GC refs.
16442 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
16443 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
16444 (gcc::context::gt_pch_nx): Likewise.
16445 (gcc::context::gt_pch_nx): Likewise.
16446 * ggc.h (gt_ggc_mx <T>): New.
16447 (gt_pch_nx_with_op <T>): New.
16448 (gt_pch_nx <T>): New.
16449 * passes.c (opt_pass::gt_ggc_mx): New.
16450 (opt_pass::gt_pch_nx): New.
16451 (opt_pass::gt_pch_nx_with_op): New.
16452 (pass_manager::gt_ggc_mx): New.
16453 (pass_manager::gt_pch_nx): New.
16454 (pass_manager::gt_pch_nx_with_op): New.
16455 (pass_manager::operator new): Use
16456 ggc_internal_cleared_alloc_stat rather than xcalloc.
16457 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
16458 (pass_manager::gt_ggc_mx): New.
16459 (pass_manager::gt_pch_nx): New.
16460 (pass_manager::gt_pch_nx_with_op): New.
16461 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
16462 (opt_pass::operator new): New.
16463 (opt_pass::gt_ggc_mx): New.
16464 (opt_pass::gt_pch_nx): New.
16465 (opt_pass::gt_pch_nx_with_op): New.
16467 2013-08-20 David Malcolm <dmalcolm@redhat.com>
16469 * Makefile.in (GTFILES): Add context.h.
16470 * context.c (gcc::context::operator new): New.
16471 (gcc::context::gt_ggc_mx): New.
16472 (gcc::context::gt_pch_nx): New.
16473 (gcc::context::gt_pch_nx): New.
16474 * context.h (gcc::context): Add GTY((user)) marking.
16475 (gcc::context::operator new): New.
16476 (gcc::context::gt_ggc_mx): New.
16477 (gcc::context::gt_pch_nx): New.
16478 (gcc::context::gt_pch_nx): New.
16479 (g): Add GTY marking.
16480 (gt_ggc_mx (gcc::context *)): New.
16481 (gt_pch_nx (gcc::context *)): New.
16482 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
16483 void *cookie)): New.
16484 * gengtype.c (open_base_files) <ifiles>: Add context.h.
16486 2013-08-20 Alan Modra <amodra@gmail.com>
16489 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
16490 (rs6000_emit_epilogue): Likewise.
16492 2013-08-19 Dehao Chen <dehao@google.com>
16494 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
16496 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
16497 Jakub Jelinek <jakub@redhat.com>
16499 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
16500 (BUILT_IN_FABSD64): Likewise.
16501 (BUILT_IN_FABSD128): Likewise.
16502 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
16503 (fold_builtin_1): Likewise.
16504 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
16505 destination and source operands.
16506 (*abstd2_fpr): Likewise.
16507 (*nabstd2_fpr): Likewise.
16509 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
16511 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
16514 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
16516 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
16519 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
16521 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
16522 * builtins.c (default_libc_has_function): New.
16523 (gnu_libc_has_function): Ditto.
16524 (no_c99_libc_has_function): Ditto.
16525 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
16526 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
16527 (fold_builtin_sincos): Likewise.
16528 (fold_builtin_cexp): Likewise.
16529 * builtins.def (DEF_C94_BUILTIN): Likewise.
16530 (DEF_C99_BUILTIN): Likewise.
16531 (DEF_C99_C90RES_BUILTIN): Likewise.
16532 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
16533 definitions to using this define.
16534 * config/darwin-protos.h (darwin_libc_has_function): New.
16535 * config/darwin.c (darwin_libc_has_function): Ditto.
16536 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
16537 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
16538 * config/darwin.h: Ditto.
16539 * config/elfos.h: Ditto.
16540 * config/freebsd.h: Ditto.
16541 * config/i386/cygming.h: Ditto.
16542 * config/i386/djgpp.h: Ditto.
16543 * config/i386/i386-interix.h: Ditto.
16544 * config/microblaze/microblaze.h: Ditto.
16545 * config/mmix/mmix.h: Ditto.
16546 * config/gnu-user.h: Ditto.
16547 * config/ia64/hpux.h: Ditto.
16548 * config/pa/pa-hpux.h: Ditto.
16549 * config/pdp11/pdp11.h: Ditto.
16550 * config/picochip/picochip.h: Ditto.
16551 * config/linux.h: Ditto.
16552 * config/netbsd.h: Ditto.
16553 * config/openbsd.h: Ditto.
16554 * config/rs6000/aix43.h: Ditto.
16555 * config/rs6000/aix51.h: Ditto.
16556 * config/rs6000/aix52.h: Ditto.
16557 * config/rs6000/aix53.h: Ditto.
16558 * config/rs6000/aix61.h: Ditto.
16559 * config/rs6000/darwin.h: Ditto.
16560 * config/rs6000/linux.h: Ditto.
16561 * config/rs6000/linux64.h: Ditto.
16562 * config/s390/tpf.h: Ditto.
16563 * config/sol2-10.h: Ditto.
16564 * config/sol2.h: Ditto.
16565 * config/vms/vms.h: Ditto.
16566 * config/vxworks.h: Ditto.
16567 * config/linux-android.c (linux_android_libc_has_function):
16568 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
16569 * config/linux-protos.h (linux_android_libc_has_function):
16571 * config/i386/i386.c (ix86_libc_has_function): New.
16572 * config/i386/i386-protos.h
16573 (ix86_libc_has_function): New declaration.
16574 * config/i386/i386.md
16575 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
16576 ("isinf<mode>2): Likewise.
16577 * convert.c (convert_to_integer): Using new target hook
16578 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
16579 TARGET_C99_FUNCTIONS.
16580 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
16581 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
16582 * coretypes.h (function_class): New enum for different
16583 classes of functions.
16584 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
16585 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
16586 (TARGET_HAS_SINCOS): Likewise.
16587 (TARGET_LIBC_HAS_FUNCTION): New.
16588 * doc/tm.texi: Regenerated.
16589 * targhooks.h (default_libc_has_function): New declaration.
16590 (no_c99_libc_has_function): Ditto.
16591 (gnu_libc_has_function): Ditto.
16592 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
16593 and TARGET_HAS_SINCOS.
16595 2013-08-18 Jan Hubicka <jh@suse.cz>
16597 * Makeifle-in (ipa-devirt.o): New.
16598 (GTFILES): Add ipa-utils.h and ipa-devirt.c
16599 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
16600 (analyze_functions): Look into possible targets of polymorphic call.
16601 * dumpfile.c (dump_files): Add type-inheritance dump.
16602 * dumpfile.h (TDI_inheritance): New.
16603 * ipa-devirt.c: New file.
16604 * ipa-utils.h (odr_type_d): Forward declare.
16605 (odr_type): New type.
16606 (build_type_inheritance_graph): Declare.
16607 (possible_polymorphic_call_targets): Declare and introduce inline
16608 variant when only edge is pased.
16609 (dump_possible_polymorphic_call_targets): Likewise.
16610 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
16611 * tree.c (type_in_anonymous_namespace_p): Break out from ...
16612 (types_same_for_odr): ... here.
16613 * tree.h (type_in_anonymous_namespace_p): Declare.
16615 2013-08-18 Jakub Jelinek <jakub@redhat.com>
16617 PR tree-optimization/58006
16618 * tree-parloops.c (take_address_of): Don't ICE if get_name
16620 (eliminate_local_variables_stmt): Remove clobber stmts.
16622 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
16624 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
16625 error message is issued for an alias to undefined symbol.
16627 2013-08-18 Jan Hubicka <jh@suse.cz>
16629 * cgraph.c (cgraph_create_indirect_edge): Discover
16630 polymorphic calls and record basic info into indirect_info.
16631 * gimple-fold.c (gimple_fold_call): When doing BINFO based
16632 devirtualization, ignore objc function calls.
16633 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
16634 call with no parm index info.
16635 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
16636 * tree.c (virtual_method_call_p): New function.
16637 * tree.h (virtual_method_call_p): Declare.
16639 2013-08-16 Jan Hubicka <jh@suse.cz>
16641 PR middle-end/58179
16642 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
16644 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
16646 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
16649 2013-08-16 David Malcolm <dmalcolm@redhat.com>
16651 * gengtype.c (type_for_name): Add special-case support for
16652 locating types within the "gcc::" namespace.
16653 (open_base_files): Emit a "using namespace gcc" directive.
16655 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
16658 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
16659 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
16661 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
16662 array instead of each individual operand as a separate argument.
16663 (emit_fusion_gpr_load): Likewise.
16664 (expand_fusion_gpr_load): Add new function declaration.
16666 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
16667 signature to have the operands passed as an array, instead of as
16668 separate arguments. Allow ZERO_EXTEND to be in the memory
16669 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
16670 depend on the register live/dead flags when peepholes are run.
16671 (expand_fusion_gpr_load): New function to be called from the
16672 peephole2 pass, to change the register that addis sets to be the
16674 (emit_fusion_gpr_load): Change the calling signature to have the
16675 operands passed as an array, instead of as separate arguments.
16676 Allow ZERO_EXTEND to be in the memory address, and also
16677 SIGN_EXTEND if -mpower8-fusion-sign.
16679 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
16680 unspec enumeration.
16681 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
16682 adjust the register addis loads up in the peephole2 pass. Do not
16683 depend on the register live/dead state when the peephole pass is done.
16685 2013-08-16 David Malcolm <dmalcolm@redhat.com>
16687 * gengtype.c (create_user_defined_type): Ensure that the kind
16688 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
16689 declaration is seen before the GTY((user)) marking.
16691 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16694 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
16696 2013-08-16 Jan Hubicka <jh@suse.cz>
16698 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
16699 arugment expected_type.
16700 (gimple_fold_call): Use it.
16701 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
16702 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
16703 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
16704 (try_make_edge_direct_virtual_call): Likewise.
16705 * tree.c (obj_type_ref_class): New.
16706 * tree.h (obj_type_ref_class): Use it.
16708 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
16710 * sched-vis.c (rtl_slim_pp_initialized): Remove.
16711 (rtl_slim_pp): Likewise.
16712 (init_rtl_slim_pretty_print): Likewise.
16713 (dump_value_slim): Don't call it. Use local pretty printer.
16714 (dump_insn_slim): Likewise.
16715 (dump_rtl_slim): Likewise.
16716 (str_pattern_slim): Likewise.
16717 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
16720 2013-08-16 Jakub Jelinek <jakub@redhat.com>
16722 PR tree-optimization/58164
16723 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
16724 walk gimple_goto_dest of GIMPLE_GOTO.
16726 PR tree-optimization/58165
16727 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
16728 bi_call must be the last stmt in a bb, don't split_block, instead
16729 use fallthru edge from it and give up if there is none.
16730 Release conds vector when returning early.
16732 2013-08-14 Xinliang David Li <davidxl@google.com>
16734 * config/i386/i386.c (ix86_option_override_internal):
16735 Remove unused variable and field.
16737 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16740 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
16741 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
16742 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
16743 and Linux, correct BLKmode alignment when 128-bit alignment is
16744 required and compatibility flag is not set.
16745 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
16746 for zero-size arguments when compatibility flag is not set.
16748 2013-08-14 Jakub Jelinek <jakub@redhat.com>
16750 PR tree-optimization/58145
16751 * tree-sra.c (build_ref_for_offset): If prev_base has
16752 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
16754 2013-08-14 Xinliang David Li <davidxl@google.com>
16756 * config/i386/i386.c (ix86_option_override_internal):
16757 Fix uninitialized variable error.
16759 2013-08-14 Xinliang David Li <davidxl@google.com>
16761 * config/i386/i386.opt: Define two new options.
16762 * config/i386/x86-tune.def: Add arch selector field in macros.
16763 * config/i386/i386.h: Adjust macro definition.
16764 * config/i386/i386.c (ix86_option_override_internal):
16766 (parse_mtune_ctrl_str): New function.
16767 (set_ix86_tune_features): New function.
16768 (ix86_function_specific_restore): Call the new helper function.
16770 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
16772 PR rtl-optimization/57662
16773 * sel-sched.c (code_motion_process_successors): When the current insn
16774 is removed after the recursive traversal, break from the loop.
16775 Add comments and debug printouts.
16777 2013-08-14 Jakub Jelinek <jakub@redhat.com>
16778 Alexandre Oliva <aoliva@redhat.com>
16781 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
16782 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
16783 there also UNSPEC_PLTOFF.
16785 2013-08-14 Marek Polacek <polacek@redhat.com>
16787 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
16788 NUM_CONDITIONS bit positions.
16790 2013-08-13 Cary Coutant <ccoutant@google.com>
16792 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
16793 (attr_checksum): Hash vector contents instead of pointer.
16794 (attr_checksum_ordered): Likewise.
16796 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
16798 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
16799 when Pmode != word_mode. Add length_address attribute.
16800 (sse3_monitor_<mode>): Merge from sse3_monitor and
16801 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
16802 Pmode != word_mode. Update insn length attribute.
16803 * config/i386/i386.c (ix86_option_override_internal): Update
16804 ix86_gen_monitor selection for merged sse3_monitor insn.
16806 2013-08-13 Julian Brown <julian@codesourcery.com>
16808 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
16809 perform invalid legitimization on greater-than-word-size modes for
16810 TARGET_E500_DOUBLE.
16812 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
16814 * ira.c (setup_class_translate_array): Use aclass instead of cl
16815 for classes not fully covered by allocno classes.
16817 2013-08-13 Jakub Jelinek <jakub@redhat.com>
16819 PR tree-optimization/57661
16820 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
16821 * tree-inline.c (tree_function_versioning): Initialize it.
16822 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
16823 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
16824 that is not being copied.
16827 * asan.c (instrument_strlen_call): Fix typo in comment.
16828 Use char * type even for the lhs of POINTER_PLUS_EXPR.
16830 2013-08-13 Steve Ellcey <sellcey@mips.com>
16832 * config/mips/mips.md (prefetch): Use lw instead of ld on
16833 loongson in 32bit mode.
16835 2013-08-13 Nick Clifton <nickc@redhat.com>
16837 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
16839 2013-08-13 Jan Hubicka <jh@suse.cz>
16841 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
16842 introduced edge; fix typo in sanity check.
16843 (cgraph_resolve_speculation): Export; improve diagnostic.
16844 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
16845 speculation at type mismatch.
16846 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
16847 (cgraph_resolve_speculation): Declare.
16848 (symtab_can_be_discarded): New function.
16849 * value-prof.c (gimple_ic_transform): Remove actual transform code.
16850 * ipa-inline-transform.c (speculation_removed): New global var.
16851 (clone_inlined_nodes): See if speculation can be removed.
16852 (inline_call): If speculations was removed, we growths may not match.
16853 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
16854 (speculation_useful_p): New function.
16855 (resolve_noninline_speculation): New function.
16856 (inline_small_functions): Resolve useless speculations.
16857 * ipa-inline.h (speculation_useful_p): Declare
16858 * ipa.c (can_replace_by_local_alias): Simplify.
16859 (ipa_profile): Produce speculative calls in non-lto, too;
16860 add simple cost model; produce local aliases.
16862 2013-08-13 David Malcolm <dmalcolm@redhat.com>
16864 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
16867 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
16869 * config/i386/i386.c (ix86_function_versions): Use error + inform.
16871 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
16873 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
16874 iterator instead of X87MODEF.
16876 2013-08-12 Perez Read <netfirewall@gmail.com>
16879 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
16880 operand 0 for intel asm alternative.
16881 (*movabs<mode>_2): Ditto for operand 1.
16883 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
16885 * config/aarch64/arm_none.h
16886 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
16888 2013-08-12 Nick Clifton <nickc@redhat.com>
16890 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
16892 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
16894 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
16895 expand for QI/HImode operand to produce more effictive code for
16896 unsigned char(short) --> float(double) conversion.
16898 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
16900 * doc/invoke.texi: Mention that -ftls-model does not force the final
16903 2013-08-12 Marek Polacek <polacek@redhat.com>
16904 Marc Glisse <marc.glisse@inria.fr>
16906 PR tree-optimization/57980
16907 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
16908 when creating -1 constant.
16910 2013-08-10 Jan Hubicka <jh@suse.cz>
16912 Workaround binutils PR14342.
16913 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
16914 (gimple_init_edge_profiler): Likewise.
16915 (gimple_gen_ic_func_profiler): Likewise.
16917 2013-08-09 Jan Hubicka <jh@suse.cz>
16919 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
16921 2013-08-09 Xinliang David Li <davidxl@google.com>
16923 * config/i386/stringop.def: New file.
16924 * config/i386/stringop.opt: New file.
16925 * config/i386/i386-opts.h: Include stringopt.def.
16926 * config/i386/i386.opt: Include stringopt.opt.
16927 * config/i386/i386.c (ix86_option_override_internal):
16928 Override default size based stringop inline strategies with options.
16929 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
16932 2013-08-09 Jan Hubicka <jh@suse.cz>
16934 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
16936 2013-08-09 Jan Hubicka <jh@suse.cz>
16938 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
16940 (dump_cgraph_node): Dump profile-id.
16941 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
16942 and common_target_probability.
16943 * lto-cgraph.c (lto_output_edge): Stream common targets.
16944 (lto_output_node): Stream profile ids.
16945 (input_node): Stream profile ids.
16946 (input_edge): Stream common targets.
16947 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
16948 * ipa.c: Include value-prof.h
16949 (ipa_profile_generate_summary): Turn indirect call statement histograms
16950 into common targets.
16951 (ipa_profile): Turn common targets into speculative edges.
16953 2013-08-09 Jan Hubicka <jh@suse.cz>
16955 * cgraph.h (cgraph_node): Add profile_id.
16956 * value-prof.c (cgraph_node_map): Turn into pointer_map.
16957 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
16958 (del_node_map): Update.
16959 (find_func_by_funcdef_no): Replace by ...
16960 (find_func_by_profile_id): ... this one.
16961 (gimple_ic_transform): Do not remove useful histograms when
16962 speculation is not done; dump info when indirect call removal
16964 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
16965 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
16966 (__gcov_indirect_call_profiler_v2): .. this one.
16967 * profile.h (init_node_map): Update.
16968 * coverage.c (coverage_compute_profile_id): New function.
16969 * coverage.h (coverage_compute_profile_id): Declare.
16970 * tree-profile.c (init_ic_make_global_vars): Make
16971 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
16972 (gimple_init_edge_profiler): Update prototype of
16973 __gcov_indirect_call_profiler.
16974 (gimple_gen_ic_func_profiler): Simplify.
16975 (tree_profiling): Use init_node_map
16977 2013-08-09 Jan Hubicka <jh@suse.cz>
16979 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
16980 non-speculative refs.
16981 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
16982 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
16983 (cgraph_set_call_stmt): Likewise.
16984 (cgraph_create_edge_1): Fix release checking compilatoin;
16985 clear lto_stmt_uid.
16986 (cgraph_free_edge): Free indirect info.
16987 (cgraph_turn_edge_to_speculative): New function.
16988 (cgraph_speculative_call_info): New function.
16989 (cgraph_make_edge_direct): Return direct edge; handle speculation.
16990 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
16991 (dump_cgraph_node): Dump speculation.
16992 (verify_edge_count_and_frequency): Accept speculative edges.
16993 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
16994 (verify_cgraph_node): Handle speculation.
16995 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
16996 (cgraph_set_call_stmt): Update prototype.
16997 (cgraph_make_edge_direct): Update prototype.
16998 (cgraph_speculative_call_info): Declare.
16999 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
17000 to change; update call of ipa_find_references.
17001 * ipa-ref.c (ipa_record_reference): Fix return value; clear
17002 lto_stmt_uid and speculative flags.
17003 (ipa_dump_references): Dump speculation.
17004 (ipa_clone_references): Clone speculative flag.
17005 (ipa_clone_referring): Likewise.
17006 (ipa_clone_ref): New function.
17007 (ipa_find_reference): Look into lto_stmt_uids
17008 (ipa_clear_stmts_in_references): Do not clear speculative calls.
17009 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
17010 (ipa_find_reference): Update declaration.
17011 (ipa_clone_ref): Declare.
17012 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
17013 stream speculative flag.
17014 (lto_output_ref): Stream statements uids and speculation.
17015 (input_ref): Likewise.
17016 (input_edge): Stream speuclation.
17017 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
17018 (cgraph_set_call_stmt_including_clones): Handle speculation.
17019 * ipa-inline.c (heap_edge_removal_hook): New function.
17020 (inline_small_functions): Register it.
17021 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
17022 also initialize refs.
17023 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
17025 (try_make_edge_direct_simple_call): Likewise.
17026 (try_make_edge_direct_simple_call): Likewise.
17027 (update_indirect_edges_after_inlining): Likewise.
17028 (remove_described_reference): Look proper lto_stmt_uid.
17029 (propagate_controlled_uses): Likewise.
17030 (propagate_controlled_uses): Liekwise.
17031 * tree-inline.c (copy_bb): Copy speculative edges.
17032 (redirect_all_calls): New function.
17033 (copy_cfg_body): Do redirection after loop info is updated.
17034 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
17036 2013-08-09 Jan Hubicka <jh@suse.cz>
17038 * lto-streamer-out.c (output_function): Renumber PHIs.
17039 * lto-streamer-in.c (input_function): Likewise.
17041 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
17043 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
17044 (get_lane_unsigned): Likewise.
17045 (dup_lane_scalar): Likewise.
17046 (get_lane): enable for VALL.
17047 * config/aarch64/aarch64-simd.md
17048 (aarch64_dup_lane_scalar<mode>): Remove.
17049 (aarch64_get_lane_signed<mode>): Likewise.
17050 (aarch64_get_lane_unsigned<mode>): Likewise.
17051 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
17052 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
17053 (aarch64_get_lane<mode>): Enable for all vector modes.
17054 (aarch64_get_lanedi): Remove misleading constraints.
17055 * config/aarch64/arm_neon.h
17056 (__aarch64_vget_lane_any): Define.
17057 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
17058 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
17059 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
17060 * config/aarch64/iterators.md (VDQQH): New.
17061 (VDQQHS): Likewise.
17062 (vwcore): Likewise.
17064 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
17066 * configure.ac: Add GAS check for LEON instructions on SPARC.
17067 * configure: Regenerate.
17068 * config.in: Likewise.
17069 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
17071 * config/sparc/sparc.opt (LEON, LEON3): New masks.
17072 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
17074 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
17075 (AS_LEON_FLAG): New macro.
17076 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
17077 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
17078 Deal with LEON and LEON3 for the memory model.
17079 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
17080 (atomic_compare_and_swap<mode>_1): Likewise.
17081 (*atomic_compare_and_swap<mode>_1): Likewise.
17083 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17085 * config/arm/neon.md (vcond): Fix floating-point vector
17086 comparisons against 0.
17088 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
17090 * lra-constraints.c (emit_spill_move): Remove assert.
17091 (process_alt_operands): Add more debugging
17092 output. Increase reject for spilling into memory. Decrease
17093 reject for reloading scratch.
17094 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
17096 2013-08-08 Steve Ellcey <sellcey@mips.com>
17098 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
17099 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
17100 micromips incompatible. Add nan2008.
17101 (MULTILIB_DIRNAMES): Add nan2008.
17102 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
17103 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
17104 and micromips incompatible. Add nan2008.
17105 (MULTILIB_DIRNAMES): Add nan2008.
17106 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
17108 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
17110 PR rtl-optimization/58079
17111 * combine.c (combine_simplify_rtx): Avoid using SUBST if
17112 simplify_comparison has widened a comparison with an integer.
17114 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17116 * config/arm/neon.md (movmisalign<mode>): Disable when we
17117 don't allow unaligned accesses.
17118 (*movmisalign<mode>_neon_store): Likewise.
17119 (*movmisalign<mode>_neon_load): Likewise.
17120 (*movmisalign<mode>_neon_store): Likewise.
17121 (*movmisalign<mode>_neon_load): Likewise.
17123 2013-08-08 Jan Hubicka <jh@suse.cz>
17125 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
17126 (make_pass_rebuild_cgraph_edges): Also clear references.
17127 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
17128 * ipa-inline-transform.c (inline_transform): Remove all references
17130 * cgraphunit.c (expand_function): Remove all references after
17132 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
17133 (ipa_find_reference): Rewrite to iterator.
17134 (remove_stmt_references): Likewise.
17135 (ipa_clear_stmts_in_references): New function.
17136 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
17137 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
17139 * ipa-split.c (split_function): Remove references in split function.
17141 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
17144 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
17145 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
17147 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
17150 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
17151 suggested mode for the assignment isn't compatible with the
17152 registers required.
17154 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
17157 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
17159 2013-08-07 Xinliang David Li <davidxl@google.com>
17161 * config/i386/i386.opt: New option -mtune-ctrl=.
17162 * config/i386/x86-tune.def: New file.
17163 * config/i386/i386.h: include x86-tune.def.
17164 * config/i386/i386.c (ix86_option_override_internal):
17165 Parsing -mtune-ctrl= option and set tune features.
17167 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
17170 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
17171 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
17174 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
17176 * rtl.h (update_alignments): Declare.
17177 * final.c (grow_label_align): New function extracted from...
17178 (shorten_branches): ...here. Call it.
17179 (update_alignments): New function.
17180 * reorg.c (sibling_labels): New variable.
17181 (get_label_before): Add SIBLING parameter. If it is non-zero, push
17182 the new label along with it onto the sibling_labels vector.
17183 (fill_simple_delay_slots): Adjust call to get_label_before.
17184 (fill_slots_from_thread): Likewise.
17185 (relax_delay_slots): Likewise.
17186 (make_return_insns): Likewise.
17187 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
17189 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
17191 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
17192 document its semantics.
17193 (diagnostic_report_diagnostic): Adjust accordingly.
17195 2013-08-07 David Malcolm <dmalcolm@redhat.com>
17197 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
17198 (sparc_option_override): ...and port to new C++ pass API.
17199 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
17201 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
17203 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
17205 2013-08-06 Caroline Tice <cmtice@google.com>
17207 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
17208 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
17209 * tree-pass.h: Add pass_vtable_verify.
17210 * varasm.c (assemble_variable): Add code to properly set the comdat
17211 section and name for the .vtable_map_vars section.
17212 (assemble_vtyv_preinit_initializer): New function.
17213 (default_sectin_type_flags): Make sure .vtable_map_vars section has
17215 * output.h: Add function decl for assemble_vtv_preinit_initializer.
17216 * vtable-verify.c: New file.
17217 * vtable-verify.h: New file.
17218 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
17219 initialiation levels.
17220 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
17221 * passes.def: Insert pass_vtable_verify.
17222 * aclocal.m4: Reorder includes.
17223 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
17224 -fvtv-counts options.
17225 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
17226 as appropriate, if -fvtable-verify=... is used.
17227 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
17228 -fvtable-verify=... is used.
17229 * Makefile.in (OBJS): Add vtable-verify.o to list.
17230 (vtable-verify.o): Add new build rule.
17231 (GTFILES): Add vtable-verify.c to list.
17232 * common.opt (fvtable-verify=): New flag.
17233 (vtv_priority): Values for fvtable-verify= flag.
17234 (fvtv-counts): New flag.
17235 (fvtv-debug): New flag.
17236 * tree.h (save_vtable_map_decl): New extern function decl.
17238 2013-08-07 David Malcolm <dmalcolm@redhat.com>
17240 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
17241 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
17242 (pass_data_rl78_devirt): ...new pass_data instance and...
17243 (make_pass_rl78_devirt): ...new function.
17244 (rl78_asm_file_start): Port pass registration to new C++ API.
17246 2013-08-07 David Malcolm <dmalcolm@redhat.com>
17248 * coretypes.h (rtl_opt_pass): Add.
17249 (gcc::context): Add.
17250 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
17251 (epiphany_init): Port to new C++ pass API.
17252 (epiphany_optimize_mode_switching): Likewise.
17253 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
17254 (pass_manager::get_pass_mode_switching): New.
17255 (pass_manager::get_pass_peephole2): New.
17256 * mode-switching.c (pass_mode_switching): Add clone method.
17257 * recog.c (pass_peephole2): Add clone method.
17258 (pass_split_all_insns): Add clone method.
17260 2013-08-06 David Malcolm <dmalcolm@redhat.com>
17262 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
17263 (mips_option_override): ...here, porting to new C++ API for passes.
17265 2013-08-06 Jan Hubicka <jh@suse.cz>
17267 * cgraph.c (cgraph_get_body): New function based on lto.c
17269 * cgraph.h (cgraph_get_body): Declare.
17270 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
17272 * cgraphunit.c (expand_function): Get body prior expanding.
17273 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
17274 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
17276 * passes.c (do_per_function_toporder): Get body.
17277 * tree-inline.c (expand_call_inline): Get body prior inlining it.
17278 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
17280 2013-08-06 Martin Jambor <mjambor@suse.cz>
17283 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
17284 is not re-finalized. Rename second parameter to no_collect.
17286 2013-08-06 Martin Jambor <mjambor@suse.cz>
17288 PR middle-end/58041
17289 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
17290 MEM_REF has proper alignment information.
17292 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
17295 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
17297 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
17298 rtx (*) (rtx, ...) with insn_gen_fn.
17299 * genoutput.c (output_insn_data): Cast gen_? function pointers to
17300 insn_gen_fn::stored_funcptr. Add initializer braces.
17302 2013-08-05 David Malcolm <dmalcolm@redhat.com>
17304 Rewrite how instances of passes are cloned to remove assumptions
17305 about their sizes (thus allowing pass subclasses to have
17306 additional data fields, albeit non-GC-managed ones at this point).
17308 * passes.c (make_pass_instance): Now that passes have clone
17309 methods, rewrite this function to eliminate XNEW and memcpy
17310 calls that used hardcoded sizes. Since this function no longer
17311 creates pass instances, rename it to...
17312 (add_pass_instance): ...this. Document the old way that passes were
17313 numbered and flagged, and rework this function to continue using it.
17314 (next_pass_1): Add an initial_pass argument for use by
17316 (position_pass): When adding multiple instances of a pass, use
17317 the pass's clone method, rather than relying on the XNEW/memcpy
17318 within the former make_pass_instance (now add_pass_instance).
17319 (pass_manager::pass_manager): When invoking next_pass_1, also supply
17320 the initial instance of the current pass within the pass manager.
17322 2013-08-05 David Malcolm <dmalcolm@redhat.com>
17324 This is the automated part of the conversion of passes from C
17325 structs to C++ classes.
17327 Patch autogenerated by refactor_passes.py from
17328 https://github.com/davidmalcolm/gcc-refactoring-scripts
17329 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
17331 * asan.c (pass_asan): Convert from a global struct to a subclass of
17332 gimple_opt_pass along with...
17333 (pass_data_asan): ...new pass_data instance and...
17334 (make_pass_asan): ...new function.
17335 (pass_asan_O0): Convert from a global struct to a subclass of
17336 gimple_opt_pass along with...
17337 (pass_data_asan_O0): ...new pass_data instance and...
17338 (make_pass_asan_O0): ...new function.
17339 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
17340 subclass of rtl_opt_pass along with...
17341 (pass_data_inc_dec): ...new pass_data instance and...
17342 (make_pass_inc_dec): ...new function.
17343 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
17344 a subclass of rtl_opt_pass along with...
17345 (pass_data_reorder_blocks): ...new pass_data instance and...
17346 (make_pass_reorder_blocks): ...new function.
17347 (pass_duplicate_computed_gotos): Convert from a global struct to a
17348 subclass of rtl_opt_pass along with...
17349 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
17350 (make_pass_duplicate_computed_gotos): ...new function.
17351 (pass_partition_blocks): Convert from a global struct to a subclass of
17352 rtl_opt_pass along with...
17353 (pass_data_partition_blocks): ...new pass_data instance and...
17354 (make_pass_partition_blocks): ...new function.
17355 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
17356 struct to a subclass of rtl_opt_pass along with...
17357 (pass_data_branch_target_load_optimize1): ...new pass_data instance
17359 (make_pass_branch_target_load_optimize1): ...new function.
17360 (pass_branch_target_load_optimize2): Convert from a global struct to a
17361 subclass of rtl_opt_pass along with...
17362 (pass_data_branch_target_load_optimize2): ...new pass_data instance
17364 (make_pass_branch_target_load_optimize2): ...new function.
17365 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
17366 of rtl_opt_pass along with...
17367 (pass_data_jump): ...new pass_data instance and...
17368 (make_pass_jump): ...new function.
17369 (pass_jump2): Convert from a global struct to a subclass of
17370 rtl_opt_pass along with...
17371 (pass_data_jump2): ...new pass_data instance and...
17372 (make_pass_jump2): ...new function.
17373 * cfgexpand.c (pass_expand): Convert from a global struct to a
17374 subclass of rtl_opt_pass along with...
17375 (pass_data_expand): ...new pass_data instance and...
17376 (make_pass_expand): ...new function.
17377 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
17378 of rtl_opt_pass along with...
17379 (pass_data_free_cfg): ...new pass_data instance and...
17380 (make_pass_free_cfg): ...new function.
17381 (pass_into_cfg_layout_mode): Convert from a global struct to a
17382 subclass of rtl_opt_pass along with...
17383 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
17384 (make_pass_into_cfg_layout_mode): ...new function.
17385 (pass_outof_cfg_layout_mode): Convert from a global struct to a
17386 subclass of rtl_opt_pass along with...
17387 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
17388 (make_pass_outof_cfg_layout_mode): ...new function.
17389 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
17390 struct to a subclass of gimple_opt_pass along with...
17391 (pass_data_build_cgraph_edges): ...new pass_data instance and...
17392 (make_pass_build_cgraph_edges): ...new function.
17393 (pass_rebuild_cgraph_edges): Convert from a global struct to a
17394 subclass of gimple_opt_pass along with...
17395 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
17396 (make_pass_rebuild_cgraph_edges): ...new function.
17397 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
17398 subclass of gimple_opt_pass along with...
17399 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
17401 (make_pass_remove_cgraph_callee_edges): ...new function.
17402 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
17403 struct to a subclass of rtl_opt_pass along with...
17404 (pass_data_stack_adjustments): ...new pass_data instance and...
17405 (make_pass_stack_adjustments): ...new function.
17406 * combine.c (pass_combine): Convert from a global struct to a subclass
17407 of rtl_opt_pass along with...
17408 (pass_data_combine): ...new pass_data instance and...
17409 (make_pass_combine): ...new function.
17410 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
17411 global struct to a subclass of rtl_opt_pass along with...
17412 (pass_data_compare_elim_after_reload): ...new pass_data instance
17414 (make_pass_compare_elim_after_reload): ...new function.
17415 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
17416 of rtl_opt_pass along with...
17417 (pass_data_rtl_cprop): ...new pass_data instance and...
17418 (make_pass_rtl_cprop): ...new function.
17419 * cse.c (pass_cse): Convert from a global struct to a subclass of
17420 rtl_opt_pass along with...
17421 (pass_data_cse): ...new pass_data instance and...
17422 (make_pass_cse): ...new function.
17423 (pass_cse2): Convert from a global struct to a subclass of
17424 rtl_opt_pass along with...
17425 (pass_data_cse2): ...new pass_data instance and...
17426 (make_pass_cse2): ...new function.
17427 (pass_cse_after_global_opts): Convert from a global struct to a
17428 subclass of rtl_opt_pass along with...
17429 (pass_data_cse_after_global_opts): ...new pass_data instance and...
17430 (make_pass_cse_after_global_opts): ...new function.
17431 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
17432 of rtl_opt_pass along with...
17433 (pass_data_ud_rtl_dce): ...new pass_data instance and...
17434 (make_pass_ud_rtl_dce): ...new function.
17435 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
17436 rtl_opt_pass along with...
17437 (pass_data_fast_rtl_dce): ...new pass_data instance and...
17438 (make_pass_fast_rtl_dce): ...new function.
17439 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
17440 a subclass of rtl_opt_pass along with...
17441 (pass_data_df_initialize_opt): ...new pass_data instance and...
17442 (make_pass_df_initialize_opt): ...new function.
17443 (pass_df_initialize_no_opt): Convert from a global struct to a
17444 subclass of rtl_opt_pass along with...
17445 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
17446 (make_pass_df_initialize_no_opt): ...new function.
17447 (pass_df_finish): Convert from a global struct to a subclass of
17448 rtl_opt_pass along with...
17449 (pass_data_df_finish): ...new pass_data instance and...
17450 (make_pass_df_finish): ...new function.
17451 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
17452 rtl_opt_pass along with...
17453 (pass_data_rtl_dse1): ...new pass_data instance and...
17454 (make_pass_rtl_dse1): ...new function.
17455 (pass_rtl_dse2): Convert from a global struct to a subclass of
17456 rtl_opt_pass along with...
17457 (pass_data_rtl_dse2): ...new pass_data instance and...
17458 (make_pass_rtl_dse2): ...new function.
17459 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
17460 subclass of rtl_opt_pass along with...
17461 (pass_data_dwarf2_frame): ...new pass_data instance and...
17462 (make_pass_dwarf2_frame): ...new function.
17463 * except.c (pass_set_nothrow_function_flags): Convert from a global
17464 struct to a subclass of rtl_opt_pass along with...
17465 (pass_data_set_nothrow_function_flags): ...new pass_data instance
17467 (make_pass_set_nothrow_function_flags): ...new function.
17468 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
17469 subclass of rtl_opt_pass along with...
17470 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
17472 (make_pass_convert_to_eh_region_ranges): ...new function.
17473 * final.c (pass_compute_alignments): Convert from a global struct to a
17474 subclass of rtl_opt_pass along with...
17475 (pass_data_compute_alignments): ...new pass_data instance and...
17476 (make_pass_compute_alignments): ...new function.
17477 (pass_final): Convert from a global struct to a subclass of
17478 rtl_opt_pass along with...
17479 (pass_data_final): ...new pass_data instance and...
17480 (make_pass_final): ...new function.
17481 (pass_shorten_branches): Convert from a global struct to a subclass of
17482 rtl_opt_pass along with...
17483 (pass_data_shorten_branches): ...new pass_data instance and...
17484 (make_pass_shorten_branches): ...new function.
17485 (pass_clean_state): Convert from a global struct to a subclass of
17486 rtl_opt_pass along with...
17487 (pass_data_clean_state): ...new pass_data instance and...
17488 (make_pass_clean_state): ...new function.
17489 * function.c (pass_instantiate_virtual_regs): Convert from a global
17490 struct to a subclass of rtl_opt_pass along with...
17491 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
17492 (make_pass_instantiate_virtual_regs): ...new function.
17493 (pass_leaf_regs): Convert from a global struct to a subclass of
17494 rtl_opt_pass along with...
17495 (pass_data_leaf_regs): ...new pass_data instance and...
17496 (make_pass_leaf_regs): ...new function.
17497 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
17498 subclass of rtl_opt_pass along with...
17499 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
17501 (make_pass_thread_prologue_and_epilogue): ...new function.
17502 (pass_match_asm_constraints): Convert from a global struct to a
17503 subclass of rtl_opt_pass along with...
17504 (pass_data_match_asm_constraints): ...new pass_data instance and...
17505 (make_pass_match_asm_constraints): ...new function.
17506 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
17507 subclass of rtl_opt_pass along with...
17508 (pass_data_rtl_fwprop): ...new pass_data instance and...
17509 (make_pass_rtl_fwprop): ...new function.
17510 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
17511 rtl_opt_pass along with...
17512 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
17513 (make_pass_rtl_fwprop_addr): ...new function.
17514 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
17515 rtl_opt_pass along with...
17516 (pass_data_rtl_pre): ...new pass_data instance and...
17517 (make_pass_rtl_pre): ...new function.
17518 (pass_rtl_hoist): Convert from a global struct to a subclass of
17519 rtl_opt_pass along with...
17520 (pass_data_rtl_hoist): ...new pass_data instance and...
17521 (make_pass_rtl_hoist): ...new function.
17522 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
17523 subclass of gimple_opt_pass along with...
17524 (pass_data_lower_cf): ...new pass_data instance and...
17525 (make_pass_lower_cf): ...new function.
17526 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
17527 from a global struct to a subclass of gimple_opt_pass along with...
17528 (pass_data_strength_reduction): ...new pass_data instance and...
17529 (make_pass_strength_reduction): ...new function.
17530 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
17531 of rtl_opt_pass along with...
17532 (pass_data_rtl_ifcvt): ...new pass_data instance and...
17533 (make_pass_rtl_ifcvt): ...new function.
17534 (pass_if_after_combine): Convert from a global struct to a subclass of
17535 rtl_opt_pass along with...
17536 (pass_data_if_after_combine): ...new pass_data instance and...
17537 (make_pass_if_after_combine): ...new function.
17538 (pass_if_after_reload): Convert from a global struct to a subclass of
17539 rtl_opt_pass along with...
17540 (pass_data_if_after_reload): ...new pass_data instance and...
17541 (make_pass_if_after_reload): ...new function.
17542 * init-regs.c (pass_initialize_regs): Convert from a global struct to
17543 a subclass of rtl_opt_pass along with...
17544 (pass_data_initialize_regs): ...new pass_data instance and...
17545 (make_pass_initialize_regs): ...new function.
17546 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
17547 of ipa_opt_pass_d along with...
17548 (pass_data_ipa_cp): ...new pass_data instance and...
17549 (make_pass_ipa_cp): ...new function.
17550 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
17551 global struct to a subclass of gimple_opt_pass along with...
17552 (pass_data_inline_parameters): ...new pass_data instance and...
17553 (make_pass_inline_parameters): ...new function.
17554 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
17555 subclass of gimple_opt_pass along with...
17556 (pass_data_early_inline): ...new pass_data instance and...
17557 (make_pass_early_inline): ...new function.
17558 (pass_ipa_inline): Convert from a global struct to a subclass of
17559 ipa_opt_pass_d along with...
17560 (pass_data_ipa_inline): ...new pass_data instance and...
17561 (make_pass_ipa_inline): ...new function.
17562 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
17563 struct to a subclass of gimple_opt_pass along with...
17564 (pass_data_local_pure_const): ...new pass_data instance and...
17565 (make_pass_local_pure_const): ...new function.
17566 (pass_ipa_pure_const): Convert from a global struct to a subclass of
17567 ipa_opt_pass_d along with...
17568 (pass_data_ipa_pure_const): ...new pass_data instance and...
17569 (make_pass_ipa_pure_const): ...new function.
17570 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
17571 to a subclass of ipa_opt_pass_d along with...
17572 (pass_data_ipa_reference): ...new pass_data instance and...
17573 (make_pass_ipa_reference): ...new function.
17574 * ipa-split.c (pass_split_functions): Convert from a global struct to
17575 a subclass of gimple_opt_pass along with...
17576 (pass_data_split_functions): ...new pass_data instance and...
17577 (make_pass_split_functions): ...new function.
17578 (pass_feedback_split_functions): Convert from a global struct to a
17579 subclass of gimple_opt_pass along with...
17580 (pass_data_feedback_split_functions): ...new pass_data instance and...
17581 (make_pass_feedback_split_functions): ...new function.
17582 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
17583 global struct to a subclass of simple_ipa_opt_pass along with...
17584 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
17586 (make_pass_ipa_function_and_variable_visibility): ...new function.
17587 (pass_ipa_free_inline_summary): Convert from a global struct to a
17588 subclass of simple_ipa_opt_pass along with...
17589 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
17590 (make_pass_ipa_free_inline_summary): ...new function.
17591 (pass_ipa_whole_program_visibility): Convert from a global struct to a
17592 subclass of ipa_opt_pass_d along with...
17593 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
17595 (make_pass_ipa_whole_program_visibility): ...new function.
17596 (pass_ipa_profile): Convert from a global struct to a subclass of
17597 ipa_opt_pass_d along with...
17598 (pass_data_ipa_profile): ...new pass_data instance and...
17599 (make_pass_ipa_profile): ...new function.
17600 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
17601 ipa_opt_pass_d along with...
17602 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
17603 (make_pass_ipa_cdtor_merge): ...new function.
17604 * ira.c (pass_ira): Convert from a global struct to a subclass of
17605 rtl_opt_pass along with...
17606 (pass_data_ira): ...new pass_data instance and...
17607 (make_pass_ira): ...new function.
17608 (pass_reload): Convert from a global struct to a subclass of
17609 rtl_opt_pass along with...
17610 (pass_data_reload): ...new pass_data instance and...
17611 (make_pass_reload): ...new function.
17612 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
17613 subclass of rtl_opt_pass along with...
17614 (pass_data_cleanup_barriers): ...new pass_data instance and...
17615 (make_pass_cleanup_barriers): ...new function.
17616 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
17617 of rtl_opt_pass along with...
17618 (pass_data_loop2): ...new pass_data instance and...
17619 (make_pass_loop2): ...new function.
17620 (pass_rtl_loop_init): Convert from a global struct to a subclass of
17621 rtl_opt_pass along with...
17622 (pass_data_rtl_loop_init): ...new pass_data instance and...
17623 (make_pass_rtl_loop_init): ...new function.
17624 (pass_rtl_loop_done): Convert from a global struct to a subclass of
17625 rtl_opt_pass along with...
17626 (pass_data_rtl_loop_done): ...new pass_data instance and...
17627 (make_pass_rtl_loop_done): ...new function.
17628 (pass_rtl_move_loop_invariants): Convert from a global struct to a
17629 subclass of rtl_opt_pass along with...
17630 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
17631 (make_pass_rtl_move_loop_invariants): ...new function.
17632 (pass_rtl_unswitch): Convert from a global struct to a subclass of
17633 rtl_opt_pass along with...
17634 (pass_data_rtl_unswitch): ...new pass_data instance and...
17635 (make_pass_rtl_unswitch): ...new function.
17636 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
17637 subclass of rtl_opt_pass along with...
17638 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
17640 (make_pass_rtl_unroll_and_peel_loops): ...new function.
17641 (pass_rtl_doloop): Convert from a global struct to a subclass of
17642 rtl_opt_pass along with...
17643 (pass_data_rtl_doloop): ...new pass_data instance and...
17644 (make_pass_rtl_doloop): ...new function.
17645 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
17646 a subclass of rtl_opt_pass along with...
17647 (pass_data_lower_subreg): ...new pass_data instance and...
17648 (make_pass_lower_subreg): ...new function.
17649 (pass_lower_subreg2): Convert from a global struct to a subclass of
17650 rtl_opt_pass along with...
17651 (pass_data_lower_subreg2): ...new pass_data instance and...
17652 (make_pass_lower_subreg2): ...new function.
17653 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
17654 struct to a subclass of ipa_opt_pass_d along with...
17655 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
17656 (make_pass_ipa_lto_gimple_out): ...new function.
17657 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
17658 of ipa_opt_pass_d along with...
17659 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
17660 (make_pass_ipa_lto_finish_out): ...new function.
17661 * mode-switching.c (pass_mode_switching): Convert from a global struct
17662 to a subclass of rtl_opt_pass along with...
17663 (pass_data_mode_switching): ...new pass_data instance and...
17664 (make_pass_mode_switching): ...new function.
17665 * modulo-sched.c (pass_sms): Convert from a global struct to a
17666 subclass of rtl_opt_pass along with...
17667 (pass_data_sms): ...new pass_data instance and...
17668 (make_pass_sms): ...new function.
17669 * omp-low.c (pass_expand_omp): Convert from a global struct to a
17670 subclass of gimple_opt_pass along with...
17671 (pass_data_expand_omp): ...new pass_data instance and...
17672 (make_pass_expand_omp): ...new function.
17673 (pass_lower_omp): Convert from a global struct to a subclass of
17674 gimple_opt_pass along with...
17675 (pass_data_lower_omp): ...new pass_data instance and...
17676 (make_pass_lower_omp): ...new function.
17677 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
17678 of gimple_opt_pass along with...
17679 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
17680 (make_pass_diagnose_omp_blocks): ...new function.
17681 * passes.c (pass_early_local_passes): Convert from a global struct to
17682 a subclass of simple_ipa_opt_pass along with...
17683 (pass_data_early_local_passes): ...new pass_data instance and...
17684 (make_pass_early_local_passes): ...new function.
17685 (pass_all_early_optimizations): Convert from a global struct to a
17686 subclass of gimple_opt_pass along with...
17687 (pass_data_all_early_optimizations): ...new pass_data instance and...
17688 (make_pass_all_early_optimizations): ...new function.
17689 (pass_all_optimizations): Convert from a global struct to a subclass
17690 of gimple_opt_pass along with...
17691 (pass_data_all_optimizations): ...new pass_data instance and...
17692 (make_pass_all_optimizations): ...new function.
17693 (pass_all_optimizations_g): Convert from a global struct to a subclass
17694 of gimple_opt_pass along with...
17695 (pass_data_all_optimizations_g): ...new pass_data instance and...
17696 (make_pass_all_optimizations_g): ...new function.
17697 (pass_rest_of_compilation): Convert from a global struct to a subclass
17698 of rtl_opt_pass along with...
17699 (pass_data_rest_of_compilation): ...new pass_data instance and...
17700 (make_pass_rest_of_compilation): ...new function.
17701 (pass_postreload): Convert from a global struct to a subclass of
17702 rtl_opt_pass along with...
17703 (pass_data_postreload): ...new pass_data instance and...
17704 (make_pass_postreload): ...new function.
17705 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
17706 subclass of rtl_opt_pass along with...
17707 (pass_data_gcse2): ...new pass_data instance and...
17708 (make_pass_gcse2): ...new function.
17709 * postreload.c (pass_postreload_cse): Convert from a global struct to
17710 a subclass of rtl_opt_pass along with...
17711 (pass_data_postreload_cse): ...new pass_data instance and...
17712 (make_pass_postreload_cse): ...new function.
17713 * predict.c (pass_profile): Convert from a global struct to a subclass
17714 of gimple_opt_pass along with...
17715 (pass_data_profile): ...new pass_data instance and...
17716 (make_pass_profile): ...new function.
17717 (pass_strip_predict_hints): Convert from a global struct to a subclass
17718 of gimple_opt_pass along with...
17719 (pass_data_strip_predict_hints): ...new pass_data instance and...
17720 (make_pass_strip_predict_hints): ...new function.
17721 * recog.c (pass_peephole2): Convert from a global struct to a subclass
17722 of rtl_opt_pass along with...
17723 (pass_data_peephole2): ...new pass_data instance and...
17724 (make_pass_peephole2): ...new function.
17725 (pass_split_all_insns): Convert from a global struct to a subclass of
17726 rtl_opt_pass along with...
17727 (pass_data_split_all_insns): ...new pass_data instance and...
17728 (make_pass_split_all_insns): ...new function.
17729 (pass_split_after_reload): Convert from a global struct to a subclass
17730 of rtl_opt_pass along with...
17731 (pass_data_split_after_reload): ...new pass_data instance and...
17732 (make_pass_split_after_reload): ...new function.
17733 (pass_split_before_regstack): Convert from a global struct to a
17734 subclass of rtl_opt_pass along with...
17735 (pass_data_split_before_regstack): ...new pass_data instance and...
17736 (make_pass_split_before_regstack): ...new function.
17737 (pass_split_before_sched2): Convert from a global struct to a subclass
17738 of rtl_opt_pass along with...
17739 (pass_data_split_before_sched2): ...new pass_data instance and...
17740 (make_pass_split_before_sched2): ...new function.
17741 (pass_split_for_shorten_branches): Convert from a global struct to a
17742 subclass of rtl_opt_pass along with...
17743 (pass_data_split_for_shorten_branches): ...new pass_data instance
17745 (make_pass_split_for_shorten_branches): ...new function.
17746 * ree.c (pass_ree): Convert from a global struct to a subclass of
17747 rtl_opt_pass along with...
17748 (pass_data_ree): ...new pass_data instance and...
17749 (make_pass_ree): ...new function.
17750 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
17751 subclass of rtl_opt_pass along with...
17752 (pass_data_stack_regs): ...new pass_data instance and...
17753 (make_pass_stack_regs): ...new function.
17754 (pass_stack_regs_run): Convert from a global struct to a subclass of
17755 rtl_opt_pass along with...
17756 (pass_data_stack_regs_run): ...new pass_data instance and...
17757 (make_pass_stack_regs_run): ...new function.
17758 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
17759 subclass of rtl_opt_pass along with...
17760 (pass_data_cprop_hardreg): ...new pass_data instance and...
17761 (make_pass_cprop_hardreg): ...new function.
17762 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
17763 subclass of rtl_opt_pass along with...
17764 (pass_data_reginfo_init): ...new pass_data instance and...
17765 (make_pass_reginfo_init): ...new function.
17766 * regmove.c (pass_regmove): Convert from a global struct to a subclass
17767 of rtl_opt_pass along with...
17768 (pass_data_regmove): ...new pass_data instance and...
17769 (make_pass_regmove): ...new function.
17770 * regrename.c (pass_regrename): Convert from a global struct to a
17771 subclass of rtl_opt_pass along with...
17772 (pass_data_regrename): ...new pass_data instance and...
17773 (make_pass_regrename): ...new function.
17774 * reorg.c (pass_delay_slots): Convert from a global struct to a
17775 subclass of rtl_opt_pass along with...
17776 (pass_data_delay_slots): ...new pass_data instance and...
17777 (make_pass_delay_slots): ...new function.
17778 (pass_machine_reorg): Convert from a global struct to a subclass of
17779 rtl_opt_pass along with...
17780 (pass_data_machine_reorg): ...new pass_data instance and...
17781 (make_pass_machine_reorg): ...new function.
17782 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
17783 of rtl_opt_pass along with...
17784 (pass_data_sched): ...new pass_data instance and...
17785 (make_pass_sched): ...new function.
17786 (pass_sched2): Convert from a global struct to a subclass of
17787 rtl_opt_pass along with...
17788 (pass_data_sched2): ...new pass_data instance and...
17789 (make_pass_sched2): ...new function.
17790 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
17791 to a subclass of rtl_opt_pass along with...
17792 (pass_data_stack_ptr_mod): ...new pass_data instance and...
17793 (make_pass_stack_ptr_mod): ...new function.
17794 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
17795 to a subclass of rtl_opt_pass along with...
17796 (pass_data_rtl_store_motion): ...new pass_data instance and...
17797 (make_pass_rtl_store_motion): ...new function.
17798 * tracer.c (pass_tracer): Convert from a global struct to a subclass
17799 of gimple_opt_pass along with...
17800 (pass_data_tracer): ...new pass_data instance and...
17801 (make_pass_tracer): ...new function.
17802 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
17803 to a subclass of gimple_opt_pass along with...
17804 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
17805 (make_pass_diagnose_tm_blocks): ...new function.
17806 (pass_lower_tm): Convert from a global struct to a subclass of
17807 gimple_opt_pass along with...
17808 (pass_data_lower_tm): ...new pass_data instance and...
17809 (make_pass_lower_tm): ...new function.
17810 (pass_tm_init): Convert from a global struct to a subclass of
17811 gimple_opt_pass along with...
17812 (pass_data_tm_init): ...new pass_data instance and...
17813 (make_pass_tm_init): ...new function.
17814 (pass_tm_mark): Convert from a global struct to a subclass of
17815 gimple_opt_pass along with...
17816 (pass_data_tm_mark): ...new pass_data instance and...
17817 (make_pass_tm_mark): ...new function.
17818 (pass_tm_edges): Convert from a global struct to a subclass of
17819 gimple_opt_pass along with...
17820 (pass_data_tm_edges): ...new pass_data instance and...
17821 (make_pass_tm_edges): ...new function.
17822 (pass_tm_memopt): Convert from a global struct to a subclass of
17823 gimple_opt_pass along with...
17824 (pass_data_tm_memopt): ...new pass_data instance and...
17825 (make_pass_tm_memopt): ...new function.
17826 (pass_ipa_tm): Convert from a global struct to a subclass of
17827 simple_ipa_opt_pass along with...
17828 (pass_data_ipa_tm): ...new pass_data instance and...
17829 (make_pass_ipa_tm): ...new function.
17830 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
17831 subclass of gimple_opt_pass along with...
17832 (pass_data_call_cdce): ...new pass_data instance and...
17833 (make_pass_call_cdce): ...new function.
17834 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
17835 subclass of gimple_opt_pass along with...
17836 (pass_data_build_cfg): ...new pass_data instance and...
17837 (make_pass_build_cfg): ...new function.
17838 (pass_split_crit_edges): Convert from a global struct to a subclass of
17839 gimple_opt_pass along with...
17840 (pass_data_split_crit_edges): ...new pass_data instance and...
17841 (make_pass_split_crit_edges): ...new function.
17842 (pass_warn_function_return): Convert from a global struct to a
17843 subclass of gimple_opt_pass along with...
17844 (pass_data_warn_function_return): ...new pass_data instance and...
17845 (make_pass_warn_function_return): ...new function.
17846 (pass_warn_function_noreturn): Convert from a global struct to a
17847 subclass of gimple_opt_pass along with...
17848 (pass_data_warn_function_noreturn): ...new pass_data instance and...
17849 (make_pass_warn_function_noreturn): ...new function.
17850 (pass_warn_unused_result): Convert from a global struct to a subclass
17851 of gimple_opt_pass along with...
17852 (pass_data_warn_unused_result): ...new pass_data instance and...
17853 (make_pass_warn_unused_result): ...new function.
17854 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
17855 a subclass of gimple_opt_pass along with...
17856 (pass_data_merge_phi): ...new pass_data instance and...
17857 (make_pass_merge_phi): ...new function.
17858 * tree-complex.c (pass_lower_complex): Convert from a global struct to
17859 a subclass of gimple_opt_pass along with...
17860 (pass_data_lower_complex): ...new pass_data instance and...
17861 (make_pass_lower_complex): ...new function.
17862 (pass_lower_complex_O0): Convert from a global struct to a subclass of
17863 gimple_opt_pass along with...
17864 (pass_data_lower_complex_O0): ...new pass_data instance and...
17865 (make_pass_lower_complex_O0): ...new function.
17866 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
17867 subclass of gimple_opt_pass along with...
17868 (pass_data_lower_eh): ...new pass_data instance and...
17869 (make_pass_lower_eh): ...new function.
17870 (pass_refactor_eh): Convert from a global struct to a subclass of
17871 gimple_opt_pass along with...
17872 (pass_data_refactor_eh): ...new pass_data instance and...
17873 (make_pass_refactor_eh): ...new function.
17874 (pass_lower_resx): Convert from a global struct to a subclass of
17875 gimple_opt_pass along with...
17876 (pass_data_lower_resx): ...new pass_data instance and...
17877 (make_pass_lower_resx): ...new function.
17878 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
17879 of gimple_opt_pass along with...
17880 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
17881 (make_pass_lower_eh_dispatch): ...new function.
17882 (pass_cleanup_eh): Convert from a global struct to a subclass of
17883 gimple_opt_pass along with...
17884 (pass_data_cleanup_eh): ...new pass_data instance and...
17885 (make_pass_cleanup_eh): ...new function.
17886 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
17887 to a subclass of simple_ipa_opt_pass along with...
17888 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
17889 (make_pass_ipa_lower_emutls): ...new function.
17890 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
17891 a subclass of gimple_opt_pass along with...
17892 (pass_data_if_conversion): ...new pass_data instance and...
17893 (make_pass_if_conversion): ...new function.
17894 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
17895 subclass of gimple_opt_pass along with...
17896 (pass_data_build_ssa): ...new pass_data instance and...
17897 (make_pass_build_ssa): ...new function.
17898 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
17899 global struct to a subclass of gimple_opt_pass along with...
17900 (pass_data_loop_distribution): ...new pass_data instance and...
17901 (make_pass_loop_distribution): ...new function.
17902 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
17903 subclass of gimple_opt_pass along with...
17904 (pass_data_mudflap_1): ...new pass_data instance and...
17905 (make_pass_mudflap_1): ...new function.
17906 (pass_mudflap_2): Convert from a global struct to a subclass of
17907 gimple_opt_pass along with...
17908 (pass_data_mudflap_2): ...new pass_data instance and...
17909 (make_pass_mudflap_2): ...new function.
17910 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
17911 subclass of gimple_opt_pass along with...
17912 (pass_data_mudflap_1): ...new pass_data instance and...
17913 (make_pass_mudflap_1): ...new function.
17914 (pass_mudflap_2): Convert from a global struct to a subclass of
17915 gimple_opt_pass along with...
17916 (pass_data_mudflap_2): ...new pass_data instance and...
17917 (make_pass_mudflap_2): ...new function.
17918 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
17919 gimple_opt_pass along with...
17920 (pass_data_nrv): ...new pass_data instance and...
17921 (make_pass_nrv): ...new function.
17922 (pass_return_slot): Convert from a global struct to a subclass of
17923 gimple_opt_pass along with...
17924 (pass_data_return_slot): ...new pass_data instance and...
17925 (make_pass_return_slot): ...new function.
17926 * tree-object-size.c (pass_object_sizes): Convert from a global struct
17927 to a subclass of gimple_opt_pass along with...
17928 (pass_data_object_sizes): ...new pass_data instance and...
17929 (make_pass_object_sizes): ...new function.
17930 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
17931 global struct to a subclass of gimple_opt_pass along with...
17932 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
17934 (make_pass_cleanup_cfg_post_optimizing): ...new function.
17935 (pass_fixup_cfg): Convert from a global struct to a subclass of
17936 gimple_opt_pass along with...
17937 (pass_data_fixup_cfg): ...new pass_data instance and...
17938 (make_pass_fixup_cfg): ...new function.
17939 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
17940 (make_pass_mudflap_1): ...new function.
17941 (pass_mudflap_2): Replace declaration with that of...
17942 (make_pass_mudflap_2): ...new function.
17943 (pass_asan): Replace declaration with that of...
17944 (make_pass_asan): ...new function.
17945 (pass_asan_O0): Replace declaration with that of...
17946 (make_pass_asan_O0): ...new function.
17947 (pass_tsan): Replace declaration with that of...
17948 (make_pass_tsan): ...new function.
17949 (pass_tsan_O0): Replace declaration with that of...
17950 (make_pass_tsan_O0): ...new function.
17951 (pass_lower_cf): Replace declaration with that of...
17952 (make_pass_lower_cf): ...new function.
17953 (pass_refactor_eh): Replace declaration with that of...
17954 (make_pass_refactor_eh): ...new function.
17955 (pass_lower_eh): Replace declaration with that of...
17956 (make_pass_lower_eh): ...new function.
17957 (pass_lower_eh_dispatch): Replace declaration with that of...
17958 (make_pass_lower_eh_dispatch): ...new function.
17959 (pass_lower_resx): Replace declaration with that of...
17960 (make_pass_lower_resx): ...new function.
17961 (pass_build_cfg): Replace declaration with that of...
17962 (make_pass_build_cfg): ...new function.
17963 (pass_early_tree_profile): Replace declaration with that of...
17964 (make_pass_early_tree_profile): ...new function.
17965 (pass_cleanup_eh): Replace declaration with that of...
17966 (make_pass_cleanup_eh): ...new function.
17967 (pass_sra): Replace declaration with that of...
17968 (make_pass_sra): ...new function.
17969 (pass_sra_early): Replace declaration with that of...
17970 (make_pass_sra_early): ...new function.
17971 (pass_early_ipa_sra): Replace declaration with that of...
17972 (make_pass_early_ipa_sra): ...new function.
17973 (pass_tail_recursion): Replace declaration with that of...
17974 (make_pass_tail_recursion): ...new function.
17975 (pass_tail_calls): Replace declaration with that of...
17976 (make_pass_tail_calls): ...new function.
17977 (pass_tree_loop): Replace declaration with that of...
17978 (make_pass_tree_loop): ...new function.
17979 (pass_tree_loop_init): Replace declaration with that of...
17980 (make_pass_tree_loop_init): ...new function.
17981 (pass_lim): Replace declaration with that of...
17982 (make_pass_lim): ...new function.
17983 (pass_tree_unswitch): Replace declaration with that of...
17984 (make_pass_tree_unswitch): ...new function.
17985 (pass_predcom): Replace declaration with that of...
17986 (make_pass_predcom): ...new function.
17987 (pass_iv_canon): Replace declaration with that of...
17988 (make_pass_iv_canon): ...new function.
17989 (pass_scev_cprop): Replace declaration with that of...
17990 (make_pass_scev_cprop): ...new function.
17991 (pass_empty_loop): Replace declaration with that of...
17992 (make_pass_empty_loop): ...new function.
17993 (pass_record_bounds): Replace declaration with that of...
17994 (make_pass_record_bounds): ...new function.
17995 (pass_graphite): Replace declaration with that of...
17996 (make_pass_graphite): ...new function.
17997 (pass_graphite_transforms): Replace declaration with that of...
17998 (make_pass_graphite_transforms): ...new function.
17999 (pass_if_conversion): Replace declaration with that of...
18000 (make_pass_if_conversion): ...new function.
18001 (pass_loop_distribution): Replace declaration with that of...
18002 (make_pass_loop_distribution): ...new function.
18003 (pass_vectorize): Replace declaration with that of...
18004 (make_pass_vectorize): ...new function.
18005 (pass_slp_vectorize): Replace declaration with that of...
18006 (make_pass_slp_vectorize): ...new function.
18007 (pass_complete_unroll): Replace declaration with that of...
18008 (make_pass_complete_unroll): ...new function.
18009 (pass_complete_unrolli): Replace declaration with that of...
18010 (make_pass_complete_unrolli): ...new function.
18011 (pass_parallelize_loops): Replace declaration with that of...
18012 (make_pass_parallelize_loops): ...new function.
18013 (pass_loop_prefetch): Replace declaration with that of...
18014 (make_pass_loop_prefetch): ...new function.
18015 (pass_iv_optimize): Replace declaration with that of...
18016 (make_pass_iv_optimize): ...new function.
18017 (pass_tree_loop_done): Replace declaration with that of...
18018 (make_pass_tree_loop_done): ...new function.
18019 (pass_ch): Replace declaration with that of...
18020 (make_pass_ch): ...new function.
18021 (pass_ccp): Replace declaration with that of...
18022 (make_pass_ccp): ...new function.
18023 (pass_phi_only_cprop): Replace declaration with that of...
18024 (make_pass_phi_only_cprop): ...new function.
18025 (pass_build_ssa): Replace declaration with that of...
18026 (make_pass_build_ssa): ...new function.
18027 (pass_build_alias): Replace declaration with that of...
18028 (make_pass_build_alias): ...new function.
18029 (pass_build_ealias): Replace declaration with that of...
18030 (make_pass_build_ealias): ...new function.
18031 (pass_dominator): Replace declaration with that of...
18032 (make_pass_dominator): ...new function.
18033 (pass_dce): Replace declaration with that of...
18034 (make_pass_dce): ...new function.
18035 (pass_dce_loop): Replace declaration with that of...
18036 (make_pass_dce_loop): ...new function.
18037 (pass_cd_dce): Replace declaration with that of...
18038 (make_pass_cd_dce): ...new function.
18039 (pass_call_cdce): Replace declaration with that of...
18040 (make_pass_call_cdce): ...new function.
18041 (pass_merge_phi): Replace declaration with that of...
18042 (make_pass_merge_phi): ...new function.
18043 (pass_split_crit_edges): Replace declaration with that of...
18044 (make_pass_split_crit_edges): ...new function.
18045 (pass_pre): Replace declaration with that of...
18046 (make_pass_pre): ...new function.
18047 (pass_profile): Replace declaration with that of...
18048 (make_pass_profile): ...new function.
18049 (pass_strip_predict_hints): Replace declaration with that of...
18050 (make_pass_strip_predict_hints): ...new function.
18051 (pass_lower_complex_O0): Replace declaration with that of...
18052 (make_pass_lower_complex_O0): ...new function.
18053 (pass_lower_complex): Replace declaration with that of...
18054 (make_pass_lower_complex): ...new function.
18055 (pass_lower_vector): Replace declaration with that of...
18056 (make_pass_lower_vector): ...new function.
18057 (pass_lower_vector_ssa): Replace declaration with that of...
18058 (make_pass_lower_vector_ssa): ...new function.
18059 (pass_lower_omp): Replace declaration with that of...
18060 (make_pass_lower_omp): ...new function.
18061 (pass_diagnose_omp_blocks): Replace declaration with that of...
18062 (make_pass_diagnose_omp_blocks): ...new function.
18063 (pass_expand_omp): Replace declaration with that of...
18064 (make_pass_expand_omp): ...new function.
18065 (pass_expand_omp_ssa): Replace declaration with that of...
18066 (make_pass_expand_omp_ssa): ...new function.
18067 (pass_object_sizes): Replace declaration with that of...
18068 (make_pass_object_sizes): ...new function.
18069 (pass_strlen): Replace declaration with that of...
18070 (make_pass_strlen): ...new function.
18071 (pass_fold_builtins): Replace declaration with that of...
18072 (make_pass_fold_builtins): ...new function.
18073 (pass_stdarg): Replace declaration with that of...
18074 (make_pass_stdarg): ...new function.
18075 (pass_early_warn_uninitialized): Replace declaration with that of...
18076 (make_pass_early_warn_uninitialized): ...new function.
18077 (pass_late_warn_uninitialized): Replace declaration with that of...
18078 (make_pass_late_warn_uninitialized): ...new function.
18079 (pass_cse_reciprocals): Replace declaration with that of...
18080 (make_pass_cse_reciprocals): ...new function.
18081 (pass_cse_sincos): Replace declaration with that of...
18082 (make_pass_cse_sincos): ...new function.
18083 (pass_optimize_bswap): Replace declaration with that of...
18084 (make_pass_optimize_bswap): ...new function.
18085 (pass_optimize_widening_mul): Replace declaration with that of...
18086 (make_pass_optimize_widening_mul): ...new function.
18087 (pass_warn_function_return): Replace declaration with that of...
18088 (make_pass_warn_function_return): ...new function.
18089 (pass_warn_function_noreturn): Replace declaration with that of...
18090 (make_pass_warn_function_noreturn): ...new function.
18091 (pass_cselim): Replace declaration with that of...
18092 (make_pass_cselim): ...new function.
18093 (pass_phiopt): Replace declaration with that of...
18094 (make_pass_phiopt): ...new function.
18095 (pass_forwprop): Replace declaration with that of...
18096 (make_pass_forwprop): ...new function.
18097 (pass_phiprop): Replace declaration with that of...
18098 (make_pass_phiprop): ...new function.
18099 (pass_tree_ifcombine): Replace declaration with that of...
18100 (make_pass_tree_ifcombine): ...new function.
18101 (pass_dse): Replace declaration with that of...
18102 (make_pass_dse): ...new function.
18103 (pass_nrv): Replace declaration with that of...
18104 (make_pass_nrv): ...new function.
18105 (pass_rename_ssa_copies): Replace declaration with that of...
18106 (make_pass_rename_ssa_copies): ...new function.
18107 (pass_sink_code): Replace declaration with that of...
18108 (make_pass_sink_code): ...new function.
18109 (pass_fre): Replace declaration with that of...
18110 (make_pass_fre): ...new function.
18111 (pass_check_data_deps): Replace declaration with that of...
18112 (make_pass_check_data_deps): ...new function.
18113 (pass_copy_prop): Replace declaration with that of...
18114 (make_pass_copy_prop): ...new function.
18115 (pass_vrp): Replace declaration with that of...
18116 (make_pass_vrp): ...new function.
18117 (pass_uncprop): Replace declaration with that of...
18118 (make_pass_uncprop): ...new function.
18119 (pass_return_slot): Replace declaration with that of...
18120 (make_pass_return_slot): ...new function.
18121 (pass_reassoc): Replace declaration with that of...
18122 (make_pass_reassoc): ...new function.
18123 (pass_rebuild_cgraph_edges): Replace declaration with that of...
18124 (make_pass_rebuild_cgraph_edges): ...new function.
18125 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
18126 (make_pass_remove_cgraph_callee_edges): ...new function.
18127 (pass_build_cgraph_edges): Replace declaration with that of...
18128 (make_pass_build_cgraph_edges): ...new function.
18129 (pass_local_pure_const): Replace declaration with that of...
18130 (make_pass_local_pure_const): ...new function.
18131 (pass_tracer): Replace declaration with that of...
18132 (make_pass_tracer): ...new function.
18133 (pass_warn_unused_result): Replace declaration with that of...
18134 (make_pass_warn_unused_result): ...new function.
18135 (pass_diagnose_tm_blocks): Replace declaration with that of...
18136 (make_pass_diagnose_tm_blocks): ...new function.
18137 (pass_lower_tm): Replace declaration with that of...
18138 (make_pass_lower_tm): ...new function.
18139 (pass_tm_init): Replace declaration with that of...
18140 (make_pass_tm_init): ...new function.
18141 (pass_tm_mark): Replace declaration with that of...
18142 (make_pass_tm_mark): ...new function.
18143 (pass_tm_memopt): Replace declaration with that of...
18144 (make_pass_tm_memopt): ...new function.
18145 (pass_tm_edges): Replace declaration with that of...
18146 (make_pass_tm_edges): ...new function.
18147 (pass_split_functions): Replace declaration with that of...
18148 (make_pass_split_functions): ...new function.
18149 (pass_feedback_split_functions): Replace declaration with that of...
18150 (make_pass_feedback_split_functions): ...new function.
18151 (pass_strength_reduction): Replace declaration with that of...
18152 (make_pass_strength_reduction): ...new function.
18153 (pass_ipa_lower_emutls): Replace declaration with that of...
18154 (make_pass_ipa_lower_emutls): ...new function.
18155 (pass_ipa_function_and_variable_visibility): Replace declaration with
18157 (make_pass_ipa_function_and_variable_visibility): ...new function.
18158 (pass_ipa_tree_profile): Replace declaration with that of...
18159 (make_pass_ipa_tree_profile): ...new function.
18160 (pass_early_local_passes): Replace declaration with that of...
18161 (make_pass_early_local_passes): ...new function.
18162 (pass_ipa_whole_program_visibility): Replace declaration with that
18164 (make_pass_ipa_whole_program_visibility): ...new function.
18165 (pass_ipa_lto_gimple_out): Replace declaration with that of...
18166 (make_pass_ipa_lto_gimple_out): ...new function.
18167 (pass_ipa_increase_alignment): Replace declaration with that of...
18168 (make_pass_ipa_increase_alignment): ...new function.
18169 (pass_ipa_inline): Replace declaration with that of...
18170 (make_pass_ipa_inline): ...new function.
18171 (pass_ipa_free_lang_data): Replace declaration with that of...
18172 (make_pass_ipa_free_lang_data): ...new function.
18173 (pass_ipa_free_inline_summary): Replace declaration with that of...
18174 (make_pass_ipa_free_inline_summary): ...new function.
18175 (pass_ipa_cp): Replace declaration with that of...
18176 (make_pass_ipa_cp): ...new function.
18177 (pass_ipa_reference): Replace declaration with that of...
18178 (make_pass_ipa_reference): ...new function.
18179 (pass_ipa_pure_const): Replace declaration with that of...
18180 (make_pass_ipa_pure_const): ...new function.
18181 (pass_ipa_pta): Replace declaration with that of...
18182 (make_pass_ipa_pta): ...new function.
18183 (pass_ipa_lto_finish_out): Replace declaration with that of...
18184 (make_pass_ipa_lto_finish_out): ...new function.
18185 (pass_ipa_tm): Replace declaration with that of...
18186 (make_pass_ipa_tm): ...new function.
18187 (pass_ipa_profile): Replace declaration with that of...
18188 (make_pass_ipa_profile): ...new function.
18189 (pass_ipa_cdtor_merge): Replace declaration with that of...
18190 (make_pass_ipa_cdtor_merge): ...new function.
18191 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
18193 (make_pass_cleanup_cfg_post_optimizing): ...new function.
18194 (pass_init_datastructures): Replace declaration with that of...
18195 (make_pass_init_datastructures): ...new function.
18196 (pass_fixup_cfg): Replace declaration with that of...
18197 (make_pass_fixup_cfg): ...new function.
18198 (pass_expand): Replace declaration with that of...
18199 (make_pass_expand): ...new function.
18200 (pass_instantiate_virtual_regs): Replace declaration with that of...
18201 (make_pass_instantiate_virtual_regs): ...new function.
18202 (pass_rtl_fwprop): Replace declaration with that of...
18203 (make_pass_rtl_fwprop): ...new function.
18204 (pass_rtl_fwprop_addr): Replace declaration with that of...
18205 (make_pass_rtl_fwprop_addr): ...new function.
18206 (pass_jump): Replace declaration with that of...
18207 (make_pass_jump): ...new function.
18208 (pass_jump2): Replace declaration with that of...
18209 (make_pass_jump2): ...new function.
18210 (pass_lower_subreg): Replace declaration with that of...
18211 (make_pass_lower_subreg): ...new function.
18212 (pass_cse): Replace declaration with that of...
18213 (make_pass_cse): ...new function.
18214 (pass_fast_rtl_dce): Replace declaration with that of...
18215 (make_pass_fast_rtl_dce): ...new function.
18216 (pass_ud_rtl_dce): Replace declaration with that of...
18217 (make_pass_ud_rtl_dce): ...new function.
18218 (pass_rtl_dce): Replace declaration with that of...
18219 (make_pass_rtl_dce): ...new function.
18220 (pass_rtl_dse1): Replace declaration with that of...
18221 (make_pass_rtl_dse1): ...new function.
18222 (pass_rtl_dse2): Replace declaration with that of...
18223 (make_pass_rtl_dse2): ...new function.
18224 (pass_rtl_dse3): Replace declaration with that of...
18225 (make_pass_rtl_dse3): ...new function.
18226 (pass_rtl_cprop): Replace declaration with that of...
18227 (make_pass_rtl_cprop): ...new function.
18228 (pass_rtl_pre): Replace declaration with that of...
18229 (make_pass_rtl_pre): ...new function.
18230 (pass_rtl_hoist): Replace declaration with that of...
18231 (make_pass_rtl_hoist): ...new function.
18232 (pass_rtl_store_motion): Replace declaration with that of...
18233 (make_pass_rtl_store_motion): ...new function.
18234 (pass_cse_after_global_opts): Replace declaration with that of...
18235 (make_pass_cse_after_global_opts): ...new function.
18236 (pass_rtl_ifcvt): Replace declaration with that of...
18237 (make_pass_rtl_ifcvt): ...new function.
18238 (pass_into_cfg_layout_mode): Replace declaration with that of...
18239 (make_pass_into_cfg_layout_mode): ...new function.
18240 (pass_outof_cfg_layout_mode): Replace declaration with that of...
18241 (make_pass_outof_cfg_layout_mode): ...new function.
18242 (pass_loop2): Replace declaration with that of...
18243 (make_pass_loop2): ...new function.
18244 (pass_rtl_loop_init): Replace declaration with that of...
18245 (make_pass_rtl_loop_init): ...new function.
18246 (pass_rtl_move_loop_invariants): Replace declaration with that of...
18247 (make_pass_rtl_move_loop_invariants): ...new function.
18248 (pass_rtl_unswitch): Replace declaration with that of...
18249 (make_pass_rtl_unswitch): ...new function.
18250 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
18251 (make_pass_rtl_unroll_and_peel_loops): ...new function.
18252 (pass_rtl_doloop): Replace declaration with that of...
18253 (make_pass_rtl_doloop): ...new function.
18254 (pass_rtl_loop_done): Replace declaration with that of...
18255 (make_pass_rtl_loop_done): ...new function.
18256 (pass_web): Replace declaration with that of...
18257 (make_pass_web): ...new function.
18258 (pass_cse2): Replace declaration with that of...
18259 (make_pass_cse2): ...new function.
18260 (pass_df_initialize_opt): Replace declaration with that of...
18261 (make_pass_df_initialize_opt): ...new function.
18262 (pass_df_initialize_no_opt): Replace declaration with that of...
18263 (make_pass_df_initialize_no_opt): ...new function.
18264 (pass_reginfo_init): Replace declaration with that of...
18265 (make_pass_reginfo_init): ...new function.
18266 (pass_inc_dec): Replace declaration with that of...
18267 (make_pass_inc_dec): ...new function.
18268 (pass_stack_ptr_mod): Replace declaration with that of...
18269 (make_pass_stack_ptr_mod): ...new function.
18270 (pass_initialize_regs): Replace declaration with that of...
18271 (make_pass_initialize_regs): ...new function.
18272 (pass_combine): Replace declaration with that of...
18273 (make_pass_combine): ...new function.
18274 (pass_if_after_combine): Replace declaration with that of...
18275 (make_pass_if_after_combine): ...new function.
18276 (pass_ree): Replace declaration with that of...
18277 (make_pass_ree): ...new function.
18278 (pass_partition_blocks): Replace declaration with that of...
18279 (make_pass_partition_blocks): ...new function.
18280 (pass_match_asm_constraints): Replace declaration with that of...
18281 (make_pass_match_asm_constraints): ...new function.
18282 (pass_regmove): Replace declaration with that of...
18283 (make_pass_regmove): ...new function.
18284 (pass_split_all_insns): Replace declaration with that of...
18285 (make_pass_split_all_insns): ...new function.
18286 (pass_fast_rtl_byte_dce): Replace declaration with that of...
18287 (make_pass_fast_rtl_byte_dce): ...new function.
18288 (pass_lower_subreg2): Replace declaration with that of...
18289 (make_pass_lower_subreg2): ...new function.
18290 (pass_mode_switching): Replace declaration with that of...
18291 (make_pass_mode_switching): ...new function.
18292 (pass_sms): Replace declaration with that of...
18293 (make_pass_sms): ...new function.
18294 (pass_sched): Replace declaration with that of...
18295 (make_pass_sched): ...new function.
18296 (pass_ira): Replace declaration with that of...
18297 (make_pass_ira): ...new function.
18298 (pass_reload): Replace declaration with that of...
18299 (make_pass_reload): ...new function.
18300 (pass_clean_state): Replace declaration with that of...
18301 (make_pass_clean_state): ...new function.
18302 (pass_branch_prob): Replace declaration with that of...
18303 (make_pass_branch_prob): ...new function.
18304 (pass_value_profile_transformations): Replace declaration with that
18306 (make_pass_value_profile_transformations): ...new function.
18307 (pass_postreload_cse): Replace declaration with that of...
18308 (make_pass_postreload_cse): ...new function.
18309 (pass_gcse2): Replace declaration with that of...
18310 (make_pass_gcse2): ...new function.
18311 (pass_split_after_reload): Replace declaration with that of...
18312 (make_pass_split_after_reload): ...new function.
18313 (pass_branch_target_load_optimize1): Replace declaration with that
18315 (make_pass_branch_target_load_optimize1): ...new function.
18316 (pass_thread_prologue_and_epilogue): Replace declaration with that
18318 (make_pass_thread_prologue_and_epilogue): ...new function.
18319 (pass_stack_adjustments): Replace declaration with that of...
18320 (make_pass_stack_adjustments): ...new function.
18321 (pass_peephole2): Replace declaration with that of...
18322 (make_pass_peephole2): ...new function.
18323 (pass_if_after_reload): Replace declaration with that of...
18324 (make_pass_if_after_reload): ...new function.
18325 (pass_regrename): Replace declaration with that of...
18326 (make_pass_regrename): ...new function.
18327 (pass_cprop_hardreg): Replace declaration with that of...
18328 (make_pass_cprop_hardreg): ...new function.
18329 (pass_reorder_blocks): Replace declaration with that of...
18330 (make_pass_reorder_blocks): ...new function.
18331 (pass_branch_target_load_optimize2): Replace declaration with that
18333 (make_pass_branch_target_load_optimize2): ...new function.
18334 (pass_leaf_regs): Replace declaration with that of...
18335 (make_pass_leaf_regs): ...new function.
18336 (pass_split_before_sched2): Replace declaration with that of...
18337 (make_pass_split_before_sched2): ...new function.
18338 (pass_compare_elim_after_reload): Replace declaration with that of...
18339 (make_pass_compare_elim_after_reload): ...new function.
18340 (pass_sched2): Replace declaration with that of...
18341 (make_pass_sched2): ...new function.
18342 (pass_stack_regs): Replace declaration with that of...
18343 (make_pass_stack_regs): ...new function.
18344 (pass_stack_regs_run): Replace declaration with that of...
18345 (make_pass_stack_regs_run): ...new function.
18346 (pass_df_finish): Replace declaration with that of...
18347 (make_pass_df_finish): ...new function.
18348 (pass_compute_alignments): Replace declaration with that of...
18349 (make_pass_compute_alignments): ...new function.
18350 (pass_duplicate_computed_gotos): Replace declaration with that of...
18351 (make_pass_duplicate_computed_gotos): ...new function.
18352 (pass_variable_tracking): Replace declaration with that of...
18353 (make_pass_variable_tracking): ...new function.
18354 (pass_free_cfg): Replace declaration with that of...
18355 (make_pass_free_cfg): ...new function.
18356 (pass_machine_reorg): Replace declaration with that of...
18357 (make_pass_machine_reorg): ...new function.
18358 (pass_cleanup_barriers): Replace declaration with that of...
18359 (make_pass_cleanup_barriers): ...new function.
18360 (pass_delay_slots): Replace declaration with that of...
18361 (make_pass_delay_slots): ...new function.
18362 (pass_split_for_shorten_branches): Replace declaration with that of...
18363 (make_pass_split_for_shorten_branches): ...new function.
18364 (pass_split_before_regstack): Replace declaration with that of...
18365 (make_pass_split_before_regstack): ...new function.
18366 (pass_convert_to_eh_region_ranges): Replace declaration with that
18368 (make_pass_convert_to_eh_region_ranges): ...new function.
18369 (pass_shorten_branches): Replace declaration with that of...
18370 (make_pass_shorten_branches): ...new function.
18371 (pass_set_nothrow_function_flags): Replace declaration with that of...
18372 (make_pass_set_nothrow_function_flags): ...new function.
18373 (pass_dwarf2_frame): Replace declaration with that of...
18374 (make_pass_dwarf2_frame): ...new function.
18375 (pass_final): Replace declaration with that of...
18376 (make_pass_final): ...new function.
18377 (pass_rtl_seqabstr): Replace declaration with that of...
18378 (make_pass_rtl_seqabstr): ...new function.
18379 (pass_release_ssa_names): Replace declaration with that of...
18380 (make_pass_release_ssa_names): ...new function.
18381 (pass_early_inline): Replace declaration with that of...
18382 (make_pass_early_inline): ...new function.
18383 (pass_inline_parameters): Replace declaration with that of...
18384 (make_pass_inline_parameters): ...new function.
18385 (pass_update_address_taken): Replace declaration with that of...
18386 (make_pass_update_address_taken): ...new function.
18387 (pass_convert_switch): Replace declaration with that of...
18388 (make_pass_convert_switch): ...new function.
18389 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
18390 to a subclass of simple_ipa_opt_pass along with...
18391 (pass_data_ipa_tree_profile): ...new pass_data instance and...
18392 (make_pass_ipa_tree_profile): ...new function.
18393 * tree-sra.c (pass_sra_early): Convert from a global struct to a
18394 subclass of gimple_opt_pass along with...
18395 (pass_data_sra_early): ...new pass_data instance and...
18396 (make_pass_sra_early): ...new function.
18397 (pass_sra): Convert from a global struct to a subclass of
18398 gimple_opt_pass along with...
18399 (pass_data_sra): ...new pass_data instance and...
18400 (make_pass_sra): ...new function.
18401 (pass_early_ipa_sra): Convert from a global struct to a subclass of
18402 gimple_opt_pass along with...
18403 (pass_data_early_ipa_sra): ...new pass_data instance and...
18404 (make_pass_early_ipa_sra): ...new function.
18405 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
18406 subclass of gimple_opt_pass along with...
18407 (pass_data_ccp): ...new pass_data instance and...
18408 (make_pass_ccp): ...new function.
18409 (pass_fold_builtins): Convert from a global struct to a subclass of
18410 gimple_opt_pass along with...
18411 (pass_data_fold_builtins): ...new pass_data instance and...
18412 (make_pass_fold_builtins): ...new function.
18413 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
18414 subclass of gimple_opt_pass along with...
18415 (pass_data_copy_prop): ...new pass_data instance and...
18416 (make_pass_copy_prop): ...new function.
18417 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
18418 global struct to a subclass of gimple_opt_pass along with...
18419 (pass_data_rename_ssa_copies): ...new pass_data instance and...
18420 (make_pass_rename_ssa_copies): ...new function.
18421 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
18422 subclass of gimple_opt_pass along with...
18423 (pass_data_dce): ...new pass_data instance and...
18424 (make_pass_dce): ...new function.
18425 (pass_dce_loop): Convert from a global struct to a subclass of
18426 gimple_opt_pass along with...
18427 (pass_data_dce_loop): ...new pass_data instance and...
18428 (make_pass_dce_loop): ...new function.
18429 (pass_cd_dce): Convert from a global struct to a subclass of
18430 gimple_opt_pass along with...
18431 (pass_data_cd_dce): ...new pass_data instance and...
18432 (make_pass_cd_dce): ...new function.
18433 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
18434 subclass of gimple_opt_pass along with...
18435 (pass_data_dominator): ...new pass_data instance and...
18436 (make_pass_dominator): ...new function.
18437 (pass_phi_only_cprop): Convert from a global struct to a subclass of
18438 gimple_opt_pass along with...
18439 (pass_data_phi_only_cprop): ...new pass_data instance and...
18440 (make_pass_phi_only_cprop): ...new function.
18441 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
18442 subclass of gimple_opt_pass along with...
18443 (pass_data_dse): ...new pass_data instance and...
18444 (make_pass_dse): ...new function.
18445 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
18446 a subclass of gimple_opt_pass along with...
18447 (pass_data_forwprop): ...new pass_data instance and...
18448 (make_pass_forwprop): ...new function.
18449 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
18450 struct to a subclass of gimple_opt_pass along with...
18451 (pass_data_tree_ifcombine): ...new pass_data instance and...
18452 (make_pass_tree_ifcombine): ...new function.
18453 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
18454 subclass of gimple_opt_pass along with...
18455 (pass_data_ch): ...new pass_data instance and...
18456 (make_pass_ch): ...new function.
18457 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
18458 subclass of gimple_opt_pass along with...
18459 (pass_data_tree_loop): ...new pass_data instance and...
18460 (make_pass_tree_loop): ...new function.
18461 (pass_tree_loop_init): Convert from a global struct to a subclass of
18462 gimple_opt_pass along with...
18463 (pass_data_tree_loop_init): ...new pass_data instance and...
18464 (make_pass_tree_loop_init): ...new function.
18465 (pass_lim): Convert from a global struct to a subclass of
18466 gimple_opt_pass along with...
18467 (pass_data_lim): ...new pass_data instance and...
18468 (make_pass_lim): ...new function.
18469 (pass_tree_unswitch): Convert from a global struct to a subclass of
18470 gimple_opt_pass along with...
18471 (pass_data_tree_unswitch): ...new pass_data instance and...
18472 (make_pass_tree_unswitch): ...new function.
18473 (pass_predcom): Convert from a global struct to a subclass of
18474 gimple_opt_pass along with...
18475 (pass_data_predcom): ...new pass_data instance and...
18476 (make_pass_predcom): ...new function.
18477 (pass_vectorize): Convert from a global struct to a subclass of
18478 gimple_opt_pass along with...
18479 (pass_data_vectorize): ...new pass_data instance and...
18480 (make_pass_vectorize): ...new function.
18481 (pass_graphite): Convert from a global struct to a subclass of
18482 gimple_opt_pass along with...
18483 (pass_data_graphite): ...new pass_data instance and...
18484 (make_pass_graphite): ...new function.
18485 (pass_graphite_transforms): Convert from a global struct to a subclass
18486 of gimple_opt_pass along with...
18487 (pass_data_graphite_transforms): ...new pass_data instance and...
18488 (make_pass_graphite_transforms): ...new function.
18489 (pass_check_data_deps): Convert from a global struct to a subclass of
18490 gimple_opt_pass along with...
18491 (pass_data_check_data_deps): ...new pass_data instance and...
18492 (make_pass_check_data_deps): ...new function.
18493 (pass_iv_canon): Convert from a global struct to a subclass of
18494 gimple_opt_pass along with...
18495 (pass_data_iv_canon): ...new pass_data instance and...
18496 (make_pass_iv_canon): ...new function.
18497 (pass_scev_cprop): Convert from a global struct to a subclass of
18498 gimple_opt_pass along with...
18499 (pass_data_scev_cprop): ...new pass_data instance and...
18500 (make_pass_scev_cprop): ...new function.
18501 (pass_record_bounds): Convert from a global struct to a subclass of
18502 gimple_opt_pass along with...
18503 (pass_data_record_bounds): ...new pass_data instance and...
18504 (make_pass_record_bounds): ...new function.
18505 (pass_complete_unroll): Convert from a global struct to a subclass of
18506 gimple_opt_pass along with...
18507 (pass_data_complete_unroll): ...new pass_data instance and...
18508 (make_pass_complete_unroll): ...new function.
18509 (pass_complete_unrolli): Convert from a global struct to a subclass of
18510 gimple_opt_pass along with...
18511 (pass_data_complete_unrolli): ...new pass_data instance and...
18512 (make_pass_complete_unrolli): ...new function.
18513 (pass_parallelize_loops): Convert from a global struct to a subclass
18514 of gimple_opt_pass along with...
18515 (pass_data_parallelize_loops): ...new pass_data instance and...
18516 (make_pass_parallelize_loops): ...new function.
18517 (pass_loop_prefetch): Convert from a global struct to a subclass of
18518 gimple_opt_pass along with...
18519 (pass_data_loop_prefetch): ...new pass_data instance and...
18520 (make_pass_loop_prefetch): ...new function.
18521 (pass_iv_optimize): Convert from a global struct to a subclass of
18522 gimple_opt_pass along with...
18523 (pass_data_iv_optimize): ...new pass_data instance and...
18524 (make_pass_iv_optimize): ...new function.
18525 (pass_tree_loop_done): Convert from a global struct to a subclass of
18526 gimple_opt_pass along with...
18527 (pass_data_tree_loop_done): ...new pass_data instance and...
18528 (make_pass_tree_loop_done): ...new function.
18529 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
18530 struct to a subclass of gimple_opt_pass along with...
18531 (pass_data_cse_reciprocals): ...new pass_data instance and...
18532 (make_pass_cse_reciprocals): ...new function.
18533 (pass_cse_sincos): Convert from a global struct to a subclass of
18534 gimple_opt_pass along with...
18535 (pass_data_cse_sincos): ...new pass_data instance and...
18536 (make_pass_cse_sincos): ...new function.
18537 (pass_optimize_bswap): Convert from a global struct to a subclass of
18538 gimple_opt_pass along with...
18539 (pass_data_optimize_bswap): ...new pass_data instance and...
18540 (make_pass_optimize_bswap): ...new function.
18541 (pass_optimize_widening_mul): Convert from a global struct to a
18542 subclass of gimple_opt_pass along with...
18543 (pass_data_optimize_widening_mul): ...new pass_data instance and...
18544 (make_pass_optimize_widening_mul): ...new function.
18545 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
18546 subclass of gimple_opt_pass along with...
18547 (pass_data_phiopt): ...new pass_data instance and...
18548 (make_pass_phiopt): ...new function.
18549 (pass_cselim): Convert from a global struct to a subclass of
18550 gimple_opt_pass along with...
18551 (pass_data_cselim): ...new pass_data instance and...
18552 (make_pass_cselim): ...new function.
18553 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
18554 subclass of gimple_opt_pass along with...
18555 (pass_data_phiprop): ...new pass_data instance and...
18556 (make_pass_phiprop): ...new function.
18557 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
18558 subclass of gimple_opt_pass along with...
18559 (pass_data_pre): ...new pass_data instance and...
18560 (make_pass_pre): ...new function.
18561 (pass_fre): Convert from a global struct to a subclass of
18562 gimple_opt_pass along with...
18563 (pass_data_fre): ...new pass_data instance and...
18564 (make_pass_fre): ...new function.
18565 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
18566 subclass of gimple_opt_pass along with...
18567 (pass_data_reassoc): ...new pass_data instance and...
18568 (make_pass_reassoc): ...new function.
18569 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
18570 subclass of gimple_opt_pass along with...
18571 (pass_data_sink_code): ...new pass_data instance and...
18572 (make_pass_sink_code): ...new function.
18573 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
18574 subclass of gimple_opt_pass along with...
18575 (pass_data_strlen): ...new pass_data instance and...
18576 (make_pass_strlen): ...new function.
18577 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
18578 struct to a subclass of gimple_opt_pass along with...
18579 (pass_data_build_alias): ...new pass_data instance and...
18580 (make_pass_build_alias): ...new function.
18581 (pass_build_ealias): Convert from a global struct to a subclass of
18582 gimple_opt_pass along with...
18583 (pass_data_build_ealias): ...new pass_data instance and...
18584 (make_pass_build_ealias): ...new function.
18585 (pass_ipa_pta): Convert from a global struct to a subclass of
18586 simple_ipa_opt_pass along with...
18587 (pass_data_ipa_pta): ...new pass_data instance and...
18588 (make_pass_ipa_pta): ...new function.
18589 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
18590 subclass of gimple_opt_pass along with...
18591 (pass_data_uncprop): ...new pass_data instance and...
18592 (make_pass_uncprop): ...new function.
18593 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
18594 global struct to a subclass of gimple_opt_pass along with...
18595 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
18596 (make_pass_late_warn_uninitialized): ...new function.
18597 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
18598 to a subclass of gimple_opt_pass along with...
18599 (pass_data_init_datastructures): ...new pass_data instance and...
18600 (make_pass_init_datastructures): ...new function.
18601 (pass_early_warn_uninitialized): Convert from a global struct to a
18602 subclass of gimple_opt_pass along with...
18603 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
18604 (make_pass_early_warn_uninitialized): ...new function.
18605 (pass_update_address_taken): Convert from a global struct to a
18606 subclass of gimple_opt_pass along with...
18607 (pass_data_update_address_taken): ...new pass_data instance and...
18608 (make_pass_update_address_taken): ...new function.
18609 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
18610 struct to a subclass of gimple_opt_pass along with...
18611 (pass_data_release_ssa_names): ...new pass_data instance and...
18612 (make_pass_release_ssa_names): ...new function.
18613 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
18614 subclass of gimple_opt_pass along with...
18615 (pass_data_stdarg): ...new pass_data instance and...
18616 (make_pass_stdarg): ...new function.
18617 * tree-switch-conversion.c (pass_convert_switch): Convert from a
18618 global struct to a subclass of gimple_opt_pass along with...
18619 (pass_data_convert_switch): ...new pass_data instance and...
18620 (make_pass_convert_switch): ...new function.
18621 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
18622 to a subclass of gimple_opt_pass along with...
18623 (pass_data_tail_recursion): ...new pass_data instance and...
18624 (make_pass_tail_recursion): ...new function.
18625 (pass_tail_calls): Convert from a global struct to a subclass of
18626 gimple_opt_pass along with...
18627 (pass_data_tail_calls): ...new pass_data instance and...
18628 (make_pass_tail_calls): ...new function.
18629 * tree-vect-generic.c (pass_lower_vector): Convert from a global
18630 struct to a subclass of gimple_opt_pass along with...
18631 (pass_data_lower_vector): ...new pass_data instance and...
18632 (make_pass_lower_vector): ...new function.
18633 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
18634 gimple_opt_pass along with...
18635 (pass_data_lower_vector_ssa): ...new pass_data instance and...
18636 (make_pass_lower_vector_ssa): ...new function.
18637 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
18638 to a subclass of gimple_opt_pass along with...
18639 (pass_data_slp_vectorize): ...new pass_data instance and...
18640 (make_pass_slp_vectorize): ...new function.
18641 (pass_ipa_increase_alignment): Convert from a global struct to a
18642 subclass of simple_ipa_opt_pass along with...
18643 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
18644 (make_pass_ipa_increase_alignment): ...new function.
18645 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
18646 gimple_opt_pass along with...
18647 (pass_data_vrp): ...new pass_data instance and...
18648 (make_pass_vrp): ...new function.
18649 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
18650 subclass of simple_ipa_opt_pass along with...
18651 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
18652 (make_pass_ipa_free_lang_data): ...new function.
18653 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
18654 gimple_opt_pass along with...
18655 (pass_data_tsan): ...new pass_data instance and...
18656 (make_pass_tsan): ...new function.
18657 (pass_tsan_O0): Convert from a global struct to a subclass of
18658 gimple_opt_pass along with...
18659 (pass_data_tsan_O0): ...new pass_data instance and...
18660 (make_pass_tsan_O0): ...new function.
18661 * var-tracking.c (pass_variable_tracking): Convert from a global
18662 struct to a subclass of rtl_opt_pass along with...
18663 (pass_data_variable_tracking): ...new pass_data instance and...
18664 (make_pass_variable_tracking): ...new function.
18665 * web.c (pass_web): Convert from a global struct to a subclass of
18666 rtl_opt_pass along with...
18667 (pass_data_web): ...new pass_data instance and...
18668 (make_pass_web): ...new function.
18669 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
18670 declaration with that of...
18671 (make_pass_mode_switch_use): ...new function.
18672 (pass_resolve_sw_modes): Replace declaration with that of...
18673 (make_pass_resolve_sw_modes): ...new function.
18674 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
18675 from a global struct to a subclass of rtl_opt_pass along with...
18676 (pass_data_mode_switch_use): ...new pass_data instance and...
18677 (make_pass_mode_switch_use): ...new function.
18678 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
18679 from a global struct to a subclass of rtl_opt_pass along with...
18680 (pass_data_resolve_sw_modes): ...new pass_data instance and...
18681 (make_pass_resolve_sw_modes): ...new function.
18682 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
18683 struct to a subclass of rtl_opt_pass along with...
18684 (pass_data_insert_vzeroupper): ...new pass_data instance and...
18685 (make_pass_insert_vzeroupper): ...new function.
18686 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
18687 global struct to a subclass of rtl_opt_pass along with...
18688 (pass_data_work_around_errata): ...new pass_data instance and...
18689 (make_pass_work_around_errata): ...new function.
18690 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
18691 struct to a subclass of rtl_opt_pass along with...
18692 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
18693 (make_pass_mips_machine_reorg2): ...new function.
18695 2013-08-05 David Malcolm <dmalcolm@redhat.com>
18697 * passes.c (pass_manager::operator new): New.
18699 2013-08-05 David Malcolm <dmalcolm@redhat.com>
18701 Handwritten part of conversion of passes to C++ classes.
18703 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
18704 (toplev.o): Add dep on PASS_MANAGER_H.
18705 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
18706 of early local pases to reflect this moving from a global to a
18707 member of gcc::pass_manager.
18708 (cgraph_add_new_function): Likewise.
18709 * lto-cgraph.c (lto_output_node): Update for conversion of
18710 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
18711 * passes.c (opt_pass::clone): New.
18712 (opt_pass::gate): New.
18713 (opt_pass::execute): New.
18714 (opt_pass::opt_pass): New.
18715 (pass_manager::execute_early_local_passes): New.
18716 (pass_manager::execute_pass_mode_switching): new.
18717 (finish_optimization_passes): Convert to...
18718 (pass_manager::finish_optimization_passes): ...this.
18719 (finish_optimization_passes): Update for conversion of passes to
18721 (register_dump_files_1): Use has_gate since we cannot portably
18722 check a vtable entry against NULL.
18723 (dump_one_pass): Likewise.
18724 (ipa_write_summaries_2): Likewise.
18725 (ipa_write_optimization_summaries_1): Likewise.
18726 (ipa_read_summaries_1): Likewise.
18727 (ipa_read_optimization_summaries_1): Likewise.
18728 (execute_ipa_stmt_fixups): Likewise.
18729 (pass_manager::pass_manager): Rewrite pass-creation, invoking
18730 pass-creation functions rather than wiring up globals, and
18731 storing the results in fields of pass_manager generated using
18732 pass-instances.def.
18733 (pass_manager::dump_profile_report): Update for conversion of
18734 passes to C++ classes.
18735 (pass_manager::execute_ipa_summary_passes): Likewise.
18736 (execute_one_ipa_transform_pass): Likewise.
18737 (execute_one_pass): Use has_gate and has_execute since we cannot
18738 portably check a vtable entry against NULL.
18739 * pass_manager.h (pass_manager::finish_optimization_passes): New.
18740 (pass_manager): Use pass-instances.def to add fields for the
18741 various pass instances.
18742 * toplev.c (finalize): Update for move of
18743 finish_optimization_passes to a method of gcc::pass_manager.
18744 * toplev.h (finish_optimization_passes): Move to method of class
18746 * tree-pass.h (struct pass_data): New.
18747 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
18748 (opt_pass::gate): Convert to virtual function.
18749 (opt_pass::~opt_pass): New.
18750 (opt_pass::clone): New.
18751 (opt_pass::execute): Convert to virtual function.
18752 (opt_pass::opt_pass): New.
18753 (opt_pass::ctxt_): new.
18754 (gimple_opt_pass): Convert to subclass of opt_pass.
18755 (gimple_opt_pass::gimple_opt_pass): New.
18756 (rtl_opt_pass): Convert to subclass of opt_pass.
18757 (rtl_opt_pass::rtl_opt_pass): New.
18758 (ipa_opt_pass_d): Convert to subclass of opt_pass.
18759 (ipa_opt_pass_d::ipa_opt_pass_d): New.
18760 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
18761 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
18762 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
18763 invocation of pass_mode_switching to reflect this moving from a
18764 global to a member of gcc::pass_manager.
18765 (ix86_option_override): Rework how pass_insert_vzeroupper is
18766 added to the pass_manager to reflect autogenerated changes.
18767 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
18769 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
18771 PR rtl-optimization/57708
18772 * recog.c (peep2_find_free_register): Validate all regs in a
18775 2013-08-05 Jan Hubicka <jh@suse.cz>
18778 * cgraph.c (verify_cgraph_node): Accept local flags from other
18780 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
18781 (function_and_variable_visibility): Likewise.
18782 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
18784 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
18786 * graph.c (init_graph_slim_pretty_print): Remove.
18787 (print_graph_cfg): Do not call it. Use local pretty printer.
18788 (start_graph_dump): Likewise.
18790 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
18792 * gimple-pretty-print.c (buffer): Remove.
18793 (initialized): Likewise.
18794 (maybe_init_pretty_print): Likewise.
18795 (print_gimple_stmt): Do not call it. Use non-static local
18796 pretty_printer variable.
18797 (print_gimple_expr): Likewise.
18798 (print_gimple_seq): Likewise.
18799 (gimple_dump_bb): Likewise.
18801 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
18803 * asan.c (asan_pp): Remove.
18804 (asan_pp_initialized): Likewise.
18805 (asan_pp_initialize): Likewise.
18806 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
18807 (asan_emit_stack_protection): Tidy. Use local pretty printer.
18808 (asan_add_global): Likewise.
18810 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
18812 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
18813 * diagnostic.h (diagnostic_flush_buffer): Adjust.
18814 * pretty-print.c (pp_formatted_text_data): Likewise.
18815 (pp_indent): Rename from pp_base_indent.
18816 (pp_format): Rename from pp_base_format.
18817 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
18818 (pp_format_verbatim): Rename from pp_base_format_verbatim.
18819 (pp_flush): Rename from pp_base_flush.
18820 (pp_set_line_maximum_length): Rename from
18821 pp_base_set_line_maximum_length.
18822 (pp_clear_output_area): Rename from pp_base_clear_output_area.
18823 (pp_set_prefix): Rename from pp_base_set_prefix.
18824 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
18825 (pp_emit_prefix): Rename from pp_base_emit_prefix.
18826 (pp_append_text): Rename from pp_base_append_text.
18827 (pp_formatted_text): Rename from pp_base_formatted_text.
18828 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
18829 (pp_remaining_character_count_for_line): Rename from
18830 pp_base_remaining_character_count_for_line.
18831 (pp_newline): Rename from pp_base_newline.
18832 (pp_character): Rename from pp_base_character.
18833 (pp_string): Rename from pp_base_string.
18834 (pp_maybe_space): Rename from pp_base_maybe_space.
18835 * asan.c (asan_pp_string): Adjust.
18836 (asan_emit_stack_protection): Likewise.
18837 (asan_add_global): Likewise.
18838 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
18839 * tree-mudflap.c (mf_varname_tree): Likewise.
18840 * tree-pretty-print.c (pp_tree_identifier): Rename from
18841 pp_base_tree_identifier.
18842 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
18843 Declare as function.
18845 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
18847 * pretty-print.h (pp_bar_bar): New.
18848 (pp_ampersand_ampersand): Likewise.
18849 (pp_less_equal): Likewise.
18850 (pp_greater_equal): Likewise.
18851 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
18852 printer functions instead of pp_string or operators and punctuators.
18853 (dump_gimple_call): Likewise.
18854 (dump_gimple_omp_for): Likewise.
18855 (dump_gimple_transaction): Likewise.
18856 (dump_gimple_phi): Likewise.
18857 (pp_gimple_stmt_1): Likewise.
18858 * sched-vis.c (print_insn): Likewise.
18859 * tree-mudflap.c (mf_varname_tree): Likewise.
18860 * tree-pretty-print.c (dump_block_node): Likewise.
18861 (dump_generic_node): Likewise.
18863 2013-08-02 Jan Hubicka <jh@suse.cz>
18865 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
18867 * lto-streamer-out.c (tree_is_indexable): Results decls and
18868 parm decls are not indexable.
18869 (DFS_write_tree_body): Do not follow args and results.
18870 (hash_tree): Likewise.
18871 (output_functions): Rearrange so struct function is needed
18872 only when real body is output; be able to also ouptut abstract
18873 functions; output DECL_ARGUMENTS and DECL_RESULT.
18874 (lto_output): When not in WPA, ale store abstract functions.
18875 (write_symbol): Do not care about RESULT_DECL.
18876 (output_symbol_p): Handle correctly sbtract decls.
18877 * lto-streamer-in.c (input_function): Rearrange so struct
18878 function can be NULL at entry; allow streaming of
18879 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
18880 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
18881 sanity check during LTO.
18882 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
18883 RESULT_DECl and DECL_ARGUMENTS.
18884 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
18887 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
18889 * pretty-print.h (pp_underscore): New.
18891 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
18892 printer functions instead of pp_character.
18893 (dump_binary_rhs): Likewise.
18894 (dump_ternary_rhs): Likewise.
18895 (dump_gimple_call_args): Likewise.
18896 (pp_points_to_solution): Likewise.
18897 (dump_gimple_call): Likewise.
18898 (dump_gimple_switch): Likewise.
18899 (dump_gimple_cond): Likewise.
18900 (dump_gimple_bind): Likewise.
18901 (dump_gimple_try): Likewise.
18902 (dump_gimple_omp_for): Likewise.
18903 (dump_gimple_omp_continue): Likewise.
18904 (dump_gimple_omp_single): Likewise.
18905 (dump_gimple_omp_sections): Likewise.
18906 (dump_gimple_omp_block): Likewise.
18907 (dump_gimple_omp_critical): Likewise.
18908 (dump_gimple_transaction): Likewise.
18909 (dump_gimple_asm): Likewise.
18910 (dump_gimple_phi): Likewise.
18911 (dump_gimple_omp_parallel): Likewise.
18912 (dump_gimple_omp_task): Likewise.
18913 (dump_gimple_omp_atomic_load): Likewise.
18914 (dump_gimple_omp_atomic_store): Likewise.
18915 (dump_gimple_mem_ops): Likewise.
18916 (pp_gimple_stmt_1): Likewise.
18917 (pp_cfg_jump): Likewise.
18918 (dump_implicit_edges): Likewise.
18919 (gimple_dump_bb_for_graph): Likewise.
18920 * graph.c (draw_cfg_node): Likewise.
18921 * langhooks.c (lhd_print_error_function): Likewise.
18922 * sched-vis.c (print_exp): Likewise.
18923 (print_value): Likewise.
18924 (print_pattern): Likewise.
18925 (print_insn): Likewise.
18926 (rtl_dump_bb_for_graph): Likewise.
18927 * tree-pretty-print.c (dump_function_declaration): Likewise.
18928 (dump_array_domain): Likewise.
18929 (dump_omp_clause): Likewise.
18930 (dump_location): Likewise.
18931 (dump_generic_node): Likewise.
18932 (print_struct_decl): Likewise.
18933 * diagnostic.c (diagnostic_show_locus): Use pp_space.
18935 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18937 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
18938 candidate table when replacing a candidate statement.
18939 (replace_rhs_if_not_dup): Likewise.
18940 (replace_one_candidate): Likewise.
18942 2013-08-02 Jan Hubicka <jh@suse.cz>
18943 Martin Liska <marxin.liska@gmail.com>
18945 * cgraphunit.c (add_new_function): Fix logic when adding from
18947 (assemble_thunk): Rename to ...
18948 (expand_thunk); .. this one; export; get it working with
18949 general functions; make produced gimple valid.
18950 * cgraph.h (expand_thunk): Declare.
18952 2013-08-02 Jan Hubicka <jh@suse.cz>
18954 * ipa-cp.c (gather_context_independent_values): Use
18955 ipa_get_param_move_cost.
18956 (get_replacement_map): Remove PARAM; move parameter folding
18958 (create_specialized_node): Update.
18959 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
18960 assert that we have gimple body; update move_cost.
18961 (count_formal_params): Assert that we have gimple body.
18962 (ipa_dump_param): New function.
18963 (ipa_alloc_node_params): Break out from ...
18964 (ipa_initialize_node_params): ... here.
18965 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
18966 (ipa_write_node_info): Stream move costs.
18967 (ipa_read_node_info): Read move costs.
18968 (ipa_update_after_lto_read): Do not recompute node params.
18969 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
18970 (ipa_get_param): Check we are not in WPA.
18971 (ipa_get_param_move_cost): New.
18972 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
18973 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
18974 parm numbers to be present.
18976 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
18978 PR rtl-optimization/58048
18979 * lra-constraints.c (process_alt_operands): Don't check asm
18980 operand on register.
18982 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
18984 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
18985 the implied StoreLoad barrier for atomic operations if before.
18987 2013-08-02 Jan Hubicka <jh@suse.cz>
18988 Martin Liska <marxin.liska@gmail.com>
18990 * cgraph.c (cgraph_function_body_availability): Do not check
18992 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
18993 symtab_node_availability): Declare.
18994 * ipa.c (can_replace_by_local_alias): New.
18995 (function_and_variable_visibility): Use it.
18996 * symtab.c (symtab_for_node_and_aliases,
18997 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
18999 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
19001 PR rtl-optimization/57963
19002 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
19003 (lra_constraints): Use them.
19005 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
19007 * config/arm/types.md (define_attr "type"): Add "load_acq"
19009 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
19011 (cortex_a53_store1): Likewise.
19013 2013-08-01 Jan Hubicka <jh@suse.cz>
19015 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
19016 partitions are not needed.
19018 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
19020 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
19021 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
19022 MAYBE_NON_Q_CLASS_P where appropriate.
19024 2013-08-01 Jan Hubicka <jh@suse.cz>
19026 * cgraph.h (release_function_body): Declare.
19027 * tree.c (free_lang_data_in_decl): Free, parameters and return values
19028 of unused delcarations.
19030 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19032 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
19033 RTL form when subtracting a constant.
19035 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19037 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
19038 Generate canonical plus rtx with negated immediate instead of minus
19040 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
19042 2013-08-01 Jan Hubicka <jh@suse.cz>
19044 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
19045 (cgraph_release_function_body): Likewise.
19046 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
19047 * cgraph.h (cgrpah_node): Rename abstract_and_needed
19048 to used_as_abstract_origin.
19049 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
19050 symbols used as abstract origins.
19051 * cgraphunit.c (analyze_functions): Update.
19052 * ipa.c (symtab_remove_unreachable_nodes): Recompute
19053 used_as_abstract_origin.
19054 * tree-inline.c (tree_function_versioning): Update
19055 used_as_abstract_origin; be ready for DECL_RESULT and
19056 DECL_ARGUMENTS to be NULL.
19058 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
19059 for abstract functions.
19060 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
19063 2013-08-01 Jan Hubicka <jh@suse.cz>
19065 * profile.c (compute_value_histograms): Fix thinko.
19067 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
19069 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
19070 aarch-common-protos.h to extra_headers.
19071 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
19072 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
19073 * config/aarch64/t-aarch64 (aarch-common.o): Define.
19075 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
19077 * config/aarch64/aarch64.md (define_attr "type"): Delete.
19078 Include "../arm/types.md". Define "type" attribute for all patterns.
19079 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
19082 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
19084 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
19085 to support power8 load fusion.
19086 (fusion_gpr_mem_load): Likewise.
19088 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
19090 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
19091 declarations for power8 load fusion.
19092 (emit_fusion_gpr_load): Likewise.
19094 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19095 tuning for power8, turn on fusion mode by default. Turn on sign
19096 extending fusion mode if normal fusion mode is on, and we are at
19098 (fusion_gpr_load_p): New function, return true if we can fuse an
19099 addis instruction with a dependent load to a GPR.
19100 (emit_fusion_gpr_load): Emit the instructions for power8 load
19103 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
19104 (VSX load fusion peepholes): New peepholes to fuse together an
19105 addi instruction with a VSX load instruction.
19107 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
19108 peepholes to fuse an addis instruction with a load to a GPR base
19109 register. If we are supporting sign extending fusions, convert
19110 sign extending loads to zero extending loads and add an explicit
19113 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
19115 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
19116 aarch-common-protos.h to extra_headers.
19117 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
19118 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
19119 (arm_early_store_addr_dep): Likewise.
19120 (arm_no_early_alu_shift_dep): Likewise.
19121 (arm_no_early_alu_shift_value_dep): Likewise.
19122 (arm_no_early_mul_dep): Likewise.
19123 (arm_no_early_store_addr_dep): Likewise.
19124 (arm_mac_accumulator_is_mul_result): Likewise.
19125 (arm_mac_accumulator_is_result): Likewise.
19126 * config/arm/aarch-common.c: ... here. New file.
19127 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
19129 (arm_early_store_addr_dep): Likewise.
19130 (arm_no_early_alu_shift_dep): Likewise.
19131 (arm_no_early_alu_shift_value_dep): Likewise.
19132 (arm_no_early_mul_dep): Likewise.
19133 (arm_no_early_store_addr_dep): Likewise.
19134 (arm_mac_accumulator_is_mul_result): Likewise.
19135 (arm_mac_accumulator_is_result): Likewise.
19136 * config/arm/aarch-common-protos.h: ... here. New file.
19137 * config/arm/t-arm (aarch-common.o): Define.
19139 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
19141 * config/arm/arm.md: Include new file "types.md".
19142 (define_attr "type"): Move from here to ...
19143 (define_attr "mul32"): Likewise.
19144 (define_attr "mul64"): Likewise.
19145 * config/arm/types.md: ... here. New file.
19147 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
19149 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
19150 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
19152 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19154 * gen-pass-instances.awk: Fix offset of substr().
19156 2013-07-31 David Malcolm <dmalcolm@redhat.com>
19158 * Makefile.in (pass-instances.def): New.
19159 (passes.o): Replace dependency on passes.def with one on
19162 * gen-pass-instances.awk: New.
19164 * passes.c (pass_manager::pass_manager): Use pass-instances.def
19165 rather than passes.def, updating local definition of NEXT_PASS
19166 macro to add an extra NUM parameter (currently unused).
19168 2013-07-30 David Malcolm <dmalcolm@redhat.com>
19170 * Makefile.in (PASS_MANAGER_H): New.
19171 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
19172 (passes.o): Likewise.
19173 (statistics.o): Likewise.
19174 (cgraphunit.o): Likewise.
19175 (context.o): Depend on PASS_MANAGER_H.
19177 * pass_manager.h: New.
19179 * cgraphunit.c (cgraph_add_new_function): Update for moves
19180 of globals to fields of pass_manager.
19181 (analyze_function): Likewise.
19182 (expand_function): Likewise.
19183 (ipa_passes): Likewise.
19184 (compile): Likewise.
19186 * context.c (context::context): New.
19187 * context.h (context::context): New.
19188 (context::get_passes): New.
19189 (context::passes_): New.
19191 * lto-cgraph.c (input_node): Update for moves of globals to
19192 fields of pass_manager.
19194 * passes.c (all_passes): Remove, in favor of a field of the
19195 same name within the new class pass_manager.
19196 (all_small_ipa_passes): Likewise.
19197 (all_lowering_passes): Likewise.
19198 (all_regular_ipa_passes): Likewise.
19199 (all_late_ipa_passes): Likewise.
19200 (all_lto_gen_passes): Likewise.
19201 (passes_by_id): Likewise.
19202 (passes_by_id_size): Likewise.
19203 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19204 the new class pass_manager.
19205 (set_pass_for_id): Convert to...
19206 (pass_manager::set_pass_for_id): ...method.
19207 (get_pass_for_id): Convert to...
19208 (pass_manager::get_pass_for_id): ...method.
19209 (register_one_dump_file): Move body of implementation into...
19210 (pass_manager::register_one_dump_file): ...here.
19211 (register_dump_files_1): Convert to...
19212 (pass_manager::register_dump_files_1): ...method.
19213 (register_dump_files): Convert to...
19214 (pass_manager::register_dump_files): ...method.
19215 (create_pass_tab): Update for moves of globals to fields of
19217 (dump_passes): Move body of implementation into...
19218 (pass_manager::dump_passes): ...here.
19219 (register_pass): Move body of implementation into...
19220 (pass_manager::register_pass): ...here.
19221 (init_optimization_passes): Convert into...
19222 (pass_manager::pass_manager): ...constructor for new
19223 pass_manager class, and initialize the pass_lists array.
19224 (check_profile_consistency): Update for moves of globals to
19225 fields of pass_manager.
19226 (dump_profile_report): Move body of implementation into...
19227 (pass_manager::dump_profile_report): ...here.
19228 (ipa_write_summaries_1): Update for moves of pass lists from
19229 being globals to fields of pass_manager.
19230 (ipa_write_optimization_summaries): Likewise.
19231 (ipa_read_summaries): Likewise.
19232 (ipa_read_optimization_summaries): Likewise.
19233 (execute_all_ipa_stmt_fixups): Likewise.
19235 * statistics.c (statistics_fini): Update for moves of globals to
19236 fields of pass_manager.
19238 * toplev.c (general_init): Replace call to
19239 init_optimization_passes with construction of the pass_manager
19242 * tree-pass.h (all_passes): Remove, in favor of a field of the
19243 same name within the new class pass_manager.
19244 (all_small_ipa_passes): Likewise.
19245 (all_lowering_passes): Likewise.
19246 (all_regular_ipa_passes): Likewise.
19247 (all_lto_gen_passes): Likewise.
19248 (all_late_ipa_passes): Likewise.
19249 (passes_by_id): Likewise.
19250 (passes_by_id_size): Likewise.
19251 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
19252 the new class pass_manager.
19253 (get_pass_for_id): Remove.
19255 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
19257 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
19260 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
19262 * arm.md (mulhi3): New expand pattern.
19264 2013-07-30 Jan Hubicka <jh@suse.cz>
19265 Martin Liska <marxin.liska@gmail.com>
19267 * profile.c (compute_value_histograms): Do not ICE when
19268 there is mismatch only on some counters.
19270 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19272 PR rtl-optimization/57637
19273 * function.c (move_insn_for_shrink_wrap): Also check the
19274 GEN set of the LIVE problem for the liveness analysis
19275 if it exists, otherwise give up.
19277 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19279 PR tree-optimization/57993
19280 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
19281 replaced statement in the candidate table.
19282 (phi_add_costs): Return infinite cost when the hidden basis does
19283 not dominate all phis on which the candidate is dependent.
19284 (replace_one_candidate): Record replaced statement in the
19287 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
19289 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
19290 (ashlv2si3): New expander.
19291 (*ashlv2si3_i): New define_insn_and_split.
19292 * predicates.md (float_operation): Allow patterns with three
19293 basic sub-patterns.
19295 PR rtl-optimization/58021
19296 * mode-switching.c (create_pre_exit): Always split off preceding
19297 insns if we are not at the basic block head.
19299 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
19301 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
19302 (UCLIBC_DYNAMIC_LINKER): New macro.
19303 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
19305 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
19306 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
19308 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
19309 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
19310 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
19311 for SF and DF modes. Use ieee_quad_format for TF mode.
19312 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
19313 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
19314 (mips_option_override): Handle `-mnan=legacy'.
19315 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
19316 `-mabs=2008' and `-mnan=2008'.
19317 (OPTION_DEFAULT_SPECS): Add "nan" default.
19318 (ASM_SPEC): Handle `-mnan='.
19319 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
19320 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
19321 comment accordingly.
19322 (neg<mode>2): Likewise.
19323 * config/mips/mips.opt (mabs, mnan): New options.
19324 * doc/install.texi (Configuration): Document `--with-nan=' option.
19325 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
19327 (MIPS Options): Document them.
19328 * config.gcc <mips*-*-*>: Handle `--with-nan='.
19329 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
19330 * configure: Regenerate.
19331 * config.in: Regenerate.
19333 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
19335 * config/i386/i386.md (float post-reload splitters): Do not check
19336 for subregs of SSE registers.
19338 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
19339 H.J. Lu <hongjiu.lu@intel.com>
19343 * config/i386/i386.md (post-reload splitter
19344 to avoid partial SSE reg dependency stalls): New pattern.
19346 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
19348 * config/s390/s390.md ("movcc"): Swap load and store instructions.
19350 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
19352 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
19353 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
19355 2013-07-26 Cary Coutant <ccoutant@google.com>
19357 * dwarf2out.c (die_checksum_ordered): Don't include template
19358 instantiations in signature.
19359 (is_template_parameter): New function.
19360 (is_template_instantiation): New function.
19361 (generate_skeleton_bottom_up): Don't include template instantiations
19363 (generate_skeleton): Likewise.
19364 (break_out_comdat_types): Move recursive call to break out nested
19366 (prune_unused_types_mark_generic_parms_dies): Call
19367 is_template_parameter.
19369 2013-07-26 Ian Bolton <ian.bolton@arm.com>
19371 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
19372 uses vector registers.
19373 * config/aarch64/iterators.md: Add attributes rtn and vas.
19375 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19376 Richard Earnshaw <richard.earnshaw@arm.com>
19378 * combine.c (simplify_comparison): Re-canonicalize operands
19380 * config/arm/arm.md (movcond_addsi): New splitter.
19382 2013-07-25 Sterling Augustine <saugustine@google.com>
19384 * dwarf2out.c (size_of_pubnames): Move code to...
19385 (include_pubname_in_output): ...here. New.
19386 (want_pubnames): Rearrange.
19387 (output_pubnames): Call include_pubname_in_output. Move assertion.
19389 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
19391 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
19393 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
19396 * doc/extend.texi: Remove obsolete builtins. Fix
19397 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
19399 2013-07-25 Jan Hubicka <jh@suse.cz>
19401 * cgraph.c (release_function_body): Break out from ...
19402 (cgraph_release_function_body): ... this one; also release DECL_RESULT
19403 and DECL_ARGUMENTS.
19404 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
19405 old_tree in the map.
19406 (create_specialized_node): Update.
19407 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
19409 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
19410 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
19411 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
19412 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
19415 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19417 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
19418 addsi3_carryin_alt2_<optab>): Correct output template.
19420 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19422 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
19423 Adjust for arm_restrict_it.
19424 Remove trailing whitespace.
19426 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
19428 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
19429 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
19431 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
19433 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
19435 PR rtl-optimization/57960
19436 * lra-constraints.c (process_alt_operands): Use the right mode
19437 when checking strict_low.
19439 2013-07-25 Jan Hubicka <jh@suse.cz>
19441 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
19442 * cgraph.c (cgraph_remove_node): Do not release function body
19443 when in cgraph streaming.
19444 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
19445 in other partitions are not considered reachable; fix handling of
19448 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19450 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
19452 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19457 * config/arm/arm.md ("*sibcall_insn): Replace use of
19458 Ss with US. Adjust output for v5 and v4t.
19459 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
19461 * config/arm/constraints.md ("Ss"): Rename to US.
19463 2013-07-25 Terry Guo <terry.guo@arm.com>
19465 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
19466 shift_add/shift_sub0/shift_sub1 RTXs.
19468 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
19469 Anton Blanchard <anton@au1.ibm.com>
19471 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
19472 (altivec_vpks<VI_char>ss): Likewise.
19473 (altivec_vpks<VI_char>us): Likewise.
19474 (altivec_vpku<VI_char>us): Likewise.
19475 (altivec_vpku<VI_char>um): Likewise.
19477 2013-07-24 David Malcolm <dmalcolm@redhat.com>
19479 Introduce context class.
19481 * Makefile.in (CONTEXT_H): New.
19482 (OBJS): Add context.o.
19483 (toplev.o): Add CONTEXT_H to dependencies.
19486 * toplev.c (general_init): Create the singleton gcc::context instance.
19492 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
19494 PR rtl-optimization/57968
19495 * mode-switching.c (create_pre_exit): Allow instructions that
19496 don't set a return register to need a non-exit mode.
19498 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19499 Anton Blanchard <anton@au1.ibm.com>
19501 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
19502 operands to vperm for little endian.
19503 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
19504 of lvsl to create the control mask for a vperm for little endian.
19506 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19507 Anton Blanchard <anton@au1.ibm.com>
19509 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
19510 two operands for little-endian.
19512 2013-07-23 Steve Ellcey <sellcey@mips.com>
19514 * config/mips/mips.c (mips_case_values_threshold): New.
19515 (TARGET_CASE_VALUES_THRESHOLD): Define.
19517 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19518 Anton Blanchard <anton@au1.ibm.com>
19520 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
19521 selection of field for vector splat in little endian mode.
19523 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19525 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
19526 expanders to rs6000.md.
19527 (ior<mode>3): Likewise.
19528 (and<mode>3): Likewise.
19529 (one_cmpl<mode>2): Likewise.
19530 (nor<mode>3): Likewise.
19531 (andc<mode>3): Likewise.
19532 (eqv<mode>3): Likewise.
19533 (nand<mode>3): Likewise.
19534 (orc<mode>3): Likewise.
19536 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
19539 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
19540 to split multi-word logical operations.
19541 (rs6000_split_logical_di): Likewise.
19542 (rs6000_split_logical): Likewise.
19544 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
19545 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
19546 and allow TImode operations in 32-bit.
19547 (vsx_and<mode>3_64bit): Likewise.
19548 (vsx_ior<mode>3_32bit): Likewise.
19549 (vsx_ior<mode>3_64bit): Likewise.
19550 (vsx_xor<mode>3_32bit): Likewise.
19551 (vsx_xor<mode>3_64bit): Likewise.
19552 (vsx_one_cmpl<mode>2_32bit): Likewise.
19553 (vsx_one_cmpl<mode>2_64bit): Likewise.
19554 (vsx_nor<mode>3_32bit): Likewise.
19555 (vsx_nor<mode>3_64bit): Likewise.
19556 (vsx_andc<mode>3_32bit): Likewise.
19557 (vsx_andc<mode>3_64bit): Likewise.
19558 (vsx_eqv<mode>3_32bit): Likewise.
19559 (vsx_eqv<mode>3_64bit): Likewise.
19560 (vsx_nand<mode>3_32bit): Likewise.
19561 (vsx_nand<mode>3_64bit): Likewise.
19562 (vsx_orc<mode>3_32bit): Likewise.
19563 (vsx_orc<mode>3_64bit): Likewise.
19565 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
19566 logical types in GPRs.
19568 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
19569 logical insns to rs6000.md, and allow TImode operations in
19571 (altivec_ior<mode>3): Likewise.
19572 (altivec_xor<mode>3): Likewise.
19573 (altivec_one_cmpl<mode>2): Likewise.
19574 (altivec_nor<mode>3): Likewise.
19575 (altivec_andc<mode>3): Likewise.
19577 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
19578 attributes for moving the 128-bit logical operations into
19580 (BOOL_REGS_OUTPUT): Likewise.
19581 (BOOL_REGS_OP1): Likewise.
19582 (BOOL_REGS_OP2): Likewise.
19583 (BOOL_REGS_UNARY): Likewise.
19584 (BOOL_REGS_AND_CR0): Likewise.
19585 (one_cmpl<mode>2): Add support for DI logical operations on
19586 32-bit, splitting the operations to 32-bit.
19587 (anddi3): Likewise.
19588 (iordi3): Likewise.
19589 (xordi3): Likewise.
19590 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
19591 changes to combine the 32/64-bit code, allow logical operations on
19592 TI mode in 32-bit, and to use similar match_operator patterns like
19593 scalar mode uses. Combine the Altivec and VSX code for logical
19594 operations, and move it here.
19595 (ior<mode>3, 128-bit types): Likewise.
19596 (xor<mode>3, 128-bit types): Likewise.
19597 (one_cmpl<mode>3, 128-bit types): Likewise.
19598 (nor<mode>3, 128-bit types): Likewise.
19599 (andc<mode>3, 128-bit types): Likewise.
19600 (eqv<mode>3, 128-bit types): Likewise.
19601 (nand<mode>3, 128-bit types): Likewise.
19602 (orc<mode>3, 128-bit types): Likewise.
19603 (and<mode>3_internal): Likewise.
19604 (bool<mode>3_internal): Likewise.
19605 (boolc<mode>3_internal1): Likewise.
19606 (boolc<mode>3_internal2): Likewise.
19607 (boolcc<mode>3_internal1): Likewise.
19608 (boolcc<mode>3_internal2): Likewise.
19609 (eqv<mode>3_internal1): Likewise.
19610 (eqv<mode>3_internal2): Likewise.
19611 (one_cmpl1<mode>3_internal): Likewise.
19613 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
19615 * config/microblaze/microblaze.c (microblaze_expand_prologue):
19616 Rename flag_stack_usage to flag_stack_usage_info.
19618 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
19620 * config/microblaze/sync.md: New file.
19621 * config/microblaze/microblaze.md: Include sync.md
19622 * config/microblaze/microblaze.c: Add print_operand 'y'.
19623 * config/microblaze/constraints.md: Add memory_contraint
19624 'Q' which is a single register.
19626 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
19628 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
19630 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
19632 * reload.c (find_reloads): Exit loop once we find this operand
19633 cannot be reloaded somehow for this alternative.
19635 * reload.c (find_reloads): Exit loop once we find a hard register.
19637 * rtlanal.c (computed_jump_p): Exit loop once we find label
19640 * i386.c (ix86_pad_returns): Exit loop after setting replace.
19642 * cfgloopmanip.c (remove_path): Exit loop after setting
19645 * gensupport.c (subst_dup): Avoid loop if code is not
19646 MATCH_DUP nor MATCH_OP_DUP.
19648 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
19650 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
19652 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19654 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
19655 true for SP_REGNUM if mode == ptr_mode.
19656 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
19657 with value R0_REGNUM + 31.
19659 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19661 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
19662 pad pointer-typed argument downward.
19664 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19666 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
19667 and __ILP32__ when the ILP32 model is in use.
19669 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19671 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
19672 (aarch64_load_symref_appropriately): In the case of
19673 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
19674 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
19675 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
19676 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
19677 if 'mode' doesn't equal to 'ptr_mode'.
19678 (aarch64_output_mi_thunk): Add an assertion on the alignment of
19679 'vcall_offset'; change to call aarch64_emit_move differently depending
19680 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
19681 to calculate the upper bound of 'vcall_offset'.
19682 (aarch64_cannot_force_const_mem): Change to also return true if
19684 (aarch64_legitimize_reload_address): In the case of large
19685 displacements, add new local variable 'xmode' and an assertion
19686 based on it; change to use 'xmode' to generate the new rtx and
19688 (aarch64_asm_trampoline_template): Change to generate the template
19689 differently depending on TARGET_ILP32 or not; change to use
19690 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
19691 (aarch64_trampoline_size): Removed.
19692 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
19693 and replace immediate literals with it. Change to use 'ptr_mode'
19694 instead of 'DImode' and call convert_memory_address if the mode
19695 of 'fnaddr' doesn't equal to 'ptr_mode'.
19696 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
19698 (aarch64_elf_asm_destructor): Likewise.
19699 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
19700 on TARGET_ILP32 instead of aarch64_trampoline_size.
19701 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
19702 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
19703 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
19704 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
19705 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
19706 (storewb_pair<GPI:mode>_<P:mode>): ... this.
19707 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
19708 depending on the value of 'mode'.
19709 (add_losym_<mode>): New.
19710 (ldr_got_small_<mode>): New, based on ldr_got_small.
19711 (ldr_got_small): Remove.
19712 (ldr_got_small_sidi): New.
19713 * config/aarch64/iterators.md (P): New.
19714 (PTR): Change to 'ptr_mode' in the condition.
19716 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
19718 * config.gcc (aarch64*-*-*): Support --with-abi.
19719 (aarch64*-*-elf): Support --with-multilib-list.
19720 (aarch64*-*-linux*): Likewise.
19721 (supported_defaults): Add abi to aarch64*-*-*.
19722 * configure.ac: Mention AArch64 for --with-multilib-list.
19723 * configure: Re-generated.
19724 * config/aarch64/biarchilp32.h: New file.
19725 * config/aarch64/biarchlp64.h: New file.
19726 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
19728 (MULTILIB_DEFAULTS): Ditto.
19729 (DRIVER_SELF_SPECS): Ditto.
19730 (ASM_SPEC): Update to also substitute -mabi.
19731 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
19732 file whose name depends on -mabi= and -mbig-endian.
19733 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
19735 (POINTER_SIZE): New define.
19736 (POINTERS_EXTEND_UNSIGNED): Ditto.
19737 (enum aarch64_abi_type): New enumeration tag.
19738 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
19739 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
19740 (TARGET_ILP32): New define.
19741 * config/aarch64/aarch64.opt (mabi): New.
19742 (aarch64_abi): New.
19743 (ilp32, lp64): New values for -mabi.
19744 * config/aarch64/t-aarch64 (comma): New define.
19745 (MULTILIB_OPTIONS): Ditto.
19746 (MULTILIB_DIRNAMES): Ditto.
19747 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
19748 * doc/invoke.texi: Document -mabi for AArch64.
19750 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
19752 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
19754 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19755 Anton Blanchard <anton@au1.ibm.com>
19757 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
19758 endianness when selecting field to splat.
19760 2013-07-22 Eric Christopher <echristo@gmail.com>
19762 * dwarf2out.c (die_odr_checksum): New function to use
19763 CHECKSUM_ macros and ULEB128 for DIE tag.
19764 (generate_type_signature): Use.
19766 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
19768 * config.gcc (sparc*-*-*): Accept leon3 processor.
19769 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
19770 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
19771 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
19772 * config/sparc/sparc.opt (enum processor_type): Add leon3.
19773 (mfix-ut699): Adjust comment.
19774 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
19775 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
19776 (CPP_CPU_SPEC): Likewise.
19777 (ASM_CPU_SPEC): Likewise.
19778 * config/sparc/sparc.c (leon3_cost): New constant.
19779 (sparc_option_override): Add leon3 support.
19780 (mem_ref): New function.
19781 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
19782 (sparc_do_work_around_errata): Look into the instruction in the delay
19783 slot and adjust accordingly. Add fix for the data cache nullify issues
19784 of the UT699. Change insertion position for the NOP.
19785 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
19786 (leon3_load): New reservation.
19787 (leon_store): Bump latency to 2.
19788 (grfpu): New automaton.
19789 (grfpu_alu): New unit.
19790 (grfpu_ds): Likewise.
19791 (leon_fp_alu): Adjust.
19792 (leon_fp_mult): Delete.
19793 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
19794 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
19795 * config/sparc/sparc.md (cpu): Add leon3.
19796 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
19797 (swapsi): Likewise.
19798 (atomic_test_and_set): Likewise.
19799 (ldstub): Likewise.
19801 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
19803 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
19804 default for R5900 targets.
19805 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
19806 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
19807 * config/mips/mips.c (mips_option_override): Report an error for
19808 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
19809 for -march=r5900 -mhard-float.
19811 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
19813 * df-problems.c (can_move_insns_across): Exit loop once we
19814 find a non-fixed, non-global register.
19816 * ipa-pure-const.c (propagate_nothrow): Exit loop after
19819 * omega.c (omega_eliminate_red): Break after setting red_found.
19820 (omega_problem_has_red_equations): Similarly after setting found.
19821 (omega_query_variable): Similarly after setting coupled.
19823 2013-07-22 Marek Polacek <polacek@redhat.com>
19825 * gimplify.c: Don't include gimple.h twice.
19827 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19829 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
19830 instead of TARGET_THUMB1.
19831 (Pz): New constraint.
19832 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
19834 (compare_negsi_si): Likewise.
19835 (compare_addsi2_op0): Likewise.
19836 (compare_addsi2_op1): Likewise.
19837 (addsi3_carryin_<optab>): Likewise.
19838 (addsi3_carryin_alt2_<optab>): Likewise.
19839 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
19840 for arm_restrict_it.
19841 (subsi3_carryin): Likewise.
19842 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
19843 (minmax_arithsi): Disable for arm_restrict_it.
19844 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
19845 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
19846 (satsi_<SAT:code>_shift): Likewise.
19847 (arm_shiftsi3): Add alternative for 16-bit encoding.
19848 (arm32_movhf): Disable for arm_restrict_it.
19849 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
19850 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
19852 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
19854 * config/arm/arm.md (attribute "insn"): Delete.
19855 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
19856 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
19857 (not_shiftsi): Update for attribute change.
19858 (not_shiftsi_compare0): Likewise.
19859 (not_shiftsi_compare0_scratch): Likewise.
19860 (arm_one_cmplsi2): Likewise.
19861 (thumb1_one_cmplsi2): Likewise.
19862 (notsi_compare0): Likewise.
19863 (notsi_compare0_scratch): Likewise.
19864 (thumb1_movdi_insn): Likewise.
19865 (arm_movsi_insn): Likewise.
19866 (movhi_insn_arch4): Likewise.
19867 (movhi_bytes): Likewise.
19868 (arm_movqi_insn): Likewise.
19869 (thumb1_movqi_insn): Likewise.
19870 (arm32_movhf): Likewise.
19871 (thumb1_movhf): Likewise.
19872 (arm_movsf_soft_insn): Likewise.
19873 (thumb1_movsf_insn): Likewise.
19874 (thumb_movdf_insn): Likewise.
19875 (movsicc_insn): Likewise.
19876 (movsfcc_soft_insn): Likewise.
19877 (and_scc): Likewise.
19878 (cond_move): Likewise.
19879 (if_move_not): Likewise.
19880 (if_not_move): Likewise.
19881 (if_shift_move): Likewise.
19882 (if_move_shift): Likewise.
19883 (if_shift_shift): Likewise.
19884 (if_not_arith): Likewise.
19885 (if_arith_not): Likewise.
19886 (cond_move_not): Likewise.
19887 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
19888 (neon_mov<mode>): Likewise.
19889 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
19890 (thumb2_movsi_vfp): Likewise.
19891 (movsf_vfp): Likewise.
19892 (thumb2_movsf_vfp): Likewise.
19893 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
19895 (cortexa7_older_only): Likewise.
19896 (cortexa7_younger): Likewise.
19897 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
19898 (1020alu_shift_op): Likewise.
19899 (1020alu_shift_reg_op): Likewise.
19900 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
19901 (alu_shift_op): Likewise.
19902 (alu_shift_reg_op): Likewise.
19903 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
19904 (11_alu_shift_op): Likewise.
19905 (11_alu_shift_reg_op): Likewise.
19906 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
19907 (9_alu_shift_reg_op): Likewise.
19908 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19910 (cortex_a15_alu_shift): Likewise.
19911 (cortex_a15_alu_shift_reg): Likewise.
19912 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
19913 (cortex_a5_alu_shift): Likewise.
19914 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
19916 (cortex_a53_alu_shift): Likewise.
19917 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
19919 (cortex_a7_alu_reg): Likewise.
19920 (cortex_a7_alu_shift): Likewise.
19921 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19922 (cortex_a8_alu_shift): Likewise.
19923 (cortex_a8_alu_shift_reg): Likewise.
19924 (cortex_a8_mov): Likewise.
19925 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19926 (cortex_a9_dp_shift): Likewise.
19927 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
19928 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
19929 (cortex_r4_mov): Likewise.
19930 (cortex_r4_alu_shift): Likewise.
19931 (cortex_r4_alu_shift_reg): Likewise.
19932 * config/arm/fa526.md (526_alu_op): Update for attribute change.
19933 (526_alu_shift_op): Likewise.
19934 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
19935 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
19936 (626te_alu_shift_op): Likewise.
19937 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
19938 (726te_alu_op): Likewise.
19939 (726te_alu_shift_op): Likewise.
19940 (726te_alu_shift_reg_op): Likewise.
19941 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
19942 (mp626_alu_shift_op): Likewise.
19943 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
19944 (pj4_alu_e1_conds): Likewise.
19945 (pj4_alu): Likewise.
19946 (pj4_alu_conds): Likewise.
19947 (pj4_shift): Likewise.
19948 (pj4_shift_conds): Likewise.
19949 (pj4_alu_shift): Likewise.
19950 (pj4_alu_shift_conds): Likewise.
19952 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19954 * config/arm/predicates.md (shiftable_operator_strict_it):
19956 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
19957 Disable cond_exec version for arm_restrict_it.
19958 (thumb2_smaxsi3): Convert to generate cond_exec.
19959 (thumb2_sminsi3): Likewise.
19960 (thumb32_umaxsi3): Likewise.
19961 (thumb2_uminsi3): Likewise.
19962 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
19963 (thumb2_neg_abssi2): Likewise.
19964 (thumb2_mov_scc): Add alternative for 16-bit encoding.
19965 (thumb2_movsicc_insn): Adjust alternatives.
19966 (thumb2_mov_negscc): Disable for arm_restrict_it.
19967 (thumb2_mov_negscc_strict_it): New pattern.
19968 (thumb2_mov_notscc_strict_it): New pattern.
19969 (thumb2_mov_notscc): Disable for arm_restrict_it.
19970 (thumb2_ior_scc): Likewise.
19971 (thumb2_ior_scc_strict_it): New pattern.
19972 (thumb2_cond_move): Adjust for arm_restrict_it.
19973 (thumb2_cond_arith): Disable for arm_restrict_it.
19974 (thumb2_cond_arith_strict_it): New pattern.
19975 (thumb2_cond_sub): Adjust for arm_restrict_it.
19976 (thumb2_movcond): Likewise.
19977 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
19978 (thumb2_zero_extendhisi2_v6): Likewise.
19979 (thumb2_zero_extendqisi2_v6): Likewise.
19980 (orsi_notsi_si): Likewise.
19981 (orsi_not_shiftsi_si): Likewise.
19983 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
19985 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
19986 instruction sequence is 1 byte shorter.
19988 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
19990 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
19991 it is not needed after split.
19993 2013-07-20 Iain Sandoe <iain@codesourcery.com>
19996 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
19997 second label for nonlocal goto receivers. Don't output pic base labels
19998 unless we're producing PIC; mark that action unreachable().
19999 (ix86_save_reg): If the function contains a nonlocal label, save the
20001 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
20002 * config/darwin.c (emitted_pic_label_num): New GTY.
20003 (update_pic_label_number_if_needed): New.
20004 (machopic_output_function_base_name): Adjust for nonlocal receiver
20006 (machopic_should_output_picbase_label): New.
20007 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
20008 (nonlocal_goto_receiver): New insn and split.
20010 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
20012 * config/aarch64/aarch64-builtins.c
20013 (aarch64_fold_builtin): Fold abs in all modes.
20014 * config/aarch64/aarch64-simd-builtins.def
20015 (abs): Enable for all modes.
20016 * config/aarch64/arm_neon.h
20017 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
20018 (vabs_f64): Add missing intrinsic.
20020 2013-07-19 Ian Bolton <ian.bolton@arm.com>
20022 * config/aarch64/arm_neon.h (vabs_s64): New function
20024 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
20027 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
20028 * config/avr/avr.md (adjust_len): Add `round'.
20029 * config/avr/avr-protos.h (avr_out_round): New prototype.
20030 (avr_out_plus): Add `out_label' argument.
20031 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
20032 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
20033 Handle the case where `insn' is just a pattern.
20034 (avr_out_bitop): Handle the case where `insn' is just a pattern.
20035 (avr_out_round): New function.
20036 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
20038 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
20040 * config/microblaze/microblaze.c (microblaze_expand_prologue):
20041 Add check for flag_stack_usage to handle -fstack-usage support
20043 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
20045 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
20046 interaction for new Power8 flags and VSX.
20048 2013-07-18 Sriraman Tallam <tmsriram@google.com>
20050 PR middle-end/57698
20051 * tree-inline.c (expand_call_inline): Emit errors during
20052 early_inlining only if optimization is not turned on.
20054 2013-07-18 David Malcolm <dmalcolm@redhat.com>
20058 * passes.c (init_optimization_passes): Move the construction of
20059 the pass hierarchy into a new passes.def file.
20061 * Makefile.in (passes.o): Add dependency on passes.def.
20063 2013-07-18 David Malcolm <dmalcolm@redhat.com>
20065 * passes.c (init_optimization_passes): Introduce macros for
20066 constructing the tree of passes (INSERT_PASSES_AFTER,
20067 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
20068 TERMINATE_PASS_LIST).
20070 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
20071 Wei Mi <wmi@google.com>
20073 PR rtl-optimization/57878
20074 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
20076 (reload_pseudo_compare_func): Check nregs first for reload
20079 2013-07-18 David Malcolm <dmalcolm@redhat.com>
20081 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
20083 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
20085 * read-rtl.c (validate_const_int): Once an invalid character is
20086 seen, quit the loop.
20088 * gengtype.c (write_roots): Similarly once we find the "deletable"
20089 or "if_marked" option.
20091 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
20093 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
20094 "xtab" and "sat". Move value "clz" from here to ...
20095 (attriubte "type"): ... here.
20096 (satsi_<SAT:code>): Delete "insn" attribute.
20097 (satsi_<SAT:code>_shift): Likewise.
20098 (arm_zero_extendqisi2addsi): Likewise.
20099 (arm_extendqisi2addsi): Likewise.
20100 (clzsi2): Update for attribute changes.
20101 (rbitsi2): Likewise.
20102 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
20104 (arm_usatsihi): Likewise.
20105 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
20107 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
20109 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
20110 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
20111 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
20112 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
20113 in alphabetical order.
20114 (attribute "core_cycles"): Update for attribute changes.
20115 (arm_addsi3): Likewise.
20116 (addsi3_compare0): Likewise.
20117 (addsi3_compare0_scratch): Likewise.
20118 (addsi3_compare_op1): Likewise.
20119 (addsi3_compare_op2): Likewise.
20120 (compare_addsi2_op0): Likewise.
20121 (compare_addsi2_op1): Likewise.
20122 (addsi3_carryin_shift_<optab>): Likewise.
20123 (subsi3_carryin_shift): Likewise.
20124 (rsbsi3_carryin_shift): Likewise.
20125 (arm_subsi3_insn): Likewise.
20126 (subsi3_compare0): Likewise.
20127 (subsi3_compare): Likewise.
20128 (arm_andsi3_insn): Likewise.
20129 (thumb1_andsi3_insn): Likewise.
20130 (andsi3_compare0): Likewise.
20131 (andsi3_compare0_scratch): Likewise.
20132 (zeroextractsi_compare0_scratch
20133 (andsi_not_shiftsi_si): Likewise.
20134 (iorsi3_insn): Likewise.
20135 (iorsi3_compare0): Likewise.
20136 (iorsi3_compare0_scratch): Likewise.
20137 (arm_xorsi3): Likewise.
20138 (thumb1_xorsi3_insn): Likewise.
20139 (xorsi3_compare0): Likewise.
20140 (xorsi3_compare0_scratch): Likewise.
20141 (satsi_<SAT:code>_shift): Likewise.
20143 (arm_shiftsi3): Likewise.
20144 (shiftsi3_compare0): Likewise.
20145 (not_shiftsi): Likewise.
20146 (not_shiftsi_compare0): Likewise.
20147 (not_shiftsi_compare0_scratch): Likewise.
20148 (arm_one_cmplsi2): Likewise.
20149 (thumb_one_complsi2): Likewise.
20150 (notsi_compare0): Likewise.
20151 (notsi_compare0_scratch): Likewise.
20152 (thumb1_zero_extendhisi2): Likewise.
20153 (arm_zero_extendhisi2): Likewise.
20154 (arm_zero_extendhisi2_v6): Likewise.
20155 (arm_zero_extendhisi2addsi): Likewise.
20156 (thumb1_zero_extendqisi2): Likewise.
20157 (thumb1_zero_extendqisi2_v6): Likewise.
20158 (arm_zero_extendqisi2): Likewise.
20159 (arm_zero_extendqisi2_v6): Likewise.
20160 (arm_zero_extendqisi2addsi): Likewise.
20161 (thumb1_extendhisi2): Likewise.
20162 (arm_extendhisi2): Likewise.
20163 (arm_extendhisi2_v6): Likewise.
20164 (arm_extendqisi): Likewise.
20165 (arm_extendqisi_v6): Likewise.
20166 (arm_extendqisi2addsi): Likewise.
20167 (thumb1_extendqisi2): Likewise.
20168 (thumb1_movdi_insn): Likewise.
20169 (arm_movsi_insn): Likewise.
20170 (movsi_compare0): Likewise.
20171 (movhi_insn_arch4): Likewise.
20172 (movhi_bytes): Likewise.
20173 (arm_movqi_insn): Likewise.
20174 (thumb1_movqi_insn): Likewise.
20175 (arm32_movhf): Likewise.
20176 (thumb1_movhf): Likewise.
20177 (arm_movsf_soft_insn): Likewise.
20178 (thumb1_movsf_insn): Likewise.
20179 (movdf_soft_insn): Likewise.
20180 (thumb_movdf_insn): Likewise.
20181 (arm_cmpsi_insn): Likewise.
20182 (cmpsi_shiftsi): Likewise.
20183 (cmpsi_shiftsi_swp): Likewise.
20184 (arm_cmpsi_negshiftsi_si): Likewise.
20185 (movsicc_insn): Likewise.
20186 (movsfcc_soft_insn): Likewise.
20187 (arith_shiftsi): Likewise.
20188 (arith_shiftsi_compare0
20189 (arith_shiftsi_compare0_scratch
20190 (sub_shiftsi): Likewise.
20191 (sub_shiftsi_compare0
20192 (sub_shiftsi_compare0_scratch
20193 (and_scc): Likewise.
20194 (cond_move): Likewise.
20195 (if_plus_move): Likewise.
20196 (if_move_plus): Likewise.
20197 (if_move_not): Likewise.
20198 (if_not_move): Likewise.
20199 (if_shift_move): Likewise.
20200 (if_move_shift): Likewise.
20201 (if_shift_shift): Likewise.
20202 (if_not_arith): Likewise.
20203 (if_arith_not): Likewise.
20204 (cond_move_not): Likewise.
20205 (thumb1_ashlsi3): Set type attribute.
20206 (thumb1_ashrsi3): Likewise.
20207 (thumb1_lshrsi3): Likewise.
20208 (thumb1_rotrsi3): Likewise.
20209 (shiftsi3_compare0_scratch): Likewise.
20210 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
20211 (neon_mov<mode>): Likewise.
20212 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
20214 (thumb2_movsi_insn): Likewise.
20215 (thumb2_cmpsi_neg_shiftsi): Likewise.
20216 (thumb2_extendqisi_v6): Likewise.
20217 (thumb2_zero_extendhisi2_v6): Likewise.
20218 (thumb2_zero_extendqisi2_v6): Likewise.
20219 (thumb2_shiftsi3_short): Likewise.
20220 (thumb2_addsi3_compare0_scratch): Likewise.
20221 (orsi_not_shiftsi_si): Likewise.
20222 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
20223 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
20225 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
20226 (1020alu_shift_op): Likewise.
20227 (1020alu_shift_reg_op): Likewise.
20228 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
20229 (alu_shift_op): Likewise.
20230 (alu_shift_reg_op): Likewise.
20231 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
20232 (11_alu_shift_op): Likewise.
20233 (11_alu_shift_reg_op): Likewise.
20234 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
20235 (9_alu_shift_reg_op): Likewise.
20236 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
20238 (cortex_a15_alu_shift): Likewise.
20239 (cortex_a15_alu_shift_reg): Likewise.
20240 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
20242 (cortex_a5_alu_shift): Likewise.
20243 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
20245 (cortex_a53_alu_shift): Likewise.
20246 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
20248 (cortex_a7_alu_reg): Likewise.
20249 (cortex_a7_alu_shift): Likewise.
20250 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
20252 (cortex_a8_alu_shift): Likewise.
20253 (cortex_a8_alu_shift_reg): Likewise.
20254 (cortex_a8_mov): Likewise.
20255 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
20256 (cortex_a9_dp_shift): Likewise.
20257 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
20259 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
20261 (cortex_r4_mov): Likewise.
20262 (cortex_r4_alu_shift): Likewise.
20263 (cortex_r4_alu_shift_reg): Likewise.
20264 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
20265 (526_alu_shift_op): Likewise.
20266 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
20267 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
20268 (626te_alu_shift_op): Likewise.
20269 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
20270 (726te_alu_op): Likewise.
20271 (726te_alu_shift_op): Likewise.
20272 (726te_alu_shift_reg_op): Likewise.
20273 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
20274 (mp626_alu_shift_op): Likewise.
20275 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
20276 (pj4_alu_e1_conds): Likewise.
20277 (pj4_alu): Likewise.
20278 (pj4_alu_conds): Likewise.
20279 (pj4_shift): Likewise.
20280 (pj4_shift_conds): Likewise.
20281 (pj4_alu_shift): Likewise.
20282 (pj4_alu_shift_conds): Likewise.
20283 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
20285 (cortexa7_older_only): Likewise.
20286 (cortexa7_younger): Likewise.
20288 2013-07-18 David Malcolm <dmalcolm@redhat.com>
20290 * ipa-pure-const.c (generate_summary): Rename to...
20291 (pure_const_generate_summary): ... this.
20293 2013-07-17 Iain Sandoe <iain@codesourcery.com>
20295 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
20297 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
20300 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
20303 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20305 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
20306 enabled without -march=zEC12.
20307 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
20310 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
20312 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
20313 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
20314 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
20315 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
20316 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
20317 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
20318 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
20320 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
20321 and ISA_HAS_NMADD3_NMSUB3.
20322 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
20323 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
20324 (nmsub4<mode>, nmsub3<mode>): Likewise.
20325 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
20327 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
20329 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
20330 TARGET_MIPS5400 checking.
20332 2013-07-16 Jakub Jelinek <jakub@redhat.com>
20333 Peter Bergner <bergner@vnet.ibm.com>
20335 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
20336 registers in the comment.
20337 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
20338 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
20339 rather than FIRST_PSEUDO_REGISTERS.
20341 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
20343 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
20344 enable extra ISA flags with TARGET_HTM.
20346 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
20348 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
20351 2013-07-15 Cong Hou <congh@google.com>
20353 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
20354 in compare function for sorting.
20356 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
20358 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
20359 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
20360 * config/rs6000/rs6000.opt: Add -mhtm option.
20361 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
20362 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
20363 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
20364 __HTM__ if the HTM instructions are available.
20365 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
20366 htm_spr_reg_operand): New define_predicates.
20367 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
20368 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
20370 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
20371 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
20372 HTM builtin functions.
20373 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
20374 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
20375 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
20376 (rs6000_builtin_mask_calculate): Likewise.
20377 (rs6000_option_override_internal): Likewise.
20378 (bdesc_htm): Add new HTM builtin support.
20379 (htm_spr_num): New function.
20380 (htm_spr_regno): Likewise.
20381 (rs6000_htm_spr_icode): Likewise.
20382 (htm_expand_builtin): Likewise.
20383 (htm_init_builtins): Likewise.
20384 (rs6000_expand_builtin): Add support for HTM builtin functions.
20385 (rs6000_init_builtins): Likewise.
20386 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
20388 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
20389 (TARGET_HTM, MASK_HTM): Define macros.
20390 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
20391 (FIXED_REGISTERS): Likewise.
20392 (CALL_USED_REGISTERS): Likewise.
20393 (CALL_REALLY_USED_REGISTERS): Likewise.
20394 (REG_ALLOC_ORDER): Likewise.
20395 (enum reg_class): Likewise.
20396 (REG_CLASS_NAMES): Likewise.
20397 (REG_CLASS_CONTENTS): Likewise.
20398 (REGISTER_NAMES): Likewise.
20399 (ADDITIONAL_REGISTER_NAMES): Likewise.
20400 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
20401 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
20402 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
20403 * config/rs6000/htm.md: New file.
20404 * config/rs6000/htmintrin.h: New file.
20405 * config/rs6000/htmxlintrin.h: New file.
20407 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
20409 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
20410 Define SYMBOL_TINY_GOT, update comment.
20411 * config/aarch64/aarch64.c
20412 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
20413 (aarch64_expand_mov_immediate): Likewise.
20414 (aarch64_print_operand): Likewise.
20415 (aarch64_classify_symbol): Likewise.
20416 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
20417 (ldr_got_tiny): Define.
20419 2013-07-13 Tobias Grosser <tobias@grosser.es>
20421 PR tree-optimization/54094
20422 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
20423 scheduling dimension for the parallelism check from the polyhedral
20424 information in the AST.
20425 * graphite-dependences.c (carries_deps): Do not assume the schedule is
20428 2013-07-13 Jason Merrill <jason@redhat.com>
20430 * print-tree.c (debug_vec_tree): Use debug_raw.
20431 (debug_raw (vec<tree, va_gc> &)): New.
20432 (debug_raw (vec<tree, va_gc> *)): New.
20433 * tree.h: Declare them.
20435 2013-07-13 Bin Cheng <bin.cheng@arm.com>
20437 * ifcvt.c (ifcvt_after_combine): New static variable.
20438 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
20440 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
20441 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
20442 rest_of_handle_if_after_reload): Pass new argument for if_convert.
20444 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
20446 * config/mips/mips.c (mips_expand_call): Remove empty statement.
20448 2013-07-12 Michael Matz <matz@suse.de>
20450 PR middle-end/55771
20451 * convert.c (convert_to_real): Reject non-float inner types.
20453 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
20455 * config/aarch64/aarch64-protos.h
20456 (aarch64_simd_immediate_valid_for_move): Remove.
20457 * config/aarch64/aarch64.c (simd_immediate_info): New member.
20458 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
20460 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
20462 2013-07-11 Steve Ellcey <sellcey@mips.com>
20464 * config/mips/mips.c (mips_conditional_register_usage): Do not
20465 use t[0-7] registers in MIPS16 mode when optimizing for size.
20467 2013-07-11 Sriraman Tallam <tmsriram@google.com>
20469 * config/i386/i386.c (dispatch_function_versions): Fix array
20470 indexing of function_version_info to match actual_versions.
20472 2013-07-11 Teresa Johnson <tejohnson@google.com>
20474 * vec.h (struct va_gc): Move release out-of-line.
20475 (va_gc::release): Call ggc_free on released vec.
20477 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20479 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
20480 Require GOT register as additional operand in UNSPEC.
20481 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
20482 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20483 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
20484 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
20485 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
20486 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
20487 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
20489 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
20492 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
20493 name seen by assembler/linker rather if available.
20495 2013-07-11 Andreas Schwab <schwab@suse.de>
20497 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
20499 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
20501 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
20503 2013-07-10 Joseph Myers <joseph@codesourcery.com>
20505 * doc/tm.texi.in: Move hook documentation to ....
20506 * target.def: ... here.
20508 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
20509 text on @hook line.
20510 * doc/tm.texi: Regenerate.
20512 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
20515 * doc/invoke.texi: Document -Wconditionally-supported.
20517 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20520 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
20523 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20526 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
20527 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
20528 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
20529 Remove duplicate devices.
20530 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
20531 * config/avr/t-multilib: Regenerate.
20532 * config/avr/avr-tables.opt: Regenerate.
20533 * doc/avr-mmcu.texi: Regenerate.
20535 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
20538 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
20540 2013-07-10 Graham Stott <graham.stott@btinternet.com>
20542 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
20543 the cost of MULT when optimizing for size.
20545 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20547 * config/cr16/cr16-protos.h: Don't include target.h.
20549 2013-07-09 Joseph Myers <joseph@codesourcery.com>
20551 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
20552 adjust register size for TDmode and TFmode for VSX registers.
20554 2013-07-08 Kai Tietz <ktietz@redhat.com>
20557 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
20558 hook_bool_const_tree_true.
20560 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20562 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
20563 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
20564 * config/s390/s390.md: Define FPR*_REGNUM constants.
20565 Fix FPR2_REGNUM constant (18 -> 17).
20566 ("*trunc<BFP:mode><DFP_ALL:mode>2")
20567 ("*trunc<DFP_ALL:mode><BFP:mode>2")
20568 ("trunc<BFP:mode><DFP_ALL:mode>2")
20569 ("trunc<DFP_ALL:mode><BFP:mode>2")
20570 ("*extend<BFP:mode><DFP_ALL:mode>2")
20571 ("*extend<DFP_ALL:mode><BFP:mode>2")
20572 ("extend<BFP:mode><DFP_ALL:mode>2")
20573 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
20576 2013-07-08 Graham Stott <graham.stott@btinternet.com>
20578 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
20580 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20582 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
20583 and cfun_fpr_bit_p to cfun_fpr_save_p.
20584 (s390_frame_area, s390_register_info, s390_frame_info)
20585 (s390_emit_prologue, s390_emit_epilogue)
20586 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
20588 * config/s390/s390.h: Define *_REGNUM macros for floating point
20591 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
20593 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
20595 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
20597 PR rtl-optimization/57786
20598 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
20599 and break out of the loop when it is set to false.
20601 2013-07-08 Jakub Jelinek <jakub@redhat.com>
20604 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
20605 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
20606 (const_int 63)) 0)).
20607 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
20608 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
20609 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
20611 PR rtl-optimization/57829
20612 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
20613 mask bits outside of mode are just sign-extension from mode to HWI.
20615 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
20617 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
20618 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
20619 adjust_address instead of change_address to keep info about alignment.
20620 (emit_strmov): Remove.
20621 (emit_memmov): New function.
20622 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
20623 (expand_movmem_epilogue): Likewise and return updated rtx for
20625 (expand_constant_movmem_prologue): Likewise and return updated rtx for
20626 destination and source.
20627 (decide_alignment): Refactor, handle vector_loop.
20628 (ix86_expand_movmem): Likewise.
20629 (ix86_expand_setmem): Likewise.
20630 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
20632 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
20634 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
20635 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
20637 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
20639 * config/i386/sse.md (sse_movlhps): Change alternative 3
20640 of operand 2 to "m".
20642 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
20645 * config/i386/sse.md (iptr): New mode attribute.
20646 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
20647 (<sse>_vm<plusminus_insn><mode>3): Ditto.
20648 (<sse>_vmmul<mode>3): Ditto.
20649 (<sse>_vmdiv<mode>3): Ditto.
20650 (sse_vmrcpv4sf2): Ditto.
20651 (<sse>_vmsqrt<mode>2): Ditto.
20652 (sse_vmrsqrtv4sf2): Ditto.
20653 (<sse>_vm<code><mode>3): Ditto.
20654 (avx_vmcmp<mode>3): Ditto.
20655 (<sse>_vmmaskcmp<mode>3): Ditto.
20656 (<sse>_comi): Ditto.
20657 (<sse>_ucomi): Ditto.
20658 (*xop_vmfrcz_<mode>): Ditto.
20659 (*fmai_fmadd_<mode>): Ditto.
20660 (*fmai_fmsub_<mode>): Ditto.
20661 (*fmai_fnmadd_<mode>): Ditto.
20662 (*fmai_fnmsub_<mode>): Ditto.
20663 (*fma4i_vmfmadd_<mode>): Ditto.
20664 (*fma4i_vmfmsub_<mode>): Ditto.
20665 (*fma4i_vmfnmadd_<mode>): Ditto.
20666 (*fma4i_vmfnmsub_<mode>): Ditto.
20667 (*xop_vmfrcz_<mode>): Ditto.
20668 (sse_cvtps2pi): Ditto.
20669 (sse_cvttps2pi): Ditto.
20670 (sse_cvtss2si): Ditto.
20671 (sse_cvtss2si_2): Ditto.
20672 (sse_cvtss2siq_2): Ditto.
20673 (sse_cvttss2si): Ditto.
20674 (sse_cvttss2siq): Ditto.
20675 (sse_cvtsd2si): Ditto.
20676 (sse_cvtsd2si_2): Ditto.
20677 (sse_cvtsd2siq_2): Ditto.
20678 (sse_cvttsd2si): Ditto.
20679 (sse_cvttsd2siq): Ditto.
20680 (sse_cvtsd2ss): Ditto.
20681 (sse_cvtss2sd): Ditto.
20682 (avx2_pbroadcast<mode>): Ditto.
20683 (avx2_pbroadcast<mode>_1): Ditto.
20684 (*avx_vperm_broadcast_v4sf): Ditto.
20686 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
20687 (sse_movlhps): Ditto.
20688 (sse_storehps): Ditto.
20689 (sse_loadhps): Ditto.
20690 (sse_storelps): Ditto.
20691 (sse_loadlps): Ditto.
20692 (*vec_concatv4sf): Ditto.
20693 (*vec_interleave_highv2df): Ditto.
20694 (*vec_interleave_lowv2df): Ditto.
20695 (*vec_extractv2df_1_sse): Ditto.
20696 (*vec_extractv2df_0_sse): Ditto.
20697 (sse2_storelpd): Ditto.
20698 (sse2_loadlpd): Ditto.
20699 (sse2_movsd): Ditto.
20700 (*vec_concatv4si): Ditto.
20701 (vec_concatv2di): Ditto.
20703 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
20704 for Intel asm dialect.
20705 (mmx_punpcklwd): Ditto.
20706 (mmx_punpckldq): Ditto.
20708 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
20709 for intel assembler dialect.
20711 2013-07-06 Jakub Jelinek <jakub@redhat.com>
20714 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
20715 for BUILT_IN_C{LZ,LRSB}*.
20716 * tree.h (CASE_INT_FN): Add FN##IMAX case.
20717 * tree-vrp.c (extract_range_basic): Handle
20718 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
20719 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
20720 fall thru to code calling set_value*.
20721 * builtins.c (expand_builtin): Remove *IMAX cases.
20722 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
20723 if width is bigger than 2*HWI.
20725 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
20727 PR rtl-optimization/55342
20728 * lra-int.h (lra_subreg_reload_pseudos): New.
20729 * lra.c: Add undoing optional reloads to the block diagram.
20730 (lra_subreg_reload_pseudos): New.
20731 (lra_optional_reload_pseudos): Change comments.
20732 (lra): Init and clear lra_subreg_reload_pseudos. Clear
20733 lra_optional_reload_pseudos after undo transformations.
20734 * lra-assigns.c (pseudo_prefix_title): New.
20735 (lra_setup_reg_renumber): Use it.
20736 (spill_for): Ditto. Check subreg reload pseudos too.
20737 (assign_by_spills): Consider subreg reload pseudos too.
20738 * lra-constraints.c (simplify_operand_subreg): Use
20739 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
20740 (curr_insn_transform): Recognize and do optional reloads.
20741 (undo_optional_reloads): New.
20742 (lra_undo_inheritance): Call undo_optional_reloads.
20744 2013-07-05 Thomas Quinot <quinot@adacore.com>
20746 * tree-complex.c (expand_complex_operations_1): Fix typo.
20748 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
20750 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
20751 (tune_params): New member 'const vec_costs'.
20752 * config/aarch64/aarch64.c (generic_vector_cost): New.
20753 (generic_tunings): New member 'generic_vector_cost'.
20754 (aarch64_builtin_vectorization_cost): New.
20755 (aarch64_add_stmt_cost): New.
20756 (TARGET_VECTORIZE_ADD_STMT_COST): New.
20757 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
20759 2013-07-03 Jakub Jelinek <jakub@redhat.com>
20762 * config/i386/predicates.md (vsib_address_operand): Disallow
20763 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
20765 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
20767 PR middle-end/55030
20768 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
20769 expand_builtin_setjmp_receiver.
20770 (expand_label): Adjust, call expand_builtin_setjmp_receiver
20771 with NULL for the label parameter.
20772 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
20773 the frame-pointer. Adjust comments.
20774 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
20775 only if LABEL is non-NULL.
20777 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
20779 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
20780 (ARM_ABI_AAPCS64): Ditto.
20782 (ARM_DEFAULT_ABI): Ditto.
20784 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
20786 * config/aarch64/aarch64-builtins.c
20787 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
20788 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
20790 * config/aarch64/aarch64-simd.md
20791 (aarch64_ld1<VALL:mode>): New.
20792 (aarch64_st1<VALL:mode>): Likewise.
20793 * config/aarch64/arm_neon.h
20794 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
20796 2013-07-02 Sriraman Tallam <tmsriram@google.com>
20798 * config/i386/i386.c (gate_insert_vzeroupper): Check if
20800 (ix86_option_override_internal):Turn on all -mavx target flags by
20801 default as they are dependent on AVX anyway.
20803 2013-07-02 Cary Coutant <ccoutant@google.com>
20805 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
20806 deterministic hash.
20807 (loc_checksum_ordered): Likewise.
20808 (hash_loc_operands): Remove inline keyword.
20810 2013-07-02 Jakub Jelinek <jakub@redhat.com>
20812 PR tree-optimization/57741
20813 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
20814 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
20815 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
20816 Allow REAL_CST step_exprs if flag_associative_math.
20817 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
20819 2013-07-02 Ian Bolton <ian.bolton@arm.com>
20821 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
20823 2013-07-02 Ian Bolton <ian.bolton@arm.com>
20825 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
20827 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20829 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
20831 (iorsi3_insn): Likewise.
20832 (arm_xorsi3): Likewise.
20834 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
20836 * arm.md (attribute "wtype"): Delete. Move attribute values from here
20838 (attribute "type"): ... here, and prefix with "wmmx_".
20839 (attribute "core_cycles"): Update for attribute changes.
20840 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
20841 (tbcstv4hi): Likewise.
20842 (tbcstv2si): Likewise.
20843 (iwmmxt_iordi3): Likewise.
20844 (iwmmxt_xordi3): Likewise.
20845 (iwmmxt_anddi3): Likewise.
20846 (iwmmxt_nanddi3): Likewise.
20847 (iwmmxt_arm_movdi): Likewise.
20848 (iwmmxt_movsi_insn): Likewise.
20849 (mov<mode>_internal): Likewise.
20850 (and<mode>3_iwmmxt): Likewise.
20851 (ior<mode>3_iwmmxt): Likewise.
20852 (xor<mode>3_iwmmxt): Likewise.
20853 (add<mode>3_iwmmxt): Likewise.
20854 (ssaddv8qi3): Likewise.
20855 (ssaddv4hi3): Likewise.
20856 (ssaddv2si3): Likewise.
20857 (usaddv8qi3): Likewise.
20858 (usaddv4hi3): Likewise.
20859 (usaddv2si3): Likewise.
20860 (sub<mode>3_iwmmxt): Likewise.
20861 (sssubv8qi3): Likewise.
20862 (sssubv4hi3): Likewise.
20863 (sssubv2si3): Likewise.
20864 (ussubv8qi3): Likewise.
20865 (ussubv4hi3): Likewise.
20866 (ussubv2si3): Likewise.
20867 (mulv4hi3_iwmmxt): Likewise.
20868 (smulv4hi3_highpart): Likewise.
20869 (umulv4hi3_highpart): Likewise.
20870 (iwmmxt_wmacs): Likewise.
20871 (iwmmxt_wmacsz): Likewise.
20872 (iwmmxt_wmacu): Likewise.
20873 (iwmmxt_wmacuz): Likewise.
20874 (iwmmxt_clrdi): Likewise.
20875 (iwmmxt_clrv8qi): Likewise.
20876 (iwmmxt_clr4hi): Likewise.
20877 (iwmmxt_clr2si): Likewise.
20878 (iwmmxt_uavgrndv8qi3): Likewise.
20879 (iwmmxt_uavgrndv4hi3): Likewise.
20880 (iwmmxt_uavgv8qi3): Likewise.
20881 (iwmmxt_uavgv4hi3): Likewise.
20882 (iwmmxt_tinsrb): Likewise.
20883 (iwmmxt_tinsrh): Likewise.
20884 (iwmmxt_tinsrw): Likewise.
20885 (iwmmxt_textrmub): Likewise.
20886 (iwmmxt_textrmsb): Likewise.
20887 (iwmmxt_textrmuh): Likewise.
20888 (iwmmxt_textrmsh): Likewise.
20889 (iwmmxt_textrmw): Likewise.
20890 (iwmxxt_wshufh): Likewise.
20891 (eqv8qi3): Likewise.
20892 (eqv4hi3): Likewise.
20893 (eqv2si3): Likewise.
20894 (gtuv8qi3): Likewise.
20895 (gtuv4hi3): Likewise.
20896 (gtuv2si3): Likewise.
20897 (gtv8qi3): Likewise.
20898 (gtv4hi3): Likewise.
20899 (gtv2si3): Likewise.
20900 (smax<mode>3_iwmmxt): Likewise.
20901 (umax<mode>3_iwmmxt): Likewise.
20902 (smin<mode>3_iwmmxt): Likewise.
20903 (umin<mode>3_iwmmxt): Likewise.
20904 (iwmmxt_wpackhss): Likewise.
20905 (iwmmxt_wpackwss): Likewise.
20906 (iwmmxt_wpackdss): Likewise.
20907 (iwmmxt_wpackhus): Likewise.
20908 (iwmmxt_wpackwus): Likewise.
20909 (iwmmxt_wpackdus): Likewise.
20910 (iwmmxt_wunpckihb): Likewise.
20911 (iwmmxt_wunpckihh): Likewise.
20912 (iwmmxt_wunpckihw): Likewise.
20913 (iwmmxt_wunpckilb): Likewise.
20914 (iwmmxt_wunpckilh): Likewise.
20915 (iwmmxt_wunpckilw): Likewise.
20916 (iwmmxt_wunpckehub): Likewise.
20917 (iwmmxt_wunpckehuh): Likewise.
20918 (iwmmxt_wunpckehuw): Likewise.
20919 (iwmmxt_wunpckehsb): Likewise.
20920 (iwmmxt_wunpckehsh): Likewise.
20921 (iwmmxt_wunpckehsw): Likewise.
20922 (iwmmxt_wunpckelub): Likewise.
20923 (iwmmxt_wunpckeluh): Likewise.
20924 (iwmmxt_wunpckeluw): Likewise.
20925 (iwmmxt_wunpckelsb): Likewise.
20926 (iwmmxt_wunpckelsh): Likewise.
20927 (iwmmxt_wunpckelsw): Likewise.
20928 (ror<mode>3): Likewise.
20929 (ashr<mode>3_iwmmxt): Likewise.
20930 (lshr<mode>3_iwmmxt): Likewise.
20931 (ashl<mode>3_iwmmxt): Likewise.
20932 (ror<mode>3_di): Likewise.
20933 (ashr<mode>3_di): Likewise.
20934 (lshr<mode>3_di): Likewise.
20935 (ashl<mode>3_di): Likewise.
20936 (iwmmxt_wmadds): Likewise.
20937 (iwmmxt_wmaddu): Likewise.
20938 (iwmmxt_tmia): Likewise.
20939 (iwmmxt_tmiaph): Likewise.
20940 (iwmmxt_tmiabb): Likewise.
20941 (iwmmxt_tmiatb): Likewise.
20942 (iwmmxt_tmiabt): Likewise.
20943 (iwmmxt_tmiatt): Likewise.
20944 (iwmmxt_tmovmskb): Likewise.
20945 (iwmmxt_tmovmskh): Likewise.
20946 (iwmmxt_tmovmskw): Likewise.
20947 (iwmmxt_waccb): Likewise.
20948 (iwmmxt_wacch): Likewise.
20949 (iwmmxt_waccw): Likewise.
20950 (iwmmxt_waligni): Likewise.
20951 (iwmmxt_walignr): Likewise.
20952 (iwmmxt_walignr0): Likewise.
20953 (iwmmxt_walignr1): Likewise.
20954 (iwmmxt_walignr2): Likewise.
20955 (iwmmxt_walignr3): Likewise.
20956 (iwmmxt_wsadb): Likewise.
20957 (iwmmxt_wsadh): Likewise.
20958 (iwmmxt_wsadbz): Likewise.
20959 (iwmmxt_wsadhz): Likewise.
20960 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
20961 (iwmmxt_wabsdiffb): Likewise.
20962 (iwmmxt_wabsdiffh): Likewise.
20963 (iwmmxt_wabsdiffw): Likewise.
20964 (iwmmxt_waddsubhx): Likewise
20965 (iwmmxt_wsubaddhx): Likewise.
20966 (addc<mode>3): Likewise.
20967 (iwmmxt_avg4): Likewise.
20968 (iwmmxt_avg4r): Likewise.
20969 (iwmmxt_wmaddsx): Likewise.
20970 (iwmmxt_wmaddux): Likewise.
20971 (iwmmxt_wmaddsn): Likewise.
20972 (iwmmxt_wmaddun): Likewise.
20973 (iwmmxt_wmulwsm): Likewise.
20974 (iwmmxt_wmulwum): Likewise.
20975 (iwmmxt_wmulsmr): Likewise.
20976 (iwmmxt_wmulumr): Likewise.
20977 (iwmmxt_wmulwsmr): Likewise.
20978 (iwmmxt_wmulwumr): Likewise.
20979 (iwmmxt_wmulwl): Likewise.
20980 (iwmmxt_wqmulm): Likewise.
20981 (iwmmxt_wqmulwm): Likewise.
20982 (iwmmxt_wqmulmr): Likewise.
20983 (iwmmxt_wqmulwmr): Likewise.
20984 (iwmmxt_waddbhusm): Likewise.
20985 (iwmmxt_waddbhusl): Likewise.
20986 (iwmmxt_wqmiabb): Likewise.
20987 (iwmmxt_wqmiabt): Likewise.
20988 (iwmmxt_wqmiatb): Likewise.
20989 (iwmmxt_wqmiatt): Likewise.
20990 (iwmmxt_wqmiabbn): Likewise.
20991 (iwmmxt_wqmiabtn): Likewise.
20992 (iwmmxt_wqmiatbn): Likewise.
20993 (iwmmxt_wqmiattn): Likewise.
20994 (iwmmxt_wmiabb): Likewise.
20995 (iwmmxt_wmiabt): Likewise.
20996 (iwmmxt_wmiatb): Likewise.
20997 (iwmmxt_wmiatt): Likewise.
20998 (iwmmxt_wmiabbn): Likewise.
20999 (iwmmxt_wmiabtn): Likewise.
21000 (iwmmxt_wmiatbn): Likewise.
21001 (iwmmxt_wmiattn): Likewise.
21002 (iwmmxt_wmiawbb): Likewise.
21003 (iwmmxt_wmiawbt): Likewise.
21004 (iwmmxt_wmiawtb): Likewise.
21005 (iwmmxt_wmiawtt): Likewise.
21006 (iwmmxt_wmiawbbn): Likewise.
21007 (iwmmxt_wmiawbtn): Likewise.
21008 (iwmmxt_wmiawtbn): Likewise.
21009 (iwmmxt_wmiawttn): Likewise.
21010 (iwmmxt_wmerge): Likewise.
21011 (iwmmxt_tandc<mode>3): Likewise.
21012 (iwmmxt_torc<mode>3): Likewise.
21013 (iwmmxt_torvsc<mode>3): Likewise.
21014 (iwmmxt_textrc<mode>3): Likewise.
21015 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
21016 (wmmxt_pack): Likewise.
21017 (wmmxt_mult_c1): Likewise.
21018 (wmmxt_mult_c2): Likewise.
21019 (wmmxt_alu_c1): Likewise.
21020 (wmmxt_alu_c2): Likewise.
21021 (wmmxt_alu_c3): Likewise.
21022 (wmmxt_transfer_c1): Likewise.
21023 (wmmxt_transfer_c2): Likewise.
21024 (wmmxt_transfer_c3): Likewise.
21025 (marvell_f_iwmmxt_wstr): Likewise.
21026 (marvell_f_iwmmxt_wldr): Likewise.
21028 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
21030 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
21032 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
21035 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
21036 * lra-constraints.c (need_for_split_p): Check call used hard regs
21037 living through calls.
21039 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
21040 call used regs for call insn.
21042 2013-06-28 Jakub Jelinek <jakub@redhat.com>
21045 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
21046 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
21048 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
21050 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
21052 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
21054 * lra-constraints.c (need_for_split_p): Check call used hard regs
21055 living through calls.
21057 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
21060 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
21061 to tie with any other modes. Eliminate Altivec vector mode tests,
21062 since these are a subset of ALTIVEC or VSX vector modes. Simplify
21063 code, to return 0 if testing MODE2 for a condition, if we've
21064 already tested MODE1 for the same condition.
21066 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
21068 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
21071 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
21073 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
21074 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
21076 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
21078 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
21080 (aarch64_symbolic_constant_p): Remove.
21081 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
21082 static. Fix line length and white space.
21083 (aarch64_symbolic_constant_p): Remove.
21084 * config/aarch64/predicates.md (aarch64_valid_symref):
21085 Use aarch64_classify_symbol_expression.
21087 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21089 * config/arm/constraints.md (Ts): New constraint.
21090 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
21092 (compare_scc): Use "Ts" constraint for operand 0.
21093 (ior_scc_scc): Likewise.
21094 (and_scc_scc): Likewise.
21095 (and_scc_scc_nodom): Likewise.
21096 (ior_scc_scc_cmp): Likewise for operand 7.
21097 (and_scc_scc_cmp): Likewise.
21098 * config/arm/thumb2.md (thumb2_movsi_insn):
21099 Add alternatives for 16-bit encodings.
21100 (thumb2_movhi_insn): Likewise.
21101 (thumb2_movsicc_insn): Likewise.
21102 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
21103 (thumb2_negscc): Use "Ts" constraint.
21104 Move mvn instruction outside cond_exec block.
21105 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
21106 for 16-bit encodings.
21108 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21110 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
21112 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
21113 (mulsi3subsi): Likewise.
21114 (mulsidi3adddi): Likewise.
21115 (mulsidi3_v6): Likewise.
21116 (umulsidi3_v6): Likewise.
21117 (umulsidi3adddi_v6): Likewise.
21118 (smulsi3_highpart_v6): Likewise.
21119 (umulsi3_highpart_v6): Likewise.
21120 (mulhisi3tb): Likewise.
21121 (mulhisi3bt): Likewise.
21122 (mulhisi3tt): Likewise.
21123 (maddhisi4): Likewise.
21124 (maddhisi4tb): Likewise.
21125 (maddhisi4tt): Likewise.
21126 (maddhidi4): Likewise.
21127 (maddhidi4tb): Likewise.
21128 (maddhidi4tt): Likewise.
21129 (zeroextractsi_compare0_scratch): Likewise.
21130 (insv_zero): Likewise.
21131 (insv_t2): Likewise.
21132 (anddi_notzesidi_di): Likewise.
21133 (anddi_notsesidi_di): Likewise.
21134 (andsi_notsi_si): Likewise.
21135 (iordi_zesidi_di): Likewise.
21136 (xordi_zesidi_di): Likewise.
21137 (andsi_iorsi3_notsi): Likewise.
21138 (smax_0): Likewise.
21139 (smax_m1): Likewise.
21140 (smin_0): Likewise.
21141 (not_shiftsi): Likewise.
21142 (unaligned_loadsi): Likewise.
21143 (unaligned_loadhis): Likewise.
21144 (unaligned_loadhiu): Likewise.
21145 (unaligned_storesi): Likewise.
21146 (unaligned_storehi): Likewise.
21147 (extv_reg): Likewise.
21148 (extzv_t2): Likewise.
21149 (divsi3): Likewise.
21150 (udivsi3): Likewise.
21151 (arm_zero_extendhisi2addsi): Likewise.
21152 (arm_zero_extendqisi2addsi): Likewise.
21153 (compareqi_eq0): Likewise.
21154 (arm_extendhisi2_v6): Likewise.
21155 (arm_extendqisi2addsi): Likewise.
21156 (arm_movt): Likewise.
21157 (thumb2_ldrd): Likewise.
21158 (thumb2_ldrd_base): Likewise.
21159 (thumb2_ldrd_base_neg): Likewise.
21160 (thumb2_strd): Likewise.
21161 (thumb2_strd_base): Likewise.
21162 (thumb2_strd_base_neg): Likewise.
21163 (arm_negsi2): Add alternative for 16-bit encoding.
21164 (arm_one_cmplsi2): Likewise.
21166 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21168 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
21169 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
21170 (movdfcc): Likewise.
21171 * config/arm/vfp.md (*thumb2_movsf_vfp):
21172 Disable predication for arm_restrict_it.
21173 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
21174 (*thumb2_movdfcc_vfp): Likewise.
21175 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
21176 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
21177 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
21178 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
21179 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
21180 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
21181 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
21182 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
21183 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
21184 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
21185 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
21186 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
21187 Disable predication for arm_restrict_it.
21189 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
21191 * config/i386/bmiintrin.h (_bextr_u32): New.
21192 (_bextr_u64): Ditto.
21194 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
21196 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
21197 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
21198 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
21199 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
21200 * config/mips/n32-elf.h: ...this new file.
21202 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
21205 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
21206 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
21208 2013-06-27 Catherine Moore <clm@codesourcery.com>
21210 * config/mips/mips-tables.opt: Regenerate.
21211 * config/mips/mips-cpus.def: Add m14ke and m14kec.
21212 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
21213 * doc/invoke.texi: Add -m14kc.
21215 2013-06-27 Jakub Jelinek <jakub@redhat.com>
21218 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
21219 constraints of operand 1 and 2.
21222 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
21223 to match RTL canonicalization. Swap predicates and
21224 constraints of operand 1 and 2.
21226 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
21228 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
21229 Process OP_INOUT regs for splitting too.
21231 2013-06-27 Jakub Jelinek <jakub@redhat.com>
21233 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
21234 decl before the loop, initialize to NULL.
21235 (vectorizable_load): Initialize ptr_incr to NULL.
21237 2013-06-27 Martin Jambor <mjambor@suse.cz>
21240 * ipa-ref.h (ipa_maybe_record_reference): Declare.
21241 * ipa-ref.c (ipa_maybe_record_reference): New function.
21242 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
21243 * ipa-cp.c (create_specialized_node): Record potential references from
21245 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
21247 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
21249 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
21250 parameter 'mode' of type 'enum machine_mode mode'; change to pass
21251 'mode' to force_reg.
21252 (aarch64_add_offset): Update calls to aarch64_force_temporary.
21253 (aarch64_expand_mov_immediate): Likewise.
21255 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
21257 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
21258 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
21260 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21262 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
21263 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21264 (struct machine_function): Add tbegin_p.
21265 (s390_canonicalize_comparison): Fold CC mode compares to
21266 conditional jump if possible.
21267 (s390_emit_jump): Return the emitted jump.
21268 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
21269 Handle CCRAWmode compares.
21270 (s390_option_override): Default to -mhtm if available.
21271 (s390_reg_clobbered_rtx): Handle floating point regs as well.
21272 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
21273 FPRs instead of df_regs_ever_live_p.
21274 (s390_optimize_nonescaping_tx): New function.
21275 (s390_init_frame_layout): Extend clobbered_regs array to cover
21277 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
21278 (s390_expand_tbegin): New function.
21279 (enum s390_builtin): New enum definition.
21280 (code_for_builtin): New array definition.
21281 (s390_init_builtins): New function.
21282 (s390_expand_builtin): New function.
21283 (TARGET_INIT_BUILTINS): Define.
21284 (TARGET_EXPAND_BUILTIN): Define.
21285 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
21286 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
21287 (s390_alc_comparison): Likewise.
21288 * config/s390/s390-modes.def: Add CCRAWmode.
21289 * config/s390/s390.h (processor_flags): Add PF_TX.
21290 (TARGET_CPU_HTM): Define macro.
21291 (TARGET_HTM): Define macro.
21292 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
21293 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
21294 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
21295 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
21296 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
21297 (TBEGIN_MASK, TBEGINC_MASK): New constants.
21298 ("*cc_to_int"): Move up.
21299 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
21300 constants other than 0.
21301 ("*ccraw_to_int"): New insn and splitter definition.
21302 ("tbegin", "tbegin_nofloat", "tbegin_retry")
21303 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
21304 ("tx_assist"): New expander.
21305 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
21306 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
21307 * config/s390/s390.opt: Add -mhtm option.
21308 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
21309 * config/s390/htmxlintrin.h: New file.
21310 * config/s390/htmintrin.h: New file.
21311 * config/s390/s390intrin.h: New file.
21312 * doc/extend.texi: Document htm builtins.
21313 * config.gcc: Add the new header files to extra_headers.
21315 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
21317 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
21318 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
21320 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21321 Pat Haugen <pthaugen@us.ibm.com>
21322 Peter Bergner <bergner@vnet.ibm.com>
21324 * config/rs6000/power8.md: New.
21325 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
21326 setting for power8 entry.
21327 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
21328 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
21329 test for Power4/Power5 only.
21330 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
21332 (force_new_group): Adjust comment.
21333 * config/rs6000/rs6000.md: Include power8.md.
21335 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
21337 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
21338 * config/arm/arm-protos.h (arm_max_conditional_execute): New
21340 (tune_params): Update comment.
21341 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
21342 (arm_max_conditional_execute): New function.
21343 (thumb2_final_prescan_insn): Use max_insn_skipped and
21344 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
21346 2013-06-25 Jakub Jelinek <jakub@redhat.com>
21348 PR tree-optimization/57705
21349 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
21350 SSA_NAME step, provided that it is not defined inside the loop.
21351 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
21352 (get_initial_def_for_induction): Handle SSA_NAME IV step.
21354 2013-06-25 Martin Jambor <mjambor@suse.cz>
21356 PR middle-end/57670
21357 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
21358 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
21360 (ipa_note_param_call): Initialize member_ptr flag.
21361 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
21362 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
21363 (ipa_write_indirect_edge_info): Stream member_ptr flag.
21364 (ipa_read_indirect_edge_info): Likewise.
21366 2013-06-25 Richard Biener <rguenther@suse.de>
21368 PR middle-end/56977
21369 * passes.c (init_optimization_passes): Move pass_fold_builtins
21370 and pass_dce earlier with -Og.
21372 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
21374 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
21375 <BIT_FIELD_REF>: Remove trailing TAB.
21376 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
21379 2013-06-24 Martin Jambor <mjambor@suse.cz>
21381 PR tree-optimization/57358
21382 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
21383 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
21384 (ipa_analyze_params_uses): Generate pessimistic info when true.
21386 2013-06-24 Martin Jambor <mjambor@suse.cz>
21388 PR tree-optimization/57539
21389 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
21390 global.inlined_to of the new node to it. All callers changed.
21391 * ipa-inline-transform.c (clone_inlined_nodes): New variable
21392 inlining_into, pass it to cgraph_clone_node.
21393 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
21394 ipa_free_edge_args_substructures.
21395 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
21396 rdesc linked list. Do not assert rdesc edges have inlined caller.
21397 Assert we have found an rdesc in the rdesc list.
21399 2013-06-24 Richard Biener <rguenther@suse.de>
21401 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
21402 (pointer_set_lookup): Declare.
21403 (class pointer_map): New template class implementing a
21404 generic pointer to T map.
21405 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
21406 pointer_map<T>::contains, pointer_map<T>::insert,
21407 pointer_map<T>::traverse): New functions.
21408 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
21409 (pointer_set_lookup): New function.
21410 (pointer_set_contains): Use pointer_set_lookup.
21411 (pointer_set_insert): Likewise.
21412 (insert_aux): Remove.
21413 (struct pointer_map_t): Embed a pointer_set_t.
21414 (pointer_map_create): Adjust.
21415 (pointer_map_destroy): Likewise.
21416 (pointer_map_contains): Likewise.
21417 (pointer_map_insert): Likewise.
21418 (pointer_map_traverse): Likewise.
21419 * tree-streamer.h (struct streamer_tree_cache_d): Use a
21420 pointer_map<unsigned> instead of a pointer_map_t.
21421 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
21422 (streamer_tree_cache_lookup): Likewise.
21423 (streamer_tree_cache_create): Likewise.
21424 (streamer_tree_cache_delete): Likewise.
21425 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
21426 pointer_map<unsigned> instead of a pointer_map_t.
21427 (lto_init_tree_ref_encoder): Adjust.
21428 (lto_destroy_tree_ref_encoder): Likewise.
21429 * lto-section-out.c (lto_output_decl_index): Likewise.
21430 (lto_record_function_out_decl_state): Likewise.
21431 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
21433 2013-06-24 Richard Biener <rguenther@suse.de>
21435 PR tree-optimization/57488
21436 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
21438 2013-06-24 Alan Modra <amodra@gmail.com>
21440 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
21441 (gen_easy_altivec_constant): Likewise.
21442 * config/rs6000/predicates.md (easy_vector_constant_add_self,
21443 easy_vector_constant_msb): Likewise.
21445 2013-06-23 Jakub Jelinek <jakub@redhat.com>
21448 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
21449 add missing return true.
21451 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
21454 * config/sh/predicates.md (general_extend_operand): Invoke
21455 general_movsrc_operand for memory operands.
21456 (general_movsrc_operand): Allow reg+reg addressing, do not use
21457 general_operand for memory operands.
21459 2013-06-23 Sriraman Tallam <tmsriram@google.com>
21461 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
21462 when current target options does not apply.
21463 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
21464 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
21465 * config/i386/bmiintrin.h: Pass appropriate target
21466 attributes to header.
21467 * config/i386/mmintrin.h: Ditto.
21468 * config/i386/nmmintrin.h: Ditto.
21469 * config/i386/avx2intrin.h: Ditto.
21470 * config/i386/fxsrintrin.h: Ditto.
21471 * config/i386/tbmintrin.h: Ditto.
21472 * config/i386/xsaveintrin.h: Ditto.
21473 * config/i386/f16cintrin.h: Ditto.
21474 * config/i386/xtestintrin.h: Ditto.
21475 * config/i386/xsaveoptintrin.h: Ditto.
21476 * config/i386/bmi2intrin.h: Ditto.
21477 * config/i386/lzcntintrin.h: Ditto.
21478 * config/i386/smmintrin.h: Ditto.
21479 * config/i386/wmmintrin.h: Ditto.
21480 * config/i386/x86intrin.h: Remove all header include guards.
21481 * config/i386/prfchwintrin.h: Ditto.
21482 * config/i386/pmmintrin.h: Ditto.
21483 * config/i386/tmmintrin.h: Ditto.
21484 * config/i386/xmmintrin.h: Ditto.
21485 * config/i386/popcntintrin.h: Ditto.
21486 * config/i386/rdseedintrin.h: Ditto.
21487 * config/i386/ammintrin.h: Ditto.
21488 * config/i386/emmintrin.h: Ditto.
21489 * config/i386/immintrin.h: Remove all header include guards.
21490 * config/i386/fma4intrin.h: Ditto.
21491 * config/i386/lwpintrin.h: Ditto.
21492 * config/i386/xopintrin.h: Ditto.
21493 * config/i386/ia32intrin.h: Ditto.
21494 * config/i386/avxintrin.h: Ditto.
21495 * config/i386/rtmintrin.h: Ditto.
21496 * config/i386/fmaintrin.h: Ditto.
21497 * config/i386/mm3dnow.h: Ditto.
21499 2013-06-22 Sriraman Tallam <tmsriram@google.com>
21501 * common/config/i386/i386-common.c: Handle LZCNT.
21503 2013-06-22 Andi Kleen <ak@linux.intel.com>
21505 * doc/extend.texi: Use __atomic_store_n instead of
21506 __atomic_store in HLE example.
21508 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
21510 * config/sh/sh.c: Remove <cstdlib> workaround.
21512 2013-06-21 Andi Kleen <ak@linux.intel.com>
21514 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
21516 2013-06-21 Andi Kleen <ak@linux.intel.com>
21518 * doc/extend.texi: Document that __atomic_clear and
21519 __atomic_test_and_set should only be used with bool.
21521 2013-06-20 Jan Hubicka <jh@suse.cz>
21523 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
21524 types_same_for_odr.
21525 * tree.c (decls_same_for_odr): New function.
21526 (same_for_edr): New function.
21527 (types_same_for_odr): New function.
21528 (get_binfo_at_offset): Use it.
21529 * tree.h (types_same_for_odr): Declare.
21531 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
21532 Jason Merrill <jason@redhat.com>
21534 * system.h: Include <cstdlib> as well as <stdlib.h>.
21536 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
21539 * config/i386/i386.c (construct_container): Report error if
21540 long double is used with disabled x87 float returns.
21542 2013-06-20 Jan Hubicka <jh@suse.cz>
21544 * lto-cgraph.c (input_symtab): Do not set cgraph state.
21546 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
21548 PR rtl-optimization/57425
21549 PR rtl-optimization/57569
21550 * alias.c (write_dependence_p): Remove parameters mem_mode and
21551 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
21552 Changed all callers.
21553 (canon_anti_dependence): Get comments and semantics in sync.
21554 Add parameter mem_canonicalized. Changed all callers.
21555 * rtl.h (canon_anti_dependence): Update prototype.
21557 2013-06-20 Richard Biener <rguenther@suse.de>
21559 * data-streamer-in.c (streamer_read_uhwi): Optimize single
21560 byte case, inline streamer_read_uchar and defer section
21563 2013-06-20 Richard Biener <rguenther@suse.de>
21565 PR tree-optimization/57584
21566 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
21567 SSA names into the expanded expression that take part in
21568 abnormal coalescing.
21570 2013-06-19 Sharad Singhai <singhai@google.com>
21572 * gcov.c (print_usage): Handle new option.
21573 (process_args): Ditto.
21574 (get_gcov_intermediate_filename): New function.
21575 (output_intermediate_file): New function.
21576 (output_gcov_file): New function
21577 (generate_results): Handle new option.
21578 (release_function): Relase demangled name.
21579 (read_graph_file): Handle demangled name.
21580 (output_lines): Ditto.
21581 * doc/gcov.texi: Document gcov intermediate format.
21583 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
21586 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
21587 (lra_emit_add): Use the functions. Add comment about Y as an
21590 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
21593 * collect2.c (collect_atexit): New.
21594 (collect_exit): Delete.
21595 (main): Register collect_atexit with atexit.
21596 (collect_wait): Change collect_exit to exit.
21598 * collect2.h (collect_exit): Delete.
21599 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
21601 2013-06-19 Wei Mi <wmi@google.com>
21603 PR rtl-optimization/57518
21604 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
21605 if regno is used in paradoxical subreg.
21606 (update_equiv_regs): Check pdx_subregs[regno] before
21607 set a reg to be equivalent with a mem.
21609 2013-06-19 Matthias Klose <doko@ubuntu.com>
21612 * file-find.h (find_a_file): Add a mode parameter.
21613 * file-find.c (find_a_file): Likewise.
21614 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
21615 with X_OK for the executables.
21616 * collect2.c (main): Call find_a_file with X_OK.
21618 2013-06-19 Steve Ellcey <sellcey@mips.com>
21621 * config/mips/mips.md (casesi_internal_mips16_<mode>):
21622 Use NEXT_INSN instead of next_real_insn.
21624 2013-06-19 Jan Hubicka <jh@suse.cz>
21626 * cgraph.h (const_value_known_p): Replace by ...
21627 (ctor_for_folding): .. this one.
21628 * cgraphunit.c (process_function_and_variable_attributes): Use it.
21629 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
21630 * expr.c (expand_expr_real_1): Likewise.
21631 (string_constant): Likewise.
21632 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
21633 * ipa.c (process_references): Likewise.
21634 (symtab_remove_unreachable_nodes): Likewise.
21635 * ipa-inline-analysis.c (param_change_prob): Likewise.
21636 * gimple-fold.c (canonicalize_constructor_val): Likewise.
21637 (get_base_constructor): Likwise.
21638 * varpool.c (varpool_remove_node): Likewise.
21639 (varpool_remove_initializer): LIkewise.
21640 (dump_varpool_node): LIkwise.
21641 (const_value_known_p): Rewrite to ...
21642 (ctor_for_folding): ... this one.
21644 2013-06-19 Jakub Jelinek <jakub@redhat.com>
21647 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
21648 PERSONALITY in $PATH derived prefixes.
21650 2013-06-19 Jeff Law <law@redhat.com>
21652 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
21655 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
21656 (simplify_bitwise_binary): Use it to simpify certain binary ops on
21659 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
21661 * config/arm/vfp.md: Move VFP instruction classification documentation
21663 * config/arm/arm.md: ... here. Update instruction classification
21666 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
21668 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
21669 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
21670 pattern. Use more efficient sequences on ARMv5 and Thumb2.
21672 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
21675 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21676 with NEXT_INSN. Use tablejump_p to check for jump table data
21679 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
21682 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
21683 that now in C++ the value is correct per the C++ standards.
21685 2013-06-19 Richard Biener <rguenther@suse.de>
21687 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
21688 for global context.
21690 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21693 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21696 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21697 with next_active_insn.
21699 2013-06-18 Sriraman Tallam <tmsriram@google.com>
21701 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
21702 functions are inlined during failures to flag an error.
21703 * tree-inline.c (expand_call_inline): Allow the error to be flagged
21704 in early inline pass.
21706 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
21708 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
21711 2013-06-18 Julian Brown <julian@codesourcery.com>
21713 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
21714 Permit virtual register pre-reload if !strict.
21715 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
21717 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
21719 * config/arm/neon.md (movmisalign<mode>): Use
21720 neon_perm_struct_or_reg_operand instead of
21721 neon_struct_or_register_operand.
21722 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
21723 neon_permissive_struct_operand instead of neon_struct_operand.
21724 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
21725 neon_vector_mem_operand.
21726 * config/arm/predicates.md (neon_struct_operand): Adjust call to
21727 neon_vector_mem_operand.
21728 (neon_permissive_struct_operand): New.
21729 (neon_struct_or_register_operand): Rename to...
21730 (neon_perm_struct_or_reg_operand): This. Adjust call to
21731 neon_vector_mem_operand.
21733 2013-06-18 Richard Biener <rguenther@suse.de>
21735 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
21736 * lto-streamer.h: Include pointer-set.h.
21737 (struct lto_decl_slot): Remove.
21738 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
21739 Remove next_index entry.
21740 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
21741 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
21742 (lto_init_tree_ref_encoder): Adjust.
21743 (lto_destroy_tree_ref_encoder): Likewise.
21744 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
21745 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
21746 (lto_output_decl_index): Adjust.
21747 (lto_new_out_decl_state): Likewise.
21748 (lto_record_function_out_decl_state): Likewise.
21749 * lto-streamer-out.c (copy_function): Likewise.
21751 2013-06-18 Richard Biener <rguenther@suse.de>
21753 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
21754 * cgraphunit.c: Include cfgloop.h.
21755 (init_lowered_empty_function): Initialize the loop tree.
21756 (assemble_thunk): Insert new BBs into loops.
21758 2013-06-18 Richard Biener <rguenther@suse.de>
21760 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
21761 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
21762 the map from cache entry to cache index optional.
21763 (streamer_tree_cache_replace_tree): Adjust accordingly.
21764 (streamer_tree_cache_append): Likewise.
21765 (streamer_tree_cache_delete): Likewise.
21766 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
21767 streamer cache map from cache entry to cache index.
21768 * lto-streamer-out.c (create_output_block): Adjust.
21770 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
21772 * config/arm/arm.md (attribute "insn"): Move multiplication and
21773 division attributes to...
21774 (attribute "type"): ... here. Remove mult.
21775 (attribute "mul32"): New attribute.
21776 (attribute "mul64"): Add umaal.
21777 (*arm_mulsi3): Update attributes.
21778 (*arm_mulsi3_v6): Likewise.
21779 (*thumb_mulsi3): Likewise.
21780 (*thumb_mulsi3_v6): Likewise.
21781 (*mulsi3_compare0): Likewise.
21782 (*mulsi3_compare0_v6): Likewise.
21783 (*mulsi_compare0_scratch): Likewise.
21784 (*mulsi_compare0_scratch_v6): Likewise.
21785 (*mulsi3addsi): Likewise.
21786 (*mulsi3addsi_v6): Likewise.
21787 (*mulsi3addsi_compare0): Likewise.
21788 (*mulsi3addsi_compare0_v6): Likewise.
21789 (*mulsi3addsi_compare0_scratch): Likewise.
21790 (*mulsi3addsi_compare0_scratch_v6): Likewise.
21791 (*mulsi3subsi): Likewise.
21792 (*mulsidi3adddi): Likewise.
21793 (*mulsi3addsi_v6): Likewise.
21794 (*mulsidi3adddi_v6): Likewise.
21795 (*mulsidi3_nov6): Likewise.
21796 (*mulsidi3_v6): Likewise.
21797 (*umulsidi3_nov6): Likewise.
21798 (*umulsidi3_v6): Likewise.
21799 (*umulsidi3adddi): Likewise.
21800 (*umulsidi3adddi_v6): Likewise.
21801 (*smulsi3_highpart_nov6): Likewise.
21802 (*smulsi3_highpart_v6): Likewise.
21803 (*umulsi3_highpart_nov6): Likewise.
21804 (*umulsi3_highpart_v6): Likewise.
21805 (mulhisi3): Likewise.
21806 (*mulhisi3tb): Likewise.
21807 (*mulhisi3bt): Likewise.
21808 (*mulhisi3tt): Likewise.
21809 (maddhisi4): Likewise.
21810 (*maddhisi4tb): Likewise.
21811 (*maddhisi4tt): Likewise.
21812 (maddhidi4): Likewise.
21813 (*maddhidi4tb): Likewise.
21814 (*maddhidi4tt): Likewise.
21815 (divsi3): Likewise.
21816 (udivsi3): Likewise.
21817 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
21818 (thumb2_mulsi_short_compare0): Likewise.
21819 (thumb2_mulsi_short_compare0_scratch): Likewise.
21820 * config/arm/arm1020e.md (1020mult1): Update attribute change.
21821 (1020mult2): Likewise.
21822 (1020mult3): Likewise.
21823 (1020mult4): Likewise.
21824 (1020mult5): Likewise.
21825 (1020mult6): Likewise.
21826 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
21828 (cortex_a15_mult64): Likewise.
21829 (cortex_a15_sdiv): Likewise.
21830 (cortex_a15_udiv): Likewise.
21831 * config/arm/arm1026ejs.md (mult1): Update attribute change.
21837 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
21838 (pj4_ir_div): Likewise.
21839 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
21840 (11_mult2): Likewise.
21841 (11_mult3): Likewise.
21842 (11_mult4): Likewise.
21843 (11_mult5): Likewise.
21844 (11_mult6): Likewise.
21845 (11_mult7): Likewise.
21846 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
21847 (cortex_a8_mla): Likewise.
21848 (cortex_a8_mull): Likewise.
21849 (cortex_a8_smulwy): Likewise.
21850 (cortex_a8_smlald): Likewise.
21851 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
21852 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
21853 (cortex_r4_mul_3): Likewise.
21854 (cortex_r4_mla_4): Likewise.
21855 (cortex_r4_mla_3): Likewise.
21856 (cortex_r4_smlald): Likewise.
21857 (cortex_r4_mull): Likewise.
21858 (cortex_r4_sdiv): Likewise.
21859 (cortex_r4_udiv): Likewise.
21860 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
21861 (cortex_a7_idiv): Likewise.
21862 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
21863 (9_mult2): Likewise.
21864 (9_mult3): Likewise.
21865 (9_mult4): Likewise.
21866 (9_mult5): Likewise.
21867 (9_mult6): Likewise.
21868 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
21869 (cortex_a53_sdiv): Likewise.
21870 (cortex_a53_udiv): Likewise.
21871 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
21872 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
21873 (mp626_mult2): Likewise.
21874 (mp626_mult3): Likewise.
21875 (mp626_mult4): Likewise.
21876 * config/arm/fa526.md (526_mult1): Update attribute change.
21877 (526_mult2): Likewise.
21878 * config/arm/arm-generic.md (mult): Update attribute change.
21879 (mult_ldsched_strongarm): Likewise.
21880 (mult_ldsched): Likewise.
21881 (multi_cycle): Likewise.
21882 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
21883 * config/arm/fa606te.md (606te_mult1): Update attribute change.
21884 (606te_mult2): Likewise.
21885 (606te_mult3): Likewise.
21886 (606te_mult4): Likewise.
21887 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
21888 (cortex_a9_mac16): Likewise.
21889 (cortex_a9_multiply): Likewise.
21890 (cortex_a9_mac): Likewise.
21891 (cortex_a9_multiply_long): Likewise.
21892 * config/arm/fa626te.md (626te_mult1): Update attribute change.
21893 (626te_mult2): Likewise.
21894 (626te_mult3): Likewise.
21895 (626te_mult4): Likewise.
21897 2013-06-18 Richard Biener <rguenther@suse.de>
21900 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
21902 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21905 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
21906 with next_active_insn.
21908 2013-06-18 Alan Modra <amodra@gmail.com>
21910 * config/rs6000/rs6000.h (enum data_align): New.
21911 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
21912 (DATA_ABI_ALIGNMENT): Define.
21913 (CONSTANT_ALIGNMENT): Correct comment.
21914 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
21915 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
21917 2013-06-17 David Malcolm <dmalcolm@redhat.com>
21919 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
21920 ATTRIBUTE_UNUSED marking.
21922 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
21924 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
21925 alternative and update.
21926 (aarch64_dup_lanedi): Delete.
21927 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
21928 * config/aarch64/aarch64-simd-builtins.def: Update.
21930 2013-06-17 Richard Biener <rguenther@suse.de>
21932 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
21933 (lto_input_scc): Declare.
21934 (lto_input_tree_1): Likewise.
21935 (struct lto_stats_d): Add num_tree_bodies_output and
21936 num_pickle_refs_output.
21937 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
21938 (lto_read_tree_1): Split out from ...
21939 (lto_read_tree): ... this.
21940 (lto_input_scc): New function.
21941 (lto_input_tree_1): Split out from ...
21942 (lto_input_tree): ... this. Handle LTO_tree_scc.
21943 (lto_data_in_create): Create the streamer cache without hashes.
21944 * lto-streamer-out.c (create_output_block): Create the streamer
21945 cache with hashes when not doing WPA.
21946 (lto_write_tree_1): Split out from ...
21947 (lto_write_tree): ... this.
21948 (get_symbol_initial_value): New function.
21949 (lto_output_tree_1): Split out from ...
21950 (lto_output_tree): ... this. Write trees as series of SCCs
21951 using a DFS walk via DFS_write_tree.
21952 (struct sccs, struct scc_entry): New types.
21953 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
21954 (DFS_write_tree_body): New function.
21955 (DFS_write_tree): Likewise.
21956 (hash_tree): Likewise.
21957 (scc_entry_compare): Likewise.
21958 (hash_scc): Likewise.
21959 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
21960 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
21961 TREE_CHAIN as regular reference.
21962 (streamer_read_integer_cst): Remove.
21963 (streamer_get_pickled_tree): Adjust.
21964 * tree-streamer-out.c (streamer_write_chain): Disable streaming
21965 of DECL_EXTERNALs in BLOCK_VARS for now.
21966 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
21968 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
21969 Add hash value argument and record that if hashes are recorded
21971 (streamer_tree_cache_insert_1): Adjust.
21972 (streamer_tree_cache_insert): Likewise.
21973 (streamer_tree_cache_insert_at): Rename to ...
21974 (streamer_tree_cache_replace_tree): ... this and adjust.
21975 (streamer_tree_cache_append): Adjust.
21976 (record_common_node): Likewise.
21977 (streamer_tree_cache_create): Add argument whether to
21978 record hash values together with trees.
21979 (streamer_tree_cache_delete): Adjust.
21980 * tree-streamer.h (struct streamer_tree_cache_d): Add
21982 (streamer_read_integer_cst): Remove.
21983 (streamer_tree_cache_insert): Adjust.
21984 (streamer_tree_cache_append): Likewise.
21985 (streamer_tree_cache_insert_at): Rename to ...
21986 (streamer_tree_cache_replace_tree): ... this and adjust.
21987 (streamer_tree_cache_create): Add argument whether to record hashes.
21988 (streamer_tree_cache_get): Rename to ...
21989 (streamer_tree_cache_get_tree): ... this.
21990 (streamer_tree_cache_get_hash): New function.
21991 * tree.c (cache_integer_cst): New function.
21992 * tree.h (cache_integer_cst): Declare.
21993 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
21994 * lto-symtab.c (lto_varpool_replace_node): Only release
21995 DECL_INITIAL of non-prevailing decls.
21996 * varpool.c (varpool_remove_initializer): Do not release
21997 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
21999 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
22001 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
22002 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
22003 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
22004 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
22005 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
22006 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
22007 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
22008 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
22009 instead of TARGET_64BIT.
22010 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
22011 Require ISA_HAS_<D>DIV.
22013 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
22015 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
22016 (mips*-*-linux*): Move default with_llsc setting to where other
22018 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
22020 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
22021 Likewise. Remove default with_tune setting. Move default float
22022 setting to its own block. Handle with_llsc in the same block as above.
22024 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
22026 PR rtl-optimization/57425
22027 PR rtl-optimization/57569
22028 * alias.c (write_dependence_p): Add new parameters mem_mode,
22029 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
22030 Changed all callers.
22031 (canon_anti_dependence): New function.
22032 * cse.c (check_dependence): Use canon_anti_dependence.
22033 * cselib.c (cselib_invalidate_mem): Likewise.
22034 * rtl.h (canon_anti_dependence): Declare.
22036 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
22038 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
22039 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
22040 ".set mips3" for 64-bit targets.
22042 2013-06-15 Dehao Chen <dehao@google.com>
22044 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
22045 * gimple-low.c (gimple_check_call_matching_types): Likewise.
22046 (gimple_check_call_args): Likewise.
22047 * value-prof.c (check_ic_target): Likewise.
22048 * ipa-inline.c (early_inliner): Likewise.
22049 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
22050 * cgraph.c (cgraph_create_edge_1): Likewise.
22051 (cgraph_make_edge_direct): Likewise.
22053 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
22056 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
22057 rs6000_output_move_128bit to handle emitting quad memory
22058 operations. Set attribute length to 8 bytes.
22060 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
22062 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
22064 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
22065 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
22066 (aarch64_<su>mlsl<mode>): Likewise.
22068 2013-06-14 Mike Stump <mikestump@comcast.net>
22070 * Makefile.in (TARGET_H): Add insn-codes.h.
22072 2013-06-14 Alan Modra <amodra@gmail.com>
22074 PR middle-end/57134
22075 PR middle-end/57586
22076 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
22077 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
22078 bitfield expansion when EXPAND_MEMORY.
22079 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
22081 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
22083 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
22084 test for clearing quad memory on 32-bit later.
22086 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
22088 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
22089 (fold_negate_expr): Likewise.
22090 (fold_real_zero_addition_p): Handle vectors.
22091 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
22093 2013-06-14 Alan Modra <amodra@gmail.com>
22095 * varasm.c (force_const_mem): Revert 2013-06-07 change.
22097 2013-06-13 Jan Hubicka <jh@suse.cz>
22099 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
22100 Local comdats are not externally visible.
22101 * symtab.c (dump_symtab_base): Dump externally visible.
22102 (verify_symtab_base): Verify back links in the symtab hash.
22104 2013-06-13 Bin Cheng <bin.cheng@arm.com>
22106 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
22107 CONVERT_EXPR as equal nodes.
22109 2013-06-13 Bin Cheng <bin.cheng@arm.com>
22111 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
22113 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
22115 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
22116 Generalize to complex and vector.
22117 * tree.c (build_all_ones_cst): New function.
22118 * tree.h (build_all_ones_cst): Declare it.
22120 2013-06-13 Alan Modra <amodra@gmail.com>
22122 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
22123 * config/rs6000/rs6000.md (signbittf2): New insn.
22124 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
22125 (abstf2_internal, cmptf_internal2): Likewise.
22126 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
22128 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22129 Pat Haugen <pthaugen@us.ibm.com>
22130 Peter Bergner <bergner@vnet.ibm.com>
22132 * config/rs6000/rs6000.c (emit_load_locked): Add support for
22133 power8 byte, half-word, and quad-word atomic instructions.
22134 (emit_store_conditional): Likewise.
22135 (rs6000_expand_atomic_compare_and_swap): Likewise.
22136 (rs6000_expand_atomic_op): Likewise.
22138 * config/rs6000/sync.md (larx): Add new modes for power8.
22140 (AINT): New mode iterator to include TImode as well as normal
22141 integer modes on power8.
22142 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
22143 that VSX registers are not considered. Use AINT mode iterator
22144 instead of INT1 to allow inclusion of quad word atomic operations
22146 (load_locked<mode>): Likewise.
22147 (store_conditional<mode>): Likewise.
22148 (atomic_compare_and_swap<mode>): Likewise.
22149 (atomic_exchange<mode>): Likewise.
22150 (atomic_nand<mode>): Likewise.
22151 (atomic_fetch_<fetchop_name><mode>): Likewise.
22152 (atomic_nand_fetch<mode>): Likewise.
22153 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
22155 (ATOMIC): On power8, add QImode, HImode modes.
22156 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
22157 modes that promote to SImode.
22158 (load_lockedti): Convert TImode arguments to PTImode, so that we
22159 get a guaranteed even/odd register pair.
22160 (load_lockedpti): Likewise.
22161 (store_conditionalti): Likewise.
22162 (store_conditionalpti): Likewise.
22164 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
22165 atomic load/store instructions.
22168 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
22170 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
22172 (insn_count): New attribute, with most cases extracted from...
22173 (length): ...here. Redefine most cases in terms of insn_count.
22174 (single_insn): Delete.
22175 (can_delay): Use insn_count to check for single instructions.
22176 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
22177 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
22178 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
22179 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
22180 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
22181 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
22182 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
22183 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
22184 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
22185 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
22186 rather than "length".
22187 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
22188 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
22189 Use "insn_count" rather than "length".
22190 * config/mips/mips-dsp.md
22191 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
22192 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
22195 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
22197 PR tree-optimization/57361
22198 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
22200 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
22202 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
22204 (aarch64_simd_combine<mode>): New instruction expansion.
22205 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
22206 function prototype.
22207 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
22208 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
22210 2013-06-12 Jan Hubicka <jh@suse.cz>
22212 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
22213 decl has when in streaming stage.
22214 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
22215 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
22217 2013-06-12 Roland Stigge <stigge@antcom.de>
22220 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
22222 2013-06-12 Jakub Jelinek <jakub@redhat.com>
22224 PR tree-optimization/57537
22225 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
22226 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
22228 2013-06-12 Richard Biener <rguenther@suse.de>
22230 * data-streamer.h (streamer_write_char_stream): CSE
22231 obs->current_pointer.
22232 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
22233 streamer_write_char_stream manually and optimize the resulting loop.
22234 (streamer_write_hwi_stream): Likewise.
22236 2013-06-12 Jan Hubicka <jh@suse.cz>
22238 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
22239 * cgraph.h (varpool_create_empty_node): Declare.
22240 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
22242 * symtab.c (symtab_unregister_node): Be lax about missin entries
22244 (symtab_get_node): Update comment.
22245 * varpool.c (varpool_create_empty_node): Break out from ...
22246 (varpool_node_for_decl): ... here.
22247 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
22249 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
22251 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
22252 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
22253 part. Use straight-line flow at the end.
22254 <COMPONENT_REF>: Remove superfluous else.
22255 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
22257 2013-06-12 Jakub Jelinek <jakub@redhat.com>
22260 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
22261 target hook even for !TREE_PUBLIC decls. If no resolution info
22262 is available, return false for common and external decls.
22264 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22266 * config/rl78/constraints.md (U): New constraint.
22267 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
22270 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22273 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
22274 to allow returning address to AT_PLATFORM name.
22276 2013-06-11 Jan Hubicka <jh@suse.cz>
22278 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
22279 * cgraph.h (symtab_node_base): Add weakref flag.
22280 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
22281 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
22282 (output_weakrefs): Use weakref flag.
22283 * fold-const.c (simple_operand_p): Handle WEAK.
22284 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
22285 * ipa.c (varpool_externally_visible_p): Drop weakref.
22286 (function_and_variable_visibility): Update comment; fix weakref
22287 sanity checks; do not clear DECL_WEAK on them.
22288 * lto-cgraph.c (lto_output_node): update.
22289 (lto_output_varpool_node): Update.
22290 (input_overwrite_node): Update.
22291 (input_node): Update.
22292 (input_varpool_node): Update.
22293 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
22294 (lto_symtab_merge_symbols): Add sanity check.
22295 (lto_symtab_prevailing_decl): Do not special case weakrefs.
22296 * passes.c (rest_of_decl_compilation): Set static flag, too.
22297 * symtab.c (dump_symtab_base): Dump weakref.
22298 (verify_symtab_base): Sanity check weakrefs.
22299 (symtab_make_decl_local): Remove duplicated code.
22300 (symtab_alias_ultimate_target): Simplify.
22301 * varpool.c (varpool_create_variable_alias): Set weakref flag.
22303 2013-06-11 Tom de Vries <tom@codesourcery.com>
22305 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
22306 sequence_vect == NULL.
22308 2013-06-11 DJ Delorie <dj@redhat.com>
22310 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
22311 (rl78_unwind_word_mode): New.
22313 2013-06-11 David Malcolm <dmalcolm@redhat.com>
22315 * final.c (debug_prefix_maps): Make static.
22317 2013-06-11 David Malcolm <dmalcolm@redhat.com>
22319 * function.c (initial_trampoline): Remove stray copy.
22321 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
22323 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
22325 2013-06-11 Martin Jambor <mjambor@suse.cz>
22327 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
22328 within bounds at the beginning of the function.
22330 2013-06-11 Alan Modra <amodra@gmail.com>
22332 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
22334 (get_named_section): Don't NULL !DECL_P decl.
22336 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
22338 * doc/invoke.texi (core-avx2): Document.
22340 (atom): Updated with MOVBE.
22342 2013-06-11 Richard Biener <rguenther@suse.de>
22344 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
22346 2013-06-11 Anton Blanchard <anton@samba.org>
22348 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
22349 correct shift value in little-endian mode.
22351 2013-06-11 Jakub Jelinek <jakub@redhat.com>
22354 * varasm.c (get_variable_align): Move #endif to the right place.
22356 2013-06-10 Cary Coutant <ccoutant@google.com>
22358 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
22359 for hash so that hash table traversal order is deterministic.
22361 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
22362 Pat Haugen <pthaugen@us.ibm.com>
22363 Peter Bergner <bergner@vnet.ibm.com>
22365 * config/rs6000/vector.md (GPR move splitter): Do not split moves
22366 of vectors in GPRS if they are direct moves or quad word load or
22369 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
22371 (direct_move_p): Likewise.
22372 (quad_load_store_p): Likewise.
22374 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
22375 classes into bins based on the physical register type.
22376 (reg_class_to_reg_type): Likewise.
22377 (IS_STD_REG_TYPE): Likewise.
22378 (IS_FP_VECT_REG_TYPE): Likewise.
22379 (reload_fpr_gpr): Arrays to determine what insn to use if we can
22380 use direct move instructions.
22381 (reload_gpr_vsx): Likewise.
22382 (reload_vsx_gpr): Likewise.
22383 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
22384 information that is a simplification of register classes. Also
22385 precalculate direct move reload helpers.
22386 (direct_move_p): New function to return true if the operation can
22387 be done as a direct move instruciton.
22388 (quad_load_store_p): New function to return true if the operation
22389 is a quad memory operation.
22390 (rs6000_legitimize_address): If quad memory, only allow register
22391 indirect for TImode addresses.
22392 (rs6000_legitimate_address_p): Likewise.
22393 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
22394 (rs6000_reload_register_type): Likewise.
22395 (register_to_reg_type): Return register type.
22396 (rs6000_secondary_reload_simple_move): New helper function for
22397 secondary reload and secondary memory needed to identify anything
22398 that is a simple move, and does not need reloading.
22399 (rs6000_secondary_reload_direct_move): New helper function for
22400 secondary reload to identify cases that can be done with several
22401 instructions via the direct move instructions.
22402 (rs6000_secondary_reload_move): New helper function for secondary
22403 reload to identify moves between register types that can be done.
22404 (rs6000_secondary_reload): Add support for quad memory operations
22405 and for direct move.
22406 (rs6000_secondary_memory_needed): Likewise.
22407 (rs6000_debug_secondary_memory_needed): Change argument names.
22408 (rs6000_output_move_128bit): New function to return the move to
22409 use for 128-bit moves, including knowing about the various
22410 limitations of quad memory operations.
22412 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
22413 memory operations. call rs6000_output_move_128bit for the actual
22414 instruciton(s) to generate.
22415 (vsx_movti_64bit): Likewise.
22417 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
22418 (UNSPEC_P8V_MTVSRWZ): Likewise.
22419 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
22420 (UNSPEC_P8V_MTVSRD): Likewise.
22421 (UNSPEC_P8V_XXPERMDI): Likewise.
22422 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
22423 (UNSPEC_FUSION_GPR): Likewise.
22424 (FMOVE128_GPR): New iterator for direct move.
22425 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
22426 (f32_sv): Likewise.
22427 (f32_dm): Likewise.
22428 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
22429 loads and direct move instructions.
22430 (zero_extendsidi2_lfiwzx): Likewise.
22431 (extendsidi2_lfiwax): Likewise.
22432 (extendsidi2_nocell): Likewise.
22433 (floatsi<mode>2_lfiwax): Likewise.
22434 (lfiwax): Likewise.
22435 (floatunssi<mode>2_lfiwzx): Likewise.
22436 (lfiwzx): Likewise.
22437 (fix_trunc<mode>_stfiwx): Likewise.
22438 (fixuns_trunc<mode>_stfiwx): Likewise.
22439 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
22440 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
22441 (parity<mode>2_cmpb): Set length/type attr.
22442 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
22443 for 'mr.' to fast_compare.
22444 (bpermd_<mode>): Change type attr to popcnt.
22445 (p8_fmrgow_<mode>): New insns for power8 direct move support.
22446 (p8_mtvsrwz_1): Likewise.
22447 (p8_mtvsrwz_2): Likewise.
22448 (reload_fpr_from_gpr<mode>): Likewise.
22449 (p8_mtvsrd_1): Likewise.
22450 (p8_mtvsrd_2): Likewise.
22451 (p8_xxpermdi_<mode>): Likewise.
22452 (reload_vsx_from_gpr<mode>): Likewise.
22453 (reload_vsx_from_gprsf): Likewise.
22454 (p8_mfvsrd_3_<mode>): LIkewise.
22455 (reload_gpr_from_vsx<mode>): Likewise.
22456 (reload_gpr_from_vsxsf): Likewise.
22457 (p8_mfvsrd_4_disf): Likewise.
22458 (multi-word GPR splits): Do not split direct moves or quad memory
22461 2013-06-10 David Malcolm <dmalcolm@redhat.com>
22463 * tree-into-ssa.c (interesting_blocks): Make static.
22465 2013-06-10 Jakub Jelinek <jakub@redhat.com>
22468 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
22469 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
22470 Use DATA_ABI_ALIGNMENT for that case instead if defined.
22471 (get_variable_align): New function.
22472 (get_variable_section, emit_bss, emit_common,
22473 assemble_variable_contents, place_block_symbol): Use
22474 get_variable_align instead of DECL_ALIGN.
22475 (assemble_noswitch_variable): Add align argument, use it
22476 instead of DECL_ALIGN.
22477 (assemble_variable): Adjust caller. Use get_variable_align
22478 instead of DECL_ALIGN.
22479 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
22481 (DATA_ABI_ALIGNMENT): Define.
22482 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
22483 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
22484 opt is false, only return the psABI mandated alignment increase.
22485 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
22486 (DATA_ABI_ALIGNMENT): ... this.
22487 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
22488 (DATA_ABI_ALIGNMENT): ... this.
22489 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
22490 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
22491 (DATA_ABI_ALIGNMENT): ... this.
22492 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
22493 * doc/tm.texi: Regenerated.
22495 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
22497 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
22498 cmp_code to construct REG_EQUAL note.
22500 2013-06-09 Jakub Jelinek <jakub@redhat.com>
22503 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
22504 that operands[2] doesn't overlap with operands[0].
22506 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
22507 Jan Hubicka <jh@suse.cz>
22509 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
22510 hack to mark symbols as used.
22512 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
22514 PR rtl-optimization/57559
22515 * lra-constraints.c (process_alt_operands): Don't discourage
22516 memory with known offset for offsetable memory constraint.
22517 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
22519 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
22521 * varasm.c (struct oc_local_state): Reorder fields.
22522 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
22523 and adjust accordingly.
22524 (output_constructor): Reorder initialization code and adjust call to
22525 output_constructor_bitfield.
22527 2013-06-07 Jan Hubicka <jh@suse.cz>
22529 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
22531 2013-06-07 David Malcolm <dmalcolm@redhat.com>
22533 * tree-object-size.c (unknown): Make const.
22535 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22537 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
22538 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
22539 for last alternative in the cpu_facility attribute.
22541 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22544 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
22545 (xordi3): Change operand 2 constraint to arm_xordi_operand.
22546 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
22547 * config/arm/constraints.md (Dg): New constraint.
22548 * config/arm/neon.md (xordi3_neon): Remove.
22549 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
22550 * config/arm/predicates.md (arm_xordi_operand): New predicate.
22552 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22554 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
22555 Clean up alternatives.
22557 2013-06-07 Alan Modra <amodra@gmail.com>
22559 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
22562 2013-06-07 Alan Modra <amodra@gmail.com>
22564 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
22566 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22568 * config/arm/constraints.md (Df): New constraint.
22569 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
22570 Correct length attribute for last two alternatives.
22572 2013-06-07 Alan Modra <amodra@gmail.com>
22574 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22575 override user -mfp-in-toc.
22576 (offsettable_ok_by_alignment): Consider just the current access
22577 rather than the whole object, unless BLKmode. Handle
22578 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
22579 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
22580 for -mcmodel=medium.
22581 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
22582 override user -mfp-in-toc or -msum-in-toc. Default to
22583 -mno-fp-in-toc for -mcmodel=medium.
22585 2013-06-06 DJ Delorie <dj@redhat.com>
22587 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
22588 TARGET_VALID_POINTER_MODE.
22590 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22591 Pat Haugen <pthaugen@us.ibm.com>
22592 Peter Bergner <bergner@vnet.ibm.com>
22594 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22595 Document new power8 builtins.
22597 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
22598 condition code register, to allow 128-bit logical operations to be
22599 done in the VSX or GPR registers.
22600 (nor<mode>3): Use the canonical form for nor.
22601 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
22602 vclz*, and vpopcnt* vector instructions.
22603 (nand<mode>3): Likewise.
22604 (orc<mode>3): Likewise.
22605 (clz<mode>2): LIkewise.
22606 (popcount<mode>2): Likewise.
22608 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
22609 that only the GPRs are recognized.
22611 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22612 support for new power8 builtins.
22614 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
22616 (xscvdpspn): Likewise.
22622 (vpopcnt): Likewise.
22623 (vpopcntb): Likewise.
22624 (vpopcnth): Likewise.
22625 (vpopcntw): Likewise.
22626 (vpopcntd): Likewise.
22628 (vmrgew): Likewise.
22629 (vmrgow): Likewise.
22631 (eqv_v16qi3): Likewise.
22632 (eqv_v8hi3): Likewise.
22633 (eqv_v4si3): Likewise.
22634 (eqv_v2di3): Likewise.
22635 (eqv_v4sf3): Likewise.
22636 (eqv_v2df3): Likewise.
22638 (nand_v16qi3): Likewise.
22639 (nand_v8hi3): Likewise.
22640 (nand_v4si3): Likewise.
22641 (nand_v2di3): Likewise.
22642 (nand_v4sf3): Likewise.
22643 (nand_v2df3): Likewise.
22645 (orc_v16qi3): Likewise.
22646 (orc_v8hi3): Likewise.
22647 (orc_v4si3): Likewise.
22648 (orc_v2di3): Likewise.
22649 (orc_v4sf3): Likewise.
22650 (orc_v2df3): Likewise.
22652 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
22653 allow power8 quad mode in 64-bit.
22654 (rs6000_builtin_vectorized_function): Add support to vectorize
22655 ISA 2.07 count leading zeros, population count builtins.
22656 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
22657 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
22658 (builtin_function_type): Add vgbbd builtin function which takes an
22660 (altivec_expand_vec_perm_const): Add support for new power8 merge
22663 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
22664 that does not include TImdoe for use with 32-bit.
22665 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
22667 (UNSPEC_VSX_CVDPSPN): Likewise.
22668 (vsx_xscvdpspn): Likewise.
22669 (vsx_xscvspdpn): Likewise.
22670 (vsx_xscvdpspn_scalar): Likewise.
22671 (vsx_xscvspdpn_directmove): Likewise.
22672 (vsx_and<mode>3): Split logical operations into 32-bit and
22673 64-bit. Add support to do logical operations on TImode as well as
22674 VSX vector types. Allow logical operations to be done in either
22675 VSX registers or in general purpose registers in 64-bit mode. Add
22676 splitters if GPRs were used. For AND, add clobber of CCmode to
22677 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
22679 (vsx_and<mode>3_32bit): Likewise.
22680 (vsx_and<mode>3_64bit): Likewise.
22681 (vsx_ior<mode>3): Likewise.
22682 (vsx_ior<mode>3_32bit): Likewise.
22683 (vsx_ior<mode>3_64bit): Likewise.
22684 (vsx_xor<mode>3): Likewise.
22685 (vsx_xor<mode>3_32bit): Likewise.
22686 (vsx_xor<mode>3_64bit): Likewise.
22687 (vsx_one_cmpl<mode>2): Likewise.
22688 (vsx_one_cmpl<mode>2_32bit): Likewise.
22689 (vsx_one_cmpl<mode>2_64bit): Likewise.
22690 (vsx_nor<mode>3): Likewise.
22691 (vsx_nor<mode>3_32bit): Likewise.
22692 (vsx_nor<mode>3_64bit): Likewise.
22693 (vsx_andc<mode>3): Likewise.
22694 (vsx_andc<mode>3_32bit): Likewise.
22695 (vsx_andc<mode>3_64bit): Likewise.
22696 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
22697 and xxlorc instructions.
22698 (vsx_eqv<mode>3_64bit): Likewise.
22699 (vsx_nand<mode>3_32bit): Likewise.
22700 (vsx_nand<mode>3_64bit): Likewise.
22701 (vsx_orc<mode>3_32bit): Likewise.
22702 (vsx_orc<mode>3_64bit): Likewise.
22704 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
22706 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
22708 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
22709 (p8_vmrgow): Likewise.
22710 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
22711 GPRs to be split under VSX.
22712 (p8v_clz<mode>2): Add power8 count leading zero support.
22713 (p8v_popcount<mode>2): Add power8 population count support.
22714 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
22717 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
22720 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
22722 (vec_nand): Likewise.
22723 (vec_vclz): Likewise.
22724 (vec_vclzb): Likewise.
22725 (vec_vclzd): Likewise.
22726 (vec_vclzh): Likewise.
22727 (vec_vclzw): Likewise.
22728 (vec_vgbbd): Likewise.
22729 (vec_vmrgew): Likewise.
22730 (vec_vmrgow): Likewise.
22731 (vec_vpopcnt): Likewise.
22732 (vec_vpopcntb): Likewise.
22733 (vec_vpopcntd): Likewise.
22734 (vec_vpopcnth): Likewise.
22735 (vec_vpopcntw): Likewise.
22737 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
22739 PR rtl-optimization/57468
22740 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
22743 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
22745 PR rtl-optimization/57459
22746 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
22747 type when setting live regs.
22749 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
22751 * config/s390/s390.opt (mlra): New option.
22752 * config/s390/s390.c (s390_decompose_address): Check displacement
22753 for all registers for LRA.
22754 (s390_secondary_reload): Don't used secondary reloads for LRA.
22755 (s390_lra_p): New function.
22756 (TARGET_LRA_P): Define.
22757 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
22758 of attribute cpu_facility to zarch for the last alternative.
22759 (*cmpmem_short): Ditto.
22761 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
22763 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
22764 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
22765 (arm_expand_prologue): Likewise.
22767 2013-06-06 Teresa Johnson <tejohnson@google.com>
22770 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
22771 as this is now done by redirect_edge_and_branch_force.
22772 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
22773 barriers, and fix interaction with splitting.
22774 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
22775 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
22776 reflect changes made in the routine.
22777 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
22778 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
22779 since this is called in cfglayout mode, and replace partition fixup
22780 with assert as that is now done by force_nonfallthru_and_redirect.
22781 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
22782 already be marked with region crossing note.
22783 (insert_section_boundary_note): Make non-static, gate on flag
22784 has_bb_partition, rewrite to also check for multiple partitions.
22785 (rest_of_handle_reorder_blocks): Remove call to
22786 insert_section_boundary_note, now done later during free_cfg.
22787 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
22788 * bb-reorder.h (insert_section_boundary_note): Declare.
22789 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
22790 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
22791 invoke insert_section_boundary_note.
22792 (try_redirect_by_replacing_jump): Remove unnecessary
22793 check for region crossing note.
22794 (fixup_partition_crossing): New function.
22795 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
22796 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
22797 in non-cfglayout mode.
22798 (force_nonfallthru_and_redirect): Fixup partition boundaries,
22799 remove old code that tried to do this. Emit barrier correctly
22800 when we are in cfglayout mode.
22801 (last_bb_in_partition): New function.
22802 (rtl_split_edge): Correctly fixup partition boundaries.
22803 (commit_one_edge_insertion): Remove old code that tried to
22804 fixup region crossing edge since this is now handled in
22805 split_block, and set up insertion point correctly since
22806 block may now end in a jump.
22807 (verify_hot_cold_block_grouping): Guard against checking when not in
22808 linearized RTL mode.
22809 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
22811 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
22812 rtl_verify_flow_info, so not called in cfglayout mode.
22813 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
22814 (fixup_reorder_chain): Remove old code that attempted to fixup region
22815 crossing note as this is now handled in force_nonfallthru_and_redirect.
22816 (duplicate_insn_chain): Don't duplicate switch section notes.
22817 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
22819 * basic-block.h (emit_barrier_after_bb): Declare.
22821 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22823 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
22824 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
22825 arm_usatsihi): Adjust alternatives for arm_restrict_it.
22827 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22829 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
22831 * config/arm/ldmstm.md: Regenerate.
22833 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22835 * config/arm/sync.md (atomic_loaddi_1):
22836 Disable predication for arm_restrict_it.
22837 (arm_load_exclusive<mode>): Likewise.
22838 (arm_load_exclusivesi): Likewise.
22839 (arm_load_exclusivedi): Likewise.
22840 (arm_load_acquire_exclusive<mode>): Likewise.
22841 (arm_load_acquire_exclusivesi): Likewise.
22842 (arm_load_acquire_exclusivedi): Likewise.
22843 (arm_store_exclusive<mode>): Likewise.
22844 (arm_store_exclusive<mode>): Likewise.
22845 (arm_store_release_exclusivedi): Likewise.
22846 (arm_store_release_exclusive<mode>): Likewise.
22848 2013-06-06 Richard Biener <rguenther@suse.de>
22850 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
22852 (lto_tag_is_tree_code_p): Adjust.
22853 (lto_tag_is_gimple_code_p): Likewise.
22854 (lto_gimple_code_to_tag): Likewise.
22855 (lto_tag_to_gimple_code): Likewise.
22856 (lto_tree_code_to_tag): Likewise.
22857 (lto_tag_to_tree_code): Likewise.
22858 * data-streamer.h (streamer_write_hwi_in_range): Use
22859 uhwi streaming to stream the normalized range.
22860 (streamer_read_hwi_in_range): Likewise.
22862 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22864 * config/arm/arm.md (enabled_for_depr_it): New attribute.
22865 (predicable_short_it): Likewise.
22866 (predicated): Likewise.
22867 (enabled): Handle above.
22868 (define_cond_exec): Set predicated attribute to yes.
22870 2013-06-05 Mike Stump <mikestump@comcast.net>
22872 * gdbinit.in (__FUNCTION__): Add.
22874 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
22876 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
22877 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
22879 2013-06-05 Jan Hubicka <jh@suse.cz>
22881 * varasm.c (mark_decl_referenced): Revert the removal until targets
22884 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
22886 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
22887 instead of mark_decl_referenced.
22889 2013-06-05 Jan Hubicka <jh@suse.cz>
22891 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
22892 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
22893 and symtab_used_from_object_file_p.
22894 (cgraph_make_node_local_1): Clear forced_by_abi.
22895 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
22896 * cgraph.h (symtab_node_base): Add forced_by_abi.
22897 (decide_is_variable_needed): Remove.
22898 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
22899 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
22900 (decide_is_symbol_needed): ... this one; handle symbols in general;
22901 always analyze virtuals; honnor forced_by_abi.
22902 (cgraph_finalize_function): Update.
22903 (varpool_finalize_decl): Update.
22904 (symbol_defined_and_needed): Remove.
22905 (analyze_functions): Update.
22906 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22907 output_refs, input_overwrite_node): Handle forced_by_abi.
22908 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
22909 (address_taken_from_non_vtable_p): ... this one.
22910 (comdat_can_be_unshared_p_1): New function.
22911 (cgraph_comdat_can_be_unshared_p): Rename to ...
22912 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
22913 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
22914 (function_and_variable_visibility): Clear forced_by_abi as needed.
22915 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
22916 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
22917 * symtab.c (dump_symtab_base): Dump forced_by_abi.
22918 * varpool.c (decide_is_variable_needed): Remove.
22920 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22922 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
22923 (arm_option_override): Override arm_restrict_it where appropriate.
22924 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
22925 * config/arm/arm.opt (mrestrict-it): New command-line option.
22926 * doc/invoke.texi: Document -mrestrict-it.
22928 2013-06-05 David Malcolm <dmalcolm@redhat.com>
22930 * tsan.c (tsan_atomic_table): Make const.
22932 2013-06-05 Richard Biener <rguenther@suse.de>
22934 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
22935 index associated with the tree we are supposed to replace.
22936 * tree-streamer-out.c (pack_ts_base_value_fields): Output
22937 TREE_ASM_WRITTEN as zero for everything but SSA names.
22939 2013-06-05 David Malcolm <dmalcolm@redhat.com>
22941 * tree-ssa-structalias.c (call_stmt_vars): Make static.
22943 2013-06-04 Jan Hubicka <jh@suse.cz>
22945 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
22946 (input_node, input_varpool_node): Handle correctly external same
22948 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
22949 nodes at ltrans stage.
22951 2013-06-04 Jan Hubicka <jh@suse.cz>
22953 * ipa-inline.c (update_caller_keys): Fix availability test.
22954 (update_callee_keys): Likewise.
22955 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
22956 to follow ELF standard.
22958 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
22960 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
22961 (mips64r5900el-*-elf*): New configurations.
22962 * config/mips/mips-cpus.def (r5900): New processor.
22963 * config/mips/mips-tables.opt: Regenerate.
22964 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
22965 (mips_issue_rate): Handle PROCESSOR_R5900.
22966 (mips_reorg_process_insns): Force reorder mode for the R5900.
22967 * config/mips/mips.h (TARGET_MIPS5900): Define.
22968 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
22970 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
22972 * config/mips/mips.md (processor): Add r5900.
22973 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
22975 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22977 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
22978 into function to generate MOVI instruction.
22979 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
22980 (aarch64_preferred_simd_mode): Turn into wrapper.
22981 (aarch64_output_scalar_simd_mov_immediate): New function.
22982 * config/aarch64/aarch64-protos.h: Add prototype for above.
22984 2013-06-04 Ian Bolton <ian.bolton@arm.com>
22986 * config/aarch64/aarch64.c (simd_immediate_info): Remove
22987 element_char member.
22988 (sizetochar): Return signed char.
22989 (aarch64_simd_valid_immediate): Remove elchar and other
22990 unnecessary variables.
22991 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
22992 Calculate element_char as required.
22993 * config/aarch64/aarch64-protos.h: Update and move prototype
22994 for aarch64_output_simd_mov_immediate.
22995 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
22998 2013-06-04 Ian Bolton <ian.bolton@arm.com>
23000 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
23001 information completed by aarch64_simd_valid_immediate.
23002 (aarch64_legitimate_constant_p): Update arguments.
23003 (aarch64_simd_valid_immediate): Work with struct rather than many
23005 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
23006 (aarch64_simd_make_constant): Update arguments.
23007 (aarch64_output_simd_mov_immediate): Work with struct rather than
23008 many pointers. Output immediate directly rather than as operand.
23009 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
23011 * config/aarch64/constraints.md (Dn): Update arguments.
23013 2013-06-04 Ian Bolton <ian.bolton@arm.com>
23015 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
23017 (aarch64_simd_immediate_valid_for_move): Remove.
23018 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
23019 (aarch64_simd_make_constant): Update call.
23020 (aarch64_output_simd_mov_immediate): Update call.
23021 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
23023 * config/aarch64/constraints.md (Dn): Update call.
23025 2013-06-04 Ian Bolton <ian.bolton@arm.com>
23027 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
23028 return type to bool for prototype.
23029 (aarch64_legitimate_constant_p): Check for true instead of not -1.
23030 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
23031 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
23033 2013-06-04 Catherine Moore <clm@codesourcery.com>
23035 * config/mips/mips.opt (meva): New.
23036 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
23037 (ASM_SPEC): Handle -meva.
23038 * doc/invoke.texi (meva): Document.
23040 2013-06-04 Alan Modra <amodra@gmail.com>
23042 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
23045 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23047 * rtl.def: Add extra fourth optional field to define_cond_exec.
23048 * gensupport.c (process_one_cond_exec): Process attributes from
23050 * doc/md.texi: Document fourth field in define_cond_exec.
23052 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
23054 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
23055 out the processing order as in store_bit_field_1.
23057 2013-06-04 Jan Hubicka <jh@suse.cz>
23059 PR middle-end/57500
23060 * cgraphunit.c (cgraph_process_same_body_aliases): Create
23061 non-VAR_DECL node if it does not exist yet.
23063 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
23065 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
23066 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
23067 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
23068 target_cpu_default setting.
23070 2013-06-03 Teresa Johnson <tejohnson@google.com>
23072 * dumpfile.c (opt_info_switch_p): Change -fopt-info
23073 default to -fopt-info=optimized instead of all.
23074 * doc/invoke.texi: Ditto.
23075 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
23076 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
23077 (execute_vect_slp): Emit BB vectorization success under
23078 MSG_OPTIMIZED_LOCATIONS.
23079 * tree-vect-slp.c (vect_slp_transform_bb): Change
23080 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
23081 * tree-vect-loop.c (vect_transform_loop): Ditto.
23083 2013-06-03 Jason Merrill <jason@redhat.com>
23086 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23087 Use TARGET_EXPR for C++.
23089 2013-06-03 Jakub Jelinek <jakub@redhat.com>
23091 PR rtl-optimization/57268
23092 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
23093 if DEBUG_INSN_P (insn).
23096 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
23098 PR rtl-optimization/57268
23099 * sched-deps.c (sched_analyze_2): Flush dependence lists if
23100 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23102 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
23104 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
23105 (ix86_avoid_lea_for_addr): Likewise.
23106 (exact_dependency_1): Likewise.
23107 (ix86_adjust_cost): Likewise.
23108 (swap_top_of_ready_list): Fix formatting and !reload_completed check
23110 (do_reorder_for_imul): Fix typo, formatting and
23111 !reload_completed check removed.
23112 (ix86_sched_reorder): Fix typo and formatting.
23113 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
23116 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
23118 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
23120 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
23122 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
23123 <STRING_CST>: Likewise.
23124 <VECTOR_CST>: Likewise.
23126 2013-06-01 Janus Weil <janus@gcc.gnu.org>
23127 Mikael Morin <mikael@gcc.gnu.org>
23129 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
23130 * config.in: Regenerated.
23131 * configure: Regenerated.
23133 2013-06-01 Jan Hubicka <jh@suse.cz>
23135 PR middle-end/57366
23136 * cgraphunit.c (compile): When weakref is not supported,
23137 set up transparent aliases before final output pass.
23138 * varasm.c (assemble_alias): Do not try to do it here.
23140 2013-06-01 Jan Hubicka <jh@suse.cz>
23142 PR middle-end/57467
23143 * passes.c (for_per_function): Skip unanalyzed functions.
23145 2013-06-01 Jan Hubicka <jh@suse.cz>
23147 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
23148 (lto_symtab_merge_symbols_1): ... this one.
23149 (lto_symtab_merge_cgraph_nodes): Rename to ...
23150 (lto_symtab_merge_symbols): ... this one; simplify.
23151 * cgraph.c (same_body_aliases_done): Rename to ...
23152 (cpp_implicit_aliases_done): ... this one.
23153 (cgraph_create_function_alias): Update.
23154 (cgraph_same_body_alias): Update.
23155 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
23156 (verify_edge_corresponds_to_fndecl): Simplify.
23157 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
23158 (cgraph_node): Remove same_body_alias.
23159 (varpool_node): Remove alias_of and extra_name_alias.
23160 (same_body_aliases_done): Rename to ..
23161 (cpp_implicit_aliases_done): ... this one.
23162 (symtab_alias_ultimate_target): Add default parameter.
23163 (symtab_resolve_alias): New function.
23164 (fixup_same_cpp_alias_visibility): Declare.
23165 (cgraph_function_node): Add default parameter.
23166 (cgraph_node_asm_name): Likewise.
23167 (cgraph_function_or_thunk_node): Add default parameter; do
23168 not ICE when it is NULL.
23169 (varpool_variable_node): Likewise.
23170 * tree-emutls.c (create_emultls_var): Update.
23171 (ipa_lower_emutls): Update.
23172 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
23173 (cgraph_reset_node): Reset alias info.
23174 (cgraph_finalize_function): Update.
23175 (fixup_same_cpp_alias_visibility): Move to symtab.c.
23176 (analyze_function): Simplify.
23177 (cgraph_process_same_body_aliases): Simplify.
23178 (analyze_functions): Fixup same body aliases.
23179 (handle_alias_pairs): Simplify.
23180 (assemble_thunk): Update.
23181 (assemble_thunks_and_aliases): Update.
23182 (output_weakrefs): Rewrite.
23183 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
23184 (lto_output_varpool_node): Likewise.
23185 (compute_ltrans_boundary): Remve assert.
23186 (get_alias_symbol): New functoin.
23187 (input_node): Rewrite alias handling.
23188 (input_varpool_node): Likewise.
23189 * ipa-pure-const.c (propagate_pure_const): Fix formating.
23190 * ipa.c (process_references): Handle weakrefs correctly.
23191 (symtab_remove_unreachable_nodes): Likewise.
23192 * trans-mem.c (get_cg_data): Update.
23193 (ipa_tm_create_version_alias): Update.
23194 (ipa_tm_execute): Update.
23195 * symtab.c (dump_symtab_base): Dump aliases.
23196 (verify_symtab_base): Verify aliases.
23197 (symtab_node_availability): New function.
23198 (symtab_alias_ultimate_target): Simplify.
23199 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
23200 handle all the fixup cases.
23201 (symtab_resolve_alias): New function.
23202 * passes.c (ipa_write_summaries): Handle weakrefs.
23203 * varpool.c (varpool_analyze_node): Simplify.
23204 (assemble_aliases): Update.
23205 (varpool_create_variable_alias): Simplify.
23206 (varpool_extra_name_alias): Simplify.
23207 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
23208 (lto_symtab_merge_symbols): ... this one.
23210 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
23213 PR rtl-optimization/57268
23214 * sched-deps.c (sched_analyze_2): Flush dependence lists if
23215 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23217 2013-06-01 Tobias Burnus <burnus@net-b.de>
23219 Partially reverted:
23220 2013-05-31 Tobias Burnus <burnus@net-b.de>
23222 PR middle-end/57073
23223 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
23226 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
23228 PR rtl-optimization/57268
23229 * sched-deps.c (sched_analyze_2): Flush dependence lists if
23230 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
23232 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
23234 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
23235 unordered comparison operators when -fno-trapping-math is in effect
23237 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
23238 and implement unordered comparison operators properly on the e500.
23240 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
23242 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
23243 for constant scalar integers.
23244 (simplify_relational_operation_1): Likewise.
23246 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
23248 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
23249 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
23252 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
23253 Igor Zamyatin <igor.zamyatin@intel.com>
23255 Silvermont (SLM) architecture performance tuning.
23256 * config/i386/i386.h (enum ix86_tune_indices): Add
23257 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
23258 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
23260 * config/i386/i386.c (initial_ix86_tune_features)
23261 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
23262 (ix86_lea_outperforms): Handle Silvermont tuning.
23263 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
23265 (ix86_use_lea_for_mov): Likewise.
23266 (ix86_avoid_lea_for_addr): Likewise.
23267 (ix86_lea_for_add_ok): Likewise.
23268 (exact_dependency_1): New function.
23269 (exact_store_load_dependency): Likewise.
23270 (ix86_adjust_cost): Handle Silvermont tuning.
23271 (do_reoder_for_imul): Likewise.
23272 (swap_top_of_ready_list): New function.
23273 (ix86_sched_reorder): Changed to handle Silvermont tuning.
23275 * config/i386/i386.md (peepholes that split memory operand in fp
23278 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
23280 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23281 Remove un-necessary braces.
23283 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
23285 * config/aarch64/aarch64.c (aarch64_classify_symbol):
23286 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
23288 2013-05-31 Tobias Burnus <burnus@net-b.de>
23290 PR middle-end/57073
23291 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
23293 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23296 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
23297 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
23298 * config/arm/neon.md (iordi3_neon): Remove.
23299 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
23300 * config/arm/predicates.md (imm_for_neon_logic_operand):
23301 Move to earlier in the file.
23302 (neon_logic_op2): Likewise.
23303 (arm_iordi_operand_neon): New predicate.
23305 2013-05-31 Richard Biener <rguenther@suse.de>
23307 PR tree-optimization/57478
23308 PR tree-optimization/57453
23309 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
23312 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23314 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
23315 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
23317 2013-05-30 Tobias Burnus <burnus@net-b.de>
23318 Thomas Koenig <tkoenig@gcc.gnu.org>
23320 PR middle-end/57073
23321 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
23322 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
23324 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
23326 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
23328 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
23330 * target.def (register_usage_leveling_p): New hook.
23331 * targhooks.c (default_register_usage_leveling_p): New.
23332 * targhooks.h (default_register_usage_leveling_p): New prototype.
23333 * lra-assigns.c (register_usage_leveling_p): Use the hook.
23334 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
23335 * doc/tm.texi: Update.
23336 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
23338 2013-05-30 Ian Bolton <ian.bolton@arm.com>
23340 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
23341 (*insv_reg<mode>): New define_insn.
23343 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
23345 PR rtl-optimization/57439
23346 * postreload.c (move2add_valid_value_p): Check that we have
23347 a zero subreg_regno_offset when accessing the register in
23348 the requested mode.
23350 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
23351 Igor Zamyatin <igor.zamyatin@intel.com>
23353 Silvermont (SLM) architecture pipeline model, tuning and
23355 * config.gcc: Add slm config options and target.
23357 * config/i386/slm.md: New.
23359 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
23361 * config/i386/i386-c.c (ix86_target_macros_internal): New case
23363 (ix86_target_macros_internal): Likewise.
23365 * config/i386/i386.c (slm_cost): New cost.
23366 (m_SLM): New macro flag.
23367 (initial_ix86_tune_features): Set m_SLM.
23368 (x86_accumulate_outgoing_args): Likewise.
23369 (x86_arch_always_fancy_math_387): Likewise.
23370 (processor_target_table): Add slm cost.
23371 (cpu_names): Add slm cpu name.
23372 (x86_option_override_internal): Set SLM ISA.
23373 (ix86_issue_rate): New case PROCESSOR_SLM.
23374 (ia32_multipass_dfa_lookahead): Likewise.
23375 (fold_builtin_cpu): Add slm.
23377 * config/i386/i386.h (TARGET_SLM): New target macro.
23378 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
23379 (processor_type): Add PROCESSOR_SLM.
23381 * config/i386/i386.md (cpu): Add new value "slm".
23382 (slm.md): Include slm.md.
23384 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
23385 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23387 * config/arm/arm-protos.h: Add and update function protos.
23388 * config/arm/arm.c (use_simple_return_p): New added.
23389 (thumb2_expand_return): Check simple_return flag.
23390 * config/arm/arm.md: Add simple_return and conditional simple_return.
23391 * config/arm/iterators.md: Add iterator for return and simple_return.
23393 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23395 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
23396 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
23397 (arm_emit_vfp_multi_reg_pop): Likewise.
23398 (thumb2_emit_ldrd_pop): Likewise.
23399 (arm_expand_epilogue): Add misc REG_CFA notes.
23400 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
23402 2013-05-29 Lawrence Crowl <crowl@google.com>
23404 * config/arm/t-arm: Update for below.
23406 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
23407 Change type to hash_table. Update dependent calls and types.
23409 * config/i386/t-cygming: Update for below.
23411 * config/i386/t-interix: Update for below.
23413 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
23414 Change type to hash_table. Update dependent calls and types.
23415 (i386_find_on_wrapper_list::wrappers): Likewise.
23417 * config/ia64/t-ia64: Update for below.
23419 * config/ia64/ia64.c (bundle_state_table):
23420 Change type to hash_table. Update dependent calls and types.
23422 * config/mips/mips.c (mips_reorg_process_insns::htab):
23423 Change type to hash_table. Update dependent calls and types.
23425 * config/sol2.c (solaris_comdat_htab):
23426 Change type to hash_table. Update dependent calls and types.
23428 * config/t-sol2: Update for above.
23430 2013-05-29 Teresa Johnson <tejohnson@google.com>
23432 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
23433 functions are not yet marked as defined.
23435 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
23436 Pat Haugen <pthaugen@us.ibm.com>
23437 Peter Bergner <bergner@vnet.ibm.com>
23439 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
23443 (vrotl<mode>3): Likewise.
23444 (vashl<mode>3): Likewise.
23445 (vlshr<mode>3): Likewise.
23446 (vashr<mode>3): Likewise.
23448 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23449 support for power8 V2DI builtins.
23451 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
23452 power8 V2DI builtins.
23453 (vupkhsw): Likewise.
23454 (vupklsw): Likewise.
23455 (vaddudm): Likewise.
23456 (vminsd): Likewise.
23457 (vmaxsd): Likewise.
23458 (vminud): Likewise.
23459 (vmaxud): Likewise.
23460 (vpkudum): Likewise.
23461 (vpksdss): Likewise.
23462 (vpkudus): Likewise.
23463 (vpksdus): Likewise.
23468 (vsubudm): Likewise.
23469 (vcmpequd): Likewise.
23470 (vcmpgtsd): Likewise.
23471 (vcmpgtud): Likewise.
23472 (vcmpequd_p): Likewise.
23473 (vcmpgtsd_p): Likewise.
23474 (vcmpgtud_p): Likewise.
23475 (vupkhsw): Likewise.
23476 (vupklsw): Likewise.
23477 (vaddudm): Likewise.
23478 (vmaxsd): Likewise.
23479 (vmaxud): Likewise.
23480 (vminsd): Likewise.
23481 (vminud): Likewise.
23482 (vpksdss): Likewise.
23483 (vpksdus): Likewise.
23484 (vpkudum): Likewise.
23485 (vpkudus): Likewise.
23490 (vsubudm): Likewise.
23492 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
23493 support for power8 V2DI instructions.
23495 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
23496 power8 V2DI instructions. Combine pack and unpack insns to use an
23497 iterator for each mode. Check whether a particular mode supports
23498 Altivec instructions instead of just checking TARGET_ALTIVEC.
23499 (UNSPEC_VPKUWUM): Likewise.
23500 (UNSPEC_VPKSHSS): Likewise.
23501 (UNSPEC_VPKSWSS): Likewise.
23502 (UNSPEC_VPKUHUS): Likewise.
23503 (UNSPEC_VPKSHUS): Likewise.
23504 (UNSPEC_VPKUWUS): Likewise.
23505 (UNSPEC_VPKSWUS): Likewise.
23506 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
23507 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
23508 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
23509 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
23510 (UNSPEC_VUPKHSB): Likewise.
23511 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
23512 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
23513 (UNSPEC_VUPKHSH): Likewise.
23514 (UNSPEC_VUPKLSB): Likewise.
23515 (UNSPEC_VUPKLSH): Likewise.
23517 (VI_char): Likewise.
23518 (VI_scalar): Likewise.
23519 (VI_unit): Likewise.
23521 (VP_small): Likewise.
23522 (VP_small_lc): Likewise.
23523 (VU_char): Likewise.
23524 (add<mode>3): Likewise.
23525 (altivec_vaddcuw): Likewise.
23526 (altivec_vaddu<VI_char>s): Likewise.
23527 (altivec_vadds<VI_char>s): Likewise.
23528 (sub<mode>3): Likewise.
23529 (altivec_vsubcuw): Likewise.
23530 (altivec_vsubu<VI_char>s): Likewise.
23531 (altivec_vsubs<VI_char>s): Likewise.
23532 (altivec_vavgs<VI_char>): Likewise.
23533 (altivec_vcmpbfp): Likewise.
23534 (altivec_eq<mode>): Likewise.
23535 (altivec_gt<mode>): Likewise.
23536 (altivec_gtu<mode>): Likewise.
23537 (umax<mode>3): Likewise.
23538 (smax<mode>3): Likewise.
23539 (umin<mode>3): Likewise.
23540 (smin<mode>3): Likewise.
23541 (altivec_vpkuhum): Likewise.
23542 (altivec_vpkuwum): Likewise.
23543 (altivec_vpkshss): Likewise.
23544 (altivec_vpkswss): Likewise.
23545 (altivec_vpkuhus): Likewise.
23546 (altivec_vpkshus): Likewise.
23547 (altivec_vpkuwus): Likewise.
23548 (altivec_vpkswus): Likewise.
23549 (altivec_vpks<VI_char>ss): Likewise.
23550 (altivec_vpks<VI_char>us): Likewise.
23551 (altivec_vpku<VI_char>us): Likewise.
23552 (altivec_vpku<VI_char>um): Likewise.
23553 (altivec_vrl<VI_char>): Likewise.
23554 (altivec_vsl<VI_char>): Likewise.
23555 (altivec_vsr<VI_char>): Likewise.
23556 (altivec_vsra<VI_char>): Likewise.
23557 (altivec_vsldoi_<mode>): Likewise.
23558 (altivec_vupkhsb): Likewise.
23559 (altivec_vupkhs<VU_char>): Likewise.
23560 (altivec_vupkls<VU_char>): Likewise.
23561 (altivec_vupkhsh): Likewise.
23562 (altivec_vupklsb): Likewise.
23563 (altivec_vupklsh): Likewise.
23564 (altivec_vcmpequ<VI_char>_p): Likewise.
23565 (altivec_vcmpgts<VI_char>_p): Likewise.
23566 (altivec_vcmpgtu<VI_char>_p): Likewise.
23567 (abs<mode>2): Likewise.
23568 (vec_unpacks_hi_v16qi): Likewise.
23569 (vec_unpacks_hi_v8hi): Likewise.
23570 (vec_unpacks_lo_v16qi): Likewise.
23571 (vec_unpacks_hi_<VP_small_lc>): Likewise.
23572 (vec_unpacks_lo_v8hi): Likewise.
23573 (vec_unpacks_lo_<VP_small_lc>): Likewise.
23574 (vec_pack_trunc_v8h): Likewise.
23575 (vec_pack_trunc_v4si): Likewise.
23576 (vec_pack_trunc_<mode>): Likewise.
23578 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
23580 (vec_vmaxsd): Likewise.
23581 (vec_vmaxud): Likewise.
23582 (vec_vminsd): Likewise.
23583 (vec_vminud): Likewise.
23584 (vec_vpksdss): Likewise.
23585 (vec_vpksdus): Likewise.
23586 (vec_vpkudum): Likewise.
23587 (vec_vpkudus): Likewise.
23588 (vec_vrld): Likewise.
23589 (vec_vsld): Likewise.
23590 (vec_vsrad): Likewise.
23591 (vec_vsrd): Likewise.
23592 (vec_vsubudm): Likewise.
23593 (vec_vupkhsw): Likewise.
23594 (vec_vupklsw): Likewise.
23596 2013-05-29 Jan Hubicka <jh@suse.cz>
23598 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
23599 flags; reorder rest of fields in more consistent way.
23600 (varpool_node): Remove analyzed, finalized and alias.
23601 (cgraph_ndoe): Likewise.
23602 (symtab_alias_ultimate_target): New function.
23603 (cgraph_function_node): Move offline.
23604 (cgraph_reset_node): Declare.
23605 (cgraph_comdat_can_be_unshared_p): Remove.
23606 (varpool_remove_initializer): Declare.
23607 (varpool_first_defined_variable, varpool_next_defined_variable
23608 cgraph_first_defined_function, cgraph_next_defined_function): Update.
23609 (cgraph_function_with_gimple_body_p): Update.
23610 (varpool_all_refs_explicit_p): Update.
23611 (symtab_alias_target): New function.
23612 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
23613 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
23614 (cgraph_function_or_thunk_node): Simplify using
23615 symtab_alias_ultimate_target.
23616 (varpool_variable_node): Likewise.
23617 * cgraph.c (cgraph_create_function_alias): Update.
23618 (cgraph_add_thunk): Update.
23619 (cgraph_remove_node): Update.
23620 (dump_cgraph_node): Do not dump removed flags.
23621 (cgraph_function_body_availability): Update.
23622 (cgraph_propagate_frequency): Update.
23623 (verify_cgraph_node): Check sanity of local flag.
23624 (cgraph_function_node): Move here from cgraph.h; revamp for
23625 cgraph_function_or_thunk_node.
23626 * lto-symtab.c (lto_varpool_replace_node): Update.
23627 (lto_symtab_resolve_can_prevail_p): Update.
23628 (lto_symtab_merge_cgraph_nodes): Update.
23629 * ipa-cp.c (determine_versionability, initialize_node_lattices,
23630 propagate_constants_accross_call, devirtualization_time_bonus,
23631 ipcp_propagate_stage): Update.
23632 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
23633 * ipa-inline-transform.c (clone_inlined_nodes,
23634 preserve_function_body_p): Update.
23635 * ipa-reference.c (propagate): Update.
23636 (write_node_summary_p): Update.
23637 * toplev.c (wrapup_global_declaration_2): Update.
23638 * cgraphunit.c (cgraph_analyze_function): Rename to ...
23639 (analyze_function) ... this one.
23640 (cgraph_process_new_functions): Update.
23641 (cgraph_reset_node): Export.
23642 (cgraph_finalize_function): Update.
23643 (cgraph_add_new_function): Update.
23644 (process_function_and_variable_attributes): Update.
23645 (varpool_finalize_decl): Update.
23646 (symbol_finalized): Remove.
23647 (symbol_finalized_and_needed): Rename to ...
23648 (symbol_defined_and_needed): ... update.
23649 (cgraph_analyze_functions): Update.
23650 (handle_alias_pairs): Update.
23651 (mark_functions_to_output): Update.
23652 (assemble_thunk): Update.
23653 (output_in_order): Update.
23654 (output_weakrefs): Update.
23655 (finalize_compilation_unit): Update.
23656 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
23657 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
23658 input_node, input_varpool_node): Update.
23659 * dbxout.c (dbxout_expand_expr): Update.
23660 * cgraphclones.c (cgraph_clone_node): Update.
23661 (cgraph_copy_node_for_versioning): Update.
23662 (cgraph_materialize_clone): Update.
23663 (cgraph_materialize_all_clones): Update.
23664 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
23665 propagate_pure_const, propagate_nothrow): Update.
23666 * lto-streamer-out.c (lto_output, write_symbol): Update.
23667 * ipa-utils.c (ipa_reverse_postorder): Update.
23668 * ipa-inline.c (can_inline_edge_p): Update.
23669 (update_caller_keys, ipa_inline): Update.
23670 * dwarf2out.c (reference_to_unused,
23671 premark_types_used_by_global_vars_helper): Update.
23672 * tree-eh.c (tree_could_trap_p): Update.
23673 * ipa-split.c (consider_split, execute_split_functions): Update.
23674 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23675 has_addr_references_p): Update; move ahead in file for better
23677 (process_references): Simplify.
23678 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
23679 bodies are removed.
23680 (cgraph_comdat_can_be_unshared_p): Make static.
23681 (cgraph_externally_visible_p): Update.
23682 (varpool_externally_visible_p): Update.
23683 (function_and_variable_visibility): Update.
23684 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
23685 ipa_tm_mark_force_output_node): Update.
23686 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
23687 estimate_edge_devirt_benefit, inline_generate_summary,
23688 inline_write_summary): Update.
23689 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
23690 * ipa-prop.c (ipa_compute_jump_functions): Update.
23691 (ipa_print_node_params, ipa_prop_read_section,
23692 ipa_update_after_lto_read, read_replacements_section): Update.
23693 * varasm.c (mark_decl_referenced): Update.
23694 (assemble_alias, dump_tm_clone_pairs): Update.
23695 * tree-inline.c (copy_bb): Update.
23696 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
23698 * symtab.c (dump_symtab_base): Print new flags.
23699 (verify_symtab_base): Verify new flags.
23700 (symtab_alias_ultimate_target): New function.
23701 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
23702 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
23704 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
23706 * i386.c (ix86_get_function_versions_dispatcher,
23707 ix86_generate_version_dispatcher_body): Update.
23708 (fold_builtin_cpu): Use varpool_add_new_variable.
23709 * varpool.c (varpool_remove_initializer): Break out from ...
23710 (varpool_remove_node): ... this one.
23711 (dump_varpool_node, varpool_node_for_asm,
23712 cgraph_variable_initializer_availability, varpool_analyze_node,
23713 varpool_assemble_decl, varpool_remove_unreferenced_decls,
23714 varpool_finalize_named_section_flags, varpool_create_variable_alias):
23717 2013-05-29 Jan Hubicka <jh@suse.cz>
23719 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
23721 2013-05-29 Easwaran Raman <eraman@google.com>
23723 PR tree-optimization/57442
23724 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
23725 when control exits the main loop.
23727 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
23729 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
23731 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
23732 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
23733 * rx/t-rx: Add rx100 under multi library matches option for nofpu
23736 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23738 PR tree-optimization/57441
23739 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
23740 Don't limit size of incr_vec to number of candidates.
23742 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
23744 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
23745 and mips16 directories.
23746 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
23747 (MULTILIB_DIRNAMES): Ditto.
23748 (MULTILIB_EXCEPTIONS): Add new exceptions.
23749 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
23750 (MULTILIB_DIRNAMES): Ditto.
23751 (MULTILIB_EXCEPTIONS): Add new exceptions.
23753 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23754 Marcus Shawcroft <marcus.shawcroft@arm.com>
23756 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
23757 SYMBOL_TINY_ABSOLUTE.
23758 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
23759 SYMBOL_TINY_ABSOLUTE.
23760 (aarch64_expand_mov_immediate): Likewise.
23761 (aarch64_classify_symbol): Likewise.
23762 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
23763 Permit SYMBOL_TINY_ABSOLUTE.
23764 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
23766 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
23767 Marcus Shawcroft <marcus.shawcroft@arm.com>
23769 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
23770 Refactor if/switch. Replace gcc_assert with if.
23772 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
23774 * config/i386/i386.c (initial_ix86_tune_features): Enable
23775 FP Reassociation for AMD bdver1 and bdver2.
23777 2013-05-29 Martin Jambor <mjambor@suse.cz>
23779 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
23780 and IMAGPART_EXPR do not occur within other handled_components.
23782 2013-05-29 Richard Biener <rguenther@suse.de>
23784 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
23785 access on whether the use is in the BB we currently try to
23787 (vect_bb_vectorization_profitable_p): Pass the BB we currently
23788 vectorize to vect_bb_slp_scalar_cost.
23790 2013-05-29 Richard Biener <rguenther@suse.de>
23792 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
23793 computing scalar cost offsetted by stmts that are kept live
23795 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
23796 for computation of scalar cost.
23798 2013-05-28 Steve Ellcey <sellcey@mips.com>
23800 * config/mips/mips-cpus.def (mips32r2): Change processor type.
23802 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
23804 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
23805 array notation built-in reduction functions.
23806 * doc/passes.texi (Passes): Added documentation about changes done
23808 * doc/invoke.texi (C Dialect Options): Added documentation about
23809 the -fcilkplus flag.
23810 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
23811 (BUILTINS_DEF): Depend on cilkplus.def.
23812 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
23813 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
23814 * cilkplus.def: New file.
23816 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
23818 PR rtl-optimization/57439
23819 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
23821 2013-05-28 Easwaran Raman <eraman@google.com>
23823 PR tree-optimization/57337
23824 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
23825 (find_insert_point): Correctly identify the insertion point
23826 when two statements with the same UID is compared.
23828 2013-05-28 Richard Biener <rguenther@suse.de>
23830 PR tree-optimization/56787
23831 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
23832 from the list of data references.
23833 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
23835 (vect_analyze_loop_operations): Likewise.
23836 (vect_transform_loop): Remove clobbers.
23838 2013-05-28 Martin Jambor <mjambor@suse.cz>
23840 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
23841 and REALPART_EXPRs have scalar type.
23843 2013-05-28 Richard Biener <rguenther@suse.de>
23845 PR tree-optimization/57411
23846 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
23848 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
23849 virtual operand propagation.
23851 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
23853 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
23854 destination register for bmasksi_vis.
23855 (vector_init_bshuffle): Likewise.
23856 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
23858 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
23860 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
23861 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
23862 mode if the instruction isn't available in the original mode.
23863 * config/sparc/sparc.opt (mfix-ut699): New option.
23864 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
23865 (divdf3): Turn into expander.
23866 (divdf3_nofix): New insn.
23867 (divdf3_fix): Likewise.
23868 (divsf3): Disable if -mfix-ut699.
23869 (sqrtdf2): Turn into expander.
23870 (sqrtdf2_nofix): New insn.
23871 (sqrtdf2_fix): Likewise.
23872 (sqrtsf2): Disable if -mfix-ut699.
23874 2013-05-27 Richard Biener <rguenther@suse.de>
23876 PR middle-end/57412
23877 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
23878 block for the new loop.
23880 2013-05-27 Richard Biener <rguenther@suse.de>
23882 PR tree-optimization/57343
23883 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
23884 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
23885 (number_of_iterations_cond): Do not build the folded tree.
23887 2013-05-27 Richard Biener <rguenther@suse.de>
23890 PR middle-end/57381
23891 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
23892 OEP_CONSTANT_ADDRESS_OF retained.
23894 PR tree-optimization/57417
23895 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
23896 for unchanged base.
23897 (set_ssa_val_to): Compare addresses using
23898 get_addr_base_and_unit_offset.
23900 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
23902 PR rtl-optimization/56833
23903 * postreload.c (move2add_record_mode): New function.
23904 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
23905 (move2add_use_add2_insn): Use move2add_record_sym_value.
23906 (move2add_use_add3_insn): Likewise.
23907 (reload_cse_move2add): Use move2add_valid_value_p and
23908 move2add_record_mode. Invalidate call-clobbered and REG_INC
23909 affected regs by setting reg_mode to VOIDmode.
23910 (move2add_note_store): Don't pretend the inside of a SUBREG is
23911 the actual destination. Invalidate single/leading registers by
23912 setting reg_mode to VOIDmode.
23913 Use move2add_record_sym_value, move2add_valid_value_p and
23914 move2add_record_mode.
23916 2013-05-27 Richard Biener <rguenther@suse.de>
23918 PR tree-optimization/57396
23919 * tree-affine.c (double_int_constant_multiple_p): Properly
23920 return false for val == 0 and div != 0.
23922 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
23924 * config/mips/mips.h: Use #elif in preprocessor conditions.
23926 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
23929 * config/mips/constraints.md (kl): New constraint.
23930 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
23931 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
23932 constraint for operand 0. Split after CSE for MIPS16. Emit a move
23933 from LO for MIPS16.
23934 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
23936 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
23939 * config/mips/mips.c (mips_can_inline_p): New function.
23940 (TARGET_CAN_INLINE_P): Define.
23942 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
23944 * sched-int.h (ds_t, dw_t): Make unsigned int.
23945 Fix documentation that describes how all the ds_t bits are used.
23946 Reserve the last bit for delayed-branch scheduling.
23947 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
23948 (BITS_PER_DEP_WEAK): Fix definition and documentation.
23949 (gen_dep_weak_1): Remove prototype.
23950 * sched-deps.c (get_dep_weak_1): Make static.
23951 * target.def (speculate_insn, needs_block_p, gen_spec_check,
23952 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
23953 * doc/tm.texi: Regenerate.
23954 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
23956 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
23959 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
23961 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
23962 Sandra Loosemore <sandra@codesourcery.com>
23964 * config.gcc (powerpc-*): Allow native for with-cpu.
23966 2013-05-24 Jeff Law <law@redhat.com>
23968 PR tree-optimization/57124
23969 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
23970 conversion feeding a condition if the range has an overflow
23971 if -fstrict-overflow. Add warnings for when we do make the
23974 2013-05-24 Dehao Chen <dehao@google.com>
23976 * tree-cfg.c (locus_discrim_map): Fix the typo.
23977 (locus_discrim_hasher): Likewise.
23978 (locus_discrim_hasher::hash): Likewise.
23979 (locus_discrim_hasher::equal): Likewise.
23981 2013-05-24 Martin Jambor <mjambor@suse.cz>
23983 PR tree-optimization/57294
23984 * cgraph.h (ipa_record_stmt_references): Declare.
23985 * cgraphbuild.c (ipa_record_stmt_references): New function.
23986 (build_cgraph_edges): Use ipa_record_stmt_references.
23987 (rebuild_cgraph_edges): Likewise.
23988 (cgraph_rebuild_references): Likewise.
23989 * ipa-prop.c (ipa_modify_call_arguments): Discard references
23990 associated with the old statement and build references from the
23991 newly built statements.
23992 * ipa-ref.c (ipa_remove_stmt_references): New function.
23993 * ipa-ref.h (ipa_remove_stmt_references): Declare.
23995 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
23997 * lra-constraints.c (emit_spill_move): Use smaller mode for
23999 (check_and_process_move): Consider mem-reg moves for secondary
24001 (curr_insn_transform): Don't lose insns emitted before for
24002 secondary memory moves.
24003 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
24004 reg set up in the current insn.
24006 2013-05-24 Dehao Chen <dehao@google.com>
24008 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
24010 (locus_descrim_hasher::equal): Likewise.
24011 (build_gimple_cfg): New discriminator assignment algorithm.
24012 (make_edges): Likewise.
24013 (next_discriminator_for_locus): Likewise.
24014 (same_line_p): Likewise.
24015 (assign_discriminators): Likewise.
24016 (make_cond_expr_edges): Likewise.
24017 (make_gimple_switch_edges): Likewise.
24018 (make_goto_expr_edges): Likewise.
24019 (make_gimple_asm_edges): Likewise.
24021 2013-05-24 Ian Bolton <ian.bolton@arm.com>
24023 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
24024 X format specifier to only display bottom 16 bits.
24025 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
24026 immediate to match for operand 2, since it will be masked.
24028 2013-05-24 Richard Biener <rguenther@suse.de>
24030 PR tree-optimization/57287
24031 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
24032 all SSA names that occur in abnormal PHIs.
24034 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
24037 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
24038 that index is not negative.
24040 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
24042 PR rtl-optimization/55177
24043 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
24044 (simplify_byte_swapping_operation): New.
24045 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
24046 (simplify_relational_operation_1): Deal with BSWAP.
24048 2013-05-23 Richard Henderson <rth@redhat.com>
24051 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
24052 (ix86_reorg): Call it.
24054 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
24057 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
24058 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
24059 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
24061 2013-05-23 Christian Bruel <christian.bruel@st.com>
24064 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
24066 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
24067 Marcus Shawcroft <marcus.shawcroft@arm.com>
24069 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
24070 * config/aarch64/constraints.md (Usa): Remove.
24071 * doc/md.texi (AArch64 Usa): Remove.
24073 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
24074 Marcus Shawcroft <marcus.shawcroft@arm.com>
24076 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
24077 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
24078 * config/aarch64/predicates.md (aarch64_const_address): Remove.
24079 (aarch64_mov_operand): Use aarch64_mov_operand_p.
24081 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
24083 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
24084 instruction (AdvSIMD).
24085 * config/aarch64/aarch64-builtins.c
24086 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
24087 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
24089 2013-05-23 Martin Jambor <mjambor@suse.cz>
24091 PR middle-end/57347
24092 * tree.h (contains_bitfld_component_ref_p): Declare.
24093 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
24094 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
24096 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
24097 not access a bit-field. Assert all final offsets are byte-aligned.
24099 2013-05-23 Richard Biener <rguenther@suse.de>
24101 PR tree-optimization/57380
24102 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
24103 least one invariant or re-used load.
24104 * passes.c (init_optimization_passes): Move pass_phiprop before
24107 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
24109 * config/aarch64/aarch64-simd.md
24110 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
24112 2013-05-23 Richard Biener <rguenther@suse.de>
24114 PR middle-end/57381
24115 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
24116 OEP_CONSTANT_ADDRESS_OF retained.
24118 2013-05-23 Jakub Jelinek <jakub@redhat.com>
24120 PR middle-end/57344
24121 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
24122 don't lower unit. Handle unit not being always BITS_PER_WORD.
24124 2013-05-23 Richard Biener <rguenther@suse.de>
24126 PR rtl-optimization/57341
24127 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
24128 instead of true_dependence.
24130 2013-05-22 David Malcolm <dmalcolm@redhat.com>
24132 * bb-reorder.c (branch_threshold): Make const.
24133 (exec_threshold): Ditto.
24135 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
24136 Pat Haugen <pthaugen@us.ibm.com>
24137 Peter Bergner <bergner@vnet.ibm.com>
24139 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
24140 documentation for the power8 crypto builtins.
24142 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
24144 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
24145 macros for defining power8 builtin functions.
24146 (BU_P8V_AV_2): Likewise.
24147 (BU_P8V_AV_P): Likewise.
24148 (BU_P8V_VSX_1): Likewise.
24149 (BU_P8V_OVERLOAD_1): Likewise.
24150 (BU_P8V_OVERLOAD_2): Likewise.
24151 (BU_CRYPTO_1): Likewise.
24152 (BU_CRYPTO_2): Likewise.
24153 (BU_CRYPTO_3): Likewise.
24154 (BU_CRYPTO_OVERLOAD_1): Likewise.
24155 (BU_CRYPTO_OVERLOAD_2): Likewise.
24156 (XSCVSPDP): Fix typo, point to the correct instruction.
24157 (VCIPHER): Add power8 crypto builtins.
24158 (VCIPHERLAST): Likewise.
24159 (VNCIPHER): Likewise.
24160 (VNCIPHERLAST): Likewise.
24161 (VPMSUMB): Likewise.
24162 (VPMSUMH): Likewise.
24163 (VPMSUMW): Likewise.
24164 (VPERMXOR_V2DI): Likewise.
24165 (VPERMXOR_V4SI: Likewise.
24166 (VPERMXOR_V8HI: Likewise.
24167 (VPERMXOR_V16QI: Likewise.
24168 (VSHASIGMAW): Likewise.
24169 (VSHASIGMAD): Likewise.
24170 (VPMSUM): Likewise.
24171 (VPERMXOR): Likewise.
24172 (VSHASIGMA): Likewise.
24174 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24175 __CRYPTO__ if the crypto instructions are available.
24176 (altivec_overloaded_builtins): Add support for overloaded power8
24179 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
24180 support for power8 crypto builtins.
24181 (builtin_function_type): Likewise.
24182 (altivec_init_builtins): Add support for builtins that take vector
24183 long long (V2DI) arguments.
24185 * config/rs6000/crypto.md: New file, define power8 crypto
24188 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
24189 Pat Haugen <pthaugen@us.ibm.com>
24190 Peter Bergner <bergner@vnet.ibm.com>
24192 * doc/invoke.texi (Option Summary): Add power8 options.
24193 (RS/6000 and PowerPC Options): Likewise.
24195 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
24196 constraints.md instead of rs6000.h. Reorder w* constraints. Add
24197 wm, wn, wr documentation.
24199 * config/rs6000/constraints.md (wm): New constraint for VSX
24200 registers if direct move instructions are enabled.
24201 (wn): New constraint for no registers.
24202 (wq): New constraint for quad word even GPR registers.
24203 (wr): New constraint if 64-bit instructions are enabled.
24204 (wv): New constraint if power8 vector instructions are enabled.
24205 (wQ): New constraint for quad word memory locations.
24207 * config/rs6000/predicates.md (const_0_to_15_operand): New
24208 constraint for 0..15 for crypto instructions.
24209 (gpc_reg_operand): If VSX allow registers in VSX registers as well
24210 as GPR and floating point registers.
24211 (int_reg_operand): New predicate to match only GPR registers.
24212 (base_reg_operand): New predicate to match base registers.
24213 (quad_int_reg_operand): New predicate to match even GPR registers
24214 for quad memory operations.
24215 (vsx_reg_or_cint_operand): New predicate to allow vector logical
24216 operations in both GPR and VSX registers.
24217 (quad_memory_operand): New predicate for quad memory operations.
24218 (reg_or_indexed_operand): New predicate for direct move support.
24220 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
24221 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
24222 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
24223 (POWERPC_MASKS): Add power8 options.
24224 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
24227 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24228 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
24230 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
24231 (-mpower8-fusion): New power8 options.
24232 (-mpower8-fusion-sign): Likewise.
24233 (-mpower8-vector): Likewise.
24234 (-mcrypto): Likewise.
24235 (-mdirect-move): Likewise.
24236 (-mquad-memory): Likewise.
24238 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
24239 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
24241 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
24242 (rs6000_debug_vector_unit): Add p8_vector.
24243 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
24244 definitions. Also print fusion state.
24245 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
24246 (rs6000_builtin_mask_calculate): Add power8 builtin support.
24247 (rs6000_option_override_internal): Add support for power8.
24248 (rs6000_common_init_builtins): Add debugging for skipped builtins
24249 if -mdebug=builtin.
24250 (rs6000_adjust_cost): Add power8 support.
24251 (rs6000_issue_rate): Likewise.
24252 (insn_must_be_first_in_group): Likewise.
24253 (insn_must_be_last_in_group): Likewise.
24254 (force_new_group): Likewise.
24255 (rs6000_register_move_cost): Likewise.
24256 (rs6000_opt_masks): Likewise.
24258 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
24259 power8 capable assembler, default to power7 options.
24260 (TARGET_DIRECT_MOVE): Likewise.
24261 (TARGET_CRYPTO): Likewise.
24262 (TARGET_P8_VECTOR): Likewise.
24263 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
24264 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
24265 (VECTOR_MEM_P8_VECTOR_P): Likewise.
24266 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
24267 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
24268 (TARGET_XSCVDPSPN): Likewise.
24269 (TARGET_XSCVSPDPN): Likewsie.
24270 (TARGET_SYNC_HI_QI): Likewise.
24271 (TARGET_SYNC_TI): Likewise.
24272 (MASK_CRYPTO): Likewise.
24273 (MASK_DIRECT_MOVE): Likewise.
24274 (MASK_P8_FUSION): Likewise.
24275 (MASK_P8_VECTOR): Likewise.
24276 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
24277 temporary used by some of the direct move instructions to get two FP
24278 temporary registers does not force creation of a stack frame.
24279 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
24280 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
24281 that any VSX registers are tieable, even if they are also an
24282 Altivec vector mode.
24283 (r6000_reg_class_enum): Add wm, wr, wv constraints.
24284 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
24285 (RS6000_BTM_CRYPTO): Likewise.
24286 (RS6000_BTM_COMMON): Likewise.
24288 * config/rs6000/rs6000.md (cpu attribute): Add power8.
24289 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
24290 (enum rs6000_vector): Add power8 vector support.
24292 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24296 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
24297 (any_sibcall_could_use_r3): this and handle indirect calls.
24298 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
24300 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24302 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
24304 2013-05-22 Richard Biener <rguenther@suse.de>
24306 PR middle-end/57349
24307 * profile.c (branch_prob): Do not split blocks that are
24308 abnormally receiving from ECF_RETURNS_TWICE functions.
24310 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24312 * recog.c (offsettable_address_addr_space_p): Fix calculation of
24313 address mode. Move pointer mode initialization to the same place.
24315 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
24317 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
24318 while it has any effect.
24320 2013-05-21 Easwaran Raman <eraman@google.com>
24322 PR tree-optimization/57322
24323 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
24324 UID of the statement added to the BB to be 1.
24326 2013-05-21 Jakub Jelinek <jakub@redhat.com>
24328 PR tree-optimization/57331
24329 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
24330 of conversion from pointer type to integral type with integer.
24332 2013-05-21 Martin Jambor <mjambor@suse.cz>
24335 * ipa-prop.c (ipa_read_node_info): Process param_used and
24336 controlled_uses in the same order as when writing.
24338 2013-05-21 Magnus Granberg <baldrick@free.fr>
24341 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
24343 2013-05-21 Richard Biener <rguenther@suse.de>
24345 PR tree-optimization/57318
24346 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
24347 estimate stmts with side-effects as likely eliminated.
24349 2013-05-21 Richard Biener <rguenther@suse.de>
24351 PR tree-optimization/57330
24352 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
24353 preserve the call stmts fntype.
24355 2013-05-21 Richard Biener <rguenther@suse.de>
24357 PR tree-optimization/57303
24358 * tree-ssa-sink.c (statement_sink_location): Improve killing
24359 stmt detection and properly handle self-assignments.
24361 2013-05-21 Christian Bruel <christian.bruel@st.com>
24363 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
24364 spanning registers. LEAF_REG_REMAP is supported only for contiguous
24365 registers. Set register size out of the PARALLEL loop.
24367 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
24370 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
24371 (*fmasf4, *fmasf4_media): New insns.
24373 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24375 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
24376 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
24377 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
24378 (mips_idiv_insns): Update the comments to say that the returned
24379 instruction counts are in units of BASE_INSN_LENGTH.
24380 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
24381 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
24382 using 2 rather than 4 as the length of indirect MIPS16 and
24383 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
24384 length of a NOP. Don't divide MIPS16 lengths by 2.
24385 (mips16_split_long_branches): Assume a branch is long if the
24386 length is greater than 4 rather than 8.
24387 * config/mips/mips.md (length): Give MIPS16 lengths directly,
24388 rather than multiplying them by 2. Multiply instruction counts
24389 by BASE_INSN_LENGTH rather than 4.
24390 (*jump_mips16, tls_get_tp_mips16_<mode>)
24391 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
24393 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24395 * config/mips/mips.md (extended_mips16): Remove branch case.
24396 (length): Remove duplicated extended_mips16 test.
24398 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24400 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
24402 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
24404 * recog.h (Recog_data): Rename to...
24405 (recog_data_d): ...this.
24406 (recog_data): Update accordingly.
24407 * recog.c (recog_data): Likewise.
24408 * reload.c (save_recog_data): Likewise.
24409 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
24410 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
24412 2013-05-17 Julian Brown <julian@codesourcery.com>
24414 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
24415 found in a REG_EQUAL note, invalidate it.
24417 2013-05-17 Easwaran Raman <eraman@google.com>
24419 * tree-ssa-reassoc.c (find_insert_point): New function.
24420 (insert_stmt_after): Likewise.
24421 (get_def_stmt): Likewise.
24422 (ensure_ops_are_available): Likewise.
24423 (not_dominated_by): Likewise.
24424 (rewrite_expr_tree): Do not move statements beyond what is
24425 necessary. Remove call to swap_ops_for_binary_stmt...
24426 (reassociate_bb): ... and move it here.
24427 (build_and_add_sum): Assign UIDs for new statements.
24428 (linearize_expr): Likewise.
24429 (do_reassoc): Renumber gimple statement UIDs.
24431 2013-05-17 Jan Hubicka <jh@suse.cz>
24433 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
24435 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
24436 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
24438 (output_weakrefs): Update.
24440 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
24441 Martin Jambor <mjambor@suse.cz>
24443 PR middle-end/57276
24444 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
24445 value that corresponds to the given aggval is found in values vector.
24447 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
24449 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
24450 sse, sse2, sse3, ssse3 and sse4a flags to options.
24452 2013-05-17 David Malcolm <dmalcolm@redhat.com>
24454 * gengtype-state.c: (s_expr_writer): New class, to handle
24455 prettifying of output layout of s-expressions.
24456 (state_writer): New class, to write out gtype.state.
24457 (state_written_type_count): Move this variable into member data of
24459 (s_expr_writer::s_expr_writer): New code: constructor for new class
24460 (state_writer::state_writer(): ditto
24461 (s_expr_writer::write_new_line): New function
24462 (s_expr_writer::write_any_indent): ditto
24463 (s_expr_writer::begin_s_expr): ditto
24464 (s_expr_writer::end_s_expr): ditto
24465 (write_state_fileloc): convert to method of state_writer...
24466 (state_writer:: write_state_fileloc): ...and use methods of
24467 s_expr_writer to write indentation into the gtype.state output file
24468 to visually represent the hierarchical structure of the list
24470 (write_state_fields): ditto, renaming to...
24471 (state_writer::write_state_fields)
24472 (write_state_a_string): ditto, renaming to...
24473 (state_writer::write_state_a_string)
24474 (write_state_string_option): ditto, renaming to...
24475 (state_writer::write_state_string_option)
24476 (write_state_type_option): ditto, renaming to...
24477 (state_writer::write_state_type_option)
24478 (write_state_nested_option): ditto, renaming to...
24479 (state_writer::write_state_nested_option)
24480 (write_state_option): ditto, renaming to...
24481 (state_writer::write_state_option)
24482 (write_state_options): ditto, renaming to...
24483 (state_writer::write_state_options)
24484 (write_state_lang_bitmap): ditto, renaming to...
24485 (state_writer::write_state_lang_bitmap)
24486 (write_state_version): ditto, renaming to...
24487 (state_writer::write_state_version)
24488 (write_state_scalar_type): ditto, renaming to...
24489 (state_writer::write_state_scalar_type)
24490 (write_state_string_type): ditto, renaming to...
24491 (state_writer::write_state_string_type)
24492 (write_state_undefined_type): ditto, renaming to...
24493 (state_writer::write_state_undefined_type)
24494 (write_state_struct_union_type): ditto, renaming to...
24495 (state_writer::write_state_struct_union_type)
24496 (write_state_struct_type): ditto, renaming to...
24497 (state_writer::write_state_struct_type)
24498 (write_state_user_struct_type): ditto, renaming to...
24499 (state_writer::write_state_user_struct_type)
24500 (write_state_lang_struct_type): ditto, renaming to...
24501 (state_writer::write_state_lang_struct_type)
24502 (write_state_param_struct_type): ditto, renaming to...
24503 (state_writer::write_state_param_struct_type)
24504 (write_state_pointer_type): ditto, renaming to...
24505 (state_writer::write_state_pointer_type)
24506 (write_state_array_type): ditto, renaming to...
24507 (state_writer::write_state_array_type)
24508 (write_state_gc_used): ditto, renaming to...
24509 (state_writer::write_state_gc_used)
24510 (write_state_common_type_content): ditto, renaming to...
24511 (state_writer::write_state_common_type_content)
24512 (write_state_type): ditto, renaming to...
24513 (state_writer::write_state_type)
24514 (write_state_pair_list): ditto, renaming to...
24515 (state_writer::write_state_pair_list)
24516 (write_state_pair): ditto, renaming to...
24517 (state_writer::write_state_pair)
24518 (write_state_typedefs): ditto, renaming to...
24519 (state_writer::write_state_typedefs)
24520 (write_state_structures): ditto, renaming to...
24521 (state_writer::write_state_structures)
24522 (write_state_param_structs): ditto, renaming to...
24523 (state_writer::write_state_param_structs)
24524 (write_state_variables): ditto, renaming to...
24525 (state_writer::write_state_variables)
24526 (write_state_srcdir): ditto, renaming to...
24527 (state_writer::write_state_srcdir)
24528 (write_state_files_list): ditto, renaming to...
24529 (state_writer::write_state_files_list)
24530 (write_state_languages): ditto, renaming to...
24531 (state_writer::write_state_languages)
24532 (write_state): create a state_writer instance and use it when
24533 writing out the state file
24535 2013-05-17 Mike Stump <mikestump@comcast.net>
24537 PR rtl-optimization/57304
24538 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
24539 accessing DF_REF_REAL_LOC.
24541 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24543 PR rtl-optimization/57281
24544 PR rtl-optimization/57300
24545 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
24546 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
24547 what the other splitter did if the registers are dead.
24549 2013-05-17 Richard Biener <rguenther@suse.de>
24551 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
24554 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24556 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
24559 2013-05-17 Marek Polacek <polacek@redhat.com>
24561 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
24562 length when doing non-zero store of storing '\0' to '\0'.
24564 2013-05-17 Jakub Jelinek <jakub@redhat.com>
24566 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
24567 vect_external_def oprnd1 with loop_vinfo, try to emit
24568 optional cast, negation and and stmts on the loop preheader
24569 edge instead of into the pattern def seq.
24571 PR tree-optimization/57051
24572 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
24573 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
24575 2013-05-16 Nick Clifton <nickc@redhat.com>
24577 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
24578 (rl78_is_naked_func): New function.
24579 (rl78_expand_prologue): Skip prologue generation for naked functions.
24580 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
24581 * doc/extend.texi (naked): Add RL78 to the list of processors
24582 that supports this attribute.
24584 2013-05-16 Jeff Law <law@redhat.com>
24586 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
24588 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
24590 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
24591 cache parameters using detect_caches_amd also for CYRIX,
24592 NSC and TM2 signatures.
24594 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
24595 Dzianis Kahanovich <mahatma@eu.by>
24599 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24600 VIA/Centaur processors and determine their cache parameters
24601 using detect_caches_amd.
24603 2013-05-16 Teresa Johnson <tejohnson@google.com>
24605 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
24606 (rtl_verify_edges): New function.
24607 (rtl_verify_bb_insns): Ditto.
24608 (rtl_verify_bb_pointers): Ditto.
24609 (rtl_verify_bb_insn_chain): Ditto.
24610 (rtl_verify_fallthru): Ditto.
24611 (rtl_verify_bb_layout): Ditto.
24612 (rtl_verify_flow_info_1): Outline checks into new functions.
24613 (rtl_verify_flow_info): Ditto.
24615 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
24617 * cfghooks.c (copy_bbs): Add update_dominance argument.
24618 * cfghooks.h (copy_bbs): Update prototype.
24619 * tree-cfg.c (gimple_duplicate_sese_region):
24620 Add update_dominance argument.
24621 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
24622 * tree-ssa-loop-ch.c (copy_loop_headers): Update
24623 gimple_duplicate_sese_region call.
24624 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
24625 Update copy_bbs call.
24626 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
24627 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
24629 2013-05-16 Jakub Jelinek <jakub@redhat.com>
24631 * tree-vectorizer.h (NUM_PATTERNS): Increment.
24632 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
24633 vect_recog_rotate_pattern.
24634 (vect_recog_rotate_pattern): New function.
24636 2013-05-16 Jason Merrill <jason@redhat.com>
24638 * Makefile.in (LLINKER): New variable.
24639 (mostlyclean): Remove link mutex.
24640 * configure.ac: Handle --enable-link-mutex.
24641 * lock-and-run.sh: New script.
24643 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24646 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
24649 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24651 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
24653 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
24655 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
24656 * config/arm/arm.c (next_consecutive_mem): New function.
24657 (gen_movmem_ldrd_strd): Likewise.
24658 * config/arm/arm.md (movmemqi): Update condition and code.
24659 (unaligned_loaddi, unaligned_storedi): New patterns.
24661 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24663 * config.gcc: Obsolete *-*-solaris2.9*.
24664 * doc/install.texi (Specific, *-*-solaris2*): Document it.
24666 2013-05-16 Richard Biener <rguenther@suse.de>
24668 * passes.c (init_optimization_passes): Move pass_parallelize_loops
24669 earlier, after GRAPHITE transforms and IV canonicalization.
24671 2013-05-16 Jakub Jelinek <jakub@redhat.com>
24673 * omp-low.c (extract_omp_for_data): For collapsed loops,
24674 if at least one of the loops is known at compile time to
24675 iterate zero times, set count to 0.
24676 (expand_omp_regimplify_p): New function.
24677 (expand_omp_for_generic): For collapsed loops, if at least
24678 one of the loops isn't known to iterate at least once,
24679 add runtime check with setting count to 0.
24680 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
24681 For unsigned types if it isn't known at compile time that
24682 the loop will iterate at least once, add runtime check to bypass
24683 the whole loop if initial condition isn't true.
24685 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
24687 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
24689 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
24691 PR middle-end/57286
24692 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
24693 transformations to avoid an infinite loop.
24695 2013-05-16 Marek Polacek <polacek@redhat.com>
24697 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
24699 2013-05-15 Leif Ekblad <leif@rdos.net>
24701 * config/i386/i386.c (ix86_decompose_address): Use
24702 DEFAULT_TLS_SEG_REG to access TLS segment register.
24703 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
24704 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
24705 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
24707 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
24710 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
24711 sibling calls to functions that would normally be lazily bound,
24712 unless $gp is call-clobbered.
24714 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
24716 * config/i386/i386.c (ix86_option_override_internal): Update
24717 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
24718 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
24719 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
24720 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
24722 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
24724 2013-05-15 Andreas Schwab <schwab@suse.de>
24726 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
24727 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
24730 2013-05-15 Teresa Johnson <tejohnson@google.com>
24732 * loop-unroll.c (report_unroll_peel): Check decision before
24733 emitting unroll/peel message.
24735 2013-05-15 Teresa Johnson <tejohnson@google.com>
24737 * function.h (has_bb_partition): New rtl_data flag.
24738 (bb_reorder_complete): Ditto.
24739 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
24740 instead of flag_reorder_blocks_and_partition.
24741 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
24742 with some enhancements.
24743 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
24744 * bb-reorder.c (connect_traces): Check for has_bb_partition
24745 instead of flag_reorder_blocks_and_partition.
24746 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
24747 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
24748 verify_hot_cold_block_grouping.
24749 (partition_hot_cold_basic_blocks): Set has_bb_partition.
24751 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24754 * config/arm/predicates.md (call_insn_operand): New predicate.
24755 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
24756 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
24757 if insn is not a tail call.
24758 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
24760 * config/arm/arm.h (enum reg_class): New caller save register class.
24761 (REG_CLASS_NAMES): Likewise.
24762 (REG_CLASS_CONTENTS): Likewise.
24763 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
24766 2013-05-15 Richard Biener <rguenther@suse.de>
24768 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
24769 of MSG_OPTIMIZED_LOCATIONS.
24770 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
24771 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
24773 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
24774 of MSG_OPTIMIZED_LOCATIONS.
24775 (execute_vect_slp): Likewise.
24776 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
24777 (vect_create_cond_for_alias_checks): Likewise.
24778 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
24779 (vect_recog_widen_mult_pattern): Likewise.
24780 (vect_recog_widen_sum_pattern): Likewise.
24781 (vect_recog_over_widening_pattern): Likewise.
24782 (vect_recog_widen_shift_pattern): Likewise.
24783 (vect_recog_vector_vector_shift_pattern): Likewise.
24784 (vect_recog_divmod_pattern): Likewise.
24785 (vect_recog_mixed_size_cond_pattern): Likewise.
24786 (vect_recog_bool_pattern): Likewise.
24787 (vect_pattern_recog_1): Likewise.
24789 2013-05-15 Martin Jambor <mjambor@suse.cz>
24791 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
24792 non-functions to builtin_unreachable.
24793 * ipa-inline-transform.c (inline_call): Do not assert estimates were
24794 correct when new direct edges were discovered.
24796 2013-05-15 Martin Jambor <mjambor@suse.cz>
24798 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
24799 header, print symbol order instead of node uid, print more information
24800 about indirect edge targets.
24801 (ipa_make_edge_direct_to_target): Print symbol order instead of node
24803 (ipa_make_edge_direct_to_target): Likewise.
24804 (remove_described_reference): Likewise.
24805 (propagate_controlled_uses): Likewise.
24806 (ipa_print_node_params): Also print symbol order.
24807 (ipcp_transform_function): Print symbol order instead of node uids.
24808 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
24809 (cgraph_get_create_real_symbol_node): Likewise.
24810 * ipa-cp.c (print_lattice): Likewise.
24811 (print_all_lattices): Likewise.
24812 (determine_versionability): Likewise.
24813 (initialize_node_lattices): Likewise.
24814 (estimate_local_effects): Likewise.
24815 (update_profiling_info): Likewise.
24816 (create_specialized_node): Likewise.
24817 (perhaps_add_new_callers): Likewise.
24818 (decide_about_value): Likewise.
24819 (decide_whether_version_node): Likewise.
24820 (identify_dead_nodes): Likewise.
24821 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
24822 (dump_inline_summary): Likewise.
24823 (estimate_node_size_and_time): Likewise.
24824 (inline_analyze_function): Likewise.
24825 * ipa-inline.c (report_inline_failed_reason): Likewise.
24826 (want_early_inline_function_p): Likewise.
24827 (edge_badness): Likewise.
24828 (update_edge_key): Likewise.
24829 (inline_small_functions): Likewise. Add dumping of order to two other
24831 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
24832 instead of node uids.
24833 (propagate_pure_const): Likewise.
24834 (propagate_pure_const): Likewise.
24835 * ipa-utils.c (dump_cgraph_node_set): Likewise.
24836 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
24837 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
24839 * tree-pretty-print.c (dump_function_header): Likewise.
24840 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
24841 Print symbol order instead of node uids.
24843 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24845 * config/s390/s390.c (s390_register_move_cost): Don't impose the
24846 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
24848 2013-05-15 Richard Biener <rguenther@suse.de>
24850 PR tree-optimization/57275
24851 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
24852 return value for fail to do runtime alias checks for gather loads.
24854 2013-05-15 Jan Hubicka <jh@suse.cz>
24858 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
24859 weakrefs are not external.
24860 (lto_symtab_merge_decls): Fix thinko when dealing with
24861 non-lto_symtab decls.
24862 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
24863 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
24864 * varpool.c (dump_varpool_node): Dump more flags.
24866 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
24868 * config/i386/i386.c (processor_alias_table): Add instruction
24869 FSGSBASE for AMD bdver3 architecture.
24871 2013-05-14 Jakub Jelinek <jakub@redhat.com>
24873 * tree.c (warn_deprecated_use): Print file:line using locus color.
24874 * diagnostic.c (diagnostic_report_current_module): Print file:line
24875 and file:line:column using locus color.
24877 2013-05-14 Mike Stump <mikestump@comcast.net>
24879 * gdbinit.in: Add __null.
24881 2013-05-14 Mike Stump <mikestump@comcast.net>
24883 * recog.h: Rename struct recog_data to Recog_data.
24884 * recog.c: Likewise.
24885 * reload.c (can_reload_into): Likewise.
24886 * config/picochip/picochip.c: Likewise.
24888 2013-05-14 Mike Stump <mikestump@comcast.net>
24890 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
24892 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
24894 * resource.h (struct resources): Remove unch_memory member.
24895 (CLEAR_RESOURCE): Don't clear unch_memory.
24896 * resource.c (mark_referenced_resources): Don't set it.
24897 (mark_set_resources): Likewise.
24898 (mark_target_live_regs): Don't clear it.
24899 (init_resource_info): Likewise.
24900 * reorg.c (resource_conflicts_p): Don't compare it.
24901 (redundant_insn): Don't set it.
24903 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
24905 * emit-rtl.c (next_label): Remove unused function.
24906 (skip_consecutive_labels, link_cc0_insns): Move to ...
24907 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
24908 only place where these functions are used, and make them static.
24910 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
24912 * fold-const.c (fold_negate_expr): Handle vectors.
24913 (fold_truth_not_expr): Make it static.
24914 (fold_invert_truthvalue): New static function.
24915 (invert_truthvalue_loc): Handle vectors. Do not call
24916 fold_truth_not_expr directly.
24917 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
24918 <TRUTH_NOT_EXPR>: Do not cast to boolean.
24919 (fold_comparison): Handle vector constants.
24920 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
24921 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
24922 * tree.h (fold_truth_not_expr): Remove declaration.
24924 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
24926 * config/aarch64/aarch64-simd.md
24927 (aarch64_vcond_internal<mode>): Rename to...
24928 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
24929 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
24930 float modes. Clarify all iterator modes.
24931 (vcond<mode><mode>): Use new name for vcond expanders.
24932 (vcond<v_cmp_result><mode>): Likewise.
24933 (vcondu<mode><mode>: Likewise.
24934 * config/aarch64/iterators.md (VDQF_COND): New.
24936 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
24939 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
24940 variable for the shift amount. Check that we shift by non-negative
24943 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
24946 * config/arm/arm.h (EPILOGUE_USES): Only return true
24947 for LR_REGNUM after epilogue_completed.
24949 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
24951 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
24952 is error_mark_node.
24954 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24957 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
24958 and Solaris 11+/x86 with gld.
24959 * configure: Regenerate.
24961 2013-05-14 Jakub Jelinek <jakub@redhat.com>
24963 * expmed.c (expand_shift_1): Canonicalize rotates by
24964 constant bitsize / 2 to bitsize - 1.
24965 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
24966 case ROTATERT>: Likewise.
24969 2013-05-10 Jakub Jelinek <jakub@redhat.com>
24971 * config/i386/i386.md (rotateinv): New code attr.
24972 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
24973 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
24974 roll $31, %eax, etc.
24976 2013-05-14 Richard Biener <rguenther@suse.de>
24978 PR middle-end/57235
24979 * tree-eh.c (sink_clobbers): Give up for successors with
24980 multiple predecessors and no virtual uses.
24982 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
24984 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
24985 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
24987 2013-05-14 Jakub Jelinek <jakub@redhat.com>
24989 PR middle-end/57251
24990 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
24991 the case when both op0 and op1 have VOIDmode.
24993 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
24995 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
24996 in multiply-accumulate mode.
24998 2013-05-13 Guozhi Wei <carrot@google.com>
25000 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
25002 2013-05-13 Kai Tietz <ktietz@redhat.com>
25005 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
25006 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
25007 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
25008 * config/i386/i386.c (ix86_option_override_internal): Likewise.
25009 (ix86_expand_prologue): Likewise.
25010 (ix86_expand_split_stack_prologue): Likewise.
25011 (legitimate_pic_address_disp_p): Likewise.
25012 (legitimize_pic_address): Likewise.
25013 (legitimize_tls_address): Likewise.
25014 (legitimize_pe_coff_symbol): Likewise.
25015 (output_pic_addr_const): Likewise.
25016 (construct_plt_address): Likewise.
25017 (ix86_expand_call): Likewise.
25018 (x86_output_mi_thunk): Likewise.
25019 (x86_function_profiler): Likewise.
25021 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
25023 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
25024 similar switch cases.
25025 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
25026 (aarch64_simd_mov_to_<mode>low): Delete.
25027 (aarch64_simd_mov_to_<mode>high): Delete.
25028 (move_lo_quad_<mode>): Add w<-r alternative.
25029 (aarch64_simd_move_hi_quad_<mode>): Likewise.
25030 (aarch64_simd_mov_from_*): Update type attribute.
25031 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
25034 2013-05-13 Jan Hubicka <jh@suse.cz>
25036 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
25037 * config/i386/i386.c (ix86_compute_frame_layout,
25038 ix86_expand_epilogue, emit_i387_cw_initialization,
25039 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
25040 ix86_local_alignment): Fix use of size/speed predicates.
25042 2013-05-13 Jakub Jelinek <jakub@redhat.com>
25044 PR tree-optimization/45216
25045 PR tree-optimization/57157
25046 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
25047 the (-Y) & (B - 1) variant if OP is |.
25048 * expmed.c (expand_shift_1): For rotations by const0_rtx just
25049 return shifted. Use (-op1) & (prec - 1) as other_amount
25050 instead of prec - op1.
25052 2013-05-13 Martin Jambor <mjambor@suse.cz>
25054 PR middle-end/42371
25055 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
25056 (ipa_constant_data): New type.
25057 (ipa_jump_func): Use ipa_constant_data to hold information about
25058 constant jump functions.
25059 (ipa_get_jf_constant): Adjust to jump function type changes.
25060 (ipa_get_jf_constant_rdesc): New function.
25061 (ipa_param_descriptor): New field controlled_uses.
25062 (ipa_get_controlled_uses): New function.
25063 (ipa_set_controlled_uses): Likewise.
25064 * ipa-ref.h (ipa_find_reference): Declare.
25065 * ipa-prop.c (ipa_cst_ref_desc): New type.
25066 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
25068 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
25069 New parameter cs. Adjust all callers.
25070 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
25071 (remove_described_reference): New function.
25072 (jfunc_rdesc_usable): Likewise.
25073 (try_make_edge_direct_simple_call): Decrement controlled use count,
25074 attempt to remove reference if it hits zero.
25075 (combine_controlled_uses_counters): New function.
25076 (propagate_controlled_uses): Likewise.
25077 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
25078 (ipa_edge_duplication_hook): Duplicate reference descriptions.
25079 (ipa_print_node_params): Print described use counter.
25080 (ipa_write_jump_function): Adjust to jump function type changes.
25081 (ipa_read_jump_function): New parameter CS, pass it to
25082 ipa_set_jf_constant. Adjust caller.
25083 (ipa_write_node_info): Stream controlled use count
25084 (ipa_read_node_info): Likewise.
25085 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
25087 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
25088 count. Remove cloning-added reference if it reaches zero.
25089 * ipa-ref.c (ipa_find_reference): New function.
25091 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
25093 * config/i386/i386.c (processor_target_table): Modified default
25094 alignment values for AMD BD and BT architectures.
25096 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
25098 * tree-vect-generic.c (uniform_vector_p): Move ...
25099 * tree.c (uniform_vector_p): ... here.
25100 * tree.h (uniform_vector_p): Declare it.
25101 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
25104 2013-05-13 Jakub Jelinek <jakub@redhat.com>
25106 PR tree-optimization/57230
25107 * tree-ssa-strlen.c (handle_char_store): Record length for
25108 array store from STRING_CST.
25110 PR tree-optimization/57230
25111 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
25114 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
25116 * config/epiphany/epiphany.c (epiphany_init): Check size of
25117 NUM_MODES_FOR_MODE_SWITCHING.
25118 (epiphany_expand_prologue):
25119 Remove CONFIG_REGNUM initial value handling code.
25120 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
25121 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
25122 (emit_set_fp_mode, epiphany_mode_after): Likewise.
25123 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
25124 Don't return 1 for FP_MODE_NONE.
25125 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
25126 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
25127 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
25128 * config/epiphany/epiphany.md (save_config): New pattern.
25130 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
25132 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
25134 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
25136 * config/i386/i386.md (memory): Handle sseishft1.
25137 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
25138 (*vec_extractv2di_1): Ditto.
25140 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
25142 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
25145 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
25147 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
25148 Add mthumb/march=armv7-a multilib.
25149 Add mthumb/march=armv7-r multilib.
25150 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
25152 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
25154 * config/v850/t-rtems: Add more multilibs.
25156 2013-05-10 Richard Biener <rguenther@suse.de>
25158 PR tree-optimization/57214
25159 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
25160 not propagate from SSA names that occur in abnormal PHI nodes.
25162 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
25164 * stor-layout.c (element_precision): New function.
25165 * machmode.h (element_precision): Declare it.
25166 * tree.c (build_minus_one_cst): New function.
25167 (element_precision): Likewise.
25168 * tree.h (build_minus_one_cst): Declare new function.
25169 (element_precision): Likewise.
25170 * fold-const.c (operand_equal_p): Use element_precision.
25171 (fold_binary_loc): Handle vector types.
25172 * convert.c (convert_to_integer): Use element_precision.
25173 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
25176 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
25178 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
25179 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
25180 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
25181 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25182 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
25183 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
25184 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
25185 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
25186 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
25187 (Uuw8): New constraints.
25188 (Usb4): Move into alphabetical order.
25189 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
25190 (sd8_operand, ub8_operand, uw8_operand): New predicates.
25191 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
25192 previously unnamed patterns.
25193 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
25194 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
25195 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
25196 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
25197 of set_attr_alternative/if_then_else. Use extended_mips16 instead
25198 of specific lengths.
25200 2013-05-10 Jakub Jelinek <jakub@redhat.com>
25202 * config/i386/i386.md (rotateinv): New code attr.
25203 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
25204 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
25205 roll $31, %eax, etc.
25207 PR tree-optimization/45216
25208 PR tree-optimization/57157
25209 * tree-ssa-forwprop.c (simplify_rotate): New function.
25210 (ssa_forward_propagate_and_combine): Call it.
25212 2013-05-10 Richard Biener <rguenther@suse.de>
25214 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
25215 disable peeling when we version for aliasing.
25216 (vector_alignment_reachable_p): Honor explicit user alignment.
25217 (vect_supportable_dr_alignment): Likewise.
25218 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
25219 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
25220 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
25221 then peeling to arrange for the cost-model check to come first.
25223 2013-05-10 Alan Modra <amodra@gmail.com>
25225 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
25226 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
25227 * configure: Regenerate.
25229 2013-05-10 Alan Modra <amodra@gmail.com>
25232 * varasm.c (default_elf_select_section): Move !DECL_P check..
25233 (get_named_section): ..to here before calling get_section_name.
25235 (default_section_type_flags): Add DECL_P check.
25236 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
25237 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
25239 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
25241 * config/epiphany/epiphany.c (epiphany_expand_prologue):
25242 When using gen_stack_adjust_str with a register offset, add a
25243 REG_FRAME_RELATED_EXPR note.
25245 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
25247 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
25248 (*vec_extractv4si_zext_mem): Ditto.
25249 (*vec_extractv2di): Add 0->x and x->x alternatives.
25250 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
25251 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
25253 2013-05-09 Jason Merrill <jason@redhat.com>
25255 N3639 C++1y VLA support
25256 * gimplify.c (gimplify_vla_decl): Don't touch an existing
25259 * tree.c (build_constructor_va): New.
25260 * tree.h: Declare it.
25262 2013-05-09 Martin Jambor <mjambor@suse.cz>
25265 * gimple-fold.c (canonicalize_constructor_val): Call
25266 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
25268 2013-05-09 Jan Hubicka <jh@suse.cz>
25269 Richard Biener <rguenther@suse.de>
25272 * symtab.c (symtab_make_decl_local): Do not add private names.
25274 2013-05-09 Jan Hubicka <jh@suse.cz>
25277 * symtab.c (insert_to_assembler_name_hash): Handle clones.
25278 (unlink_from_assembler_name_hash): Likewise.
25279 (symtab_prevail_in_asm_name_hash, symtab_register_node,
25280 symtab_unregister_node, symtab_initialize_asm_name_hash,
25281 change_decl_assembler_name): Update.
25283 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
25285 * config/aarch64/aarch64.md: New movtf split.
25286 (*movtf_aarch64): Update.
25287 (aarch64_movdi_tilow): Handle TF modes and rename to
25288 aarch64_movdi_<mode>low.
25289 (aarch64_movdi_tihigh): Handle TF modes and rename to
25290 aarch64_movdi_<mode>high
25291 (aarch64_movtihigh_di): Handle TF modes and rename to
25292 aarch64_mov<mode>high_di
25293 (aarch64_movtilow_di): Handle TF modes and rename to
25294 aarch64_mov<mode>low_di
25295 (aarch64_movtilow_tilow): Remove spurious whitespace.
25296 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
25298 (aarch64_print_operand): Update.
25300 2013-05-09 Alan Modra <amodra@gmail.com>
25302 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
25304 * configure: Regenerate.
25306 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
25308 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
25309 splitter preparation statements.
25310 * config/i386/sse.md (*vec_extract* splitters): Ditto.
25311 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
25314 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25316 * gimple-ssa-strength-reduction.c (count_candidates): Change
25317 return value to int.
25318 (analyze_candidates_and_replace): Change type of length to int.
25320 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
25322 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
25323 (*vec_extract<mode>): Use VI12_128 mode iterator.
25324 (*vec_extract<mode>_mem): Ditto.
25325 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
25328 2013-05-08 Diego Novillo <dnovillo@google.com>
25333 2012-08-17 Diego Novillo <dnovillo@google.com>
25336 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
25337 * config.in: Regenerate.
25338 * configure: Regenerate.
25339 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
25341 2013-05-08 Jan Hubicka <jh@suse.cz>
25344 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
25345 * cgraph.h (symtab_node_base): Add unique_name.
25346 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25347 input_overwrite_node, input_varpool_node): Stream unique_name.
25348 * cgraphclones.c (cgraph_create_virtual_clone,
25349 cgraph_function_versioning): Set unique_name.
25350 * ipa.c (function_and_variable_visibility): Set unique_name.
25352 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25354 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
25355 (alloc_cand_and_find_basis): Restrict conditional candidate
25356 processing to CAND_MULTs.
25358 2013-05-08 Jan Hubicka <jh@suse.cz>
25361 lto-symtab.c (lto_symtab_symbol_p): New function.
25362 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
25363 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
25364 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
25365 Skip static symbols.
25367 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
25369 PR tree-optimization/57200
25370 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
25371 Only call inform if the preceding warning_at returns true.
25373 2013-05-07 Han Shen <shenhan@google.com>
25375 * cfgexpand.c (record_or_union_type_has_array_p): New function.
25376 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
25377 * common.opt (fstack-protector-strong): New option.
25378 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
25379 * doc/invoke.texi (Optimization Options): Document
25380 "-fstack-protector-strong".
25381 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
25383 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
25385 * config/mips/mips.c (mips_machine_reorg2): Return 0.
25387 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
25389 * ira.c (update_equiv_regs): Add insn having equiv memory even if
25390 it is not lhs of the insn.
25391 (setup_reg_equiv): Remove insn having equiv memory which it is not
25393 * lra-constraints.c (process_address): Try to improve generation
25394 code for address base + disp.
25395 (lra_constraints): Make correct the code for checking insn setting
25396 up backward equivalence. Remove insn only if it is in the init
25398 * lra-eliminations.c (update_reg_eliminate): Change return value.
25399 (lra_eliminate): Use the result.
25401 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
25403 * config/i386/sse.md (ssescalarnummask): New mode attribute.
25404 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
25405 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
25406 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
25407 register target operands.
25408 (*vec_extractv8hi_sse2): New pattern.
25409 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
25410 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
25411 (*vec_extract<mode>_mem): New insn and split pattern.
25413 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
25415 * config/arm/arm.c (arm_asan_shadow_offset): New function.
25416 (TARGET_ASAN_SHADOW_OFFSET): Define.
25417 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
25418 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
25420 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25422 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
25423 (incr_vec_index): Return -1 if increment not found.
25424 (create_add_on_incoming_edge): Assert if increment not found.
25425 (record_increment): Limit number of increments recorded.
25426 (all_phi_incrs_profitable): Return false if an increment not found.
25427 (replace_profitable_candidates): Don't process increments that were
25429 (analyze_candidates_and_replace): Limit size of incr_vec.
25431 2013-05-07 Richard Biener <rguenther@suse.de>
25433 * calls.c (special_function_p): setjmp-like functions are leaf.
25434 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
25435 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
25437 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
25439 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
25440 (aarch64_simd_mov<mode>): New expander.
25441 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
25442 (aarch64_simd_mov_to_<mode>high): Likewise.
25443 (aarch64_simd_mov_from_<mode>low): Likewise.
25444 (aarch64_simd_mov_from_<mode>high): Likewise.
25445 (aarch64_dup_lane<mode>): Update.
25446 (aarch64_dup_lanedi): New instruction pattern.
25447 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
25448 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
25450 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25452 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
25453 (replace_mult_candidate): Remove unnecessary argument; remove
25454 unnecessary parameter from call to introduce_cast_before_cand.
25455 (replace_unconditional_candidate): Remove unnecessary parameter
25456 from call to replace_mult_candidate.
25457 (replace_conditional_candidate): Likewise.
25458 (insert_initializers): Use make_temp_ssa_name.
25459 (introduce_cast_before_cand): Remove unnecessary argument; use
25460 make_temp_ssa_name.
25461 (replace_one_candidate): Remove unnecessary argument; remove
25462 unnecessary parameter from calls to introduce_cast_before_cand.
25463 (replace_profitable_candidates): Remove unnecessary parameters
25464 from calls to replace_one_candidate.
25466 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25468 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
25469 phi def as possibly hiding a basis for a CAND_ADD whose operands
25470 have been commuted in the analysis.
25471 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
25473 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
25475 * config/aarch64/aarch64.md
25476 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
25477 shift value between 0-4.
25479 2013-05-07 Richard Biener <rguenther@suse.de>
25481 * double-int.h (rshift): New overload.
25482 * double-int.c (rshift): New function.
25483 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
25484 (create_reference_ops_from_ref): Remove.
25485 (vn_reference_insert): Use shared ops for constructing the
25486 reference and copy it.
25488 2013-05-07 Richard Biener <rguenther@suse.de>
25490 PR middle-end/57190
25491 * tree-eh.c (sink_clobbers): Properly propagate
25492 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
25494 2013-05-07 Jakub Jelinek <jakub@redhat.com>
25496 PR tree-optimization/57149
25497 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
25498 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
25499 collect_phi_def_edges, execute_late_warn_uninitialized): Use
25500 uninit_undefined_value_p instead of ssa_undefined_value_p.
25503 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
25504 for modifier == EXPAND_INITIALIZER.
25506 2013-05-07 Anton Blanchard <anton@samba.org>
25508 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
25509 for powerpc64 little endian.
25510 * configure: Regenerate.
25512 2013-05-06 Graham Stott <grahams@btinternet.com>
25514 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
25515 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
25516 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
25517 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
25519 2013-05-06 Graham Stott <grahams@btinternet.com>
25521 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
25522 codes which allow non-lvalues.
25524 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
25526 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
25527 components are all 1s.
25528 (integer_minus_onep): New function.
25529 * tree.h (integer_minus_onep): Declare it.
25530 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
25531 integer_minus_onep instead of integer_all_onesp.
25533 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25536 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
25537 variations of these patterns.
25539 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
25541 * config/i386/i386.md (isa): Add x64_sse4 member.
25542 (enabled): Handle x64_sse4.
25543 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
25544 instruction for 64bit SSE4_1 targets. Update insn attributes.
25545 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
25546 instruction for SSE4_1 targets. Update insn attributes.
25547 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25548 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
25549 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
25551 (*vec_extractv4si): Rename from *sse4_1_pextrd.
25552 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
25553 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
25555 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25558 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
25560 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
25562 * final.c (do_assembler_dialects): Don't handle curly braces and
25563 vertical bar escaped by % as dialect delimiters.
25564 (output_asm_insn): Print curly braces and vertical bar if escaped
25565 by % and ASSEMBLER_DIALECT defined.
25566 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
25567 * doc/tm.texi: Regenerated.
25569 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
25571 * config/mips/mips.c: Include tree-pass.h.
25572 (mips_reorg): Split in pre- and post-dbr_schedule parts.
25573 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
25574 (pass_mips_machine_reorg2): New machine specific pass.
25575 (insert_pass_mips_machine_reorg2): New pass plugin definition.
25576 (mips_option_override): Register the new pass.
25577 * rtl.h (cleanup_barriers): Remove prototype.
25578 (dbr_schedule): Likewise.
25579 * jump.c (cleanup_barriers): Make static.
25580 * reorg.c (dbr_schedule): Likewise.
25582 2013-05-06 Richard Biener <rguenther@suse.de>
25584 PR tree-optimization/57185
25585 * tree-parloops.c (add_field_for_reduction): Handle anonymous
25586 SSA names properly.
25588 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
25591 * config/i386/i386.c (add_parameter_dependencies): Add dependence
25592 between "first_arg" and "insn", not "last" and "insn".
25594 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25596 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
25597 (find_candidates_in_block): Re-enable slsr_process_phi.
25598 (create_phi_basis): Fix double counting of candidate adjustment.
25600 2013-05-06 Richard Biener <rguenther@suse.de>
25602 PR middle-end/57147
25603 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
25604 the edge is also fallthru, preserve it and just clear the
25606 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
25607 also complex, preserve that and just clear the fallthru flag.
25608 * tree-inline.c (update_ssa_across_abnormal_edges): Also
25609 update virtual operands.
25611 2013-05-06 Alan Modra <amodra@gmail.com>
25613 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
25614 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
25615 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
25616 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
25617 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
25618 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
25620 2013-05-06 Alan Modra <amodra@gmail.com>
25622 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
25623 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
25624 (DEFAULT_ASM_ENDIAN): Define.
25625 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
25626 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
25627 Update -K PIC clause from sysv4.h.
25628 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
25629 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
25631 2013-05-06 Alan Modra <amodra@gmail.com>
25633 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
25634 twice for little-endian.
25635 (ashrdi3_no_power, ashrdi3): Support little-endian.
25637 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25640 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
25641 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
25643 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
25644 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
25645 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
25648 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
25649 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25651 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
25652 * config/pa/pa.opt: Make mbig-switch a no-op.
25653 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
25654 (CASE_VECTOR_MODE): Always return SImode.
25655 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
25656 for the !TARGET_BIG_SWITCH case.
25657 * config/pa/pa-linux.h: Likewise.
25658 * config/pa/pa-openbsd.h: Likewise.
25659 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
25660 * config/pa/pa.md (short_jump): Remove define_insn.
25661 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
25662 (casesi0): Remove define_insn.
25663 (type): Remove btable_branch.
25664 (pa_combine_type): Likewise.
25665 (in_nullified_branch_delay): Likewise.
25666 (in_call_delay): Likewise.
25667 (define_delay): Likewise.
25668 (define_insn_reservation "Z3"): Likewise.
25669 (define_insn_reservation "Z4"): Likewise.
25670 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
25671 (pa_adjust_insn_length): Remove adjustment for btable branches.
25672 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
25675 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
25677 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
25678 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
25679 Add m->r,x alternatives.
25680 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
25681 splitters using SWI48x mode iterator.
25682 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
25683 TARGET_64BIT. Add m->x alternative.
25684 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
25685 Add o->x alternative. Enable for TARGET_SSE.
25686 (sse_storeq): Remove expander.
25687 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
25688 with memory input operand.
25689 (*vec_extractv2di_1 splitter): New.
25690 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
25691 * config/i386/i386.md (ssevecmodelower): New mode attribute.
25693 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25695 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
25696 (INT_LOWPART): Delete.
25697 (extract_MB): Adjust.
25698 (extract_ME): Adjust.
25699 (print_operand): Adjust.
25701 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25703 * config/rs6000/predicates.md (reg_or_add_cint_operand,
25704 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
25705 (reg_or_logical_cint_operand, easy_fp_constant,
25706 logical_const_operand): Delete "CONST_DOUBLE" case.
25707 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
25708 "HOST_BITS_PER_WIDE_INT == 64" test.
25709 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
25710 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
25711 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
25712 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
25714 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
25715 CONST_DOUBLE DImode/VOIDmode case.
25716 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
25717 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
25718 CONST_DOUBLE VOIDmode case.
25719 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
25720 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
25721 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
25722 Delete CONST_DOUBLE case.
25723 (splitters for mov FMOVE64 const_double): Delete
25724 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
25725 "HOST_BITS_PER_WIDE_INT >= 64" test.
25726 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
25728 (mov DI const_double): Delete.
25730 2013-05-04 Jakub Jelinek <jakub@redhat.com>
25732 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
25733 on op shows all bits zero in mode of a lowpart subreg, return zero.
25735 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
25738 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
25739 to save TFmode registers and DImode to save TImode registers for
25740 caller save operations.
25741 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
25742 mark being partially clobbered since they only use the first
25745 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
25746 and TDmode only use the upper 64-bits of each VSX register.
25748 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25750 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
25751 (find_candidates_in_block): Disable slsr_process_phi.
25753 2013-05-03 Guozhi Wei <carrot@google.com>
25755 * coverage.c (coverage_obj_init): Move the construction of gcov
25757 (build_init_ctor): ... here.
25759 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25761 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
25762 (slsr_cand_d): Redefine def_phi.
25763 (stride_status, phi_adjust_status, count_phis_status): New enums.
25764 (find_phi_def): New.
25765 (find_basis_for_base_expr): New.
25766 (find_basis_for_candidate): Handle hidden bases.
25767 (alloc_cand_and_find_basis): Handle phi candidates.
25768 (slsr_process_phi): New.
25769 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
25770 (create_mul_imm_cand): Likewise.
25771 (create_add_ssa_cand): Exclude phi base candidates.
25772 (create_add_imm_cand): Likewise.
25773 (slsr_process_cast): Likewise.
25774 (slsr_process_copy): Likewise.
25775 (find_candidates_in_block): Handle phi candidates.
25776 (dump_candidate): Likewise.
25777 (unconditional_cands): Delete.
25778 (unconditional_cands_with_known_stride_p): Delete.
25779 (phi_dependent_cand_p): New.
25780 (cand_increment): Handle phi-dependent candidates.
25781 (replace_dependent): Delete.
25782 (replace_mult_candidate): New.
25783 (replace_unconditional_candidate): New.
25784 (incr_vec_index): Move to avoid forward reference.
25785 (create_add_on_incoming_edge): New.
25786 (create_phi_basis): New.
25787 (replace_dependents): Delete.
25788 (replace_conditional_candidate): New.
25789 (phi_add_costs): New.
25790 (replace_uncond_cands_and_profitable_phis): New.
25791 (record_increment): Handle phi adjustments.
25792 (record_phi_increments): New.
25793 (record_increments): Handle phi adjustments.
25794 (phi_incr_cost): New.
25795 (lowest_cost_path): Handle phis.
25796 (total_savings): Likewise.
25797 (analyze_increments): Likewise.
25798 (ncd_with_phi): New.
25799 (ncd_of_cand_and_phis): New.
25800 (nearest_common_dominator_for_cands): Handle phi increments.
25801 (all_phi_incrs_profitable): New.
25802 (replace_profitable_candidates): Handle phi-dependent candidates.
25803 (analyze_candidates_and_replace): Likewise.
25805 2013-05-03 Teresa Johnson <tejohnson@google.com>
25808 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
25809 do not exceed REG_BR_PROB_BASE.
25811 2013-05-03 Jeff Law <law@redhat.com>
25813 PR tree-optimization/57144
25814 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
25815 operand of the condition will bit into the new type when eliminating
25816 a cast feeding a condition.
25818 2013-05-03 Jakub Jelinek <jakub@redhat.com>
25820 PR rtl-optimization/57130
25821 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
25822 of COMPARE as in_code to the recursive call if needed.
25824 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
25826 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
25827 (enabled): Handle new members.
25828 * config/i386/sse.md (*vec_concatv2si): Merge from
25829 *vec_concatv2si_sse2 and vec_concatv2si_sse.
25830 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
25832 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
25834 PR tree-optimization/57027
25835 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
25836 for fnms opportunity, check we got the prerequisite kind
25837 of tree / gimple before using accessor functions.
25839 2013-05-03 Richard Biener <rguenther@suse.de>
25841 * double-int.h (lshift): New overload without precision
25842 and arith argument.
25843 (operator *=, operator +=, operator -=): Move ...
25844 * double-int.c (operator *=, operator +=, operator -=): ... here
25845 and implement more efficiently.
25846 (mul_double_with_sign): Remove.
25847 (lshift_double): Adjust to take unsinged shift argument, push
25848 dispatching code to callers.
25849 (mul_double_wide_with_sign): Add early out for callers that
25850 are not interested in high parts or overflow.
25851 (lshift): New function.
25852 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
25853 dispatch code here.
25854 (lrotate, rrotate): Use logical shifts.
25855 * expr.c (get_inner_reference): Use lshift.
25856 * fixed-value.c (do_fixed_divide): Likewise.
25857 * tree-dfa.c (get_ref_base_and_extent): Likewise.
25858 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25859 (indirect_refs_may_alias_p): Likewise.
25860 (stmt_kills_ref_p_1): Likewise.
25862 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
25864 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
25866 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
25868 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
25869 scalar form of FABD instruction.
25871 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
25873 * lra-constraints.c (process_alt_operands): Add checking alt
25874 number to choose the best alternative.
25876 2013-05-02 Richard Biener <rguenther@suse.de>
25878 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
25879 bitmap and its handling.
25880 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
25882 2013-05-02 Richard Biener <rguenther@suse.de>
25884 PR middle-end/57140
25885 * tree-inline.c (copy_loops): Properly handle removed loops.
25886 (copy_cfg_body): Mark destination loops for fixup if source
25887 loops needed fixup.
25889 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
25892 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
25893 generating simple_return for naked functions.
25895 2013-05-02 Martin Jambor <mjambor@suse.cz>
25897 PR middle-end/56988
25898 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
25899 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
25901 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
25902 ipa_agg_replacement_value structures.
25903 (known_aggs_to_agg_replacement_list): Likewise.
25904 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
25905 (read_agg_replacement_chain): Likewise.
25906 (ipcp_transform_function): Also check that by_ref flags match.
25908 2013-05-02 Richard Biener <rguenther@suse.de>
25910 * graphds.h (struct graph): Add obstack member.
25911 * graphds.c (new_graph): Initialize obstack and allocate
25913 (add_edge): Allocate edge from the obstack.
25914 (free_graph): Free the obstack instead of all edges and vertices.
25916 2013-05-02 Teresa Johnson <tejohnson@google.com>
25918 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
25920 * cfg.c (update_bb_profile_for_threading): Ditto.
25921 * tree-inline.c (copy_bb): Ditto.
25922 (copy_edges_for_bb): Ditto.
25923 (initialize_cfun): Ditto.
25924 (copy_cfg_body): Ditto.
25925 (expand_call_inline): Ditto.
25926 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
25927 (estimate_node_size_and_time): Ditto.
25928 (inline_merge_summary): Ditto.
25929 * cgraphclones.c (cgraph_clone_edge): Ditto.
25930 (cgraph_clone_node): Ditto.
25931 * sched-rgn.c (compute_dom_prob_ps): Ditto.
25932 (compute_trg_info): Ditto.
25934 2013-05-02 Ian Bolton <ian.bolton@arm.com>
25936 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
25937 S reg when fp attribute set.
25938 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
25940 2013-05-02 Ian Bolton <ian.bolton@arm.com>
25942 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
25944 (*and_one_cmplsi3_compare0_uxtw): Likewise.
25945 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
25946 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
25948 2013-05-02 Richard Biener <rguenther@suse.de>
25950 * tree-scalar-evolution.c (scev_info_hasher): Remove.
25951 (struct instantiate_cache_entry): New type.
25952 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
25953 (struct instantiate_cache_type): New type.
25954 (set_instantiated_value, get_instantiated_value): Remove.
25955 (get_instantiated_value_entry): New function.
25956 (instantiate_scev_name): Use the new cache and adjust.
25957 (instantiate_scev_poly): Adjust.
25958 (instantiate_scev_binary): Likewise.
25959 (instantiate_array_ref): Likewise.
25960 (instantiate_scev_convert): Likewise.
25961 (instantiate_scev_not): Likewise.
25962 (instantiate_scev_3): Likewise.
25963 (instantiate_scev_2): Likewise.
25964 (instantiate_scev_r): Likewise.
25965 (instantiate_scev): Likewise.
25966 (resolve_mixers): Likewise.
25968 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
25971 * lra-constraints.c (best_small_class_operands_num): Remove.
25972 (process_alt_operands): Remove small_class_operands_num. Take
25973 small classes operands into losers and only if the operand is not
25974 matched. Modify debugging output.
25975 (curr_insn_transform): Remove best_small_class_operands_num.
25978 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
25980 * config/aarch64/aarch64-builtins.c
25981 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
25982 * config/aarch64/aarch64-simd-builtins.def
25983 (reduc_splus_): Add new modes.
25984 (reduc_uplus_): New.
25985 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
25986 (reduc_uplus_v4sf): Likewise.
25987 (reduc_splus_v4sf): Likewise.
25988 (aarch64_addv<mode>): Likewise.
25989 (reduc_uplus_<mode>): Likewise.
25990 (reduc_splus_<mode>): Likewise.
25991 (aarch64_addvv2di): Likewise.
25992 (reduc_uplus_v2di): Likewise.
25993 (reduc_splus_v2di): Likewise.
25994 (aarch64_addvv2si): Likewise.
25995 (reduc_uplus_v2si): Likewise.
25996 (reduc_splus_v2si): Likewise.
25997 (reduc_<sur>plus_<mode>): New.
25998 (reduc_<sur>plus_v2di): Likewise.
25999 (reduc_<sur>plus_v2si): Likewise.
26000 (reduc_<sur>plus_v4sf): Likewise.
26001 (aarch64_addpv4sf): Likewise.
26002 * config/aarch64/arm_neon.h
26003 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
26004 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
26005 add UNSPEC_SADDV, UNSPEC_UADDV.
26007 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
26009 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26011 * config/aarch64/arm_neon.h
26012 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
26014 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26016 * config/aarch64/aarch64-builtins
26017 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
26019 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26021 * config/aarch64/aarch64-simd-builtins.def
26022 (reduc_smax_): New.
26023 (reduc_smin_): Likewise.
26024 (reduc_umax_): Likewise.
26025 (reduc_umin_): Likewise.
26026 (reduc_smax_nan_): Likewise.
26027 (reduc_smin_nan_): Likewise.
26030 (smax): Update for V2SF, V4SF and V2DF modes.
26033 (smin_nan): Likewise.
26034 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
26035 (<su><maxmin><mode>3): ...This, refactor.
26036 (s<maxmin><mode>3): New.
26037 (<maxmin_uns><mode>3): Likewise.
26038 (reduc_<maxmin_uns>_<mode>): Refactor.
26039 (reduc_<maxmin_uns>_v4sf): Likewise.
26040 (reduc_<maxmin_uns>_v2si): Likewise.
26041 (aarch64_<fmaxmin><mode>: Remove.
26042 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
26044 (vmin<q>_f<32,64>): Likewise.
26045 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
26047 (su): Add mappings for smax, smin, umax, umin.
26049 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
26050 (FMAXMIN): Rename as...
26051 (FMAXMIN_UNS): ...This.
26053 (fmaxminv): Likewise.
26054 (fmaxmin): Likewise.
26056 (maxmin_uns_op): Likewise.
26058 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26060 * config/aarch64/arm_neon.h
26061 (vac<ge, gt><sd>_f<32, 64>): Rename to...
26062 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
26063 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
26065 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26067 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
26068 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
26070 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26072 * config/aarch64/aarch64-simd.md
26073 (vcond<mode>_internal): Handle special cases for constant masks.
26074 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
26075 (vcondu<mode><mode>): Likewise.
26076 (vcond<v_cmp_result><mode>): New.
26078 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26080 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
26081 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
26082 * config/aarch64/aarch64-simd-builtins.def
26083 (cmeq): Update to BUILTIN_VALLDI.
26088 * config/aarch64/arm_neon.h
26089 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
26090 to builtins or C as appropriate.
26092 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
26094 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
26096 (cmhi): Rename to...
26098 * config/aarch64/aarch64-simd.md
26099 (simd_mode): Add SF.
26100 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
26101 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
26102 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
26103 (cstore<mode>_neg): ...This.
26104 * config/aarch64/iterators.md
26106 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
26107 (COMPARISONS): New.
26108 (UCOMPARISONS): Likewise.
26109 (optab): Add missing comparisons.
26115 (VCMP_S): Likewise.
26116 (VCMP_U): Likewise.
26117 (V_cmp_result): Add DF, SF modes.
26118 (v_cmp_result): Likewise.
26120 (vmtype): Likewise.
26121 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
26123 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
26125 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
26126 define_insn to define_insn_and_split.
26127 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
26128 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
26129 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
26130 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
26131 (thumb2_negscc): Likewise.
26133 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
26135 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
26137 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
26139 * config/arm/thumb2.md: Remove trailing whitespaces.
26141 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26143 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
26144 Use gen_int_mode rather than GEN_INT.
26146 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
26148 * value-prof.c (stream_in_histogram_value): Remove the strayed
26151 2013-04-30 Richard Biener <rguenther@suse.de>
26153 PR middle-end/57122
26154 * cfghooks.c (split_edge): Properly check for the loop latch edge.
26156 2013-04-30 Richard Biener <rguenther@suse.de>
26158 PR middle-end/57107
26159 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
26161 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
26163 PR rtl-optimization/56957
26164 PR rtl-optimization/57105
26165 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
26166 variable. Use just INSN_UID for determining whether an insn
26167 should be only disconnected from the insn stream.
26168 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
26170 2013-04-30 Jakub Jelinek <jakub@redhat.com>
26172 PR tree-optimization/57104
26173 * tsan.c (instrument_expr): Don't instrument accesses to
26174 DECL_HARD_REGISTER VAR_DECLs.
26176 2013-04-30 Richard Biener <rguenther@suse.de>
26178 * function.h (loops_for_fn): New inline function.
26179 (set_loops_for_fn): Likewise.
26180 * cfgloop.h (place_new_loop): Add struct function parameter.
26181 (get_loop): Likewise.
26182 (get_loops): Likewise.
26183 (number_of_loops): Likewise.
26184 (fel_next): Adjust.
26185 (fel_init): Likewise.
26186 * cfg.c (get_loop_copy): Adjust.
26187 * cfgloop.c (flow_loops_dump): Likewise.
26188 (record_loop_exits): Likewise.
26189 (verify_loop_structure): Likewise.
26190 * cfgloopanal.c (mark_irreducible_loops): Likewise.
26191 (estimate_reg_pressure_cost): Likewise.
26192 (mark_loop_exit_edges): Likewise.
26193 * cfgloopmanip.c (place_new_loop): Likewise.
26194 (add_loop): Likewise.
26195 (duplicate_loop): Likewise.
26196 * graph.c (draw_cfg_nodes): Likewise.
26197 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
26198 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
26199 (extract_affine_chrec): Likewise.
26200 (build_scop_iteration_domain): Likewise.
26201 * graphite.c (graphite_initialize): Likewise.
26202 * ira-build.c (create_loop_tree_nodes): Likewise.
26203 (more_one_region_p): Likewise.
26204 (rebuild_regno_allocno_maps): Likewise.
26205 (mark_loops_for_removal): Likewise.
26206 (mark_all_loops_for_removal): Likewise.
26207 (remove_unnecessary_regions): Likewise.
26208 (ira_build): Likewise.
26209 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
26210 * loop-init.c (fix_loop_structure): Likewise.
26211 (gate_rtl_move_loop_invariants): Likewise.
26212 (gate_rtl_unswitch): Likewise.
26213 (gate_rtl_unroll_and_peel_loops): Likewise.
26214 (rtl_doloop): Likewise.
26215 * lto-streamer-in.c (input_cfg): Likewise.
26216 * lto-streamer-out.c (output_cfg): Likewise.
26217 * modulo-sched.c (sms_schedule): Likewise.
26218 * predict.c (tree_estimate_probability): Likewise.
26219 (tree_estimate_probability_driver): Likewise.
26220 (estimate_loops): Likewise.
26221 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
26222 (move_sese_region_to_fn): Likewise.
26223 (debug_loop_num): Likewise.
26224 * tree-chrec.c (chrec_evaluate): Likewise.
26225 (hide_evolution_in_other_loops_than_loop): Likewise.
26226 (chrec_component_in_loop_num): Likewise.
26227 (reset_evolution_in_loop): Likewise.
26228 (evolution_function_is_invariant_rec_p): Likewise.
26229 * tree-if-conv.c (main_tree_if_conversion): Likewise.
26230 * tree-inline.c (copy_loops): Likewise.
26231 (copy_cfg_body): Likewise.
26232 (tree_function_versioning): Likewise.
26233 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
26234 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
26236 (add_to_evolution_1): Likewise.
26237 (scev_const_prop): Likewise.
26238 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
26239 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
26240 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
26241 (tree_ssa_lim_initialize): Likewise.
26242 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
26243 (verify_loop_closed_ssa): Likewise.
26244 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
26245 (tree_ssa_loop_im): Likewise.
26246 (tree_ssa_loop_unswitch): Likewise.
26247 (tree_vectorize): Likewise.
26248 (check_data_deps): Likewise.
26249 (tree_ssa_loop_ivcanon): Likewise.
26250 (tree_ssa_loop_bounds): Likewise.
26251 (tree_complete_unroll): Likewise.
26252 (tree_complete_unroll_inner): Likewise.
26253 (tree_parallelize_loops): Likewise.
26254 (tree_ssa_loop_prefetch): Likewise.
26255 (tree_ssa_loop_ivopts): Likewise.
26256 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
26257 * tree-vectorizer.c (vectorize_loops): Likewise.
26259 2013-04-29 Mike Frysinger <vapier@gentoo.org>
26261 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
26262 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
26263 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
26264 with EABI_LINK_SPEC.
26266 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
26269 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
26272 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
26275 * lra-constraints.c (process_alt_operands): Discourage a bit more
26276 using memory for pseudos. Print cost dump for alternatives.
26277 Modify cost values for conflicts with early clobbers.
26278 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
26280 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
26283 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
26285 2013-04-29 Ian Bolton <ian.bolton@arm.com>
26287 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
26288 from/to S register.
26289 (movdi_aarch64): Support LDR/STR from/to D register.
26291 2013-04-29 Ian Bolton <ian.bolton@arm.com>
26293 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
26294 or higher by default.
26296 2013-04-29 Richard Biener <rguenther@suse.de>
26298 PR middle-end/57075
26299 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
26300 even if not adding abnormal edges for calls that can make
26303 2013-04-29 Richard Biener <rguenther@suse.de>
26305 PR middle-end/57103
26306 * tree-cfg.c (move_stmt_op): Fix condition under which to update
26308 (move_stmt_r): Remove redundant checking.
26310 2013-04-29 Teresa Johnson <tejohnson@google.com>
26313 * basic-block.h (apply_scale): New function.
26314 (apply_probability): Use apply_scale.
26315 * gimple-streamer-in.c (input_bb): Ditto.
26316 * lto-streamer-in.c (input_cfg): Ditto.
26317 * lto-cgraph.c (merge_profile_summaries): Ditto.
26318 * tree-optimize.c (execute_fixup_cfg): Ditto.
26319 * tree-inline.c (copy_bb): Update comment to use apply_scale.
26320 (copy_edges_for_bb): Ditto.
26321 (copy_cfg_body): Ditto.
26323 2013-04-29 Tom de Vries <tom@codesourcery.com>
26325 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
26326 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
26327 (tail_merge_optimize): Handle current_loops == NULL.
26329 2013-04-26 Jeff Law <law@redhat.com>
26331 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
26332 (simplify_cond_using_ranges): Generalize code to simplify
26333 COND_EXPRs where one argument is a constant and the other
26334 is an SSA_NAME created by an integral type conversion.
26336 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26338 * config/arm/arm.md (store_minmaxsi): Use only when
26339 optimize_insn_for_size_p.
26341 2013-04-29 Christian Bruel <christian.bruel@st.com>
26344 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
26346 2013-04-29 Richard Biener <rguenther@suse.de>
26348 PR middle-end/57089
26349 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
26350 loop tree make sure to schedule a fixup for the child as well.
26351 (expand_omp_for_generic): Properly add loops.
26352 (expand_omp_for_static_nochunk): Likewise.
26353 (expand_omp_for_static_chunk): Likewise.
26354 (expand_omp_for): For the degenerate case fixup loops.
26355 (expand_omp_sections): Fix default bb placement in loops.
26356 (expand_omp_atomic_pipeline): Properly add loops.
26358 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26360 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
26362 2013-04-29 Tom de Vries <tom@codesourcery.com>
26364 * tree-ssa-tail-merge.c: Update header comment.
26366 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26368 * config/aarch64/arm_neon.h
26369 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
26370 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
26371 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
26372 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
26373 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
26374 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
26375 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
26376 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
26378 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26380 * config/aarch64/aarch64-simd.md
26381 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
26382 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
26383 fix_trunc, fixuns_trunc.
26384 (ftrunc<VDQF:mode>2): New.
26385 * config/aarch64/iterators.md (optab): Add fix, fixuns.
26386 (fix_trunc_optab): New.
26388 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26390 * config/aarch64/aarch64-builtins.c
26391 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
26392 iceilf, lround, iroundf.
26394 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
26397 * config/i386/i386.h (enum ix86_tune_indices)
26398 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
26399 New, split from X86_TUNE_INTER_UNIT_MOVES.
26400 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
26401 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
26402 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
26403 (TARGET_INTER_UNIT_MOVES): Remove.
26404 * config/i386/i386.c (initial_ix86_tune_features): Update.
26405 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
26406 (ix86_expand_convert_uns_didf_sse): Use
26407 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26408 (ix86_expand_vector_init_one_nonzero): Ditto.
26409 (ix86_expand_vector_init_interleave): Ditto.
26410 (inline_secondary_memory_needed): Return true for moves from SSE class
26411 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
26412 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
26413 * config/i386/constraints.md (Yi, Ym): Depend on
26414 TARGET_INTER_UNIT_MOVES_TO_VEC.
26415 (Yj, Yn): New constraints.
26416 * config/i386/i386.md (*movdi_internal): Change constraints of
26417 operand 1 from Yi to Yj and from Ym to Yn.
26418 (*movsi_internal): Ditto.
26419 (*movdf_internal): Ditto.
26420 (*movsf_internal): Ditto.
26421 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
26422 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
26423 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
26424 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
26425 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
26426 * config/i386/sse.md (movdi_to_sse): Ditto.
26427 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
26428 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
26429 TARGET_INTER_UNIT_MOVES.
26430 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
26431 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
26432 instead of TARGET_INTER_UNIT_MOVES.
26433 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
26434 operand 1 from Yi to Yj and from Ym to Yn.
26436 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26438 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
26439 (float_truncate_hi_): Likewise.
26440 (float_extend_lo_): Likewise.
26441 (float_truncate_lo_): Likewise.
26442 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
26443 (aarch64_float_extend_lo_v2df): Likewise.
26444 (vec_unpacks_hi_v4sf): Likewise.
26445 (aarch64_float_truncate_lo_v2sf): Likewise.
26446 (aarch64_float_truncate_hi_v4sf): Likewise.
26447 (vec_pack_trunc_v2df): Likewise.
26448 (vec_pack_trunc_df): Likewise.
26450 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26452 * config/aarch64/aarch64-builtins.c
26453 (aarch64_fold_builtin): Fold float conversions.
26454 * config/aarch64/aarch64-simd-builtins.def
26455 (floatv2si, floatv4si, floatv2di): New.
26456 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
26457 * config/aarch64/aarch64-simd.md
26458 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
26459 * config/aarch64/iterators.md (FLOATUORS): New.
26460 (optab): Add float, floatuns.
26461 (su_optab): Likewise.
26463 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26465 * config/aarch64/aarch64-builtins.c
26466 (aarch64_builtin_vectorized_function): Use new names for
26468 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
26469 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
26470 (fcvtzu): Split as...
26471 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
26472 (fcvtas): Split as...
26473 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
26474 (fcvtau): Split as...
26475 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
26476 (fcvtps): Split as...
26477 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
26478 (fcvtpu): Split as...
26479 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
26480 (fcvtms): Split as...
26481 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
26482 (fcvtmu): Split as...
26483 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
26484 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
26485 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
26486 (lfrintnusf, lfrintnudf): Likewise.
26487 * config/aarch64/aarch64-simd.md
26488 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
26490 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
26491 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
26492 (fcvt_pattern): Likewise.
26494 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26496 * config/aarch64/aarch64-simd.md
26497 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
26498 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
26500 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26502 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
26503 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
26504 (vrnd<a,m,n,p>_f32): Implement using builtins.
26505 (vrnd<i,x><q>_f<32, 64>): New.
26507 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26509 * config/aarch64/aarch64-builtins.c
26510 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
26511 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
26512 (frintz): Rename to...
26514 (frintp): Rename to...
26516 (frintm): Rename to...
26518 (frinti): Rename to...
26519 (nearbyint): ...this.
26520 (frintx): Rename to...
26522 (frinta): Rename to...
26524 * config/aarch64/aarch64-simd.md
26525 (aarch64_frint<frint_suffix><mode>): Delete.
26526 (<frint_pattern><mode>2): Convert to insn.
26527 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
26528 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
26529 (frint_pattern): Likewise.
26530 (frint_suffix): Likewise.
26532 2013-04-29 Richard Biener <rguenther@suse.de>
26534 PR tree-optimization/57081
26535 * loop-init.c: Include tree-flow.h.
26536 (loop_optimizer_finalize): Free number of iteration estimates.
26537 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
26539 2013-04-29 Jakub Jelinek <jakub@redhat.com>
26541 PR tree-optimization/57083
26542 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
26543 non-singleton shift count range, zero extend low_bound for uns case.
26545 * config/i386/predicates.md (general_vector_operand): New predicate.
26546 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
26547 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
26548 if they aren't nonimmediate operands. If their original values
26549 satisfy const_vector_equal_evenodd_p, don't shift them.
26550 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
26551 predicates. For the SSE4.1 case force operands[{1,2}] into registers
26552 if not nonimmediate_operand.
26553 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
26554 instead of register_operand.
26555 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
26557 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
26559 * stor-layout.c (finalize_size_functions): Allocate a structure and
26560 reset cfun before dumping the functions.
26562 2013-04-27 Jakub Jelinek <jakub@redhat.com>
26564 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
26567 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
26568 use xop_pmacsdqh if uns_p.
26569 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
26570 the immediate rotate count.
26572 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
26574 * rtl.h (struct rtx_def): Add comment for field jump.
26575 (LRA_SUBREG_P): New macro.
26576 * recog.c (register_operand): Check LRA_SUBREG_P.
26577 * lra.c (lra): Add note at the end of RTL code. Align non-empty
26579 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
26580 (lra_final_code_change): Skip subreg change for operators.
26581 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
26582 if there are no operand changes.
26583 * lra-constraints.c (curr_insn_set): New.
26584 (match_reload): Set LRA_SUBREG_P.
26585 (emit_spill_move): Ditto.
26586 (check_and_process_move): Use curr_insn_set. Process only single
26587 set insns. Don't initialize sec_mem_p and change_p.
26588 (simplify_operand_subreg): Use LRA_SUBREG_P.
26589 (reg_in_class_p): New function.
26590 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
26591 of #ifdef. Add code to remove cycling.
26592 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
26593 non-null disp. Reload inner instead of disp when base and index
26594 are null. Try to put lo_sum into register.
26595 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
26596 (check_and_process_move): Move code for move cost check to
26597 simple_move_p. Remove equiv_substitution.
26598 (simple_move_p): New function.
26599 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
26600 curr_insn_set. Call check_and_process_move only for single set
26601 insns. Use the new function. Move call of check_and_process_move
26602 after operand equiv substitution and address process.
26604 2013-04-26 Jakub Jelinek <jakub@redhat.com>
26607 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
26608 with nonlocal goto receivers or returns twice calls, ignore
26609 unininitialized values from abnormal edges to nl goto receiver
26610 or returns twice call.
26612 2013-04-26 Jakub Jelinek <jakub@redhat.com>
26614 PR tree-optimization/57051
26615 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
26616 and VEC_RSHIFT_EXPR if shift count is a multiple of element
26619 2013-04-26 Richard Biener <rguenther@suse.de>
26621 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
26622 (expand_omp_taskreg): Likewise. Mark loops for fixup.
26623 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
26624 (fixup_loop_arrays_after_move): New function.
26625 (move_sese_region_to_fn): Properly outline the loop tree parts
26626 of the SESE region.
26628 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
26630 * config/i386/i386.md (type, unit): Fix long lines.
26632 2013-04-26 Richard Biener <rguenther@suse.de>
26634 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
26635 (lto-streamer-out.o): Likewise.
26636 * cfgloop.c (init_loops_structure): Export, add struct function
26637 argument and adjust.
26638 (flow_loops_find): Adjust.
26639 * cfgloop.h (enum loop_estimation): Add EST_LAST.
26640 (init_loops_structure): Declare.
26641 * lto-streamer-in.c: Include cfgloop.h.
26642 (input_cfg): Input the loop tree.
26643 * lto-streamer-out.c: Include cfgloop.h.
26644 (output_cfg): Output the loop tree.
26645 (output_struct_function_base): Do not drop PROP_loops.
26647 2013-03-26 Richard Biener <rguenther@suse.de>
26649 * tree-cfg.c (execute_build_cfg): Build the loop tree.
26650 (pass_build_cfg): Provide PROP_loops.
26651 (move_sese_region_to_fn): Remove loops that are outlined into fn
26653 * tree-inline.c: Include cfgloop.h.
26654 (initialize_cfun): Do not drop PROP_loops.
26655 (copy_loops): New function.
26656 (copy_cfg_body): Copy loop structure.
26657 (tree_function_versioning): Initialize destination loop tree.
26658 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
26659 (pass_parallelize_loops): Do IL verification.
26660 * loop-init.c (loop_optimizer_init): Fixup loops if required.
26661 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
26662 the CFG make sure we fixup loops as well.
26663 * tree-ssa-tail-merge.c: Include cfgloop.h.
26664 (replace_block_by): When merging loop latches mark loops for fixup.
26665 * lto-streamer-out.c (output_struct_function_base): Drop
26666 PROP_loops for now.
26667 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
26668 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
26669 * ipa-split.c: Include cfgloop.h.
26670 (split_function): Add the new return block to the loop tree root.
26671 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
26672 whether we have removed the forwarder block.
26673 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
26674 * cfgloop.h (place_new_loop): Declare.
26675 * cfgloopmanip.c (place_new_loop): Export.
26676 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
26677 (tree-switch-conversion.o): Likewise.
26678 (tree-complex.o): Likewise.
26679 (tree-inline.o): Likewise.
26680 (tree-ssa-tailmerge.o): Likewise.
26681 (ipa-split.o): Likewise.
26682 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
26683 (tree-ssa-copy.o): Likewise.
26684 * tree-switch-conversion.c: Include cfgloop.h
26685 (process_switch): If we emit a bit-test cascade, schedule loops
26687 * tree-complex.c: Include cfgloop.h.
26688 (expand_complex_div_wide): Properly add new basic-blocks to loops.
26689 * asan.c: Include cfgloop.h.
26690 (create_cond_insert_point): Properly add new basic-blocks to
26691 loops, schedule loop fixup.
26692 * cfgloop.c (verify_loop_structure): Check that looks are not
26694 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
26696 (expand_omp_for_generic): Likewise.
26697 (expand_omp_sections): Likewise.
26698 (expand_omp_atomic_pipeline): Schedule loops for fixup.
26699 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
26700 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
26701 is initialized, not when loops are present.
26702 * tree-parloops.c (parallelize_loops): Remove checking here.
26703 * passes.c (init_optimization_passes): Schedule a copy-propagation
26704 pass before complete unrolling of inner loops.
26706 2013-04-26 Jakub Jelinek <jakub@redhat.com>
26708 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
26709 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
26710 (colorize_init): Add argument to _WIN32 version.
26711 * toplev.c: Include diagnostic-color.h.
26712 (process_options): Default to -fdiagnostics-color=auto if
26713 GCC_COLORS env var is in the environment.
26714 * common.opt (fdiagnostics-color=): Add Var and Init.
26715 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
26716 env var is in the environment, the default is auto rather than never.
26718 * diagnostic.h (file_name_as_prefix): Add context argument.
26719 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
26720 the string as locus.
26721 * langhooks.c (lhd_print_error_function): Adjust caller.
26723 2013-04-25 Lawrence Crowl <crowl@google.com>
26725 * var-tracking.c (shared_hash_def::htab):
26726 Change type to hash_table. Update dependent calls and types.
26728 2013-04-25 Lawrence Crowl <crowl@google.com>
26730 * Makefile.in: Update as needed below.
26732 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
26733 Move declaration to after the type's method definitons.
26735 * attribs.c (htab_t scoped_attributes::attribute_hash):
26736 Change type to hash_table. Update dependent calls and types.
26738 * bitmap.c (htab_t bitmap_desc_hash):
26739 Change type to hash_table. Update dependent calls and types.
26741 * cselib.c (htab_t cselib_hash_table):
26742 Change type to hash_table. Update dependent calls and types.
26744 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
26745 (hash_string_slot_node): Move implementation into lto-streamer.h
26746 struct string_slot_hasher.
26747 (eq_string_slot_node): Likewise.
26749 * data-streamer-out.c: Update output_block::string_hash_table
26750 dependent calls and types.
26752 * dwarf2cfi.c (htab_t trace_index):
26753 Change type to hash_table. Update dependent calls and types.
26755 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
26756 Change type to hash_table. Update dependent calls and types.
26757 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
26758 (htab_t optimize_external_refs::map): Likewise.
26759 (htab_t output_comp_unit::extern_map): Likewise.
26760 (htab_t output_comdat_type_unit::extern_map): Likewise.
26761 (htab_t output_macinfo::macinfo_htab): Likewise.
26762 (htab_t optimize_location_lists::htab): Likewise.
26763 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
26765 * except.c (htab_t ehspec_hash_type):
26766 Change type to hash_table. Update dependent calls and types.
26767 (assign_filter_values::ttypes): Likewise.
26768 (assign_filter_values::ehspec): Likewise.
26769 (sjlj_assign_call_site_values::ar_hash): Likewise.
26770 (convert_to_eh_region_ranges::ar_hash): Likewise.
26772 * gcse.c (htab_t pre_ldst_table):
26773 Change type to hash_table. Update dependent calls and types.
26775 * ggc-common.c (htab_t saving_htab):
26776 Change type to hash_table. Update dependent calls and types.
26777 (htab_t loc_hash): Likewise.
26778 (htab_t ptr_hash): Likewise.
26779 (call_count): Rename ggc_call_count.
26780 (call_alloc): Rename ggc_call_alloc.
26781 (loc_descriptor): Rename make_loc_descriptor.
26782 (add_statistics): Rename ggc_add_statistics.
26784 * ggc-common.c (saving_htab):
26785 Change type to hash_table. Update dependent calls and types.
26787 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
26788 (push_gimplify_context): Likewise.
26789 (pop_gimplify_context): Likewise.
26790 (struct gimple_temp_hash_elt): Added.
26791 (struct gimplify_hasher): Likewise.
26792 (struct gimplify_ctx.temp_htab):
26793 Change type to hash_table. Update dependent calls and types.
26795 * gimple-fold.c: Include gimplify-ctx.h.
26797 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
26798 Change type to hash_table. Update dependent calls and types.
26799 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
26800 avoid potential global name collision.
26802 * gimplify.c: Include gimplify-ctx.h.
26803 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
26804 (htab_t gimplify_ctx::temp_htab):
26805 Update dependent calls and types for new type hash_table.
26806 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
26807 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
26809 * gimplify-ctx.h: New.
26810 (struct gimple_temp_hash_elt): Move from gimplify.c.
26811 (class gimplify_hasher): New.
26812 (struct gimplify_ctx): Move from gimple.h.
26813 (htab_t gimplify_ctx::temp_htab):
26814 Change type to hash_table. Update dependent calls and types.
26816 * graphite-clast-to-gimple.c: Include graphite-htab.h.
26817 (htab_t ivs_params::newivs_index):
26818 Change type to hash_table. Update dependent calls and types.
26819 (htab_t ivs_params::params_index): Likewise.
26820 (htab_t print_generated_program::params_index): Likewise.
26821 (htab_t gloog::newivs_index): Likewise.
26822 (htab_t gloog::params_index): Likewise.
26824 * graphite.c: Include graphite-htab.h.
26825 4htab_t graphite_transform_loops::bb_pbb_mapping):
26826 Change type to hash_table. Update dependent calls and types.
26828 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
26829 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
26830 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
26832 * graphite-dependences.c: Include graphite-htab.h.
26833 (loop_is_parallel_p): Change hash table type of parameter.
26835 * graphite-htab.h: New.
26836 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
26837 (extern find_pbb_via_hash): Move from graphite-poly.h.
26838 (extern loop_is_parallel_p): Move from graphite-poly.h.
26839 (extern get_loop_body_pbbs): Move from graphite-poly.h.
26841 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
26842 (extern loop_is_parallel_p): Move to graphite-htab.h.
26843 (extern get_loop_body_pbbs): Move to graphite-htab.h.
26845 * haifa-sched.c (htab_t delay_htab):
26846 Change type to hash_table. Update dependent calls and types.
26847 (htab_t delay_htab_i2): Likewise.
26849 * ira-color.c (htab_t allocno_hard_regs_htab):
26850 Change type to hash_table. Update dependent calls and types.
26852 * ira-costs.c (htab_t cost_classes_htab):
26853 Change type to hash_table. Update dependent calls and types.
26855 * loop-invariant.c (htab_t merge_identical_invariants::eq):
26856 Change type to hash_table. Update dependent calls and types.
26858 * loop-iv.c (htab_t bivs):
26859 Change type to hash_table. Update dependent calls and types.
26861 * loop-unroll.c (htab_t opt_info::insns_to_split):
26862 Change type to hash_table. Update dependent calls and types.
26863 (htab_t opt_info::insns_with_var_to_expand): Likewise.
26865 * lto-streamer.h (struct string_slot): Move from data-streamer.h
26866 (struct string_slot_hasher): New.
26867 (htab_t output_block::string_hash_table):
26868 Change type to hash_table. Update dependent calls and types.
26870 * lto-streamer-in.c (freeing_string_slot_hasher): New.
26871 (htab_t file_name_hash_table):
26872 Change type to hash_table. Update dependent calls and types.
26874 * lto-streamer-out.c: Update output_block::string_hash_table dependent
26877 * lto-streamer.c (htab_t tree_htab):
26878 Change type to hash_table. Update dependent calls and types.
26880 * omp-low.c: Include gimplify-ctx.h.
26882 * passes.c (htab_t name_to_pass_map):
26883 Change type to hash_table. Update dependent calls and types.
26884 (pass_traverse): Rename to passes_pass_traverse.
26886 * plugin.c (htab_t event_tab):
26887 Change type to hash_table. Update dependent calls and types.
26889 * postreload-gcse.c (htab_t expr_table):
26890 Change type to hash_table. Update dependent calls and types.
26891 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
26893 * sese.c (debug_rename_map_1): Make extern.
26894 (htab_t copy_bb_and_scalar_dependences::rename_map):
26895 Change type to hash_table. Update dependent calls and types.
26897 * sese.h (extern debug_rename_map): Move to .c file.
26899 * store-motion.c (htab_t store_motion_mems_table):
26900 Change type to hash_table. Update dependent calls and types.
26902 * trans-mem.c (htab_t tm_new_mem_hash):
26903 Change type to hash_table. Update dependent calls and types.
26905 * tree-browser.c (htab_t TB_up_ht):
26906 Change type to hash_table. Update dependent calls and types.
26908 * tree-cfg.c (htab_t discriminator_per_locus):
26909 Change type to hash_table. Update dependent calls and types.
26911 * tree-complex.c: Include tree-hasher.h
26912 (htab_t complex_variable_components):
26913 Change type to hash_table. Update dependent calls and types.
26915 * tree-eh.c (htab_t finally_tree):
26916 Change type to hash_table. Update dependent calls and types.
26918 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
26919 struct int_tree_hasher.
26920 (extern int_tree_map_eq): Likewise.
26921 (uid_decl_map_hash): Removed.
26922 (extern decl_tree_map_eq): Likewise.
26924 * tree-hasher.h: New.
26925 (struct int_tree_hasher): New.
26926 (typedef int_tree_htab_type): New.
26928 * tree-inline.c: Include gimplify-ctx.h.
26930 * tree-mudflap.c: Include gimplify-ctx.h.
26932 * tree-parloops.c: Include tree-hasher.h.
26933 (htab_t eliminate_local_variables_stmt::decl_address):
26934 Change type to hash_table. Update dependent calls and types.
26935 (htab_t separate_decls_in_region::decl_copies): Likewise.
26937 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
26938 Change type to hash_table. Update dependent calls and types.
26940 * tree-sra.c (candidates):
26941 Change type to hash_table. Update dependent calls and types.
26943 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
26945 (int_tree_map_hash): Likewise.
26947 * tree-ssa-dom.c (htab_t avail_exprs):
26948 Change type to hash_table. Update dependent calls and types.
26950 * tree-ssa-live.c (var_map_base_init::tree_to_index):
26951 Change type to hash_table. Update dependent calls and types.
26953 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
26954 Change type to hash_table. Update dependent calls and types.
26956 * tree-ssa-phiopt.c (seen_ssa_names):
26957 Change type to hash_table. Update dependent calls and types.
26959 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
26960 Change type to hash_table. Update dependent calls and types.
26962 * tree-ssa-uncprop.c (equiv):
26963 Change type to hash_table. Update dependent calls and types.
26965 2013-04-25 Jakub Jelinek <jakub@redhat.com>
26967 PR rtl-optimization/57003
26968 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
26969 call note_stores with kill_clobbered_value callback again after
26970 killing regs_invalidated_by_call.
26972 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26974 * config/aarch64/aarch64-simd.md
26975 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
26976 (aarch64_simd_bsl<mode>): Likewise.
26977 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
26979 2013-04-25 Marek Polacek <polacek@redhat.com>
26981 PR tree-optimization/57066
26982 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
26984 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26986 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
26988 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26990 * config/aarch64/aarch64-builtins.c
26991 (aarch64_fold_builtin): New.
26992 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
26993 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
26994 * config/aarch64/aarch64-simd-builtins.def (abs): New.
26995 * config/aarch64/arm_neon.h
26996 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
26998 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
26999 Tejas Belagod <tejas.belagod@arm.com>
27001 * config/aarch64/aarch64-builtins.c
27002 (aarch64_gimple_fold_builtin): New.
27003 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
27004 * config/aarch64/aarch64-simd-builtins.def (addv): New.
27005 * config/aarch64/aarch64-simd.md (addpv4sf): New.
27006 (addvv4sf): Update.
27007 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
27009 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27011 * config/aarch64/aarch64.md
27012 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
27014 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27016 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
27017 (*ngcsi_uxtw): New pattern.
27019 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27020 Julian Brown <julian@codesourcery.com>
27022 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
27023 (TB_DREG): Add T_V4HF.
27024 (v4hf_UP): New macro.
27025 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27026 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27027 Handle initialisation of V4HF. Adjust initialisation of reinterpret
27029 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
27030 (arm_vector_mode_supported_p): Handle V4HF.
27031 (arm_mangle_map): Handle V4HFmode.
27032 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
27033 * config/arm/arm_neon_builtins.def: Add entries for
27034 vcvtv4hfv4sf, vcvtv4sfv4hf.
27035 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
27036 (neon_vcvtv4hfv4sf): Likewise.
27037 * config/arm/neon-gen.ml: Handle half-precision floating point
27039 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
27040 * config/arm/arm_neon.h: Regenerate.
27041 * config/arm/neon.ml (type elts): Add F16.
27042 (type vectype): Add T_float16x4, T_floatHF.
27043 (type vecmode): Add V4HF.
27044 (type features): Add Requires_FP_bit feature.
27045 (elt_width): Handle F16.
27046 (elt_class): Likewise.
27047 (elt_of_class_width): Likewise.
27048 (mode_of_elt): Refactor.
27049 (type_for_elt): Handle F16, fix error messages.
27050 (vectype_size): Handle T_float16x4.
27051 (vcvt_sh): New function.
27052 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
27053 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
27054 (string_of_mode): Handle V4HF.
27055 * doc/arm-neon-intrinsics.texi: Regenerate.
27057 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
27059 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
27060 format specifier in 'X' case.
27062 2013-04-25 Alan Modra <amodra@gmail.com>
27065 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
27066 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
27067 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
27068 Repeat for many other rotate/shift and mask patterns using subregs.
27069 Name lshiftrt insns.
27070 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
27071 on WORDS_BIG_ENDIAN.
27073 2013-04-25 Alan Modra <amodra@gmail.com>
27075 * config.gcc: Support little-endian powerpc-linux targets.
27076 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
27077 (LINK_OS_LINUX_SPEC): Define.
27078 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
27079 Preserve MASK_LITTLE_ENDIAN.
27080 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
27081 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
27082 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
27083 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
27084 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
27085 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
27086 Correct fp word order for little-endian. Don't shift toc entries
27087 smaller than a word for little-endian.
27088 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
27089 (bswapdi2 splits): Correct low-part subreg for little-endian.
27090 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
27091 low/high where such is correct only for be.
27092 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
27093 little-endian for -mcall-aixdesc.
27095 2013-04-25 Alan Modra <amodra@gmail.com>
27097 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27098 replace_equiv_address_nv.
27100 2013-04-25 Alan Modra <amodra@gmail.com>
27102 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
27104 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
27107 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
27108 * rtl.h (struct rtx_def): ...
27110 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
27112 PR rtl-optimizations/57046
27113 * lra-constraints (split_reg): Set up lra_risky_transformations_p
27114 for multi-reg splits.
27116 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
27118 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
27120 2013-04-24 Sterling Augustine <saugustine@google.com>
27122 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
27123 (comp_dir_string, debug_str_dwo_section): New.
27124 (DEBUG_STR_DWO_SECTION): Rename to ...
27125 (DEBUG_DWO_STR_SECTION): ... this.
27126 (DEBUG_NORM_STR_SECTION): Delete.
27127 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
27128 (DEBUG_STR_DWO_SECTION_FLAGS): New.
27129 (find_AT_string): Move most logic to ...
27130 (find_AT_string_in_table): ... here. New.
27131 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
27132 add_skeleton_AT_string. Delete logic.
27133 (output_skeleton_debug_sections): Remove call to
27134 add_top_level_skeleton_die_attrs.
27135 (add_comp_dir_attribute): Move logic to comp_dir_string.
27136 (dwarf2out_init): Initialize debug_str_dwo_section.
27137 (output_indirect_string): Call find_string_form.
27138 (output_indirect_strings): Rewrite.
27139 (prune_unused_types): Empty skeleton_debug_str_hash.
27140 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
27141 (dwarf2out_finish): Call output_indirect_strings.
27143 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
27145 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
27147 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
27149 * rtl.h (struct rtx_def): Add comment for field jump.
27150 (LRA_SUBREG_P): New macro.
27151 * recog.c (register_operand): Check LRA_SUBREG_P.
27152 * lra.c (lra): Add note at the end of RTL code. Align non-empty
27154 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
27155 (lra_final_code_change): Skip subreg change for operators.
27156 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
27157 if there are no operand changes.
27158 * lra-constraints.c (curr_insn_set): New.
27159 (match_reload): Set LRA_SUBREG_P.
27160 (emit_spill_move): Ditto.
27161 (check_and_process_move): Use curr_insn_set. Process only single
27162 set insns. Don't initialize sec_mem_p and change_p.
27163 (simplify_operand_subreg): Use LRA_SUBREG_P.
27164 (reg_in_class_p): New function.
27165 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
27166 of #ifdef. Add code to remove cycling.
27167 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
27168 non-null disp. Reload inner instead of disp when base and index
27169 are null. Try to put lo_sum into register.
27170 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
27171 (check_and_process_move): Move code for move cost check to
27172 simple_move_p. Remove equiv_substitution.
27173 (simple_move_p): New function.
27174 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
27175 curr_insn_set. Call check_and_process_move only for single set
27176 insns. Use the new function. Move call of check_and_process_move
27177 after operand equiv substitution and address process.
27179 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
27181 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
27182 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
27183 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
27185 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
27187 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
27189 2013-04-24 Marek Polacek <polacek@redhat.com>
27191 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
27192 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
27193 (select_loops_exit_conditions): Likewise.
27194 (number_of_iterations_for_all_loops): Likewise.
27195 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
27196 (scev_analysis): Likewise.
27198 2013-04-02 Catherine Moore <clm@codesourcery.com>
27199 Chao-ying Fu <fu@mips.com>
27201 * config/mips/micromips.md (jraddiusp): New pattern.
27202 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
27203 instruction if possible.
27205 2013-04-24 Alan Modra <amodra@gmail.com>
27207 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
27209 2013-04-24 Julian Brown <julian@codesourcery.com>
27210 Chung-Lin Tang <cltang@codesourcery.com>
27212 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
27213 dependency behavior in enumeration type DIE generation. Add TODO note
27214 to comments about future DW_FORM_sdata/udata re-work of related code.
27216 2013-04-23 Lawrence Crowl <crowl@google.com>
27218 * Makefile.in: Update as needed below.
27220 * hash-table.h (class hash_table):
27221 Correct many methods with parameter types compare_type to the correct
27222 value_type. (Correct code was unlikely to notice the change.)
27223 (hash_table::elements_with_deleted) New.
27224 (class hashtable::iterator): New.
27225 (hashtable::begin()): New.
27226 (hashtable::end()): New.
27227 (FOR_EACH_HASH_TABLE_ELEMENT): New.
27229 * statistics.c (statistics_hashes):
27230 Change type to hash_table. Update dependent calls and types.
27232 * tree-into-ssa.c (var_infos):
27233 Change type to hash_table. Update dependent calls and types.
27235 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
27236 Change type to hash_table. Update dependent calls and types.
27238 * tree-ssa-loop-im.c (struct mem_ref.refs):
27239 Change type to hash_table. Update dependent calls and types.
27241 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
27242 Change type to hash_table. Update dependent calls and types.
27244 * tree-ssa-sccvn.c (vn_tables_s::nary):
27245 Change type to hash_table. Update dependent calls and types.
27246 (vn_tables_s::phis): Likewise.
27247 (vn_tables_s::references): Likewise.
27249 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
27250 (vn_reference_eq): Update parameter and return types.
27252 * tree-ssa-structalias.c (pointer_equiv_class_table):
27253 Change type to hash_table. Update dependent calls and types.
27254 (location_equiv_class_table): Likewise.
27256 * tree-vect-data-refs.c: Consequential changes for making
27257 peeling a hash_table.
27259 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
27260 (destroy_loop_vec_info): Dependent hash_table update.
27262 * tree-vectorizer.h (peeling_htab):
27263 Change type to hash_table. Update dependent calls and types.
27265 2013-04-23 Shiva Chen <shiva0217@gmail.com>
27267 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
27268 to check the register content is equal or not.
27269 * lra-constraints.c (match_reload): Use lra_assign_reg_val
27270 to assign register content record.
27271 * lra-eliminations.c (update_reg_eliminate): Use
27272 lra_update_reg_val_offset to update register content offset.
27273 * lra-int.h (struct lra_reg): Add offset member.
27274 (lra_reg_val_equal_p): New static inline function.
27275 (lra_update_reg_val_offset): New static inline function.
27276 (lra_assign_reg_val): New static inline function.
27277 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
27278 to assign register content record.
27279 (initialize_lra_reg_info_element): Initial offset to zero.
27281 2013-04-23 Catherine Moore <clm@codesourcery.com>
27283 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
27284 operands. Record compression.
27286 2013-04-23 Xinliang David Li <davidxl@google.com>
27288 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
27290 2013-04-23 Richard Biener <rguenther@suse.de>
27292 PR middle-end/57036
27293 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
27294 parameter, only add abnormal goto edges from the copied body
27295 if the call could perform abnormal gotos.
27296 (copy_cfg_body): Adjust.
27298 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
27300 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
27302 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
27304 * coretypes.h (gimple_stmt_iterator): Add struct to make
27307 2013-04-23 Richard Biener <rguenther@suse.de>
27309 PR tree-optimization/57026
27310 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
27311 from SSA names occuring in abnormal PHI nodes.
27313 2013-04-22 Andi Kleen <ak@linux.intel.com>
27315 * lto/lto.c (print_lto_report_1): Fix LTO report names.
27317 2013-04-22 Andi Kleen <ak@linux.intel.com>
27319 * lto/lto.c (print_lto_report_1): Declare early.
27320 (read_cgraph_and_symbols): Call print_lto_report_1 early.
27322 2013-04-22 Andi Kleen <ak@linux.intel.com>
27324 * common.opt (-flto-report-wpa): Add.
27325 * doc/invoke.texi (-flto-report-wpa): Add.
27326 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
27329 2013-04-22 Xinliang David Li <davidxl@google.com>
27331 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
27332 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
27333 * Makefile.in: New dependency
27335 David Daney <ddaney.cavm@gmail.com>
27337 * configure.ac (gcc_cv_as_micromips_support): Use the
27338 --fatal-warnings option.
27339 * configure: Regenerate.
27341 2013-04-22 Marek Polacek <polacek@redhat.com>
27344 * tsan.c (instrument_expr): Don't instrument expression
27345 in case its size is zero.
27347 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
27351 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
27353 * config/alpha/alpha.c (TARGET_LRA_P): New define.
27355 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27357 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
27358 (gimple_stmt_iterator): New typedef.
27359 * gimple.h (gimple_stmt_iterator): Rename to...
27360 (gimple_stmt_iterator_d): ... This.
27361 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
27362 trees be valid for GIMPLE and GENERIC.
27363 (TARGET_GIMPLE_FOLD_BUILTIN): New.
27364 * gimple-fold.c (gimple_fold_call): Call target hook
27365 gimple_fold_builtin.
27366 * hooks.c (hook_bool_gsiptr_false): New.
27367 * hooks.h (hook_bool_gsiptr_false): New.
27368 * target.def (fold_stmt): New.
27369 * doc/tm.texi: Regenerate.
27371 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
27374 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
27375 a set sp if no stack realignment.
27377 2013-04-22 Nick Clifton <nickc@redhat.com>
27379 * config.gcc (tilegx-linux): Extend extra_objs rather than
27381 (tilepro-linux): Likewise.
27383 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27385 * config/aarch64/aarch64-builtins.c
27387 (CF0, CF1, CF2, CF3, CF4, CF10): New.
27388 (VAR<1-12>): Add MAP parameter.
27389 (BUILTIN_*): Likewise.
27390 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
27391 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
27392 (aarch64_ushl_n<mode>): Likewise.
27393 (aarch64_sshr_n<mode>): Likewise.
27394 (aarch64_ushr_n<mode>): Likewise.
27395 (aarch64_<maxmin><mode>): Likewise.
27396 (aarch64_sqrt<mode>): Likewise.
27397 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
27398 (vshr<q>_n_*): Likewise.
27400 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
27402 * config/aarch64/aarch64-builtins.c
27403 (aarch64_simd_builtin_type_mode): Handle SF types.
27405 (BUILTIN_GPF): Define.
27406 (aarch64_init_simd_builtins): Handle SF types.
27407 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
27408 (frecps): Likewise.
27409 (frecpx): Likewise.
27410 * config/aarch64/aarch64-simd.md
27411 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
27412 (aarch64_frecpe<mode>): New.
27413 (aarch64_frecps<mode>): Likewise.
27414 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
27415 (v8type): Add frecp<esx>.
27416 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
27417 (aarch64_frecps<mode>): Likewise.
27418 * config/aarch64/iterators.md (FRECP): New.
27419 (frecp_suffix): Likewise.
27420 * config/aarch64/arm_neon.h
27421 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
27423 2013-04-22 Christian Bruel <christian.bruel@st.com>
27426 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
27427 (REG_CLASS_NAMES): Idem.
27428 (REG_CLASS_CONTENTS): Idem.
27429 (REGCLASS_HAS_FP_REG): Idem.
27430 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
27431 (sh_conditional_register_usage): Idem.
27433 2013-04-21 Jeff Law <law@redhat.com>
27435 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
27436 (ssa_forward_propagate_and_combine): Use it.
27438 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
27440 * lra.c: Update the flow chart diagram.
27442 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
27444 PR rtl-optimization/56847
27445 * lra-constraints.c (process_alt_operands): Discourage alternative
27446 with non-matche doffsettable memory constraint fro memory with
27449 2013-04-19 Richard Biener <rguenther@suse.de>
27451 PR tree-optimization/56982
27452 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
27454 * gimplify.c (gimplify_call_expr): Notice special calls.
27455 (gimplify_modify_expr): Likewise.
27456 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
27457 abnormal control flow receivers.
27458 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
27459 in the same way as cfun->has_nonlocal_labels.
27460 (gimple_purge_dead_abnormal_call_edges): Likewise.
27461 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
27462 receivers start a basic-block.
27464 2013-04-19 Richard Biener <rguenther@suse.de>
27466 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
27468 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
27469 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
27470 (SLP_TREE_LOAD_PERMUTATION): Add.
27471 (vect_transform_slp_perm_load): Adjust prototype.
27472 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
27473 (vect_free_slp_instance): Likewise.
27474 (vect_create_new_slp_node): Likewise.
27475 (vect_supported_slp_permutation_p): Remove.
27476 (vect_slp_rearrange_stmts): Adjust.
27477 (vect_supported_load_permutation_p): Likewise. Inline
27478 vect_supported_slp_permutation_p here.
27479 (vect_analyze_slp_instance): Compute load permutations per
27480 slp node instead of per instance.
27481 (vect_get_slp_defs): Adjust.
27482 (vect_transform_slp_perm_load): Likewise.
27483 (vect_schedule_slp_instance): Remove redundant code.
27484 (vect_schedule_slp): Remove hack for PR56270, add it ...
27485 * tree-vect-stmts.c (vectorizable_load): ... here, do not
27486 CSE loads for SLP. Adjust.
27488 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
27490 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
27491 spelling in two comments.
27493 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
27496 * config/arm/arm.c (load_multiple_sequence): Require SP
27497 as base register for loads if SP is in the register list.
27499 2013-04-19 Martin Jambor <mjambor@suse.cz>
27501 PR tree-optimization/56718
27502 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
27503 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
27504 and made public. Adjusted all callers.
27505 (ipa_intraprocedural_devirtualization): New function.
27506 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
27507 (ipa_intraprocedural_devirtualization): Likewise.
27508 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
27510 2013-04-19 Richard Biener <rguenther@suse.de>
27512 PR tree-optimization/57000
27513 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
27515 2013-04-19 Terry Guo <terry.guo@arm.com>
27517 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
27519 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
27520 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
27521 (cortex_m4_fmacs): Use new reservations.
27522 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
27524 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
27526 PR rtl-optimization/56999
27527 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
27529 (lra_coalesce): Remove split_origin_bitmap and related code.
27530 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
27531 ranges if necessary.
27533 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
27535 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
27537 (ix86_expand_call): Remove clobbered_registers array and use
27538 x86_64_ms_sysv_extra_clobbered_registers instead.
27539 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
27541 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
27543 * config/i386/i386.md (*call_rex64_ms_sysv): Use
27544 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
27545 (*call_value_rex64_ms_sysv): Ditto.
27547 2013-04-18 Cary Coutant <ccoutant@google.com>
27549 * dwarf2out.c (output_pubnames): Check die_perennial_p of
27550 parent instead of die_mark.
27552 2013-04-18 Diego Novillo <dnovillo@google.com>
27554 * gimple.c (create_gimple_tmp): New.
27555 (get_expr_type): New.
27556 (build_assign): New.
27557 (build_type_cast): New.
27558 * gimple.h (enum ssa_mode): Define.
27559 (gimple_seq_set_location): New.
27560 * asan.c (build_check_stmt): Change some gimple_build_* calls
27561 to use build_assign and build_type_cast.
27563 2013-04-18 Richard Biener <rguenther@suse.de>
27565 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27566 handle negative step. Remove redundant checks.
27567 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
27568 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
27569 for negative step and grouped loads fail to vectorize.
27571 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
27573 * emit-rtl.c (reset_insn_used_flags): New function.
27574 (reset_all_used_flags): Use it.
27575 (verify_insn_sharing): New function.
27576 (verify_rtl_sharing): Fix verification for SEQUENCEs.
27578 2013-04-18 Jakub Jelinek <jakub@redhat.com>
27580 PR tree-optimization/56984
27581 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
27582 and (x >> M) >= N don't register any assertion if N << M is the
27585 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
27587 * lower-subreg.c (resolve_simple_move): If called self-recursive,
27588 do not delete_insn insns that have not yet been emitted, only
27589 unlink them with remove_insn.
27590 * df-scan.c (df_insn_delete): Revert r197492.
27592 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
27594 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
27595 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
27597 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
27599 * config/arm/arm.md (movsicc_insn): Convert define_insn into
27600 define_insn_and_split.
27601 (and_scc,ior_scc,negscc): Likewise.
27602 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
27604 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
27606 * config/arm/arm.c (use_return_insn): Return 0 for targets that
27607 can benefit from using a sequence of LDRD instructions in epilogue
27608 instead of a single LDM instruction.
27610 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
27613 * doc/extend.texi: Fix typo.
27615 2013-04-17 Richard Biener <rguenther@suse.de>
27617 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
27618 (vect_build_slp_tree): ... here.
27619 (vect_build_slp_tree_1): Compute which stmts of the SLP group
27620 match. Remove special-casing of mismatched complex loads.
27621 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
27622 re-try the match with swapped commutative operands.
27623 (vect_supported_load_permutation_p): Remove special-casing of
27624 mismatched complex loads.
27625 (vect_analyze_slp_instance): Adjust.
27627 2013-04-17 Richard Biener <rguenther@suse.de>
27629 PR rtl-optimization/56921
27630 * cfgloop.h (struct loop): Add simple_loop_desc member.
27631 (struct niter_desc): Mark with GTY(()).
27632 (simple_loop_desc): Do not use aux field but simple_loop_desc.
27633 * loop-iv.c (get_simple_loop_desc): Likewise.
27634 (free_simple_loop_desc): Likewise.
27637 2013-04-16 Richard Biener <rguenther@suse.de>
27639 PR rtl-optimization/56921
27640 * loop-init.c (pass_rtl_move_loop_invariants): Add
27641 TODO_do_not_ggc_collect to todo_flags_finish.
27642 (pass_rtl_unswitch): Same.
27643 (pass_rtl_unroll_and_peel_loops): Same.
27644 (pass_rtl_doloop): Same.
27646 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
27648 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
27649 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
27650 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
27652 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
27653 * tree-streamer.c (record_common_node): Adjust reference in comment.
27655 2013-04-17 Terry Guo <terry.guo@arm.com>
27657 * config/arm/cortex-m4.md: Add a new bypass.
27659 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27661 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
27663 (*subs_<optab><mode>_multp2): New pattern.
27664 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
27665 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
27667 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27669 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
27670 (*subs_mul_imm_<mode>): New pattern.
27672 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
27675 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
27676 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
27677 (vsx_movti_32bit): Change j->wa to O->wa.
27679 2013-04-16 Richard Biener <rguenther@suse.de>
27681 PR rtl-optimization/56921
27682 * loop-init.c (pass_rtl_move_loop_invariants): Add
27683 TODO_do_not_ggc_collect to todo_flags_finish.
27684 (pass_rtl_unswitch): Same.
27685 (pass_rtl_unroll_and_peel_loops): Same.
27686 (pass_rtl_doloop): Same.
27688 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
27690 * config/arm/arm.c (emit_multi_reg_push): New declaration
27691 for an existing function.
27692 (arm_emit_strd_push): New function.
27693 (arm_expand_prologue): Used here.
27694 (arm_emit_ldrd_pop): New function.
27695 (arm_expand_epilogue): Used here.
27696 (arm_get_frame_offsets): Update condition.
27697 (arm_emit_multi_reg_pop): Add a special case for load of a single
27698 register with writeback.
27700 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
27702 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
27705 2013-04-16 Richard Biener <rguenther@suse.de>
27707 PR tree-optimization/56756
27708 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
27709 (first_mem_ref_loc): New.
27710 (execute_sm): Place the load temporarily before a previous
27711 access instead of in the latch edge to ensure its SSA dependencies
27712 are defined at points dominating the load.
27714 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
27716 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
27717 correct fix by moving header and footer insn to the footer of
27718 the merged basic block. Clear BB_END of the merged-away block.
27720 PR middle-end/43631
27721 * emit-rtl.c (make_note_raw): New function.
27722 (link_insn_into_chain): New static inline function.
27723 (add_insn): Use it.
27724 (add_insn_before, add_insn_after): Factor insn chain linking code...
27725 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
27726 using link_insn_into_chain.
27727 (note_outside_basic_block_p): New helper function for emit_note_after
27728 and emit_note_before.
27729 (emit_note_after): Use nobb variant of add_insn_after if the note
27730 should not be contained in a basic block.
27731 (emit_note_before): Use nobb variant of add_insn_before if the note
27732 should not be contained in a basic block.
27733 (emit_note_copy): Use make_note_raw.
27734 (emit_note): Likewise.
27735 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
27736 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
27737 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
27738 the moved barrier the tail of the basic block it follows.
27739 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
27741 2013-04-15 Jakub Jelinek <jakub@redhat.com>
27743 PR tree-optimization/56962
27744 * gimple-ssa-strength-reduction.c (record_increment): Only set
27745 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
27746 either rhs1 or rhs2 is equal to c->base_expr.
27748 2013-04-15 Richard Biener <rguenther@suse.de>
27750 PR tree-optimization/56933
27751 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
27753 (GROUP_READ_WRITE_DEPENDENCE): Remove.
27754 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
27755 * tree-vect-data-refs.c (vect_analyze_group_access): Move
27756 dependence check ...
27757 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
27759 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
27760 GROUP_READ_WRITE_DEPENDENCE.
27762 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27764 * emit-rtl.c (reset_all_used_flags): New function.
27765 (verify_rtl_sharing): Call reset_all_used_flags before and after
27766 performing the checks.
27768 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27770 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
27771 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
27772 * config/arm/constraints.md (De): New constraint.
27773 * config/arm/neon.md (anddi3_neon): Delete.
27774 (neon_vand<mode>): Expand to standard anddi3 pattern.
27775 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
27776 Move earlier in the file.
27777 (neon_inv_logic_op2): Likewise.
27778 (arm_anddi_operand_neon): New predicate.
27780 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27782 * configure.ac (gcc_cv_ld_as_needed): Set
27783 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
27784 Use -z ignore, -z record on *-*-solaris2*.
27785 (HAVE_LD_AS_NEEDED): Update comment.
27786 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
27787 * configure: Regenerate.
27788 * config.in: Regenerate.
27789 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
27790 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
27791 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
27792 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
27793 equivalents. Fix markup.
27794 * doc/tm.texi: Regenerate.
27796 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
27798 * config/i386/i386.opt: New option mstack-protector-guard=.
27799 * config/i386/i386-opts.h: Add enum stack_protector_guard.
27800 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
27801 TARGET_SSP_TLS_GUARD.
27802 * config/i386/i386.c (ix86_option_override_internal): Set
27803 ix86_stack_protector_guard.
27804 * config/i386/i386.md (stack_protect_set): Enable for
27805 TARGET_SSP_TLS_GUARD only.
27806 (stack_protect_set_<mode>): Ditto.
27807 (stack_protect_test): Ditto.
27808 (stack_protect_test_<mode>): Ditto.
27809 * doc/invoke.texi (i386 Option): Document.
27811 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
27814 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
27815 (S_MODES): Set H_MODE bit.
27816 (SF_MODES): Set only S_MODE and SF_MODE bits.
27817 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
27818 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
27819 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
27820 <MODE_FLOAT>: Likewise.
27822 2013-04-15 Joey Ye <joey.ye@arm.com>
27824 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
27826 2013-04-15 Joey Ye <joey.ye@arm.com>
27828 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
27830 (thumb_far_jump_used_p): Count instruction size and set
27833 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
27835 * reorg.c (fill_simple_delay_slots): Reindent block of code.
27836 * resource.c (mark_target_live_regs): Reformat conditional block.
27838 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
27840 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
27841 notes, they are emitted only just before final.
27842 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
27844 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
27846 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
27847 * cfgrtl.c (delete_insn): Call it here instead.
27848 * lra-spills.c (lra_final_code_change): Use delete_insn.
27849 * haifa-sched.c (sched_remove_insn): Likewise.
27850 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
27851 returning to the nop pool.
27852 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
27853 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
27855 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
27857 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
27858 * doc/tm.texi: Regenerated.
27860 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
27862 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
27865 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
27867 * df-core.c (df_find_def): Compare register numbers.
27868 (df_find_use): Likewise.
27870 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
27873 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
27874 lra_in_progress for return.
27876 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
27878 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
27879 define_insn into define_insn_and_split and emit movsicc patterns.
27881 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
27883 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
27885 2013-04-12 Richard Biener <rguenther@suse.de>
27887 * tree-pass.h (TODO_do_not_ggc_collect): New.
27888 * passes.c (execute_one_ipa_transform_pass): Honor
27889 TODO_do_not_ggc_collect.
27890 (execute_one_pass): Likewise.
27893 2013-04-10 Richard Biener <rguenther@suse.de>
27895 * passes.c (init_optimization_passes): Remove reload pass.
27896 * ira.c (do_reload): Merge into ...
27898 (rest_of_handle_reload): Remove.
27899 (pass_reload): Likewise.
27900 * config/i386/i386.c (ix86_option_override): Refer to ira instead
27901 of reload for vzeroupper pass placement.
27903 2013-04-12 Jakub Jelinek <jakub@redhat.com>
27905 PR tree-optimization/56918
27906 PR tree-optimization/56920
27907 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
27908 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
27909 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
27910 use wide_mul_with_sign method.
27912 2013-04-12 Richard Biener <rguenther@suse.de>
27914 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
27915 not be considered a gimple constant.
27917 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
27919 * fold-const.c (const_binop): Handle vector shifts by a scalar.
27920 (fold_binary_loc): Call const_binop also for mixed vector-scalar
27923 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
27924 Jakub Jelinek <jakub@redhat.com>
27926 * opts.c: Include diagnostic-color.h.
27927 (common_handle_option): Handle OPT_fdiagnostics_color_.
27928 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
27929 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
27930 (diagnostic-color.o): New.
27931 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
27932 (diagnostic_color_rule): New enum.
27933 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
27934 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
27935 the location string.
27936 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
27937 either NULL, or color kind.
27938 * diagnostic-color.c: New file.
27939 * diagnostic-color.h: New file.
27940 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
27942 * doc/invoke.texi (-fdiagnostics-color): Document.
27943 * pretty-print.h (pp_show_color): Define.
27944 (struct pretty_print_info): Add show_color field.
27945 * diagnostic.c: Include diagnostic-color.h.
27946 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
27947 macros. Colorize error:, warning: etc. strings and also the location
27949 (diagnostic_show_locus): Colorize the caret line.
27950 * pretty-print.c: Include diagnostic-color.h.
27951 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
27952 inside of %< %> quotes or quoted through q format modifier.
27954 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27956 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
27958 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27960 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
27961 code in CC_NZ mode.
27962 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
27965 2013-04-11 Marek Polacek <polacek@redhat.com>
27967 PR tree-optimization/48184
27968 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
27970 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
27972 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
27973 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
27974 (skip_simple_arithmetic): Tidy up.
27975 * tree.h (skip_simple_constant_arithmetic): Declare.
27977 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27979 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
27981 2013-04-11 Richard Biener <rguenther@suse.de>
27983 * tree-vect-loop.c (get_initial_def_for_induction): Properly
27984 generate vector constants.
27986 2013-04-11 Richard Biener <rguenther@suse.de>
27988 PR tree-optimization/56878
27989 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
27990 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
27992 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27993 Prefer to align the DR with the most invariant base address.
27995 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27997 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
28000 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28002 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
28003 floating-point vector comparisons against 0.
28005 2013-04-11 Jakub Jelinek <jakub@redhat.com>
28007 PR tree-optimization/56899
28008 * fold-const.c (extract_muldiv_1): Apply distributive law
28009 only if TYPE_OVERFLOW_WRAPS (ctype).
28011 2013-04-11 Bin Cheng <bin.cheng@arm.com>
28014 * ira-costs.c (scan_one_insn): Check whether the source rtx of
28015 loading has side effect.
28017 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
28019 * config/sparc/sparc.c: Include tree-pass.h.
28020 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
28021 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
28022 head of file. Change return type. Split off gate function.
28023 (sparc_gate_work_around_errata): New function.
28024 (pass_work_around_errata): New pass definition.
28025 (insert_pass_work_around_errata) New pass insert definition to
28026 insert pass_work_around_errata just after delayed-branch scheduling.
28027 (sparc_option_override): Insert the pass.
28028 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
28030 2013-04-10 David S. Miller <davem@davemloft.net>
28032 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
28033 or -mcpu=hypersparc.
28035 * target.def (cstore_mode): New hook.
28036 * target.h: Include insn-codes.h
28037 * targhooks.c: Likewise.
28038 (default_cstore_mode): New function.
28039 * targhooks.h: Declare it.
28040 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
28041 * doc/tm.texi: Rebuild.
28042 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
28043 target hook, rather than inspecting the insn_data.
28044 * config/sparc/sparc.c (sparc_cstore_mode): New function.
28045 (TARGET_CSTORE_MODE): Redefine.
28046 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
28048 * config/sparc/predicates.md (cstore_result_operand): New special
28050 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
28051 Use it for operand 0.
28052 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
28053 (*snesi_special): Likewise.
28054 (*snesi_zero): Likewise.
28055 (*seqsi_zero): Likewise.
28056 (*sltu_insn): Likewise.
28057 (*sgeu_insn): Likewise.
28058 (*seqdi_special): Make operand 0 and comparison operation be of
28060 (*snedi_special): Likewise.
28061 (*snedi_special_vis3): Likewise.
28062 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
28063 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
28064 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
28065 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
28066 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
28067 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
28068 (*sltu_extend_sp64): Likewise.
28069 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
28070 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
28071 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
28072 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
28073 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
28075 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
28077 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
28078 (aarch64_start_file): Use the new function.
28080 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28081 Jason Merrill <jason@redhat.com>
28083 * common.opt: Add -gdwarf.
28084 * opts.c (common_handle_option): Handle it.
28085 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
28087 2013-04-10 Richard Biener <rguenther@suse.de>
28089 * passes.c (execute_todo): Do not call ggc_collect conditional here.
28090 (execute_one_ipa_transform_pass): But unconditionally here.
28091 (execute_one_pass): And here.
28092 (init_optimization_passes): Remove reload pass.
28093 * tree-pass.h (TODO_ggc_collect): Remove.
28094 (pass_reload): Likewise.
28095 * ira.c (do_reload): Merge into ...
28097 (rest_of_handle_reload): Remove.
28098 (pass_reload): Likewise.
28099 * config/i386/i386.c (ix86_option_override): Refer to ira instead
28100 of reload for vzeroupper pass placement.
28101 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
28102 and todo_flags_finish of all passes.
28104 2013-04-10 Richard Biener <rguenther@suse.de>
28106 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
28107 first_const_oprnd field, rename first_def_type to first_op_type.
28108 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
28109 (vect_get_and_check_slp_defs): Always use the type of the
28110 operand. Allow mixed vect_external_def, vect_constant_def types.
28111 (vect_get_constant_vectors): Handle mixed vect_external_def,
28112 vect_constant_def types.
28114 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
28116 PR tree-optimization/55524
28117 * tree-ssa-math-opts.c
28118 (convert_mult_to_fma): Don't use an fms construct
28119 when we don't have an fms operation, but fnma, and it looks
28120 likely that we'll be able to use the latter.
28122 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
28124 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
28126 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
28127 inline fail caused by overwritable functions.
28129 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
28131 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
28132 unnecessary bits in the constant power of two case.
28134 2013-04-10 Richard Biener <rguenther@suse.de>
28136 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
28137 broken code swapping operands.
28138 (vect_build_slp_tree): Do not compute load permutations here.
28139 (vect_analyze_slp_instance): Compute load permutations here,
28140 after building the SLP tree.
28142 2013-04-09 Christian Bruel <christian.bruel@st.com>
28144 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
28145 of next/prev_real_insn.
28147 2013-04-09 Jan Hubicka <jh@suse.cz>
28149 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
28150 Drop aliased parameter.
28151 (function_and_variable_visibility): Do not handle alias pairs.
28152 * cgraph.c (varpool_externally_visible_p): Update prototype.
28153 * varpool.c (varpool_add_new_variable): Update.
28155 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28157 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
28159 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
28161 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
28163 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
28165 2013-04-09 Marek Polacek <polacek@redhat.com>
28167 PR tree-optimization/48762
28168 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
28170 2013-04-09 Richard Biener <rguenther@suse.de>
28172 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
28174 (vect_build_slp_tree): Likewise.
28175 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
28176 calculating the cost of a SLP instance.
28177 (vect_analyze_slp_instance): Use it from here, after building
28180 2013-04-09 Jakub Jelinek <jakub@redhat.com>
28182 PR middle-end/56883
28183 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
28184 expand_omp_for_static_chunk): Use simple_p = true in
28185 force_gimple_operand_gsi calls when assigning to addressable decls.
28187 2013-04-09 Jeff Law <law@redhat.com>
28189 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
28190 when the boolean was created by converting a wider object which
28191 had a boolean range.
28193 2013-04-09 Richard Biener <rguenther@suse.de>
28195 * tree-vectorizer.h (slp_void_p): Remove.
28196 (slp_tree): Typedef before _slp_tree declaration.
28197 (struct _slp_tree): Use a vector of slp_tree as children.
28198 (vect_get_place_in_interleaving_chain): Remove.
28199 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
28201 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
28203 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
28204 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
28205 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
28206 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
28207 Use slp_node instead of slp_void_p and adjust.
28209 2013-04-09 Richard Biener <rguenther@suse.de>
28211 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
28212 work that is not necessary.
28214 2013-04-09 Jakub Jelinek <jakub@redhat.com>
28216 PR tree-optimization/56854
28217 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
28218 forward into clobber stmts if it would change MEM_REF lhs into
28221 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
28223 * tree.c (type_hash_lookup, type_hash_add): Make static.
28224 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
28226 2013-04-09 Richard Biener <rguenther@suse.de>
28228 * tree.h (unsave_expr_now): Remove.
28229 * tree-inline.c (mark_local_for_remap_r): Remove.
28230 (unsave_expr_1): Likewise.
28231 (unsave_r): Likewise.
28232 (unsave_expr_now): Likewise.
28233 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
28234 (propagate_tree_value): Likewise.
28236 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
28238 * doc/rtl.texi (sequence): Rewrite documentation to match the
28239 current use of SEQUENCE rtl objects.
28240 * rtl.def (SEQUENCE): Likewise.
28242 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
28243 Update documentation.
28244 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
28245 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
28247 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
28249 2013-04-08 Teresa Johnson <tejohnson@google.com>
28251 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
28252 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
28254 (estimate_edge_size_and_time): Add comment to suggest using rounding
28256 (estimate_node_size_and_time): Ditto.
28257 (remap_edge_change_prob): Use helper rounding divide methods.
28258 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
28259 (gimple_mod_pow2_value_transform): Ditto.
28260 (gimple_mod_subtract_transform): Ditto.
28261 (gimple_ic_transform): Ditto.
28262 (gimple_stringops_transform): Ditto.
28263 * stmt.c (conditional_probability): Ditto.
28264 (emit_case_dispatch_table): Ditto.
28265 * lto-cgraph.c (merge_profile_summaries): Ditto.
28266 * tree-optimize.c (execute_fixup_cfg): Ditto.
28267 * cfgcleanup.c (try_forward_edges): Ditto.
28268 * cfgloopmanip.c (scale_loop_profile): Ditto.
28270 (duplicate_loop_to_header_edge): Ditto.
28271 (lv_adjust_loop_entry_edge): Ditto.
28272 * tree-vect-loop.c (vect_transform_loop): Ditto.
28273 * profile.c (compute_branch_probabilities): Ditto.
28274 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
28275 * lto-streamer-in.c (input_cfg): Ditto.
28276 * gimple-streamer-in.c (input_bb): Ditto.
28277 * ipa-cp.c (update_profiling_info): Ditto.
28278 (update_specialized_profile): Ditto.
28279 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
28280 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
28282 * sched-rgn.c (compute_dom_prob_ps): Ditto.
28283 (compute_trg_info): Ditto.
28284 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
28285 (purge_dead_edges): Ditto.
28286 * loop-unswitch.c (unswitch_loop): Ditto.
28287 * cgraphclones.c (cgraph_clone_edge): Ditto.
28288 (cgraph_clone_node): Ditto.
28289 * tree-inline.c (copy_bb): Ditto.
28290 (copy_edges_for_bb): Ditto.
28291 (initialize_cfun): Ditto.
28292 (copy_cfg_body): Ditto.
28293 (expand_call_inline): Ditto.
28295 2013-04-08 Kai Tietz <ktietz@redhat.com>
28297 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
28298 TARGET_CYGWIN64 by TARGET_64BIT.
28300 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
28302 * config/epiphany/epiphany.md (GPR_1): New constant.
28303 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
28304 * config/epiphany/epiphany.c (gen_compare_reg):
28305 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
28306 is already in place.
28307 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
28308 Don't require being called during rtl expansion; If y operlaps r0,
28310 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
28311 (epiphany_expand_epilogue): Likewise.
28313 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
28314 Don't use CC_FPmode for ORDERED / UNORDERED.
28315 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
28317 * config/epiphany/constraints.md (CnL): New constraint.
28318 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
28319 * config/epiphany/predicates.md (add_operand): Allow 1024.
28321 * config/epiphany/epiphany.md (logical_op): New code iterator.
28322 (op_mnc): New code attribute.
28323 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
28324 (mov_f+1, mov_f+2): New peephole2 patterns.
28326 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
28327 (cstoresi4): Also allow re-use of zero result when doing a NE
28328 comparison to a non-zero operand.
28329 Use (clobber (scratch)) for first insn if the gpr output is not needed.
28331 * config/epiphany/epiphany.md (<insn_opname>v2si3):
28332 Use gen_addsi3_i / gen_subsi3_i.
28334 2013-04-08 Jakub Jelinek <jakub@redhat.com>
28338 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
28339 contain anything but clobbers, at most one __builtin_stack_restore,
28340 optionally debug stmts and final resx, and if it has at least one
28341 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
28342 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
28343 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
28344 which isn't defaut definition, remove them.
28345 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
28346 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
28347 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
28348 with MEM_REF LHS with SSA_NAME address.
28350 2013-04-08 Jeff Law <law@redhat.com>
28352 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
28354 2013-04-08 Richard Biener <rguenther@suse.de>
28356 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
28358 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
28359 determined vector type.
28360 (vect_analyze_data_refs): Likewise.
28361 (vect_get_new_vect_var): Adjust.
28362 (vect_create_destination_var): Preserve SSA name versions.
28363 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
28364 not dump anything here.
28366 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
28368 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
28369 Add member lr_slot_known.
28370 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
28372 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
28373 Remove code that sets lr_slot_offset according to what a previous
28374 version of epiphany_emit_save_restore used to do.
28375 (epiphany_emit_save_restore): When doing an lr save or restore,
28376 set/verify lr_slot_known and lr_slot_offset.
28378 2013-04-08 Xinyu Qi <xyqi@marvell.com>
28381 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
28384 2013-04-08 Richard Biener <rguenther@suse.de>
28386 * alias.c (find_base_term): Fix thinko in previous change.
28388 2013-04-08 Jakub Jelinek <jakub@redhat.com>
28390 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
28391 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
28392 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
28393 if possible to compute val.
28394 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
28395 For QImode integers don't require anything about precision. Use
28396 const_with_all_bytes_same to find out if the constant doesn't have
28397 repeated bytes in it.
28399 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28401 * config/s390/s390.c (s390_expand_insv): Only accept insertions
28404 2013-04-08 Marek Polacek <polacek@redhat.com>
28406 PR rtl-optimization/48182
28407 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
28410 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28413 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
28414 nuses, make sure we have a label.
28416 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28419 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
28420 (rs6000_emit_swdiv_low_precision): Remove.
28421 (rs6000_emit_swdiv): Rewrite to handle between one and four
28422 iterations of Newton-Raphson generally; modify required number of
28423 iterations for some cases.
28424 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
28426 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
28428 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
28429 set-but-unused variable.
28431 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
28432 basic blocks of released function bodies garbage-collectable.
28434 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
28435 (struct rtl_opt_pass): Add TODO_df_finish.
28437 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
28439 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28441 * config/arm/constraints.md (q): New constraint.
28442 * config/arm/ldrdstrd.md: New file.
28443 * config/arm/arm.md (ldrdstrd.md) New include.
28444 (arm_movdi): Use "q" instead of "r" constraint
28445 for double-word memory access.
28446 (movdf_soft_insn): Likewise.
28447 * config/arm/vfp.md (movdi_vfp): Likewise.
28448 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
28449 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
28450 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
28451 (mem_ok_for_ldrd_strd): Likewise.
28452 (output_move_double): Update assertion.
28454 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28456 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
28458 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28460 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
28461 define_insn_and_split.
28462 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
28464 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28466 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
28467 define_insn_and_split.
28468 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
28469 (shiftsi3_compare): New pattern.
28470 (rrx): New pattern.
28471 * config/arm/unspecs.md (UNSPEC_RRX): New.
28473 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28475 * config/arm/arm.md (negdi_extendsidi): New pattern.
28476 (negdi_zero_extendsidi): Likewise.
28478 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28480 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
28481 define_insn_and_split.
28482 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
28483 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
28485 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28487 * config/arm/arm.md (arm_subdi3): Convert define_insn into
28488 define_insn_and_split.
28489 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
28490 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
28492 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28494 * config/arm/arm.md (subsi3_carryin): New pattern.
28495 (subsi3_carryin_const): Likewise.
28496 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
28497 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
28499 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28501 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
28503 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
28505 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
28506 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
28508 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28510 * config/arm/arm.c (arm_expand_builtin): Change fcode
28511 type to unsigned int.
28513 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28515 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
28517 2013-04-04 Ian Lance Taylor <iant@google.com>
28519 * doc/standards.texi (Standards): The Go frontend supports the Go 1
28522 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
28524 PR middle-end/56729
28525 * df-scan.c (df_insn_delete): Disable failing assert.
28527 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28529 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
28530 New function prototype.
28531 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
28532 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
28533 (arm_builtin_vectorized_function): New function.
28535 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28537 * config/arm/arm_neon_builtins.def: New file.
28538 * config/arm/arm.c (neon_builtin_data): Move contents to
28539 arm_neon_builtins.def.
28540 (enum arm_builtins): Include neon builtin definitions.
28541 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
28542 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
28544 2013-04-04 Marek Polacek <polacek@redhat.com>
28546 PR tree-optimization/48186
28547 * predict.c (maybe_hot_frequency_p): Return false if
28548 HOT_BB_FREQUENCY_FRACTION is 0.
28549 (cgraph_maybe_hot_edge_p): Likewise.
28551 2013-04-04 Richard Biener <rguenther@suse.de>
28553 PR tree-optimization/56826
28554 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
28557 2013-04-04 Richard Biener <rguenther@suse.de>
28559 PR tree-optimization/56213
28560 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
28561 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
28563 2013-04-04 Richard Biener <rguenther@suse.de>
28565 PR tree-optimization/56837
28566 * tree-loop-distribution.c (classify_partition): For non-zero
28567 values require that the value has the same precision as its
28568 mode to be useful as memset value.
28570 2013-04-03 Nick Clifton <nickc@redhat.com>
28572 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
28573 (fmssf4): Use fmsf.s on E3V5 architectures.
28574 (fnmasf4): Use fnmaf.s on E3V5 architectures.
28575 (fnmssf4): Use fnmsf.s on E3V5 architectures.
28577 2013-04-03 Jeff Law <law@redhat.com>
28579 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
28580 (lra-eliminations.o): Likewise.
28582 2013-04-03 Teresa Johnson <tejohnson@google.com>
28584 * gcov-io.c (compute_working_sets): Moved most of body of old
28585 compute_working_sets here from profile.c.
28586 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
28587 (gcov_working_set_t): Moved typedef here from basic-block.h
28588 (compute_working_set): Declare.
28589 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
28590 (get_working_sets): Renamed from compute_working_set,
28591 replace most of body with call to new compute_working_sets.
28592 (get_exec_counts): Replace call to compute_working_sets
28593 to get_working_sets.
28594 * profile.h (get_working_sets): Renamed from compute_working_set.
28595 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
28596 to get_working_sets.
28597 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
28598 * gcov-dump.c (dump_working_sets): New function.
28600 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
28602 * hwint.c (sext_hwi, zext_hwi): New functions.
28603 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
28604 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
28605 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
28606 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
28607 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
28608 (sext_hwi, zext_hwi): New functions.
28610 2013-04-03 Jeff Law <law@redhat.com>
28612 PR tree-optimization/56799
28613 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
28614 back test for widening conversion erroneously dropped in prior change.
28616 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28619 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
28620 instead of next_real_insn.
28622 2013-04-03 Marek Polacek <polacek@redhat.com>
28625 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
28627 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28630 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
28632 (thumb1_output_casesi): Likewise.
28633 (thumb2_output_casesi): Likewise.
28635 2013-04-03 Richard Biener <rguenther@suse.de>
28637 PR tree-optimization/56817
28638 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
28640 (tree_unroll_loops_completely_1): ... new function to manually
28641 walk the loop tree, properly defering outer loops of unrolled
28642 loops to later iterations.
28644 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28646 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
28647 (vectorizable_load): Likewise.
28648 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
28649 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
28651 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28653 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
28656 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28658 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
28660 2013-04-03 Bin Cheng <bin.cheng@arm.com>
28662 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
28664 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28666 PR tree-optimization/56790
28667 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
28670 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
28672 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
28674 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
28675 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
28678 2013-04-03 Jakub Jelinek <jakub@redhat.com>
28681 * tree.h (force_folding_builtin_constant_p): New decl.
28682 * builtins.c (force_folding_builtin_constant_p): New variable.
28683 (fold_builtin_constant_p): Fold immediately also if
28684 force_folding_builtin_constant_p.
28686 2013-04-03 Richard Biener <rguenther@suse.de>
28688 PR tree-optimization/56812
28689 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
28690 DRs of the same interleaving chain are independent.
28692 2013-04-02 Jason Merrill <jason@redhat.com>
28694 * gdbinit.in (pbb): Use debug fn.
28696 2013-04-02 Lawrence Crowl <crowl@google.com>
28698 * sese.h (struct ivtype_map_elt_s): Remove unused.
28699 (extern debug_ivtype_map): Remove unused.
28700 (extern eq_ivtype_map_elts): Remove unused.
28701 * sese.c (debug_ivtype_map): Removed unused.
28702 (debug_ivtype_map_1): Removed unused.
28703 (debug_ivtype_elt): Remove unused.
28704 (eq_ivtype_map_elts): Remove unused.
28706 2013-04-02 Kai Tietz <ktietz@redhat.com>
28709 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
28710 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
28711 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
28713 (legitimize_pe_coff_symbol): Likewise.
28714 (is_imported_p): New helper-function.
28715 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
28716 for Windows x64 targets.
28717 (ix86_expand_prologue): Optimize for pe-coff targets.
28718 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
28719 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
28720 medium/large code-model.
28721 (legitimize_pic_address): Likewise.
28722 (legitimize_tls_address): Likewise.
28723 (ix86_expand_call): Likewise.
28724 (x86_output_mi_thunk): Likewise.
28725 (get_dllimport_decl): Add new beimport argument.
28726 (construct_plt_address): Don't assert for x64 pe-coff targets.
28727 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
28729 (SYMBOL_FLAG_STUBVAR): New macro.
28730 (SYMBOL_REF_STUBVAR_P): Likewise.
28731 * config/i386/winnt.c (stub_list): New structure.
28732 (stub_head): New local variable.
28733 (i386_pe_record_stub): New function.
28734 (i386_pe_file_end): Emit refptr-stubs.
28736 2013-04-02 Jakub Jelinek <jakub@redhat.com>
28738 PR rtl-optimization/56745
28739 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
28740 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
28743 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
28744 and both of them are MEM_REFs, just compare first argument for
28745 equality and attempt to deal even with differing offsets.
28748 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
28749 of gimple_clobber_p to be MEM_REF.
28750 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
28751 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
28752 after gimplification.
28753 * asan.c (get_mem_ref_of_assignment): Don't instrument
28754 gimple_clobber_p stmts.
28755 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
28756 gimple_clobber_p stmt if they have MEM_REF lhs and
28757 are dead because of another gimple_clobber_p stmt.
28758 * tree-ssa-live.c (clear_unused_block_pointer): Treat
28759 gimple_clobber_p stmts like debug stmts.
28760 (remove_unused_locals): Remove clobbers with MEM_REF lhs
28761 that refer to unused VAR_DECLs or uninitialized values.
28762 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
28763 gimple_clobber_p stmts if they refer to removed parameters.
28764 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
28767 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
28769 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
28770 using SWI48 mode attribute.
28772 2013-04-02 Wei Mi <wmi@google.com>
28774 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
28775 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
28776 *<rotate_insn><mode>3_mask in i386.md.
28778 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
28780 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
28782 2013-04-02 Richard Biener <rguenther@suse.de>
28784 PR tree-optimization/56778
28785 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28786 Runtime alias tests are not supported for gather loads.
28787 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
28788 stmts referenced from SSA operands before updating SSA form.
28790 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
28791 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28793 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
28794 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
28795 * config/arm/cortex-a53.md: New file.
28796 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
28797 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
28798 * config/arm/arm.c (arm_issue_rate): Likewise.
28799 * config/arm/arm-tune.md: Regenerate
28800 * config/arm/arm-tables.opt: Regenerate.
28801 * config/arm/arm-cores.def: Add cortex-a53.
28803 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
28805 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
28808 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
28810 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
28811 scalar load/store operations using B/H registers.
28812 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
28814 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
28816 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
28818 * config/aarch64/aarch64.c
28819 (aarch64_simd_scalar_immediate_valid_for_move): New.
28820 * config/aarch64/aarch64-protos.h
28821 (aarch64_simd_scalar_immediate_valid_for_move): New.
28822 * config/aarch64/constraints.md (Dh, Dq): New.
28823 * config/aarch64/iterators.md (hq): New.
28825 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
28827 * reorg.c (get_branch_condition): Deal with conditional returns.
28828 (fill_simple_delay_slots): Remove dead code dealing with jumps.
28830 2013-04-01 Wei Mi <wmi@google.com>
28832 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
28833 Truncate operand 2 using %b asm operand modifier.
28834 (*<shift_insn><mode>3_mask): Ditto.
28835 (*<rotate_insn><mode>3_mask): Ditto.
28837 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
28839 PR middle-end/56798
28840 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
28842 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
28844 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
28846 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
28848 2013-03-30 Lawrence Crowl <crowl@google.com>
28850 * dse.c (clear_alias_sets): Remove never set.
28851 (disqualified_clear_alias_sets): Remove never set.
28852 (clear_alias_mode_pool): Remove never set.
28853 (dse_step0): Remove condition that is never true.
28854 (canon_address): Remove condition that is never true.
28855 (dse_step7): Remove condition that is never true.
28856 (rest_of_handle_dse): Remove condition that is never true.
28857 (rest_of_handle_dse::did_global): Remove never read from above.
28858 (dse_step2_spill): Remove never called from above.
28859 (dse_step5_spill): Remove never called from above.
28861 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
28863 * doc/md.texi (Standard Names) <casesi>: Update documentation for
28864 JUMP_TABLE_DATA changes.
28865 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
28866 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
28867 (Insns) <jump_table_data>: New entry.
28868 * doc/tm.texi: Regenerate.
28870 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
28872 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
28873 for table jump at the end of a basic block using tablejump_p.
28874 * targhooks.c (default_invalid_within_doloop): Likewise.
28875 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
28876 target hook implementation that is identical to the default hook.
28877 (rs6000_invalid_within_doloop): Remove.
28879 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
28880 unused variable from tablejump_p call.
28882 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
28883 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
28884 (INSN_DELETED_P): Likewise.
28885 (emit_jump_table_data): New prototype.
28886 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
28887 after 4th as unused.
28888 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
28889 * sched-vis.c (print_insn): Likewise.
28890 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
28891 insn for compatibility with back ends that use next_active_insn to
28892 identify jump table data.
28893 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
28894 (remove_insn): Likewise.
28895 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
28897 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
28898 (emit_jump_table_data): New function.
28900 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
28901 basic block, a JUMP_TABLE_DATA never is.
28902 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
28903 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
28904 off from code handling real insns.
28905 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
28906 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
28907 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
28908 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
28909 is not a NONDEBUG_INSN_P.
28910 * ira-costs.c (scan_one_insn): Likewise.
28911 * jump.c (mark_all_labels): Likewise.
28912 (mark_jump_label_1): Likewise.
28913 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
28914 * lra.c (get_insn_freq): Expect all insns reaching here to be in
28916 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
28917 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
28918 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
28919 JUMP_TABLE_DATA_P insns.
28920 (calculate_elim_costs_all_insns): Likewise.
28921 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
28922 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
28923 (delete_output_reload): Code style fixups.
28924 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
28925 insn flags on this non-insn.
28926 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
28927 as scheduling barriers, for pre-change compatibility.
28928 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
28929 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
28931 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
28932 redundant JUMP_TABLE_DATA_P test.
28933 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
28934 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
28935 (frv_for_each_packet): Likewise.
28936 * config/i386/i386.c (min_insn_size): Likewise.
28937 (ix86_avoid_jump_mispredicts): Likewise.
28938 * config/m32r/m32r.c (m32r_is_insn): Likewise.
28939 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
28940 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
28941 (mips16_insn_length): Robustify.
28942 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
28943 (mips16_split_long_branches): Likewise.
28944 * config/pa/pa.c (pa_combine_instructions): Likewise.
28945 * config/rs6000/rs6000.c (get_next_active_insn): Treat
28946 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
28947 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
28948 as contributing to pool range lengths.
28949 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
28950 Remove redundant JUMP_TABLE_DATA_P test.
28951 (sh_loop_align): Likewise.
28952 (split_branches): Likewise.
28953 (sh_insn_length_adjustment): Likewise.
28954 * config/spu/spu.c (get_branch_target): Likewise.
28956 2013-03-29 Jan Hubicka <jh@suse.cz>
28958 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
28959 gcov streaming; stream hot bb threshold to ltrans.
28960 * predict.c (get_hot_bb_threshold): Break out from ....
28961 (maybe_hot_count_p): ... here.
28962 (set_hot_bb_threshold): New function.
28963 * lto-section-in.c (lto_section_name): Add profile.
28964 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
28965 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
28966 and data-streamer.h
28967 (histogram_entry): New structure.
28968 (histogram, histogram_pool): New global vars.
28969 (histogram_hash): New structure.
28970 (histogram_hash::hash): New method.
28971 (histogram_hash::equal): Likewise.
28972 (account_time_size): New function.
28973 (cmp_counts): New function.
28974 (dump_histogram): New function.
28975 (ipa_profile_generate_summary): New function.
28976 (ipa_profile_write_summary): New function.
28977 (ipa_profile_read_summary): New function.
28978 (ipa_profile): Decide on threshold.
28979 (pass_ipa_profile): Add ipa_profile_write_summary and
28980 ipa_profile_read_summary.
28981 * Makefile.in (ipa.o): Update dependencies.
28982 * lto-streamer.h (LTO_section_ipa_profile): New section.
28984 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
28986 * tree.h (VAR_P): New.
28988 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
28991 * doc/invoke.texi ([-fwhole-program]): Fix typo.
28993 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
28995 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
28996 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
28997 (control_flow_insn_p): Likewise.
28998 * cfgrtl.c (duplicate_insn_chain): Likewise.
28999 * final.c (get_attr_length_1): Likewise.
29000 (shorten_branches): Likewise.
29001 (final_scan_insn): Likewise.
29002 * function.c (instantiate_virtual_regs): Likewise.
29003 * gcse.c (insert_insn_end_basic_block): Likewise.
29004 * ira-costs.c (scan_one_insn): Likewise.
29005 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
29006 * lra.c (check_rtl): Likewise.
29007 * reload1.c (elimination_costs_in_insn): Likewise.
29008 * reorg.c (follow_jumps): Likewise.
29010 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
29011 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
29012 (thumb_far_jump_used_p): Likewise.
29013 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
29014 (workaround_speculation): Likewise.
29015 (add_sched_insns_for_speculation): Likewise.
29016 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
29017 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
29018 (frv_for_each_packet): Likewise.
29019 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
29020 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
29021 (final_emit_insn_group_barriers): Likewise.
29022 * config/m32r/m32r.c (m32r_is_insn): Likewise.
29023 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
29024 (mips16_insn_length): Likewise.
29025 * config/pa/pa.c (pa_reorg): Likewise.
29026 (pa_combine_instructions): Likewise.
29027 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
29028 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
29029 (sh_reorg): Likewise.
29030 (split_branches): Likewise.
29031 * config/spu/spu.c (get_branch_target): Likewise.
29033 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
29036 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
29038 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
29039 Fix declaration name.
29041 2013-03-28 Lawrence Crowl <crowl@google.com>
29043 * graphds.h (struct graph.indicies): Remove unused.
29044 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
29045 (SCOP_ORIGINAL_PDDRS): Remove unused.
29046 * sese.h (extern insert_loop_close_phis): Removed unused.
29047 (extern insert_guard_phis): Removed unused.
29048 (extern ivtype_map_elt_info): Removed unused.
29049 (new_ivtype_map_elt): Removed unused.
29050 * sese.c (ivtype_map_elt_info): Removed unused.
29052 2013-03-28 Lawrence Crowl <crowl@google.com>
29054 * Makefile.in: Add several missing include dependences.
29056 (test-dump.o): New. This object is not added to any executable,
29057 but is present for ad-hoc testing.
29059 (debug (const bitmap_head_def &)): New.
29060 (debug (const bitmap_head_def *)): New.
29062 (extern debug (const bitmap_head_def &)): New.
29063 (extern debug (const bitmap_head_def *)): New.
29065 (debug (edge_def &)): New.
29066 (debug (edge_def *)): New.
29068 (debug (basic_block_def &)): New.
29069 (debug (basic_block_def *)): New.
29071 (dump_node (const_tree, int, FILE *)): Correct source file.
29073 (debug (die_struct &)): New.
29074 (debug (die_struct *)): New.
29076 (extern debug (die_struct &)): New.
29077 (extern debug (die_struct *)): New.
29078 * gimple-pretty-print.c
29079 (debug (gimple_statement_d &)): New.
29080 (debug (gimple_statement_d *)): New.
29081 * gimple-pretty-print.h
29082 (extern debug (gimple_statement_d &)): New.
29083 (extern debug (gimple_statement_d *)): New.
29085 (debug (ira_allocno_copy &)): New.
29086 (debug (ira_allocno_copy *)): New.
29087 (debug (ira_allocno &)): New.
29088 (debug (ira_allocno *)): New.
29090 (extern debug (ira_allocno_copy &)): New.
29091 (extern debug (ira_allocno_copy *)): New.
29092 (extern debug (ira_allocno &)): New.
29093 (extern debug (ira_allocno *)): New.
29095 (debug (live_range &)): New.
29096 (debug (live_range *)): New.
29098 (debug (lra_live_range &)): New.
29099 (debug (lra_live_range *)): New.
29101 (debug (lra_live_range &)): New.
29102 (debug (lra_live_range *)): New.
29104 (debug (omega_pb_d &)): New.
29105 (debug (omega_pb_d *)): New.
29107 (extern debug (omega_pb_d &)): New.
29108 (extern debug (omega_pb_d *)): New.
29110 (debug (const rtx_def &)): New.
29111 (debug (const rtx_def *)): New.
29113 (debug_tree (tree): Move within file.
29114 (debug_raw (const tree_node &)): New.
29115 (debug_raw (const tree_node *)): New.
29116 (dump_tree_via_hooks (const tree_node *, int)): New.
29117 (debug (const tree_node &)): New.
29118 (debug (const tree_node *)): New.
29119 (debug_verbose (const tree_node &)): New.
29120 (debug_verbose (const tree_node *)): New.
29121 (debug_head (const tree_node &)): New.
29122 (debug_head (const tree_node *)): New.
29123 (debug_body (const tree_node &)): New.
29124 (debug_body (const tree_node *)): New.
29125 (debug_vec_tree (tree): Move and reimplement in terms of dump.
29126 (debug (vec<tree, va_gc> &)): New.
29127 (debug (vec<tree, va_gc> *)): New.
29129 (extern debug (const rtx_def &)): New.
29130 (extern debug (const rtx_def *)): New.
29132 (debug_raw (simple_bitmap_def &)): New.
29133 (debug_raw (simple_bitmap_def *)): New.
29134 (debug (simple_bitmap_def &)): New.
29135 (debug (simple_bitmap_def *)): New.
29137 (extern debug (simple_bitmap_def &)): New.
29138 (extern debug (simple_bitmap_def *)): New.
29139 (extern debug_raw (simple_bitmap_def &)): New.
29140 (extern debug_raw (simple_bitmap_def *)): New.
29142 (debug (vinsn_def &)): New.
29143 (debug (vinsn_def *)): New.
29144 (debug_verbose (vinsn_def &)): New.
29145 (debug_verbose (vinsn_def *)): New.
29146 (debug (expr_def &)): New.
29147 (debug (expr_def *)): New.
29148 (debug_verbose (expr_def &)): New.
29149 (debug_verbose (expr_def *)): New.
29150 (debug (vec<rtx> &)): New.
29151 (debug (vec<rtx> *)): New.
29153 (extern debug (vinsn_def &)): New.
29154 (extern debug (vinsn_def *)): New.
29155 (extern debug_verbose (vinsn_def &)): New.
29156 (extern debug_verbose (vinsn_def *)): New.
29157 (extern debug (expr_def &)): New.
29158 (extern debug (expr_def *)): New.
29159 (extern debug_verbose (expr_def &)): New.
29160 (extern debug_verbose (expr_def *)): New.
29161 (extern debug (vec<rtx> &)): New.
29162 (extern debug (vec<rtx> *)): New.
29164 (_list_iter_cond_expr): Make inline instead of static.
29166 (debug (sreal &)): New.
29167 (debug (sreal *)): New.
29169 (extern debug (sreal &)): New.
29170 (extern debug (sreal *)): New.
29172 (extern debug_raw (const tree_node &)): New.
29173 (extern debug_raw (const tree_node *)): New.
29174 (extern debug (const tree_node &)): New.
29175 (extern debug (const tree_node *)): New.
29176 (extern debug_verbose (const tree_node &)): New.
29177 (extern debug_verbose (const tree_node *)): New.
29178 (extern debug_head (const tree_node &)): New.
29179 (extern debug_head (const tree_node *)): New.
29180 (extern debug_body (const tree_node &)): New.
29181 (extern debug_body (const tree_node *)): New.
29182 (extern debug (vec<tree, va_gc> &)): New.
29183 (extern debug (vec<tree, va_gc> *)): New.
29185 (debug (struct loop &)): New.
29186 (debug (struct loop *)): New.
29187 (debug_verbose (struct loop &)): New.
29188 (debug_verbose (struct loop *)): New.
29189 * tree-dump.c: Add header dependence.
29191 (extern debug (struct loop &)): New.
29192 (extern debug (struct loop *)): New.
29193 (extern debug_verbose (struct loop &)): New.
29194 (extern debug_verbose (struct loop *)): New.
29196 (debug (data_reference &)): New.
29197 (debug (data_reference *)): New.
29198 (debug (vec<data_reference_p> &)): New.
29199 (debug (vec<data_reference_p> *)): New.
29200 (debug (vec<ddr_p> &)): New.
29201 (debug (vec<ddr_p> *)): New.
29203 (extern debug (data_reference &)): New.
29204 (extern debug (data_reference *)): New.
29205 (extern debug (vec<data_reference_p> &)): New.
29206 (extern debug (vec<data_reference_p> *)): New.
29207 (extern debug (vec<ddr_p> &)): New.
29208 (extern debug (vec<ddr_p> *)): New.
29210 (debug (pt_solution &)): New.
29211 (debug (pt_solution *)): New.
29213 (extern debug (pt_solution &)): New.
29214 (extern debug (pt_solution *)): New.
29216 (debug (_var_map &)): New.
29217 (debug (_var_map *)): New.
29218 (debug (tree_live_info_d &)): New.
29219 (debug (tree_live_info_d *)): New.
29221 (extern debug (_var_map &)): New.
29222 (extern debug (_var_map *)): New.
29223 (extern debug (tree_live_info_d &)): New.
29224 (extern debug (tree_live_info_d *)): New.
29226 2013-03-28 Jan Hubicka <jh@suse.cz>
29228 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
29230 2013-03-28 Ian Bolton <ian.bolton@arm.com>
29232 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
29233 record only when desired or required.
29235 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
29237 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
29238 *vec_extractv2di_1_rex64. Use x64 isa attribute.
29240 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29242 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
29243 (*andsi3_compare0_uxtw): New pattern.
29244 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
29245 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
29247 2013-03-28 Jan Hubicka <jh@suse.cz>
29249 * data-streamer-in.c (streamer_read_gcov_count): New function.
29250 * gimple-streamer-out.c: Include value-prof.h.
29251 (output_gimple_stmt): Output histogram.
29252 (output_bb): Use streamer_write_gcov_count.
29253 * value-prof.c: Include data-streamer.h
29254 (dump_histogram_value): Add HIST_TYPE_MAX.
29255 (stream_out_histogram_value): New function.
29256 (stream_in_histogram_value): New function.
29257 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
29258 (stream_out_histogram_value, stream_in_histogram_value): Declare.
29259 * data-streamer-out.c (streamer_write_gcov_count): New function.
29260 (streamer_write_gcov_count_stream): New function.
29261 * lto-cgraph.c (lto_output_edge): Update counter streaming.
29262 (lto_output_node): Likewise.
29263 (input_node, input_edge): Likewise.
29264 * lto-streamer-out.c (output_cfg): Update streaming.
29265 * lto-streamer-in.c (input_cfg): Likewise.
29266 * data-streamer.h (streamer_write_gcov_count,
29267 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
29268 * gimple-streamer-in.c: Include value-prof.h
29269 (input_gimple_stmt): Input histograms.
29270 (input_bb): Update profile streaming.
29272 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
29274 * genmodes.c (emit_max_int): New function.
29275 (emit_insn_modes_h): Added call to emit_max_function.
29276 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
29278 * machmode.def: Fixed comment.
29280 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
29282 * combine.c (try_combine): Removed useless assert.
29283 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
29285 2013-03-28 Marek Polacek <polacek@redhat.com>
29286 Richard Biener <rguenther@suse.de>
29288 PR tree-optimization/56695
29289 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
29290 build signed result of a vector comparison.
29291 * tree-cfg.c (verify_gimple_comparison): Check that a result
29292 of a vector comparison has signed type.
29294 2013-03-28 Richard Biener <rguenther@suse.de>
29296 PR tree-optimization/37021
29297 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
29298 do not restrict gaps between groups.
29299 * tree-vect-stmts.c (vectorizable_load): Properly account for
29300 a gap between groups.
29302 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
29304 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
29305 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
29308 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
29310 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
29311 * doc/extend.texi (Named Address Spaces): Ditto.
29312 (Variable Attributes): Ditto.
29314 2013-03-27 Kai Tietz <ktietz@redhat.com>
29316 * config.build: Add support for cygwin x64 target.
29317 * config.gcc: Likewise.
29318 * config.host: Likewise.
29319 * configure.ac: Likewise
29320 * configure: Regenerated.
29322 2013-03-27 Kai Tietz <ktietz@redhat.com>
29324 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
29325 * config/i386/t-cygwin-w64: New file.
29326 * config/i386/cygwin-w64.h: New file.
29327 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
29328 and add support for x64-cygwin target.
29329 (CPP_SPEC): Likewise.
29330 (CXX_WRAP_SPEC_LIST): Undefine before define.
29331 (LIBGCJ_SONAME): Use 15 as version.
29333 2013-03-27 Richard Biener <rguenther@suse.de>
29335 PR tree-optimization/56716
29336 * tree-ssa-structalias.c (perform_var_substitution): Adjust
29337 dumping for ref nodes.
29339 2013-03-27 Martin Jambor <mjambor@suse.cz>
29341 PR tree-optimization/55334
29342 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
29343 restricted pointers to arrays.
29345 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
29347 * Makefile.in (.SUFFIXES): Add .cc.
29348 (.c.o): Apply same recipe for implicit rule .cc.o.
29350 2013-03-27 Richard Biener <rguenther@suse.de>
29352 PR tree-optimization/37021
29353 * tree-vect-data-refs.c (vect_check_strided_load): Allow
29354 REALPART/IMAGPART_EXPRs around the supported refs.
29355 * tree-ssa-structalias.c (find_func_aliases): Assume that
29356 floating-point values are not used to transfer pointers.
29358 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
29360 * target.def (TARGET_HAS_IFUNC_P): New target hook.
29361 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
29362 * doc/tm.texi: Regenerate.
29363 * targhooks.h (default_has_ifunc_p): New.
29364 * targhooks.c (default_has_ifunc_p): Ditto.
29365 * config/linux-protos.h: New file.
29366 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
29367 hook for linux which disables support of indirect functions in android.
29368 * config/linux-android.c: New file.
29369 * config/t-linux-android.c: Ditto.
29370 * config.gcc: Added new object file linux-android.o.
29371 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
29372 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
29373 * varasm.c (do_assemble_alias): Likewise.
29374 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
29375 doesn't support indirect functions.
29376 * configure: Regenerate.
29378 2013-03-27 Bin Cheng <bin.cheng@arm.com>
29381 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
29382 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
29385 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29387 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
29389 2013-03-27 Terry Guo <terry.guo@arm.com>
29391 * config/arm/arm-cores.def: Added core cortex-r7.
29392 * config/arm/arm-tune.md: Regenerated.
29393 * config/arm/arm-tables.opt: Regenerated.
29394 * doc/invoke.texi: Added entry for core cortex-r7.
29396 2013-03-27 Walter Lee <walt@tilera.com>
29398 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
29399 double-decrement of next_scratch_regno.
29401 2013-03-27 Walter Lee <walt@tilera.com>
29403 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
29405 (insn_v1mulus): Ditto.
29406 (insn_v2muls): Ditto.
29408 2013-03-27 Walter Lee <walt@tilera.com>
29410 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
29411 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
29413 2013-03-27 Walter Lee <walt@tilera.com>
29415 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
29416 (*sibcall_value): Ditto.
29418 2013-03-27 Walter Lee <walt@tilera.com>
29420 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
29421 (insn_mnz_v8qi): ... this ...
29422 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
29424 (insn_v<n>mnz): Replaced by ...
29425 (insn_v1mnz): ... this ...
29426 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
29428 (insn_mz_<mode>): Replaced by ...
29429 (insn_mz_v8qi): ... this ...
29430 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
29432 (insn_v<n>mz): Replaced by ...
29433 (insn_v1mz): ... this ...
29434 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
29437 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
29439 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
29441 2013-03-26 Roland McGrath <mcgrathr@google.com>
29443 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
29444 than fprintf with a non-constant, non-format string.
29446 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
29448 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
29449 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
29450 operand 0 predicate.
29451 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
29452 attribute. Use general_x64nomem_operand as operand 1 predicate.
29453 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
29454 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
29455 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
29456 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
29457 (mov<mode>_insv_1): Remove expander. Merge insn with
29458 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
29459 Use general_x64nomem_operand as operand 1 predicate.
29460 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
29461 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
29462 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
29463 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
29464 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
29465 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
29466 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
29467 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
29468 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
29469 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
29470 (general_x64nomem_operand): Ditto.
29472 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
29474 * config/rtems.opt: Add -pthread option.
29476 2013-03-26 Richard Biener <rguenther@suse.de>
29478 * alias.c (find_base_term): Avoid redundant and not used recursion.
29479 (base_alias_check): Get the initial base term from the caller.
29480 (true_dependence_1): Compute and pass base terms to base_alias_check.
29481 (write_dependence_p): Likewise.
29482 (may_alias_p): Likewise.
29484 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
29486 * config/aarch64/aarch64.c (aarch64_classify_address): Support
29487 PC-relative load in SI modes and above only.
29489 2013-03-26 Xinyu Qi <xyqi@marvell.com>
29491 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
29492 * config/arm/iwmmxt.md (WCGR0): Update.
29493 (WCGR1, WCGR2, WCGR3): Likewise.
29495 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
29497 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
29498 Use x64 and nox64 isa attributes.
29500 2013-03-26 Richard Biener <rguenther@suse.de>
29502 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
29503 alignment computations and rely on get_object_alignment_1
29504 for the !TYPE_P case.
29505 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
29507 2013-03-26 Walter Lee <walt@tilera.com>
29509 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
29510 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
29512 2013-03-25 Jeff Law <law@redhat.com>
29514 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
29515 check for INTEGRAL_TYPE_P that was missing due to checking in
29516 wrong version of prior patch.
29518 2013-03-25 Walter Lee <walt@tilera.com>
29520 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
29521 TILEGX_INSN_SHUFFLEBYTES1.
29522 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
29524 (tilegx_builtins): Ditto.
29525 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
29527 2013-03-25 Walter Lee <walt@tilera.com>
29529 * config/tilegx/tilegx.md (floatsisf2): New pattern.
29530 (floatunssisf2): New pattern.
29531 (floatsidf2): New pattern.
29532 (floatunssidf2): New pattern.
29534 2013-03-25 Walter Lee <walt@tilera.com>
29536 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
29537 tests for constraint J, K, N, P.
29539 2013-03-25 Walter Lee <walt@tilera.com>
29541 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
29542 Use indirect/pcrel encoding.
29543 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
29546 2013-03-25 Steve Ellcey <sellcey@mips.com>
29548 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
29549 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
29550 * config/mips/mips.c (mips_option_override): Set IMADD default.
29551 * config/mips/mips.h (PTF_AVOID_IMADD): New.
29552 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
29553 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
29554 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
29555 * doc/invoke.texi (-mimadd/-mno-imadd): New.
29557 2013-03-25 Jeff Law <law@redhat.com>
29559 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
29560 slightly to avoid creating and folding useless trees. Simplify
29561 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
29563 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
29565 * config/i386/i386.md (*zero_extendsidi2): Merge with
29566 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
29567 * config/i386/predicates.md (x86_64_zext_operand): Rename from
29568 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
29569 targets. Clarify comment.
29571 2013-03-25 Martin Jambor <mjambor@suse.cz>
29573 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
29574 pass-through jump functions differently.
29575 (ipa_read_jump_function): Likewise. Also use setter functions to set
29578 2013-03-25 Martin Jambor <mjambor@suse.cz>
29580 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
29581 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
29583 (ipa_get_indirect_edge_target): New function.
29584 (devirtualization_time_bonus): New parameter known_aggs, pass it to
29585 ipa_get_indirect_edge_target. Update all callers.
29586 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
29587 ipa_get_indirect_edge_target_1 instead of calling
29588 ipa_get_indirect_edge_target.
29589 (create_specialized_node): Pass aggvlas to
29590 ipcp_discover_new_direct_edges.
29592 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29594 * config/arm/arm.md (f_sels, f_seld): New types.
29595 (*cmov<mode>): New pattern.
29596 * config/arm/predicates.md (arm_vsel_comparison_operator): New
29599 2013-03-25 Kai Tietz <ktietz@redhat.com>
29601 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
29602 POSIX-printf for mingw-hosted builds.
29604 2013-03-25 Richard Biener <rguenther@suse.de>
29606 PR middle-end/56694
29607 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
29608 must-not-throw stmt location.
29610 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29612 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
29613 Emit load-acquire versions when acq is true.
29614 (arm_emit_store_exclusive): Add rel parameter.
29615 Emit store-release versions when rel is true.
29616 (arm_split_compare_and_swap): Use acquire-release instructions
29618 of barriers when appropriate.
29619 (arm_split_atomic_op): Likewise.
29620 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
29621 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
29622 (VUNSPEC_SLX): Likewise.
29623 (VUNSPEC_LDA): Likewise.
29624 (VUNSPEC_STL): Likewise.
29625 * config/arm/sync.md (atomic_load<mode>): New pattern.
29626 (atomic_store<mode>): Likewise.
29627 (arm_load_acquire_exclusive<mode>): Likewise.
29628 (arm_load_acquire_exclusivesi): Likewise.
29629 (arm_load_acquire_exclusivedi): Likewise.
29630 (arm_store_release_exclusive<mode>): Likewise.
29632 2013-03-25 Catherine Moore <clm@codesourcery.com>
29634 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
29635 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
29636 * config/mip/predicates.md (lwsp_swsp_operand,
29637 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
29638 sb16_operand, db4_operand, db7_operand, ib3_operand,
29639 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
29640 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
29641 andi16_operand): New predicates.
29642 * config/mips/mips.md (compression): New attribute.
29643 (enabled): New attribute.
29644 (length): Consider compression in computing length.
29645 (shift_compression): New code attribute.
29646 (*add<mode>3): New operands. Record compression.
29647 (sub<mode>3): Likewise.
29648 (one_cmpl<mode>2): Likewise.
29649 (*and<mode>3): Likewise.
29650 (*ior<mode>3): Likewise.
29651 (unnamed pattern for xor): Likewise.
29652 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
29653 (*<optab><mode>3): Likewise.
29654 (*mov<mode>_internal: Likewise.
29655 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
29656 (mips_unsigned_immediate_p): New.
29657 (umips_lwsp_swsp_address_p): New.
29658 (m16_based_address_p): New.
29659 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
29660 (mips_unsigned_immediate_p): New prototype.
29661 (lwsp_swsp_address_p): New prototype.
29662 (m16_based_address_p): New prototype.
29663 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
29664 (mips_signed_immediate_p): New function.
29665 (m16_based_address_p): New function.
29666 (lwsp_swsp_address_p): New function.
29667 (mips_print_operand_punctuation): Recognize short delay slot insns
29668 for microMIPS.add<mode>3"
29670 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29673 * config/arm/iterators.md (v_cmp_result): New mode attribute.
29674 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
29676 2013-03-25 Richard Biener <rguenther@suse.de>
29678 PR tree-optimization/56689
29679 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
29682 2013-03-25 Richard Biener <rguenther@suse.de>
29684 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
29686 (memory_references): Likewise.
29687 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
29688 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
29689 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
29690 (gather_mem_refs_in_loops): Fold into ...
29691 (analyze_memory_references): ... this. Move initialization
29692 to tree_ssa_lim_initialize.
29693 (fill_always_executed_in): Rename to ...
29694 (fill_always_executed_in_1): ... this.
29695 (fill_always_executed_in): Move contains_call computation to
29696 this new function from ...
29697 (tree_ssa_lim_initialize): ... here.
29698 (tree_ssa_lim): Call fill_always_executed_in.
29700 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
29702 * postreload.c (reload_combine): Fix code detecting returns.
29704 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
29706 * function.c (emit_use_return_register_into_block): On cc0 targets,
29707 do not emit the sequence between cc0 setter and user.
29709 2013-03-25 Kai Tietz <ktietz@redhat.com>
29711 * config/i386/predicates.md (local_symbolic_operand): Interpret
29712 dll-imported symbols as none-local.
29714 2013-03-25 Richard Biener <rguenther@suse.de>
29716 * tree-ssa-loop-im.c (struct depend): Remove.
29717 (struct lim_aux_data): Make depends a vec of gimples.
29718 (free_lim_aux_data): Adjust.
29719 (add_dependency): Likewise.
29720 (set_level): Likewise.
29722 2013-03-25 Richard Biener <rguenther@suse.de>
29724 PR middle-end/56434
29725 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
29726 the pointer returned by calls with ECF_MALLOC set.
29728 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
29730 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
29732 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
29734 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
29735 using MMXMODE mode iterator.
29736 (*move<mode>_internal): Merge with *movv2sf_internal and
29737 *movv2sf_internal_rex64 using MMXMODE mode iterator.
29739 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
29741 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
29742 (record_last_mem_set_info): Likewise.
29744 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
29745 of XNEWVEC followed by memset.
29746 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
29748 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
29750 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
29751 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
29752 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
29753 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
29754 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
29755 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
29756 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
29757 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
29758 BARRIER_P instead of GET_CODE.
29760 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
29762 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
29763 inaccuracy in the probing code.
29765 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
29766 (ctrapdi4): Likewise.
29768 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
29770 * calls.c (expand_call): Add missing guard to code handling return
29771 of non-BLKmode structures in MSB.
29772 * function.c (expand_function_end): Likewise.
29774 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
29776 * combine.c (try_combine): Adjust comment. Do not add the set of
29777 insn #0 if the destination indirectly is set or dies in insn #2.
29778 Tidy up code to distribute a new note.
29780 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
29782 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
29783 also for alternatives 16 and 17.
29785 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
29787 * config/i386/sse.md (*mov<mode>_internal): Merge with
29788 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
29789 Emit insn template depending on type attribute. Use
29790 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
29791 movd instead of movq mnemonic for interunit moves. Rewrite mode
29792 attribute calculation. Remove unit attribute calculation.
29793 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
29794 Set prefix_data16 attribute for DImode ssemov types.
29795 Use Ym instead of y for SSE-MMX conversion alternatives.
29796 Reorder operand constraints.
29798 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
29800 * df.h (df_insn_delete): Adjust prototype.
29801 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
29802 and let it decide whether mark the basic block dirty.
29803 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
29804 * df-scan.c (df_insn_info_delete): New helper function, split
29805 off from df_insn_delete.
29806 (df_scan_free_bb_info): Use it.
29807 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
29809 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
29810 that the insn is actually an insn and it has a non-NULL basic block.
29811 Do not mark basic block dirty if only deleting a DEBUG_INSN.
29813 2013-03-22 Richard Biener <rguenther@suse.de>
29815 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
29817 (mem_ref_alloc): Do not allocate them.
29818 (refs_independent_p): Do not query or maintain a cache.
29820 2013-03-22 Richard Biener <rguenther@suse.de>
29822 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
29823 (gather_mem_refs_in_loops): Do not compute it.
29824 (analyze_memory_references): Do not allocate it.
29825 (tree_ssa_lim_finalize): Do not free it.
29826 (for_all_locs_in_loop): Do not query all_refs_in_loop.
29828 2013-03-22 Richard Biener <rguenther@suse.de>
29830 * is-a.h (as_a): Use gcc_checking_assert.
29832 2013-03-22 Ian Bolton <ian.bolton@arm.com>
29834 * config/aarch64/aarch64.c (aarch64_print_operand): New
29835 format specifier for printing a constant in hex.
29836 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
29837 format specifier for printing second operand.
29839 2013-03-22 Richard Biener <rguenther@suse.de>
29841 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
29843 (gather_mem_refs_in_loops): Perform store accumulation here.
29844 (create_vop_ref_mapping_loop): Remove.
29845 (create_vop_ref_mapping): Likewise.
29846 (analyze_memory_references): Initialize refs_stored_in_loop.
29847 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
29848 (record_indep_loop): Remove.
29849 (record_dep_loop): New function.
29850 (ref_indep_loop_p_1): Adjust to only walk over references
29851 in the loop, not its subloops.
29852 (ref_indep_loop_p): Rename to ...
29853 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
29854 maintaining a more fine-grained cache.
29855 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
29856 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
29858 2013-03-22 Richard Biener <rguenther@suse.de>
29860 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
29861 (struct mem_ref): Make accesses_in_loop a vec of a vec of
29862 aggregate mem_ref_loc.
29863 (free_mem_ref_locs): Inline into ...
29864 (memref_free): ... this and adjust.
29865 (mem_ref_alloc): Adjust.
29866 (mem_ref_locs_alloc): Remove.
29867 (record_mem_ref_loc): Adjust.
29868 (get_all_locs_in_loop): Rewrite into ...
29869 (for_all_locs_in_loop): ... this iterator.
29870 (rewrite_mem_ref_loc): New functor.
29871 (rewrite_mem_refs): Use for_all_locs_in_loop.
29872 (sm_set_flag_if_changed): New functor.
29873 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
29874 (ref_always_accessed): New functor.
29875 (ref_always_accessed_p): Use for_all_locs_in_loop.
29877 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
29879 * tree-pass.h (PROP_gimple_lvec): New.
29880 * passes.c (dump_properties): Handle PROP_gimple_lvec.
29881 (init_optimization_passes): Move pass_lower_vector.
29882 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
29884 (pass_lower_vector): Provide PROP_gimple_lvec.
29885 (pass_lower_vector_ssa): Likewise.
29886 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
29888 2013-03-21 Mark Wielaard <mjw@redhat.com>
29890 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
29892 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
29894 * config/i386/i386.md (*movdi_internal): Disparage slightly
29895 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
29896 conversion alternatives.
29898 2013-03-21 Jakub Jelinek <jakub@redhat.com>
29900 PR middle-end/48087
29901 * diagnostic.def (DK_WERROR): New kind.
29902 * diagnostic.h (werrorcount): Define.
29903 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
29904 promoted to DK_ERROR, increment DK_WERROR counter instead of
29906 * toplev.c (toplev_main): Call print_ignored_options even if
29907 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
29908 even if just werrorcount is non-zero.
29911 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
29913 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
29914 (string_cst_pool_decl): New function.
29915 (optimize_one_addr_into_implicit_ptr): New function.
29916 (resolve_addr_in_expr): Optimize DWARF location expression
29917 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
29918 which doesn't live in memory, but has DW_AT_location or
29919 DW_AT_const_value, or refers to a string literal, into
29920 DW_OP_GNU_implicit_pointer.
29921 (optimize_location_into_implicit_ptr): New function.
29922 (resolve_addr): If removing DW_AT_location of a variable because
29923 it was DW_OP_addr of address of the variable, but the variable doesn't
29924 live in memory, try to emit const value attribute for the initializer.
29926 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
29928 * tree.h (VECTOR_TYPE_P): New macro.
29929 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
29930 TYPE_MODE): Use it.
29931 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
29932 VEC_COND_EXPR cannot be lvalues.
29933 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
29935 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
29937 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
29938 Restrict the transformation to equal modes.
29940 2013-03-21 Richard Biener <rguenther@suse.de>
29942 PR tree-optimization/39326
29943 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
29944 (MEM_ANALYZABLE): Adjust.
29945 (record_mem_ref_loc): Move bitmap ops ...
29946 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
29947 unanalyzable refs, do not record locations for it.
29948 (analyze_memory_references): Allocate ref zero as shared
29950 (refs_independent_p): Do not test for unanalyzed mems here.
29951 (ref_indep_loop_p_1): Special-case disambiguation against
29952 the unanalyzed ref.
29953 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
29955 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
29957 * config/arm/arm-protos.h (tune_params): Add
29958 prefer_neon_for_64bits field.
29959 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
29960 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
29961 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
29962 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
29963 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
29964 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
29965 (arm_option_override): Handle -mneon-for-64bits new option.
29966 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
29967 (prefer_neon_for_64bits): Declare new variable.
29968 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
29969 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
29970 (arch_enabled): Handle new arch types. Remove support for onlya8
29972 (one_cmpldi2): Use new arch names.
29973 (zero_extend<mode>di2, extend<mode>di2): Ditto.
29974 * config/arm/arm.opt (mneon-for-64bits): Add option.
29975 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
29976 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
29977 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
29979 * doc/invoke.texi (-mneon-for-64bits): Document.
29981 2013-03-21 Richard Biener <rguenther@suse.de>
29983 PR tree-optimization/39326
29984 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
29985 (sort_bbs_in_loop_postorder_cmp): New function.
29986 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
29988 2013-03-21 Richard Biener <rguenther@suse.de>
29990 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
29991 (vect_insert_into_interleaving_chain): Likewise.
29992 (vect_drs_dependent_in_basic_block): Inline ...
29993 (vect_slp_analyze_data_ref_dependence): ... here. New function,
29995 (vect_analyze_data_ref_dependence): ... here. Simplify.
29996 (vect_check_interleaving): Simplify.
29997 (vect_analyze_data_ref_dependences): Likewise. Split out ...
29998 (vect_slp_analyze_data_ref_dependences): ... this new function.
29999 (dr_group_sort_cmp): New function.
30000 (vect_analyze_data_ref_accesses): Compute data-reference groups
30001 here instead of in vect_analyze_data_ref_dependence. Use
30002 a more efficient algorithm.
30003 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
30004 vect_slp_analyze_data_ref_dependences. Call
30005 vect_analyze_data_ref_accesses earlier.
30006 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
30007 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
30008 (vect_slp_analyze_data_ref_dependences): New prototype.
30010 2013-03-21 Richard Biener <rguenther@suse.de>
30012 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
30013 ref is stored in the loop.
30014 (find_refs_for_sm): Walk only over all stores.
30015 (store_motion_loop): Allocate from lim_bitmap_obstack.
30016 (store_motion): Likewise.
30018 2013-03-21 Richard Biener <rguenther@suse.de>
30020 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
30021 Update virtual SSA form.
30023 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30025 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
30026 * configure: Regenerate.
30027 * config.in: Regenerate.
30028 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
30029 if !HAVE_LD_EH_FRAME_CIEV3.
30031 2013-03-21 Richard Biener <rguenther@suse.de>
30033 * tree-cfg.c (verify_expr_no_block): New function.
30034 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
30035 nor DECL_VALUE_EXPR have locations with associated blocks.
30036 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
30037 (clear_unused_block_pointer): Remove code dealing with
30038 blocks in DECL_DEBUG_EXPR locations.
30040 2013-03-21 Richard Biener <rguenther@suse.de>
30042 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
30043 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
30044 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
30045 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
30046 instead of DECL_DEBUG_EXPR_IS_FROM.
30047 * gimplify.c (gimplify_modify_expr): Likewise.
30048 * tree-cfg.c (verify_expr_location_1): Likewise.
30049 * tree-complex.c (create_one_component_var): Likewise.
30050 * tree-sra.c (create_access_replacement): Likewise.
30051 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
30052 (clear_unused_block_pointer): Likewise.
30053 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
30054 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
30055 * var-tracking.c (var_debug_decl): Likewise.
30056 (track_expr_p): Likewise.
30057 * tree-inline.c (add_local_variables): Likewise. Set
30058 DECL_HAS_DEBUG_EXPR_P after copying it.
30059 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
30060 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
30062 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
30065 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
30066 * configure: Regenerate.
30067 * config.in: Regenerate.
30068 * config/i386/i386.md (*movdf_internal): Use
30069 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
30070 movd instead of movq mnemonic for interunit moves.
30071 (*movdi_internal): Ditto.
30073 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30075 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
30076 (abd<mode>_3): New pattern.
30077 (aba<mode>_3): New pattern.
30078 (fabd<mode>_3): New pattern.
30080 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30082 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
30083 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
30084 occurrence of REGISTER_PREFIX as its empty string.
30086 2013-03-20 Jeff Law <law@redhat.com>
30088 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
30089 addititional equivalences for equality comparisons between an SSA_NAME
30090 and a constant where the SSA_NAME was set from a widening conversion.
30092 2013-03-20 Walter Lee <walt@tilera.com>
30094 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
30096 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
30098 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
30099 depending on type attribute.
30100 (*movti_internal): Ditto.
30101 (*movtf_internal): Ditto.
30102 (*movxf_internal): Ditto.
30103 (*movdf_internal): Ditto.
30104 (*movsf_internal): Ditto.
30106 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
30108 * config/i386/i386.md (*movti_internal): Set prefix attribute to
30109 maybe_vex for sselog1 and ssemov types.
30110 (*movdi_internal): Reorder operand constraints.
30111 (*movsi_internal): Ditto. Set prefix attribute to
30112 maybe_vex for sselog1 and ssemov types.
30113 (*movtf_internal): Set prefix attribute to maybe_vex
30114 for sselog1 and ssemov types.
30115 (*movdf_internal): Ditto. Set prefix_data16 attribute for
30116 DImode ssemov types. Reorder operand constraints.
30117 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
30118 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
30119 attribute for SImode ssemov types. Reorder operand constraints.
30121 2013-03-20 Martin Jambor <mjambor@suse.cz>
30123 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
30124 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
30126 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
30128 * config/rs6000/predicates.md (indexed_address, update_address_mem
30129 update_indexed_address_mem): New predicates.
30130 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
30131 attribute for load/store instructions.
30132 * config/rs6000/dfp.md (movsd_store): Likewise.
30133 (movsd_load): Likewise.
30134 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
30135 (unnamed HI->DI extend define_insn): Likewise.
30136 (unnamed SI->DI extend define_insn): Likewise.
30137 (unnamed QI->SI extend define_insn): Likewise.
30138 (unnamed QI->HI extend define_insn): Likewise.
30139 (unnamed HI->SI extend define_insn): Likewise.
30140 (unnamed HI->SI extend define_insn): Likewise.
30141 (extendsfdf2_fpr): Likewise.
30142 (movsi_internal1): Likewise.
30143 (movsi_internal1_single): Likewise.
30144 (movhi_internal): Likewise.
30145 (movqi_internal): Likewise.
30146 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
30147 attribute for load/store instructions.
30148 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
30150 (mov<mode>_softfloat): Likewise.
30151 (mov<mode>_hardfloat32): Likewise.
30152 (mov<mode>_hardfloat64): Likewise.
30153 (mov<mode>_softfloat64): Likewise.
30154 (movdi_internal32): Likewise.
30155 (movdi_internal64): Likewise.
30156 (probe_stack_<mode>): Likewise.
30158 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
30160 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
30161 floating point, and decimal floating point to reload iterator.
30163 * config/rs6000/constraints.md (wl constraint): New constraints to
30164 return FLOAT_REGS if certain options are used to reduce the number
30165 of separate patterns that exist in the file.
30166 (wx constraint): Likewise.
30167 (wz constraint): Likewise.
30169 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30170 -mdebug=reg, print wg, wl, wx, and wz constraints.
30171 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30172 Initialize the reload functions for 64-bit binary/decimal floating
30174 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30175 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30176 create the buffer on the stack to overcome not having a 32-bit
30178 (rs6000_emit_move): Likewise.
30179 (rs6000_secondary_memory_needed_rtx): Likewise.
30180 (rs6000_alloc_sdmode_stack_slot): Likewise.
30181 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30182 via xxlxor, just like DFmode 0.0.
30184 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
30185 define as 1 if we are running on a power7 or newer.
30186 (enum r6000_reg_class_enum): Add new constraints.
30188 * config/rs6000/dfp.md (movsd): Delete, combine with binary
30189 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
30190 with other moves by using conditional constraits (wg). Use LFIWZX
30191 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
30192 (movsd splitter): Likewise.
30193 (movsd_hardfloat): Likewise.
30194 (movsd_softfloat): Likewise.
30196 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
30197 binary and decimal floating point moves.
30198 (fmove_ok): New attributes to combine binary and decimal floating
30199 point moves, and to combine power6x (mfpgpr) moves along normal
30201 (real_value_to_target): Likewise.
30202 (f32_lr): Likewise.
30203 (f32_lm): Likewise.
30204 (f32_li): Likewise.
30205 (f32_sr): Likewise.
30206 (f32_sm): Likewise.
30207 (f32_si): Likewise.
30208 (movsf): Combine binary and decimal floating point moves. Combine
30209 power6x (mfpgpr) moves with other moves by using conditional
30210 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
30211 (mov<mode> for SFmode/SDmode); Likewise.
30212 (SFmode/SDmode splitters): Likewise.
30213 (movsf_hardfloat): Likewise.
30214 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
30215 (movsf_softfloat): Likewise.
30216 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
30218 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
30219 wx and wz constraints.
30221 * config/rs6000/constraints.md (wg constraint): New constraint to
30222 return FLOAT_REGS if -mmfpgpr (power6x) was used.
30224 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
30227 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30228 -mdebug=reg, print wg, wl, wx, and wz constraints.
30229 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
30230 Initialize the reload functions for 64-bit binary/decimal floating
30232 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
30233 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
30234 create the buffer on the stack to overcome not having a 32-bit
30236 (rs6000_emit_move): Likewise.
30237 (rs6000_secondary_memory_needed_rtx): Likewise.
30238 (rs6000_alloc_sdmode_stack_slot): Likewise.
30239 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
30240 via xxlxor, just like DFmode 0.0.
30242 * config/rs6000/dfp.md (movdd): Delete, combine with binary
30243 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
30244 with other moves by using conditional constraits (wg). Use LFIWZX
30245 and STFIWX for loading SDmode on power7.
30246 (movdd splitters): Likewise.
30247 (movdd_hardfloat32): Likewise.
30248 (movdd_softfloat32): Likewise.
30249 (movdd_hardfloat64_mfpgpr): Likewise.
30250 (movdd_hardfloat64): Likewise.
30251 (movdd_softfloat64): Likewise.
30253 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
30254 64-bit binary and decimal floating point moves.
30255 (FMOVE64X): Likewise.
30256 (movdf): Combine 64-bit binary and decimal floating point moves.
30257 Combine power6x (mfpgpr) moves with other moves by using
30258 conditional constraits (wg).
30259 (mov<mode> for DFmode/DDmode): Likewise.
30260 (DFmode/DDmode splitters): Likewise.
30261 (movdf_hardfloat32): Likewise.
30262 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
30263 (movdf_softfloat32): Likewise.
30264 (movdf_hardfloat64_mfpgpr): Likewise.
30265 (movdf_hardfloat64): Likewise.
30266 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
30267 (movdf_softfloat64): Likewise.
30268 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
30269 (reload_<mode>_load): Move to later in the file so they aren't in
30270 the middle of the floating point move insns.
30271 (reload_<mode>_store): Likewise.
30273 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
30276 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
30277 constraint if -mdebug=reg.
30278 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
30279 Enable using dd reload support if needed.
30281 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
30282 binary and decimal floating point moves in rs6000.md.
30283 (movtd_internal): Likewise.
30285 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
30286 decimal floating point moves.
30288 (movtf_internal): Likewise.
30289 (mov<mode>_internal, TDmode/TFmode): Likewise.
30290 (movtf_softfloat): Likewise.
30291 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
30293 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
30294 movdi_internal64, using wg constraint for move direct operations.
30295 (movdi_internal64): Likewise.
30297 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
30298 MODES_TIEABLE_P for selected modes. Print the numerical value of
30299 the various virtual registers. Use GPR/FPR first/last values,
30300 instead of hard coding the register numbers. Print which modes
30301 have reload functions registered.
30302 (rs6000_option_override_internal): If -mdebug=reg, trace the options
30303 settings before/after setting cpu, target and subtarget settings.
30304 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
30305 and for secondary reload failures in rs6000_secondary_reload_inner.
30306 (rs6000_secondary_reload_fail): Likewise.
30307 (rs6000_secondary_reload_inner): Likewise.
30309 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
30310 macros for first/last GPR and FPR registers.
30311 (LAST_GPR_REGNO): Likewise.
30312 (FIRST_FPR_REGNO): Likewise.
30313 (LAST_FPR_REGNO): Likewise.
30315 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
30316 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
30317 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
30318 (vcond<mode><mode>): Likewise.
30319 (vcondu<mode><mode>): Likewise.
30320 (vector_gtu<mode>): Likewise.
30321 (vector_gte<mode>): Likewise.
30322 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
30323 to prevent the compiler from converting DImode operations to TImode.
30324 (ior<mode>3): Likewise.
30325 (and<mode>3): Likewise.
30326 (one_cmpl<mode>2): Likewise.
30327 (nor<mode>3): Likewise.
30328 (andc<mode>3): Likewise.
30330 * config/rs6000/constraints.md (wt constraint): New constraint
30331 that returns VSX_REGS if TImode is allowed in VSX registers.
30333 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
30334 constant under VSX.
30336 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
30337 similar to TImode, but it is restricted to being in the GPRs.
30339 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
30340 TImode to occupy a single VSX register.
30342 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
30343 -mvsx-timode for power7/power8.
30344 (power7 cpu): Likewise.
30345 (power8 cpu): Likewise.
30347 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
30348 sure that TFmode/TDmode take up two registers if they are ever
30349 allowed in the upper VSX registers.
30350 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
30352 (rs6000_init_hard_regno_mode_ok): Likewise.
30353 (rs6000_debug_reg_global): Add debugging for PTImode and wt
30354 constraint. Print if LRA is turned on.
30355 (rs6000_option_override_internal): Give an error if -mvsx-timode
30356 and VSX is not enabled.
30357 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
30358 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
30359 to reg+offset addressing. Use PTImode when checking offset
30360 addresses for validity.
30361 (reg_offset_addressing_ok_p): Likewise.
30362 (rs6000_legitimate_offset_address_p): Likewise.
30363 (rs6000_legitimize_address): Likewise.
30364 (rs6000_legitimize_reload_address): Likewise.
30365 (rs6000_legitimate_address_p): Likewise.
30366 (rs6000_eliminate_indexed_memrefs): Likewise.
30367 (rs6000_emit_move): Likewise.
30368 (rs6000_secondary_reload): Likewise.
30369 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
30370 reloads to fpr registers to continue to use reg+offset addressing,
30371 but 64-bit reloads to altivec registers need reg+reg addressing.
30372 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
30373 it. Treat LO_SUM like a PLUS operation.
30374 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
30375 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
30376 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
30377 registers to share a register with a smaller sized type, since VSX
30378 puts scalars in the upper 64-bits.
30379 (print_operand): Add support for PTImode.
30380 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
30381 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
30382 registers, but don't have arithmetic support.
30383 (rs6000_memory_move_cost): Add test for VSX.
30384 (rs6000_opt_masks): Add -mvsx-timode.
30386 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
30389 (VSr): Use wt constraint for TImode.
30390 (VSv): Drop TImode support.
30391 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
30392 (vsx_movti_64bit): Likewise.
30393 (vsx_movti_32bit): Likewise.
30394 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
30395 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
30396 one '?' on the appropriate output constraint. Do not allow TImode
30397 logical operations on 32-bit systems.
30398 (vsx_ior<mode>3): Likewise.
30399 (vsx_xor<mode>3): Likewise.
30400 (vsx_one_cmpl<mode>2): Likewise.
30401 (vsx_nor<mode>3): Likewise.
30402 (vsx_andc<mode>3): Likewise.
30403 (vsx_concat_<mode>): Likewise.
30404 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
30406 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
30407 OPTION_MASK_VSX_TIMODE.
30408 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
30409 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
30411 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
30412 (TI2 iterator): New iterator for TImode, PTImode.
30413 (wd mode attribute): Add values for vector types.
30414 (movti_string): Replace TI move operations with operations for TImode
30415 and PTImode. Add support for TImode being allowed in VSX registers.
30416 (mov<mode>_string, TImode/PTImode): Likewise.
30417 (movti_ppc64): Likewise.
30418 (mov<mode>_ppc64, TImode/PTImode): Likewise.
30419 (TI mode splitters): Likewise.
30421 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
30424 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
30426 PR tree-optimization/56355
30427 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
30428 Also handle integers with undefined overflow.
30430 2013-03-20 Catherine Moore <clm@codesourcery.com>
30431 Maciej W. Rozycki <macro@codesourcery.com>
30432 Tom de Vries <tom@codesourcery.com>
30433 Nathan Sidwell <nathan@codesourcery.com>
30434 Iain Sandoe <iain@codesourcery.com>
30435 Nathan Froyd <froydnj@codesourcery.com>
30436 Chao-ying Fu <fu@mips.com>
30438 * doc/extend.texi: (micromips, nomicromips, nocompression):
30439 Document new function attributes.
30440 * doc/invoke.texi (minterlink-compressed, mmicromips,
30441 m14k, m14ke, m14kec): Document new options.
30442 (minterlink-mips16): Update documentation.
30443 * doc/md.texi (ZC, ZD): Document new constraints.
30444 * configure.ac (gcc_cv_as_micromips): Check if linker
30445 supports the .set micromips directive.
30446 * configure: Regenerate.
30447 * config.in: Regenerate.
30448 * config/mips/mips-tables.opt: Regenerate.
30449 * config/mips/micromips.md: New file.
30450 * constraints.md (ZC, ZD): New constraints.
30451 * config/mips/predicates.md (movep_src_register): New predicate.
30452 (movep_src_operand): New predicate.
30453 (non_volatile_mem_operand): New predicate.
30454 * config/mips/mips.md (multimem): New type.
30455 (length): Differentiate between 17-bit and 18-bit branch offsets.
30456 (MOVEP1, MOVEP2): New mode iterator.
30457 (mov_<load>l): Use ZC constraint.
30458 (mov_<load>r): Likewise.
30459 (mov_<store>l): Likewise.
30460 (mov_<store>r): Likewise.
30461 (*branch_equality<mode>_inverted): Add microMIPS support.
30462 (*branch_equality<mode>): Likewise.
30463 (*jump_absolute): Likewise.
30464 (indirect_jump_<mode>): Likewise.
30465 (tablejump_<mode>): Likewise.
30466 (<optab>_internal): Likewise.
30467 (sibcall_internal): Likewise.
30468 (sibcall_value_internal): Likewise.
30469 (prefetch): Use constraint ZD.
30470 * config/mips/mips.opt (minterlink-compressed): New option.
30471 (minterlink-mips16): Now an alias for minterlink-compressed.
30472 (mmicromips): New option.
30473 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
30474 (compare_and_swap_12): Likewise.
30475 (sync_add<mode>): Likewise.
30476 (sync_<optab>_12): Likewise.
30477 (sync_old_<optab>_12): Likewise.
30478 (sync_new_<optab>_12): Likewise.
30479 (sync_nand_12): Likewise.
30480 (sync_old_nand_12): Likewise.
30481 (sync_new_nand_12): Likewise.
30482 (sync_sub<mode>): Likewise.
30483 (sync_old_add<mode>): Likewise.
30484 (sync_old_sub<mode>): Likewise.
30485 (sync_new_add<mode>): Likewise.
30486 (sync_new_sub<mode>): Likewise.
30487 (sync_<optab><mode>): Likewise.
30488 (sync_old_<optab><mode>): Likewise.
30489 (sync_new_<optab><mode>): Likewise.
30490 (sync_nand<mode>): Likewise.
30491 (sync_old_nand<mode>): Likewise.
30492 (sync_new_nand<mode>): Likewise.
30493 (sync_lock_test_and_set<mode>): Likewise.
30494 (test_and_set_12): Likewise.
30495 (atomic_compare_and_swap<mode>): Likewise.
30496 (atomic_exchange<mode>_llsc): Likewise.
30497 (atomic_fetch_add<mode>_llsc): Likewise.
30498 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
30499 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
30500 (umips_save_restore_pattern_p): Likewise.
30501 (umips_load_store_pair_p): Likewise.
30502 (umips_output_load_store_pair): Likewise.
30503 (umips_movep_target_p): Likewise.
30504 (umips_12bit_offset_address_p): Likewise.
30505 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
30506 (mips_base_mips16): Rename this...
30507 (mips_base_compression_flags): ...to this. Update all uses.
30508 (mips_attribute_table): Add micromips, nomicromips and nocompression.
30509 (mips_mips16_decl_p): Delete.
30510 (mips_nomips16_decl_p): Delete.
30511 (mips_get_compress_on_flags): New function.
30512 (mips_get_compress_off_flags): New function.
30513 (mips_get_compress_mode): New function.
30514 (mips_get_compress_on_name): New function.
30515 (mips_get_compress_off_name): New function.
30516 (mips_insert_attributes): Support multiple compression types.
30517 (mips_merge_decl_attributes): Likewise.
30518 (umips_12bit_offset_address_p): New function.
30519 (mips_start_function_definition): Emit .set micromips directive.
30520 (mips_call_may_need_jalx_p): New function.
30521 (mips_function_ok_for_sibcall): Add microMIPS support.
30522 (mips_print_operand_punctuation): Support short delay slots and
30524 (umips_swm_mask, umips_swm_encoding): New.
30525 (umips_build_save_restore): New function.
30526 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
30527 (was_mips16_p): Remove.
30528 (old_compression_mode): New.
30529 (mips_set_compression_mode): New function.
30530 (mips_set_current_function): Add microMIPS support.
30531 (mips_option_override): Likewise.
30532 (umips_save_restore_pattern_p): New function.
30533 (umips_output_save_restore): New function.
30534 (umips_load_store_pair_p_1): New function.
30535 (umips_load_store_pair_p): New function.
30536 (umips_output_load_store_pair_1): New function.
30537 (umips_output_load_store_pair): New function.
30538 (umips_movep_target_p) New function.
30539 (mips_prepare_pch_save): Add microMIPS support.
30540 * config/mips/mips.h (TARGET_COMPRESSION): New.
30541 (TARGET_CPU_CPP_BUILTINS): Update macro
30542 to use new compression flags and to support microMIPS.
30543 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
30544 (MIPS_ARCH_FLOAT_SPEC): Likewise.
30545 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
30546 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
30547 (ASM_SPEC): Support mmicromips and mno-micromips.
30548 (M16STORE_REG_P): New macro.
30549 (MIPS_CALL): Support TARGET_MICROMIPS.
30550 (MICROMIPS_J): New macro.
30551 (mips_base_mips16): Rename this...
30552 (mips_base_compression_flags): ...to this.
30553 (UMIPS_12BIT_OFFSET_P): New macro.
30554 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
30555 (MULTILIB_DIRNAMES): Likewise.
30556 2013-03-20 Richard Biener <rguenther@suse.de>
30558 PR tree-optimization/56661
30559 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
30560 the result does not have to be distinct.
30562 2013-03-20 Richard Biener <rguenther@suse.de>
30564 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
30567 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30568 Steven Bosscher <steven@gcc.gnu.org>
30570 PR rtl-optimization/56605
30571 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
30573 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
30576 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
30577 that require movd instead of movq.
30579 2013-03-20 Richard Biener <rguenther@suse.de>
30581 * tree-ssa-structalias.c (struct variable_info): Add pointer
30582 to the first field of an aggregate with sub-vars. Make
30583 this and the pointer to the next subfield its ID.
30584 (vi_next): New function.
30585 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
30586 storedanything_id, integer_id): Increment by one.
30587 (new_var_info, get_call_vi, lookup_call_clobber_vi,
30588 get_call_clobber_vi): Adjust.
30589 (solution_set_expand): Simplify and speedup.
30590 (solution_set_add): Inline into ...
30591 (set_union_with_increment): ... this. Adjust accordingly.
30592 (do_sd_constraint): Likewise.
30593 (do_ds_constraint): Likewise.
30594 (do_complex_constraint): Simplify.
30595 (build_pred_graph): Adjust.
30596 (solve_graph): Likewise. Simplify and speedup.
30597 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
30598 get_constraint_for_component_ref, get_constraint_for_1,
30599 first_vi_for_offset, first_or_preceding_vi_for_offset,
30600 create_function_info_for, create_variable_info_for_1,
30601 create_variable_info_for, intra_create_variable_infos): Adjust.
30602 (init_base_vars): Push NULL for ID zero.
30603 (compute_points_to_sets): Adjust.
30605 2013-03-20 Richard Biener <rguenther@suse.de>
30607 * cfgloop.c (verify_loop_structure): Streamline and avoid
30608 ICEing on corrupt loop tree.
30609 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
30612 2013-03-20 Richard Biener <rguenther@suse.de>
30614 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
30615 check whether an SSA update is needed.
30617 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
30619 * config/mips/constraints.md (T): Rename to...
30623 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
30624 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
30626 2013-03-19 Ian Bolton <ian.bolton@arm.com>
30628 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
30629 (*subsi3_carryin_uxtw): Likewise.
30631 2013-03-19 Ian Bolton <ian.bolton@arm.com>
30633 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
30634 (*rorsi3_insn_uxtw): Likewise.
30636 2013-03-19 Ian Bolton <ian.bolton@arm.com>
30638 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
30639 (*extrsi5_insn_uxtw): Likewise.
30641 2013-03-19 Richard Biener <rguenther@suse.de>
30643 PR tree-optimization/56273
30644 * passes.c (init_optimization_passes): Move second VRP after DOM.
30646 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
30648 * config/i386/i386.md (*movti_internal): Merge from
30649 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
30650 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
30651 nox64 isa attributes.
30653 2013-03-18 Richard Biener <rguenther@suse.de>
30655 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
30657 (merge_node_constraints): Likewise.
30658 (build_succ_graph): Likewise.
30659 (valid_graph_edge): Inline into single caller.
30660 (unify_nodes): Likewise. Use bitmap_set_bit return value
30662 (scc_visit): Fix formatting and variable use.
30663 (do_sd_constraint): Use gcc_checking_assert.
30664 (do_ds_constraint): Likewise.
30665 (do_complex_constraint): Likewise.
30666 (condense_visit): Likewise. Cleanup.
30667 (dump_pred_graph): New function.
30668 (perform_var_substitution): Dump the pred-graph before
30669 variable substitution.
30670 (find_equivalent_node): Use gcc_checking_assert.
30671 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
30673 2013-03-18 Richard Biener <rguenther@suse.de>
30675 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30676 Remove cond_expr_stmt_list argument and do not gimplify the
30678 (vect_loop_versioning): Adjust.
30679 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
30680 Cleanup to use less temporaries.
30681 (vect_create_data_ref_ptr): Cleanup.
30683 2013-03-18 Jakub Jelinek <jakub@redhat.com>
30685 PR tree-optimization/56635
30686 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
30687 require types_compatible_p types.
30689 2013-03-18 Nick Clifton <nickc@redhat.com>
30691 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
30692 spurious backslash.
30694 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
30695 Add missing line to comment describing function.
30697 2013-03-18 Richard Biener <rguenther@suse.de>
30699 PR tree-optimization/56210
30700 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
30701 Handle string / character search functions.
30702 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30704 2013-03-18 Richard Biener <rguenther@suse.de>
30706 PR middle-end/56483
30707 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
30708 and implement properly.
30709 * gimple.h (gimple_cond_single_var_p): Remove.
30711 2013-03-18 Richard Biener <rguenther@suse.de>
30713 * tree-data-ref.h (find_data_references_in_loop): Declare.
30714 * tree-data-ref.c (get_references_in_stmt): Use a stack
30715 vector pre-allocated in the callers.
30716 (find_data_references_in_stmt): Adjust.
30717 (graphite_find_data_references_in_stmt): Likewise.
30718 (create_rdg_vertices): Likewise.
30719 (find_data_references_in_loop): Export.
30720 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
30721 Compute dependences here...
30722 (vect_analyze_data_refs): ...not here. When we encounter
30723 a non-vectorizable data reference in basic-block vectorization
30724 truncate the data reference vector. Do not bother to
30725 fixup data-dependence information for gather loads.
30726 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
30727 of data references, as reported.
30729 2013-03-18 Richard Biener <rguenther@suse.de>
30731 PR tree-optimization/3713
30732 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
30733 has_constants and expr.
30734 (stmt_has_constants): Properly valueize SSA names when deciding
30735 whether the stmt has constants.
30737 2013-03-18 Richard Biener <rguenther@suse.de>
30739 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
30740 whole function when there is nothing to do.
30741 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
30742 * tree-vectorizer.c (vectorize_loops): Update virtual and
30743 loop-closed SSA once.
30744 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
30746 2013-03-18 Richard Biener <rguenther@suse.de>
30748 PR middle-end/56113
30749 * domwalk.c (bb_postorder): New global static.
30750 (cmp_bb_postorder): New function.
30751 (walk_dominator_tree): Replace scheme imposing an order for
30752 visiting dominator sons by one sorting them at the time they
30753 are pushed on the stack.
30755 2013-03-18 Richard Biener <rguenther@suse.de>
30757 PR tree-optimization/39326
30758 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
30759 (struct mem_ref): Replace mem member with ao_ref typed member.
30760 (MEM_ANALYZABLE): Adjust.
30761 (memref_eq): Likewise.
30762 (mem_ref_alloc): Likewise.
30763 (gather_mem_refs_stmt): Likewise.
30764 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
30765 (execute_sm_if_changed_flag_set): Adjust.
30766 (execute_sm): Likewise.
30767 (ref_always_accessed_p): Likewise.
30768 (refs_independent_p): Likewise.
30769 (can_sm_ref_p): Likewise.
30771 2013-03-18 Jakub Jelinek <jakub@redhat.com>
30774 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
30775 return 1 even for !unsignedp.
30777 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
30779 * config/i386/i386.md (isa): Add x64 and nox64.
30780 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
30781 (*pushtf): Enable *roF alternative for x64 isa only.
30782 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
30783 mode attribute of integer alternatives to DImode for TARGET_64BIT.
30784 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
30785 (*movtf_internal): Merge from *movtf_internal_rex64 and
30786 *movtf_internal_sse. Use x64 and nox64 isa attributes.
30787 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
30788 nox64 isa attributes.
30789 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
30790 nox64 isa attributes.
30791 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
30793 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
30795 * config/alpha/alpha.c (TARGET_LRA_P): New define.
30797 2013-03-17 Jakub Jelinek <jakub@redhat.com>
30800 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
30801 class names. Remove trailing comma after "ALL_REGS".
30803 2013-03-16 Jan Hubicka <jh@suse.cz>
30805 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
30806 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
30807 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
30808 of cgraph_get_create_node.
30809 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
30811 2013-03-16 Jason Merrill <jason@redhat.com>
30814 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
30815 with DW_AT_default_value.
30817 2013-03-16 Jakub Jelinek <jakub@redhat.com>
30819 * BASE-VER: Set to 4.9.0.
30821 2013-03-14 Andi Kleen <ak@linux.intel.com>
30824 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
30825 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
30826 Document _x* TSX intrinsics.
30828 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
30829 David Holsgrove <david.holsgrove@xilinx.com>
30831 * configure.ac: Add MicroBlaze TLS support detection.
30832 * configure: Regenerate.
30833 * config/microblaze/microblaze-protos.h
30834 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
30835 symbol_mentioned_p, label_mentioned_p): Add prototypes.
30836 * config/microblaze/microblaze.c (microblaze_address_type): Add
30837 ADDRESS_TLS and tls_reloc address types.
30838 (microblaze_address_info): Add tls_reloc.
30839 (TARGET_HAVE_TLS): Define.
30840 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
30841 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
30842 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
30843 load_tls_operand, microblaze_call_tls_get_addr,
30844 microblaze_legitimize_tls_address): New functions.
30845 (microblaze_classify_unspec): Handle UNSPEC_TLS.
30846 (get_base_reg): Use microblaze_tls_symbol_p.
30847 (microblaze_classify_address): Handle TLS.
30848 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
30849 label_mentioned_p and microblaze_tls_referenced_p.
30850 (microblaze_legitimize_address): Handle TLS.
30851 (microblaze_address_insns): Handle ADDRESS_TLS.
30852 (pic_address_needs_scratch): Handle TLS.
30853 (print_operand_address): Handle TLS.
30854 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
30855 (microblaze_expand_move): Handle TLS.
30856 (microblaze_legitimate_constant_p): Check
30857 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
30858 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
30859 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
30860 (PIC_OFFSET_TABLE_REGNUM): Set.
30861 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
30862 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
30863 (addsi3, movsi_internal2, movdf_internal): Update constraints
30864 * config/microblaze/predicates.md (arith_plus_operand): Define
30865 (move_operand): Redefine as move_src_operand,
30866 check microblaze_tls_referenced_p.
30868 2013-03-14 Ian Bolton <ian.bolton@arm.com>
30870 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
30871 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
30873 2013-03-14 Ian Bolton <ian.bolton@arm.com>
30875 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
30878 2013-03-14 Jakub Jelinek <jakub@redhat.com>
30880 PR tree-optimization/53265
30881 * common.opt (Waggressive-loop-optimizations): New option.
30882 * tree-ssa-loop-niter.c: Include tree-pass.h.
30883 (do_warn_aggressive_loop_optimizations): New function.
30884 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
30885 if number_of_latch_executions returned constant.
30886 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
30887 early. If number_of_latch_executions returned constant, set
30888 nb_iterations_upper_bound back to it.
30889 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
30891 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
30892 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
30894 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
30895 (MULTILIB_OSDIRNAMES): Set.
30896 * genmultilib: If defaultosdirname doesn't start with :: , set
30897 defaultosdirname2 instead, clear it and emit two . multilib_raw
30898 entries instead of just one.
30900 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
30902 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
30903 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
30904 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
30905 (SUBTARGET_OVERRIDE_OPTIONS): New.
30907 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
30910 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
30911 (musermode): Convert to Var(TARGET_USERMODE).
30912 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
30913 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
30914 * config/sh/sh.c (sh_option_override): Use
30915 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
30916 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
30918 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
30920 (udivsi3_i4_single, divsi3_i4_single): Use
30921 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
30923 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
30925 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
30928 2013-03-13 Richard Biener <rguenther@suse.de>
30930 PR tree-optimization/56608
30931 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
30932 calls when vectorizing basic-blocks.
30934 2013-03-13 Jakub Jelinek <jakub@redhat.com>
30937 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
30940 2013-03-12 Jakub Jelinek <jakub@redhat.com>
30942 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
30944 2013-03-11 Jan Hubicka <jh@suse.cz>
30947 * lto-streamer-out.c (output_symbol_p): Skip references from
30948 constructors of external variables.
30950 2013-03-11 Jan Hubicka <jh@suse.cz>
30952 PR middle-end/56571
30953 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
30955 * emit-rtl.c (verify_rtx_sharing): Likewise.
30956 (copy_insn_1): Likewise.
30957 * rtl.c (copy_rtx): Likewise.
30959 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
30962 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
30963 output_operand_lossage message.
30965 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
30968 * arm.c (shift_op): Validate RTL pattern on the fly.
30969 (arm_print_operand, case 'S'): Don't use shift_operator to validate
30972 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30975 * config/pa/pa.md (call_value): Check for calls to powf and direct to
30976 new call patterns that clobber %fr12.
30977 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
30978 split and postreload patterns.
30979 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
30980 registers %fr12 and %fr12R as call used.
30982 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
30984 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
30985 (canon_address, record_store, replace_read, check_mem_read_rtx,
30986 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
30987 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
30988 rest_of_handle_dse): Likewise.
30990 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
30992 PR middle-end/56524
30993 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
30995 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
30996 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
30997 (save_optabs_if_changed): Replace with...
30998 (init_tree_optimization_optabs): ...this.
30999 * optabs.c (save_optabs_if_changed): Rename to...
31000 (init_tree_optimization_optabs): ...this. Take the optimization node
31001 as argument. Do nothing if the base optabs are already correct.
31002 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
31003 to recompute optabs.
31004 * function.h (function): Remove optabs field.
31005 * function.c (invoke_set_current_function_hook): Call
31006 init_tree_optimization_optabs. Use the result to initialize
31009 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
31011 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
31012 if GTMA_HAS_NO_INSTRUMENTATION.
31013 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
31014 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
31015 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
31016 * gimple-pretty-print.c (dump_gimple_transaction): Handle
31017 GTMA_HAS_NO_INSTRUMENTATION.
31019 2013-03-08 Jakub Jelinek <jakub@redhat.com>
31021 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
31024 2013-03-08 Marek Polacek <polacek@redhat.com>
31025 Jakub Jelinek <jakub@redhat.com>
31027 PR tree-optimization/56478
31028 * predict.c (is_comparison_with_loop_invariant_p): Change the
31029 type of loop_step to tree.
31030 (predict_loops): Adjust.
31031 (predict_iv_comparison): Perform the computations on double_ints.
31033 2013-03-08 Richard Biener <rguenther@suse.de>
31035 PR tree-optimization/56570
31036 * tree-cfg.c (verify_expr_location_1): Verify locations for
31038 * tree-sra.c (create_access_replacement): Strip locations
31039 from DECL_DEBUG_EXPRs.
31041 2013-03-08 Richard Biener <rguenther@suse.de>
31043 * tree-inline.c (expand_call_inline): Do not associate
31044 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
31045 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
31047 2013-03-08 Richard Biener <rguenther@suse.de>
31049 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
31050 or block changes with -Og. Fix for location / block encoding
31051 changes and PHI arguments with locations.
31053 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
31055 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
31057 (struct output_info): Likewise.
31058 (register_overhead): Remove bad gcc_assert.
31059 (bitmap_find_bit): If there is only a single bitmap element, do not
31060 count a miss as a search.
31061 (print_statistics): Update for counter type changes.
31062 (dump_bitmap_statistics): Likewise. Print headers such that they
31063 are properly lined up with the printed counters.
31065 2013-03-07 Jakub Jelinek <jakub@redhat.com>
31067 PR tree-optimization/56559
31068 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
31069 check that it has only a single use.
31071 2013-03-07 Richard Biener <rguenther@suse.de>
31073 * doc/invoke.texi (fwhole-program): Discourage use in combination
31076 2013-03-06 Jakub Jelinek <jakub@redhat.com>
31078 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
31080 PR tree-optimization/56539
31081 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
31082 instead of GSI_CONTINUE_LINKING as last argument to
31083 force_gimple_operand_gsi. Adjust function comment.
31085 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
31088 PR middle-end/56548
31089 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
31090 promoted mode, convert the result back to the original mode.
31092 2013-03-06 Richard Biener <rguenther@suse.de>
31094 PR middle-end/56294
31095 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
31096 (insert_updated_phi_nodes_compare_uids): New function.
31097 (update_ssa): Sort symbols_to_rename after UID before
31098 traversing it to insert PHI nodes.
31100 2013-03-06 Richard Biener <rguenther@suse.de>
31102 PR middle-end/50494
31103 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
31104 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
31107 2013-02-13 Richard Biener <rguenther@suse.de>
31110 * varasm.c (output_constant_def_1): Get the decl representing
31111 the constant as argument.
31112 (output_constant_def): Wrap output_constant_def_1.
31113 (make_decl_rtl): Use output_constant_def_1 with the decl
31114 representing the constant.
31115 (build_constant_desc): Optionally re-use a decl already
31116 representing the constant.
31117 (tree_output_constant_def): Adjust.
31119 2013-03-06 Joey Ye <joey.ye@arm.com>
31122 * gcc.c (convert_white_space): New function.
31123 (main): Handles white space in function name.
31125 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
31128 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
31129 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
31130 to SH_DIV_CALL_TABLE for TARGET_SH2.
31131 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
31133 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
31134 call-table options.
31136 2013-03-05 Sterling Augustine <saugustine@google.com>
31137 Cary Coutant <ccoutant@google.com>
31140 * dwarf2out.c (resolve_addr): Don't call
31141 remove_loc_list_addr_table_entries a second time for the same
31144 2013-03-05 Jakub Jelinek <jakub@redhat.com>
31147 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
31148 (avoid_complex_debug_insns): New function.
31149 (expand_debug_locations): Call it.
31151 PR rtl-optimization/56484
31152 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
31153 lifetimes of hard registers on small register class machines.
31155 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
31157 * config/microblaze/microblaze-protos.h: Rename
31158 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
31159 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
31161 (microblaze_fast_interrupt_function_p): New function.
31162 (microblaze_is_interrupt_handler): Rename to
31163 microblaze_is_interrupt_variant and add fast_interrupt check.
31164 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
31165 (save_restore_insns): Likewise.
31166 (compute_frame_size): Likewise.
31167 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
31168 (microblaze_globalize_label): Likewise.
31169 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
31170 * config/microblaze/microblaze.md: Use wrapper
31171 microblaze_is_interrupt_variant.
31173 2013-03-05 Kai Tietz <ktietz@redhat.com>
31175 * sdbout.c (sdbout_one_type): Switch to current function's section
31176 supporting cold/hot.
31178 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
31180 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
31183 2013-03-05 Jakub Jelinek <jakub@redhat.com>
31185 PR middle-end/56461
31186 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
31187 if VALGRIND_GET_VBITS is defined, temporarily make object
31188 memory all defined, and restore previous valgrind addressability
31189 and definability afterwards. Free this_object at the end.
31191 PR middle-end/56461
31192 * lra.c (lra): Call lra_clear_live_ranges if live_p,
31193 right before calling lra_create_live_ranges, also call it
31194 when clearing live_p. Only call lra_clear_live_ranges
31195 at the end if live_p.
31197 PR middle-end/56461
31198 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
31200 2013-03-05 Richard Biener <rguenther@suse.de>
31202 PR tree-optimization/56521
31203 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
31206 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
31209 * except.h (remove_unreachable_eh_regions): New prototype.
31210 * except.c (remove_eh_handler_splicer): New function, split out
31211 of remove_eh_handler.
31212 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
31213 warning about running it on many EH regions one at a time.
31214 (remove_unreachable_eh_regions_worker): New function, walk the
31215 EH tree in depth-first order and remove non-marked regions.
31216 (remove_unreachable_eh_regions): New function.
31217 * tree-eh.c (mark_reachable_handlers): New function, split out
31218 from remove_unreachable_handlers.
31219 (remove_unreachable_handlers): Use mark_reachable_handlers and
31220 remove_unreachable_eh_regions.
31221 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
31222 and remove_unreachable_eh_regions.
31224 2013-03-05 Richard Biener <rguenther@suse.de>
31226 PR middle-end/56525
31227 * loop-init.c (fix_loop_structure): Remove loops in two stages,
31228 not freeing them until the end.
31230 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31232 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
31234 2013-03-05 Richard Biener <rguenther@suse.de>
31236 PR tree-optimization/56270
31237 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
31238 of loads after scheduling an SLP instance.
31240 2013-03-05 Jakub Jelinek <jakub@redhat.com>
31242 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
31244 (check_gcc_parallelize): Run guality.exp as a separate job from
31245 vect.exp with unsorted.exp and $(dg_target_exps) separately from
31246 struct-layout-1.exp with stackalign.exp.
31248 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
31250 PR middle-end/56461
31251 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
31252 load_index sbitmap even if some bit in it isn't set.
31254 PR middle-end/56461
31255 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
31256 (discover_iteration_bound_by_body_walk): Change queues to
31257 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
31258 spelling in comment. Call safe_push on queues[bound_index] directly.
31259 Release queues[queue_index] in every iteration unconditionally.
31260 Release bounds vector.
31262 PR middle-end/56461
31263 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
31264 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
31265 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
31268 2013-03-05 Richard Biener <rguenther@suse.de>
31271 * tree-inline.c (remap_blocks_to_null): New function.
31272 (expand_call_inline): When expanding a call stmt without
31273 an associated block inline remap all callee blocks to NULL.
31275 2013-03-05 Jakub Jelinek <jakub@redhat.com>
31277 PR rtl-optimization/56494
31278 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
31279 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
31280 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
31282 PR middle-end/56461
31283 * sel-sched-ir.c (free_sched_pools): Release
31284 succs_info_pool.stack[succs_info_pool.max_top] vectors too
31285 if succs_info_pool.max_top isn't -1.
31288 * opts.c (opts_obstack, opts_concat): Moved to...
31289 * opts-common.c (opts_obstack, opts_concat): ... here.
31291 2013-03-04 Jakub Jelinek <jakub@redhat.com>
31293 PR middle-end/56461
31294 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
31296 2013-03-04 Martin Jambor <mjambor@suse.cz>
31298 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
31299 all appropriate places.
31301 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
31303 PR tree-optimization/56424
31304 * ipa-split.c (split_function): Do not set the RSO flag if result is
31305 not by reference and its type is a register type.
31307 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
31309 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
31310 (microblaze_legitimate_pic_operand): Likewise
31311 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
31312 new function microblaze_legitimate_pic_operand
31313 * config/microblaze/microblaze-protos.h
31314 (microblaze_legitimate_pic_operand): Declare.
31316 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31318 * config/microblaze/predicates.md (call_insn_simple_operand):
31319 New predicate for supported rtx code types.
31320 * config/microblaze/microblaze.md (call_internal1): Use
31321 call_insn_simple_operand predicate.
31323 2013-03-04 Jakub Jelinek <jakub@redhat.com>
31325 PR middle-end/56461
31326 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
31327 partitions.ordered_remove.
31329 PR middle-end/56461
31330 * tree-vect-stmts.c (vectorizable_conversion): Don't call
31331 vec_oprnds0.create (1) for modifier == NONE.
31333 PR middle-end/56461
31334 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
31335 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
31336 vec_oprnds1 right before pushing anything to it for
31339 PR middle-end/56461
31340 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
31341 set nbbs to 0 instead of having separate code path.
31342 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
31343 instead of false as last argument if returning NULL.
31345 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
31347 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
31348 the attribute is now called "target" instead of "option".
31349 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
31350 * doc/tm.texi.in (Target Attributes): Likewise document the correct
31351 attribute/pragma name for TARGET_OPTION_VALID_P and
31352 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
31353 * doc/tm.texi: Regenerated.
31355 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
31357 * config/microblaze/microblaze.c:
31358 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
31359 * config/microblaze/microblaze.h: Add -mxl-reorder to
31361 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
31362 instructions emitted if TARGET_REORDER.
31363 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
31364 or 0 for -m/-mno case, but initialises as 2 to detect default use case
31367 2013-03-01 Xinliang David Li <davidxl@google.com>
31369 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
31372 2013-03-01 Jakub Jelinek <jakub@redhat.com>
31374 PR middle-end/56461
31375 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
31376 vector even when returning true. Fix up function comment formatting.
31378 PR middle-end/56461
31379 * ira-build.c (ira_loop_nodes_count): New variable.
31380 (create_loop_tree_nodes): Initialize it.
31381 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
31383 PR middle-end/56461
31384 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
31385 method on dr_chain and result_chain.
31386 * tree-vect-stmts.c (vectorizable_store): Only call
31387 result_chain.create if j == 0.
31389 PR middle-end/56461
31390 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
31391 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
31392 before overwriting it.
31394 2013-03-01 Tobias Burnus <burnus@net-b.de>
31396 * doc/extended.texi (C Extensions): Change order in @menu
31398 (Other MIPS Built-in Functions): Move last MIPS entry before
31399 "picoChip Built-in Functions".
31400 (SH Built-in Functions): Move after RX Built-in Functions.
31401 * doc/gcc.texi (Introduction): Change order in @menu
31403 * doc/md.texi (Constraints): Ditto.
31404 * gty.texi (Type Information): Ditto.
31405 (User-provided marking routines for template types): Make
31407 * doc/invoke.texi (AArch64 Options): Move before
31408 "Adapteva Epiphany Options".
31410 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
31411 Jakub Jelinek <jakub@redhat.com>
31414 * asan.c (gate_asan): Lookup no_sanitize_address instead of
31415 no_address_safety_analysis attribute.
31416 * doc/extend.texi (no_address_safety_attribute): Rename to
31417 no_sanitize_address attribute, mention no_address_safety_analysis
31418 attribute as deprecated alias.
31420 2013-02-28 Jakub Jelinek <jakub@redhat.com>
31422 PR middle-end/56461
31423 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
31424 type to vec<vec<tree> > *.
31425 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
31426 to be vec<tree> instead of vec<tree> *, set vec_defs
31427 to vNULL and call vec_defs.create (number_of_vects), adjust other
31429 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
31430 vectorizable_condition): Adjust vect_get_slp_defs callers.
31432 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31434 * config/aarch64/aarch64.c
31435 (aarch64_float_const_representable): Remove unused variable.
31437 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31439 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
31441 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31443 * config/aarch64/aarch64-builtins.c
31444 (aarch64_init_simd_builtins): Make static.
31446 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
31448 * config/aarch64/aarch64.c
31449 (aarch64_simd_make_constant): Make static.
31451 2013-02-28 Martin Jambor <mjambor@suse.cz>
31453 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
31454 with no initialization to the RHS of debug statements.
31456 2013-02-28 Martin Jambor <mjambor@suse.cz>
31458 PR tree-optimization/56294
31459 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
31461 (get_access_replacement): Do not call create_access_replacement.
31462 Assert a replacement exists.
31463 (get_repl_default_def_ssa_name): Create the replacement declaration
31466 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31468 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
31469 final_end_function.
31471 2013-02-28 Marek Polacek <polacek@redhat.com>
31473 PR rtl-optimization/56466
31474 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
31475 if we're changing a loop.
31476 (peel_loops_completely): Likewise.
31478 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
31481 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
31483 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31486 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
31487 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
31488 INTX_FTYPE_FX, FX_FTYPE_INTX.
31489 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
31491 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31493 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
31494 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
31495 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
31496 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
31497 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
31498 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
31499 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
31500 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
31501 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
31502 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
31503 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
31504 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
31505 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
31506 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
31507 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
31508 (avrxmega6): Increase max flash segments from 5 to 6.
31509 * config/avr/t-multilib: Regenerate.
31510 * config/avr/avr-tables.opt: Regenerate.
31511 * doc/avr-mmcu.texi: Regenerate.
31513 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
31515 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
31516 (avr_device_to_arch): Rename to avr_device_to_ld.
31517 (avr_device_to_as): New prototype.
31518 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
31519 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
31520 * config/avr/driver-avr.c (avr_device_to_as): New.
31521 (avr_device_to_arch): Rename to avr_device_to_ld.
31523 2013-02-27 Jakub Jelinek <jakub@redhat.com>
31525 PR middle-end/56461
31526 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
31527 method on dr_chain and result_chain.
31529 PR middle-end/56461
31530 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
31531 pointer_set_destroy on not_executed_last_iteration.
31533 PR middle-end/56461
31534 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
31536 PR middle-end/56461
31537 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
31538 FOR_EACH_DEFINED_FUNCTION when freeing state.
31540 PR middle-end/56461
31541 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
31543 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
31546 PR middle-end/56461
31547 * ipa-cp.c (decide_whether_version_node): Call vec_free on
31548 known_aggs[i].items and release known_aggs vector.
31550 PR middle-end/56461
31551 * ipa-reference.c (propagate): Free node_info even for alias nodes.
31553 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
31555 * config/microblaze/microblaze.c (microblaze_emit_compare):
31556 Use xor for EQ/NE comparisions.
31557 * config/microblaze/microblaze.md (cstoresf4): Add constraints
31558 (cbranchsf4): Adjust operator to comparison_operator.
31560 2013-02-27 Jakub Jelinek <jakub@redhat.com>
31562 PR middle-end/56461
31563 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
31565 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
31566 vec_safe_push, always update *slot.
31567 (redirect_edge_var_map_clear): Use vec_free.
31568 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
31569 (free_var_map_entry): Use vec_free.
31570 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
31571 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
31573 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
31575 PR middle-end/45472
31576 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
31577 when the may_trap_p bit of the exprs being merged differs.
31578 Reorder tests for speculativeness in the logical and operator.
31580 2013-02-27 Jakub Jelinek <jakub@redhat.com>
31582 * incpath.c (add_standard_paths): Use reconcat instead of concat
31583 where appropriate and avoid leaking memory.
31585 * opts.h: Include obstack.h.
31586 (opts_concat): New prototype.
31587 (opts_obstack): New declaration.
31588 * opts.c (opts_concat): New function.
31589 (opts_obstack): New variable.
31590 (init_options_struct): Call gcc_init_obstack on opts_obstack.
31591 (finish_options): Use opts_concat instead of concat
31592 and XOBNEWVEC instead of XNEWVEC.
31593 * opts-common.c (generate_canonical_option, decode_cmdline_option,
31594 generate_option): Likewise.
31595 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
31596 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
31599 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
31600 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
31602 2013-02-26 Jakub Jelinek <jakub@redhat.com>
31604 PR middle-end/56461
31605 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
31607 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
31609 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
31610 (arm_block_move_unaligned_straight): Likewise.
31611 (arm_adjust_block_mem): Likewise.
31613 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
31616 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
31617 temp, cond and label.
31618 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
31621 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
31622 * config/c6x/c6x.h (dbx_register_map): Update declaration.
31625 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
31626 of prologue/epilogue functions.
31629 * config/tilegx/tilegx.c (tilegx_expand_prologue):
31630 Remove unused variable cfa_offset.
31631 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
31634 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
31635 type promotion to unsigned.
31638 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
31639 for HOST_WIDE_INT of 32 bit / same size as int.
31640 (arm_block_move_unaligned_straight): Likewise.
31641 (arm_adjust_block_mem): Likewise.
31644 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
31647 2013-02-26 Marek Polacek <polacek@redhat.com>
31649 PR tree-optimization/56426
31650 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
31652 2013-02-26 Richard Biener <rguenther@suse.de>
31655 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
31656 unused variable loops.
31658 2013-02-26 Jakub Jelinek <jakub@redhat.com>
31660 PR tree-optimization/56448
31661 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
31662 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
31663 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
31664 later operands of the references, or even first operand for
31665 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
31667 PR tree-optimization/56443
31668 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
31669 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
31670 to type_for_mode langhook.
31672 2013-02-25 Matt Turner <mattst88@gmail.com>
31674 * doc/invoke.texi: Document r4700.
31676 2013-02-25 Richard Biener <rguenther@suse.de>
31678 PR tree-optimization/56175
31679 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
31681 (simplify_bitwise_binary): ... here. Also guard the conversion
31682 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
31684 2013-02-25 Catherine Moore <clm@codesourcery.com>
31687 2013-02-24 Catherine Moore <clm@codesourcery.com>
31688 Maciej W. Rozycki <macro@codesourcery.com>
31689 Tom de Vries <tom@codesourcery.com>
31690 Nathan Sidwell <nathan@codesourcery.com>
31691 Iain Sandoe <iain@codesourcery.com>
31692 Nathan Froyd <froydnj@codesourcery.com>
31693 Chao-ying Fu <fu@mips.com>
31695 * doc/extend.texi: (micromips, nomicromips, nocompression):
31696 Document new function attributes.
31697 * doc/invoke.texi (minterlink-compressed, mmicromips,
31698 m14k, m14ke, m14kec): Document new options.
31699 (minterlink-mips16): Update documentation.
31700 * doc/md.texi (ZC, ZD): Document new constraints.
31701 * configure.ac (gcc_cv_as_micromips): Check if linker
31702 supports the .set micromips directive.
31703 * configure: Regenerate.
31704 * config.in: Regenerate.
31705 * config/mips/mips-tables.opt: Regenerate.
31706 * config/mips/micromips.md: New file.
31707 * constraints.md (ZC, AD): New constraints.
31708 * config/mips/predicates.md (movep_src_register): New predicate.
31709 (movep_src_operand): New predicate.
31710 (non_volatile_mem_operand): New predicate.
31711 * config/mips/mips.md (multimem): New type.
31712 (length): Differentiate between 17-bit and 18-bit branch offsets.
31713 (MOVEP1, MOVEP2): New mode iterator.
31714 (mov_<load>l): Use ZC constraint.
31715 (mov_<load>r): Likewise.
31716 (mov_<store>l): Likewise.
31717 (mov_<store>r): Likewise.
31718 (*branch_equality<mode>_inverted): Add microMIPS support.
31719 (*branch_equality<mode>): Likewise.
31720 (*jump_absolute): Likewise.
31721 (indirect_jump_<mode>): Likewise.
31722 (tablejump_<mode>): Likewise.
31723 (<optab>_internal): Likewise.
31724 (sibcall_internal): Likewise.
31725 (sibcall_value_internal): Likewise.
31726 (prefetch): Use constraint ZD.
31727 * config/mips/mips.opt (minterlink-compressed): New option.
31728 (minterlink-mips16): Now an alias for minterlink-compressed.
31729 (mmicromips): New option.
31730 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31731 (compare_and_swap_12): Likewise.
31732 (sync_add<mode>): Likewise.
31733 (sync_<optab>_12): Likewise.
31734 (sync_old_<optab>_12): Likewise.
31735 (sync_new_<optab>_12): Likewise.
31736 (sync_nand_12): Likewise.
31737 (sync_old_nand_12): Likewise.
31738 (sync_new_nand_12): Likewise.
31739 (sync_sub<mode>): Likewise.
31740 (sync_old_add<mode>): Likewise.
31741 (sync_old_sub<mode>): Likewise.
31742 (sync_new_add<mode>): Likewise.
31743 (sync_new_sub<mode>): Likewise.
31744 (sync_<optab><mode>): Likewise.
31745 (sync_old_<optab><mode>): Likewise.
31746 (sync_new_<optab><mode>): Likewise.
31747 (sync_nand<mode>): Likewise.
31748 (sync_old_nand<mode>): Likewise.
31749 (sync_new_nand<mode>): Likewise.
31750 (sync_lock_test_and_set<mode>): Likewise.
31751 (test_and_set_12): Likewise.
31752 (atomic_compare_and_swap<mode>): Likewise.
31753 (atomic_exchange<mode>_llsc): Likewise.
31754 (atomic_fetch_add<mode>_llsc): Likewise.
31755 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31756 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31757 (umips_save_restore_pattern_p): Likewise.
31758 (umips_load_store_pair_p): Likewise.
31759 (umips_output_load_store_pair): Likewise.
31760 (umips_movep_target_p): Likewise.
31761 (umips_12bit_offset_address_p): Likewise.
31762 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31763 (mips_base_mips16): Rename this...
31764 (mips_base_compression_flags): ...to this. Update all uses.
31765 (mips_attribute_table): Add micromips, nomicromips and nocompression.
31766 (mips_mips16_decl_p): Delete.
31767 (mips_nomips16_decl_p): Delete.
31768 (mips_get_compress_on_flags): New function.
31769 (mips_get_compress_off_flags): New function.
31770 (mips_get_compress_mode): New function.
31771 (mips_get_compress_on_name): New function.
31772 (mips_get_compress_off_name): New function.
31773 (mips_insert_attributes): Support multiple compression types.
31774 (mips_merge_decl_attributes): Likewise.
31775 (umips_12bit_offset_address_p): New function.
31776 (mips_start_function_definition): Emit .set micromips directive.
31777 (mips_call_may_need_jalx_p): New function.
31778 (mips_function_ok_for_sibcall): Add microMIPS support.
31779 (mips_print_operand_punctuation): Support short delay slots and
31781 (umips_swm_mask, umips_swm_encoding): New.
31782 (umips_build_save_restore): New function.
31783 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31784 (was_mips16_p): Remove.
31785 (old_compression_mode): New.
31786 (mips_set_compression_mode): New function.
31787 (mips_set_current_function): Add microMIPS support.
31788 (mips_option_override): Likewise.
31789 (umips_save_restore_pattern_p): New function.
31790 (umips_output_save_restore): New function.
31791 (umips_load_store_pair_p_1): New function.
31792 (umips_load_store_pair_p): New function.
31793 (umips_output_load_store_pair_1): New function.
31794 (umips_output_load_store_pair): New function.
31795 (umips_movep_target_p) New function.
31796 (mips_prepare_pch_save): Add microMIPS support.
31797 * config/mips/mips.h (TARGET_COMPRESSION): New.
31798 (TARGET_CPU_CPP_BUILTINS): Update macro
31799 to use new compression flags and to support microMIPS.
31800 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31801 (MIPS_ARCH_FLOAT_SPEC): Likewise.
31802 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31803 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31804 (ASM_SPEC): Support mmicromips and mno-micromips.
31805 (M16STORE_REG_P): New macro.
31806 (MIPS_CALL): Support TARGET_MICROMIPS.
31807 (MICROMIPS_J): New macro.
31808 (mips_base_mips16): Rename this...
31809 (mips_base_compression_flags): ...to this.
31810 (UMIPS_12BIT_OFFSET_P): New macro.
31811 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31812 (MULTILIB_DIRNAMES): Likewise.
31814 2013-02-25 Tom de Vries <tom@codesourcery.com>
31816 PR rtl-optimization/56131
31817 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
31818 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
31819 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
31821 2013-02-25 Tobias Burnus <burnus@net-b.de>
31823 * doc/invoke.texi (-fsanitize=): Move from optimization
31824 to debugging options.
31826 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
31828 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
31830 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
31831 Alexander Monakov <amonakov@ispras.ru>
31833 PR middle-end/56077
31834 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
31835 flush pending lists also on non-jumps. Adjust comment.
31837 2013-02-24 Catherine Moore <clm@codesourcery.com>
31838 Maciej W. Rozycki <macro@codesourcery.com>
31839 Tom de Vries <tom@codesourcery.com>
31840 Nathan Sidwell <nathan@codesourcery.com>
31841 Iain Sandoe <iain@codesourcery.com>
31842 Nathan Froyd <froydnj@codesourcery.com>
31843 Chao-ying Fu <fu@mips.com>
31845 * doc/extend.texi: (micromips, nomicromips, nocompression):
31846 Document new function attributes.
31847 * doc/invoke.texi (minterlink-compressed, mmicromips,
31848 m14k, m14ke, m14kec): Document new options.
31849 (minterlink-mips16): Update documentation.
31850 * doc/md.texi (ZC, ZD): Document new constraints.
31851 * configure.ac (gcc_cv_as_micromips): Check if linker
31852 supports the .set micromips directive.
31853 * configure: Regenerate.
31854 * config.in: Regenerate.
31855 * config/mips/mips-tables.opt: Regenerate.
31856 * config/mips/micromips.md: New file.
31857 * constraints.md (ZC, AD): New constraints.
31858 * config/mips/predicates.md (movep_src_register): New predicate.
31859 (movep_src_operand): New predicate.
31860 (non_volatile_mem_operand): New predicate.
31861 * config/mips/mips.md (multimem): New type.
31862 (length): Differentiate between 17-bit and 18-bit branch offsets.
31863 (MOVEP1, MOVEP2): New mode iterator.
31864 (mov_<load>l): Use ZC constraint.
31865 (mov_<load>r): Likewise.
31866 (mov_<store>l): Likewise.
31867 (mov_<store>r): Likewise.
31868 (*branch_equality<mode>_inverted): Add microMIPS support.
31869 (*branch_equality<mode>): Likewise.
31870 (*jump_absolute): Likewise.
31871 (indirect_jump_<mode>): Likewise.
31872 (tablejump_<mode>): Likewise.
31873 (<optab>_internal): Likewise.
31874 (sibcall_internal): Likewise.
31875 (sibcall_value_internal): Likewise.
31876 (prefetch): Use constraint ZD.
31877 * config/mips/mips.opt (minterlink-compressed): New option.
31878 (minterlink-mips16): Now an alias for minterlink-compressed.
31879 (mmicromips): New option.
31880 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31881 (compare_and_swap_12): Likewise.
31882 (sync_add<mode>): Likewise.
31883 (sync_<optab>_12): Likewise.
31884 (sync_old_<optab>_12): Likewise.
31885 (sync_new_<optab>_12): Likewise.
31886 (sync_nand_12): Likewise.
31887 (sync_old_nand_12): Likewise.
31888 (sync_new_nand_12): Likewise.
31889 (sync_sub<mode>): Likewise.
31890 (sync_old_add<mode>): Likewise.
31891 (sync_old_sub<mode>): Likewise.
31892 (sync_new_add<mode>): Likewise.
31893 (sync_new_sub<mode>): Likewise.
31894 (sync_<optab><mode>): Likewise.
31895 (sync_old_<optab><mode>): Likewise.
31896 (sync_new_<optab><mode>): Likewise.
31897 (sync_nand<mode>): Likewise.
31898 (sync_old_nand<mode>): Likewise.
31899 (sync_new_nand<mode>): Likewise.
31900 (sync_lock_test_and_set<mode>): Likewise.
31901 (test_and_set_12): Likewise.
31902 (atomic_compare_and_swap<mode>): Likewise.
31903 (atomic_exchange<mode>_llsc): Likewise.
31904 (atomic_fetch_add<mode>_llsc): Likewise.
31905 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31906 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31907 (umips_save_restore_pattern_p): Likewise.
31908 (umips_load_store_pair_p): Likewise.
31909 (umips_output_load_store_pair): Likewise.
31910 (umips_movep_target_p): Likewise.
31911 (umips_12bit_offset_address_p): Likewise.
31912 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31913 (mips_base_mips16): Rename this...
31914 (mips_base_compression_flags): ...to this. Update all uses.
31915 (mips_attribute_table): Add micromips, nomicromips and nocompression.
31916 (mips_mips16_decl_p): Delete.
31917 (mips_nomips16_decl_p): Delete.
31918 (mips_get_compress_on_flags): New function.
31919 (mips_get_compress_off_flags): New function.
31920 (mips_get_compress_mode): New function.
31921 (mips_get_compress_on_name): New function.
31922 (mips_get_compress_off_name): New function.
31923 (mips_insert_attributes): Support multiple compression types.
31924 (mips_merge_decl_attributes): Likewise.
31925 (umips_12bit_offset_address_p): New function.
31926 (mips_start_function_definition): Emit .set micromips directive.
31927 (mips_call_may_need_jalx_p): New function.
31928 (mips_function_ok_for_sibcall): Add microMIPS support.
31929 (mips_print_operand_punctuation): Support short delay slots and
31931 (umips_swm_mask, umips_swm_encoding): New.
31932 (umips_build_save_restore): New function.
31933 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31934 (was_mips16_p): Remove.
31935 (old_compression_mode): New.
31936 (mips_set_compression_mode): New function.
31937 (mips_set_current_function): Add microMIPS support.
31938 (mips_option_override): Likewise.
31939 (umips_save_restore_pattern_p): New function.
31940 (umips_output_save_restore): New function.
31941 (umips_load_store_pair_p_1): New function.
31942 (umips_load_store_pair_p): New function.
31943 (umips_output_load_store_pair_1): New function.
31944 (umips_output_load_store_pair): New function.
31945 (umips_movep_target_p) New function.
31946 (mips_prepare_pch_save): Add microMIPS support.
31947 * config/mips/mips.h (TARGET_COMPRESSION): New.
31948 (TARGET_CPU_CPP_BUILTINS): Update macro
31949 to use new compression flags and to support microMIPS.
31950 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31951 (MIPS_ARCH_FLOAT_SPEC): Likewise.
31952 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31953 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31954 (ASM_SPEC): Support mmicromips and mno-micromips.
31955 (M16STORE_REG_P): New macro.
31956 (MIPS_CALL): Support TARGET_MICROMIPS.
31957 (MICROMIPS_J): New macro.
31958 (mips_base_mips16): Rename this...
31959 (mips_base_compression_flags): ...to this.
31960 (UMIPS_12BIT_OFFSET_P): New macro.
31961 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31962 (MULTILIB_DIRNAMES): Likewise.
31964 2013-02-24 Jakub Jelinek <jakub@redhat.com>
31967 * target-globals.c (save_target_globals): For init_reg_sets and
31968 target_reinit remporarily set this_fn_optabs to this_target_optabs.
31970 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
31972 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
31973 * config/aarch64/t-aarch64
31974 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
31976 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
31978 PR inline-asm/56148
31979 * lra-constraints.c (process_alt_operands): Reload operand
31980 conflicting with earlier clobber only if no more other conflicting
31983 2013-02-22 Jakub Jelinek <jakub@redhat.com>
31986 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
31987 if not linking a shared library.
31989 2013-02-22 Seth LaForge <sethml@google.com>
31991 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
31993 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
31995 * config/arm/arm.md (split for extendsidi): Update condition.
31996 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
31997 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
31998 (qhs_zextenddi_cstr): Likewise.
32000 2013-02-21 Jakub Jelinek <jakub@redhat.com>
32002 PR middle-end/56420
32003 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
32004 avoid signed wrapping.
32005 (expand_mult): Handle properly multiplication by
32006 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
32007 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
32008 in the compiler if coeff is HOST_WIDE_INT_MIN.
32009 (expand_divmod): Don't make ext_op1 static, change it's type to
32010 uhwi. Avoid undefined behavior in -INTVAL (op1).
32012 PR rtl-optimization/50339
32013 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
32015 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
32016 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
32017 into splitting_ashiftrt field.
32018 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
32020 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
32023 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
32025 PR middle-end/56108
32026 * trans-mem.c (execute_tm_mark): Do not expand transactions that
32027 are sure to go irrevocable.
32029 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
32031 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
32032 scalars are valid operands.
32034 2013-02-21 Martin Jambor <mjambor@suse.cz>
32036 PR tree-optimization/56310
32037 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
32038 only matching indices and non-negative final offsets.
32039 (intersect_aggregates_with_edge): Pass src_idx to
32040 agg_replacements_to_vector. Pass src_idx insstead of index to
32041 intersect_with_agg_replacements.
32043 2013-02-21 Martin Jambor <mjambor@suse.cz>
32045 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
32046 instead of hard-wired defaults.
32048 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
32050 * doc/invoke.texi (MIPS Options): Update documentation of the
32051 floating-point multiply-accumulate instruction restrictions.
32053 2013-02-21 Kostya Serebryany <kcc@google.com>
32055 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
32056 asan_shadow_offset on x86_64 linux.
32058 2013-02-21 Richard Biener <rguenther@suse.de>
32060 PR tree-optimization/56415
32062 2013-02-11 Richard Biener <rguenther@suse.de>
32064 PR tree-optimization/56273
32065 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32068 2013-02-21 Jakub Jelinek <jakub@redhat.com>
32071 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
32074 PR inline-asm/56405
32075 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
32076 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
32078 2013-02-20 Jan Hubicka <jh@suse.cz>
32080 PR tree-optimization/56265
32081 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
32082 when target is referenced for first time.
32084 2013-02-20 Richard Biener <rguenther@suse.de>
32086 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
32087 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
32088 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
32089 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
32090 not return anything.
32091 (rename_ssa_copies): Do not remove unused locals.
32092 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
32093 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
32094 * passes.c (execute_function_todo): Do not schedule unused locals
32095 removal if cleanup_tree_cfg did something.
32096 * tree-ssa-live.c (remove_unused_locals): Dump statistics
32097 about the number of removed locals.
32099 2013-02-20 Richard Biener <rguenther@suse.de>
32101 PR tree-optimization/56398
32102 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
32104 2013-02-20 Martin Jambor <mjambor@suse.cz>
32106 PR tree-optimization/55334
32107 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
32108 restricted pointers to arrays.
32110 2013-02-20 Richard Biener <rguenther@suse.de>
32111 Jakub Jelinek <jakub@redhat.com>
32113 PR tree-optimization/56396
32114 * tree-ssa-ccp.c (n_const_val): New static variable.
32115 (get_value): Return NULL for SSA names we don't have a lattice
32117 (ccp_initialize): Initialize n_const_val.
32118 * tree-ssa-copy.c (n_copy_of): New static variable.
32119 (init_copy_prop): Initialize n_copy_of.
32120 (get_value): Return NULL_TREE for SSA names we don't have a
32123 2013-02-20 Martin Jambor <mjambor@suse.cz>
32125 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
32127 2013-02-20 Richard Biener <rguenther@suse.de>
32129 * genpreds.c (write_lookup_constraint): Do not compare first
32130 letter of the constraint again.
32132 2013-02-20 Richard Biener <rguenther@suse.de>
32134 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
32136 (get_use_iv_cost): Terminate hashtable walk when coming across
32139 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
32141 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
32142 reassociation for avx2 targets.
32144 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32146 * config/microblaze/microblaze.c: microblaze_has_clz = 0
32147 Add version check for v8.10.a to enable microblaze_has_clz
32148 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
32149 version and TARGET_PATTERN_COMPARE check
32150 * config/microblaze/microblaze.md: New clzsi2 instruction
32152 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32154 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
32155 function before branching.
32157 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
32159 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
32161 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
32163 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
32165 PR middle-end/55889
32166 * sel-sched.c: Include ira.h.
32167 (implicit_clobber_conflict_p): New function.
32168 (moveup_expr): Use it.
32169 * Makefile.in (sel-sched.o): Depend on ira.h.
32171 2013-02-19 Richard Biener <rguenther@suse.de>
32173 PR tree-optimization/56384
32174 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
32175 (vn_hash_type): Split out from ...
32176 (vn_hash_constant_with_type): ... here.
32177 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
32178 (vn_phi_eq): Compare types from vn_phi_s structure.
32179 (vn_phi_lookup): Populate vn_phi_s type.
32180 (vn_phi_insert): Likewise.
32182 2013-02-19 Jakub Jelinek <jakub@redhat.com>
32184 PR tree-optimization/56350
32185 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
32186 if haven't found reduction or nested cycle operand, rather than
32187 asserting we must find it.
32189 PR tree-optimization/56381
32190 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
32193 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
32194 Jakub Jelinek <jakub@redhat.com>
32197 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
32198 (swap_optab_enable): Same.
32199 (init_all_optabs): Use argument instead of global.
32200 * tree.h (struct tree_optimization_option): New field target_optabs.
32201 * expr.h (init_all_optabs): Add argument to prototype.
32202 (TREE_OPTIMIZATION_OPTABS): New.
32203 (save_optabs_if_changed): Protoize.
32204 * optabs.h: Declare this_fn_optabs.
32205 * optabs.c (save_optabs_if_changed): New.
32206 Declare this_fn_optabs.
32207 (init_optabs): Add argument to init_all_optabs() call.
32208 * function.c (invoke_set_current_function_hook): Handle per
32210 * function.h (struct function): New field optabs.
32211 * config/mips/mips.c (mips_set_mips16_mode): Handle when
32212 optimization_current_node has changed.
32213 * target-globals.h (save_target_globals_default_opts): Protoize.
32214 * target-globals.c (save_target_globals_default_opts): New.
32216 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32219 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
32220 registers %fr12 and %fr12R as call used.
32223 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
32224 and HImode, require all displacements to be an integer multiple of
32226 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
32227 only allow QImode and HImode when reload is in progress and strict is
32228 true. Likewise for symbolic addresses. Use base14_operand to check
32229 displacements in REG+BASE addresses.
32231 2013-02-18 Richard Biener <rguenther@suse.de>
32233 PR tree-optimization/56366
32234 * tree-vect-loop.c (get_initial_def_for_induction): Properly
32235 handle sign-conversion of outer-loop initial induction value.
32237 2013-02-18 Richard Biener <rguenther@suse.de>
32239 PR middle-end/56349
32240 * cfghooks.c (merge_blocks): If we merge a latch into another
32241 block adjust references to it.
32242 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
32243 (verify_loop_structure): Verify that a recorded latch is in fact
32246 2013-02-18 Richard Biener <rguenther@suse.de>
32248 PR tree-optimization/56321
32249 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
32250 order SSA name release and virtual operand unlinking.
32252 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32254 * config/microblaze/microblaze.md (save_stack_block): Define.
32255 (restore_stack_block): Likewise.
32257 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32259 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
32260 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
32261 * config/microblaze/microblaze.c (microblaze_option_override):
32262 Bail out early for PIC modes when target does not support PIC.
32264 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32266 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
32267 Replace with a microblaze version.
32268 (microblaze_trampoline_init): Adapt for microblaze.
32269 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
32272 2013-02-16 Jakub Jelinek <jakub@redhat.com>
32273 Dodji Seketeli <dodji@redhat.com>
32276 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
32277 (instrument_mem_region_access): Do not forget to always put
32278 instrumentation of the of 'base' and 'base + len' in a "if (len !=
32279 0) statement, even for cases where either 'base' or 'base + len'
32280 are not instrumented -- because they have been previously
32281 instrumented. Simplify the logic by putting all the statements
32282 instrument 'base + len' inside a sequence, and then insert that
32283 sequence right before the current insertion point. Then, to
32284 instrument 'base + len', just get an iterator on that statement.
32285 And do not forget to update the pointer to iterator the function
32286 received as argument.
32288 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
32290 PR rtl-optimization/56348
32291 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
32293 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
32295 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
32296 (clean_graph_dump_file): Pass base to start_graph_dump.
32298 2013-02-14 Richard Henderson <rth@redhat.com>
32301 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
32303 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
32305 * collect2-aix.h: Define F_LOADONLY.
32307 2013-02-14 Richard Biener <rguenther@suse.de>
32310 * varasm.c (output_constant_def_1): Get the decl representing
32311 the constant as argument.
32312 (output_constant_def): Wrap output_constant_def_1.
32313 (make_decl_rtl): Use output_constant_def_1 with the decl
32314 representing the constant.
32315 (build_constant_desc): Optionally re-use a decl already
32316 representing the constant.
32317 (tree_output_constant_def): Adjust.
32319 2013-02-14 Dodji Seketeli <dodji@redhat.com>
32322 * asan.c (instrument_builtin_call): Really put the length of the
32323 second source argument into src1_len.
32325 2013-02-13 Jakub Jelinek <jakub@redhat.com>
32327 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
32328 argument. If it is false, don't create edge from then_bb to
32330 (insert_if_then_before_iter): Pass true to it.
32331 (build_check_stmt): Pass false to it.
32332 (transform_statements): Flush hash table only on extended basic
32333 block boundaries, rather than at the beginning of every bb.
32334 Don't flush hash table on nonfreeing_call_p calls.
32335 * tree-flow.h (nonfreeing_call_p): New prototype.
32336 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
32338 2013-02-13 David S. Miller <davem@davemloft.net>
32340 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
32342 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
32345 * ira.c (max_regno_before_ira): Move from ...
32347 (fix_reg_equiv_init): Use max_regno_before_ira instead of
32350 2013-02-13 Jakub Jelinek <jakub@redhat.com>
32352 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
32354 2013-02-13 Richard Biener <rguenther@suse.de>
32357 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
32358 globals in MEM_REFs.
32360 2013-02-13 Richard Biener <rguenther@suse.de>
32362 * loop-init.c (loop_optimizer_init): Clear loop state when
32363 re-initializing preserved loops.
32364 * loop-unswitch.c (unswitch_single_loop): Return whether
32365 we unswitched the loop. Do not verify loop state here.
32366 (unswitch_loops): When we unswitched a loop discover new loops.
32368 2013-02-13 Kostya Serebryany <kcc@google.com>
32370 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
32372 * sanitizer.def: Rename __asan_init to __asan_init_v1.
32374 2013-02-12 Dodji Seketeli <dodji@redhat.com>
32376 Avoid instrumenting duplicated memory access in the same basic block
32377 * Makefile.in (asan.o): Add new dependency on hash-table.h
32378 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
32379 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
32380 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
32381 (free_mem_ref_resources, has_mem_ref_been_instrumented)
32382 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
32383 (get_mem_ref_of_assignment): New functions.
32384 (get_mem_refs_of_builtin_call): Extract from
32385 instrument_builtin_call and tweak a little bit to make it fit with
32387 (instrument_builtin_call): Use the new
32388 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
32389 of is_gimple_builtin_call.
32390 (instrument_derefs, instrument_mem_region_access): Insert the
32391 instrumented memory reference into the hash table.
32392 (maybe_instrument_assignment): Renamed instrument_assignment into
32393 this, and change it to advance the iterator when instrumentation
32394 actually happened and return true in that case. This makes it
32395 homogeneous with maybe_instrument_assignment, and thus give a
32396 chance to callers to be more 'regular'.
32397 (transform_statements): Clear the memory reference hash table
32398 whenever we enter a new BB, when we cross a function call, or when
32399 we are done transforming statements. Use
32400 maybe_instrument_assignment instead of instrumentation. No more
32401 need to special case maybe_instrument_assignment and advance the
32402 iterator after calling it; it's now handled just like
32403 maybe_instrument_call. Update comment.
32405 2013-02-13 Richard Biener <rguenther@suse.de>
32407 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
32408 Fix loop discovery code.
32410 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
32412 PR inline-asm/56148
32413 * lra-constraints.c (process_alt_operands): Match early clobber
32414 operand with itself. Check conflicts with earlyclobber only if
32415 the operand is not reloaded. Prefer to reload conflicting operand
32416 if earlyclobber and matching operands are the same.
32418 2013-02-12 Richard Biener <rguenther@suse.de>
32421 * lto-streamer-out.c (write_symbol): Do not output symbols
32422 for hard register variables.
32424 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
32427 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
32428 (umulsidi3_insn, mulsidi3_insn): New insns.
32430 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
32432 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
32433 (struct tune_params): Add vec_costs field.
32434 * config/arm/arm.c (arm_builtin_vectorization_cost)
32435 (arm_add_stmt_cost): New functions.
32436 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
32437 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
32438 (arm_default_vec_cost): New struct of type cpu_vec_costs.
32439 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
32440 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
32441 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
32442 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
32444 2013-02-12 Richard Biener <rguenther@suse.de>
32447 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
32448 decls again if possible.
32450 2013-02-12 Richard Biener <rguenther@suse.de>
32452 PR middle-end/56288
32453 * tree-ssa.c (verify_ssa_name): Fix check, move
32454 SSA_NAME_IN_FREE_LIST check up.
32456 2013-02-12 Jakub Jelinek <jakub@redhat.com>
32457 Steven Bosscher <steven@gcc.gnu.org>
32459 PR rtl-optimization/56151
32460 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
32461 equal to op0 or op1, and last_insn pattern is CODE operation
32462 with MEM dest and one of the operands matches that MEM.
32464 2013-02-11 Sriraman Tallam <tmsriram@google.com>
32466 * doc/extend.texi: Document Function Multiversioning and "default"
32467 parameter string to target attribute.
32468 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
32469 target attribute parameter is "default".
32470 (ix86_compare_version_priority): Remove checks for target attribute.
32471 (ix86_mangle_function_version_assembler_name): Change error to sorry.
32472 Remove check for target attribute equal to NULL. Add assert.
32473 (ix86_generate_version_dispatcher_body): Change error to sorry.
32475 2013-02-11 Iain Sandoe <iain@codesourcery.com>
32476 Jack Howarth <howarth@bromo.med.uc.edu>
32477 Patrick Marlier <patrick.marlier@gmail.com>
32480 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
32481 define ENDFILE_SPEC as TM_DESTRUCTOR.
32482 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
32484 2013-02-11 Alexander Potapenko <glider@google.com>
32485 Jack Howarth <howarth@bromo.med.uc.edu>
32486 Jakub Jelinek <jakub@redhat.com>
32489 * config/darwin.c (cdtor_record): Rename ctor_record.
32490 (sort_cdtor_records): Rename sort_ctor_records.
32491 (finalize_dtors): New routine to sort destructors by
32492 priority before use in assemble_integer.
32493 (machopic_asm_out_destructor): Use finalize_dtors if needed.
32495 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
32497 PR rtl-optimization/56275
32498 * simplify-rtx.c (avoid_constant_pool_reference): Check that
32499 offset is non-negative and less than cmode size before
32500 calling simplify_subreg.
32502 2013-02-11 Richard Biener <rguenther@suse.de>
32504 PR tree-optimization/56264
32505 * cfgloop.h (fix_loop_structure): Adjust prototype.
32506 * loop-init.c (fix_loop_structure): Return the number of
32507 newly discovered loops.
32508 * tree-cfgcleanup.c (repair_loop_structures): When new loops
32509 are discovered, do a full loop-closed SSA rewrite.
32511 2013-02-11 Richard Biener <rguenther@suse.de>
32513 PR tree-optimization/56273
32514 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
32516 (check_array_ref): Fix missing newline in dumps.
32517 (search_for_addr_array): Likewise.
32519 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
32521 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
32523 2013-02-09 Jakub Jelinek <jakub@redhat.com>
32526 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
32528 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
32530 PR rtl-optimization/56246
32531 * lra-constraints.c (simplify_operand_subreg): Try to reuse
32533 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
32534 constraints are satisfied.
32536 2013-02-08 Jeff Law <law@redhat.com>
32539 * emit-rtl.c (reg_is_parm_p): New function.
32540 * regs.h (reg_is_parm_p): New prototype.
32541 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
32542 callee-clobbered registers.
32544 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
32547 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
32548 If there is no implicit builtin declaration, just return NULL.
32550 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
32552 * config/i386/sse.md (FMAMODEM): New mode iterator.
32553 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
32554 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
32556 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
32558 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
32559 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
32560 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
32562 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
32564 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
32565 (microblaze*-*-elf): Likewise.
32566 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
32568 * config/microblaze/microblaze-c.c: Add builtin defines for
32569 _LITTLE_ENDIAN and _BIG_ENDIAN.
32570 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
32571 add to TARGET_DEFAULT flags.
32572 Expand ASM_SPEC and LINK_SPEC.
32573 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
32574 * config/microblaze/microblaze.md: Update extendsidi2 and
32575 movdi_internal instructions to use low-order / high-order reg
32577 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
32578 options and inversemask / mask of LITTLE_ENDIAN.
32579 * config/microblaze/t-microblaze: Expand multilib options to
32580 include mlittle-endian (le) and update exceptions patterns.
32582 2013-02-08 Jakub Jelinek <jakub@redhat.com>
32584 PR rtl-optimization/56195
32585 * lra-constraints.c (get_reload_reg): Don't reuse regs
32586 if they have smaller mode than requested, if they have
32587 wider mode than requested, try to return a SUBREG.
32589 PR tree-optimization/56250
32590 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
32591 if type is unsigned and code isn't MULT_EXPR.
32593 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
32595 PR tree-optimization/56064
32596 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
32597 bits according to mode.
32598 * fixed-value.h (fixed_from_double_int)
32599 (const_fixed_from_double_int): Adjust comments.
32601 2013-02-08 Richard Biener <rguenther@suse.de>
32604 * lto-streamer.h (struct data_in): Remove current_file, current_line
32605 and current_col members.
32606 * lto-streamer-out.c (lto_output_location): Stream changed bits
32607 en-block for efficiency.
32608 * lto-streamer-in.c (clear_line_info): Remove.
32609 (lto_input_location): Cache current file, line and column
32610 globally via local statics. Read changed bits en-block.
32611 (input_function): Do not call clear_line_info.
32612 (lto_read_body): Likewise.
32613 (lto_input_toplevel_asms): Likewise.
32615 2013-02-08 Michael Matz <matz@suse.de>
32617 PR tree-optimization/52448
32618 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
32619 (nt_call_phase): New static.
32620 (add_or_mark_expr): Only mark accesses with newer phase than any
32622 (nonfreeing_call_p): New.
32623 (nt_init_block): Update nt_call_phase, mark blocks as visited.
32624 (nt_fini_block): Keep blocks marked as visited.
32625 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
32627 2013-02-08 Richard Biener <rguenther@suse.de>
32629 * ira.c (ira): Free broken dominator information.
32631 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
32633 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
32635 2013-02-08 Marek Polacek <polacek@redhat.com>
32637 * cfgloop.c (verify_loop_structure): Add more checking of headers.
32639 2013-02-08 Richard Biener <rguenther@suse.de>
32641 PR middle-end/56181
32642 * cfgloop.h (flow_loops_find): Adjust.
32643 (bb_loop_header_p): Declare.
32644 * cfgloop.c (bb_loop_header_p): New function split out from ...
32645 (flow_loops_find): ... here. Adjust function signature,
32646 support incremental loop structure update.
32647 (verify_loop_structure): Cleanup. Verify a loop is a loop.
32648 * cfgloopmanip.c (fix_loop_structure): Move ...
32649 * loop-init.c (fix_loop_structure): ... here.
32650 (apply_loop_flags): Split out from ...
32651 (loop_optimizer_init): ... here.
32652 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
32653 in incremental mode, only remove dead loops here.
32655 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
32658 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
32659 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
32660 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
32661 (*round<mode>3.libgcc): New insns for fixed-modes.
32662 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
32663 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
32664 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
32665 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
32666 implementations. Define to __builtin_avr_absFX,
32667 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
32668 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
32669 __builtin_avr_countlsFX, respectively.
32670 * config/avr/avr-c.c (target.h): Include it.
32671 (enum avr_builtin_id): New enum.
32672 (avr_resolve_overloaded_builtin): New static function.
32673 (avr_register_target_pragmas): Use it to set
32674 targetm.resolve_overloaded_builtin.
32675 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
32676 tree nodes used by DEF_BUILTIN.
32677 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
32678 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
32679 <AVR_BUILTIN_xxBITS>: Same.
32681 2013-02-08 Richard Biener <rguenther@suse.de>
32683 * cfgloop.c (verify_loop_structure): Properly handle
32684 a loop exiting to another loop header.
32685 * ira-int.h (ira_loops): Remove.
32686 * ira.c (ira_loops): Remove.
32687 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
32688 (do_reload): Use loop_optimizer_finalize.
32689 * ira-build.c (create_loop_tree_nodes): Use get_loops and
32690 number_of_loops to access the loop tree.
32691 (more_one_region_p): Likewise.
32692 (finish_loop_tree_nodes): Likewise.
32693 (rebuild_regno_allocno_maps): Likewise.
32694 (mark_loops_for_removal): Likewise.
32695 (mark_all_loops_for_removal): Likewise.
32696 (remove_unnecessary_regions): Likewise.
32697 (ira_build): Likewise.
32698 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
32700 2013-02-08 Richard Biener <rguenther@suse.de>
32702 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
32703 * ipa-pure-const.c (analyze_function): Avoid calling
32704 mark_irreducible_loops twice.
32705 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
32707 2013-02-07 David S. Miller <davem@davemloft.net>
32709 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
32711 * var-tracking.c (vt_add_function_parameter): Test the presence of
32712 HAVE_window_save properly and do not remap argument registers when
32713 we have a leaf function.
32715 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
32718 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
32720 * config/i386/i386.c (ix86_print_operand): Ditto.
32722 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
32724 * lra-constraints.c (process_alt_operands): Fix recently added comment.
32726 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
32728 PR rtl-optimization/56225
32729 * lra-constraints.c (process_alt_operands): Check that reload hard
32730 reg can hold value for strict_low_part.
32732 2013-02-07 Jakub Jelinek <jakub@redhat.com>
32735 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
32736 dwarf2out_end_function.
32737 (in_first_function_p, maybe_at_text_label_p,
32738 first_loclabel_num_not_at_text_label): New variables.
32739 (dwarf2out_var_location): In the first function find out
32740 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
32741 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
32744 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
32746 PR rtl-optimization/56178
32747 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
32748 SUBREG of a register. Tidy up related block of code.
32749 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
32750 note if the source is a register or a SUBREG of a register.
32752 2013-02-07 Jakub Jelinek <jakub@redhat.com>
32755 * config/rs6000/rs6000.md (ptrm): New mode attr.
32756 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
32757 call_value_indirect_aix<pttrsize>,
32758 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
32761 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
32763 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
32764 if -bnortl. Convert to strcmp and strncmp.
32766 2013-02-07 Alan Modra <amodra@gmail.com>
32769 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
32770 addresses won't wrap when offsetting.
32771 (rs6000_secondary_reload): Provide secondary reloads needed for
32772 wrapping LO_SUM addresses.
32774 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
32776 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
32777 MACH, just __MACH__.
32779 2013-02-06 Richard Biener <rguenther@suse.de>
32781 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
32782 instead of calling fix_loop_structure.
32784 2013-02-06 Jakub Jelinek <jakub@redhat.com>
32786 PR middle-end/56217
32787 * omp-low.c (use_pointer_for_field): Return false if
32788 lower_send_shared_vars doesn't generate any copy-out code.
32790 2013-02-06 Tom de Vries <tom@codesourcery.com>
32792 PR rtl-optimization/56131
32793 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
32794 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
32795 of the label is NULL. Add comment.
32797 2013-02-05 Jakub Jelinek <jakub@redhat.com>
32799 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
32802 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
32803 (STATIC_LIBTSAN_LIBS): Likewise.
32804 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
32805 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
32806 is defined, don't add anything else beyond that.
32807 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
32808 (LINK_COMMAND_SPEC): Use them.
32810 PR tree-optimization/56205
32811 * tree-stdarg.c (check_all_va_list_escapes): Return true if
32812 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
32813 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
32815 2013-02-05 Richard Biener <rguenther@suse.de>
32817 PR tree-optimization/53342
32818 PR tree-optimization/53185
32819 * tree-vectorizer.h (vect_check_strided_load): Remove.
32820 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
32821 not disallow peeling for vectorized strided loads.
32822 (vect_check_strided_load): Make static and simplify.
32823 (vect_analyze_data_refs): Adjust.
32824 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
32825 correctly when vectorizing strided loads.
32827 2013-02-05 Richard Biener <rguenther@suse.de>
32829 * doc/install.texi: Refer to ISL, not PPL.
32831 2013-02-05 Jan Hubicka <jh@suse.cz>
32833 PR tree-optimization/55789
32834 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
32836 2013-02-05 Jan Hubicka <jh@suse.cz>
32838 PR tree-optimization/55789
32839 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
32840 the dead call anyway.
32842 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
32845 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
32847 2013-02-04 Alexander Potapenko <glider@google.com>
32848 Jack Howarth <howarth@bromo.med.uc.edu>
32849 Jakub Jelinek <jakub@redhat.com>
32852 * config/darwin.c (sort_ctor_records): Stabilized qsort
32853 on constructor priority by using original position.
32854 (finalize_ctors): New routine to sort constructors by
32855 priority before use in assemble_integer.
32856 (machopic_asm_out_constructor): Use finalize_ctors if needed.
32858 2013-02-04 Jakub Jelinek <jakub@redhat.com>
32861 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
32862 about visibility on artificial decls.
32863 * config/sol2.c (solaris_assemble_visibility): Likewise.
32865 2013-02-04 Kai Tietz <ktietz@redhat.com>
32868 * config/i386/i386.c (function_value_ms_64): Add additional valtype
32869 argument and improve checking of return-argument types for 16-byte
32871 (ix86_function_value_1): Add additional valtype argument on call
32872 of function_value_64.
32873 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
32874 handling infunction_value_64 function.
32876 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
32878 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
32880 2013-02-04 Richard Biener <rguenther@suse.de>
32882 PR tree-optimization/56188
32883 * tree-ssa-structalias.c (label_visit): Consider case with
32884 initially non-empty points-to set.
32885 (perform_var_substitution): Dump node mapping and clean up.
32887 2013-02-04 Richard Guenther <rguenther@suse.de>
32890 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
32891 node prevail as last resort.
32892 (lto_symtab_merge_decls): Remove guard on LTRANS here.
32893 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
32895 2013-02-04 Richard Biener <rguenther@suse.de>
32897 PR tree-optimization/56113
32898 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
32900 (equiv_class_lookup_or_add): ... this.
32901 (label_visit): Adjust and fix error in previous patch.
32902 (perform_var_substitution): Adjust.
32904 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
32906 * config/sh/divtab.c: Fix formatting and comments throughout the file.
32907 * config/sh/sh4-300.md: Likewise.
32908 * config/sh/sh4a.md: Likewise.
32909 * config/sh/constraints.md: Likewise.
32910 * config/sh/sh.md: Likewise.
32911 * config/sh/netbsd-elf.h: Likewise.
32912 * config/sh/predicates.md: Likewise.
32913 * config/sh/sh-protos.h: Likewise.
32914 * config/sh/ushmedia.h: Likewise.
32915 * config/sh/linux.h: Likewise.
32916 * config/sh/sh.c: Likewise.
32917 * config/sh/superh.h: Likewise.
32918 * config/sh/elf.h: Likewise.
32919 * config/sh/sh4.md: Likewise.
32920 * config/sh/sh.h: Likewise.
32922 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32924 * config/pa/constraints.md: Adjust unused letters. Change "T"
32925 constraint to match_test floating_point_store_memory_operand().
32926 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
32927 (base14_operand): New.
32928 (floating_point_store_memory_operand): New.
32929 (integer_store_memory_operand): Revise to use base14_operand and
32930 reg_plus_base_memory_operand.
32931 (move_dest_operand): Allow symbolic_memory_operands.
32932 (symbolic_memory_operand): Check for LO_SOM.
32933 (symbolic_operand): Change default case to break.
32934 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
32935 CONST_DOUBLE values to be reloaded by putting them into memory when
32936 the destination is a floating point register.
32937 (movdf): Remove code to handle CONST_DOUBLE.
32939 (reload_indf_r1): New.
32940 (reload_insf_r1): New.
32941 Consistently use "Q" and "T" constraints with integer and floating
32942 point move instructions, respectively.
32943 (movdi): Remove FAIL.
32944 Change predicate for source operand unamed DImode move from
32945 general_operand to move_src_operand.
32946 (umulsidi3): Change predicate for destination operand to
32948 Likewise for similar unamed patterns.
32949 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
32950 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
32951 (hppa_legitimize_address): Simplify mask calculation.
32952 (pa_emit_move_sequence): Revised handling of secondary reloads from
32953 REG+D addresses for floating point loads and stores. Directly handle
32954 loading CONST0_RTX (mode) to a floating point register.
32955 (pa_secondary_reload): Handle reloading DF and SFmode constant values
32956 to floating point registers. Don't restrict secondary reloads to
32957 floating point registers to integer modes. Revise some comments and
32959 (TARGET_LEGITIMATE_ADDRESS_P): Define.
32960 (pa_legitimate_address_p): New.
32961 (pa_legitimize_reload_address): New.
32962 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
32963 (STRICT_REG_OK_FOR_BASE_P): New.
32964 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
32965 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
32967 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
32968 Andrew Dixie <andrewd@gentrack.com>
32970 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
32973 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
32975 * expmed.c (extract_bit_field_1): Pass the full width of the
32976 structure to get_best_reg_extraction_insn.
32978 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
32981 * configure.ac (use_cxa_atexit): Add AIX.
32982 * configure: Regenerate.
32984 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
32986 2013-02-01 Jakub Jelinek <jakub@redhat.com>
32989 * final.c (need_profile_function): New variable.
32990 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
32991 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
32992 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
32993 notes, targetm.asm_out.function_prologue doesn't emit anything,
32994 HAVE_prologue and profiler should be emitted before prologue,
32995 set need_profile_function instead of emitting it.
32996 (final_scan_insn): If need_profile_function, emit
32997 profile_function on the first NOTE_INSN_BASIC_BLOCK or
32998 NOTE_INSN_FUNCTION_BEG note.
33000 2013-02-01 Richard Henderson <rth@redhat.com>
33002 * config/rs6000/rs6000.md (smulditi3): New.
33005 * config/alpha/alpha.md (umulditi3): New.
33007 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
33009 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
33010 (ASM_OUTPUT_ALIGNED_LOCAL): New.
33012 2013-02-01 Richard Biener <rguenther@suse.de>
33014 PR tree-optimization/56113
33015 * tree-ssa-structalias.c (label_visit): Reduce work for
33016 single-predecessor nodes.
33018 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
33020 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
33021 range isn't testing for zero.
33023 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
33025 PR middle-end/56113
33026 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
33028 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
33029 Nick Clifton <nickc@redhat.com>
33031 * config/v850/constraints.md (Q): Define as a memory constraint.
33032 * config/v850/predicates.md (label_ref_operand): New predicate.
33033 (e3v5_shift_operand): New predicate.
33034 (ior_operator): New predicate.
33035 * config/v850/t-v850: Add e3v5 multilib.
33036 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
33037 (v850_gen_movdi): Prototype.
33038 * config/v850/v850.c: Add support for e3v5 architecture.
33039 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
33041 (construct_save_jarl): Add e3v5 long JARL support.
33042 (v850_adjust_insn_length): New function. Adjust length of call
33043 insns when using e3v5 instructions.
33044 (v850_gen_movdi): New function: Generate instructions to move a
33046 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
33047 (CPP_SPEC): Define __v850e3v5__ as appropriate.
33048 (TARGET_USE_FPU): Enable for e3v5.
33049 (CONST_OK_FOR_W): New macro.
33050 (ADJUST_INSN_LENGTH): Define.
33051 * config/v850/v850.md (UNSPEC_LOOP): Define.
33052 (attr cpu): Add v850e3v5.
33053 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
33054 (movdi): New pattern.
33055 (movdi_internal): New pattern.
33056 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
33057 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
33058 (cstoresf4): Likewise.
33059 (cstoredf4): Likewise.
33060 (insv): New pattern.
33061 (rotlso3_a): New pattern.
33062 (rotlsi3_b): New pattern
33063 (rotlsi3_v850e3v5): New pattern.
33064 (doloop_begin): New pattern.
33065 (fix_loop_counter): New pattern.
33066 (doloop_end): New pattern.
33067 (branch_normal): Add e3v5 long branch support.
33068 (branch_invert): Likewise.
33069 (branch_z_normal): Likewise.
33070 (branch_z_invert): Likewise.
33071 (branch_nz_normal): Likewise.
33072 (branch_nz_invert): Likewise.
33073 (call_internal_short): Add e3v5 register-indirect JARL support.
33074 (call_internal_long): Likewise.
33075 (call_value_internal_short): Likewise.
33076 (call_value_internal_long): Likewise.
33077 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
33078 (mloop): New option.
33079 * config.gcc: Add support for configuring v840e3v5 target.
33080 * doc/invoke.texi: Document new v850 specific command line options.
33082 2013-01-31 Paul Koning <ni1d@arrl.net>
33086 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
33087 children if parent is a class.
33088 (prune_unused_types_prune): Don't add DW_AT_declaration.
33090 2013-01-31 Richard Biener <rguenther@suse.de>
33092 PR tree-optimization/56157
33093 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
33094 match up operand with SLP child.
33096 2013-01-31 Jason Merrill <jason@redhat.com>
33099 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
33100 parameters the first time.
33101 (gen_scheduled_generic_parms_dies): Check completeness here.
33103 2013-01-31 Richard Biener <rguenther@suse.de>
33105 PR middle-end/53073
33106 * common.opt (faggressive-loop-optimizations): New flag,
33107 enabled by default.
33108 * doc/invoke.texi (faggressive-loop-optimizations): Document.
33109 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
33110 infer_loop_bounds_from_undefined by it.
33112 2013-01-31 Richard Biener <rguenther@suse.de>
33114 PR tree-optimization/56150
33115 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
33116 visit virtual operands.
33117 (find_uses_to_rename_bb): Likewise.
33119 2013-01-31 Richard Biener <rguenther@suse.de>
33121 PR tree-optimization/56150
33122 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
33123 mixed store non-store stmts.
33125 2013-01-30 Jakub Jelinek <jakub@redhat.com>
33128 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
33129 LIBASAN_EARLY_SPEC is defined.
33130 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
33131 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
33133 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
33136 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
33137 invalid args instead of ICEing on it.
33138 (ix86_valid_target_attribute_tree): Return error_mark_node if
33139 ix86_valid_target_attribute_inner_p failed.
33140 (ix86_valid_target_attribute_p): Return false only if
33141 ix86_valid_target_attribute_tree returned error_mark_node. Allow
33142 target("default") attribute.
33143 (sorted_attr_string): Change argument from const char * to tree,
33144 merge in all target attribute arguments rather than just one.
33145 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
33146 instead of free. Avoid using strcat.
33147 (ix86_mangle_function_version_assembler_name): Mangle
33148 target("default") as if no target attribute is present. Adjust
33149 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
33150 instead of xmalloc and XDELETEVEC instead of free.
33151 (ix86_function_versions): Don't return true if one of the decls
33152 doesn't have target attribute. If they don't and one of the decls
33153 is DECL_FUNCTION_VERSIONED, report an error. Adjust
33154 sorted_attr_string caller. Use XDELETEVEC instead of free.
33155 (ix86_supports_function_versions): Remove.
33156 (make_name): Fix up formatting.
33157 (make_dispatcher_decl): Remove resolver_name and its initialization.
33158 Avoid leaking memory.
33159 (is_function_default_version): Return true if there is
33160 target("default") attribute rather than no target attribute at all.
33161 (make_resolver_func): Avoid leaking memory.
33162 (ix86_generate_version_dispatcher_body): Likewise.
33163 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
33164 * target.def (supports_function_versions): Remove.
33165 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
33166 * doc/tm.texi: Regenerated.
33168 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
33170 PR rtl-optimization/56144
33171 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
33172 for values with side effects.
33174 2013-01-30 Richard Biener <rguenther@suse.de>
33176 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
33177 (sparseset_pop): Likewise.
33178 * cfganal.c (compute_idf): Likewise. Increase work-stack size
33179 to be able to use quick_push in the worker loop.
33181 2013-01-30 Marek Polacek <polacek@redhat.com>
33183 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
33185 2013-01-30 Richard Biener <rguenther@suse.de>
33188 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
33190 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
33192 PR tree-optimization/56064
33193 * fixed-value.c (fixed_from_double_int): New function.
33194 * fixed-value.h (fixed_from_double_int): New prototype.
33195 (const_fixed_from_double_int): New static inline function.
33196 * fold-const.c (native_interpret_fixed): New static function.
33197 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
33198 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
33199 (native_encode_fixed): New static function.
33200 (native_encode_expr) <FIXED_CST>: Use it.
33201 (native_interpret_int): Move double_int worker code to...
33202 * double-int.c (double_int::from_buffer): ...this new static method.
33203 * double-int.h (double_int::from_buffer): Prototype it.
33205 2013-01-30 Richard Biener <rguenther@suse.de>
33207 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
33208 New pointer-map and obstack.
33209 (init_alias_vars): Allocate pointer-map and obstack.
33210 (delete_points_to_sets): Free them.
33211 (find_what_var_points_to): Cache result.
33212 (find_what_p_points_to): Adjust for changed interface of
33213 find_what_var_points_to.
33214 (compute_points_to_sets): Likewise.
33215 (ipa_pta_execute): Likewise.
33217 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33219 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
33220 * configure: Regenerate.
33221 * config.in: Regenerate.
33222 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
33223 #nobits/#progbits if supported.
33225 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
33228 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
33229 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
33230 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
33232 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33234 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
33235 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
33237 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33239 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
33240 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
33242 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33244 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
33246 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
33247 * config/arm/cortex-a7.md: New bypasses using
33248 arm_mac_accumulator_is_result.
33250 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33252 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
33253 (cortex_a7_neon_mla): Likewise.
33254 (cortex_a7_fpfmad): New reservation.
33255 (cortex_a7_fpmacs): Use ffmas and update required units.
33256 (cortex_a7_fpmuld): Update required units and latency.
33257 (cortex_a7_fpmacd): Likewise.
33258 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
33259 (cortex_a7_neon). Likewise.
33260 (bypass) Update participating units.
33262 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
33264 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
33265 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
33267 * config/arm/vfp11.md (vfp_farith): Use ffmas.
33268 (vfp_fmul): Use ffmad.
33269 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
33270 (cortex_r4_fmacd): Use ffmad.
33271 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
33272 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
33273 (cortex_a9_fmacd): Use ffmad.
33274 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
33275 (cortex_a8_vfp_macd): Use ffmad.
33276 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
33277 (cortex_a5_fpmacd): Use ffmad.
33278 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
33279 (cortex_a15_vfp_macd): Use ffmad.
33280 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
33282 2013-01-29 Jason Merrill <jason@redhat.com>
33285 * varasm.c (default_assemble_visibility): Don't warn about
33286 visibility on artificial decls.
33288 2013-01-29 Richard Biener <rguenther@suse.de>
33290 PR tree-optimization/56113
33291 * tree-ssa-structalias.c (equiv_class_lookup): Also return
33293 (label_visit): Free duplicate bitmaps and record the leader instead.
33294 (perform_var_substitution): Adjust.
33296 2013-01-29 Richard Biener <rguenther@suse.de>
33298 PR tree-optimization/55270
33299 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
33300 the CFG, schedule loops for fixup.
33302 2013-01-29 Nick Clifton <nickc@redhat.com>
33304 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
33307 2013-01-28 Leif Ekblad <leif@rdos.net>
33309 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
33310 * config/i386/i386.h (TARGET_RDOS): New macro.
33311 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
33312 * config/i386/i386.c (ix86_option_override_internal): For 64bit
33313 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
33314 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
33315 DEFAULT_LARGE_SECTION_THRESHOLD.
33316 * config/i386/i386.md (R14_REG, R15_REG): New constants.
33317 * config/i386/rdos.h: New file.
33318 * config/i386/rdos64.h: New file.
33320 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
33323 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
33326 2013-01-28 Jakub Jelinek <jakub@redhat.com>
33328 PR rtl-optimization/56117
33329 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
33330 call cselib_lookup_from_insn on the MEM before calling
33331 add_insn_mem_dependence.
33333 2013-01-28 Richard Biener <rguenther@suse.de>
33335 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
33336 to a stmt that didn't have one.
33337 (copy_phis_for_bb): Likewise for PHI arguments.
33338 (copy_debug_stmt): Likewise for debug stmts.
33340 2013-01-28 Richard Biener <rguenther@suse.de>
33342 PR tree-optimization/56034
33343 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
33344 (partition_builtin_p): Adjust.
33345 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
33346 it is the last partition.
33347 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
33348 up the vertex for the definition.
33349 (classify_partition): Classify whether a partition is a
33350 PKIND_REDUCTION, thus has uses outside of the loop.
33351 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
33352 Merge all PKIND_REDUCTION partitions into the last partition.
33353 (tree_loop_distribution): Seed partitions from reductions as well.
33355 2013-01-28 Jakub Jelinek <jakub@redhat.com>
33357 PR tree-optimization/56125
33358 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
33359 pow(x,c) into sqrt(x) * powi(x, n/2) or
33360 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
33361 optimizing for size.
33362 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
33363 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
33366 PR tree-optimization/56094
33367 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
33368 to UNKNOWN_LOCATION while gimplifying expr.
33370 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
33373 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
33374 operand 0 in movabs insn template for -masm=intel asm alternative.
33375 (*movabs<mode>_2): Ditto for operand 1.
33377 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
33380 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
33383 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33385 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
33388 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33390 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
33391 Undef to avoid warning.
33393 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
33395 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
33396 * configure: Regenerate.
33398 2013-01-25 Jakub Jelinek <jakub@redhat.com>
33400 PR tree-optimization/56098
33401 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
33402 for stmts with volatile ops.
33403 (cond_store_replacement): Don't optimize if assign has volatile ops.
33404 (cond_if_else_store_replacement_1): Don't optimize if either
33405 then_assign or else_assign have volatile ops.
33406 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
33409 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33411 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
33413 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33415 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
33416 missing ':' in asm example.
33418 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
33420 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
33421 entries into lane and laneq entries.
33422 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
33423 Remove AdvSIMD scalar modes.
33424 (aarch64_sq<r>dmulh_laneq<mode>): New.
33425 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
33427 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
33428 builtin implementations to relfect changes in RTL in aarch64-simd.md.
33429 * config/aarch64/iterators.md (VCOND): New.
33432 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
33435 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
33436 Add NULL LIBNAME argument to existing definitions.
33437 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
33438 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
33439 * config/avr/avr.c (DEF_BUILTIN): Same.
33440 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
33441 (avr_expand_builtin): Expand to a vanilla call if a libgcc
33442 implementation is available (DECL_ASSEMBLER_NAME is set).
33443 (avr_fold_absfx): New static function.
33444 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
33445 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
33446 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
33447 AVR_BUILTIN_ABSLLK.
33448 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
33449 (abshk, absk, abslk, absllk): Provide as static inline functions.
33451 2013-01-25 Marek Polacek <polacek@redhat.com>
33453 PR tree-optimization/56035
33454 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
33456 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
33458 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
33459 (*movtf_internal_rex64): Add (!o,C) alternative
33460 (*movxf_internal_rex64): Ditto.
33461 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
33463 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
33465 * doc/invoke.texi: fix typo.
33466 * doc/objc.texi: fix typo.
33468 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
33470 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
33471 for the first two alternatives.
33473 2013-01-24 Diego Novillo <dnovillo@google.com>
33475 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
33476 (ggc-zone.o): Remove.
33477 * configure.ac: Remove option --with-gc.
33478 * configure: Re-generate.
33479 * doc/install.texi: Remove documentation for --with-gc.
33480 * gengtype.c (write_enum_defn): Remove. Update all users.
33481 (write_Types_process_field): Remove generation of gt_e_* argument.
33482 (output_type_enum): Remove. Update all users.
33483 (write_enum_defn): Remove. Update all users.
33484 (enum alloc_zone): Remove. Update all users.
33485 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
33486 * ggc-common.c (ggc_splay_alloc): Remove first argument.
33487 Update all callers.
33488 (struct ptr_data): Remove field TYPE. Update all users.
33489 (gt_pch_note_object): Remove argument TYPE. Update all users.
33490 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
33492 * ggc-none.c (ggc_alloc_typed_stat): Remove.
33493 (struct alloc_zone): Remove.
33494 (ggc_internal_alloc_zone_stat): Remove.
33495 (ggc_internal_cleared_alloc_zone_stat): Remove.
33496 * ggc-page.c (ggc_alloc_typed_stat): Remove.
33497 (ggc_pch_count_object): Remove last argument. Update all users.
33498 (ggc_pch_alloc_object): Remove last argument. Update all users.
33499 (struct alloc_zone): Remove.
33500 * ggc-zone.c: Remove.
33501 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
33502 (struct alloc_zone): Remove.
33503 (ggc_alloc_typed_stat): Remove.
33504 (ggc_alloc_typed): Remove.
33505 (ggc_splay_alloc): Remove first argument.
33506 (rtl_zone): Remove. Update all users.
33507 (tree_zone): Remove. Update all users.
33508 (tree_id_zone): Remove. Update all users.
33509 (ggc_internal_zone_alloc_stat): Remove. Update all users.
33510 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
33511 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
33512 * tree-ssanames.c: Remove references to zone allocator in comments.
33514 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
33516 * config/avr/avr.c (avr_out_fract): Make register numbers that
33517 might be outside of source operand signed.
33519 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
33521 * config/i386/constraints.md (Yf): New constraint.
33522 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
33523 of f constraint to conditionaly disable x87 register preferences.
33524 (*movdf_internal): Ditto.
33525 (*movsf_internal): Ditto.
33527 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
33529 PR inline-asm/55934
33530 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
33531 that have operands with impossible constraints.
33532 Add a FIXME for a speed-up opportunity.
33533 * lra-constraints.c (process_alt_operands): Verify that a class
33534 selected from constraints on asms is valid for the operand mode.
33535 (curr_insn_transform): Remove incorrect comment.
33537 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
33539 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
33540 TOC operand is a valid symbol ref in the constant pool.
33542 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33544 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
33546 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
33549 * config/avr/stdfix.h: New file.
33550 * t-avr (stdfix-gcc.h): New rule to build it.
33551 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
33553 2013-01-23 Kostya Serebryany <kcc@google.com>
33555 * config/darwin.h: remove dependency on
33556 CoreFoundation (asan on Mac OS).
33558 2013-01-23 Jakub Jelinek <jakub@redhat.com>
33561 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
33562 instead of cmpdi_operand for first comparison operand.
33563 Don't assert that comparison operands aren't both constants.
33565 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
33567 * doc/install.texi (Downloading the Source): Update references to
33568 downloading separate components.
33570 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
33572 * doc/extend.texi (__int128): Improve grammar.
33574 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
33577 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
33578 alternative to (o,r).
33579 (*movdi_internal_rex64): Remove (!o,n) alternative.
33580 (DImode immediate->memory splitter): Remove.
33581 (DImode immediate->memory peephole2): Remove.
33582 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
33583 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
33584 alternative to (!o,*r).
33585 (*movtf_internal_sse): New pattern.
33586 (*movxf_internal_rex64): New pattern.
33587 (*movxf_internal): Disable for TARGET_64BIT.
33588 (*movdf_internal_rex64): Remove (!o,F) alternative.
33590 2013-01-22 Jakub Jelinek <jakub@redhat.com>
33592 PR middle-end/56074
33593 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
33594 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
33595 * tree-vect-loop-manip.c (find_loop_location): Also ignore
33596 stmt locations where LOCATION_LOCUS of the stmt location is
33597 UNKNOWN_LOCATION or BUILTINS_LOCATION.
33600 * config/i386/i386.md (UNSPEC_STOS): New.
33601 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
33602 *strsetqi_1): Add UNSPEC_STOS.
33604 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
33607 * doc/invoke.texi: Remove left over -Wsynth example.
33609 2013-01-21 Jakub Jelinek <jakub@redhat.com>
33611 PR tree-optimization/56051
33612 * fold-const.c (fold_binary_loc): Don't fold
33613 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
33614 a narrowing conversion, or widening conversion from signed
33617 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
33619 PR rtl-optimization/56023
33620 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
33621 dependent on debug instruction.
33623 2013-01-21 Martin Jambor <mjambor@suse.cz>
33625 PR middle-end/56022
33626 * function.c (allocate_struct_function): Call
33627 invoke_set_current_function_hook earlier.
33629 2013-01-21 Jakub Jelinek <jakub@redhat.com>
33631 * reload1.c (init_reload): Only initialize reload_obstack
33632 during the first call.
33634 2013-01-21 Marek Polacek <polacek@redhat.com>
33636 * cfgloop.c (verify_loop_structure): Fix up grammar.
33638 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
33640 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
33641 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
33643 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33646 * config/arm/marvell-pj4.md: Update copyright year.
33647 Fix up use of alu to alu_reg and simple_alu_imm.
33649 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
33651 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
33653 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
33656 * lra-constraints.c (curr_insn_transform): Don't reuse original
33657 insn for secondary memory move when memory mode should be different.
33659 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33661 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
33662 atomic_storedi_1): New patterns.
33664 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
33666 btver2 pipeline descriptions.
33667 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
33669 * config/i386/i386.md (btver2_decode): New type attributes.
33670 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
33672 * config/i386/btver2.md: New file describing btver2 pipelines.
33674 2013-01-19 Andrew Pinski <apinski@cavium.com>
33676 PR tree-optimization/52631
33677 * tree-ssa-sccvn (visit_use): Before looking up the original
33678 statement, try looking up the simplified expression.
33680 2013-01-19 Anthony Green <green@moxielogic.com>
33682 * config/moxie/moxie.c (moxie_expand_prologue): Set
33683 current_function_static_stack_size.
33685 2013-01-18 Jakub Jelinek <jakub@redhat.com>
33687 PR tree-optimization/56029
33688 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
33689 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
33691 2013-01-18 Sharad Singhai <singhai@google.com>
33693 PR tree-optimization/55995
33694 * dumpfile.c (dump_loc): Print location only if available.
33695 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
33697 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
33700 * lra-constraints.c (curr_insn_transform): Reuse original insn for
33701 secondary memory move.
33702 (inherit_reload_reg): Use rclass instead of cl for
33703 check_secondary_memory_needed_p.
33705 2013-01-18 Jakub Jelinek <jakub@redhat.com>
33707 PR middle-end/56015
33708 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
33709 the case where writing real complex part of target modifies op1.
33711 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
33713 * config/aarch64/aarch64-simd.md
33714 (aarch64_vcond_internal<mode>): Handle unordered cases.
33715 * config/aarch64/iterators.md (v_cmp_result): New.
33717 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
33718 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33720 * config/arm/marvell-pj4.md: New file.
33721 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
33722 * config/arm/arm.md (generic_sched): Add marvell_pj4.
33723 (generic_vfp): Likewise.
33724 * config/arm/arm-cores.def: Add marvell-pj4.
33725 * config/arm/arm-tune.md: Regenerate.
33726 * config/arm/arm-tables.opt: Regenerate.
33727 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
33728 * doc/invoke.texi: Document marvell-pj4.
33730 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
33732 * config/aarch64/arm_neon.h: Map scalar types to standard types.
33734 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
33739 * var-tracking.c (negative_power_of_two_p): New.
33740 (global_get_addr_cache, local_get_addr_cache): New.
33741 (get_addr_from_global_cache, get_addr_from_local_cache): New.
33742 (vt_canonicalize_addr): Rewrite using the above. Adjust the
33744 (vt_stack_offset_p): Remove.
33745 (vt_canon_true_dep): Always canonicalize loc's address.
33746 (clobber_overlapping_mems): Make sure we have a MEM.
33747 (local_get_addr_clear_given_value): New.
33748 (val_reset): Clear local cached entries.
33749 (compute_bb_dataflow): Create and release the local cache.
33750 Disable duplicate MEMs clobbering.
33751 (emit_notes_in_bb): Clobber MEMs likewise.
33752 (vt_emit_notes): Create and release the local cache.
33753 (vt_initialize, vt_finalize): Create and release the global
33754 cache, respectively.
33755 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
33757 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
33759 PR libmudflap/53359
33760 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
33761 not found in the symtab.
33763 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
33766 PR rtl-optimization/55547
33767 PR rtl-optimization/53827
33770 * alias.c (offset_overlap_p): New, factored out of...
33771 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
33772 the conservative special case for symbolic constants. Don't
33773 adjust zero sizes on alignment.
33775 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
33777 PR rtl-optimization/52573
33778 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
33779 REG_UNUSED for the same register.
33781 2013-01-17 Richard Biener <rguenther@suse.de>
33782 Marek Polacek <polacek@redhat.com>
33784 PR rtl-optimization/55833
33785 * loop-unswitch.c (unswitch_loops): Move loop verification...
33786 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
33787 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
33788 Set it to true when we're removing a loop from hierarchy tree in
33789 an irreducible region.
33790 (fix_bb_placements): Adjust caller.
33791 (fix_loop_placements): Likewise.
33793 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
33795 * config/avr/builtins.def (DEF_BUILTIN): Factor out
33796 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
33797 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
33798 Remove ID. Adjust comments.
33799 * config/avr/avr-c.c (avr_builtin_name): Remove.
33800 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
33801 * config/avr/avr.c (avr_tolower): New static function.
33802 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
33803 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
33804 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
33807 2013-01-17 Jan Hubicka <jh@suse.cz>
33809 PR tree-optimization/55273
33810 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
33812 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
33815 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
33816 store through atomic_store<mode>_1.
33817 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
33819 2013-01-17 Martin Jambor <mjambor@suse.cz>
33821 PR tree-optimizations/55264
33822 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
33823 for virtual methods.
33824 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
33825 virtual methods before inlining is over.
33826 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
33828 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
33831 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
33833 PR rtl-optimization/56005
33834 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
33835 pending reads for prefetch.
33837 2013-01-16 Ian Bolton <ian.bolton@arm.com>
33839 * config/aarch64/aarch64.md
33840 (*cstoresi_neg_uxtw): New pattern.
33841 (*cmovsi_insn_uxtw): New pattern.
33842 (*<optab>si3_uxtw): New pattern.
33843 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
33844 (*<optab>si3_insn_uxtw): New pattern.
33845 (*bswapsi2_uxtw): New pattern.
33847 2013-01-16 Richard Biener <rguenther@suse.de>
33849 * tree-inline.c (tree_function_versioning): Remove set but
33850 never used variable.
33852 2013-01-16 Richard Biener <rguenther@suse.de>
33854 PR tree-optimization/55964
33855 * tree-flow.h (rename_variables_in_loop): Remove.
33856 (rename_variables_in_bb): Likewise.
33857 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
33858 (copy_loop_before): Adjust and delete update-ssa status.
33859 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
33860 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
33861 (rename_variables_in_loop): Remove.
33862 (slpeel_update_phis_for_duplicate_loop): Likewise.
33863 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
33864 use available cfg machinery instead of duplicating it.
33865 Update PHI nodes and perform poor-mans SSA update here.
33866 (slpeel_tree_peel_loop_to_edge): Adjust.
33868 2013-01-16 Richard Biener <rguenther@suse.de>
33870 PR tree-optimization/54767
33871 PR tree-optimization/53465
33872 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
33873 (vrp_visit_phi_node): For PHI arguments coming via backedges
33874 drop all symbolical range information.
33875 (execute_vrp): Compute backedges.
33877 2013-01-16 Richard Biener <rguenther@suse.de>
33879 * doc/install.texi: Update CLooG and ISL requirements to
33882 2013-01-16 Christian Bruel <christian.bruel@st.com>
33885 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
33886 (broken_move): Handle UNSPECV_SP_SWITCH_B.
33887 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
33889 2013-01-16 DJ Delorie <dj@redhat.com>
33891 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
33892 (UNSPECV_SP_SWITCH_E): New.
33893 (sp_switch_1): Change to an unspec.
33894 (sp_switch_2): Change to an unspec. Don't use post-inc when we
33897 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
33899 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
33900 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
33901 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
33902 (expand_mem_thread_fence): Ditto.
33903 (expand_mem_signal_fence): Ditto.
33904 (expand_atomic_load): Ditto.
33905 (expand_atomic_store): Ditto.
33907 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
33909 PR rtl-optimization/55547
33910 PR rtl-optimization/53827
33913 * alias.c (memrefs_conflict_p): Set sizes to negative after
33916 2013-01-15 Jakub Jelinek <jakub@redhat.com>
33919 * function.c (thread_prologue_and_epilogue_insns): Always
33920 add crtl->drap_reg to set_up_by_prologue.set, even if
33921 stack_realign_drap is false.
33923 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
33925 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
33926 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
33927 *call): Fix indention.
33929 2013-01-15 Tom de Vries <tom@codesourcery.com>
33932 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
33935 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
33937 PR rtl-optimization/55153
33938 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
33940 2013-01-15 Martin Jambor <mjambor@suse.cz>
33942 PR tree-optimization/55920
33943 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
33944 accesses as grp_to_be_debug_replaced.
33946 2013-01-15 Jakub Jelinek <jakub@redhat.com>
33948 PR tree-optimization/55920
33949 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
33950 there is non-useless type conversion needed from debug rhs to lhs,
33951 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
33953 2013-01-15 Joseph Myers <joseph@codesourcery.com>
33954 Mikael Pettersson <mikpe@it.uu.se>
33957 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
33959 (ASM_OUTPUT_CASE_LABEL): Remove.
33960 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
33961 * final.c (shorten_branches): Update alignment of labels before
33962 jump tables if CASE_VECTOR_SHORTEN_MODE.
33964 2013-01-15 Richard Biener <rguenther@suse.de>
33967 * system.h: Do not include gmp.h for building host tools.
33969 2013-01-15 Richard Biener <rguenther@suse.de>
33971 PR middle-end/55882
33972 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
33973 account for bitpos when computing alignment.
33975 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
33977 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
33978 (ix86_target_macros_internal): Likewise.
33980 * config/i386/i386.c (m_CORE2I7): Removed.
33981 (m_CORE_HASWELL): New macro.
33982 (m_CORE_ALL): Likewise.
33983 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
33984 (initial_ix86_arch_features): Likewise.
33985 (processor_target_table): Initializations for Core avx2.
33986 (cpu_names): New names "core-avx2".
33987 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
33988 PROCESSOR_CORE_HASWELL.
33989 (ix86_issue_rate): New case.
33990 (ia32_multipass_dfa_lookahead): Likewise.
33991 (ix86_sched_init_global): Likewise.
33993 * config/i386/i386.h (TARGET_HASWELL): New macro.
33994 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
33995 (processor_type): New PROCESSOR_HASWELL.
33997 2013-01-15 Jakub Jelinek <jakub@redhat.com>
33999 PR tree-optimization/55955
34000 * tree-vect-loop.c (vectorizable_reduction): Give up early on
34001 *SHIFT_EXPR and *ROTATE_EXPR codes.
34003 PR tree-optimization/48766
34004 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
34005 -ftrapv disable -fwrapv.
34007 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
34010 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
34011 etc. to 1 and not to __flash.
34012 Use LL suffix for __INT24_MAX__ with -mint8.
34013 Use ULL suffix for __UINT24_MAX__ with -mint8.
34015 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
34017 * config/avr/avr-arch.h
34018 (struct base_arch_s): Use typedef avr_arch_t instead.
34019 (struct arch_info_s): Use typedef avr_arch_info_t instead.
34020 (struct mcu_type_s): Use typedef avr_mcu_t instead.
34021 * config/avr/avr.c: Same.
34022 * config/avr/avr-devices.c: Same.
34023 * config/avr/driver-avr.c: Same.
34024 * config/avr/gen-avr-mmcu-texi.c: Same.
34025 * config/avr/avr-mcus.def: Adjust comment.
34027 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
34029 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
34030 * config/aarch64/iterators.md (VALLDI): New.
34032 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
34033 Andi Kleen <ak@linux.intel.com>
34036 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
34037 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
34040 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
34042 * config/avr/avr-stdint.h: Remove trailing blanks.
34043 * config/avr/avr-log.h: Same.
34044 * config/avr/avr-arch.h: Same.
34045 * config/avr/avr-devices.c: Same.
34046 * config/avr/avr-dimode.md: Same.
34047 * config/avr/predicates.md: Same.
34048 * config/avr/avr-c.c: Same. And fix typo.
34050 * config/avr/avr-protos.h: Same. And:
34051 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
34052 (init_cumulative_args): Rename to avr_init_cumulative_args.
34053 (expand_prologue): Rename to avr_expand_prologue.
34054 (expand_epilogue): Rename to avr_expand_epilogue.
34055 (adjust_insn_length): Rename to avr_adjust_insn_length.
34056 (notice_update_cc): Rename to avr_notice_update_cc.
34057 (final_prescan_insn): Rename to avr_final_prescan_insn.
34058 * config/avr/avr.c: Same.
34059 * config/avr/avr.h: Same.
34060 * config/avr/avr.md: Remove trailing blanks.
34061 (prologue): Use avr_expand_prologue.
34062 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
34064 2013-01-14 Richard Biener <rguenther@suse.de>
34066 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
34067 verify_location, collect_subblocks): New functions.
34068 (verify_gimple_in_cfg): Verify that locations only reference
34069 BLOCKs in the functions BLOCK tree.
34071 2013-01-14 Richard Biener <rguenther@suse.de>
34073 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
34075 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
34077 (insert_out_of_ssa_copy_on_edge): Likewise.
34078 (rewrite_close_phi_out_of_ssa): Likewise.
34079 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
34081 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
34082 propagated constants.
34083 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
34086 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
34088 * config/avr/avr-modes.def: Add GPL copyright notice.
34090 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
34092 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
34093 MEMMODEL_MASK to determine memory model.
34094 (atomic_store<mode>): Ditto from operands[2].
34095 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
34097 2013-01-13 Jakub Jelinek <jakub@redhat.com>
34100 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
34101 (fold_gimple_assign): Don't call unshare_expr here.
34102 (fold_ctor_reference): Call unshare_expr.
34104 2013-01-13 Terry Guo <terry.guo@arm.com>
34106 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
34107 * doc/fragments.texi: Document MULTILIB_REUSE.
34108 * gcc.c (multilib_reuse): New internal spec.
34109 (set_multilib_dir): Also search multilib from multilib_reuse.
34110 * genmultilib (tmpmultilib3): Refactor code.
34111 (tmpmultilib4): Ditto.
34112 (multilib_reuse): New multilib argument.
34114 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
34116 * Makefile.in: Update copyright.
34118 2013-01-12 Tom de Vries <tom@codesourcery.com>
34120 PR middle-end/55890
34121 * calls.c (expand_call): Check if arg_nr is valid.
34123 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
34125 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
34126 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
34127 documentation. Add missing '__' in front of
34128 __builtin_ia32_packssdw256.
34130 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34133 * config/s390/s390.c (s390_preferred_reload_class): Do not return
34134 NO_REGS for larl operands.
34135 (s390_reload_larl_operand): Use s390_load_address instead of
34138 2013-01-11 Richard Biener <rguenther@suse.de>
34140 * tree-cfg.c (verify_node_sharing_1): Split out from ...
34141 (verify_node_sharing): ... here.
34142 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
34144 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
34146 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
34147 Substitute TREECHECKING.
34148 * configure: Regenerate.
34149 * Makefile.in (TREECHECKING): New.
34151 2013-01-11 Richard Guenther <rguenther@suse.de>
34153 PR tree-optimization/44061
34154 * tree-vrp.c (extract_range_basic): Compute zero as
34155 value-range for __builtin_constant_p of function parameters.
34157 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
34159 Update copyright years.
34161 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
34163 PR rtl-optimization/55672
34164 * lra-eliminations.c (mark_not_eliminable): Permit addition with
34165 const to be eliminable.
34167 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
34169 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
34170 * configure: Regenerate.
34172 2013-01-10 Richard Biener <rguenther@suse.de>
34174 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
34176 2013-01-10 Richard Biener <rguenther@suse.de>
34179 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
34180 locations for virtual PHI arguments.
34181 (rewrite_update_phi_arguments): Likewise.
34183 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
34185 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
34188 2013-01-10 Jakub Jelinek <jakub@redhat.com>
34190 PR tree-optimization/55921
34191 * tree-complex.c (expand_complex_asm): New function.
34192 (expand_complex_operations_1): Call it for GIMPLE_ASM.
34194 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34197 * config/s390/s390.c (s390_symref_operand_p)
34198 (s390_loadrelative_operand_p): Merge the two functions.
34199 (s390_check_qrst_address, print_operand_address): Add parameters
34200 to s390_loadrelative_operand_p invokation.
34201 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
34202 (s390_reload_larl_operand, s390_secondary_reload): Use
34203 s390_loadrelative_operand_p instead of s390_symref_operand_p.
34204 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
34206 2013-01-09 Mike Stump <mikestump@comcast.net>
34208 * dse.c (record_store): Remove unnecessary assert.
34210 2013-01-09 Jan Hubicka <jh@suse.cz>
34212 PR tree-optimization/55569
34213 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
34214 * cfgloop.h (scale_loop_profile): Likewise.
34216 2013-01-09 Jan Hubicka <jh@suse.cz>
34219 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
34221 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
34223 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
34225 PR middle-end/55114
34226 * expr.h (maybe_emit_group_store): Declare.
34227 * expr.c (maybe_emit_group_store): New function.
34228 * builtins.c (expand_builtin_int_roundingfn): Call it.
34229 (expand_builtin_int_roundingfn_2): Likewise.
34231 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
34233 PR rtl-optimization/55829
34234 * lra-constraints.c (match_reload): Add code for absent output.
34235 (curr_insn_transform): Add code for reloads of matched inputs
34238 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
34240 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
34241 attribute of movddup insn to DF.
34242 (*vec_interleave_lowv2df): Ditto.
34243 (vec_dupv2df): Ditto.
34245 2013-01-09 Jan Hubicka <jh@suse.cz>
34247 PR tree-optimiation/55875
34248 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
34249 EVERY_ITERATION parameter.
34250 (number_of_iterations_exit): Check if exit is executed every iteration.
34251 (idx_infer_loop_bounds): Similarly here.
34252 (n_of_executions_at_most): Simplify
34253 to only test for cases where statement is dominated by the
34254 particular bound; handle correctly the "postdominance" test.
34255 (scev_probably_wraps_p): Use max loop iterations info
34256 as a global bound first.
34258 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
34259 Nick Clifton <nickc@redhat.com>
34261 * config/v850/v850.md (cbranchsf4): New pattern.
34262 (cstoresf4): New pattern.
34263 (cbranchdf4): New pattern.
34264 (cstoredf4): New pattern.
34265 (movsicc): Disallow floating point comparisons.
34266 (cmpsf_le_insn): Fix order of operators.
34267 (cmpsf_lt_insn): Likewise.
34268 (cmpsf_eq_insn): Likewise.
34269 (cmpdf_le_insn): Likewise.
34270 (cmpdf_lt_insn): Likewise.
34271 (cmpdf_eq_insn): Likewise.
34272 (cmpsf_ge_insn): Use LE comparison.
34273 (cmpdf_ge_insn): Likewise.
34274 (cmpsf_gt_insn): Use LT comparison.
34275 (cmpdf_gt_insn): Likewise.
34276 (cmpsf_ne_insn): Delete pattern.
34277 (cmpdf_ne_insn): Delete pattern.
34278 * config/v850/v850.c (v850_gen_float_compare): Use
34279 gen_cmpdf_eq_insn for NE comparison.
34280 (v850_float_z_comparison_operator)
34281 (v850_float_nz_comparison_operator): Move from here ...
34282 * config/v850/predicates.md: ... to here. Move GT and GE
34283 comparisons into v850_float_z_comparison_operator.
34284 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
34286 (v850_float_nz_comparison_operator): Likewise.
34288 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34290 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
34291 with calls to gen_insvsi/gen_insvdi.
34293 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
34295 * config/i386/i386.c (initial_ix86_tune_features): Set up
34296 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
34298 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
34299 Jakub Jelinek <jakub@redhat.com>
34301 PR tree-optimization/48189
34302 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
34303 If nitercst is 0, don't predict the exit edge.
34305 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34307 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
34308 in asm_fprintf with reg_names.
34309 (aarch64_print_operand_address): Likewise.
34310 (aarch64_return_addr): Likewise.
34311 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
34313 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34315 * config/pa/pa.h (VAL_U6_BITS_P): Define.
34316 (INT_U6_BITS): Likewise.
34317 * config/pa/predicates.md (uint6_operand): New predicate.
34318 (shift5_operand, shift6_operand): Likewise.
34319 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
34321 (lshrdi3): Use shift6_operand.
34322 (shrpsi4, shrpdi4): New insn patterns.
34323 (extzv): Delete expander.
34324 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
34325 predicates in unamed zero extract patterns. Tighten common constraint.
34326 (extv): Delete expander.
34327 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
34328 predicates in unamed sign extract patterns. Tighten common constraint.
34329 (insv): Delete expander.
34330 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
34331 predicates in unamed insert patterns. Tighten common constraint.
34332 Change uint32_operand predicate to uint6_operand predicate in unamed
34333 DImode pattern to insert constant values of type 1...1xxxx.
34335 2013-01-04 Jan Hubicka <jh@suse.cz>
34337 PR tree-optimization/55823
34338 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
34341 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34342 Uros Bizjak <ubizjak@gmail.com>
34344 PR rtl-optimization/55845
34345 * df-problems.c (can_move_insns_across): Stop scanning at
34346 volatile_insn_p source instruction or give up if
34347 across_from .. across_to range contains any volatile_insn_p
34350 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
34352 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
34353 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
34355 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
34356 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
34358 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34361 * asan.c (asan_clear_shadow): New function.
34362 (asan_emit_stack_protection): Use it.
34364 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
34366 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
34367 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
34368 with tab instead of space.
34370 2013-01-08 Nick Clifton <nickc@redhat.com>
34372 * config/rl78/rl78.c (rl78_expand_prologue): Always select
34373 register bank 0 at the start of an interrupt handler.
34374 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
34377 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
34379 * config/aarch64/aarch64-simd.md
34380 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
34381 (aarch64_simd_bsl): Likewise.
34382 (aarch64_vcond_internal<mode>): Likewise.
34383 (vcond<mode><mode>): Likewise.
34384 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
34385 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
34387 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
34389 * config/aarch64/aarch64-builtins.c
34390 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
34392 2013-01-08 Martin Jambor <mjambor@suse.cz>
34395 * tree-sra.c (analyze_access_subtree): Return true also after
34396 potentially creating a debug-only replacement.
34398 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34400 PR middle-end/55890
34401 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
34403 PR tree-optimization/54120
34404 * tree-vrp.c (range_fits_type_p): Don't allow
34405 src_precision < precision from signed vr to unsigned_p
34406 if vr->min or vr->max is negative.
34407 (simplify_float_conversion_using_ranges): Test can_float_p
34408 against CODE_FOR_nothing.
34410 2013-01-08 Jakub Jelinek <jakub@redhat.com>
34411 Richard Biener <rguenther@suse.de>
34413 PR middle-end/55851
34414 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
34415 types instead of just INTEGER_TYPE types.
34417 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
34419 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
34422 2013-01-07 Steve Ellcey <sellcey@mips.com>
34425 * config/mips/mips.opt: Change mad to mmad to match documentation.
34427 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34430 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
34431 .progmemx.data now.
34433 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34436 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
34437 (avr_addrspace_t): Add .section_name field.
34438 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
34440 (avr_addrspace): Same. Initialize .section_name. Remove last
34441 NULL entry. Put __memx into .progmemx.data.
34442 (progmem_section_prefix): Remove.
34443 (avr_asm_init_sections): No need to initialize progmem_section.
34444 (avr_asm_named_section): Use avr_addrspace[].section_name to get
34445 section name prefix.
34446 (avr_asm_select_section): Ditto. And use get_unnamed_section to
34447 retrieve the progmem section.
34448 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
34449 boundary to run over avr_addrspace[].
34450 (avr_register_target_pragmas): Ditto.
34452 2013-01-06 Jakub Jelinek <jakub@redhat.com>
34454 * varasm.c (output_constant_def_contents): For asan_protect_global
34455 protected strings, adjust DECL_ALIGN if needed, before testing for
34457 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
34458 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
34460 (output_object_block): For asan protected decls, emit asan padding
34461 after their contents.
34462 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
34463 (asan_finish_file): Test it here instead.
34465 2013-01-07 Nick Clifton <nickc@redhat.com>
34466 Matthias Klose <doko@debian.org>
34467 Doug Kwan <dougkwan@google.com>
34468 H.J. Lu <hongjiu.lu@intel.com>
34471 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
34473 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
34475 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
34477 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
34479 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
34481 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34484 * doc/install.texi (Cross-Compiler-Specific Options): Document
34487 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
34489 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
34490 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
34491 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
34492 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
34493 vqmovun_high_s64): Fix source operand number and update copyright.
34495 2013-01-07 Richard Biener <rguenther@suse.de>
34497 PR middle-end/55890
34498 * gimple.h (gimple_call_builtin_p): New overload.
34499 * gimple.c (validate_call): New function.
34500 (gimple_call_builtin_p): Likewise.
34501 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34502 Use gimple_call_builtin_p.
34503 (find_func_clobbers): Likewise.
34504 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
34505 (strlen_optimize_stmt): Likewise.
34507 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
34509 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
34510 (vld1q_dup_*): Likewise.
34511 (vld1_*): Likewise.
34512 (vld1q_*): Likewise.
34513 (vld1_lane_*): Likewise.
34514 (vld1q_lane_*): Likewise.
34516 2013-01-07 Richard Biener <rguenther@suse.de>
34518 * lto-streamer.h (LTO_minor_version): Bump to 2.
34520 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
34522 * config/aarch64/aarch64-protos.h
34523 (aarch64_const_double_zero_rtx_p): Rename to...
34524 (aarch64_float_const_zero_rtx_p): ...this.
34525 (aarch64_float_const_representable_p): New.
34526 (aarch64_output_simd_mov_immediate): Likewise.
34527 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
34528 move immediate case.
34529 * config/aarch64/aarch64.c
34530 (aarch64_const_double_zero_rtx_p): Rename to...
34531 (aarch64_float_const_zero_rtx_p): ...this.
34532 (aarch64_print_operand): Allow printing of new constants.
34533 (aarch64_valid_floating_const): New.
34534 (aarch64_legitimate_constant_p): Check for valid floating-point
34536 (aarch64_simd_valid_immediate): Likewise.
34537 (aarch64_vect_float_const_representable_p): New.
34538 (aarch64_float_const_representable_p): Likewise.
34539 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
34540 (aarch64_output_simd_mov_immediate): New.
34541 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
34542 (*movdf_aarch64): Likewise.
34543 * config/aarch64/constraints.md (Ufc): New.
34544 (Y): call aarch64_float_const_zero_rtx.
34545 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
34547 2013-01-07 Richard Biener <rguenther@suse.de>
34549 PR tree-optimization/55888
34550 PR tree-optimization/55862
34551 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
34552 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
34553 not if it is contained therein.
34555 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34557 * config/avr/t-avr: Typo.
34559 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
34562 * config/avr/t-avr: Don't automatically rebuild
34563 $(srcdir)/config/avr/t-multilib
34564 $(srcdir)/config/avr/avr-tables.opt
34565 $(srcdir)/doc/avr-mmcu.texi
34566 (avr-mcus): New phony target to build them on request.
34567 (s-avr-mlib, s-avr-mmcu-texi): Remove.
34568 * avr/avr-mcus.def: Adjust comments.
34570 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
34572 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
34574 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
34576 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
34578 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
34580 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
34582 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
34584 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
34585 to generate profiling.
34586 * config/rs6000/aix64.h (LIB_SPEC): Same.
34588 2013-01-04 Andrew Pinski <apinski@cavium.com>
34590 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
34592 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
34594 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
34596 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
34598 (ix86_expand_move): Ditto.
34599 (ix86_zero_extend_to_Pmode): Ditto.
34600 (ix86_expand_call): Ditto.
34601 (ix86_expand_special_args_builtin): Ditto.
34602 (ix86_expand_builtin): Ditto.
34604 2013-01-04 Richard Biener <rguenther@suse.de>
34606 PR tree-optimization/55862
34607 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
34608 translating them through PHI nodes.
34610 2013-01-04 Martin Jambor <mjambor@suse.cz>
34612 PR tree-optimization/55755
34613 * tree-sra.c (sra_modify_assign): Do not check that an access has no
34614 children when trying to avoid producing a VIEW_CONVERT_EXPR.
34616 2013-01-04 Marek Polacek <polacek@redhat.com>
34618 PR middle-end/55859
34619 * opts.c (default_options_optimization): Clarify error message.
34621 2013-01-04 Richard Biener <rguenther@suse.de>
34623 PR middle-end/55863
34624 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
34627 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34630 * config/pa/pa.md (movsi): Revert previous change.
34631 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
34634 2013-01-03 Richard Henderson <rth@redhat.com>
34636 * config/i386/i386.c (ix86_expand_move): Always assign to op1
34637 after eliminating TLS symbols.
34639 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
34642 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
34643 * graphite-poly.c (debug_gmp_value): Likewise.
34645 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
34648 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
34649 selected code model, define __code_mode_small__, __code_model_medium__,
34650 __code_model_large__, __code_model_32__ or __code_model_kernel__.
34651 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
34652 xchg temporary register with %k. Declare temporary register as
34654 [__x86_64__]: For medium and large code models, preserve %rbx register.
34656 2013-01-03 Richard Biener <rguenther@suse.de>
34658 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
34659 (dump_subscript): Adjust.
34660 (finalize_ddr_dependent): Do not dump redundant info.
34661 (analyze_siv_subscript): Adjust.
34662 (subscript_dependence_tester): Likewise.
34663 (compute_affine_dependence): Likewise.
34665 2013-01-03 Richard Biener <rguenther@suse.de>
34668 2013-01-03 Richard Biener <rguenther@suse.de>
34670 PR tree-optimization/55857
34671 * tree-vect-stmts.c (vectorizable_load): Do not setup
34672 re-alignment for invariant loads.
34674 2013-01-02 Richard Biener <rguenther@suse.de>
34676 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
34677 invariant load do not generate a vector load from the scalar location.
34679 2013-01-03 Richard Biener <rguenther@suse.de>
34681 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
34682 for not vectorizing.
34683 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
34684 not build INDIRECT_REFs, call get_name once only.
34685 (vect_create_data_ref_ptr): Likewise. Dump base object kind
34686 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
34688 2013-01-03 Richard Biener <rguenther@suse.de>
34690 PR tree-optimization/55857
34691 * tree-vect-stmts.c (vectorizable_load): Do not setup
34692 re-alignment for invariant loads.
34694 2013-01-03 Richard Biener <rguenther@suse.de>
34697 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
34698 prefer a built-in decl.
34700 2013-01-03 Jakub Jelinek <jakub@redhat.com>
34702 * gcc.c (process_command): Update copyright notice dates.
34703 * gcov.c (print_version): Likewise.
34704 * gcov-dump.c (print_version): Likewise.
34706 PR rtl-optimization/55838
34707 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
34708 iv0.step, iv1.step and step.
34710 2013-01-03 Jakub Jelinek <jakub@redhat.com>
34711 Marc Glisse <marc.glisse@inria.fr>
34713 PR tree-optimization/55832
34714 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
34715 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
34716 integer_{one,zero}_node.
34718 2013-01-03 Jakub Jelinek <jakub@redhat.com>
34721 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
34722 * var-tracking.c (reverse_op): Don't add reverse ops to
34723 VALUEs that have already
34724 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
34726 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
34728 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
34730 2013-01-02 Teresa Johnson <tejohnson@google.com>
34732 * dumpfile.c (dump_loc): Print filename with location.
34733 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
34734 new location_t parameter to emit complete unroll message with
34735 new dump framework.
34736 (canonicalize_loop_induction_variables): Compute loops location
34737 and pass to try_unroll_loop_completely.
34738 * loop-unroll.c (report_unroll_peel): New function.
34739 (peel_loops_completely): Use new dump format with location
34740 for main dumpfile message, and invoke report_unroll_peel on success.
34741 (decide_unrolling_and_peeling): Ditto.
34742 (decide_peel_once_rolling): Remove old dumpfile message subsumed
34743 by report_unroll_peel.
34744 (decide_peel_completely): Ditto.
34745 (decide_unroll_constant_iterations): Ditto.
34746 (decide_unroll_runtime_iterations): Ditto.
34747 (decide_peel_simple): Ditto.
34748 (decide_unroll_stupid): Ditto.
34749 * cfgloop.c (get_loop_location): New function.
34750 * cfgloop.h (get_loop_location): Declare.
34752 2013-01-02 Sriraman Tallam <tmsriram@google.com>
34754 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
34757 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34759 PR middle-end/55198
34760 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
34761 BLKmode objects when EXPAND_MEMORY is specified.
34763 2013-01-02 Sriraman Tallam <tmsriram@google.com>
34765 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
34767 (fold_builtin_cpu): Do not share cpu model decls across statements.
34769 2013-01-02 Jason Merrill <jason@redhat.com>
34772 * tree.c (build_array_type_1): Revert earlier change.
34774 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
34776 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
34778 * config/aarch64/aarch64-tune.md: Re-generate.
34780 2013-01-02 Richard Biener <rguenther@suse.de>
34782 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
34783 invariant load do not generate a vector load from the scalar location.
34785 2013-01-02 Richard Biener <rguenther@suse.de>
34788 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
34789 * configure: Regenerate.
34791 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
34793 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
34794 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
34795 (expand_builtin_int_roundingfn_2): Keep the original target around
34796 for the fallback case.
34798 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
34800 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
34801 to be clear for sign changes.
34803 2013-01-01 Jan Hubicka <jh@suse.cz>
34805 * ipa-inline-analysis.c: Fix formatting.
34807 2013-01-01 Jakub Jelinek <jakub@redhat.com>
34809 PR tree-optimization/55831
34810 * tree-vect-loop.c (get_initial_def_for_induction): Use
34811 gsi_after_labels instead of gsi_start_bb.
34813 Copyright (C) 2013 Free Software Foundation, Inc.
34815 Copying and distribution of this file, with or without modification,
34816 are permitted in any medium without royalty provided the copyright
34817 notice and this notice are preserved.